1/* 2 3 Copyright (c) 2021 Handsoncode. All rights reserved. 4 5 Copyright (c) 2013 jStat 6 7 Permission is hereby granted, free of charge, to any person obtaining a copy 8 of this software and associated documentation files (the "Software"), to deal 9 in the Software without restriction, including without limitation the rights 10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 copies of the Software, and to permit persons to whom the Software is 12 furnished to do so, subject to the following conditions: 13 14 The above copyright notice and this permission notice shall be included in 15 all copies or substantial portions of the Software. 16 17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 THE SOFTWARE. 24 Copyright (c) HANDSONCODE sp. z o. o. 25 26 HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in 27 Gdynia, Poland, at Aleja Zwycięstwa 96-98, registered by the District Court in Gdansk under number 28 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00. 29 30 This software is protected by applicable copyright laws, including international treaties, and dual- 31 licensed â depending on whether your use for commercial purposes, meaning intended for or 32 resulting in commercial advantage or monetary compensation, or not. 33 34 If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing 35 the suitability, performance, and usefulness of this software outside the production environment, 36 you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file. 37 38 Your use of this software for commercial purposes is subject to the terms included in an applicable 39 license agreement. 40 41 In any case, you must not make any such use of this software as to develop software which may be 42 considered competitive with this software. 43 44 UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS" 45 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO 46 LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, 47 INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM 48 USE OR INABILITY TO USE THIS SOFTWARE. 49 50 Version: 12.1.2 51 Release date: 08/07/2022 (built at 08/07/2022 15:22:12) 52 regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE Pikaday 53 54 Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday 55*/ 56!function(g,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define("Handsontable",[],b):"object"==typeof exports?exports.Handsontable=b():g.Handsontable=b()}("undefined"!=typeof self?self:this,function(){return function(g){function b(F){if(a[F])return a[F].exports;var B=a[F]={i:F,l:!1,exports:{}};return g[F].call(B.exports,B,B.exports,b),B.l=!0,B.exports}var a={};return b.m=g,b.c=a,b.d=function(F,B,D){b.o(F,B)||Object.defineProperty(F, 57B,{enumerable:!0,get:D})},b.r=function(F){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"});Object.defineProperty(F,"__esModule",{value:!0})},b.t=function(F,B){if((1&B&&(F=b(F)),8&B)||4&B&&"object"==typeof F&&F&&F.__esModule)return F;var D=Object.create(null);if(b.r(D),Object.defineProperty(D,"default",{enumerable:!0,value:F}),2&B&&"string"!=typeof F)for(var A in F)b.d(D,A,function(x){return F[x]}.bind(null,A));return D},b.n=function(F){var B= 58F&&F.__esModule?function(){return F.default}:function(){return F};return b.d(B,"a",B),B},b.o=function(F,B){return Object.prototype.hasOwnProperty.call(F,B)},b.p="",b(b.s=659)}([function(g,b,a){g=a(259);b=a(96);a=a(662);g||b(Object.prototype,"toString",a,{unsafe:!0})},function(g,b){g.exports=function(a){return a&&a.__esModule?a:{default:a}};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){var F=a(265).charAt,B=a(73);g=a(116);a=a(266);var D=g.set,A=g.getterFor("String Iterator"); 59a(String,"String",function(x){D(this,{type:"String Iterator",string:B(x),index:0})},function(){var x,q=A(this),p=q.string,e=q.index;return e>=p.length?{value:void 0,done:!0}:(x=F(p,e),q.index+=x.length,{value:x,done:!1})})},function(g,b,a){var F=a(99);b=a(186);var B=a(185),D=a(116),A=a(80).f,x=a(266),q=a(112);a=a(72);
59var p=D.set,e=D.getterFor("Array Iterator");g.exports=x(Array,"Array",function(c,d){p(this,{type:"Array Iterator",target:F(c),index:0,kind:d})},function(){var c=e(this),d=c.target,h= 60c.kind,k=c.index++;return!d||k>=d.length?(c.target=void 0,{value:void 0,done:!0}):"keys"==h?{value:k,done:!1}:"values"==h?{value:d[k],done:!1}:{value:[k,d[k]],done:!1}},"values");g=B.Arguments=B.Array;if(b("keys"),b("values"),b("entries"),!q&&a&&"values"!==g.name)try{A(g,"name",{value:"values"})}catch(c){}},function(g,b,a){g=a(45);var F=a(357);b=a(358);var B=a(3),D=a(137);a=a(59);var A=a("iterator"),x=a("toStringTag"),q=B.values;a=function(e,c){if(e){if(e[A]!==q)try{D(e,A,q)}catch(h){e[A]=q}if(e[x]|| 61D(e,x,c),F[c])for(var d in B)if(e[d]!==B[d])try{D(e,d,B[d])}catch(h){e[d]=B[d]}}};for(var p in F)a(g[p]&&g[p].prototype,p);a(b,"DOMTokenList")},function(g,b){g.exports=function(a,F){if(!(a instanceof F))throw new TypeError("Cannot call a class as a function");};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b){function a(F,B){for(var D=0;D<B.length;D++){var A=B[D];A.enumerable=A.enumerable||!1;A.configurable=!0;"value"in A&&(A.writable=!0);Object.defineProperty(F,A.key,A)}}g.exports= 62function(F,B,D){return B&&a(F.prototype,B),D&&a(F,D),Object.defineProperty(F,"prototype",{writable:!1}),F};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){g=a(28);b=a(100);var F=a(139),B=a(663),D=a(345),A=a(66),x=a(63),q=a(140);a=a(38);var p=b("Reflect","construct"),e=Object.prototype,c=[].push,d=a(function(){function k(){}return!(p(function(){},[],k)instanceof k)}),h=!a(function(){p(function(){})});a=d||h;g({target:"Reflect",stat:!0,forced:a,sham:a},{construct:function(k,f){D(k); 63A(f);var n=3>arguments.length?k:D(arguments[2]);if(h&&!d)return p(k,f,n);if(k==n){switch(f.length){case 0:return new k;case 1:return new k(f[0]);case 2:return new k(f[0],f[1]);case 3:return new k(f[0],f[1],f[2]);case 4:return new k(f[0],f[1],f[2],f[3])}n=[null];return F(c,n,f),new (F(B,k,n))}n=n.prototype;n=q(x(n)?n:e);var l=F(k,n,f);return x(l)?l:n}})},function(g,b,a){a(668);a(672);a(673);a(674);a(675)},function(g,b,a){g=a(28);var F=a(72),B=a(45);b=a(35);var D=a(65),A=a(56),x=a(128),q=a(73),p=a(80).f; 64a=a(340);var e=B.Symbol,c=e&&e.prototype;if(F&&A(e)&&(!("description"in c)||void 0!==e().description)){var d={};F=function(){var m=1>arguments.length||void 0===arguments[0]?void 0:q(arguments[0]),t=x(c,this)?new e(m):void 0===m?e():e(m);return""===m&&(d[t]=!0),t};a(F,e);F.prototype=c;c.constructor=F;var h="Symbol(test)"==String(e("test")),k=b(c.toString),f=b(c.valueOf),n=/^Symbol\((.*)\)[^)]+$/,l=b("".replace),r=b("".slice);p(c,"description",{configurable:!0,get:function(){var m=f(this),t=k(m);if(D(d, 65m))return"";m=h?r(t,7,-1):l(t,n,"$1");return""===m?void 0:m}});g({global:!0,constructor:!0,forced:!0},{Symbol:F})}},function(g,b,a){a(223)("iterator")},function(g,b,a){a(724)},function(g,b,a){g=a(28);a=a(222);g({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},function(g,b,a){g=a(28);var F=a(183),B=a(221),D=a(63),A=a(158),x=a(103),q=a(99),p=a(159);b=a(59);var e=a(184),c=a(181);a=e("slice");var d=b("species"),h=Array,k=Math.max;g({target:"Array",proto:!0,forced:!a},{slice:function(f,n){var l, 66r=q(this);var m=x(r);f=A(f,m);n=A(void 0===n?m:n,m);if(F(r)&&(l=r.constructor,(B(l)&&(l===h||F(l.prototype))||D(l)&&null===(l=l[d]))&&(l=void 0),l===h||void 0===l))return c(r,f,n);l=new (void 0===l?h:l)(k(n-f,0));for(m=0;f<n;f++,m++)f in r&&p(l,m,r[f]);return l.length=m,l}})},function(g,b){function a(F){return g.exports=a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},g.exports.__esModule=!0,g.exports.default=g.exports,a(F)}g.exports=a; 67g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){var F=a(592);g.exports=function(B,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(D&&D.prototype,{constructor:{value:B,writable:!0,configurable:!0}});Object.defineProperty(B,"prototype",{writable:!1});D&&F(B,D)};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){var F=a(21).default,B=a(44);g.exports=function(D,A){if(A&&("object"=== 68F(A)||"function"==typeof A))return A;if(void 0!==A)throw new TypeError("Derived constructors may only return object or undefined");return B(D)};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){function F(e){return"object"===(0,q.default)(e)?JSON.parse(JSON.stringify(e)):e}function B(e){return"[object Object]"===Object.prototype.toString.call(e)}function D(e,c){for(var d in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,d))&&!1===c(e[d],d,e))break; 69return e}function A(e,c){return Object.prototype.hasOwnProperty.call(e,c)}g=a(1);b.__esModule=!0;b.clone=function(e){var c={};return D(e,function(d,h){c[h]=d}),c};b.createObjectPropListener=function(e){var c,d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"value",h="_".concat(d),k=(c={_touched:!1},(0,x.default)(c,h,e),(0,x.default)(c,"isTouched",function(){return this._touched}),c);return Object.defineProperty(k,d,{get:function(){return this[h]},set:function(f){this._touched=!0;this[h]=f}, 70enumerable:!0,configurable:!0}),k};b.deepClone=F;b.deepExtend=function h(c,d){D(d,function(k,f){d[f]&&"object"===(0,q.default)(d[f])?(c[f]||(Array.isArray(d[f])?c[f]=[]:"[object Date]"===Object.prototype.toString.call(d[f])?c[f]=d[f]:c[f]={}),h(c[f],d[f])):c[f]=d[f]})};b.deepObjectSize=function(c){return B(c)?function k(h){var f=0;return B(h)?D(h,function(n,l){"__children"!==l&&(f+=k(n))}):f+=1,f}(c):0};b.defineGetter=function(c,d,h,k){k.value=h;k.writable=!1!==k.writable;k.enumerable=!1!==k.enumerable; 71k.configurable=!1!==k.configurable;Object.defineProperty(c,d,k)};b.duckSchema=function h(d){var k;Array.isArray(d)?k=[]:(k={},D(d,function(f,n){"__children"!==n&&(f&&"object"===(0,q.default)(f)&&!Array.isArray(f)?k[n]=h(f):Array.isArray(f)?f.length&&"object"===(0,q.default)(f[0])&&!Array.isArray(f[0])?k[n]=[h(f[0])]:k[n]=[]:k[n]=null)}));return k};b.extend=function(d,h,k){var f=Array.isArray(k);return D(h,function(n,l){(!1===f||k.includes(l))&&(d[l]=n)}),d};b.getProperty=function(d,h){h=h.split("."); 72var k=d;return D(h,function(f){if(void 0===(k=k[f]))return k=void 0,!1}),k};b.hasOwnProperty=A;b.inherit=function(d,h){return h.prototype.constructor=h,d.prototype=new h,d.prototype.constructor=d,d};b.isObject=B;b.isObjectEqual=function(d,h){return JSON.stringify(d)===JSON.stringify(h)};b.mixin=function(d){d.MIXINS||(d.MIXINS=[]);for(var h=arguments.length,k=Array(1<h?h-1:0),f=1;f<h;f++)k[f-1]=arguments[f];return(0,p.arrayEach)(k,function(n){d.MIXINS.push(n.MIXIN_NAME);D(n,function(l,r){if(void 0!== 73d.prototype[r])throw Error("Mixin conflict. Property '".concat(r,"' already exist and cannot be overwritten."));"function"==typeof l?d.prototype[r]=l:Object.defineProperty(d.prototype,r,{get:(m=r,t=l,u="_".concat(m),function(){var w;return void 0===this[u]&&(this[u]=(w=t,(Array.isArray(w)||B(w))&&(w=F(w)),w)
73),this[u]}),set:function(w){var v="_".concat(w);return function(C){this[v]=C}}(r),configurable:!0});var m,t,u})}),d};b.objectEach=D;b.setProperty=function(d,h,k){var f=h.split("."),n=d;f.forEach(function(l, 74r){r!==f.length-1?(A(n,l)||(n[l]={}),n=n[l]):n[l]=k})};a(42);a(49);a(0);a(12);a(64);a(27);var x=g(a(41)),q=g(a(21)),p=a(20)},function(g,b,a){g=a(28);var F=a(38),B=a(183),D=a(63),A=a(95),x=a(103),q=a(359),p=a(159),e=a(269);b=a(184);var c=a(59);a=a(154);var d=c("isConcatSpreadable");a=51<=a||!F(function(){var h=[];return h[d]=!1,h.concat()[0]!==h});b=b("concat");g({target:"Array",proto:!0,arity:1,forced:!a||!b},{concat:function(h){var k,f=A(this),n=e(f,0),l=0;var r=-1;for(k=arguments.length;r<k;r++){var m= 75-1===r?f:arguments[r];var t=m;if(D(t)){var u=t[d];t=void 0!==u?!!u:B(t)}else t=!1;if(t)for(u=x(m),q(l+u),t=0;t<u;t++,l++)t in m&&p(n,l,m[t]);else q(l+1),p(n,l++,m)}return n.length=l,n}})},function(g,b,a){g=a(28);b=a(38);var F=a(99),B=a(114).f;a=a(72);b=b(function(){B(1)});g({target:"Object",stat:!0,forced:!a||b,sham:!a},{getOwnPropertyDescriptor:function(D,A){return B(F(D),A)}})},function(g,b,a){function F(A,x,q,p){var e=-1,c=A;Array.isArray(A)||(c=Array.from(A));A=c.length;p&&A&&(q=c[e+=1]);for(e+= 761;e<A;)q=x(q,c[e],e,c),e+=1;return q}function B(A,x){var q=0,p=A;Array.isArray(A)||(p=Array.from(A));for(var e=p.length;q<e&&!1!==x(p[q],q,p);)q+=1;return A}function D(A){return F(A,function(x,q){return x+q},0)}b.__esModule=!0;b.arrayAvg=function(A){return A.length?D(A)/A.length:0};b.arrayEach=B;b.arrayFilter=function(A,x){var q=0,p=A;Array.isArray(A)||(p=Array.from(A));A=p.length;for(var e=[],c=-1;q<A;){var d=p[q];x(d,q,p)&&(e[c+=1]=d);q+=1}return e};b.arrayFlatten=function q(x){return F(x,function(p, 77e){return p.concat(Array.isArray(e)?q(e):e)},[])};b.arrayMap=function(x,q){var p=0,e=x;Array.isArray(x)||(e=Array.from(x));x=e.length;for(var c=[],d=-1;p<x;){var h=e[p];c[d+=1]=q(h,p,e);p+=1}return c};b.arrayMax=function(x){return F(x,function(q,p){return q>p?q:p},Array.isArray(x)?x[0]:void 0)};b.arrayMin=function(x){return F(x,function(q,p){return q<p?q:p},Array.isArray(x)?x[0]:void 0)};b.arrayReduce=F;b.arraySum=D;b.arrayUnique=function(x){var q=[];return B(x,function(p){-1===q.indexOf(p)&&q.push(p)}), 78q};b.extendArray=function(x,q){for(var p=q.length,e=0;e<p;)x.push(q[e]),e+=1};b.getDifferenceOfArrays=function(){for(var x=arguments.length,q=Array(x),p=0;p<x;p++)q[p]=arguments[p];q=[].concat(q);x=q[0];q=q.slice(1);var e=x;return B(q,function(c){e=e.filter(function(d){return!c.includes(d)})}),e};b.getIntersectionOfArrays=function(){for(var x=arguments.length,q=Array(x),p=0;p<x;p++)q[p]=arguments[p];q=[].concat(q);x=q[0];q=q.slice(1);var e=x;return B(q,function(c){e=e.filter(function(d){return c.includes(d)})}), 79e};b.getUnionOfArrays=function(){for(var x=arguments.length,q=Array(x),p=0;p<x;p++)q[p]=arguments[p];q=[].concat(q);x=q[0];q=q.slice(1);var e=new Set(x);return B(q,function(c){B(c,function(d){e.has(d)||e.add(d)})}),Array.from(e)};b.pivot=function(x){var q=[];if(!x||0===x.length||!x[0]||0===x[0].length)return q;for(var p=x.length,e=x[0].length,c=0;c<p;c++)for(var d=0;d<e;d++)q[d]||(q[d]=[]),q[d][c]=x[c][d];return q};b.stringToArray=function(x){return x.split(1<arguments.length&&void 0!==arguments[1]? 80arguments[1]:" ")};b.to2dArray=function(x){for(var q=x.length,p=0;p<q;)x[p]=[x[p]],p+=1};a(22);a(2);a(18);a(33);a(13);a(39);a(0);a(42);a(49);a(3);a(54);a(4);a(12);a(64)},function(g,b){function a(F){return g.exports=a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(B){return typeof B}:function(B){return B&&"function"==typeof Symbol&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g.exports.__esModule=!0,g.exports.default=g.exports,a(F)}g.exports=a;g.exports.__esModule= 81!0;g.exports.default=g.exports},function(g,b,a){g=a(28);b=a(664);g({target:"Array",stat:!0,forced:!a(264)(function(F){Array.from(F)})},{from:b})},function(g,b,a){function F(y){return Object.getPrototypeOf(y.parent)&&y.frameElement}function B(y){var z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],E=2<arguments.length?arguments[2]:void 0,H=Node,G=H.ELEMENT_NODE;H=H.DOCUMENT_FRAGMENT_NODE;for(var I=y;null!=I&&I!==E;){var K=I,J=K.nodeType;K=K.nodeName;if(J===G&&(z.includes(K)||z.includes(I)))return I; 82I=(K=I.host)&&J===H?K:I.parentNode}return null}function D(y){return y&&y.length?y.filter(function(z){return!!z}):[]}function A(y){for(var z;z=y.lastChild;)y.removeChild(z)}function x(y,z){var E=y.firstChild;E&&3===E.nodeType&&null===E.nextSibling?f.isTextContentSupported?E.textContent=z:E.data=z:(A(y),y.appendChild(y.ownerDocument.createTextNode(z)))}function q(){var y=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,z=y.scrollY;return void 0===z&&(z=y.document.documentElement.scrollTop), 83z}function p(){var y=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,z=y.scrollX;return void 0===z&&(z=y.document.documentElement.scrollLeft),z}function e(y){var z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;return y.currentStyle||z.getComputedStyle(y)}function c(){var y=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,z=y.createElement("div");z.style.height="200px";z.style.width="100%";var E=y.createElement("div");E.style.boxSizing="content-box";E.style.height= 84"150px";E.style.left="0px";E.style.overflow="hidden";E.style.position="absolute";E.style.top="0px";E.style.width="200px";E.style.visibility="hidden";E.appendChild(z);(y.body||y.documentElement).appendChild(E);var H=z.offsetWidth;E.style.overflow="scroll";z=z.offsetWidth;return H===z&&(z=E.clientWidth),(y.body||y.documentElement).removeChild(E),H-z}function d(y){return y&&(-1<["INPUT","SELECT","TEXTAREA"].indexOf(y.nodeName)||"true"===y.contentEditable)}function h(y){return d(y)&&!1===y.hasAttribute("data-hot-input")} 85g=a(1);b.__esModule=!0;b.HTML_CHARACTERS=void 0;b.addClass=function(y,z){t(y,z)};b.addEvent=function(y,z,E){y.addEventListener(z,E,!1)};b.clearTextSelection=function(){var y=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,z=y.document;y.getSelection?y.getSelection().empty?y.getSelection().empty():y.getSelection().removeAllRanges&&y.getSelection().removeAllRanges():z.selection&&z.selection.empty()};b.closest=B;b.closestDown=function(y,z,E){for(var H=[];
85y&&(y=B(y,z,E))&&(!E||E.contains(y));)H.push(y), 86y=y.host&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y.parentNode;return(z=H.length)?H[z-1]:null};b.empty=A;b.fastInnerHTML=function(y,z){var E=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];C.test(z)?y.innerHTML=E?(0,l.sanitize)(z):z:x(y,z)};b.fastInnerText=x;b.getCaretPosition=function(y){var z=y.ownerDocument;if(y.selectionStart)return y.selectionStart;if(z.selection){y.focus();z=z.selection.createRange();if(null===z)return 0;y=y.createTextRange();var E=y.duplicate();return y.moveToBookmark(z.getBookmark()), 87E.setEndPoint("EndToStart",y),E.text.length}return 0};b.getComputedStyle=e;b.getCssTransform=function(y){var z;return y.style.transform&&""!==(z=y.style.transform)?["transform",z]:y.style["-webkit-transform"]&&""!==(z=y.style["-webkit-transform"])?["-webkit-transform",z]:-1};b.getFrameElement=F;b.getParent=function(y){for(var z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,E=-1,H=null,G=y;null!==G;){if(E===z){H=G;break}G.host&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G=G.host:(E+=1,G=G.parentNode)}return H}; 88b.getParentWindow=function(y){return F(y)&&y.parent};b.getScrollLeft=function(y){var z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;return y===z?p(z):y.scrollLeft};b.getScrollTop=function(y){var z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;return y===z?q(z):y.scrollTop};b.getScrollableElement=function(y){var z=y.ownerDocument,E=z?z.defaultView:void 0;z||(z=y.document?y.document:y,E=z.defaultView);var H=["auto","scroll"],G=(0,f.isGetComputedStyleSupported)();for(y= 89y.parentNode;y&&y.style&&z.body!==y;){var I=y.style,K=I.overflow,J=I.overflowX;I=I.overflowY;if([K,J,I].includes("scroll"))return y;if(G){var P=E.getComputedStyle(y);if(K=P.overflow,J=P.overflowX,I=P.overflowY,H.includes(K)||H.includes(J)||H.includes(I))return y}if(y.clientHeight<=y.scrollHeight+1&&(H.includes(I)||H.includes(K))||y.clientWidth<=y.scrollWidth+1&&(H.includes(J)||H.includes(K)))return y;y=y.parentNode}return E};b.getScrollbarWidth=function(){var y=0<arguments.length&&void 0!==arguments[0]? 90arguments[0]:document;void 0===v&&(v=c(y));return v};b.getSelectionEndPosition=function(y){var z=y.ownerDocument;return y.selectionEnd?y.selectionEnd:z.selection?(z=z.selection.createRange(),null===z?0:y.createTextRange().text.indexOf(z.text)+z.text.length):0};b.getSelectionText=function(){var y=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,z=y.document,E="";y.getSelection?E=y.getSelection().toString():z.selection&&"Control"!==z.selection.type&&(E=z.selection.createRange().text);return E}; 91b.getStyle=function(y,z){var E=2<arguments.length&&void 0!==arguments[2]?arguments[2]:window;if(y){if(y===E)return"width"===z?"".concat(E.innerWidth,"px"):"height"===z?"".concat(E.innerHeight,"px"):void 0;var H=y.style[z];if(""!==H&&void 0!==H)return H;E=e(y,E);if(""!==E[z]&&void 0!==E[z])return E[z]}};
91b.getTrimmingContainer=function(y){var z=y.ownerDocument,E=z.defaultView;for(y=y.parentNode;y&&y.style&&z.body!==y;){if("visible"!==y.style.overflow&&""!==y.style.overflow)return y;var H=e(y,E),G=["scroll", 92"hidden","auto"],I=H.getPropertyValue("overflow"),K=H.getPropertyValue("overflow-y");H=H.getPropertyValue("overflow-x");if(G.includes(I)||G.includes(K)||G.includes(H))return y;y=y.parentNode}return E};b.getWindowScrollLeft=p;b.getWindowScrollTop=q;b.hasAccessToParentWindow=function(y){return!!Object.getPrototypeOf(y.parent)};b.hasClass=function(y,z){return m(y,z)};b.hasHorizontalScrollbar=function(y){return y.offsetHeight!==y.clientHeight};b.hasVerticalScrollbar=function(y){return y.offsetWidth!== 93y.clientWidth};b.index=function(y){var z=0;if(y.previousSibling)for(;y=y.previousSibling;)z+=1;return z};b.innerHeight=function(y){return y.clientHeight||y.innerHeight};b.innerWidth=function(y){return y.clientWidth||y.innerWidth};b.isChildOf=function(y,z){var E=y.parentNode,H=[];for("string"==typeof z?H=y.defaultView?Array.prototype.slice.call(y.querySelectorAll(z),0):Array.prototype.slice.call(y.ownerDocument.querySelectorAll(z),0):H.push(z);null!==E;){if(-1<H.indexOf(E))return!0;E=E.parentNode}return!1}; 94b.isDetached=function(y){return!y.parentNode};b.isInput=d;b.isOutsideInput=h;b.isVisible=function E(z){for(var H=z.ownerDocument.documentElement;z!==H;){if(null===z)return!1;if(z.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(z.host){if(z.host.impl)return E(z.host.impl);if(z.host)return E(z.host);throw Error("Lost in Web Components world");}return!1}if(z.style&&"none"===z.style.display)return!1;z=z.parentNode}return!0};b.matchesCSSRules=function(z,E){var H=E.selectorText,G=!1;E.type===CSSRule.STYLE_RULE&& 95H&&(z.msMatchesSelector?G=z.msMatchesSelector(H):z.matches&&(G=z.matches(H)));return G};b.offset=function(z){var E,H,G=z.ownerDocument,I=G.defaultView,K=G.documentElement;if((0,f.hasCaptionProblem)()&&z.firstChild&&"CAPTION"===z.firstChild.nodeName)return{top:(E=z.getBoundingClientRect()).top+(I.pageYOffset||K.scrollTop)-(K.clientTop||0),left:E.left+(I.pageXOffset||K.scrollLeft)-(K.clientLeft||0)};E=z.offsetLeft;var J=z.offsetTop;for(H=z;(z=z.offsetParent)&&z!==G.body;)E+=z.offsetLeft,J+=z.offsetTop, 96H=z;H&&"fixed"===H.style.position&&(E+=I.pageXOffset||K.scrollLeft,J+=I.pageYOffset||K.scrollTop);return{left:E,top:J}};b.outerHeight=function(z){return(0,f.hasCaptionProblem)()&&z.firstChild&&"CAPTION"===z.firstChild.nodeName?z.offsetHeight+z.firstChild.offsetHeight:z.offsetHeight};b.outerWidth=function(z){return z.offsetWidth};b.overlayContainsElement=function(z,E,H){return(z=H.parentElement.querySelector(".ht_clone_".concat(z)))?z.contains(E):null};b.removeClass=function(z,E){u(z,E)};b.removeEvent= 97function(z,E,H){z.removeEventListener(E,H,!1)};b.removeTextNodes=function H(E){if(3===E.nodeType)E.parentNode.removeChild(E);else if(-1<["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(E.nodeName)){E=E.childNodes;for(var G=E.length-1;0<=G;G--)H(E[G])}};b.resetCssTransform=function(E){E.style.transform&&""!==E.style.transform?E.style.transform="":E.style["-webkit-transform"]&&""!==E.style["-webkit-transform"]&&(E.style["-webkit-transform"]="")};b.selectElementIfAllowed=function(E){h(E.ownerDocument.activeElement)|| 98E.select()};b.setCaretPosition=function(E,H,G){void 0===G&&(G=H);if(E.setSelectionRange){E.focus();try{E.setSelectionRange(H,G)}catch(J){var I=E.parentNode,K=I.style.display;I.style.display="block";E.setSelectionRange(H,G);I.style.display=K}}};b.setOverlayPosition=function(E,H,G){(0,n.isIE9)()?(E.style.top=G,E.style.left=H):(0,n.isSafari)()?E.style["-webkit-transform"]="translate3d(".concat(H,",").concat(G,",0)"):E.style.transform="translate3d(".concat(H,",").concat(G,",0)")};var k=g(a(43));a(25); 99a(42);a(49);a(13);a(33);a(39);a(0);a(12);a(64);a(101);a(69);a(76);a(118);a(67);a(18);var f=a(134),n=a(107),l=a(97);if((0,f.isClassListSupported)()){var r=function(E){E=E.createElement("div");return E.classList.add("test","test2"),E.classList.contains("test2")};var m=function(E,H){return void 0!==E.classList&&"string"==typeof H&&""!==H&&E.classList.contains(H)};var t=function(E,H){var G,I=E.ownerDocument;if("string"==typeof H&&(H=H.split(" ")),0<(H=D(H)).length)if(r(I))(G=E.classList).add.apply(G, 100(0,k.default)(H));else for(G=0;H[G];)E.classList.add(H[G]),G+=1};var u=function(E,H){var G,I=E.ownerDocument;if("string"==typeof H&&(H=H.split(" ")),0<(H=D(H)).length)if(r(I))(G=E.classList).remove.apply(G,(0,k.default)(H));else for(G=0;H[G];)E.classList.remove(H[G]),G+=1}}else{var w=function(E){return new RegExp("(\\s|^)".concat(E,"(\\s|$)"))};m=function(E,H){return void 0!==E.className&&w(H).test(E.className)};t=function(E,H){var G=E.className;if("string"==typeof H&&(H=H.split(" ")),H=D(H),""=== 101G)G=H.join(" ");else for(var I=0;I<H.length;I++)H[I]&&!w(H[I]).test(G)&&(G+=" ".concat(H[I]));E.className=G};u=function(E,H){var G=0,I=E.className;"string"==typeof H&&(H=H.split(" "));for(H=D(H);H[G];)I=I.replace(w(H[G])," ").trim(),G+=1;E.className!==I&&(E.className=I)}}var v,C=/(<(.*)>|&(.*);)/;b.HTML_CHARACTERS=C},function(g,b,a){function F(J){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor=== 102Symbol&&P!==Symbol.prototype?"symbol":typeof P})(J)}function B(J,P){for(var S=0;S<P.length;S++){var R=P[S];R.enumerable=R.enumerable||!1;R.configurable=!0;"value"in R&&(R.writable=!0);Object.defineProperty(J,R.key,R)}}function D(J){return!(!J||"object"!==F(J)&&"function"!=typeof J)&&"col"in J&&"number"==typeof J.col&&"row"in J&&"number"==typeof J.row&&"sheet"in J&&"number"==typeof J.sheet}a.r(b);a.d(b,"ErrorType",function(){return A});a.d(b,"CellType",function(){return x});a.d(b,"getCellType",function(){return k}); 103a.d(b,"CellValueNoNumber",function(){return d});a.d(b,"CellValueJustNumber",function(){return h});a.d(b,"CellValueType",function(){return f});a.d(b,"CellValueDetailedType",function(){return n});a.d(b,"CellValueTypeOrd",function(){return l});a.d(b,"getCellValueType",function(){return r});a.d(b,"getCellValueDetailedType",function(){return m});a.d(b,"getCellValueFormat",function(){return t});a.d(b,"CellError",function(){return u});a.d(b,"simpleRowAddress",function(){return w});
103a.d(b,"invalidSimpleRowAddress", 104function(){return v});a.d(b,"simpleColumnAddress",function(){return C});a.d(b,"invalidSimpleColumnAddress",function(){return y});a.d(b,"simpleCellAddress",function(){return z});a.d(b,"invalidSimpleCellAddress",function(){return E});a.d(b,"movedSimpleCellAddress",function(){return H});a.d(b,"addressKey",function(){return G});a.d(b,"isSimpleCellAddress",function(){return D});a.d(b,"absoluteSheetReference",function(){return I});a.d(b,"equalSimpleCellAddress",function(){return K});a(93);a(18);a(8);a(9); 105a(0);a(10);a(3);a(2);a(4);var A,x,q=a(131),p=a(46),e=a(51),c=a(82);!function(J){J.DIV_BY_ZERO="DIV_BY_ZERO";J.NAME="NAME";J.VALUE="VALUE";J.NUM="NUM";J.NA="NA";J.CYCLE="CYCLE";J.REF="REF";J.SPILL="SPILL";J.LIC="LIC";J.ERROR="ERROR"}(A||(A={}));(function(J){J.FORMULA="FORMULA";J.VALUE="VALUE";J.ARRAY="ARRAY";J.EMPTY="EMPTY";J.ARRAYFORMULA="ARRAYFORMULA"})(x||(x={}));var d,h,k=function(J,P){return J instanceof q.ArrayVertex?J.isLeftCorner(P)?x.ARRAYFORMULA:x.ARRAY:J instanceof q.FormulaCellVertex|| 106J instanceof q.ParsingErrorVertex?x.FORMULA:J instanceof q.ValueCellVertex?x.VALUE:x.EMPTY};!function(J){J.EMPTY="EMPTY";J.NUMBER="NUMBER";J.STRING="STRING";J.BOOLEAN="BOOLEAN";J.ERROR="ERROR"}(d||(d={}));(h||(h={})).NUMBER="NUMBER";var f=Object.assign(Object.assign({},d),h),n=Object.assign(Object.assign({},d),e.NumberType),l=function(J){switch(J){case f.EMPTY:return 0;case f.NUMBER:return 1;case f.STRING:return 2;case f.BOOLEAN:return 3;case f.ERROR:return 4}throw Error("Cell value not computed"); 107},r=function(J){if(J===e.EmptyValue)return f.EMPTY;if(J instanceof u||J instanceof c.SimpleRangeValue)return f.ERROR;if("string"==typeof J)return f.STRING;if(Object(e.isExtendedNumber)(J))return f.NUMBER;if("boolean"==typeof J)return f.BOOLEAN;throw Error("Cell value not computed");},m=function(J){return Object(e.isExtendedNumber)(J)?Object(e.getTypeOfExtendedNumber)(J):r(J)},t=function(J){return Object(e.isExtendedNumber)(J)?Object(e.getFormatOfExtendedNumber)(J):void 0},u=function(){function J(R, 108O,N){if(!(this instanceof J))throw new TypeError("Cannot call a class as a function");!0;this.type=R;this.message=O;this.root=N}var P,S;return S=[{key:"parsingError",value:function(){return new J(A.ERROR,p.ErrorMessage.ParseError)}}],P=[{key:"attachRootVertex",value:function(R){return void 0===this.root?new J(this.type,this.message,R):this}}],B(J.prototype,P),S&&B(J,S),Object.defineProperty(J,"prototype",{writable:!1}),J}(),w=function(J,P){return{sheet:J,row:P}},v=function(J){return 0>J.row},C=function(J, 109P){return{sheet:J,col:P}},y=function(J){return 0>J.col},z=function(J,P,S){return{sheet:J,col:P,row:S}},E=function(J){return 0>J.col||0>J.row},H=function(J,P,S,R){return z(P,J.col+S,J.row+R)},G=function(J){return"".concat(J.sheet,",").concat(J.row,",").concat(J.col)},I=function(J,P){var S;return null!==(S=J.sheet)&&void 0!==S?S:P.sheet},K=function(J,P){return J.sheet===P.sheet&&J.col===P.col&&J.row===P.row}},function(g,b,a){g=a(28);b=a(38);var F=a(95),B=a(219);a=a(344);g({target:"Object",stat:!0,forced:b(function(){B(1)}), 110sham:!a},{getPrototypeOf:function(D){return B(F(D))}})},function(g,b,a){g=a(72);b=a(178).EXISTS;var F=a(35);a=a(80).f;var B=Function.prototype,D=F(B.toString),A=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,x=F(A.exec);g&&!b&&a(B,"name",{configurable:!0,get:function(){try{return x(A,D(this))[1]}catch(q){return""}}})},function(g,b,a){g=a(45);b=a(357);var F=a(358),B=a(679),D=a(137);a=function(x){if(x&&x.forEach!==B)try{D(x,"forEach",B)}catch(q){x.forEach=B}};for(var A in b)b[A]&& 111a(g[A]&&g[A].prototype);a(F)},function(g,b,a){var F=a(45),B=a(114).f,D=a(137),A=a(96),x=a(253),q=a(340),p=a(180);g.exports=function(e,c){var d,h,k,f,n,l=e.target,r=e.global,m=e.stat;if(d=r?F:m?F[l]||x(l,{}):(F[l]||{}).prototype)for(h in c){if(f=c[h],k=e.dontCallGetSet?(n=B(d,h))&&n.value:d[h],!p(r?h:l+(m?".":"#")+h,e.forced)&&void 0!==k){if(typeof f==typeof k)continue;q(f,k)}(e.sham||k&&k.sham)&&D(f,"sham",!0);A(d,h,f,e)}}},function(g,b,a){b.__esModule=!0;b.FILTERS_VALUES_BLANK_CELLS=b.FILTERS_NAMESPACE= 112b.FILTERS_LABELS_DISJUNCTION=b.FILTERS_LABELS_CONJUNCTION=b.FILTERS_DIVS_FILTER_BY_VALUE=b.FILTERS_DIVS_FILTER_BY_CONDITION=b.FILTERS_CONDITIONS_YESTERDAY=b.FILTERS_CONDITIONS_TOMORROW=b.FILTERS_CONDITIONS_TODAY=b.FILTERS_CONDITIONS_NOT_EQUAL=b.FILTERS_CONDITIONS_NOT_EMPTY=b.FILTERS_CONDITIONS_NOT_CONTAIN=b.FILTERS_CONDITIONS_NOT_BETWEEN=b.FILTERS_CONDITIONS_NONE=b.FILTERS_CONDITIONS_NAMESPACE=b.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=b.FILTERS_CONDITIONS_LESS_THAN=b.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL= 113b.FILTERS_CONDITIONS_GREATER_THAN=b.FILTERS_CONDITIONS_EQUAL=b.FILTERS_CONDITIONS_ENDS_WITH=b.FILTERS_CONDITIONS_EMPTY=b.FILTERS_CONDITIONS_CONTAINS=b.FILTERS_CONDITIONS_BY_VALUE=b.FILTERS_CONDITIONS_BETWEEN=b.FILTERS_CONDITIONS_BEGINS_WITH=b.FILTERS_CONDITIONS_BEFORE=b.FILTERS_CONDITIONS_AFT
113ER=b.FILTERS_BUTTONS_SELECT_ALL=b.FILTERS_BUTTONS_PLACEHOLDER_VALUE=b.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=b.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=b.FILTERS_BUTTONS_OK=b.FILTERS_BUTTONS_CLEAR=b.FILTERS_BUTTONS_CANCEL= 114b.CONTEXTMENU_ITEMS_UNMERGE_CELLS=b.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=b.CONTEXTMENU_ITEMS_UNDO=b.CONTEXTMENU_ITEMS_SHOW_ROW=b.CONTEXTMENU_ITEMS_SHOW_COLUMN=b.CONTEXTMENU_ITEMS_ROW_BELOW=b.CONTEXTMENU_ITEMS_ROW_ABOVE=b.CONTEXTMENU_ITEMS_REMOVE_ROW=b.CONTEXTMENU_ITEMS_REMOVE_COMMENT=b.CONTEXTMENU_ITEMS_REMOVE_COLUMN=b.CONTEXTMENU_ITEMS_REMOVE_BORDERS=b.CONTEXTMENU_ITEMS_REDO=b.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=b.CONTEXTMENU_ITEMS_READ_ONLY=b.CONTEXTMENU_ITEMS_NO_ITEMS=b.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD= 115b.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=b.CONTEXTMENU_ITEMS_MERGE_CELLS=b.CONTEXTMENU_ITEMS_INSERT_RIGHT=b.CONTEXTMENU_ITEMS_INSERT_LEFT=b.CONTEXTMENU_ITEMS_HIDE_ROW=b.CONTEXTMENU_ITEMS_HIDE_COLUMN=b.CONTEXTMENU_ITEMS_FREEZE_COLUMN=b.CONTEXTMENU_ITEMS_EDIT_COMMENT=b.CONTEXTMENU_ITEMS_CUT=b.CONTEXTMENU_ITEMS_COPY=b.CONTEXTMENU_ITEMS_CLEAR_COLUMN=b.CONTEXTMENU_ITEMS_BORDERS_TOP=b.CONTEXTMENU_ITEMS_BORDERS_RIGHT=b.CONTEXTMENU_ITEMS_BORDERS_LEFT=b.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=b.CONTEXTMENU_ITEMS_BORDERS= 116b.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=b.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=b.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=b.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=b.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=b.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=b.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=b.CONTEXTMENU_ITEMS_ALIGNMENT=b.CONTEXTMENU_ITEMS_ADD_COMMENT=void 0;b.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";g="".concat("ContextMenu:items",".noItems");b.CONTEXTMENU_ITEMS_NO_ITEMS=g;g="".concat("ContextMenu:items",".insertRowAbove");b.CONTEXTMENU_ITEMS_ROW_ABOVE= 117g;g="".concat("ContextMenu:items",".insertRowBelow");b.CONTEXTMENU_ITEMS_ROW_BELOW=g;g="".concat("ContextMenu:items",".insertColumnOnTheLeft");b.CONTEXTMENU_ITEMS_INSERT_LEFT=g;g="".concat("ContextMenu:items",".insertColumnOnTheRight");b.CONTEXTMENU_ITEMS_INSERT_RIGHT=g;g="".concat("ContextMenu:items",".removeRow");b.CONTEXTMENU_ITEMS_REMOVE_ROW=g;g="".concat("ContextMenu:items",".removeColumn");b.CONTEXTMENU_ITEMS_REMOVE_COLUMN=g;g="".concat("ContextMenu:items",".undo");b.CONTEXTMENU_ITEMS_UNDO= 118g;g="".concat("ContextMenu:items",".redo");b.CONTEXTMENU_ITEMS_REDO=g;g="".concat("ContextMenu:items",".readOnly");b.CONTEXTMENU_ITEMS_READ_ONLY=g;g="".concat("ContextMenu:items",".clearColumn");b.CONTEXTMENU_ITEMS_CLEAR_COLUMN=g;g="".concat("ContextMenu:items",".copy");b.CONTEXTMENU_ITEMS_COPY=g;g="".concat("ContextMenu:items",".cut");b.CONTEXTMENU_ITEMS_CUT=g;g="".concat("ContextMenu:items",".freezeColumn");b.CONTEXTMENU_ITEMS_FREEZE_COLUMN=g;g="".concat("ContextMenu:items",".unfreezeColumn");b.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN= 119g;g="".concat("ContextMenu:items",".mergeCells");b.CONTEXTMENU_ITEMS_MERGE_CELLS=g;g="".concat("ContextMenu:items",".unmergeCells");b.CONTEXTMENU_ITEMS_UNMERGE_CELLS=g;g="".concat("ContextMenu:items",".addComment");b.CONTEXTMENU_ITEMS_ADD_COMMENT=g;g="".concat("ContextMenu:items",".editComment");b.CONTEXTMENU_ITEMS_EDIT_COMMENT=g;g="".concat("ContextMenu:items",".removeComment");b.CONTEXTMENU_ITEMS_REMOVE_COMMENT=g;g="".concat("ContextMenu:items",".readOnlyComment");b.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT= 120g;g="".concat("ContextMenu:items",".align");b.CONTEXTMENU_ITEMS_ALIGNMENT=g;g="".concat("ContextMenu:items",".align.left");b.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=g;g="".concat("ContextMenu:items",".align.center");b.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=g;g="".concat("ContextMenu:items",".align.right");b.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=g;g="".concat("ContextMenu:items",".align.justify");b.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=g;g="".concat("ContextMenu:items",".align.top");b.CONTEXTMENU_ITEMS_ALIGNMENT_TOP= 121g;g="".concat("ContextMenu:items",".align.middle");b.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=g;g="".concat("ContextMenu:items",".align.bottom");b.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=g;g="".concat("ContextMenu:items",".borders");b.CONTEXTMENU_ITEMS_BORDERS=g;g="".concat("ContextMenu:items",".borders.top");b.CONTEXTMENU_ITEMS_BORDERS_TOP=g;g="".concat("ContextMenu:items",".borders.right");b.CONTEXTMENU_ITEMS_BORDERS_RIGHT=g;g="".concat("ContextMenu:items",".borders.bottom");b.CONTEXTMENU_ITEMS_BORDERS_BOTTOM= 122g;g="".concat("ContextMenu:items",".borders.left");b.CONTEXTMENU_ITEMS_BORDERS_LEFT=g;g="".concat("ContextMenu:items",".borders.remove");b.CONTEXTMENU_ITEMS_REMOVE_BORDERS=g;g="".concat("ContextMenu:items",".nestedHeaders.insertChildRow");b.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=g;g="".concat("ContextMenu:items",".nestedHeaders.detachFromParent");b.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=g;g="".concat("ContextMenu:items",".hideColumn");b.CONTEXTMENU_ITEMS_HIDE_COLUMN=g;g="".concat("ContextMenu:items", 123".showColumn");b.CONTEXTMENU_ITEMS_SHOW_COLUMN=g;g="".concat("ContextMenu:items",".hideRow");b.CONTEXTMENU_ITEMS_HIDE_ROW=g;g="".concat("ContextMenu:items",".showRow");b.CONTEXTMENU_ITEMS_SHOW_ROW=g;b.FILTERS_NAMESPACE="Filters:";g="".concat("Filters:","conditions");b.FILTERS_CONDITIONS_NAMESPACE=g;
123a="".concat(g,".none");b.FILTERS_CONDITIONS_NONE=a;a="".concat(g,".isEmpty");b.FILTERS_CONDITIONS_EMPTY=a;a="".concat(g,".isNotEmpty");b.FILTERS_CONDITIONS_NOT_EMPTY=a;a="".concat(g,".isEqualTo");b.FILTERS_CONDITIONS_EQUAL= 124a;a="".concat(g,".isNotEqualTo");b.FILTERS_CONDITIONS_NOT_EQUAL=a;a="".concat(g,".beginsWith");b.FILTERS_CONDITIONS_BEGINS_WITH=a;a="".concat(g,".endsWith");b.FILTERS_CONDITIONS_ENDS_WITH=a;a="".concat(g,".contains");b.FILTERS_CONDITIONS_CONTAINS=a;a="".concat(g,".doesNotContain");b.FILTERS_CONDITIONS_NOT_CONTAIN=a;a="".concat(g,".byValue");b.FILTERS_CONDITIONS_BY_VALUE=a;a="".concat(g,".greaterThan");b.FILTERS_CONDITIONS_GREATER_THAN=a;a="".concat(g,".greaterThanOrEqualTo");b.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL= 125a;a="".concat(g,".lessThan");b.FILTERS_CONDITIONS_LESS_THAN=a;a="".concat(g,".lessThanOrEqualTo");b.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=a;a="".concat(g,".isBetween");b.FILTERS_CONDITIONS_BETWEEN=a;a="".concat(g,".isNotBetween");b.FILTERS_CONDITIONS_NOT_BETWEEN=a;a="".concat(g,".after");b.FILTERS_CONDITIONS_AFTER=a;a="".concat(g,".before");b.FILTERS_CONDITIONS_BEFORE=a;a="".concat(g,".today");b.FILTERS_CONDITIONS_TODAY=a;a="".concat(g,".tomorrow");b.FILTERS_CONDITIONS_TOMORROW=a;g="".concat(g,".yesterday"); 126b.FILTERS_CONDITIONS_YESTERDAY=g;g="".concat("Filters:","labels.filterByCondition");b.FILTERS_DIVS_FILTER_BY_CONDITION=g;g="".concat("Filters:","labels.filterByValue");b.FILTERS_DIVS_FILTER_BY_VALUE=g;g="".concat("Filters:","labels.conjunction");b.FILTERS_LABELS_CONJUNCTION=g;g="".concat("Filters:","labels.disjunction");b.FILTERS_LABELS_DISJUNCTION=g;g="".concat("Filters:","values.blankCells");b.FILTERS_VALUES_BLANK_CELLS=g;g="".concat("Filters:","buttons.selectAll");b.FILTERS_BUTTONS_SELECT_ALL= 127g;g="".concat("Filters:","buttons.clear");b.FILTERS_BUTTONS_CLEAR=g;g="".concat("Filters:","buttons.ok");b.FILTERS_BUTTONS_OK=g;g="".concat("Filters:","buttons.cancel");b.FILTERS_BUTTONS_CANCEL=g;g="".concat("Filters:","buttons.placeholder.search");b.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=g;g="".concat("Filters:","buttons.placeholder.value");b.FILTERS_BUTTONS_PLACEHOLDER_VALUE=g;g="".concat("Filters:","buttons.placeholder.secondValue");b.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=g},function(g,b,a){function F(){return"undefined"!= 128typeof Reflect&&Reflect.get?(g.exports=F=Reflect.get.bind(),g.exports.__esModule=!0,g.exports.default=g.exports):(g.exports=F=function(D,A,x){var q=B(D,A);if(q)return q=Object.getOwnPropertyDescriptor(q,A),q.get?q.get.call(3>arguments.length?D:x):q.value},g.exports.__esModule=!0,g.exports.default=g.exports),F.apply(this,arguments)}var B=a(828);g.exports=F;g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){function F(m){return void 0===m}function B(m){return null===m||""===m||F(m)} 129g=a(1);b.__esModule=!0;b._injectProductInfo=function(m,t){var u=!B(m),w="string"==typeof m&&"non-commercial-and-evaluation"===m.toLowerCase(),v="invalid",C="invalid";var y=m="".concat(m||"").replace(/\-/g,"");var z=[][f],E=z;if(y[f]!=="Z".codePointAt(0)-65)y=!1;else{for(var H="",G="B\x3cH4P+".split(""),I=G.shift().codePointAt(0)-65;I;I=(G.shift()||"A").codePointAt(0)-65)--I<""[f]?E|=(parseInt("".concat(parseInt(parseInt(H,16)+(parseInt(y.substr(Math.abs(I),2),16)+[]).padStart(2,"0"),10)),10)%97|| 1302)>>1:H=y.substr(I,I?1===G[f]?9:8:6);y=E===z}if(u||w||y)if(y){v=(0,h.default)("08/07/2022","DD/MM/YYYY");C=Math.floor(v.toDate().getTime()/864E5);var K="".concat(m).replace(/\-/g,"");u="F".codePointAt(0)-65;K=K.substr(18,u);K=parseInt(K,16);m="".concat(m).replace(/\-/g,"");u="B".codePointAt(0)-65;m=m.substr(u,~~![][f]);m=K/(parseInt(m,16)||9);(K=(0,h.default)(864E5*(m+1),"x").format("MMMM DD, YYYY"),C>m)?(m=(0,h.default)().diff(v,"days"),v=1>=m?"valid":"expired",C=15>=m?"valid":"expired"):C=v="valid"}else w? 131(v="non_commercial",C="valid"):(v="invalid",C="invalid");else C=v="missing";"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(v="valid",C="valid");n||"valid"===v||(l[v]({keyValidityDate:K,hotVersion:"12.1.2"})&&console["non_commercial"===v?"info":"warn"](l[v]({keyValidityDate:K,hotVersion:"12.1.2"})),n=!0);"valid"!==C&&t.parentNode&&r[C]({keyValidityDate:K,hotVersion:"12.1.2"})&&(m=document.createElement("div"), 132m.id="hot-display-license-info",m.innerHTML=r[C]({keyValidityDate:K,hotVersion:"12.1.2"}),t.parentNode.insertBefore(m,t.nextSibling))};b.isDefined=function(m){return void 0!==m};b.isEmpty=B;b.isRegExp=function(m){return"[object RegExp]"===Object.prototype.toString.call(m)};b.isUndefined=F;b.stringify=function(m){switch((0,d.default)(m)){case "string":case "number":m="".concat(m);break;case "object":m=null===m?"":m.toString();break;case "undefined":m="";break;default:m=m.toString()}return m};var D= 133g(a(78));a(0);a(69);a(302);a(12);a(67);a(64);a(303);var A,x,q,p,e,c,d=g(a(21)),h=g(a(108)),k=a(79),f="length",n=!1,l={invali
133d:function(){return(0,k.toSingleLine)(A||(A=(0,D.default)(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at [email protected]."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at [email protected]."])))},expired:function(m){var t=m.keyValidityDate;m=m.hotVersion;return(0,k.toSingleLine)(x|| 134(x=(0,D.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at [email protected]."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ", 135". If you need any help, contact us at [email protected]."])),t,m,t)},missing:function(){return(0,k.toSingleLine)(q||(q=(0,D.default)(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at [email protected]."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at [email protected]."])))}, 136non_commercial:function(){return""}},r={invalid:function(){return(0,k.toSingleLine)(p||(p=(0,D.default)(['\n The license key for Handsontable is invalid. \n \x3ca href\x3d"https://handsontable.com/docs/tutorial-license-key.html" target\x3d"_blank"\x3eRead more\x3c/a\x3e on how to \n install it properly or contact us at \x3ca href\x3d"mailto:[email protected]"\[email protected]\x3c/a\x3e.'],['\n The license key for Handsontable is invalid.\\x20\n \x3ca href\x3d"https://handsontable.com/docs/tutorial-license-key.html" target\x3d"_blank"\x3eRead more\x3c/a\x3e on how to\\x20\n install it properly or contact us at \x3ca href\x3d"mailto:[email protected]"\[email protected]\x3c/a\x3e.'])))}, 137expired:function(m){var t=m.keyValidityDate;m=m.hotVersion;return(0,k.toSingleLine)(e||(e=(0,D.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. \x3ca href\x3d"https://handsontable.com/pricing" target\x3d"_blank"\x3eRenew\x3c/a\x3e your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at \x3ca href\x3d"mailto:[email protected]"\[email protected]\x3c/a\x3e.'], 138["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. \x3ca href\x3d"https://handsontable.com/pricing" target\x3d"_blank"\x3eRenew\x3c/a\x3e your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at \x3ca href\x3d"mailto:[email protected]"\[email protected]\x3c/a\x3e.'])),t,m,t)},missing:function(){return(0,k.toSingleLine)(c||(c=(0,D.default)(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n \x3ca href\x3d"https://handsontable.com/docs/tutorial-license-key.html" target\x3d"_blank"\x3eRead more\x3c/a\x3e about it in \n the documentation or contact us at \x3ca href\x3d"mailto:[email protected]"\[email protected]\x3c/a\x3e.'], 139['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'
139non-commercial-and-evaluation\'.\\x20\n \x3ca href\x3d"https://handsontable.com/docs/tutorial-license-key.html" target\x3d"_blank"\x3eRead more\x3c/a\x3e about it in\\x20\n the documentation or contact us at \x3ca href\x3d"mailto:[email protected]"\[email protected]\x3c/a\x3e.'])))}, 140non_commercial:function(){return""}}},function(g,b,a){a(695)},function(g,b,a){g=a(28);b=a(35);var F=a(254).indexOf;a=a(161);var B=b([].indexOf),D=!!B&&0>1/B([1],1,-0);a=a("indexOf");g({target:"Array",proto:!0,forced:D||!a},{indexOf:function(A){var x=1<arguments.length?arguments[1]:void 0;return D?B(this,A,x)||0:F(this,A,x)}})},function(g,b,a){var F=a(446),B=a(772),D=a(309),A=a(448);g.exports=function(x,q){return F(x)||B(x,q)||D(x,q)||A()};g.exports.__esModule=!0;g.exports.default=g.exports},function(g, 141b,a){b=a(174);a=Function.prototype;var F=a.bind,B=a.call,D=b&&F.bind(B,B);g.exports=b?function(A){return A&&D(A)}:function(A){return A&&function(){return B.apply(A,arguments)}}},function(g,b,a){g=a(28);var F=a(141).map;g({target:"Array",proto:!0,forced:!a(184)("map")},{map:function(B){return F(this,B,1<arguments.length?arguments[1]:void 0)}})},function(g,b,a){function F(r,m){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=A(r))||m&&r&&"number"== 142typeof r.length){t&&(r=t);var u=0;m=function(){};return{s:m,n:function(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}},e:function(y){throw y;},f:m}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var w,v=!0,C=!1;return{s:function(){t=t.call(r)},n:function(){var y=t.next();return v=y.done,y},e:function(y){C=!0;w=y},f:function(){try{v||null==t.return||t.return()}finally{if(C)throw w; 143}}}}function B(r,m){if(!(r=function(t){if(Array.isArray(t))return t}(r)||function(t,u){var w=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=w){var v,C=[],y=!0,z=!1;try{for(w=w.call(t);!(y=(v=w.next()).done)&&(C.push(v.value),!u||C.length!==u);y=!0);}catch(H){z=!0;var E=H}finally{try{y||null==w.return||w.return()}finally{if(z)throw E;}}return C}}(r,m)||A(r,m)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 144return r}function D(r){var m=Array.isArray(r)?x(r):void 0;m||(m="undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"]?Array.from(r):void 0);if(!(r=m||A(r)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return r}function A(r,m){if(r){if("string"==typeof r)return x(r,m);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name), 145"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(r,m):void 0}}function x(r,m){(null==m||m>r.length)&&(m=r.length);for(var t=0,u=Array(m);t<m;t++)u[t]=r[t];return u}function q(r,m){for(var t=0;t<m.length;t++){var u=m[t];u.enumerable=u.enumerable||!1;u.configurable=!0;"value"in u&&(u.writable=!0);Object.defineProperty(r,u.key,u)}}a.r(b);a.d(b,"ArgumentTypes",function(){return p});a.d(b,"FunctionPlugin",function(){return l});a(36);a(13);a(68);a(52); 146a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(22);a(26);a(12);var p,e=a(91),c=a(24),d=a(46),h=a(74),k=a(113),f=a(51),n=a(82);!function(r){r.STRING="STRING";r.NUMBER="NUMBER";r.BOOLEAN="BOOLEAN";r.SCALAR="SCALAR";r.NOERROR="NOERROR";r.RANGE="RANGE";r.INTEGER="INTEGER";r.COMPLEX="COMPLEX";r.ANY="ANY"}(p||(p={}));var l=function(){function r(t){var u=this;if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");!0;this.coerceScalarToNumberOrError=function(w){return u.arithmeticHelper.coerceScalarToNumberOrError(w)}; 147this.runFunction=function(w,v,C,y){var z,E,H,G,I,K,J=C.parameters||[];if((K=C.expandRanges?u.listOfScalarValues(w,v):w.map(function(L){return[u.evaluateAst(L,v),!1]}),void 0===C.repeatLastArgs&&J.length<K.length)||void 0!==C.repeatLastArgs&&J.length<K.length&&0!=(K.length-J.length)%C.repeatLastArgs)return new c.CellError(c.ErrorType.NA,d.ErrorMessage.WrongArgNumber);for(J=D(J);J.length<K.length;){var P;(P=J).push.apply(P,D(J.slice(J.length-C.repeatLastArgs)))}P=w=1;if(!C.vectorizationForbidden&&v.arraysFlag)for(var S= 1480;S<K.length;S++){var R=B(K[S],1)[0];R instanceof n.SimpleRangeValue&&J[S].argumentType!==p.RANGE&&J[S].argumentType!==p.ANY&&(P=Math.max(P,R.height()),w=Math.max(w,R.width()))}for(S=K.length;S<J.length;S++)if(void 0===(null===(z=J[S])||void 0===z?void 0:z.defaultValue)&&(null===(E=J[S])||void 0===E||!E.optionalArg))return new c.CellError(c.ErrorType.NA,d.ErrorMessage.WrongArgNumber);z=[];for(E=0;E<P;E++){S=[];for(R=0;R<w;R++){for(var O=void 0,N=[],Q=0;Q<J.length;Q++){var M=B(null!==(H=K[Q])&&void 0!== 149H?H:[void 0,void 0],2),T=M[0];M=M[1];T instanceof n.SimpleRangeValue&&J[Q].argumentType!==p.RANGE&&J[Q].argumentType!==p.ANY&&!C.vectorizationForbidden&&v.arraysFlag&&(T=null===(G=T.data[1!==T.height()?E:0])||void 0===G?void 0:G[1!==T.width()?R:0]);var Z=null!=T?T:null===(I=J[Q])||void 0===I?void 0:I.defaultValue;void 0===Z?N.push(void 0):(T=void 0!==T?u.coerceToType(Z,J[Q],v):Z,void 0!==T?(T instanceof c.CellError&&J[Q].argumentType!==p.SCALAR&&(O=null!=O?O:T),N.push(T)):M||(O=null!=O?O:new c.CellError(c.ErrorType.VALUE, 150d.ErrorMessage.WrongType)))}O=null!=O?O:u.returnNumberWrapper(y.apply(void 0,N),C.returnNumberType);if(1===P&&1===w)return O;if(O instanceof n.SimpleRangeValue)throw"Function returning array cannot be vectorized.";S.push(O)}z.push(S)}return n.SimpleRangeValue.onlyValues(z)};this.runFunctionWithReferenceArgument=function(w,v,C,y,z){var E=5<arguments.length&&void 0!==arguments[5]?arguments[5]:function(){return new c.CellError(c.ErrorType.NA,d.ErrorMessage.CellRefExpected)};if(0===w.length)return u.returnNumberWrapper(y(), 151C.returnNumberType);if(1<w.length)return new c.CellError(c.ErrorType.NA,d.ErrorMessage.WrongArgNumber);for(var H,G=w[0];G.type===h.AstNodeType.PARENTHESIS;)G=G.expression;if(G.type===h.AstNodeType.CELL_REFERENCE)H=G.reference.toSimpleCellAddress(v.formulaAddress);else if(G.type===h.AstNodeType.CELL_RANGE||G.type===h.AstNodeType.COLUMN_RANGE||G.type===h.AstNodeType.ROW_RANGE)try{H=e.AbsoluteCellRange.fromAst(G,v.formulaAddress).start}catch(I){return new c.CellError(c.ErrorType.REF,d.ErrorMessage.CellRefExpected)}return void 0!== 152H?u.returnNumberWrapper(z(H),C.returnNumberType):u.runFunction(w,v,C,E)};this.interpreter=t;this.dependencyGraph=t.dependencyGraph;this.columnSearch=t.columnSearch;this.config=t.config;this.serialization=t.serialization;this.arraySizePredictor=t.arraySizePredictor;this.dateTimeHelper=t.dateTimeHelper;this.arithmeticHelper=t.arithmeticHelper}var m;return m=[{key:"evaluateAst",value:function(t,u){return this.interpreter.evaluateAst(t,u)}
152},{key:"arraySizeForAst",value:function(t,u){return this.arraySizePredictor.checkArraySizeForAst(t, 153u)}},{key:"listOfScalarValues",value:function(t,u){var w,v=[];t=F(t);try{for(t.s();!(w=t.n()).done;){var C=this.evaluateAst(w.value,u);if(C instanceof n.SimpleRangeValue){var y,z=F(C.valuesFromTopLeftCorner());try{for(z.s();!(y=z.n()).done;)v.push([y.value,!0])}catch(E){z.e(E)}finally{z.f()}}else v.push([C,!1])}}catch(E){t.e(E)}finally{t.f()}return v}},{key:"coerceToType",value:function(t,u,w){if(t instanceof n.SimpleRangeValue)switch(u.argumentType){case p.RANGE:case p.ANY:var v=t;break;default:if(t= 154Object(k.coerceRangeToScalar)(t,w),void 0===t)return}if(!(t instanceof n.SimpleRangeValue))switch(u.argumentType){case p.INTEGER:case p.NUMBER:v=this.coerceScalarToNumberOrError(t);if(!Object(f.isExtendedNumber)(v))break;t=Object(f.getRawValue)(v);if(void 0!==u.maxValue&&t>u.maxValue)return new c.CellError(c.ErrorType.NUM,d.ErrorMessage.ValueLarge);if(void 0!==u.minValue&&t<u.minValue)return new c.CellError(c.ErrorType.NUM,d.ErrorMessage.ValueSmall);if(void 0!==u.lessThan&&t>=u.lessThan)return new c.CellError(c.ErrorType.NUM, 155d.ErrorMessage.ValueLarge);if(void 0!==u.greaterThan&&t<=u.greaterThan)return new c.CellError(c.ErrorType.NUM,d.ErrorMessage.ValueSmall);if(u.argumentType===p.INTEGER&&!Number.isInteger(t))return new c.CellError(c.ErrorType.NUM,d.ErrorMessage.IntegerExpected);break;case p.STRING:v=Object(k.coerceScalarToString)(t);break;case p.BOOLEAN:v=Object(k.coerceScalarToBoolean)(t);break;case p.SCALAR:case p.NOERROR:case p.ANY:v=t;break;case p.RANGE:if(t instanceof c.CellError)return t;v=Object(k.coerceToRange)(t); 156break;case p.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(f.getRawValue)(t))}return u.passSubtype||void 0===v?v:Object(f.getRawValue)(v)}},{key:"metadata",value:function(t){var u=this.constructor.implementedFunctions[t];if(void 0!==u)return u;throw Error("No metadata for function ".concat(t,"."));}},{key:"returnNumberWrapper",value:function(t,u,w){return void 0!==u&&Object(f.isExtendedNumber)(t)?this.arithmeticHelper.ExtendedNumberFactory(Object(f.getRawValue)(t),{type:u,format:w}): 157t}}],q(r.prototype,m),Object.defineProperty(r,"prototype",{writable:!1}),r}()},function(g,b){g.exports=function(a){try{return!!a()}catch(F){return!0}}},function(g,b,a){g=a(28);var F=a(141).filter;g({target:"Array",proto:!0,forced:!a(184)("filter")},{filter:function(B){return F(this,B,1<arguments.length?arguments[1]:void 0)}})},function(g,b,a){function F(aa){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&& 158W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(aa)}function B(aa,W){for(var ca=0;ca<W.length;ca++){var ia=W[ca];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=!0);Object.defineProperty(aa,ia.key,ia)}}function D(aa,W,ca){return W&&B(aa.prototype,W),ca&&B(aa,ca),Object.defineProperty(aa,"prototype",{writable:!1}),aa}function A(aa,W){if(!(aa instanceof W))throw new TypeError("Cannot call a class as a function");}function x(aa,W){if("function"!=typeof W&& 159null!==W)throw new TypeError("Super expression must either be null or a function");aa.prototype=Object.create(W&&W.prototype,{constructor:{value:aa,writable:!0,configurable:!0}});Object.defineProperty(aa,"prototype",{writable:!1});W&&d(aa,W)}function q(aa){var W=c();return function(){var ca=h(aa);if(W){var ia=h(this).constructor;ca=Reflect.construct(ca,arguments,ia)}else ca=ca.apply(this,arguments);if(!ca||"object"!==F(ca)&&"function"!=typeof ca){if(void 0!==ca)throw new TypeError("Derived constructors may only return object or undefined"); 160if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");ca=this}return ca}}function p(aa){var W="function"==typeof Map?new Map:void 0;return(p=function(ca){function ia(){return e(ca,arguments,h(this).constructor)}if(null===ca||(ba=ca,-1===Function.toString.call(ba).indexOf("[native code]")))return ca;var ba;if("function"!=typeof ca)throw new TypeError("Super expression must either be null or a function");if(void 0!==W){if(W.has(ca))return W.get(ca);W.set(ca, 161ia)}return ia.prototype=Object.create(ca.prototype,{constructor:{value:ia,enumerable:!1,writable:!0,configurable:!0}}),d(ia,ca)})(aa)}function e(aa,W,ca){return(e=c()?Reflect.construct.bind():function(ia,ba,fa){var ja=[null];ja.push.apply(ja,ba);ia=new (Function.bind.apply(ia,ja));return fa&&d(ia,fa.prototype),ia}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 162[],function(){})),!0}catch(aa){return!1}}
162function d(aa,W){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ca,ia){return ca.__proto__=ia,ca})(aa,W)}function h(aa){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)})(aa)}function k(aa,W){switch(F(W)){case "function":case "symbol":return W.toString();case "bigint":return"BigInt("+W.toString()+")";default:return W instanceof RegExp?"RegExp("+W.toString()+")":W}}a.r(b); 163a.d(b,"NoSheetWithIdError",function(){return f});a.d(b,"NoSheetWithNameError",function(){return n});a.d(b,"SheetNameAlreadyTakenError",function(){return l});a.d(b,"SheetSizeLimitExceededError",function(){return r});a.d(b,"NotAFormulaError",function(){return m});a.d(b,"InvalidAddressError",function(){return t});a.d(b,"InvalidArgumentsError",function(){return u});a.d(b,"SheetsNotEqual",function(){return w});a.d(b,"NamedExpressionNameIsAlreadyTakenError",function(){return v});a.d(b,"NamedExpressionNameIsInvalidError", 164function(){return C});a.d(b,"NamedExpressionDoesNotExistError",function(){return y});a.d(b,"NoOperationToUndoError",function(){return z});a.d(b,"NoOperationToRedoError",function(){return E});a.d(b,"NothingToPasteError",function(){return H});a.d(b,"UnableToParseError",function(){return G});a.d(b,"ExpectedValueOfTypeError",function(){return I});a.d(b,"ConfigValueEmpty",function(){return K});a.d(b,"ConfigValueTooSmallError",function(){return J});a.d(b,"ConfigValueTooBigError",function(){return P});a.d(b, 165"ExpectedOneOfValuesError",function(){return S});a.d(b,"EvaluationSuspendedError",function(){return R});a.d(b,"MissingTranslationError",function(){return O});a.d(b,"ProtectedFunctionTranslationError",function(){return N});a.d(b,"LanguageNotRegisteredError",function(){return Q});a.d(b,"LanguageAlreadyRegisteredError",function(){return M});a.d(b,"FunctionPluginValidationError",function(){return T});a.d(b,"ProtectedFunctionError",function(){return Z});a.d(b,"SourceLocationHasArrayError",function(){return L}); 166a.d(b,"TargetLocationHasArrayError",function(){return U});a.d(b,"NoRelativeAddressesAllowedError",function(){return V});a.d(b,"AliasAlreadyExisting",function(){return Y});a(18);a(0);a(69);a(101);a(12);a(25);a(7);a(3);a(32);a(2);a(4);a(8);a(9);a(10);var f=function(aa){function W(ia){return A(this,W),ca.call(this,"There's no sheet with id \x3d ".concat(ia))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),n=function(aa){function W(ia){return A(this,W),ca.call(this,"There's no sheet with name '".concat(ia, 167"'"))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),l=function(aa){function W(ia){return A(this,W),ca.call(this,"Sheet with name ".concat(ia," already exists"))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),r=function(aa){function W(){return A(this,W),ca.call(this,"Sheet size limit exceeded")}x(W,aa);var ca=q(W);return D(W)}(p(Error)),m=function(aa){function W(){return A(this,W),ca.call(this,"This is not a formula")}x(W,aa);var ca=q(W);return D(W)}(p(Error)),t=function(aa){function W(ia){return A(this, 168W),ca.call(this,"Address (row \x3d ".concat(ia.row,", col \x3d ").concat(ia.col,") is invalid"))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),u=function(aa){function W(ia){return A(this,W),ca.call(this,"Invalid arguments, expected ".concat(ia))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),w=function(aa){function W(ia,ba){return A(this,W),ca.call(this,"Sheets ".concat(ia," and ").concat(ba," are not equal."))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),v=function(aa){function W(ia){return A(this,W),ca.call(this, 169"Name of Named Expression '".concat(ia,"' is already present"))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),C=function(aa){function W(ia){return A(this,W),ca.call(this,"Name of Named Expression '".concat(ia,"' is invalid"))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),y=function(aa){function W(ia){return A(this,W),ca.call(this,"Named Expression '".concat(ia,"' does not exist"))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),z=function(aa){function W(){return A(this,W),ca.call(this,"There is no operation to undo")} 170x(W,aa);var ca=q(W);return D(W)}
170(p(Error)),E=function(aa){function W(){return A(this,W),ca.call(this,"There is no operation to redo")}x(W,aa);var ca=q(W);return D(W)}(p(Error)),H=function(aa){function W(){return A(this,W),ca.call(this,"There is nothing to paste")}x(W,aa);var ca=q(W);return D(W)}(p(Error)),G=function(aa){function W(ia){return A(this,W),ca.call(this,"Unable to parse value: ".concat(JSON.stringify(ia,k,4)))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),I=function(aa){function W(ia,ba){return A(this, 171W),ca.call(this,"Expected value of type: ".concat(ia," for config parameter: ").concat(ba))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),K=function(aa){function W(ia){return A(this,W),ca.call(this,"Config parameter ".concat(ia," cannot be empty."))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),J=function(aa){function W(ia,ba){return A(this,W),ca.call(this,"Config parameter ".concat(ia," should be at least ").concat(ba))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),P=function(aa){function W(ia,ba){return A(this, 172W),ca.call(this,"Config parameter ".concat(ia," should be at most ").concat(ba))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),S=function(aa){function W(ia,ba){return A(this,W),ca.call(this,"Expected one of ".concat(ia," for config parameter: ").concat(ba))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),R=function(aa){function W(){return A(this,W),ca.call(this,"Computations are suspended")}x(W,aa);var ca=q(W);return D(W)}(p(Error)),O=function(aa){function W(ia){return A(this,W),ca.call(this,"Translation for ".concat(ia, 173" is missing in the translation package you're using."))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),N=function(aa){function W(ia){return A(this,W),ca.call(this,"Cannot register translation for function with id: ".concat(ia))}x(W,aa);var ca=q(W);return D(W)}(p(Error)),Q=function(aa){function W(){return A(this,W),ca.call(this,"Language not registered.")}x(W,aa);var ca=q(W);return D(W)}(p(Error)),M=function(aa){function W(){return A(this,W),ca.call(this,"Language already registered.")}x(W,aa);var ca= 174q(W);return D(W)}(p(Error)),T=function(aa){function W(){return A(this,W),ca.apply(this,arguments)}x(W,aa);var ca=q(W);return D(W,null,[{key:"functionNotDeclaredInPlugin",value:function(ia,ba){return new W("Function with id ".concat(ia," not declared in plugin ").concat(ba))}},{key:"functionMethodNotFound",value:function(ia,ba){return new W("Function method ".concat(ia," not found in plugin ").concat(ba))}}]),W}(p(Error)),Z=function(aa){function W(){return A(this,W),ca.apply(this,arguments)}x(W,aa); 175var ca=q(W);return D(W,null,[{key:"cannotRegisterFunctionWithId",value:function(ia){return new W("Cannot register function with id ".concat(ia))}},{key:"cannotUnregisterFunctionWithId",value:function(ia){return new W("Cannot unregister function with id ".concat(ia))}},{key:"cannotUnregisterProtectedPlugin",value:function(){return new W("Cannot unregister protected plugin")}}]),W}(p(Error)),L=function(aa){function W(){return A(this,W),ca.call(this,"Cannot perform this operation, source location has an array inside.")} 176x(W,aa);var ca=q(W);return D(W)}(p(Error)),U=function(aa){function W(){return A(this,W),ca.call(this,"Cannot perform this operation, target location has an array inside.")}x(W,aa);var ca=q(W);return D(W)}(p(Error)),V=function(aa){function W(){return A(this,W),ca.call(this,"Relative addresses not allowed in named expressions.")}x(W,aa);var ca=q(W);return D(W)}(p(Error)),Y=function(aa){function W(ia,ba){return A(this,W),ca.call(this,"Alias id ".concat(ia," in plugin ").concat(ba," already defined as a function or alias."))} 177x(W,aa);var ca=q(W);return D(W)}(p(Error))},function(g,b){g.exports=function(a,F,B){return F in a?Object.defineProperty(a,F,{value:B,enumerable:!0,configurable:!0,writable:!0}):a[F]=B,a};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){g=a(28);var F=a(254).includes;b=a(38);a=a(186);g({target:"Array",proto:!0,forced:b(function(){return!Array(1).includes()})},{includes:function(B){return F(this,B,1<arguments.length?arguments[1]:void 0)}});a("includes")},function(g,b,a){var F=a(773), 178B=a(449),D=a(309),A=a(774);g.exports=function(x){return F(x)||B(x)||D(x)||A()};g.exports.__esModule=!0;g.exports.default=g.exports}
178,function(g,b){g.exports=function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b){b=function(a){return a&&a.Math==Math&&a};g.exports=b("object"==typeof globalThis&&globalThis)||b("object"==typeof window&&window)||b("object"==typeof self&& 179self)||b("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(g,b,a){function F(D,A){for(var x=0;x<A.length;x++){var q=A[x];q.enumerable=q.enumerable||!1;q.configurable=!0;"value"in q&&(q.writable=!0);Object.defineProperty(D,q.key,q)}}a.r(b);a.d(b,"ErrorMessage",function(){return B});var B=function(D,A,x){return A&&F(D.prototype,A),x&&F(D,x),Object.defineProperty(D,"prototype",{writable:!1}),D}(function A(){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function"); 180!0});B.DistinctSigns="Distinct signs.";B.WrongArgNumber="Wrong number of arguments.";B.EmptyArg="Empty function argument.";B.EmptyArray="Empty array not allowed.";B.ArrayDimensions="Array dimensions are not compatible.";B.NoSpaceForArrayResult="No space for array result.";B.ValueSmall="Value too small.";B.ValueLarge="Value too large.";B.BadCriterion="Incorrect criterion.";B.RangeManySheets="Range spans more than one sheet.";B.CellRangeExpected="Cell range expected.";B.WrongDimension="Wrong range dimension."; 181B.ScalarExpected="Cell range not allowed.";B.NumberCoercion="Value cannot be coerced to number.";B.NumberExpected="Number argument expected.";B.IntegerExpected="Value needs to be an integer.";B.BadMode="Mode not recognized.";B.DateBounds="Date outside of bounds.";B.OutOfSheet="Resulting reference is out of the sheet.";B.WrongType="Wrong type of argument.";B.NaN="NaN or infinite value encountered.";B.EqualLength="Ranges need to be of equal length.";B.Negative="Value cannot be negative.";B.NotBinary= 182"String does not represent a binary number.";B.NotOctal="String does not represent an octal number.";B.NotHex="String does not represent a hexadecimal number.";B.EndStartPeriod="End period needs to be at least start period.";B.CellRefExpected="Cell reference expected.";B.EmptyRange="Empty range not allowed.";B.BadRef="Address is not correct.";B.NumberRange="Number-only range expected.";B.ValueNotFound="Value not found.";B.ValueBaseLarge="Value in base too large.";B.ValueBaseSmall="Value in base too small."; 183B.ValueBaseLong="Value in base too long.";B.NegativeLength="Length cannot be negative.";B.PatternNotFound="Pattern not found.";B.OneValue="Needs at least one value.";B.TwoValues="Range needs to contain at least two elements.";B.ThreeValues="Range needs to contain at least three elements.";B.IndexBounds="Index out of bounds.";B.IndexLarge="Index too large.";B.Formula="Expected formula.";B.NegativeCount="Count cannot be negative.";B.ParseError="Parsing error.";B.SheetRef="Sheet does not exist.";B.PeriodLong= 184"Period number cannot exceed life length.";B.InvalidDate="Invalid date.";B.BitshiftLong="Result of bitshift is too long.";B.EmptyString="Empty-string argument not allowed.";B.LengthBounds="Length out of bounds.";B.NegativeTime="Time cannot be negative.";B.NoDefault="No default option.";B.Selector="Selector cannot exceed the number of arguments.";B.StartEndDate="Start date needs to be earlier than end date.";B.IncorrectDateTime="String does not represent correct DateTime.";B.CharacterCodeBounds="Character code out of bounds."; 185B.NonZero="Argument cannot be 0.";B.LessThanOne="Argument cannot be less than 1.";B.WeekendString="Incorrect weekend bitmask string.";B.InvalidRoman="Invalid roman numeral.";B.WrongOrder="Wrong order of values.";B.ComplexNumberExpected="Complex number expected.";B.ShouldBeIorJ="Should be 'i' or 'j'.";B.SizeMismatch="Array dimensions mismatched.";B.FunctionName=function(A){return"Function name ".concat(A," not recognized.")};B.NamedExpressionName=function(A){return"Named expression ".concat(A," not recognized.")}; 186B.LicenseKey=function(A){return"License key is ".concat(A,".")}},function(g,b,a){function F(A){var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],q=(0,D.default)(A);if("number"===q)return!isNaN(A)&&isFinite(A);if("string"===q){if(0===A.length)return!1;if(1===A.length)return/\d/.test(A);x=Array.from(new Set(["."].concat((0,B.default)(x)))).map(function(p){return"\\".concat(p)}).join("|");return(new RegExp("^[+-]?\\s*(((".concat(x,")?\\d+((").concat(x,")\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$"), 187"i")).test(A.trim())}return"object"===q&&!(!A||"number"!=typeof A.valueOf()||A instanceof Date)}g=a(1);b.__esModule=!0;b.isNumeric=F;b.isNumericLike=function(A){return F(A,[","])};b.rangeEach=function(A,x,q){var p=-1;for("function"==typeof x?(q=x,x=A):p=A-1;++p<=x&&!1!==q(p););};b.rangeEachReverse=function(A,x,q){A+=1;for("function"==typeof x&&(q=x,x=0);--A>=x&&!1!==q(A););};b.valueAccordingPercent=function(A,x){return x=parseInt(x.toString().replace("%",""),10),x=isNaN(x)?0:x,parseInt(A*x/100,10)}; 188a(12);a(76);a(36);a(22);a(2);a(3);a(0);a(54);a(4);a(18);a(101);a(69);a(118);a(67);var B=g(a(43)),D=g(a(21))},function(g,b,a){function F(ha){return ha&&0===ha.length}function B(ha){return null==ha?[]:Object.keys(ha)}function D(ha){for(var na=[],oa=Object.keys(ha),ma=0;ma<oa.length;ma++)na.push(ha[oa[ma]]);return na}function A(ha,na){for(var oa=[],ma=B(ha),pa=0;pa<ma.length;pa++){var sa=ma[pa];oa.push(na.call(null,ha[sa],sa))}return oa}function x(ha,na){for(var oa=[],ma=0;ma<ha.length;ma++)oa.push(na.call(null, 189ha[ma],ma));return oa}function q(ha){for(var na=[],oa=0;oa<ha.length;oa++){var ma=ha[oa];Array.isArray(ma)?na=na.concat(q(ma)):na.push(ma)}return na}function p(ha){return F(ha)?void 0:ha[0]}function e(ha){var na=ha&&ha.length;return na?ha[na-1]:void 0}function c(ha,na){if(Array.isArray(ha))for(var oa=0;oa<ha.length;oa++)na.call(null,ha[oa],oa);else{if(!J(ha))throw Error("non exhaustive match");var ma=B(ha);for(oa=0;oa<ma.length;oa++){var pa=ma[oa];na.call(null,ha[pa],pa)}}}function d(ha){return"string"== 190typeof ha}function h(ha){return void 0===ha}function k(ha){return ha instanceof Function}function f(ha,na){return void 0===na&&(na=1),ha.slice(na,ha.length)}function n(ha,na){return void 0===na&&(na=1),ha.slice(0,ha.length-na)}function l(ha,na){var oa=[];if(Array.isArray(ha))for(var ma=0;ma<ha.length;ma++){var pa=ha[ma];na.call(null,pa)&&oa.push(pa)}return oa}function r(ha,na){return l(ha,function(oa){return!na(oa)})}function m(ha,na){for(var oa=Object.keys(ha),ma={},pa=0;pa<oa.length;pa++){var sa= 191oa[pa],va=ha[sa];na(va)&&(ma[sa]=va)}return ma}function t(ha,na){return!!J(ha)&&ha.hasOwnProperty(na)}function u(ha,na){return void 0!==C(ha,function(oa){return oa===na})}function w(ha){for(var na=[],oa=0;oa<ha.length;oa++)na.push(ha[oa]);return na}function v(ha){var na={},oa;for(oa in ha)Object.prototype.hasOwnProperty.call(ha,oa)&&(na[oa]=ha[oa]);return na}function C(ha,na){for(var oa=0;oa<ha.length;oa++){var ma=ha[oa];if(na.call(null,ma))return ma}}function y(ha,na){for(var oa=[],ma=0;ma<ha.length;ma++){var pa= 192ha[ma];na.call(null,pa)&&oa.push(pa)}return oa}function z(ha,na,oa){var ma=Array.isArray(ha),pa=ma?ha:D(ha);ha=ma?[]:B(ha);for(var sa=0;sa<pa.length;sa++)oa=na.call(null,oa,pa[sa],ma?sa:ha[sa]);return oa}function E(ha){return r(ha,function(na){return null==na})}function H(ha,na){void 0===na&&(na=function(ma){return ma});var oa=[];return z(ha,function(ma,pa){var sa=na(pa);return u(oa,sa)?ma:(oa.push(sa),ma.concat(pa))},[])}function G(ha){for(var na=[],oa=1;oa<arguments.length;oa++)na[oa-1]=arguments[oa]; 193na=[null].concat(na);return Function.bind.apply(ha,na)}function I(ha){return Array.isArray(ha)}function K(ha){return ha instanceof RegExp}function J(ha){return ha instanceof Object}function P(ha,na){for(var oa=0;oa<ha.length;oa++)if(!na(ha[oa],oa))return!1;return!0}function S(ha,na){return r(ha,function(oa){return u(na,oa)})}function R(ha,na){for(var oa=0;oa<ha.length;oa++)if(na(ha[oa]))return!0;return!1}function O(ha,na){for(var oa=0;oa<ha.length;oa++)if(ha[oa]===na)return oa;return-1}function N(ha, 194na){ha=w(ha);return ha.sort(function(oa,ma){return na(oa)-na(ma)}),ha}function Q(ha,na){if(ha.length!==na.length)throw Error("can't zipObject with different number of keys and values!");for(var oa={},ma=0;ma<ha.length;ma++)oa[ha[ma]]=na[ma];return oa}function M(ha){for(var na=[],oa=1;oa<arguments.length;oa++)na[oa-1]=arguments[oa];for(oa=0;oa<na.length;oa++)for(var ma=na[oa],pa=B(ma),sa=0;sa<pa.length;sa++){var va=pa[sa];ha[va]=ma[va]}return ha}function T(ha){for(var na=[],oa=1;oa<arguments.length;oa++)na[oa- 1951]=arguments[oa];for(oa=0;oa<na.length;oa++){var ma=na[oa];if(!h(ma))for(var pa=B(ma),sa=0;sa<pa.length;sa++){var va=pa[sa];t(ha,va)||(ha[va]=ma[va])}}return ha}function Z(){for(var ha=[],na=0;na<arguments.length;na++)ha[na]=arguments[na];return T.apply(null,[{}].concat(ha))}function L(ha,na){var oa={};return c(ha,function(ma){var pa=na(ma),sa=oa[pa];sa?sa.push(ma):oa[pa]=[ma]}),oa}
195function U(ha,na){ha=v(ha);for(var oa=B(na),ma=0;ma<oa.length;ma++){var pa=oa[ma];ha[pa]=na[pa]}return ha}function V(){} 196function Y(ha){return ha}function aa(ha){for(var na=[],oa=0;oa<ha.length;oa++){var ma=ha[oa];na.push(void 0!==ma?ma:void 0)}return na}function W(ha){console&&console.error&&console.error("Error: "+ha)}function ca(ha){console&&console.warn&&console.warn("Warning: "+ha)}function ia(){return"function"==typeof Map}function ba(ha,na){na.forEach(function(oa){var ma=oa.prototype;Object.getOwnPropertyNames(ma).forEach(function(pa){if("constructor"!==pa){var sa=Object.getOwnPropertyDescriptor(ma,pa);sa&&(sa.get|| 197sa.set)?Object.defineProperty(ha.prototype,pa,sa):ha.prototype[pa]=oa.prototype[pa]}})})}function fa(ha){function na(){}na.prototype=ha;new na;return ha}function ja(ha){return ha[ha.length-1]}function qa(ha){var na=(new Date).getTime();ha=ha();return{time:(new Date).getTime()-na,value:ha}}a.r(b);a.d(b,"isEmpty",function(){return F});a.d(b,"keys",function(){return B});a.d(b,"values",function(){return D});a.d(b,"mapValues",function(){return A});a.d(b,"map",function(){return x});a.d(b,"flatten",function(){return q}); 198a.d(b,"first",function(){return p});a.d(b,"last",function(){return e});a.d(b,"forEach",function(){return c});a.d(b,"isString",function(){return d});a.d(b,"isUndefined",function(){return h});a.d(b,"isFunction",function(){return k});a.d(b,"drop",function(){return f});a.d(b,"dropRight",function(){return n});a.d(b,"filter",function(){return l});a.d(b,"reject",function(){return r});a.d(b,"pick",function(){return m});a.d(b,"has",function(){return t});a.d(b,"contains",function(){return u});a.d(b,"cloneArr", 199function(){return w});a.d(b,"cloneObj",function(){return v});a.d(b,"find",function(){return C});a.d(b,"findAll",function(){return y});a.d(b,"reduce",function(){return z});a.d(b,"compact",function(){return E});a.d(b,"uniq",function(){return H});a.d(b,"partial",function(){return G});a.d(b,"isArray",function(){return I});a.d(b,"isRegExp",function(){return K});a.d(b,"isObject",function(){return J});a.d(b,"every",function(){return P});a.d(b,"difference",function(){return S});a.d(b,"some",function(){return R}); 200a.d(b,"indexOf",function(){return O});a.d(b,"sortBy",function(){return N});a.d(b,"zipObject",function(){return Q});a.d(b,"assign",function(){return M});a.d(b,"assignNoOverwrite",function(){return T});a.d(b,"defaults",function(){return Z});a.d(b,"groupBy",function(){return L});a.d(b,"merge",function(){return U});a.d(b,"NOOP",function(){return V});a.d(b,"IDENTITY",function(){return Y});a.d(b,"packArray",function(){return aa});a.d(b,"PRINT_ERROR",function(){return W});a.d(b,"PRINT_WARNING",function(){return ca}); 201a.d(b,"isES2015MapSupported",function(){return ia});a.d(b,"applyMixins",function(){return ba});a.d(b,"toFastProperties",function(){return fa});a.d(b,"peek",function(){return ja});a.d(b,"timer",function(){return qa})},function(g,b,a){g=a(28);b=a(35);var F=a(260),B=a(94),D=a(73);a=a(262);var A=b("".indexOf);g({target:"String",proto:!0,forced:!a("includes")},{includes:function(x){return!!~A(D(B(this)),D(F(x)),1<arguments.length?arguments[1]:void 0)}})},function(g,b,a){b.__esModule=!0;b.PLUGIN_KEY=b.BasePlugin= 202void 0;g=a(922);b.PLUGIN_KEY=g.PLUGIN_KEY;b.BasePlugin=g.BasePlugin},function(g,b,a){function F(y){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(z){return typeof z}:function(z){return z&&"function"==typeof Symbol&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z})(y)}function B(y,z){if("function"!=typeof z&&null!==z)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(z&&z.prototype,{constructor:{value:y, 203writable:!0,configurable:!0}});Object.defineProperty(y,"prototype",{writable:!1});z&&D(y,z)}function D(y,z){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,H){return E.__proto__=H,E})(y,z)}function A(y){var z=function(){if("undefined"==typeof Reflect||!Reflect.construct||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 E=x(y); 204if(z){var H=x(this).constructor;E=Reflect.construct(E,arguments,H)}else E=E.apply(this,arguments);if(!E||"object"!==F(E)&&"function"!=typeof E){if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");E=this}return E}}
204function x(y){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)})(y)}function q(y, 205z){if(!(y instanceof z))throw new TypeError("Cannot call a class as a function");}function p(y,z){for(var E=0;E<z.length;E++){var H=z[E];H.enumerable=H.enumerable||!1;H.configurable=!0;"value"in H&&(H.writable=!0);Object.defineProperty(y,H.key,H)}}function e(y,z,E){return z&&p(y.prototype,z),E&&p(y,E),Object.defineProperty(y,"prototype",{writable:!1}),y}function c(y){return y instanceof r?y.val:y}function d(y,z){if("number"==typeof y)return z;z=y.fromNumber(z);return z.format=y.format,z}function h(y){return"number"== 206typeof y||y instanceof r}function k(y){return y instanceof r?y.getDetailedType():m.NUMBER_RAW}function f(y){return y instanceof r?y.format:void 0}function n(y){return y instanceof r?{type:y.getDetailedType(),format:y.format}:{type:m.NUMBER_RAW}}a.r(b);a.d(b,"EmptyValue",function(){return l});a.d(b,"getRawValue",function(){return c});a.d(b,"RichNumber",function(){return r});a.d(b,"cloneNumber",function(){return d});a.d(b,"DateNumber",function(){return t});a.d(b,"CurrencyNumber",function(){return u}); 207a.d(b,"TimeNumber",function(){return w});a.d(b,"DateTimeNumber",function(){return v});a.d(b,"PercentNumber",function(){return C});a.d(b,"isExtendedNumber",function(){return h});a.d(b,"NumberType",function(){return m});a.d(b,"getTypeOfExtendedNumber",function(){return k});a.d(b,"getFormatOfExtendedNumber",function(){return f});a.d(b,"getTypeFormatOfExtendedNumber",function(){return n});a(8);a(9);a(0);a(25);a(7);a(10);a(3);a(2);a(4);var l=Symbol("Empty value"),r=function(){function y(z,E){q(this,y); 208this.val=z;this.format=E}return e(y,[{key:"fromNumber",value:function(z){return new this.constructor(z)}}]),y}(),m,t=function(y){function z(){return q(this,z),E.apply(this,arguments)}B(z,y);var E=A(z);return e(z,[{key:"getDetailedType",value:function(){return m.NUMBER_DATE}}]),z}(r),u=function(y){function z(){return q(this,z),E.apply(this,arguments)}B(z,y);var E=A(z);return e(z,[{key:"getDetailedType",value:function(){return m.NUMBER_CURRENCY}}]),z}(r),w=function(y){function z(){return q(this,z), 209E.apply(this,arguments)}B(z,y);var E=A(z);return e(z,[{key:"getDetailedType",value:function(){return m.NUMBER_TIME}}]),z}(r),v=function(y){function z(){return q(this,z),E.apply(this,arguments)}B(z,y);var E=A(z);return e(z,[{key:"getDetailedType",value:function(){return m.NUMBER_DATETIME}}]),z}(r),C=function(y){function z(){return q(this,z),E.apply(this,arguments)}B(z,y);var E=A(z);return e(z,[{key:"getDetailedType",value:function(){return m.NUMBER_PERCENT}}]),z}(r);!function(y){y.NUMBER_RAW="NUMBER_RAW"; 210y.NUMBER_DATE="NUMBER_DATE";y.NUMBER_TIME="NUMBER_TIME";y.NUMBER_DATETIME="NUMBER_DATETIME";y.NUMBER_CURRENCY="NUMBER_CURRENCY";y.NUMBER_PERCENT="NUMBER_PERCENT"}(m||(m={}))},function(g,b,a){var F=a(72);g=a(45);var B=a(35),D=a(180);b=a(96);var A=a(65),x=a(270),q=a(128),p=a(177),e=a(335),c=a(38),d=a(157).f,h=a(114).f,k=a(80).f,f=a(368),n=a(369).trim,l=g.Number,r=l.prototype,m=g.TypeError,t=B("".slice),u=B("".charCodeAt),w=function(z){z=e(z,"number");return"bigint"==typeof z?z:v(z)},v=function(z){var E, 211H,G,I;z=e(z,"number");if(p(z))throw m("Cannot convert a Symbol value to a number");if("string"==typeof z&&2<z.length)if(z=n(z),43===(E=u(z,0))||45===E){if(88===(H=u(z,2))||120===H)return NaN}else if(48===E){switch(u(z,1)){case 66:case 98:E=2;H=49;break;case 79:case 111:E=8;H=55;break;default:return+z}var K=(z=t(z,2)).length;for(G=0;G<K;G++)if(48>(I=u(z,G))||I>H)return NaN;return parseInt(z,E)}return+z};if(D("Number",!l(" 0o1")||!l("0b1")||l("+0x1"))){var C,y=function(z){var E=1>arguments.length?0: 212l(w(z)),H=this;return q(r,H)&&c(function(){f(H)})?x(Object(E),H,y):E};a=F?d(l):"MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY EPSILON MAX_SAFE_INTEGER MIN_SAFE_INTEGER isFinite isInteger isNaN isSafeInteger parseFloat parseInt fromString range".split(" ");for(F=0;a.length>F;F++)A(l,C=a[F])&&!A(y,C)&&k(y,C,h(l,C));y.prototype=r;r.constructor=y;b(g,"Number",y,{constructor:!0})}},function(g,b,a){g=a(28);var F=a(95),B=a(182);g({target:"Object",stat:!0,forced:a(38)(function(){B(1)})},{keys:function(D){return B(F(D))}})}, 213function(g,b,a){a(677)},function(g,b,a){g=a(28);var F=a(95),B=a(158),D=a(129),A=a(103),x=a(359),q=a(269),p=a(159),e=a(380);a=a(184)("splice");var c=Math.max,d=Math.min;g({target:"Array",proto:!0,forced:!a},{splice:function(h,k){var f,n,l,r,m=F(this),t=A(m),u=B(h,t);var w=arguments.length;0===w?f=n=0:1===w?(f=0,n=t-u):(f=w-2,n=d(c(D(k),0),t-u));x(t+f-n);w=q(m,n);for(l=0;l<n;l++)(r=u+l)in m&&p(w,l,m[r]);if(w.length=n,f<n){for(l=u;l<t-n;l++){var v=l+f;(r=l+n)in m?m[v]=m[r]:e(m,v)}for(l=t;l>t-n+f;l--)e(m, 214l-1)}else if(f>n)for(l=t-n;l>u;l--)v=l+f-1,(r=l+n-1)in m?m[v]=m[r]:e(m,v);for(l=0;l<f;l++)m[l+u]=arguments[l+2];return m.length=t-n+f,w}})},function(g,b){g.exports=function(a){return"function"==typeof a}}
214,function(g,b,a){function F(t){return Object(A.map)(t,B)}function B(t){function u(C){return Object(A.map)(C,B)}if(t instanceof e)return{type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};if(t instanceof d)return{type:"Flat",definition:u(t.definition)};if(t instanceof h)return{type:"Option",idx:t.idx, 215definition:u(t.definition)};if(t instanceof k)return{type:"RepetitionMandatory",name:t.name,idx:t.idx,definition:u(t.definition)};if(t instanceof f)return{type:"RepetitionMandatoryWithSeparator",name:t.name,idx:t.idx,separator:B(new m({terminalType:t.separator})),definition:u(t.definition)};if(t instanceof l)return{type:"RepetitionWithSeparator",name:t.name,idx:t.idx,separator:B(new m({terminalType:t.separator})),definition:u(t.definition)};if(t instanceof n)return{type:"Repetition",name:t.name,idx:t.idx, 216definition:u(t.definition)};if(t instanceof r)return{type:"Alternation",name:t.name,idx:t.idx,definition:u(t.definition)};if(t instanceof m){var w={type:"Terminal",name:t.terminalType.name,label:Object(x.tokenLabel)(t.terminalType),idx:t.idx},v=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(w.pattern=Object(A.isRegExp)(v)?v.source:v),w}if(t instanceof c)return{type:"Rule",name:t.name,orgText:t.orgText,definition:u(t.definition)};throw Error("non exhaustive match");}a.r(b);a.d(b,"AbstractProduction", 217function(){return p});a.d(b,"NonTerminal",function(){return e});a.d(b,"Rule",function(){return c});a.d(b,"Flat",function(){return d});a.d(b,"Option",function(){return h});a.d(b,"RepetitionMandatory",function(){return k});a.d(b,"RepetitionMandatoryWithSeparator",function(){return f});a.d(b,"Repetition",function(){return n});a.d(b,"RepetitionWithSeparator",function(){return l});a.d(b,"Alternation",function(){return r});a.d(b,"Terminal",function(){return m});a.d(b,"serializeGrammar",function(){return F}); 218a.d(b,"serializeProduction",function(){return B});var D,A=a(48),x=a(102),q=(D=function(t,u){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,v){w.__proto__=v}||function(w,v){for(var C in v)v.hasOwnProperty(C)&&(w[C]=v[C])})(t,u)},function(t,u){function w(){this.constructor=t}D(t,u);t.prototype=null===u?Object.create(u):(w.prototype=u.prototype,new w)}),p=function(){function t(u){this.definition=u}return t.prototype.accept=function(u){u.visit(this);Object(A.forEach)(this.definition, 219function(w){w.accept(u)})},t}(),e=function(t){function u(w){var v=t.call(this,[])||this;return v.idx=1,Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),Object.defineProperty(u.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(w){},enumerable:!0,configurable:!0}),u.prototype.accept=function(w){w.visit(this)},u}(p),c=function(t){function u(w){var v=t.call(this,w.definition)||this;return v.orgText= 220"",Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),u}(p),d=function(t){function u(w){var v=t.call(this,w.definition)||this;return v.ignoreAmbiguities=!1,Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),u}(p),h=function(t){function u(w){var v=t.call(this,w.definition)||this;return v.idx=1,Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),u}(p),k=function(t){function u(w){var v=t.call(this,w.definition)|| 221this;return v.idx=1,Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),u}(p),f=function(t){function u(w){var v=t.call(this,w.definition)||this;return v.idx=1,Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),u}(p),n=function(t){function u(w){var v=t.call(this,w.definition)||this;return v.idx=1,Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),u}(p),l=function(t){function u(w){var v=t.call(this, 222w.definition)||this;return v.idx=1,Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),u}(p),r=function(t){function u(w){var v=t.call(this,w.definition)||this;return v.idx=1,v.ignoreAmbiguities=!1,v.hasPredicates=!1,Object(A.assign)(v,Object(A.pick)(w,function(C){return void 0!==C})),v}return q(u,t),u}(p),m=function(){function t(u){this.idx=1;Object(A.assign)(this,Object(A.pick)(u,function(w){return void 0!==w}))}return t.prototype.accept=function(u){u.visit(this)}, 223t}()},function(g,b,a){b.__esModule=!0;b.conditions=void 0;b.getCondition=function(B,D){if(!F[B])throw Error('Filter condition "'.concat(B,'" does not exist.'));B=F[B];var A=B.condition;B=B.descriptor;var x=D;B.inputValuesDecorator&&(x=B.inputValuesDecorator(x));return function(q){return A.apply(q.meta.instance,[].concat([q],[x]))}};b.getConditionDescriptor=function(B){if(!F[B])throw Error('Filter condition "'.concat(B,'" does not exist.'));return F[B].descriptor};b.registerCondition=function(B,D, 224A){A.key=B;F[B]={condition:D,descriptor:A}};a(18);var F={};b.conditions=F},function(g,b,a){b=a(45);var F=a(156),B=a(65),D=a(214),A=a(153),x=a(336),q=F("wks"),p=b.Symbol,e=p&&p.for,c=x?p:p&&p.withoutSetter||D;
224g.exports=function(d){if(!B(q,d)||!A&&"string"!=typeof q[d]){var h="Symbol."+d;A&&B(p,d)?q[d]=p[d]:q[d]=x&&e?e(h):c(h)}return q[d]}},function(g,b,a){function F(p){var e=p.stopImmediatePropagation;return p.stopImmediatePropagation=function(){e.apply(this);(0,x.stopImmediatePropagation)(this)}, 225p}g=a(1);b.__esModule=!0;b.default=void 0;b.getListenersCounter=function(){return q};a(55);var B=g(a(5)),D=g(a(6)),A=a(134),x=a(83),q=0;a=function(){function p(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;(0,B.default)(this,p);this.context=e||this;this.context.eventListeners||(this.context.eventListeners=[])}return(0,D.default)(p,[{key:"addEventListener",value:function(e,c,d){function h(n){d.call(this,F(n))}var k=this,f=3<arguments.length&&void 0!==arguments[3]&&arguments[3]; 226return"boolean"==typeof f||(0,A.isPassiveEventSupported)()||(f=!1),this.context.eventListeners.push({element:e,event:c,callback:d,callbackProxy:h,options:f,eventManager:this}),e.addEventListener(c,h,f),q+=1,function(){k.removeEventListener(e,c,d)}}},{key:"removeEventListener",value:function(e,c,d){for(var h,k=3<arguments.length&&void 0!==arguments[3]&&arguments[3],f=this.context.eventListeners.length;f;)(--f,(h=this.context.eventListeners[f]).event!==c||h.element!==e)||d&&d!==h.callback||k&&h.eventManager!== 227this||(this.context.eventListeners.splice(f,1),h.element.removeEventListener(h.event,h.callbackProxy,h.options),--q)}},{key:"clearEvents",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var c=this.context.eventListeners.length;c;){--c;var d=this.context.eventListeners[c];e&&d.eventManager!==this||(this.context.eventListeners.splice(c,1),d.element.removeEventListener(d.event,d.callbackProxy,d.options),--q)}}},{key:"clear",value:function(){this.clearEvents()}}, 228{key:"destroy",value:function(){this.clearEvents();this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0);this.context=null}},{key:"fireEvent",value:function(e,c){var d=e.document,h=e;d||(h=(d=e.ownerDocument?e.ownerDocument:e).defaultView);var k,f="mousemove"!==c;d.createEvent?(k=d.createEvent("MouseEvents")).initMouseEvent(c,
228!0,f,h,0,0,0,1,1,!1,!1,!1,!1,0,d.body.parentNode):k=d.createEventObject();e.dispatchEvent?e.dispatchEvent(k):e.fireEvent("on".concat(c),k)}}]), 229p}();b.default=a},function(g,b,a){b=a(174);var F=Function.prototype.call;g.exports=b?F.bind(F):function(){return F.apply(F,arguments)}},function(g,b,a){g=a(28);b=a(35);var F=a(183),B=b([].reverse);a=[1,2];g({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return F(this)&&(this.length=this.length),B(this)}})},function(g,b,a){var F=a(56);g.exports=function(B){return"object"==typeof B?null!==B:F(B)}},function(g,b,a){var F=a(139),B=a(61);g=a(35);b=a(228);var D=a(261), 230A=a(66),x=a(94),q=a(364),p=a(275),e=a(138),c=a(73),d=a(136),h=a(258),k=a(229),f=a(222),n=a(268);a=a(38);var l=n.UNSUPPORTED_Y,r=Math.min,m=[].push,t=g(/./.exec),u=g(m),w=g("".slice);b("split",function(v,C,y){var z;return z="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(E,H){var G=c(x(this));H=void 0===H?4294967295:H>>>0;if(0===H)return[];if(void 0===E)return[G]; 231if(!D(E))return B(C,G,E,H);var I,K,J,P=[],S=0;for(E=new RegExp(E.source,(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(E.sticky?"y":"")+"g");(I=B(f,E,G))&&!((K=E.lastIndex)>S&&(u(P,w(G,S,I.index)),1<I.length&&I.index<G.length&&F(m,P,h(I,1)),J=I[0].length,S=K,P.length>=H));)E.lastIndex===I.index&&E.lastIndex++;return S===G.length?!J&&t(E,"")||u(P,""):u(P,w(G,S)),P.length>H?h(P,0,H):P}:"0".split(void 0,0).length?function(E,H){return void 0===E&&0===H?[]:B(C,this,E,H)}:C,[function(E, 232H){var G=x(this),I=null==E?void 0:d(E,v);return I?B(I,E,G,H):B(z,c(G),E,H)},function(E,H){var G=A(this);E=c(E);var I=y(z,G,E,H,z!==C);if(I.done)return I.value;var K=q(G,RegExp);I=G.unicode;G=new K(l?"^(?:"+G.source+")":G,(G.ignoreCase?"i":"")+(G.multiline?"m":"")+(G.unicode?"u":"")+(l?"g":"y"));H=void 0===H?4294967295:H>>>0;if(0===H)return[];if(0===E.length)return null===k(G,E)?[E]:[];var J=0,P=0;for(K=[];P<E.length;){G.lastIndex=l?0:P;var S,R=k(G,l?w(E,P):E);if(null===R||(S=r(e(G.lastIndex+(l?P: 2330)),E.length))===J)P=p(E,P,I);else{if(u(K,w(E,J,P)),K.length===H)return K;for(J=1;J<=R.length-1;J++)if(u(K,R[J]),K.length===H)return K;P=J=S}}return u(K,w(E,J)),K}]},!!a(function(){var v=/(?:)/,C=v.exec;v.exec=function(){return C.apply(this,arguments)};v="ab".split(v);return 2!==v.length||"a"!==v[0]||"b"!==v[1]}),l)},function(g,b,a){b=a(35);var F=a(95),B=b({}.hasOwnProperty);g.exports=Object.hasOwn||function(D,A){return B(F(D),A)}},function(g,b,a){var F=a(63),B=String,D=TypeError;g.exports=function(A){if(F(A))return A; 234throw D(B(A)+" is not an object");}},function(g,b,a){var F=a(139),B=a(61),D=a(35);g=a(228);b=a(38);var A=a(66),x=a(56),q=a(129),p=a(138),e=a(73),c=a(94),d=a(275),h=a(136),k=a(697),f=a(229),n=a(59)("replace"),l=Math.max,r=Math.min,m=D([].concat),t=D([].push),u=D("".indexOf),w=D("".slice);a="$0"==="a".replace(/./,"$0");var v=!!/./[n]&&""===/./[n]("a","$0");g("replace",function(C,y,z){var E=v?"$":"$0";return[function(H,G){var I=c(this),K=null==H?void 0:h(H,n);return K?B(K,H,I,G):B(y,e(I),H,G)},function(H, 235G){var I=A(this);H=e(H);if("string"==typeof G&&-1===u(G,E)&&-1===u(G,"$\x3c")){var K=z(y,I,H,G);if(K.done)return K.value}(K=x(G))||(G=e(G));var J=I.global;if(J){var P=I.unicode;I.lastIndex=0}for(var S=[];;){var R=f(I,H);if(null===R)break;if(t(S,R),!J)break;""===e(R[0])&&(I.lastIndex=d(H,p(I.lastIndex),P))}var O;I="";for(J=P=0;J<S.length;J++){for(var N=e((R=S[J])[0]),Q=l(r(q(R.index),H.length),0),M=[],T=1;T<R.length;T++)t(M,void 0===(O=R[T])?O:String(O));R=R.groups;K?(M=m([N],M,Q,H),void 0!==R&&t(M, 236R),R=e(F(G,void 0,M))):R=k(N,H,Q,M,R,G);Q>=P&&(I+=w(H,P,Q)+R,P=Q+N.length)}return I+w(H,P)}]},!!b(function(){var C=/./;return C.exec=function(){var y=[];return y.groups={a:"7"},y},"7"!=="".replace(C,"$\x3ca\x3e")})||!a||v)},function(g,b,a){a(28)({target:"Number",stat:!0},{isInteger:a(717)})},function(g,b,a){b=a(178).PROPER;g=a(96);var F=a(66),B=a(73),D=a(38),A=a(371),x=RegExp.prototype.toString;
236a=D(function(){return"/a/b"!=x.call({source:"a",flags:"b"})});b=b&&"toString"!=x.name;(a||b)&&g(RegExp.prototype, 237"toString",function(){var q=F(this);return"/"+B(q.source)+"/"+B(A(q))},{unsafe:!0})},function(g,b,a){function F(A){var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:200,q=0,p={lastCallThrottled:!0},e=null;return function(){for(var c=this,d=arguments.length,h=Array(d),k=0;k<d;k++)h[k]=arguments[k];k=Date.now();d=!1;p.lastCallThrottled=!0;q||(q=k,d=!0);k=x-(k-q);return d?(p.lastCallThrottled=!1,A.apply(this,h)):(e&&clearTimeout(e),e=setTimeout(function(){p.lastCallThrottled=!1;A.apply(c, 238h);q=0;e=void 0},k)),p}}b.__esModule=!0;b.curry=function(A){var x=A.length;return function e(p){return function(){for(var c=arguments.length,d=Array(c),h=0;h<c;h++)d[h]=arguments[h];c=p.concat(d);return c.length>=x?A.apply(this,c):e(c)}}([])};b.curryRight=function(A){var x=A.length;return function e(p){return function(){for(var c=arguments.length,d=Array(c),h=0;h<c;h++)d[h]=arguments[h];c=p.concat(d.reverse());return c.length>=x?A.apply(this,c):e(c)}}([])};b.debounce=function(A){var x,q=1<arguments.length&& 239void 0!==arguments[1]?arguments[1]:200,p=null;return function(){for(var e=this,c=arguments.length,d=Array(c),h=0;h<c;h++)d[h]=arguments[h];
239return p&&clearTimeout(p),p=setTimeout(function(){x=A.apply(e,d)},q),x}};b.fastCall=function(A,x,q,p,e,c,d,h){return(0,D.isDefined)(h)?A.call(x,q,p,e,c,d,h):(0,D.isDefined)(d)?A.call(x,q,p,e,c,d):(0,D.isDefined)(c)?A.call(x,q,p,e,c):(0,D.isDefined)(e)?A.call(x,q,p,e):(0,D.isDefined)(p)?A.call(x,q,p):(0,D.isDefined)(q)?A.call(x,q):A.call(x)};b.isFunction=function(A){return"function"== 240typeof A};b.partial=function(A){for(var x=arguments.length,q=Array(1<x?x-1:0),p=1;p<x;p++)q[p-1]=arguments[p];return function(){for(var e=arguments.length,c=Array(e),d=0;d<e;d++)c[d]=arguments[d];return A.apply(this,q.concat(c))}};b.pipe=function(){for(var A=arguments.length,x=Array(A),q=0;q<A;q++)x[q]=arguments[q];var p=x[0],e=x.slice(1);return function(){for(var c=arguments.length,d=Array(c),h=0;h<c;h++)d[h]=arguments[h];return(0,B.arrayReduce)(e,function(k,f){return f(k)},p.apply(this,d))}};b.throttle= 241F;b.throttleAfterHits=function(A){function x(){for(var c=arguments.length,d=Array(c),h=0;h<c;h++)d[h]=arguments[h];return e?(--e,A.apply(this,d)):p.apply(this,d)}var q=2<arguments.length&&void 0!==arguments[2]?arguments[2]:10,p=F(A,1<arguments.length&&void 0!==arguments[1]?arguments[1]:200),e=q;return x.clearHits=function(){e=q},x};a(77);a(13);a(18);a(62);var B=a(20),D=a(31)},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(32);a(0);a(2);a(4);a(33);a(55);var F,B=g(a(5)),D=g(a(6));g= 242g(a(78));var A=a(20),x=a(17),q=a(97),p=a(92),e=a(79),c=a(70),d="afterCellMetaReset afterChange afterContextMenuDefaultOptions beforeContextMenuSetItems afterDropdownMenuDefaultOptions beforeDropdownMenuSetItems afterContextMenuHide beforeContextMenuShow afterContextMenuShow afterCopyLimit beforeCreateCol afterCreateCol beforeCreateRow afterCreateRow afterDeselect afterDestroy afterDocumentKeyDown afterDrawSelection beforeRemoveCellClassNames afterGetCellMeta afterGetColHeader afterGetRowHeader afterInit afterLoadData afterUpdateData afterMomentumScroll afterOnCellCornerMouseDown afterOnCellCornerDblClick afterOnCellMouseDown afterOnCellMouseUp afterOnCellContextMenu afterOnCellMouseOver afterOnCellMouseOut afterRemoveCol afterRemoveRow beforeRenderer afterRenderer afterScrollHorizontally afterScrollVertically afterSelection afterSelectionByProp afterSelectionEnd afterSelectionEndByProp afterSetCellMeta afterRemoveCellMeta afterSetDataAtCell afterSetDataAtRowProp afterSetSourceDataAtCell afterUpdateSettings afterValidate beforeLanguageChange afterLanguageChange beforeAutofill afterAutofill beforeCellAlignment beforeChange beforeChangeRender beforeDrawBorders beforeGetCellMeta beforeRemoveCellMeta beforeInit beforeInitWalkontable beforeLoadData beforeUpdateData beforeKeyDown beforeOnCellMouseDown beforeOnCellMouseUp beforeOnCellContextMenu beforeOnCellMouseOver beforeOnCellMouseOut beforeRemoveCol beforeRemoveRow beforeViewRender afterViewRender beforeRender afterRender beforeSetCellMeta beforeSetRangeStartOnly beforeSetRangeStart beforeSetRangeEnd beforeTouchScroll beforeValidate beforeValueRender construct init modifyColHeader modifyColWidth modifyRowHeader modifyRowHeight modifyData modifySourceData modifyRowData modifyGetCellCoords beforeHighlightingRowHeader beforeHighlightingColumnHeader persistentStateLoad persistentStateReset persistentStateSave beforeColumnSort afterColumnSort modifyAutofillRange modifyCopyableRange beforeCut afterCut beforeCopy afterCopy beforePaste afterPaste beforeColumnFreeze afterColumnFreeze beforeColumnMove afterColumnMove beforeColumnUnfreeze afterColumnUnfreeze beforeRowMove afterRowMove beforeColumnResize afterColumnResize beforeRowResize afterRowResize afterGetColumnHeaderRenderers afterGetRowHeaderRenderers beforeStretchingColumnWidth beforeFilter afterFilter afterFormulasValuesUpdate afterNamedExpressionAdded afterNamedExpressionRemoved afterSheetAdded afterSheetRenamed afterSheetRemoved modifyColumnHeaderHeight beforeUndo beforeUndoStackChange afterUndo afterUndoStackChange beforeRedo beforeRedoStackChange afterRedo afterRedoStackChange modifyRowHeaderWidth beforeAutofillInsidePopulate modifyTransformStart modifyTransformEnd afterModifyTransformStart afterModifyTransformEnd afterViewportRowCalculatorOverride afterViewportColumnCalculatorOverride afterPluginsInitialized beforeHideRows afterHideRows beforeUnhideRows afterUnhideRows beforeHideColumns afterHideColumns beforeUnhideColumns afterUnhideColumns beforeTrimRow afterTrimRow beforeUntrimRow afterUntrimRow beforeDropdownMenuShow afterDropdownMenuShow afterDropdownMenuHide beforeAddChild afterAddChild beforeDetachChild afterDetachChild afterBeginEditing beforeMergeCells afterMergeCells beforeUnmergeCells afterUnmergeCells afterListen afterUnlisten afterRefreshDimensions beforeRefreshDimensions beforeColumnCollapse afterColumnCollapse beforeColumnExpand afterColumnExpand modifyAutoColumnSizeSeed".split(" "), 243h=(0,e.toSingleLine)(F||(F=(0,g.default)(['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion]. \n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to \n learn about the migration path.'],['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\\x20\n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\\x20\n learn about the migration path.']))), 244k=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),f=new Map([["beforeAutofillInsidePopulate",'The plugin hook "beforeAutofillInsidePopulate" is deprecated and will be removed in the next major release.']]);a=function(){function l(){(0,B.default)(this,l);this.globalBucket=this.createEmptyBucket()}return(0,D.default)(l,[{key:"createEmptyBucket",value:function(){var r=Object.create(null); 245return(0,A.arrayEach)(d,function(m){return r[m]=[]}),r}},{key:"getBucket",value:function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return r?(r.pluginHookBucket||(r.pluginHookBucket=this.createEmptyBucket()),r.pluginHookBucket):this.globalBucket}},{key:"add",value:function(r,m){var t=this,u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(m))(0,A.arrayEach)(m,function(C){return t.add(r,C,u)});else{k.has(r)&&(0,p.warn)((0,q.substitute)(h,{hookName:r, 246removedInVersion:k.get(r)}));f.has(r)&&(0,p.warn)(f.get(r));var w=this.getBucket(u);
246if(void 0===w[r]&&(this.register(r),w[r]=[]),m.skip=!1,-1===w[r].indexOf(m)){var v=!1;m.initialHook&&(0,A.arrayEach)(w[r],function(C,y){if(C.initialHook)return w[r][y]=m,v=!0,!1});v||w[r].push(m)}}return this}},{key:"once",value:function(r,m){var t=this,u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(m)?(0,A.arrayEach)(m,function(w){return t.once(r,w,u)}):(m.runOnce=!0,this.add(r,m,u))}}, 247{key:"remove",value:function(r,m){var t=this.getBucket(2<arguments.length&&void 0!==arguments[2]?arguments[2]:null);return void 0!==t[r]&&0<=t[r].indexOf(m)&&(m.skip=!0,!0)}},{key:"has",value:function(r){var m=this.getBucket(1<arguments.length&&void 0!==arguments[1]?arguments[1]:null);return!(void 0===m[r]||!m[r].length)}},{key:"run",value:function(r,m,t,u,w,v,C,y){var z=this.globalBucket[m],E=z?z.length:0,H=0;if(E)for(;H<E;){if(z[H]&&!z[H].skip){var G=(0,c.fastCall)(z[H],r,t,u,w,v,C,y);void 0!== 248G&&(t=G);z[H]&&z[H].runOnce&&this.remove(m,z[H])}H+=1}E=(z=this.getBucket(r)[m])?z.length:0;H=0;if(E)for(;H<E;)z[H]&&!z[H].skip&&(G=(0,c.fastCall)(z[H],r,t,u,w,v,C,y),void 0!==G&&(t=G),z[H]&&z[H].runOnce&&this.remove(m,z[H],r)),H+=1;return t}},{key:"destroy",value:function(){(0,x.objectEach)(this.getBucket(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null),function(r,m,t){return t[m].length=0})}},{key:"register",value:function(r){this.isRegistered(r)||d.push(r)}},{key:"deregister",value:function(r){this.isRegistered(r)&& 249d.splice(d.indexOf(r),1)}},{key:"isDeprecated",value:function(r){return f.has(r)||k.has(r)}},{key:"isRegistered",value:function(r){return 0<=d.indexOf(r)}},{key:"getRegistered",value:function(){return d}}],[{key:"getSingleton",value:function(){return n}}]),l}();var n=new a;b.default=a},function(g,b,a){b=a(38);g.exports=!b(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(g,b,a){var F=a(220),B=String;g.exports=function(D){if("Symbol"===F(D))throw TypeError("Cannot convert a Symbol value to a string"); 250return B(D)}},function(g,b,a){a.r(b);var F=a(104);a.d(b,"cellAddressFromString",function(){return F.cellAddressFromString});a.d(b,"simpleCellAddressFromString",function(){return F.simpleCellAddressFromString});a.d(b,"simpleCellAddressToString",function(){return F.simpleCellAddressToString});a.d(b,"simpleCellRangeFromString",function(){return F.simpleCellRangeFromString});a.d(b,"simpleCellRangeToString",function(){return F.simpleCellRangeToString});var B=a(230);a.d(b,"CellAddress",function(){return B.CellAddress}); 251var D=a(378);a.d(b,"ParserWithCaching",function(){return D.ParserWithCaching});var A=a(382);a.d(b,"collectDependencies",function(){return A.collectDependencies});var x=a(192);a.d(b,"buildLexerConfig",function(){return x.buildLexerConfig});var q=a(283);a.d(b,"FormulaLexer",function(){return q.FormulaLexer});var p=a(106);a.d(b,"AstNodeType",function(){return p.AstNodeType});a.d(b,"ParsingErrorType",function(){return p.ParsingErrorType});a.d(b,"buildProcedureAst",function(){return p.buildProcedureAst}); 252a.d(b,"buildCellRangeAst",function(){return p.buildCellRangeAst});a.d(b,"buildParsingErrorAst",function(){return p.buildParsingErrorAst});a.d(b,"buildCellErrorAst",function(){return p.buildCellErrorAst});var e=a(284);a.d(b,"Unparser",function(){return e.Unparser});var c=a(163);a.d(b,"AddressDependency",function(){return c.AddressDependency});a.d(b,"CellRangeDependency",function(){return c.CellRangeDependency});a.d(b,"ColumnRangeDependency",function(){return c.ColumnRangeDependency});a.d(b,"RowRangeDependency", 253function(){return c.RowRangeDependency});a.d(b,"NamedExpressionDependency",function(){return c.NamedExpressionDependency})},function(g,b,a){g=a(28);var F=a(35),B=a(115),D=a(95),A=a(103),x=a(380),q=a(73);b=a(38);var p=a(713),e=a(161),c=a(714),d=a(715),h=a(154),k=a(716),f=[],n=F(f.sort),l=F(f.push);a=b(function(){f.sort(void 0)});F=b(function(){f.sort(null)});e=e("sort");var r=!b(function(){if(h)return 70>h;if(!(c&&3<c)){if(d)return!0;if(k)return 603>k;var m,t,u,w="";for(m=65;76>m;m++){switch(t=String.fromCharCode(m),
254m){case 66:case 69:case 70:case 72:var v=3;break;case 68:case 71:v=4;break;default:v=2}for(u=0;47>u;u++)f.push({k:t+u,v:v})}f.sort(function(C,y){return y.v-C.v});for(u=0;u<f.length;u++)t=f[u].k.charAt(0),w.charAt(w.length-1)!==t&&(w+=t);return"DGBEFHACIJK"!==w}});g({target:"Array",proto:!0,forced:a||!F||!e||!r},{sort:function(m){void 0!==m&&B(m);var t=D(this);if(r)return void 0===m?n(t):n(t,m);var u,w=[],v=A(t);for(u=0;u<v;u++)u in t&&l(w,t[u]);p(w,function(C){return function(y,z){return void 0=== 255z?-1:void 0===y?1:void 0!==C?+C(y,z)||0:q(y)>q(z)?1:-1}}(m));m=w.length;for(u=0;u<m;)t[u]=w[u++];for(;u<v;)x(t,u++);return t}})},function(g,b,a){g=a(28);b=a(35);var F=a(176),B=a(99);a=a(161);var D=b([].join);b=F!=Object;a=a("join",",");g({target:"Array",proto:!0,forced:b||!a},{join:function(A){return D(B(this),void 0===A?",":A)}})},function(g,b,a){a(775);a(776)},function(g,b){g.exports=function(a,F){return F||(F=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(F)}}))}; 256g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){b.__esModule=!0;b.toSingleLine=function(B){for(var D=arguments.length,A=Array(1<D?D-1:0),x=1;x<D;x++)A[x-1]=arguments[x];return(0,F.arrayReduce)(B,function(q,p,e){return q+p.replace(/\r?\n\s*/g,"")+(A[e]?A[e]:"")},"").trim()};a(12);a(67);a(118);var F=a(20)},function(g,b,a){g=a(72);var F=a(337),B=a(338),D=a(66),A=a(213),x=TypeError,q=Object.defineProperty,p=Object.getOwnPropertyDescriptor;b.f=g?B?function(e,c,d){if(D(e),c=A(c),D(d), 257"function"==typeof e&&"prototype"===c&&"value"in d&&"writable"in d&&!d.writable){var h=p(e,c);h&&h.writable&&(e[c]=d.value,d={configurable:"configurable"in d?d.configurable:h.configurable,enumerable:"enumerable"in d?d.enumerable:h.enumerable,writable:!1})}return q(e,c,d)}:q:function(e,c,d){if(D(e),c=A(c),D(d),F)try{return q(e,c,d)}catch(h){}if("get"in d||"set"in d)throw x("Accessors not supported");return"value"in d&&(e[c]=d.value),e}},function(g,b,a){function F(z){return void 0===z&&(z=void 0),function(){return z}} 258a.r(b);a.d(b,"END_OF_FILE",function(){return m});a.d(b,"DEFAULT_PARSER_CONFIG",function(){return u});a.d(b,"DEFAULT_RULE_CONFIG",function(){return w});a.d(b,"ParserDefinitionErrorType",function(){return t});a.d(b,"EMPTY_ALT",function(){return F});a.d(b,"Parser",function(){return v});a.d(b,"CstParser",function(){return C});a.d(b,"EmbeddedActionsParser",function(){return y});var B,D=a(48),A=a(698);g=a(102);var x=a(281),q=a(143),p=a(196);b=a(375);var e=a(701),c=a(702),d=a(704),h=a(705),k=a(706),f=a(707), 259n=a(708),l=a(709);a=a(710);var r=(B=function(z,E){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,G){H.__proto__=G}||function(H,G){for(var I in G)G.hasOwnProperty(I)&&(H[I]=G[I])})(z,E)},function(z,E){function H(){this.constructor=z}B(z,E);z.prototype=null===E?Object.create(E):(H.prototype=E.prototype,new H)}),m=Object(g.createTokenInstance)(g.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(m);var t,u=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1, 260outputCst:!0,errorMessageProvider:q.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),w=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});!function(z){z[z.INVALID_RULE_NAME=0]="INVALID_RULE_NAME";z[z.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME";z[z.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE";z[z.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS";z[z.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF";z[z.LEFT_RECURSION=5]="LEFT_RECURSION"; 261z[z.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT";z[z.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS";z[z.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE";z[z.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME";z[z.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME";z[z.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME";z[z.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD";z[z.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS";z[z.TOO_MANY_ALTS=14]="TOO_MANY_ALTS"}(t||(t={}));var v=function(){function z(E, 262H){void 0===H&&(H=u);this.ignoredIssues=u.ignoredIssues;this.definitionErrors=[];this.selfAnalysisDone=!1;this.initErrorHandler(H);this.initLexerAdapter();this.initLooksAhead(H);this.initRecognizerEngine(E,H);this.initRecoverable(H);this.initTreeBuilder(H);this.initContentAssist();this.initGastRecorder(H);this.initPerformanceTracer(H);Object(D.has)(H,"ignoredIssues")&&H.ignoredIssues!==u.ignoredIssues&&Object(D.PRINT_WARNING)("The \x3cignoredIssues\x3e IParserConfig property is soft-deprecated and will be removed in future versions.\n\tPlease use the \x3cIGNORE_AMBIGUITIES\x3e flag on the relevant DSL method instead."); 263this.ignoredIssues=Object(D.has)(H,"ignoredIssues")?H.ignoredIssues:u.ignoredIssues;
263this.skipValidations=Object(D.has)(H,"skipValidations")?H.skipValidations:u.skipValidations}return z.performSelfAnalysis=function(E){E.performSelfAnalysis()},z.prototype.performSelfAnalysis=function(){var E=this;this.TRACE_INIT("performSelfAnalysis",function(){var H;E.selfAnalysisDone=!0;var G=E.className;E.TRACE_INIT("toFastProps",function(){Object(D.toFastProperties)(E)});E.TRACE_INIT("Grammar Recording",function(){try{E.enableRecording(), 264Object(D.forEach)(E.definedRulesNames,function(K){var J=E[K].originalGrammarAction,P=void 0;E.TRACE_INIT(K+" Rule",function(){P=E.topLevelRuleRecord(K,J)});E.gastProductionsCache[K]=P})}finally{E.disableRecording()}});var I=[];if(E.TRACE_INIT("Grammar Resolving",function(){I=Object(p.resolveGrammar)({rules:Object(D.values)(E.gastProductionsCache)});E.definitionErrors.push.apply(E.definitionErrors,I)}),E.TRACE_INIT("Grammar Validations",function(){if(Object(D.isEmpty)(I)&&!1===E.skipValidations){var K= 265Object(p.validateGrammar)({rules:Object(D.values)(E.gastProductionsCache),maxLookahead:E.maxLookahead,tokenTypes:Object(D.values)(E.tokensMap),ignoredIssues:E.ignoredIssues,errMsgProvider:q.defaultGrammarValidatorErrorProvider,grammarName:G});E.definitionErrors.push.apply(E.definitionErrors,K)}}),Object(D.isEmpty)(E.definitionErrors)&&(E.recoveryEnabled&&E.TRACE_INIT("computeAllProdsFollows",function(){var K=Object(A.computeAllProdsFollows)(Object(D.values)(E.gastProductionsCache));E.resyncFollows= 266K}),E.TRACE_INIT("ComputeLookaheadFunctions",function(){E.preComputeLookaheadFunctions(Object(D.values)(E.gastProductionsCache))})),E.TRACE_INIT("expandAllNestedRuleNames",function(){var K=Object(x.expandAllNestedRuleNames)(Object(D.values)(E.gastProductionsCache),E.fullRuleNameToShort);E.allRuleNames=K.allRuleNames}),!z.DEFER_DEFINITION_ERRORS_HANDLING&&!Object(D.isEmpty)(E.definitionErrors))throw H=Object(D.map)(E.definitionErrors,function(K){return K.message}),Error("Parser Definition Errors detected:\n "+ 267H.join("\n-------------------------------\n"));})},z.DEFER_DEFINITION_ERRORS_HANDLING=!1,z}();Object(D.applyMixins)(v,[b.Recoverable,e.LooksAhead,c.TreeBuilder,d.LexerAdapter,k.RecognizerEngine,h.RecognizerApi,f.ErrorHandler,n.ContentAssist,l.GastRecorder,a.PerformanceTracer]);var C=function(z){function E(H,G){void 0===G&&(G=u);G=Object(D.cloneObj)(G);return G.outputCst=!0,z.call(this,H,G)||this}return r(E,z),E}(v),y=function(z){function E(H,G){void 0===G&&(G=u);G=Object(D.cloneObj)(G);return G.outputCst= 268!1,z.call(this,H,G)||this}return r(E,z),E}(v)},function(g,b,a){function F(h){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(h)}function B(h,k){var f="undefined"!=typeof Symbol&&h[Symbol.iterator]||h["@@iterator"];if(!f){if(Array.isArray(h)||(f=function(t,u){if(t){if("string"==typeof t)return D(t,u);var w=Object.prototype.toString.call(t).slice(8, 269-1);"Object"===w&&t.constructor&&(w=t.constructor.name);if("Map"===w||"Set"===w)return Array.from(t);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return D(t,u)}}(h))||k&&h&&"number"==typeof h.length){f&&(h=f);var n=0;k=function(){};return{s:k,n:function(){return n>=h.length?{done:!0}:{done:!1,value:h[n++]}},e:function(t){throw t;},f:k}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 270}var l,r=!0,m=!1;return{s:function(){f=f.call(h)},n:function(){var t=f.next();return r=t.done,t},e:function(t){m=!0;l=t},f:function(){try{r||null==f.return||f.return()}finally{if(m)throw l;}}}}function D(h,k){(null==k||k>h.length)&&(k=h.length);for(var f=0,n=Array(k);f<k;f++)n[f]=h[f];return n}function A(){function h(N,Q,M){return Object.defineProperty(N,Q,{value:M,enumerable:!0,configurable:!0,writable:!0}),N[Q]}function k(N,Q,M,T){Q=Object.create((Q&&Q.prototype instanceof n?Q:n).prototype);T=new C(T|| 271[]);return Q._invoke=function(Z,L,U){var V="suspendedStart";return function(Y,aa){if("executing"===V)throw Error("Generator is already running");if("completed"===V){if("throw"===Y)throw aa;return z()}U.method=Y;for(U.arg=aa;;){if(Y=U.delegate)if(Y=u(Y,U)){if(Y===S)continue;return Y}if("next"===U.method)U.sent=U._sent=U.arg;else if("throw"===U.method){if("suspendedStart"===V)throw V="completed",U.arg;U.dispatchException(U.arg)}else"return"===U.method&&U.abrupt("return",U.arg);V="executing";Y=f(Z,L, 272U);if("normal"===Y.type){if(V=U.done?"completed":"suspendedYield",Y.arg===S)continue;return{value:Y.arg,done:U.done}}"throw"===Y.type&&(V="completed",U.method="throw",U.arg=Y.arg)}}}(N,M,T),Q}function f(N,Q,M){try{return{type:"normal",arg:N.call(Q,M)}}catch(T){return{type:"throw",arg:T}}}function n(){}function l(){}function r(){}function m(N){["next","throw","return"].forEach(function(Q){h(N,Q,function(M){return this._invoke(Q,M)})})}function t(N,Q){var M;this._invoke=function(T,Z){function L(){return new Q(function(U, 273V){!function ba(aa,W,ca,ia){aa=f(N[aa],N,W);if("throw"!==aa.type){var fa=aa.arg;return(aa=fa.value)&&"object"==F(aa)&&G.call(aa,"__await")?Q.resolve(aa.__await).then(function(ja){ba("next",ja,ca,ia)},function(ja){ba("throw",ja,ca,ia)}):Q.resolve(aa).then(function(ja){fa.value=ja;ca(fa)},function(ja){return ba("throw",ja,ca,ia)})}ia(aa.arg)}(T,Z,U,V)})}return M=M?M.then(L,L):L()}}function u(N,Q){var M=N.iterator[Q.method];if(void 0===M){if(Q.delegate=null,"throw"===Q.method){if(N.iterator.return&& 274(Q.method="return",Q.arg=void 0,u(N,Q),"throw"===Q.method))return S;Q.method="throw";Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}M=f(M,N.iterator,Q.arg);return"throw"===M.type?(Q.method="throw",Q.arg=M.arg,Q.delegate=null,S):(M=M.arg)?M.done?(Q[N.resultName]=M.value,Q.next=N.nextLoc,"return"!==Q.method&&(Q.method="next",Q.arg=void 0),Q.delegate=null,S):M:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,S)}function w(N){var Q= 275{tryLoc:N[0]};1 in N&&(Q.catchLoc=N[1]);2 in N&&(Q.finallyLoc=N[2],Q.afterLoc=N[3]);
275this.tryEntries.push(Q)}function v(N){var Q=N.completion||{};Q.type="normal";delete Q.arg;N.completion=Q}function C(N){this.tryEntries=[{tryLoc:"root"}];N.forEach(w,this);this.reset(!0)}function y(N){if(N){var Q=N[K];if(Q)return Q.call(N);if("function"==typeof N.next)return N;if(!isNaN(N.length)){var M=-1;Q=function Z(){for(;++M<N.length;)if(G.call(N,M))return Z.value=N[M],Z.done=!1,Z;return Z.value=void 0,Z.done= 276!0,Z};return Q.next=Q}}return{next:z}}function z(){return{value:void 0,done:!0}}A=function(){return E};var E={},H=Object.prototype,G=H.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},K=I.iterator||"@@iterator",J=I.asyncIterator||"@@asyncIterator",P=I.toStringTag||"@@toStringTag";try{h({},"")}catch(N){h=function(Q,M,T){return Q[M]=T}}E.wrap=k;var S={};I={};h(I,K,function(){return this});var R=Object.getPrototypeOf;(R=R&&R(R(y([]))))&&R!==H&&G.call(R,K)&&(I=R);var O=r.prototype=n.prototype=Object.create(I); 277return l.prototype=r,h(O,"constructor",r),h(r,"constructor",l),l.displayName=h(r,P,"GeneratorFunction"),E.isGeneratorFunction=function(N){N="function"==typeof N&&N.constructor;return!!N&&(N===l||"GeneratorFunction"===(N.displayName||N.name))},E.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,r):(N.__proto__=r,h(N,P,"GeneratorFunction")),N.prototype=Object.create(O),N},E.awrap=function(N){return{__await:N}},m(t.prototype),h(t.prototype,J,function(){return this}),E.AsyncIterator= 278t,E.async=function(N,Q,M,T,Z){void 0===Z&&(Z=Promise);var L=new t(k(N,Q,M,T),Z);return E.isGeneratorFunction(Q)?L:L.next().then(function(U){return U.done?U.value:L.next()})},m(O),h(O,P,"Generator"),h(O,K,function(){return this}),h(O,"toString",function(){return"[object Generator]"}),E.keys=function(N){var Q=[],M;for(M in N)Q.push(M);return Q.reverse(),function Z(){for(;Q.length;){var L=Q.pop();if(L in N)return Z.value=L,Z.done=!1,Z}return Z.done=!0,Z}},E.values=y,C.prototype={constructor:C,reset:function(N){if(this.prev= 2790,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(v),!N)for(var Q in this)"t"===Q.charAt(0)&&G.call(this,Q)&&!isNaN(+Q.slice(1))&&(this[Q]=void 0)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if("throw"===N.type)throw N.arg;return this.rval},dispatchException:function(N){function Q(Y,aa){return L.type="throw",L.arg=N,M.next=Y,aa&&(M.method="next",M.arg=void 0),!!aa}if(this.done)throw N;for(var M= 280this,T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T],L=Z.completion;if("root"===Z.tryLoc)return Q("end");if(Z.tryLoc<=this.prev){var U=G.call(Z,"catchLoc"),V=G.call(Z,"finallyLoc");if(U&&V){if(this.prev<Z.catchLoc)return Q(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return Q(Z.finallyLoc)}else if(U){if(this.prev<Z.catchLoc)return Q(Z.catchLoc,!0)}else{if(!V)throw Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return Q(Z.finallyLoc)}}}},abrupt:function(N,Q){for(var M= 281this.tryEntries.length-1;0<=M;--M){var T=this.tryEntries[M];if(T.tryLoc<=this.prev&&G.call(T,"finallyLoc")&&this.prev<T.finallyLoc){var Z=T;break}}Z&&("break"===N||"continue"===N)&&Z.tryLoc<=Q&&Q<=Z.finallyLoc&&(Z=null);M=Z?Z.completion:{};return M.type=N,M.arg=Q,Z?(this.method="next",this.next=Z.finallyLoc,S):this.complete(M)},complete:function(N,Q){if("throw"===N.type)throw N.arg;return"break"===N.type||"continue"===N.type?this.next=N.arg:"return"===N.type?(this.rval=this.arg=N.arg,this.method= 282"return",this.next="end"):"normal"===N.type&&Q&&(this.next=Q),S},finish:function(N){for(var Q=this.tryEntries.length-1;0<=Q;--Q){var M=this.tryEntries[Q];if(M.finallyLoc===N)return this.complete(M.completion,M.afterLoc),v(M),S}},catch:function(N){for(var Q=this.tryEntries.length-1;0<=Q;--Q){var M=this.tryEntries[Q];if(M.tryLoc===N){N=M.completion;if("throw"===N.type){var T=N.arg;v(M)}return T}}throw Error("illegal catch attempt");},delegateYield:function(N,Q,M){return this.delegate={iterator:y(N), 283resultName:Q,nextLoc:M},"next"===this.method&&(this.arg=void 0),S}},E}function x(h,k){for(var f=0;f<k.length;f++){var n=k[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(h,n.key,n)}}a.r(b);a.d(b,"SimpleRangeValue",function(){return d});a(2);a(3);a(4);a(8);a(9);a(0);a(10);a(86);a(87);a(88);a(89);a(25);a(27);a(26);a(90);a(62);a(13);a(22);a(12);var q=a(132),p=a(24),e=a(46),c=a(51),d=function(){function h(n,l,r,m){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function"); 284!0;this._data=n;this.range=l;this.dependencyGraph=r;this._hasOnlyNumbers=m;this.size=void 0===n?new q.ArraySize(l.effectiveWidth(r),l.effectiveHeight(r)):new q.ArraySize(n[0].length,n.length)}var k,f;return f=[{key:"fromRange",value:function(n,l,r){return new h(n,l,r,!0)}},{key:"onlyNumbers",value:function(n){return new h(n,void 0,void 0,!0)}},{key:"onlyValues",value:function(n){return new h(n,void 0,void 0,void 0)}},{key:"onlyRange",value:function(n,l){return new h(void 0,n,l,void 0)}},{key:"fromScalar", 285value:function(n){return new h([[n]],void 0,void 0,void 0)}}],k=[{key:"data",get:function(){return this.ensureThatComputed(),this._data}},{key:"isAdHoc",value:function(){return void 0===this.range}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"valuesFromTopLeftCorner",value:function(){this.ensureThatComputed();for(var n=[],l=0;l<this._data.length;l++)for(var r=0;r<this._data[0].length;r++)n.push(this._data[l][r]);return n}}, 286{key:"effectiveAddressesFromData",value:A().mark(function r(l){var m,t,u;return A().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:m=0;case 1:if(!(m<this.data.length)){w.next=13;break}t=this.data[m];u=0;case 4:if(!(u<t.length)){w.next=10;break}return w.next=7,Object(p.simpleCellAddress)(l.sheet,l.col+u,l.row+m);case 7:++u;w.next=4;break;case 10:++m;w.next=1;break;case 13:case "end":return w.stop()}},r,this)})},{key:"entriesFromTopLeftCorner",value:A().mark(function m(r){var t,u;return A().wrap(function(w){for(;;)switch(w.prev= 287w.next){case 0:this.ensureThatComputed(),t=0;case 2:if(!(t<this.size.height)){w.next=13;break}u=0;case 4:if(!(u<this.size.width)){w.next=10;break}return w.next=7,[this._data[t][u],Object(p.simpleCellAddress)(r.sheet,r.col+u,r.row+t)];case 7:++u;w.next=4;break;case 10:++t;w.next=2;break;case 13:case "end":return w.stop()}},m,this)})},{key:"iterateValuesFromTopLeftCorner",value:A().mark(function m(){return A().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this.valuesFromTopLeftCorner(), 288"t0",1);case 1:case "end":return t.stop()}},m,this)})},{key:"numberOfElements",value:function(){return this.size.width*this.size.height}},{key:"hasOnlyNumbers",value:function(){if(void 0===this._hasOnlyNumbers){this._hasOnlyNumbers=!0;var m,t=B(this.data);try{for(t.s();!(m=t.n()).done;){var u,w=B(m.value);try{for(w.s();!(u=w.n()).done;)if("number"!=typeof u.value)return this._hasOnlyNumbers=!1,!1}catch(v){w.e(v)}finally{w.f()}}}catch(v){t.e(v)}finally{t.f()}}return this._hasOnlyNumbers}},{key:"rawNumbers", 289value:function(){return this._data}},{key:"rawData",value:function(){var m;return this.ensureThatComputed(),null!==(m=this._data)&&void 0!==m?m:[]}},{key:"sameDimensionsAs",value:function(m){return this.width()===m.width()&&this.height()===m.height()}},{key:"ensureThatComputed",value:function(){var m=this;void 0===this._data&&(this._hasOnlyNumbers=!0,this._data=this.range.addressesArrayMap(this.dependencyGraph,function(t){t=m.depen
289dencyGraph.getCellValue(t);return t instanceof h?(m._hasOnlyNumbers= 290!1,new p.CellError(p.ErrorType.VALUE,e.ErrorMessage.ScalarExpected)):(Object(c.isExtendedNumber)(t)||(m._hasOnlyNumbers=!1),t)}))}}],x(h.prototype,k),f&&x(h,f),Object.defineProperty(h,"prototype",{writable:!1}),h}()},function(g,b,a){b.__esModule=!0;b.isImmediatePropagationStopped=function(F){return!1===F.isImmediatePropagationEnabled};b.isLeftClick=function(F){return 0===F.button};b.isRightClick=function(F){return 2===F.button};b.stopImmediatePropagation=function(F){F.isImmediatePropagationEnabled= 291!1;F.cancelBubble=!0}},function(g,b,a){a(0);a(27);a(53);b.__esModule=!0;var F={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0};b.getRegisteredMapsCounter=b.getIncreasedIndexes=b.getDecreasedIndexes=b.alterUtilsFactory=b.IndexMapper=void 0;g=a(826);b.IndexMapper=g.IndexMapper;g=a(319);b.getRegisteredMapsCounter=g.getRegisteredMapsCounter;g=a(604);b.getIncreasedIndexes=g.getIncreasedIndexes;b.getDecreasedIndexes=g.getDecreasedIndexes;b.alterUtilsFactory= 292g.alterUtilsFactory;var B=a(602);Object.keys(B).forEach(function(D){"default"!==D&&"__esModule"!==D&&(Object.prototype.hasOwnProperty.call(F,D)||D in b&&b[D]===B[D]||(b[D]=B[D]))})},function(g,b,a){g=a(28);b=a(72);var F=a(341),B=a(99),D=a(114),A=a(159);g({target:"Object",stat:!0,sham:!b},{getOwnPropertyDescriptors:function(x){var q,p;x=B(x);for(var e=D.f,c=F(x),d={},h=0;c.length>h;)void 0!==(p=e(x,q=c[h++]))&&A(d,q,p);return d}})},function(g,b,a){a(223)("asyncIterator")},function(g,b,a){g=a(100); 293b=a(223);a=a(130);b("toStringTag");a(g("Symbol"),"Symbol")},function(g,b,a){g=a(45);a(130)(g.JSON,"JSON",!0)},function(g,b,a){a(130)(Math,"Math",!0)},function(g,b,a){a(680);a(687);a(688);a(689);a(690);a(691)},function(g,b,a){function F(w,v){if("function"!=typeof v&&null!==v)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(v&&v.prototype,{constructor:{value:w,writable:!0,configurable:!0}});Object.defineProperty(w,"prototype",{writable:!1});v&&B(w, 294v)}function B(w,v){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,y){return C.__proto__=y,C})(w,v)}function D(w){var v=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}();return function(){var C=A(w);if(v){var y=A(this).constructor;C=Reflect.construct(C,arguments,y)}else C=C.apply(this, 295arguments);if(!C||"object"!==c(C)&&"function"!=typeof C){if(void 0!==C)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");C=this}return C}}function A(w){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)})(w)}function x(){function w(aa,W,ca){return Object.defineProperty(aa,W,{value:ca,enumerable:!0,configurable:!0, 296writable:!0}),aa[W]}function v(aa,W,ca,ia){W=Object.create((W&&W.prototype instanceof y?W:y).prototype);ia=new P(ia||[]);return W._invoke=function(ba,fa,ja){var qa="suspendedStart";return function(ha,na){if("executing"===qa)throw Error("Generator is already running");if("completed"===qa){if("throw"===ha)throw na;return R()}ja.method=ha;for(ja.arg=na;;){if(ha=ja.delegate)if(ha=I(ha,ja)){if(ha===U)continue;return ha}if("next"===ja.method)ja.sent=ja._sent=ja.arg;else if("throw"===ja.method){if("suspendedStart"=== 297qa)throw qa="completed",ja.arg;ja.dispatchException(ja.arg)}else"return"===ja.method&&ja.abrupt("return",ja.arg);qa="executing";ha=C(ba,fa,ja);if("normal"===ha.type){if(qa=ja.done?"completed":"suspendedYield",ha.arg===U)continue;return{value:ha.arg,done:ja.done}}"throw"===ha.type&&(qa="completed",ja.method="throw",ja.arg=ha.arg)}}}(aa,ca,ia),W}function C(aa,W,ca){try{return{type:"normal",arg:aa.call(W,ca)}}catch(ia){return{type:"throw",arg:ia}}}function y(){}function z(){}function E(){}function H(aa){["next", 298"throw","return"].forEach(function(W){w(aa,W,function(ca){return this._invoke(W,ca)})})}function G(aa,W){var ca;this._invoke=function(ia,ba){function fa(){return new W(function(ja,qa){!function sa(na,oa,ma,pa){na=C(aa[na],aa,oa);if("throw"!==na.type){var va=na.arg;return(na=va.value)&&"object"==c(na)&&Q.call(na,"__await")?W.resolve(na.__await).then(function(Aa){sa("next",Aa,ma,pa)},function(Aa){sa("throw",Aa,ma,pa)}):W.resolve(na).then(function(Aa){va.value=Aa;ma(va)},function(Aa){return sa("throw", 299Aa,ma,pa)})}pa(na.arg)}(ia,ba,ja,qa)})}return ca=ca?ca.then(fa,fa):fa()}}function I(aa,W){var ca=aa.iterator[W.method];if(void 0===ca){if(W.delegate=null,"throw"===W.method){if(aa.iterator.return&&
299(W.method="return",W.arg=void 0,I(aa,W),"throw"===W.method))return U;W.method="throw";W.arg=new TypeError("The iterator does not provide a 'throw' method")}return U}ca=C(ca,aa.iterator,W.arg);return"throw"===ca.type?(W.method="throw",W.arg=ca.arg,W.delegate=null,U):(ca=ca.arg)?ca.done?(W[aa.resultName]= 300ca.value,W.next=aa.nextLoc,"return"!==W.method&&(W.method="next",W.arg=void 0),W.delegate=null,U):ca:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,U)}function K(aa){var W={tryLoc:aa[0]};1 in aa&&(W.catchLoc=aa[1]);2 in aa&&(W.finallyLoc=aa[2],W.afterLoc=aa[3]);this.tryEntries.push(W)}function J(aa){var W=aa.completion||{};W.type="normal";delete W.arg;aa.completion=W}function P(aa){this.tryEntries=[{tryLoc:"root"}];aa.forEach(K,this);this.reset(!0)}function S(aa){if(aa){var W= 301aa[T];if(W)return W.call(aa);if("function"==typeof aa.next)return aa;if(!isNaN(aa.length)){var ca=-1;W=function ba(){for(;++ca<aa.length;)if(Q.call(aa,ca))return ba.value=aa[ca],ba.done=!1,ba;return ba.value=void 0,ba.done=!0,ba};return W.next=W}}return{next:R}}function R(){return{value:void 0,done:!0}}x=function(){return O};var O={},N=Object.prototype,Q=N.hasOwnProperty,M="function"==typeof Symbol?Symbol:{},T=M.iterator||"@@iterator",Z=M.asyncIterator||"@@asyncIterator",L=M.toStringTag||"@@toStringTag"; 302try{w({},"")}catch(aa){w=function(W,ca,ia){return W[ca]=ia}}O.wrap=v;var U={};M={};w(M,T,function(){return this});var V=Object.getPrototypeOf;(V=V&&V(V(S([]))))&&V!==N&&Q.call(V,T)&&(M=V);var Y=E.prototype=y.prototype=Object.create(M);return z.prototype=E,w(Y,"constructor",E),w(E,"constructor",z),z.displayName=w(E,L,"GeneratorFunction"),O.isGeneratorFunction=function(aa){aa="function"==typeof aa&&aa.constructor;return!!aa&&(aa===z||"GeneratorFunction"===(aa.displayName||aa.name))},O.mark=function(aa){return Object.setPrototypeOf? 303Object.setPrototypeOf(aa,E):(aa.__proto__=E,w(aa,L,"GeneratorFunction")),aa.prototype=Object.create(Y),aa},O.awrap=function(aa){return{__await:aa}},H(G.prototype),w(G.prototype,Z,function(){return this}),O.AsyncIterator=G,O.async=function(aa,W,ca,ia,ba){void 0===ba&&(ba=Promise);var fa=new G(v(aa,W,ca,ia),ba);return O.isGeneratorFunction(W)?fa:fa.next().then(function(ja){return ja.done?ja.value:fa.next()})},H(Y),w(Y,L,"Generator"),w(Y,T,function(){return this}),w(Y,"toString",function(){return"[object Generator]"}), 304O.keys=function(aa){var W=[],ca;for(ca in aa)W.push(ca);return W.reverse(),function ba(){for(;W.length;){var fa=W.pop();if(fa in aa)return ba.value=fa,ba.done=!1,ba}return ba.done=!0,ba}},O.values=S,P.prototype={constructor:P,reset:function(aa){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(J),!aa)for(var W in this)"t"===W.charAt(0)&&Q.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=void 0)},stop:function(){this.done= 305!0;var aa=this.tryEntries[0].completion;if("throw"===aa.type)throw aa.arg;return this.rval},dispatchException:function(aa){function W(ha,na){return fa.type="throw",fa.arg=aa,ca.next=ha,na&&(ca.method="next",ca.arg=void 0),!!na}if(this.done)throw aa;for(var ca=this,ia=this.tryEntries.length-1;0<=ia;--ia){var ba=this.tryEntries[ia],fa=ba.completion;if("root"===ba.tryLoc)return W("end");if(ba.tryLoc<=this.prev){var ja=Q.call(ba,"catchLoc"),qa=Q.call(ba,"finallyLoc");if(ja&&qa){if(this.prev<ba.catchLoc)return W(ba.catchLoc, 306!0);if(this.prev<ba.finallyLoc)return W(ba.finallyLoc)}else if(ja){if(this.prev<ba.catchLoc)return W(ba.catchLoc,!0)}else{if(!qa)throw Error("try statement without catch or finally");if(this.prev<ba.finallyLoc)return W(ba.finallyLoc)}}}},abrupt:function(aa,W){for(var ca=this.tryEntries.length-1;0<=ca;--ca){var ia=this.tryEntries[ca];if(ia.tryLoc<=this.prev&&Q.call(ia,"finallyLoc")&&this.prev<ia.finallyLoc){var ba=ia;break}}ba&&("break"===aa||"continue"===aa)&&ba.tryLoc<=W&&W<=ba.finallyLoc&&(ba=null); 307ca=ba?ba.completion:{};return ca.type=aa,ca.arg=W,ba?(this.method="next",this.next=ba.finallyLoc,U):this.complete(ca)},complete:function(aa,W){if("throw"===aa.type)throw aa.arg;return"break"===aa.type||"continue"===aa.type?this.next=aa.arg:"return"===aa.type?(this.rval=this.arg=aa.arg,this.method="return",this.next="end"):"normal"===aa.type&&W&&(this.next=W),U},finish:function(aa){for(var W=this.tryEntries.length-1;0<=W;--W){var ca=this.tryEntries[W];if(ca.finallyLoc===aa)return this.complete(ca.completion, 308ca.afterLoc),J(ca),U}},catch:function(aa){for(var W=this.tryEntries.length-1;0<=W;--W){var ca=this.tryEntries[W];if(ca.tryLoc===aa){aa=ca.completion;if("throw"===aa.type){var ia=aa.arg;J(ca)}return ia}}throw Error("illegal catch attempt");},delegateYield:function(aa,W,ca){return this.delegate={iterator:S(aa),resultName:W,nextLoc:ca},"next"===this.method&&(this.arg=void 0),U}},O}function q(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function");}function p(w,v){for(var C= 3090;C<v.length;C++){var y=v[C];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(w,y.key,y)}}function e(w,v,C){return v&&p(w.prototype,v),C&&p(w,C),Object.defineProperty(w,"prototype",{writable:!1}),w}function c(w){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(v){return typeof v}:function(v){return v&&"function"==typeof Symbol&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(w)}function d(w){return!(!w|| 310"object"!==c(w)&&"function"!=typeof w)&&"start"in w&&Object(h.isSimpleCellAddress)(w.start)&&"end"in w&&Object(h.isSimpleCellAddress)(w.end)}a.r(b);a.d(b,"WRONG_RANGE_SIZE",function(){return l});a.d(b,"isSimpleCellRange",function(){return d});a.d(b,"simpleCellRange",function(){return r});a.d(b,"AbsoluteCellRange",function(){return m});a.d(b,"AbsoluteColumnRange",function(){return t});a.d(b,"AbsoluteRowRange",function(){return u});a(274);a(52);a(18);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(86);a(87); 311a(88);a(89);a(25);a(27);a(26);a(90);a(62);a(13);a(7);var h=a(24),k=a(40),f=a(74),n=a(197),l="AbsoluteCellRange: Wrong range size",r=function(w,v){return{start:w,end:v}},m=function(){function w(v,C){if(q(this,w),v.sheet!==C.sheet)throw new k.SheetsNotEqual(v.sheet,C.sheet);this.start=Object(h.simpleCellAddress)(v.sheet,v.col,v.row);this.end=Object(h.simpleCellAddress)(C.sheet,C.col,C.row)}return e(w,[{key:"sheet",get:function(){return this.start.sheet}},{key:"isFinite",value:function(){return Number.isFinite(this.size())}}, 312{key:"doesOverlap",value:function(v){return this.start.sheet==v.start.sheet&&!(this.end.row<v.start.row||this.start.row>v.end.row)&&!(this.end.col<v.start.col||this.start.col>v.end.col)}},{key:"addressInRange",value:function(v){return this.sheet===v.sheet&&this.start.row<=v.row&&this.end.row>=v.row&&this.start.col<=v.col&&this.end.col>=v.col}},{key:"columnInRange",value:function(v){return this.sheet===v.sheet&&this.start.col<=v.col&&this.end.col>=v.col}},{key:"rowInRange",value:function(v){return this.sheet=== 313v.sheet&&this.start.row<=v.row&&this.end.row>=v.row}},{key:"containsRange",value:function(v){return this.addressInRange(v.start)&&this.addressInRange(v.end)}},{key:"intersectionWith",value:function(v){if(this.sheet===v.start.sheet){var C=Math.max(this.start.row,v.start.row),y=Math.min(this.end.row,v.end.row),z=Math.max(this.start.col,v.start.col);v=Math.min(this.end.col,v.end.col);
313if(!(C>y||z>v))return new w(Object(h.simpleCellAddress)(this.sheet,z,C),Object(h.simpleCellAddress)(this.sheet,v,y))}}}, 314{key:"includesRow",value:function(v){return this.start.row<v&&this.end.row>=v}},{key:"includesColumn",value:function(v){return this.start.col<v&&this.end.col>=v}},{key:"shiftByRows",value:function(v){this.start.row+=v;this.end.row+=v}},{key:"expandByRows",value:function(v){this.end.row+=v}},{key:"shiftByColumns",value:function(v){this.start.col+=v;this.end.col+=v}},{key:"shifted",value:function(v,C){return w.spanFrom(Object(h.simpleCellAddress)(this.sheet,this.start.col+v,this.start.row+C),this.width(), 315this.height())}},{key:"expandByColumns",value:function(v){this.end.col+=v}},{key:"moveToSheet",value:function(v){this.start.sheet=v;this.end.sheet=v}},{key:"removeSpan",value:function(v){v instanceof n.RowsSpan?this.removeRows(v.start,v.end):this.removeColumns(v.start,v.end)}},{key:"shouldBeRemoved",value:function(){return 0>=this.width()||0>=this.height()}},{key:"rangeWithSameWidth",value:function(v,C){return w.spanFrom(Object(h.simpleCellAddress)(this.sheet,this.start.col,v),this.width(),C)}},{key:"rangeWithSameHeight", 316value:function(v,C){return w.spanFrom(Object(h.simpleCellAddress)(this.sheet,v,this.start.row),C,this.height())}},{key:"toString",value:function(){return"".concat(this.start.sheet,",").concat(this.start.col,",").concat(this.start.row,",").concat(this.end.col,",").concat(this.end.row)}},{key:"width",value:function(){return this.end.col-this.start.col+1}},{key:"height",value:function(){return this.end.row-this.start.row+1}},{key:"size",value:function(){return this.height()*this.width()}},{key:"arrayOfAddressesInRange", 317value:function(){for(var v=[],C=0;C<this.height();++C){v[C]=[];for(var y=0;y<this.width();++y){var z=Object(h.simpleCellAddress)(this.sheet,this.start.col+y,this.start.row+C);v[C].push(z)}}return v}},{key:"withStart",value:function(v){return new w(v,this.end)}},{key:"sameDimensionsAs",value:function(v){return this.width()===v.width()&&this.height()===v.height()}},{key:"sameAs",value:function(v){return Object(h.equalSimpleCellAddress)(this.start,v.start)&&Object(h.equalSimpleCellAddress)(this.end, 318v.end)}},{key:"addressesArrayMap",value:function(v,C){for(var y=[],z=this.start.row;z<=this.effectiveEndRow(v);){for(var E=this.start.col,H=[];E<=this.effectiveEndColumn(v);)H.push(C(Object(h.simpleCellAddress)(this.start.sheet,E,z))),E++;y.push(H);z++}return y}},{key:"addresses",value:function(v){var C=[],y=this.start.row,z=this.effectiveEndRow(v);for(v=this.effectiveEndColumn(v);y<=z;){for(var E=this.start.col;E<=v;)C.push(Object(h.simpleCellAddress)(this.start.sheet,E,y)),E++;y++}return C}},{key:"addressesWithDirection", 319value:x().mark(function E(C,y,z){var H,G,I,K,J,P,S,R;return x().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(!(0<C)){O.next=30;break}if(!(0<y)){O.next=16;break}H=this.effectiveEndRow(z);case 3:if(!(H>=this.start.row)){O.next=14;break}G=this.effectiveEndColumn(z);case 5:if(!(G>=this.start.col)){O.next=11;break}return O.next=8,Object(h.simpleCellAddress)(this.start.sheet,G,H);case 8:--G;O.next=5;break;case 11:--H;O.next=3;break;case 14:O.next=28;break;case 16:I=this.start.row;case 17:if(!(I<= 320this.effectiveEndRow(z))){O.next=28;break}K=this.effectiveEndColumn(z);case 19:if(!(K>=this.start.col)){O.next=25;break}return O.next=22,Object(h.simpleCellAddress)(this.start.sheet,K,I);case 22:--K;O.next=19;break;case 25:I+=1;O.next=17;break;case 28:O.next=57;break;case 30:if(!(0<y)){O.next=45;break}J=this.effectiveEndRow(z);case 32:if(!(J>=this.start.row)){O.next=43;break}P=this.start.col;case 34:if(!(P<=this.effectiveEndColumn(z))){O.next=40;break}return O.next=37,Object(h.simpleCellAddress)(this.start.sheet, 321P,J);case 37:P+=1;O.next=34;break;case 40:--J;O.next=32;break;case 43:O.next=57;break;case 45:S=this.start.row;case 46:if(!(S<=this.effectiveEndRow(z))){O.next=57;break}R=this.start.col;case 48:if(!(R<=this.effectiveEndColumn(z))){O.next=54;break}return O.next=51,Object(h.simpleCellAddress)(this.start.sheet,R,S);case 51:R+=1;O.next=48;break;case 54:S+=1;O.next=46;break;case 57:case "end":return O.stop()}},E,this)})},{key:"getAddress",value:function(C,y){if(0>C||0>y||y>this.height()-1||C>this.width()- 3221)throw Error("Index out of bound");return Object(h.simpleCellAddress)(this.start.sheet,this.start.col+C,this.start.row+y)}},{key:"exceedsSheetSizeLimits",value:function(C,y){return this.end.col>=C||this.end.row>=y}},{key:"effectiveEndColumn",value:function(C){return this.end.col}},{key:"effectiveEndRow",value:function(C){return this.end.row}},{key:"effectiveWidth",value:function(C){return this.width()}},{key:"effectiveHeight",value:function(C){return this.height()}},{key:"removeRows",value:function(C, 323y){if(!(C>this.end.row)){if(y<this.start.row)return this.shiftByRows(-(y-C+1));C<=this.start.row&&(this.start.row=C);this.end.row-=Math.min(y,this.end.row)-C+1}}},{key:"removeColumns",value:function(C,y){if(!(C>this.end.col)){if(y<this.start.col)return this.shiftByColumns(-(y-C+1));C<=this.start.col&&(this.start.col=C);this.end.col-=Math.min(y,this.end.col)-C+1}}}],[{key:"fromAst",value:function(C,y){return C.type===f.AstNodeType.CELL_RANGE?w.fromCellRange(C,y):C.type===f.AstNodeType.COLUMN_RANGE? 324t.fromColumnRange(C,y):u.fromRowRangeAst(C,y)}},{key:"fromAstOrUndef",value:function(C,y){try{return w.fromAst(C,y)}catch(z){}}},{key:"fromCellRange",value:function(C,y){return new w(C.start.toSimpleCellAddress(y),C.end.toSimpleCellAddress(y))}},{key:"spanFrom",value:function(C,y,z){C=w.spanFromOrUndef(C,y,z);if(void 0===C)throw Error(l);return C}},{key:"spanFromOrUndef",value:function(C,y,z){if(!Number.isFinite(y)&&Number.isFinite(z))return 0!==C.col?void 0:new u(C.sheet,C.row,C.row+z-1);if(!Number.isFinite(z)&& 325Number.isFinite(y))return 0!==C.row?void 0:new t(C.sheet,C.col,C.col+y-1);if(Number.isFinite(z)&&Number.isFinite(y))return new w(C,Object(h.simpleCellAddress)(C.sheet,C.col+y-1,C.row+z-1))}},{key:"fromCoordinates",value:function(C,y,z,E,H){return new w(Object(h.simpleCellAddress)(C,y,z),Object(h.simpleCellAddress)(C,E,H))}}]),w}(),t=function(w){function v(y,z,E){return q(this,v),C.call(this,Object(h.simpleCellAddress)(y,z,0),Object(h.simpleCellAddress)(y,E,Number.POSITIVE_INFINITY))}F(v,w);var C= 326D(v);return e(v,[{key:"shouldBeRemoved",value:function(){return 0>=this.width()}},{key:"shiftByRows",value:function(y){}},{key:"expandByRows",value:function(y){}},{key:"shifted",value:function(y,z){return new v(this.sheet,this.start.col+y,this.end.col+y)}},{key:"rangeWithSameHeight",value:function(y,z){return new v(this.sheet,y,y+z-1)}},{key:"exceedsSheetSizeLimits",value:function(y,z){return this.end.col>=y}},{key:"effectiveEndRow",value:function(y){return this.effectiveHeight(y)-1}},{key:"effectiveHeight", 327value:function(y){return y.getSheetHeight(this.sheet)}},{key:"removeRows",value:function(y,z){}}],[{key:"fromColumnRange",value:function(y,z){var E=y.start.toSimpleColumnAddress(z);y=y.end.toSimpleColumnAddress(z);if(E.sheet!==y.sheet)throw new k.SheetsNotEqual(E.sheet,y.sheet);return new v(E.sheet,E.col,y.col)}}]),v}(m),u=function(w){function v(y,z,E){return q(this,v),C.call(this,Object(h.simpleCellAddress)(y,0,z),Object(h.simpleCellAddress)(y,Number.POSITIVE_INFINITY,E))}F(v,w);var C=D(v);return e(v, 328[{key:"shouldBeRemoved",value:function(){return 0>=this.height()}},{key:"shiftByColumns",value:function(y){}},{key:"expandByColumns",value:function(y){}},{key:"shifted",value:function(y,z){return new v(this.sheet,this.start.row+z,this.end.row+z)}},{key:"rangeWithSameWidth",value:function(y,z){return new v(this.sheet,y,y+z-1)}},{key:"exceedsSheetSizeLimits",value:function(y,z){return this.end.row>=z}},{key:"effectiveEndColumn",value:function(y){return this.effectiveWidth(y)-1}},{key:"effectiveWidth", 329value:function(y){return y.getSheetWidth(this.sheet)}},{key:"removeColumns",value:function(y,z){}}],[{key:"fromRowRangeAst",value:function(y,z){var E=y.start.toSimpleRowAddress(z);y=y.end.toSimpleRowAddress(z);if(E.sheet!==y.sheet)throw new k.SheetsNotEqual(E.sheet,y.sheet);return new v(E.sheet,E.row,y.row)}}]),v}(m)},function(g,b,a){b.__esModule=!0;b.error=function(){var B;(0,F.isDefined)(console)&&(B=console).error.apply(B,arguments)};b.info=function(){var B;(0,F.isDefined)(console)&&(B=console).info.apply(B, 330arguments)};b.log=function(){var B;
330(0,F.isDefined)(console)&&(B=console).log.apply(B,arguments)};b.warn=function(){var B;(0,F.isDefined)(console)&&(B=console).warn.apply(B,arguments)};var F=a(31)},function(g,b,a){g=a(28);a=a(676);g({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},function(g,b){var a=TypeError;g.exports=function(F){if(null==F)throw a("Can't call method on "+F);return F}},function(g,b,a){var F=a(94),B=Object;g.exports=function(D){return B(F(D))}},function(g,b, 331a){var F=a(56),B=a(80),D=a(661),A=a(253);g.exports=function(x,q,p,e){e||(e={});var c=e.enumerable,d=void 0!==e.name?e.name:q;if(F(p)&&D(p,d,e),e.global)c?x[q]=p:A(q,p);else{try{e.unsafe?x[q]&&(c=!0):delete x[q]}catch(h){}c?x[q]=p:B.f(x,q,{value:p,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return x}},function(g,b,a){function F(A,x){return B.default.sanitize(A,x)}g=a(1);b.__esModule=!0;b.equalsIgnoreCase=function(){for(var A=[],x=arguments.length,q=Array(x),p=0;p<x;p++)q[p]= 332arguments[p];for(x=q.length;x;)--x,p=(0,D.stringify)(q[x]).toLowerCase(),-1===A.indexOf(p)&&A.push(p);return 1===A.length};b.isPercentValue=function(A){return/^([0-9][0-9]?%$)|(^100%$)/.test(A)};b.randomString=function(){function A(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return A()+A()+A()+A()};b.sanitize=F;b.stripTags=function(A){return F("".concat(A),{ALLOWED_TAGS:[]})};b.substitute=function(A){var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"".concat(A).replace(/(?:\\)?\[([^[\]]+)]/g, 333function(q,p){return"\\"===q.charAt(0)?q.substr(1,q.length-1):void 0===x[p]?"":x[p]})};b.toUpperCaseFirst=function(A){return A[0].toUpperCase()+A.substr(1)};a(33);a(0);a(69);a(12);a(67);var B=g(a(451)),D=a(31)},function(g,b,a){b.__esModule=!0;b.default=void 0;g=a(17);var F=a(70);a={_localHooks:Object.create(null),addLocalHook:function(B,D){return this._localHooks[B]||(this._localHooks[B]=[]),this._localHooks[B].push(D),this},runLocalHooks:function(B,D,A,x,q,p,e){if(this._localHooks[B])for(var c=this._localHooks[B].length, 334d=0;d<c;d++)(0,F.fastCall)(this._localHooks[B][d],this,D,A,x,q,p,e)},clearLocalHooks:function(){return this._localHooks={},this}};(0,g.defineGetter)(a,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});b.default=a},function(g,b,a){var F=a(176),B=a(94);g.exports=function(D){return F(B(D))}},function(g,b,a){var F=a(45),B=a(56);g.exports=function(D,A){if(2>arguments.length){var x=F[D];x=B(x)?x:void 0}else x=F[D]&&F[D][A];return x}},function(g,b,a){var F=a(72);g=a(45);var B=a(35),D=a(180),A=a(270), 335x=a(137),q=a(157).f,p=a(128),e=a(261),c=a(73),d=a(371),h=a(268);b=a(694);var k=a(96),f=a(38),n=a(65),l=a(116).enforce,r=a(272),m=a(59),t=a(353),u=a(354),w=m("match"),v=g.RegExp,C=v.prototype,y=g.SyntaxError,z=B(C.exec),E=B("".charAt),H=B("".replace),G=B("".indexOf),I=B("".slice),K=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,J=/a/g,P=/a/g;a=new v(J)!==J;var S=h.MISSED_STICKY,R=h.UNSUPPORTED_Y;a=F&&(!a||S||t||u||f(function(){return P[w]=!1,v(J)!=J||v(P)==P||"/a/i"!=v(J,"i")}));if(D("RegExp",a)){var O= 336function(N,Q){var M,T,Z,L,U,V,Y=p(C,this),aa=e(N),W=void 0===Q,ca=[],ia=N;if(!Y&&aa&&W&&N.constructor===O)return N;if((aa||p(C,N))&&(N=N.source,W&&(Q=d(ia))),N=void 0===N?"":c(N),Q=void 0===Q?"":c(Q),ia=N,t&&"dotAll"in J&&(T=!!Q&&-1<G(Q,"s"))&&(Q=H(Q,/s/g,"")),M=Q,S&&"sticky"in J&&(Z=!!Q&&-1<G(Q,"y"))&&R&&(Q=H(Q,/y/g,"")),u&&(N=(L=function(ba){for(var fa,ja=ba.length,qa=0,ha="",na=[],oa={},ma=!1,pa=!1,sa=0,va="";qa<=ja;qa++){if("\\"===(fa=E(ba,qa)))fa+=E(ba,++qa);else if("]"===fa)ma=!1;else if(!ma)switch(!0){case "["=== 337fa:ma=!0;break;case "("===fa:z(K,I(ba,qa+1))&&(qa+=2,pa=!0);ha+=fa;sa++;continue;case "\x3e"===fa&&pa:if(""===va||n(oa,va))throw new y("Invalid capture group name");oa[va]=!0;na[na.length]=[va,sa];pa=!1;va="";continue}pa?va+=fa:ha+=fa}return[ha,na]}(N))[0],ca=L[1]),U=A(v(N,Q),Y?this:C,O),(T||Z||ca.length)&&(V=l(U),T&&(V.dotAll=!0,V.raw=O(function(ba){for(var fa,ja=ba.length,qa=0,ha="",na=!1;qa<=ja;qa++)"\\"!==(fa=E(ba,qa))?na||"."!==fa?("["===fa?na=!0:"]"===fa&&(na=!1),ha+=fa):ha+="[\\s\\S]":ha+= 338fa+E(ba,++qa);return ha}(N),M)),Z&&(V.sticky=!0),ca.length&&(V.groups=ca)),N!==ia)try{x(U,"source",""===ia?"(?:)":ia)}catch(ba){}return U};a=q(v);for(D=0;a.length>D;)b(O,v,a[D++]);C.constructor=O;O.prototype=C;k(g,"RegExp",O,{constructor:!0})}r("RegExp")},function(g,b,a){function F(d){return D(d)?d.LABEL:d.name}function B(d){return d.name}function D(d){return Object(p.isString)(d.LABEL)&&""!==d.LABEL}function A(d){var h=d.pattern,k={};k.name=d.name;Object(p.isUndefined)(h)||(k.PATTERN=h);if(Object(p.has)(d, 339"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.";Object(p.has)(d,"categories")&&(k.CATEGORIES=d.categories);Object(e.augmentTokenTypes)([k]);Object(p.has)(d,"label")&&(k.LABEL=d.label);Object(p.has)(d,"group")&&(k.GROUP=d.group);Object(p.has)(d,"pop_mode")&&(k.POP_MODE=d.pop_mode);Object(p.has)(d,"push_mode")&&(k.PUSH_MODE=d.push_mode);Object(p.has)(d,"longer_alt")&&(k.LONGER_ALT=d.longer_alt);Object(p.has)(d, 340"line_breaks")&&(k.LINE_BREAKS=d.line_breaks);Object(p.has)(d,"start_chars_hint")&&(k.START_CHARS_HINT=d.start_chars_hint);return k}function x(d,h,k,f,n,l,r,m){return{image:h,startOffset:k,endOffset:f,startLine:n,endLine:l,startColumn:r,endColumn:m,tokenTypeIdx:d.tokenTypeIdx,tokenType:d}}function q(d,h){return Object(e.tokenStructuredMatcher)(d,h)}a.r(b);a.d(b,"tokenLabel",function(){return F});a.d(b,"tokenName",function(){return B});a.d(b,"hasTokenLabel",function(){return D});a.d(b,"createToken", 341function(){return A});a.d(b,"EOF",function(){return c});a.d(b,"createTokenInstance",function(){return x});a.d(b,"tokenMatcher",function(){return q});var p=a(48);g=a(162);var e=a(193),c=A({name:"EOF",pattern:g.Lexer.NA});Object(e.augmentTokenTypes)([c])},function(g,b,a){var F=a(138);g.exports=function(B){return F(B.length)}},function(g,b,a){function F(z,E){if(!(z=function(H){if(Array.isArray(H))return H}(z)||function(H,G){var I=null==H?null:"undefined"!=typeof Symbol&&H[Symbol.iterator]||H["@@iterator"]; 342if(null!=I){var K,J=[],P=!0,S=!1;try{for(I=I.call(H);!(P=(K=I.next()).done)&&(J.push(K.value),!G||J.length!==G);P=!0);}catch(O){S=!0;var R=O}finally{try{P||null==I.return||I.return()}finally{if(S)throw R;}}return J}}
342(z,E)||function(H,G){if(H){if("string"==typeof H)return B(H,G);var I=Object.prototype.toString.call(H).slice(8,-1);"Object"===I&&H.constructor&&(I=H.constructor.name);if("Map"===I||"Set"===I)return Array.from(H);if("Arguments"===I||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return B(H, 343G)}}(z,E)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return z}function B(z,E){(null==E||E>z.length)&&(E=z.length);for(var H=0,G=Array(E);H<E;H++)G[H]=z[H];return G}function D(z){return 1===z.length?z.toUpperCase().charCodeAt(0)-65:z.split("").reduce(function(E,H){return 26*E+(H.toUpperCase().charCodeAt(0)-64)},0)-1}function A(z){for(var E="";0<=z;)E=String.fromCharCode(z%26+97)+E, 344z=Math.floor(z/26)-1;return E.toUpperCase()}function x(z,E){z=E(z);if(void 0!==z)return r.test(z)?z:(z=z.replace(/'/g,"''"),"'".concat(z,"'"))}function q(z,E){var H,G=null!==(H=z[3])&&void 0!==H?H:z[2];return G?E(G.replace(/''/g,"'")):null}a.r(b);a.d(b,"cellAddressFromString",function(){return m});a.d(b,"columnAddressFromString",function(){return t});a.d(b,"rowAddressFromString",function(){return u});a.d(b,"simpleCellAddressFromString",function(){return w});a.d(b,"simpleCellRangeFromString",function(){return v}); 345a.d(b,"simpleCellAddressToString",function(){return C});a.d(b,"simpleCellRangeToString",function(){return y});a.d(b,"columnIndexToLabel",function(){return A});a.d(b,"sheetIndexToString",function(){return x});a(101);a(12);a(69);a(18);a(52);a(64);a(105);a(0);a(67);a(8);a(9);a(10);a(3);a(2);a(4);a(13);a(26);a(22);var p=a(91),e=a(24),c=a(230),d=a(231),h=a(192),k=a(232),f=new RegExp("^(".concat(h.sheetNameRegexp,")?(\\").concat(h.ABSOLUTE_OPERATOR,"?)([A-Za-z]+)(\\").concat(h.ABSOLUTE_OPERATOR,"?)([0-9]+)$")), 346n=new RegExp("^(".concat(h.sheetNameRegexp,")?(\\").concat(h.ABSOLUTE_OPERATOR,"?)([A-Za-z]+)$")),l=new RegExp("^(".concat(h.sheetNameRegexp,")?(\\").concat(h.ABSOLUTE_OPERATOR,"?)([0-9]+)$")),r=new RegExp("^".concat(h.simpleSheetName,"$")),m=function(z,E,H){E=f.exec(E);var G=D(E[6]);z=q(E,z);if(void 0!==z){null===z&&(z=void 0);var I=Number(E[8])-1;return E[5]===h.ABSOLUTE_OPERATOR&&E[7]===h.ABSOLUTE_OPERATOR?c.CellAddress.absolute(G,I,z):E[5]===h.ABSOLUTE_OPERATOR?c.CellAddress.absoluteCol(G,I-H.row, 347z):E[7]===h.ABSOLUTE_OPERATOR?c.CellAddress.absoluteRow(G-H.col,I,z):c.CellAddress.relative(I-H.row,G-H.col,z)}},t=function(z,E,H){E=n.exec(E);z=q(E,z);if(void 0!==z){null===z&&(z=void 0);var G=D(E[6]);return E[5]===h.ABSOLUTE_OPERATOR?d.ColumnAddress.absolute(G,z):d.ColumnAddress.relative(G-H.col,z)}},u=function(z,E,H){E=l.exec(E);z=q(E,z);if(void 0!==z){null===z&&(z=void 0);var G=Number(E[6])-1;return E[5]===h.ABSOLUTE_OPERATOR?k.RowAddress.absolute(G,z):k.RowAddress.relative(G-H.row,z)}},w=function(z, 348E,H){E=f.exec(E);var G=D(E[6]);z=q(E,z);if(void 0!==z)return null===z&&(z=H),Object(e.simpleCellAddress)(z,G,Number(E[8])-1)},v=function(z,E,H){E=E.split(h.RANGE_OPERATOR);if(2===E.length){var G=F(E,2);E=G[1];H=w(z,G[0],H);if(void 0!==H&&(z=w(z,E,H.sheet),void 0!==z&&H.sheet===z.sheet))return Object(p.simpleCellRange)(H,z)}},C=function(z,E,H){var G=A(E.col);z=x(E.sheet,z);if(void 0!==z)return H!==E.sheet?"".concat(z,"!").concat(G).concat(E.row+1):"".concat(G).concat(E.row+1)},y=function(z,E,H){H= 349C(z,E.start,H);z=C(z,E.end,E.start.sheet);return void 0===H||void 0===z?void 0:"".concat(H).concat(h.RANGE_OPERATOR).concat(z)}},function(g,b,a){g=a(28);var F=a(696).left;b=a(161);var B=a(154);a=a(226);g({target:"Array",proto:!0,forced:!b("reduce")||!a&&79<B&&83>B},{reduce:function(D){var A=arguments.length;return F(this,D,A,1<A?arguments[1]:void 0)}})},function(g,b,a){function F(M,T,Z){if(void 0!==M.sheet&&void 0===T.sheet||void 0===M.sheet&&void 0!==T.sheet)throw Error("Start address inconsistent with end address"); 350if(void 0===M.sheet&&Z!==x.RELATIVE||void 0!==M.sheet&&Z===x.RELATIVE)throw Error("Sheet address inconsistent with sheet reference type");}function B(M,T){return(null!=T?T:"")+M}a.r(b);a.d(b,"parsingError",function(){return p});a.d(b,"ParsingErrorType",function(){return D});a.d(b,"AstNodeType",function(){return A});a.d(b,"RangeSheetReferenceType",function(){return x});a.d(b,"buildEmptyArgAst",function(){return e});a.d(b,"buildNumberAst",function(){return c});a.d(b,"buildStringAst",function(){return d}); 351a.d(b,"buildCellReferenceAst",function(){return h});a.d(b,"buildCellRangeAst",function(){return k});a.d(b,"buildColumnRangeAst",function(){return f});a.d(b,"buildRowRangeAst",function(){return n});a.d(b,"buildConcatenateOpAst",function(){return l});a.d(b,"buildEqualsOpAst",function(){return r});
351a.d(b,"buildNotEqualOpAst",function(){return m});a.d(b,"buildGreaterThanOpAst",function(){return t});a.d(b,"buildLessThanOpAst",function(){return u});a.d(b,"buildGreaterThanOrEqualOpAst",function(){return w}); 352a.d(b,"buildLessThanOrEqualOpAst",function(){return v});a.d(b,"buildPlusOpAst",function(){return C});a.d(b,"buildMinusOpAst",function(){return y});a.d(b,"buildTimesOpAst",function(){return z});a.d(b,"buildDivOpAst",function(){return E});a.d(b,"buildPowerOpAst",function(){return H});a.d(b,"buildMinusUnaryOpAst",function(){return G});a.d(b,"buildPlusUnaryOpAst",function(){return I});a.d(b,"buildPercentOpAst",function(){return K});a.d(b,"buildProcedureAst",function(){return J});a.d(b,"buildArrayAst", 353function(){return P});a.d(b,"buildNamedExpressionAst",function(){return S});a.d(b,"buildParenthesisAst",function(){return R});a.d(b,"buildCellErrorAst",function(){return O});a.d(b,"buildErrorWithRawInputAst",function(){return N});a.d(b,"buildParsingErrorAst",function(){return Q});a.d(b,"imageWithWhitespace",function(){return B});a(13);var D,A,x,q=a(24),p=function(M,T){return{type:M,message:T}};!function(M){M.LexingError="LexingError";M.ParserError="ParsingError";M.StaticOffsetError="StaticOffsetError"; 354M.StaticOffsetOutOfRangeError="StaticOffsetOutOfRangeError";M.RangeOffsetNotAllowed="RangeOffsetNotAllowed"}(D||(D={}));(function(M){M.EMPTY="EMPTY";M.NUMBER="NUMBER";M.STRING="STRING";M.MINUS_UNARY_OP="MINUS_UNARY_OP";M.PLUS_UNARY_OP="PLUS_UNARY_OP";M.PERCENT_OP="PERCENT_OP";M.CONCATENATE_OP="CONCATENATE_OP";M.EQUALS_OP="EQUALS_OP";M.NOT_EQUAL_OP="NOT_EQUAL_OP";M.GREATER_THAN_OP="GREATER_THAN_OP";M.LESS_THAN_OP="LESS_THAN_OP";M.GREATER_THAN_OR_EQUAL_OP="GREATER_THAN_OR_EQUAL_OP";M.LESS_THAN_OR_EQUAL_OP= 355"LESS_THAN_OR_EQUAL_OP";M.PLUS_OP="PLUS_OP";M.MINUS_OP="MINUS_OP";M.TIMES_OP="TIMES_OP";M.DIV_OP="DIV_OP";M.POWER_OP="POWER_OP";M.FUNCTION_CALL="FUNCTION_CALL";M.NAMED_EXPRESSION="NAMED_EXPRESSION";M.PARENTHESIS="PARENTHESES";M.CELL_REFERENCE="CELL_REFERENCE";M.CELL_RANGE="CELL_RANGE";M.COLUMN_RANGE="COLUMN_RANGE";M.ROW_RANGE="ROW_RANGE";M.ERROR="ERROR";M.ERROR_WITH_RAW_INPUT="ERROR_WITH_RAW_INPUT";M.ARRAY="ARRAY"})(A||(A={}));(function(M){M[M.RELATIVE=0]="RELATIVE";M[M.START_ABSOLUTE=1]="START_ABSOLUTE"; 356M[M.BOTH_ABSOLUTE=2]="BOTH_ABSOLUTE"})(x||(x={}));var e=function(M){return{type:A.EMPTY,leadingWhitespace:null==M?void 0:M.image}},c=function(M,T){return{type:A.NUMBER,value:M,leadingWhitespace:null==T?void 0:T.image}},d=function(M){var T;return{type:A.STRING,value:M.image.slice(1,-1),leadingWhitespace:null===(T=M.leadingWhitespace)||void 0===T?void 0:T.image}},h=function(M,T){return{type:A.CELL_REFERENCE,reference:M,leadingWhitespace:null==T?void 0:T.image}},k=function(M,T,Z,L){return F(M,T,Z),{type:A.CELL_RANGE, 357start:M,end:T,sheetReferenceType:Z,leadingWhitespace:L}},f=function(M,T,Z,L){return F(M,T,Z),{type:A.COLUMN_RANGE,start:M,end:T,sheetReferenceType:Z,leadingWhitespace:null==L?void 0:L.image}},n=function(M,T,Z,L){return F(M,T,Z),{type:A.ROW_RANGE,start:M,end:T,sheetReferenceType:Z,leadingWhitespace:null==L?void 0:L.image}},l=function(M,T,Z){return{type:A.CONCATENATE_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},r=function(M,T,Z){return{type:A.EQUALS_OP,left:M,right:T,leadingWhitespace:null== 358Z?void 0:Z.image}},m=function(M,T,Z){return{type:A.NOT_EQUAL_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},t=function(M,T,Z){return{type:A.GREATER_THAN_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},u=function(M,T,Z){return{type:A.LESS_THAN_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},w=function(M,T,Z){return{type:A.GREATER_THAN_OR_EQUAL_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},v=function(M,T,Z){return{type:A.LESS_THAN_OR_EQUAL_OP,left:M, 359right:T,leadingWhitespace:null==Z?void 0:Z.image}},C=function(M,T,Z){return{type:A.PLUS_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},y=function(M,T,Z){return{type:A.MINUS_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},z=function(M,T,Z){return{type:A.TIMES_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},E=function(M,T,Z){return{type:A.DIV_OP,left:M,right:T,leadingWhitespace:null==Z?void 0:Z.image}},H=function(M,T,Z){return{type:A.POWER_OP,left:M,right:T,leadingWhitespace:null== 360Z?void 0:Z.image}},G=function(M,T){return{type:A.MINUS_UNARY_OP,value:M,leadingWhitespace:null==T?void 0:T.image}},I=function(M,T){return{type:A.PLUS_UNARY_OP,value:M,leadingWhitespace:null==T?void 0:T.image}},K=function(M,T){return{type:A.PERCENT_OP,value:M,leadingWhitespace:null==T?void 0:T.image}},J=function(M,T,Z,L){return{type:A.FUNCTION_CALL,procedureName:M,args:T,leadingWhitespace:null==Z?void 0:Z.image,internalWhitespace:null==L?void 0:L.image}},P=function(M,T,Z){return{type:A.ARRAY,args:M, 361leadingWhitespace:null==T?void 0:T.image,internalWhitespace:null==Z?void 0:Z.image}},S=function(M,T){return{type:A.NAMED_EXPRESSION,expressionName:M,leadingWhitespace:null==T?void 0:T.image}},R=function(M,T,Z){return{type:A.PARENTHESIS,expression:M,leadingWhitespace:null==T?void 0:T.image,internalWhitespace:null==Z?void 0:Z.image}}
361,O=function(M,T){return{type:A.ERROR,error:M,leadingWhitespace:null==T?void 0:T.image}},N=function(M,T,Z){return{type:A.ERROR_WITH_RAW_INPUT,error:T,rawInput:M,leadingWhitespace:null== 362Z?void 0:Z.image}},Q=function(){return{type:A.ERROR,error:q.CellError.parsingError()}}},function(g,b,a){function F(){var q=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},p=q.userAgent,e=void 0===p?navigator.userAgent:p;q=q.vendor;var c=void 0===q?navigator.vendor:q;(0,D.objectEach)(A,function(d){(0,d.test)(e,c)})}function B(){var q=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).platform,p=void 0===q?navigator.platform:q;(0,D.objectEach)(x,function(e){(0,e.test)(p)})}b.__esModule= 363!0;b.isChrome=function(){return A.chrome.value};b.isChromeWebKit=function(){return A.chromeWebKit.value};b.isEdge=function(){return A.edge.value};b.isEdgeWebKit=function(){return A.edgeWebKit.value};b.isFirefox=function(){return A.firefox.value};b.isFirefoxWebKit=function(){return A.firefoxWebKit.value};b.isIE=function(){return A.ie.value};b.isIE9=function(){return A.ie9.value};b.isIOS=function(){return x.ios.value};b.isIpadOS=function(){return 2<(0<arguments.length&&void 0!==arguments[0]?arguments[0]: 364navigator).maxTouchPoints&&x.mac.value};b.isLinuxOS=function(){return x.linux.value};b.isMSBrowser=function(){return A.ie.value||A.edge.value};b.isMacOS=function(){return x.mac.value};b.isMobileBrowser=function(){return A.mobile.value};b.isSafari=function(){return A.safari.value};b.isWindowsOS=function(){return x.win.value};b.setBrowserMeta=F;b.setPlatformMeta=B;a(12);var D=a(17);g=function(q){var p={value:!1,test:function(e,c){p.value=q(e,c)}};return p};var A={chrome:g(function(q,p){return/Chrome/.test(q)&& 365/Google/.test(p)}),chromeWebKit:g(function(q){return/CriOS/.test(q)}),edge:g(function(q){return/Edge/.test(q)}),edgeWebKit:g(function(q){return/EdgiOS/.test(q)}),firefox:g(function(q){return/Firefox/.test(q)}),firefoxWebKit:g(function(q){return/FxiOS/.test(q)}),ie:g(function(q){return/Trident/.test(q)}),ie9:g(function(){return!!document.documentMode}),mobile:g(function(q){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(q)}),safari:g(function(q,p){return/Safari/.test(q)&& 366/Apple Computer/.test(p)})},x={mac:g(function(q){return/^Mac/.test(q)}),win:g(function(q){return/^Win/.test(q)}),linux:g(function(q){return/^Linux/.test(q)}),ios:g(function(q){return/iPhone|iPad|iPod/i.test(q)})};F();B()},function(g,b,a){(function(F){F.exports=function(){function B(){return ac.apply(null,arguments)}function D(X){return X instanceof Array||"[object Array]"===Object.prototype.toString.call(X)}function A(X){return null!=X&&"[object Object]"===Object.prototype.toString.call(X)}function x(X, 367da){return Object.prototype.hasOwnProperty.call(X,da)}function q(X){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(X).length;for(var da in X)if(x(X,da))return!1;return!0}function p(X){return void 0===X}function e(X){return"number"==typeof X||"[object Number]"===Object.prototype.toString.call(X)}function c(X){return X instanceof Date||"[object Date]"===Object.prototype.toString.call(X)}function d(X,da){var ka,ra=[],wa=X.length;for(ka=0;ka<wa;++ka)ra.push(da(X[ka],ka));return ra} 368function h(X,da){for(var ka in da)x(da,ka)&&(X[ka]=da[ka]);return x(da,"toString")&&(X.toString=da.toString),x(da,"valueOf")&&(X.valueOf=da.valueOf),X}function k(X,da,ka,ra){return Ja(X,da,ka,ra,!0).utc()}function f(X){return null==X._pf&&(X._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),X._pf}function n(X){if(null==
369X._isValid){var da=f(X),ka=nc.call(da.parsedDateParts,function(ra){return null!=ra});ka=!isNaN(X._d.getTime())&&0>da.overflow&&!da.empty&&!da.invalidEra&&!da.invalidMonth&&!da.invalidWeekday&&!da.weekdayMismatch&&!da.nullInput&&!da.invalidFormat&&!da.userInvalidated&&(!da.meridiem||da.meridiem&&ka);if(X._strict&&(ka=ka&&0===da.charsLeftOver&&0===da.unusedTokens.length&&void 0===da.bigHour),null!=Object.isFrozen&&Object.isFrozen(X))return ka;X._isValid=ka}return X._isValid}function l(X){var da=k(NaN); 370return null!=X?h(f(da),X):f(da).userInvalidated=!0,da}function r(X,da){var ka,ra,wa,ya=Rb.length;if(p(da._isAMomentObject)||(X._isAMomentObject=da._isAMomentObject),p(da._i)||(X._i=da._i),p(da._f)||(X._f=da._f),p(da._l)||(X._l=da._l),p(da._strict)||(X._strict=da._strict),p(da._tzm)||(X._tzm=da._tzm),p(da._isUTC)||(X._isUTC=da._isUTC),p(da._offset)||(X._offset=da._offset),p(da._pf)||(X._pf=f(da)),p(da._locale)||(X._locale=da._locale),0<ya)for(ka=0;ka<ya;ka++)p(wa=da[ra=Rb[ka]])||(X[ra]=wa);return X} 371function m(X){r(this,X);this._d=new Date(null!=X._d?X._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===bc&&(bc=!0,B.updateOffset(this),bc=!1)}function t(X){return X instanceof m||null!=X&&null!=X._isAMomentObject}function u(X){!1===B.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+X)}function w(X,da){var ka=!0;return h(function(){if(null!=B.deprecationHandler&&B.deprecationHandler(null,X),ka){var ra,wa,ya,Ca=[],Ma=arguments.length; 372for(wa=0;wa<Ma;wa++){if(ra="","object"==typeof arguments[wa]){for(ya in ra+="\n["+wa+"] ",arguments[0])x(arguments[0],ya)&&(ra+=ya+": "+arguments[0][ya]+", ");ra=ra.slice(0,-2)}else ra=arguments[wa];Ca.push(ra)}u(X+"\nArguments: "+Array.prototype.slice.call(Ca).join("")+"\n"+Error().stack);ka=!1}return da.apply(this,arguments)},da)}function v(X,da){null!=B.deprecationHandler&&B.deprecationHandler(X,da);oc[X]||(u(da),oc[X]=!0)}function C(X){return"undefined"!=typeof Function&&X instanceof Function|| 373"[object Function]"===Object.prototype.toString.call(X)}function y(X,da){var ka,ra=h({},X);for(ka in da)x(da,ka)&&(A(X[ka])&&A(da[ka])?(ra[ka]={},h(ra[ka],X[ka]),h(ra[ka],da[ka])):null!=da[ka]?ra[ka]=da[ka]:delete ra[ka]);for(ka in X)x(X,ka)&&!x(da,ka)&&A(X[ka])&&(ra[ka]=h({},ra[ka]));return ra}function z(X){null!=X&&this.set(X)}function E(X,da,ka){var ra=""+Math.abs(X);return(0<=X?ka?"+":"":"-")+Math.pow(10,Math.max(0,da-ra.length)).toString().substr(1)+ra}function H(X,da,ka,ra){var wa=ra;"string"== 374typeof ra&&(wa=function(){return this[ra]()});X&&(yb[X]=wa);da&&(yb[da[0]]=function(){return E(wa.apply(this,arguments),da[1],da[2])});ka&&(yb[ka]=function(){return this.localeData().ordinal(wa.apply(this,arguments),X)})}function G(X,da){return X.isValid()?(da=I(da,X.localeData()),Sb[da]=Sb[da]||function(ka){var ra,wa,ya=ka.match(ic);var Ca=0;for(ra=ya.length;Ca<ra;Ca++)yb[ya[Ca]]?ya[Ca]=yb[ya[Ca]]:ya[Ca]=(wa=ya[Ca]).match(/\[[\s\S]/)?wa.replace(/^\[|\]$/g,""):wa.replace(/\\/g,"");return function(Ma){var La, 375Ta="";for(La=0;La<ra;La++)Ta+=C(ya[La])?ya[La].call(Ma,ka):ya[La];return Ta}}(da),Sb[da](X)):X.localeData().invalidDate()}function I(X,da){function ka(wa){return da.longDateFormat(wa)||wa}var ra=5;for(Tb.lastIndex=0;0<=ra&&Tb.test(X);)X=X.replace(Tb,ka),Tb.lastIndex=0,--ra;return X}function K(X,da){var ka=X.toLowerCase();Jb[ka]=Jb[ka+"s"]=Jb[da]=X}function J(X){return"string"==typeof X?Jb[X]||Jb[X.toLowerCase()]:void 0}function P(X){var da,ka,ra={};for(ka in X)x(X,ka)&&(da=J(ka))&&(ra[da]=X[ka]); 376return ra}function S(X){return 0==X%4&&0!=X%100||0==X%400}function R(X){return 0>X?Math.ceil(X)||0:Math.floor(X)}function O(X){X=+X;var da=0;return 0!==X&&isFinite(X)&&(da=R(X)),da}function N(X,da){return function(ka){return null!=ka?(M(this,X,ka),B.updateOffset(this,da),this):Q(this,X)}}function Q(X,da){return X.isValid()?X._d["get"+(X._isUTC?"UTC":"")+da]():NaN}function M(X,da,ka){X.isValid()&&!isNaN(ka)&&("FullYear"===da&&S(X.year())&&1===X.month()&&29===X.date()?(ka=O(ka),X._d["set"+(X._isUTC? 377"UTC":"")+da](ka,X.month(),Y(ka,X.month()))):X._d["set"+(X._isUTC?"UTC":"")+da](ka))}function T(X,da,ka){$a[X]=C(da)?da:function(ra,wa){return ra&&ka?ka:da}}
377function Z(X,da){return x($a,X)?$a[X](da._strict,da._locale):new RegExp(L(X.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(ka,ra,wa,ya,Ca){return ra||wa||ya||Ca})))}function L(X){return X.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$\x26")}function U(X,da){var ka,ra=da;"string"==typeof X&&(X=[X]);e(da)&&(ra=function(ya,Ca){Ca[da]= 378O(ya)});var wa=X.length;for(ka=0;ka<wa;ka++)nb[X[ka]]=ra}function V(X,da){U(X,function(ka,ra,wa,ya){wa._w=wa._w||{};da(ka,wa._w,wa,ya)})}function Y(X,da){if(isNaN(X)||isNaN(da))return NaN;var ka=(da%12+12)%12;return X+=(da-ka)/12,1===ka?S(X)?29:28:31-ka%7%2}function aa(X,da){var ka;if(!X.isValid())return X;if("string"==typeof da)if(/^\d+$/.test(da))da=O(da);else if(!e(da=X.localeData().monthsParse(da)))return X;return ka=Math.min(X.date(),Y(X.year(),da)),X._d["set"+(X._isUTC?"UTC":"")+"Month"](da, 379ka),X}function W(X){return null!=X?(aa(this,X),B.updateOffset(this,!0),this):Q(this,"Month")}function ca(){function X(Ca,Ma){return Ma.length-Ca.length}var da,ka=[],ra=[],wa=[];for(da=0;12>da;da++){var ya=k([2E3,da]);ka.push(this.monthsShort(ya,""));ra.push(this.months(ya,""));wa.push(this.months(ya,""));wa.push(this.monthsShort(ya,""))}ka.sort(X);ra.sort(X);wa.sort(X);for(da=0;12>da;da++)ka[da]=L(ka[da]),ra[da]=L(ra[da]);for(da=0;24>da;da++)wa[da]=L(wa[da]);this._monthsShortRegex=this._monthsRegex= 380new RegExp("^("+wa.join("|")+")","i");this._monthsStrictRegex=new RegExp("^("+ra.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+ka.join("|")+")","i")}function ia(X,da,ka,ra,wa,ya,Ca){var Ma;return 100>X&&0<=X?(Ma=new Date(X+400,da,ka,ra,wa,ya,Ca),isFinite(Ma.getFullYear())&&Ma.setFullYear(X)):Ma=new Date(X,da,ka,ra,wa,ya,Ca),Ma}function ba(X){var da,ka;return 100>X&&0<=X?((ka=Array.prototype.slice.call(arguments))[0]=X+400,da=new Date(Date.UTC.apply(null,ka)),isFinite(da.getUTCFullYear())&& 381da.setUTCFullYear(X)):da=new Date(Date.UTC.apply(null,arguments)),da}function fa(X,da,ka){ka=7+da-ka;return-(7+ba(X,0,ka).getUTCDay()-da)%7+ka-1}function ja(X,da,ka,ra,wa){var ya;da=1+7*(da-1)+(7+ka-ra)%7+fa(X,ra,wa);if(0>=da){X=ya=X-1;var Ca=(S(X)?366:365)+da}else da>(S(X)?366:365)?(ya=X+1,Ca=da-(S(X)?366:365)):(ya=X,Ca=da);return{year:ya,dayOfYear:Ca}}function qa(X,da,ka){var ra,wa,ya=fa(X.year(),da,ka);ya=Math.floor((X.dayOfYear()-ya-1)/7)+1;return 1>ya?ra=ya+ha(wa=X.year()-1,da,ka):ya>ha(X.year(), 382da,ka)?(ra=ya-ha(X.year(),da,ka),wa=X.year()+1):(wa=X.year(),ra=ya),{week:ra,year:wa}}function ha(X,da,ka){var ra=fa(X,da,ka);da=fa(X+1,da,ka);return((S(X)?366:365)-ra+da)/7}function na(X,da){return X.slice(da,7).concat(X.slice(0,da))}function oa(){function X(Ta,Ua){return Ua.length-Ta.length}var da,ka=[],ra=[],wa=[],ya=[];for(da=0;7>da;da++){var Ca=k([2E3,1]).day(da);var Ma=L(this.weekdaysMin(Ca,""));var La=L(this.weekdaysShort(Ca,""));Ca=L(this.weekdays(Ca,""));ka.push(Ma);ra.push(La);wa.push(Ca); 383ya.push(Ma);ya.push(La);ya.push(Ca)}ka.sort(X);ra.sort(X);wa.sort(X);ya.sort(X);this._weekdaysMinRegex=this._weekdaysShortRegex=this._weekdaysRegex=new RegExp("^("+ya.join("|")+")","i");this._weekdaysStrictRegex=new RegExp("^("+wa.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+ra.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+ka.join("|")+")","i")}function ma(){return this.hours()%12||12}function pa(X,da){H(X,0,0,function(){return this.localeData().meridiem(this.hours(), 384this.minutes(),da)})}function sa(X,da){return da._meridiemParse}function va(X){return X?X.toLowerCase().replace("_","-"):X}function Aa(X){var da=null;if(void 0===eb[X]&&void 0!==F&&F&&F.exports&&null!=X.match("^[^/\\\\]*$"))try{da=jc._abbr,a(781)("./"+X),Fa(da)}catch(ka){eb[X]=null}return eb[X]}function Fa(X,da){var ka;return X&&((ka=p(da)?za(X):Ea(X,da))?jc=ka:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+X+" not found. Did you forget to load it?")),jc._abbr}function Ea(X,da){if(null!== 385da){var ka=vc;if(da.abbr=X,null!=eb[X])v("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ka=eb[X]._config;else if(null!=da.parentLocale)if(null!=eb[da.parentLocale])ka=eb[da.parentLocale]._config;else{if(null==(ka=Aa(da.parentLocale)))return kc[da.parentLocale]||(kc[da.parentLocale]=[]),
385kc[da.parentLocale].push({name:X, 386config:da}),null;ka=ka._config}return eb[X]=new z(y(ka,da)),kc[X]&&kc[X].forEach(function(ra){Ea(ra.name,ra.config)}),Fa(X),eb[X]}return delete eb[X],null}function za(X){var da;if(X&&X._locale&&X._locale._abbr&&(X=X._locale._abbr),!X)return jc;if(!D(X)){if(da=Aa(X))return da;X=[X]}var ka;a:{for(var ra,wa,ya=0;ya<X.length;){da=(wa=va(X[ya]).split("-")).length;for(ka=(ka=va(X[ya+1]))?ka.split("-"):null;0<da;){if(ra=Aa(wa.slice(0,da).join("-"))){ka=ra;break a}if(ra=ka&&ka.length>=da){b:{var Ca=Math.min(wa.length, 387ka.length);for(ra=0;ra<Ca;ra+=1)if(wa[ra]!==ka[ra])break b;ra=Ca}ra=ra>=da-1}if(ra)break;da--}ya++}ka=jc}return ka}function ea(X){var da,ka=X._a;return ka&&-2===f(X).overflow&&(da=0>ka[1]||11<ka[1]?1:1>ka[2]||ka[2]>Y(ka[0],ka[1])?2:0>ka[3]||24<ka[3]||24===ka[3]&&(0!==ka[4]||0!==ka[5]||0!==ka[6])?3:0>ka[4]||59<ka[4]?4:0>ka[5]||59<ka[5]?5:0>ka[6]||999<ka[6]?6:-1,f(X)._overflowDayOfYear&&(0>da||2<da)&&(da=2),f(X)._overflowWeeks&&-1===da&&(da=7),f(X)._overflowWeekday&&-1===da&&(da=8),f(X).overflow=da), 388X}function la(X){var da=X._i;var ka=zc.exec(da)||Ac.exec(da);var ra=pc.length;var wa=rc.length;if(ka){f(X).iso=!0;for(da=0;da<ra;da++)if(pc[da][1].exec(ka[1])){var ya=pc[da][0];var Ca=!1!==pc[da][2];break}if(null==ya)return void(X._isValid=!1);if(ka[3]){da=0;for(ra=wa;da<ra;da++)if(rc[da][1].exec(ka[3])){var Ma=(ka[2]||" ")+rc[da][0];break}if(null==Ma)return void(X._isValid=!1)}if(!Ca&&null!=Ma)return void(X._isValid=!1);if(ka[4]){if(!Bc.exec(ka[4]))return void(X._isValid=!1);var La="Z"}X._f=ya+(Ma|| 389"")+(La||"");Ga(X)}else X._isValid=!1}function ta(X){X=parseInt(X,10);return 49>=X?2E3+X:999>=X?1900+X:X}function ua(X){var da,ka,ra,wa,ya,Ca,Ma,La=Cc.exec(X._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(La){if(da=La[4],ka=La[3],ra=La[2],wa=La[5],ya=La[6],Ca=La[7],Ma=[ta(da),Kb.indexOf(ka),parseInt(ra,10),parseInt(wa,10),parseInt(ya,10)],Ca&&Ma.push(parseInt(Ca,10)),function(Ta,Ua,Wa){return!Ta||wc.indexOf(Ta)===(new Date(Ua[0],Ua[1],Ua[2])).getDay()|| 390(f(Wa).weekdayMismatch=!0,Wa._isValid=!1,!1)}(La[1],Ma,X))X._a=Ma,X._tzm=function(Ta,Ua,Wa){if(Ta)return Dc[Ta];if(Ua)return 0;Ta=parseInt(Wa,10);Ua=Ta%100;return(Ta-Ua)/100*60+Ua}(La[8],La[9],La[10]),X._d=ba.apply(null,X._a),X._d.setUTCMinutes(X._d.getUTCMinutes()-X._tzm),f(X).rfc2822=!0}else X._isValid=!1}function xa(X,da,ka){return null!=X?X:null!=da?da:ka}function Da(X){var da,ka,ra=[];if(!X._d){var wa=function(ya){var Ca=new Date(B.now());return ya._useUTC?[Ca.getUTCFullYear(),Ca.getUTCMonth(), 391Ca.getUTCDate()]:[Ca.getFullYear(),Ca.getMonth(),Ca.getDate()]}(X);X._w&&null==X._a[2]&&null==X._a[1]&&function(ya){var Ca,Ma,La,Ta,Ua,Wa,Lb,Ub,sc;null!=(Ca=ya._w).GG||null!=Ca.W||null!=Ca.E?(Ua=1,Wa=4,Ma=xa(Ca.GG,ya._a[0],qa(Oa(),1,4).year),La=xa(Ca.W,1),(1>(Ta=xa(Ca.E,1))||7<Ta)&&(Ub=!0)):(Ua=ya._locale._week.dow,Wa=ya._locale._week.doy,sc=qa(Oa(),Ua,Wa),Ma=xa(Ca.gg,ya._a[0],sc.year),La=xa(Ca.w,sc.week),null!=Ca.d?(0>(Ta=Ca.d)||6<Ta)&&(Ub=!0):null!=Ca.e?(Ta=Ca.e+Ua,(0>Ca.e||6<Ca.e)&&(Ub=!0)):Ta= 392Ua);1>La||La>ha(Ma,Ua,Wa)?f(ya)._overflowWeeks=!0:null!=Ub?f(ya)._overflowWeekday=!0:(Lb=ja(Ma,La,Ta,Ua,Wa),ya._a[0]=Lb.year,ya._dayOfYear=Lb.dayOfYear)}(X);null!=X._dayOfYear&&(ka=xa(X._a[0],wa[0]),(X._dayOfYear>(S(ka)?366:365)||0===X._dayOfYear)&&(f(X)._overflowDayOfYear=!0),da=ba(ka,0,X._dayOfYear),X._a[1]=da.getUTCMonth(),X._a[2]=da.getUTCDate());for(da=0;3>da&&null==X._a[da];++da)X._a[da]=ra[da]=wa[da];for(;7>da;da++)X._a[da]=ra[da]=null==X._a[da]?2===da?1:0:X._a[da];24===X._a[3]&&0===X._a[4]&& 3930===X._a[5]&&0===X._a[6]&&(X._nextDay=!0,X._a[3]=0);X._d=(X._useUTC?ba:ia).apply(null,ra);wa=X._useUTC?X._d.getUTCDay():X._d.getDay();null!=X._tzm&&X._d.setUTCMinutes(X._d.getUTCMinutes()-X._tzm);X._nextDay&&(X._a[3]=24);X._w&&void 0!==X._w.d&&X._w.d!==wa&&(f(X).weekdayMismatch=!0)}}function Ga(X){if(X._f!==B.ISO_8601)if(X._f!==B.RFC_2822){X._a=[];f(X).empty=!0;var da,ka,ra,wa,ya,Ca=""+X._i,Ma=Ca.length,La=0;var Ta=(ra=I(X._f,X._locale).match(ic)||[]).length;for(da=0;da<Ta;da++){var Ua=ra[da];(ka= 394(Ca.match(Z(Ua,X))||[])[0])&&(0<(wa=Ca.substr(0,Ca.indexOf(ka))).length&&f(X).unusedInput.push(wa),Ca=Ca.slice(Ca.indexOf(ka)+ka.length),La+=ka.length);if(yb[Ua]){ka?f(X).empty=!1:f(X).unusedTokens.push(Ua);var Wa=ka,Lb=X;null!=Wa&&x(nb,Ua)&&nb[Ua](Wa,Lb._a,Lb,Ua)}else X._strict&&!ka&&f(X).unusedTokens.push(Ua)}f(X).charsLeftOver=Ma-La;0<Ca.length&&f(X).unusedInput.push(Ca);12>=X._a[3]&&!0===f(X).bigHour&&0<X._a[3]&&(f(X).bigHour=void 0);f(X).parsedDateParts=X._a.slice(0);f(X).meridiem=X._meridiem; 395da=X._a;ra=X._locale;ka=X._a[3];wa=X._meridiem;var Ub;ra=null==wa?ka:null!=ra.meridiemHour?ra.meridiemHour(ka,wa):null!=ra.isPM?((Ub=ra.isPM(wa))&&12>ka&&(ka+=12),Ub||12!==ka||(ka=0),ka):ka;da[3]=ra;null!==(ya=f(X).era)&&(X._a[0]=X._locale.erasConvertYear(ya,X._a[0]));Da(X);ea(X)}else ua(X);else la(X)}function Ha(X){var da=X._i,ka=X._f;return X._locale=X._locale||za(X._l),null===da||void 0===ka&&""===da?l({nullInput:!0}
395):("string"==typeof da&&(X._i=da=X._locale.preparse(da)),t(da)?new m(ea(da)):(c(da)? 396X._d=da:D(ka)?function(ra){var wa,ya,Ca,Ma=!1,La=ra._f.length;if(0===La)return f(ra).invalidFormat=!0,void(ra._d=new Date(NaN));for(Ca=0;Ca<La;Ca++){var Ta=0;var Ua=!1;var Wa=r({},ra);null!=ra._useUTC&&(Wa._useUTC=ra._useUTC);Wa._f=ra._f[Ca];Ga(Wa);n(Wa)&&(Ua=!0);Ta+=f(Wa).charsLeftOver;Ta+=10*f(Wa).unusedTokens.length;f(Wa).score=Ta;Ma?Ta<ya&&(ya=Ta,wa=Wa):(null==ya||Ta<ya||Ua)&&(ya=Ta,wa=Wa,Ua&&(Ma=!0))}h(ra,wa||Wa)}(X):ka?Ga(X):function(ra){var wa=ra._i;p(wa)?ra._d=new Date(B.now()):c(wa)?ra._d= 397new Date(wa.valueOf()):"string"==typeof wa?function(ya){var Ca=Ec.exec(ya._i);null===Ca?(la(ya),!1===ya._isValid&&(delete ya._isValid,ua(ya),!1===ya._isValid&&(delete ya._isValid,ya._strict?ya._isValid=!1:B.createFromInputFallback(ya)))):ya._d=new Date(+Ca[1])}(ra):D(wa)?(ra._a=d(wa.slice(0),function(ya){return parseInt(ya,10)}),Da(ra)):A(wa)?function(ya){if(!ya._d){var Ca=P(ya._i);ya._a=d([Ca.year,Ca.month,void 0===Ca.day?Ca.date:Ca.day,Ca.hour,Ca.minute,Ca.second,Ca.millisecond],function(Ma){return Ma&& 398parseInt(Ma,10)});Da(ya)}}(ra):e(wa)?ra._d=new Date(wa):B.createFromInputFallback(ra)}(X),n(X)||(X._d=null),X))}function Ja(X,da,ka,ra,wa){var ya,Ca={};return!0!==da&&!1!==da||(ra=da,da=void 0),!0!==ka&&!1!==ka||(ra=ka,ka=void 0),(A(X)&&q(X)||D(X)&&0===X.length)&&(X=void 0),Ca._isAMomentObject=!0,Ca._useUTC=Ca._isUTC=wa,Ca._l=ka,Ca._i=X,Ca._f=da,Ca._strict=ra,(ya=new m(ea(Ha(Ca))))._nextDay&&(ya.add(1,"d"),ya._nextDay=void 0),ya}function Oa(X,da,ka,ra){return Ja(X,da,ka,ra,!1)}function Na(X,da){var ka; 399if(1===da.length&&D(da[0])&&(da=da[0]),!da.length)return Oa();var ra=da[0];for(ka=1;ka<da.length;++ka)da[ka].isValid()&&!da[ka][X](ra)||(ra=da[ka]);return ra}function Pa(X){var da=P(X);X=da.year||0;var ka=da.quarter||0,ra=da.month||0,wa=da.week||da.isoWeek||0,ya=da.day||0,Ca=da.hour||0,Ma=da.minute||0,La=da.second||0,Ta=da.millisecond||0;a:{var Ua,Wa=!1,Lb=lc.length;for(Ua in da)if(x(da,Ua)&&(-1===bb.call(lc,Ua)||null!=da[Ua]&&isNaN(da[Ua]))){da=!1;break a}for(Ua=0;Ua<Lb;++Ua)if(da[lc[Ua]]){if(Wa){da= 400!1;break a}parseFloat(da[lc[Ua]])!==O(da[lc[Ua]])&&(Wa=!0)}da=!0}this._isValid=da;this._milliseconds=+Ta+1E3*La+6E4*Ma+36E5*Ca;this._days=+ya+7*wa;this._months=+ra+3*ka+12*X;this._data={};this._locale=za();this._bubble()}function Ra(X){return X instanceof Pa}function ab(X){return 0>X?-1*Math.round(-1*X):Math.round(X)}function Va(X,da){H(X,0,0,function(){var ka=this.utcOffset(),ra="+";return 0>ka&&(ka=-ka,ra="-"),ra+E(~~(ka/60),2)+da+E(~~ka%60,2)})}function sb(X,da){var ka,ra;X=(da||"").match(X);return null=== 401X?null:0===(ra=60*(ka=((X[X.length-1]||[])+"").match(Fc)||["-",0,0])[1]+O(ka[2]))?0:"+"===ka[0]?ra:-ra}function tb(X,da){var ka,ra;return da._isUTC?(ka=da.clone(),ra=(t(X)||c(X)?X.valueOf():Oa(X).valueOf())-ka.valueOf(),ka._d.setTime(ka._d.valueOf()+ra),B.updateOffset(ka,!1),ka):Oa(X).local()}function lb(){return!!this.isValid()&&this._isUTC&&0===this._offset}function fb(X,da){var ka,ra,wa,ya,Ca,Ma,La=X,Ta=null;return Ra(X)?La={ms:X._milliseconds,d:X._days,M:X._months}:e(X)||!isNaN(+X)?(La={},da? 402La[da]=+X:La.milliseconds=+X):(Ta=Gc.exec(X))?(ka="-"===Ta[1]?-1:1,La={y:0,d:O(Ta[2])*ka,h:O
402(Ta[3])*ka,m:O(Ta[4])*ka,s:O(Ta[5])*ka,ms:O(ab(1E3*Ta[6]))*ka}):(Ta=Hc.exec(X))?(ka="-"===Ta[1]?-1:1,La={y:kb(Ta[2],ka),M:kb(Ta[3],ka),w:kb(Ta[4],ka),d:kb(Ta[5],ka),h:kb(Ta[6],ka),m:kb(Ta[7],ka),s:kb(Ta[8],ka)}):null==La?La={}:"object"==typeof La&&("from"in La||"to"in La)&&(ya=Oa(La.from),Ca=Oa(La.to),wa=ya.isValid()&&Ca.isValid()?(Ca=tb(Ca,ya),ya.isBefore(Ca)?Ma=zb(ya,Ca):((Ma=zb(Ca,ya)).milliseconds=-Ma.milliseconds, 403Ma.months=-Ma.months),Ma):{milliseconds:0,months:0},(La={}).ms=wa.milliseconds,La.M=wa.months),ra=new Pa(La),Ra(X)&&x(X,"_locale")&&(ra._locale=X._locale),Ra(X)&&x(X,"_isValid")&&(ra._isValid=X._isValid),ra}function kb(X,da){X=X&&parseFloat(X.replace(",","."));return(isNaN(X)?0:X)*da}function zb(X,da){var ka={};return ka.months=da.month()-X.month()+12*(da.year()-X.year()),X.clone().add(ka.months,"M").isAfter(da)&&--ka.months,ka.milliseconds=+da-+X.clone().add(ka.months,"M"),ka}function db(X,da){return function(ka, 404ra){var wa;return null===ra||isNaN(+ra)||(v(da,"moment()."+da+"(period, number) is deprecated. Please use moment()."+da+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),wa=ka,ka=ra,ra=wa),Ab(this,fb(ka,ra),X),this}}function Ab(X,da,ka,ra){var wa=da._milliseconds,ya=ab(da._days);da=ab(da._months);X.isValid()&&(ra=null==ra||ra,da&&aa(X,Q(X,"Month")+da*ka),ya&&M(X,"Date",Q(X,"Date")+ya*ka),wa&&X._d.setTime(X._d.valueOf()+wa*ka),ra&&B.updateOffset(X,ya|| 405da))}function hb(X){return t(X)||c(X)||"string"==typeof X||X instanceof String||e(X)||function(da){var ka=D(da),ra=!1;return ka&&(ra=0===da.filter(function(wa){return!e(wa)&&("string"==typeof da||da instanceof String)}).length),ka&&ra}(X)||function(da){var ka,ra=A(da)&&!q(da),wa=!1,ya="years year y months month M days day d dates date D hours hour h minutes minute m seconds second s milliseconds millisecond ms".split(" "),Ca=ya.length;for(ka=0;ka<Ca;ka+=1){var Ma=ya[ka];wa=wa||x(da,Ma)}return ra&& 406wa}(X)||null==X}
406function ub(X,da){if(X.date()<da.date())return-ub(da,X);var ka=12*(da.year()-X.year())+(da.month()-X.month()),ra=X.clone().add(ka,"months");return-(ka+(0>da-ra?(da-ra)/(ra-X.clone().add(ka-1,"months")):(da-ra)/(X.clone().add(ka+1,"months")-ra)))||0}function Ya(X){var da;return void 0===X?this._locale._abbr:(null!=(da=za(X))&&(this._locale=da),this)}function ib(){return this._locale}function gb(X,da){return(X%da+da)%da}function Bb(X,da,ka){return 100>X&&0<=X?new Date(X+400,da,ka)-126227808E5: 407(new Date(X,da,ka)).valueOf()}function Cb(X,da,ka){return 100>X&&0<=X?Date.UTC(X+400,da,ka)-126227808E5:Date.UTC(X,da,ka)}function vb(X,da){return da.erasAbbrRegex(X)}function wb(){var X,da=[],ka=[],ra=[],wa=[],ya=this.eras();var Ca=0;for(X=ya.length;Ca<X;++Ca)ka.push(L(ya[Ca].name)),da.push(L(ya[Ca].abbr)),ra.push(L(ya[Ca].narrow)),wa.push(L(ya[Ca].name)),wa.push(L(ya[Ca].abbr)),wa.push(L(ya[Ca].narrow));this._erasRegex=new RegExp("^("+wa.join("|")+")","i");this._erasNameRegex=new RegExp("^("+ka.join("|")+ 408")","i");this._erasAbbrRegex=new RegExp("^("+da.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+ra.join("|")+")","i")}function qb(X,da){H(0,[X,X.length],0,da)}function cc(X,da,ka,ra,wa){var ya;null==X?X=qa(this,ra,wa).year:(da>(ya=ha(X,ra,wa))&&(da=ya),X=ja(X,da,ka,ra,wa),X=ba(X.year,0,X.dayOfYear),X=(this.year(X.getUTCFullYear()),this.month(X.getUTCMonth()),this.date(X.getUTCDate()),this));return X}function mc(X,da){da[6]=O(1E3*("0."+X))}function Db(X){return X}function Eb(X,da,ka,ra){var wa= 409za();da=k().set(ra,da);return wa[ka](da,X)}function Vb(X,da,ka){if(e(X)&&(da=X,X=void 0),X=X||"",null!=da)return Eb(X,da,ka,"month");var ra=[];for(da=0;12>da;da++)ra[da]=Eb(X,da,ka,"month");return ra}function dc(X,da,ka,ra){"boolean"==typeof X?(e(da)&&(ka=da,da=void 0),da=da||""):(ka=da=X,X=!1,e(da)&&(ka=da,da=void 0),da=da||"");var wa=za();X=X?wa._week.dow:0;wa=[];if(null!=ka)return Eb(da,(ka+X)%7,ra,"day");for(ka=0;7>ka;ka++)wa[ka]=Eb(da,(ka+X)%7,ra,"day");return wa}function ec(X,da,ka,ra){da=fb(da, 410ka);return X._milliseconds+=ra*da._milliseconds,X._days+=ra*da._days,X._months+=ra*da._months,X._bubble()}function Mb(X){return 0>X?Math.floor(X):Math.ceil(X)}function ob(X){return function(){return this.as(X)}}function pb(X){return function(){return this.isValid()?this._data[X]:NaN}}function qc(X,da,ka,ra,wa){return wa.relativeTime(da||1,!!ka,X,ra)}function Fb(X){return(0<X)-(0>X)||+X}function Wb(){if(!this.isValid())return this.localeData().invalidDate();var X,da,ka,ra,wa,ya,Ca,Ma,La=tc(this._milliseconds)/ 4111E3,Ta=tc(this._days),Ua=tc(this._months),Wa=this.asSeconds();return Wa?(X=R(La/60),da=R(X/60),La%=60,X%=60,ka=R(Ua/12),Ua%=12,ra=La?La.toFixed(3).replace(/\.?0+$/,""):"",wa=0>Wa?"-":"",ya=Fb(this._months)!==Fb(Wa)?"-":"",Ca=Fb(this._days)!==Fb(Wa)?"-":"",Ma=Fb(this._milliseconds)!==Fb(Wa)?"-":"",wa+"P"+(ka?ya+ka+"Y":"")+(Ua?ya+Ua+"M":"")+(Ta?Ca+Ta+"D":"")+(da||X||La?"T":"")+(da?Ma+da+"H":"")+(X?Ma+X+"M":"")+(La?Ma+ra+"S":"")):"P0D"}var ac;var nc=Array.prototype.some?Array.prototype.some:function(X){var da, 412ka=Object(this),ra=ka.length>>>0;for(da=0;da<ra;da++)if(da in ka&&X.call(this,ka[da],da,ka))return!0;return!1};var Rb=B.momentProperties=[],bc=!1,oc={};B.suppressDeprecationWarnings=!1;B.deprecationHandler=null;var Nb=Object.keys?Object.keys:function(X){var da,ka=[];for(da in X)x(X,da)&&ka.push(da);return ka};var ic=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, 413Tb=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Sb={},yb={},Jb={},jb={},Xb=/\d/,mb=/\d\d/,xb=/\d{3}/,fc=/\d{4}/,Yb=/[+-]?\d{6}/,cb=/\d\d?/,Ob=/\d\d\d\d?/,rb=/\d\d\d\d\d\d?/,Zb=/\d{1,3}/,gc=/\d{1,4}/,$b=/[+-]?\d{1,6}/,Pb=/\d+/,Ba=/[+-]?\d+/,Ia=/Z|[+-]\d\d:?\d\d/gi,Qa=/Z|[+-]\d\d(?::?\d\d)?/gi,Sa=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;var $a={};var nb={};var bb=Array.prototype.indexOf?Array.prototype.indexOf: 414function(X){var da;for(da=0;da<this.length;++da)if(this[da]===X)return da;return-1};H("M",["MM",2],"Mo",function(){return this.month()+1});H("MMM",0,0,function(X){return this.localeData().monthsShort(this,X)});H("MMMM",0,0,function(X){return this.localeData().months(this,X)});
vendor: 10,211 bytes, lines 414-434
414K("month","M");jb.month=8;T("M",cb);T("MM",cb,mb);T("MMM",function(X,da){return da.monthsShortRegex(X)});T("MMMM",function(X,da){return da.monthsRegex(X)});U(["M","MM"],function(X,da){da[1]=O(X)-1});U(["MMM","MMMM"],function(X, 415da,ka,ra){ra=ka._locale.monthsParse(X,ra,ka._strict);null!=ra?da[1]=ra:f(ka).invalidMonth=X});var Kb="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Gb=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;H("Y",0,0,function(){var X=this.year();return 9999>=X?E(X,4):"+"+X});H(0,["YY",2],0,function(){return this.year()%100});H(0,["YYYY",4],0,"year");H(0,["YYYYY",5],0,"year");H(0,["YYYYYY",6,!0],0,"year");K("year","y");jb.year=1;T("Y",Ba);T("YY",cb,mb);T("YYYY",gc,fc);T("YYYYY",$b,Yb);T("YYYYYY",$b,Yb);U(["YYYYY", 416"YYYYYY"],0);U("YYYY",function(X,da){da[0]=2===X.length?B.parseTwoDigitYear(X):O(X)});U("YY",function(X,da){da[0]=B.parseTwoDigitYear(X)});U("Y",function(X,da){da[0]=parseInt(X,10)});B.parseTwoDigitYear=function(X){return O(X)+(68<O(X)?1900:2E3)};var uc=N("FullYear",!0);H("w",["ww",2],"wo","week");H("W",["WW",2],"Wo","isoWeek");K("week","w");K("isoWeek","W");jb.week=5;jb.isoWeek=5;T("w",cb);T("ww",cb,mb);T("W",cb);T("WW",cb,mb);V(["w","ww","W","WW"],function(X,da,ka,ra){da[ra.substr(0,1)]=O(X)}); 417H("d",0,"do","day");H("dd",0,0,function(X){return this.localeData().weekdaysMin(this,X)});H("ddd",0,0,function(X){return this.localeData().weekdaysShort(this,X)});H("dddd",0,0,function(X){return this.localeData().weekdays(this,X)});H("e",0,0,"weekday");H("E",0,0,"isoWeekday");K("day","d");K("weekday","e");K("isoWeekday","E");jb.day=11;jb.weekday=11;jb.isoWeekday=11;T("d",cb);T("e",cb);T("E",cb);T("dd",function(X,da){return da.weekdaysMinRegex(X)});T("ddd",function(X,da){return da.weekdaysShortRegex(X)}); 418T("dddd",function(X,da){return da.weekdaysRegex(X)});V(["dd","ddd","dddd"],function(X,da,ka,ra){ra=ka._locale.weekdaysParse(X,ra,ka._strict);null!=ra?da.d=ra:f(ka).invalidWeekday=X});V(["d","e","E"],function(X,da,ka,ra){da[ra]=O(X)});var wc="Sun Mon Tue Wed Thu Fri Sat".split(" ");H("H",["HH",2],0,"hour");H("h",["hh",2],0,ma);H("k",["kk",2],0,function(){return this.hours()||24});H("hmm",0,0,function(){return""+ma.apply(this)+E(this.minutes(),2)});H("hmmss",0,0,function(){return""+ma.apply(this)+E(this.minutes(), 4192)+E(this.seconds(),2)});H("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)});H("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)});pa("a",!0);pa("A",!1);K("hour","h");jb.hour=13;T("a",sa);T("A",sa);T("H",cb);T("h",cb);T("k",cb);T("HH",cb,mb);T("hh",cb,mb);T("kk",cb,mb);T("hmm",Ob);T("hmmss",rb);T("Hmm",Ob);T("Hmmss",rb);U(["H","HH"],3);U(["k","kk"],function(X,da,ka){X=O(X);da[3]=24===X?0:X});U(["a","A"],function(X,da,ka){ka._isPm=ka._locale.isPM(X); 420ka._meridiem=X});U(["h","hh"],function(X,da,ka){da[3]=O(X);f(ka).bigHour=!0});U("hmm",function(X,da,ka){var ra=X.length-2;da[3]=O(X.substr(0,ra));da[4]=O(X.substr(ra));f(ka).bigHour=!0});U("hmmss",function(X,da,ka){var ra=X.length-4,wa=X.length-2;da[3]=O(X.substr(0,ra));da[4]=O(X.substr(ra,2));da[5]=O(X.substr(wa));f(ka).bigHour=!0});U("Hmm",function(X,da,ka){ka=X.length-2;da[3]=O(X.substr(0,ka));da[4]=O(X.substr(ka))});U("Hmmss",function(X,da,ka){ka=X.length-4;var ra=X.length-2;da[3]=O(X.substr(0, 421ka));da[4]=O(X.substr(ka,2));da[5]=O(X.substr(ra))});var jc,Ic=N("Hours",!0),vc={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds", 422ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January February March April May June July August September October November December".split(" "),monthsShort:Kb,week:{dow:0,doy:6},weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysMin:"Su Mo Tu We Th Fr Sa".split(" "),weekdaysShort:wc,meridiemParse:/[ap]\.?m?\.?/i},eb={},kc={},zc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, 423Ac=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bc=/Z|[+-]\d\d(?::?\d\d)?/,pc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM", 424/\d{6}/,!1],["YYYY",/\d{4}/,!1]],rc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ec=/^\/?Date\((-?\d+)/i,Cc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, 425Dc={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};B.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(X){X._d=new Date(X._i+(X._useUTC?" UTC":""))});B.ISO_8601=function(){};B.RFC_2822=function(){}; 426var Jc=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var X=Oa.apply(null,arguments);return this.isValid()&&X.isValid()?X<this?this:X:l()}),Kc=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var X=Oa.apply(null,arguments);return this.isValid()&&X.isValid()?X>this?this:X:l()}),lc="year quarter month week day hour minute second millisecond".split(" ");Va("Z",":");Va("ZZ", 427"");T("Z",Qa);T("ZZ",Qa);U(["Z","ZZ"],function(X,da,ka){ka._useUTC=!0;ka._tzm=sb(Qa,X)});var Fc=/([\+\-]|\d\d)/gi;B.updateOffset=function(){};var Gc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;fb.fn=Pa.prototype;fb.invalid=function(){return fb(NaN)};var Lc=db(1,"add"),Mc=db(-1,"subtract");B.defaultFormat="YYYY-MM-DDTHH:mm:ssZ"; 428B.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var xc=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(X){return void 0===X?this.localeData():this.locale(X)});H("N",0,0,"eraAbbr");H("NN",0,0,"eraAbbr");H("NNN",0,0,"eraAbbr");H("NNNN",0,0,"eraName");H("NNNNN",0,0,"eraNarrow");H("y",["y",1],"yo","eraYear");H("y",["yy",2],0,"eraYear");H("y",["yyy",3],0,"eraYear");H("y",["yyyy",4],0,"eraYear");T("N", 429vb);T("NN",vb);T("NNN",vb);T("NNNN",function(X,da){return da.erasNameRegex(X)});T("NNNNN",function(X,da){return da.erasNarrowRegex(X)});U(["N","NN","NNN","NNNN","NNNNN"],function(X,da,ka,ra){(da=ka._locale.erasParse(X,ra,ka._strict))?f(ka).era=da:f(ka).invalidEra=X});T("y",Pb);T("yy",Pb);T("yyy",Pb);T("yyyy",Pb);T("yo",function(X,da){return da._eraYearOrdinalRegex||Pb});U(["y","yy","yyy","yyyy"],0);U(["yo"],function(X,da,ka,ra){var wa;ka._locale._eraYearOrdinalRegex&&(wa=X.match(ka._locale._eraYearOrdinalRegex)); 430ka._locale.eraYearOrdinalParse?da[0]=ka._locale.eraYearOrdinalParse(X,wa):da[0]=parseInt(X,10)});H(0,["gg",2],0,function(){return this.weekYear()%100});H(0,["GG",2],0,function(){return this.isoWeekYear()%100});qb("gggg","weekYear");qb("ggggg","weekYear");qb("GGGG","isoWeekYear");qb("GGGGG","isoWeekYear");K("weekYear","gg");K("isoWeekYear","GG");jb.weekYear=1;jb.isoWeekYear=1;T("G",Ba);T("g",Ba);T("GG",cb,mb);T("gg",cb,mb);T("GGGG",gc,fc);T("gggg",gc,fc);T("GGGGG",$b,Yb);T("ggggg",$b,Yb);V(["gggg", 431"ggggg","GGGG","GGGGG"],function(X,da,ka,ra){da[ra.substr(0,2)]=O(X)});V(["gg","GG"],function(X,da,ka,ra){da[ra]=B.parseTwoDigitYear(X)});H("Q",0,"Qo","quarter");K("quarter","Q");jb.quarter=7;T("Q",Xb);U("Q",function(X,da){da[1]=3*(O(X)-1)});H("D",["DD",2],"Do","date");K("date","D");jb.date=9;T("D",cb);T("DD",cb,mb);T("Do",function(X,da){return X?da._dayOfMonthOrdinalParse||da._ordinalParse:da._dayOfMonthOrdinalParseLenient});U(["D","DD"],2);U("Do",function(X,da){da[2]=O(X.match(cb)[0])});var yc= 432N("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear");K("dayOfYear","DDD");jb.dayOfYear=4;T("DDD",Zb);T("DDDD",xb);U(["DDD","DDDD"],function(X,da,ka){ka._dayOfYear=O(X)});H("m",["mm",2],0,"minute");K("minute","m");jb.minute=14;T("m",cb);T("mm",cb,mb);U(["m","mm"],4);var Nc=N("Minutes",!1);H("s",["ss",2],0,"second");K("second","s");jb.second=15;T("s",cb);T("ss",cb,mb);U(["s","ss"],5);var Qb,Oc=N("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)});H(0,["SS",2],0,function(){return~~(this.millisecond()/ 43310)});H(0,["SSS",3],0,"millisecond");H(0,["SSSS",4],0,function(){return 10*this.millisecond()});H(0,["SSSSS",5],0,function(){return 100*this.millisecond()});H(0,["SSSSSS",6],0,function(){return 1E3*this.millisecond()});H(0,["SSSSSSS",7],0,function(){return 1E4*this.millisecond()});H(0,["SSSSSSSS",8],0,function(){return 1E5*this.millisecond()});H(0,["SSSSSSSSS",9],0,function(){return 1E6*this.millisecond()});K("millisecond","ms");jb.millisecond=16;T("S",Zb,Xb);T("SS",Zb,mb);T("SSS",Zb,xb);for(Qb="SSSS";9>= 434Qb.length;Qb+="S")T(Qb,Pb);for(Qb="S";9>=Qb.length;Qb+="S")U(Qb,mc);var Pc=N("Milliseconds",!1);H("z",0,0,"zoneAbbr");H("zz",0,0,"zoneName");var Ka=m.prototype;Ka.add=Lc;
434Ka.calendar=function(X,da){if(1===arguments.length)if(arguments[0])if(hb(arguments[0]))X=arguments[0],da=void 0;else{var ka=arguments[0],ra,wa=A(ka)&&!q(ka),ya=!1,Ca="sameDay nextDay lastDay nextWeek lastWeek sameElse".split(" ");for(ra=0;ra<Ca.length;ra+=1)ya=ya||x(ka,Ca[ra]);wa&&ya&&(da=arguments[0],X=void 0)}else da=X=void 0;ka= 435X||Oa();ra=tb(ka,this).startOf("day");ra=B.calendarFormat(this,ra)||"sameElse";wa=da&&(C(da[ra])?da[ra].call(this,ka):da[ra]);return this.format(wa||this.localeData().calendar(ra,this,Oa(ka)))};Ka.clone=function(){return new m(this)};Ka.diff=function(X,da,ka){var ra;if(!this.isValid()||!(ra=tb(X,this)).isValid())return NaN;switch(X=6E4*(ra.utcOffset()-this.utcOffset()),J(da)){case "year":da=ub(this,ra)/12;break;case "month":da=ub(this,ra);break;case "quarter":da=ub(this,ra)/3;break;case "second":da= 436(this-ra)/1E3;break;case "minute":da=(this-ra)/6E4;break;case "hour":da=(this-ra)/36E5;break;case "day":da=(this-ra-X)/864E5;break;case "week":da=(this-ra-X)/6048E5;break;default:da=this-ra}return ka?da:R(da)};Ka.endOf=function(X){var da;if(void 0===(X=J(X))||"millisecond"===X||!this.isValid())return this;switch(da=this._isUTC?Cb:Bb,X){case "year":var ka=da(this.year()+1,0,1)-1;break;case "quarter":ka=da(this.year(),this.month()-this.month()%3+3,1)-1;break;case "month":ka=da(this.year(),this.month()+ 4371,1)-1;break;case "week":ka=da(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case "isoWeek":ka=da(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case "day":case "date":ka=da(this.year(),this.month(),this.date()+1)-1;break;case "hour":ka=this._d.valueOf();ka+=36E5-gb(ka+(this._isUTC?0:6E4*this.utcOffset()),36E5)-1;break;case "minute":ka=this._d.valueOf();ka+=6E4-gb(ka,6E4)-1;break;case "second":ka=this._d.valueOf(),ka+=1E3-gb(ka,1E3)-1}return this._d.setTime(ka), 438B.updateOffset(this,!0),this};Ka.format=function(X){X||(X=this.isUtc()?B.defaultFormatUtc:B.defaultFormat);X=G(this,X);return this.localeData().postformat(X)};Ka.from=function(X,da){return this.isValid()&&(t(X)&&X.isValid()||Oa(X).isValid())?fb({to:this,from:X}).locale(this.locale()).humanize(!da):this.localeData().invalidDate()};Ka.fromNow=function(X){return this.from(Oa(),X)};Ka.to=function(X,da){return this.isValid()&&(t(X)&&X.isValid()||Oa(X).isValid())?fb({from:this,to:X}).locale(this.locale()).humanize(!da): 439this.localeData().invalidDate()};Ka.toNow=function(X){return this.to(Oa(),X)};Ka.get=function(X){return C(this[X=J(X)])?this[X]():this};Ka.invalidAt=function(){return f(this).overflow};Ka.isAfter=function(X,da){X=t(X)?X:Oa(X);return!(!this.isValid()||!X.isValid())&&("millisecond"===(da=J(da)||"millisecond")?this.valueOf()>X.valueOf():X.valueOf()<this.clone().startOf(da).valueOf())};Ka.isBefore=function(X,da){X=t(X)?X:Oa(X);return!(!this.isValid()||!X.isValid())&&("millisecond"===(da=J(da)||"millisecond")? 440this.valueOf()<X.valueOf():this.clone().endOf(da).valueOf()<X.valueOf())};Ka.isBetween=function(X,da,ka,ra){X=t(X)?X:Oa(X);da=t(da)?da:Oa(da);return!!(this.isValid()&&X.isValid()&&da.isValid())&&("("===(ra=ra||"()")[0]?this.isAfter(X,ka):!this.isBefore(X,ka))&&(")"===ra[1]?this.isBefore(da,ka):!this.isAfter(da,ka))};Ka.isSame=function(X,da){var ka;X=t(X)?X:Oa(X);return!(!this.isValid()||!X.isValid())&&("millisecond"===(da=J(da)||"millisecond")?this.valueOf()===X.valueOf():(ka=X.valueOf(),this.clone().startOf(da).valueOf()<= 441ka&&ka<=this.clone().endOf(da).valueOf()))};Ka.isSameOrAfter=function(X,da){return this.isSame(X,da)||this.isAfter(X,da)};Ka.isSameOrBefore=function(X,da){return this.isSame(X,da)||this.isBefore(X,da)};Ka.isValid=function(){return n(this)};Ka.lang=xc;Ka.locale=Ya;Ka.localeData=ib;Ka.max=Kc;Ka.min=Jc;Ka.parsingFlags=function(){return h({},f(this))};Ka.set=function(X,da){if("object"==typeof X){var ka=function(wa){var ya,Ca=[];for(ya in wa)x(wa,ya)&&Ca.push({unit:ya,priority:jb[ya]});return Ca.sort(function(Ma, 442La){return Ma.priority-La.priority}),Ca}(X=P(X)),ra=ka.length;for(da=0;da<ra;da++)this[ka[da].unit](X[ka[da].unit])}else if(C(this[X=J(X)]))return this[X](da);return this};Ka.startOf=function(X){var da;if(void 0===(X=J(X))||"millisecond"===X||!this.isValid())return this;switch(da=this._isUTC?Cb:Bb,X){case "year":var ka=da(this.year(),0,1);break;case "quarter":ka=da(this.year(),this.month()-this.month()%3,1);break;case "month":ka=da(this.year(),this.month(),1);break;case "week":ka=da(this.year(),this.month(), 443this.date()-this.weekday());break;case "isoWeek":ka=da(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case "day":case "date":ka=da(this.year(),this.month(),this.date());break;case "hour":ka=this._d.valueOf();ka-=gb(ka+(this._isUTC?0:6E4*this.utcOffset()),36E5);break;case "minute":ka=this._d.valueOf();ka-=gb(ka,6E4);break;case "second":ka=this._d.valueOf(),ka-=gb(ka,1E3)}return this._d.setTime(ka),B.updateOffset(this,!0),this};Ka.subtract=Mc;Ka.toArray=function(){return[this.year(), 444this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]};Ka.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}};Ka.toDate=function(){return new Date(this.valueOf())};Ka.toISOString=function(X){if(!this.isValid())return null;var da=(X=!0!==X)?this.clone().utc():this;return 0>da.year()||9999<da.year()?G(da,X?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"): 445C(Date.prototype.toISOString)?X?this.toDate().toISOString():(new Date(this.valueOf()+6E4*this.utcOffset())).toISOString().replace("Z",G(da,"Z")):G(da,X?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")};
445Ka.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var X,da,ka,ra="moment",wa="";return this.isLocal()||(ra=0===this.utcOffset()?"moment.utc":"moment.parseZone",wa="Z"),X="["+ra+'("]',da=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",ka=wa+'[")]',this.format(X+ 446da+"-MM-DD[T]HH:mm:ss.SSS"+ka)};"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ka[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment\x3c"+this.format()+"\x3e"});Ka.toJSON=function(){return this.isValid()?this.toISOString():null};Ka.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};Ka.unix=function(){return Math.floor(this.valueOf()/1E3)};Ka.valueOf=function(){return this._d.valueOf()-6E4*(this._offset||0)};Ka.creationData=function(){return{input:this._i, 447format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};Ka.eraName=function(){var X,da,ka=this.localeData().eras();var ra=0;for(X=ka.length;ra<X;++ra)if((da=this.clone().startOf("day").valueOf(),ka[ra].since<=da&&da<=ka[ra].until)||ka[ra].until<=da&&da<=ka[ra].since)return ka[ra].name;return""};Ka.eraNarrow=function(){var X,da,ka=this.localeData().eras();var ra=0;for(X=ka.length;ra<X;++ra)if((da=this.clone().startOf("day").valueOf(),ka[ra].since<=da&&da<=ka[ra].until)||ka[ra].until<= 448da&&da<=ka[ra].since)return ka[ra].narrow;return""};Ka.eraAbbr=function(){var X,da,ka=this.localeData().eras();var ra=0;for(X=ka.length;ra<X;++ra)if((da=this.clone().startOf("day").valueOf(),ka[ra].since<=da&&da<=ka[ra].until)||ka[ra].until<=da&&da<=ka[ra].since)return ka[ra].abbr;return""};Ka.eraYear=function(){var X,da,ka,ra=this.localeData().eras();var wa=0;for(X=ra.length;wa<X;++wa)if(da=ra[wa].since<=ra[wa].until?1:-1,ka=this.clone().startOf("day").valueOf(),ra[wa].since<=ka&&ka<=ra[wa].until|| 449ra[wa].until<=ka&&ka<=ra[wa].since)return(this.year()-B(ra[wa].since).year())*da+ra[wa].offset;return this.year()};Ka.year=uc;Ka.isLeapYear=function(){return S(this.year())};Ka.weekYear=function(X){return cc.call(this,X,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};Ka.isoWeekYear=function(X){return cc.call(this,X,this.isoWeek(),this.isoWeekday(),1,4)};Ka.quarter=Ka.quarters=function(X){return null==X?Math.ceil((this.month()+1)/3):this.month(3*(X-1)+this.month()% 4503)};Ka.month=W;Ka.daysInMonth=function(){return Y(this.year(),this.month())};Ka.week=Ka.weeks=function(X){var da=this.localeData().week(this);return null==X?da:this.add(7*(X-da),"d")};Ka.isoWeek=Ka.isoWeeks=function(X){var da=qa(this,1,4).week;return null==X?da:this.add(7*(X-da),"d")};Ka.weeksInYear=function(){var X=this.localeData()._week;return ha(this.year(),X.dow,X.doy)};Ka.weeksInWeekYear=function(){var X=this.localeData()._week;return ha(this.weekYear(),X.dow,X.doy)};Ka.isoWeeksInYear=function(){return ha(this.year(), 4511,4)};Ka.isoWeeksInISOWeekYear=function(){return ha(this.isoWeekYear(),1,4)};Ka.date=yc;Ka.day=Ka.days=function(X){if(!this.isValid())return null!=X?this:NaN;var da=this._isUTC?this._d.getUTCDay():this._d.getDay();if(null!=X){var ka=X;var ra=this.localeData();ra=(X="string"!=typeof ka?ka:isNaN(ka)?"number"==typeof(ka=ra.weekdaysParse(ka))?ka:null:parseInt(ka,10),this.add(X-da,"d"))}else ra=da;return ra};Ka.weekday=function(X){if(!this.isValid())return null!=X?this:NaN;var da=(this.day()+7-this.localeData()._week.dow)% 4527;return null==X?da:this.add(X-da,"d")};Ka.isoWeekday=function(X){if(!this.isValid())return null!=X?this:NaN;if(null!=X){var da=this.localeData();X="string"==typeof X?da.weekdaysParse(X)%7||7:isNaN(X)?null:X;return this.day(this.day()%7?X:X-7)}return this.day()||7};Ka.dayOfYear=function(X){var da=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864E5)+1;return null==X?da:this.add(X-da,"d")};Ka.hour=Ka.hours=Ic;Ka.minute=Ka.minutes=Nc;Ka.second=Ka.seconds=Oc;Ka.millisecond=Ka.milliseconds= 453Pc;Ka.utcOffset=function(X,da,ka){var ra,wa=this._offset||0;if(!this.isValid())return null!=X?this:NaN;if(null!=X){if("string"==typeof X){if(null===(X=sb(Qa,X)))return this}else 16>Math.abs(X)&&!ka&&(X*=60);return!this._isUTC&&da&&(ra=-Math.round(this._d.getTimezoneOffset())),this._offset=X,this._isUTC=!0,null!=ra&&this.add(ra,"m"),wa!==X&&(!da||this._changeInProgress?Ab(this,fb(X-wa,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,B.updateOffset(this,!0),this._changeInProgress=null)), 454this}return this._isUTC?wa:-Math.round(this._d.getTimezoneOffset())};Ka.utc=function(X){return this.utcOffset(0,X)};Ka.local=function(X){return this._isUTC&&(this.utcOffset(0,X),this._isUTC=!1,X&&this.subtract(-Math.round(this._d.getTimezoneOffset()),"m")),this};Ka.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var X=sb(Ia,this._i);null!=X?this.utcOffset(X):this.utcOffset(0,!0)}return this};Ka.hasAlignedHourOffset=function(X){return!!this.isValid()&& 455(X=X?Oa(X).utcOffset():0,0==(this.utcOffset()-X)%60)};Ka.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};Ka.isLocal=function(){return!!this.isValid()&&!this._isUTC};Ka.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};Ka.isUtc=lb;Ka.isUTC=lb;Ka.zoneAbbr=function(){return this._isUTC?"UTC":""};Ka.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};Ka.dates=w("dates accessor is deprecated. Use date instead.", 456yc);Ka.months=w("months accessor is deprecated. Use month instead",W);Ka.years=w("years accessor is deprecated. Use year instead",uc);Ka.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(X,da){return null!=X?("string"!=typeof X&&(X=-X),this.utcOffset(X,da),this):-this.utcOffset()});Ka.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!p(this._isDSTShifted))return this._isDSTShifted; 457var X={};r(X,this);if((X=Ha(X))._a){var da=X._isUTC?k(X._a):Oa(X._a);var ka;if(ka=this.isValid()){X=X._a;da=da.toArray();var ra=Math.min(X.length,da.length),wa=Math.abs(X.length-da.length),ya=0;for(ka=0;ka<ra;ka++)O(X[ka])!==O(da[ka])&&ya++;ka=0<ya+wa}this._isDSTShifted=ka}else this._isDSTShifted=!1;return this._isDSTShifted});var Za=z.prototype;Za.calendar=function(X,da,ka){X=this._calendar[X]||this._calendar.sameElse;return C(X)?X.call(da,ka):X};Za.longDateFormat=function(X){var da=this._longDateFormat[X], 458ka=this._longDateFormat[X.toUpperCase()];return da||!ka?da:(this._longDateFormat[X]=ka.match(ic).map(function(ra){return"MMMM"===ra||"MM"===ra||"DD"===ra||"dddd"===ra?ra.slice(1):ra}).join(""),this._longDateFormat[X])};Za.invalidDate=function(){return this._invalidDate};Za.ordinal=function(X){return this._ordinal.replace("%d",X)};Za.preparse=Db;Za.postformat=Db;Za.relativeTime=function(X,da,ka,ra){var wa=this._relativeTime[ka];return C(wa)?wa(X,da,ka,ra):wa.replace(/%d/i,X)};Za.pastFuture=function(X, 459da){X=this._relativeTime[0<X?"future":"past"];return C(X)?X(da):X.replace(/%s/i,da)};Za.set=function(X){var da,ka;for(ka in X)x(X,ka)&&(C(da=X[ka])?this[ka]=da:this["_"+ka]=da);this._config=X;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};Za.eras=function(X,da){var ka=this._eras||za("en")._eras;X=0;for(da=ka.length;X<da;++X){switch(typeof ka[X].since){case "string":var ra=B(ka[X].since).startOf("day");ka[X].since= 460ra.valueOf()}switch(typeof ka[X].until){case "undefined":ka[X].until=1/0;break;case "string":ra=B(ka[X].until).startOf("day").valueOf(),ka[X].until=ra.valueOf()}}return ka};Za.erasParse=function(X,da,ka){var ra,wa,ya,Ca,Ma=this.eras();X=X.toUpperCase();var La=0;for(ra=Ma.length;La<ra;++La)if(wa=Ma[La].name.toUpperCase(),ya=Ma[La].abbr.toUpperCase(),Ca=Ma[La].narrow.toUpperCase(),ka)switch(da){case "N":case "NN":case "NNN":if(ya===X)return Ma[La];break;case "NNNN":if(wa===X)return Ma[La];break;case "NNNNN":if(Ca=== 461X)return Ma[La]}else if(0<=[wa,ya,Ca].indexOf(X))return Ma[La]};Za.erasConvertYear=function(X,da){var ka=X.since<=X.until?1:-1;return void 0===da?B(X.since).year():B(X.since).year()+(da-X.offset)*ka};Za.erasAbbrRegex=function(X){return x(this,"_erasAbbrRegex")||wb.call(this),X?this._erasAbbrRegex:this._erasRegex};Za.erasNameRegex=function(X){return x(this,"_erasNameRegex")||wb.call(this),X?this._erasNameRegex:this._erasRegex};Za.erasNarrowRegex=function(X){return x(this,"_erasNarrowRegex")||wb.call(this), 462X?this._erasNarrowRegex:this._erasRegex};Za.months=function(X,da){return X?D(this._months)?this._months[X.month()]:this._months[(this._months.isFormat||Gb).test(da)?"format":"standalone"][X.month()]:D(this._months)?this._months:this._months.standalone};Za.monthsShort=function(X,da){return X?D(this._monthsShort)?this._monthsShort[X.month()]:this._monthsShort[Gb.test(da)?"format":"standalone"][X.month()]:D(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};Za.monthsParse=function(X, 463da,ka){var ra;if(this._monthsParseExact){var wa=X.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],X=0;12>X;++X){var ya=k([2E3,X]);this._shortMonthsParse[X]=this.monthsShort(ya,"").toLocaleLowerCase();this._longMonthsParse[X]=this.months(ya,"").toLocaleLowerCase()}return ka?"MMM"===da?-1!==(ra=bb.call(this._shortMonthsParse,wa))?ra:null:-1!==(ra=bb.call(this._longMonthsParse,wa))?ra:null:"MMM"===da?-1!==(ra=bb.call(this._shortMonthsParse, 464wa))||-1!==(ra=bb.call(this._longMonthsParse,wa))?ra:null:-1!==(ra=bb.call(this._longMonthsParse,wa))||-1!==(ra=bb.call(this._shortMonthsParse,wa))?ra:null}this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(ra=0;12>ra;ra++)if((ya=k([2E3,ra]),ka&&!this._longMonthsParse[ra]&&(this._longMonthsParse[ra]=new RegExp("^"+this.months(ya,"").replace(".","")+"$","i"),this._shortMonthsParse[ra]=new RegExp("^"+this.monthsShort(ya,"").replace(".","")+"$","i")),ka|| 465this._monthsParse[ra]||(wa="^"+this.months(ya,"")+"|^"+this.monthsShort(ya,""),this._monthsParse[ra]=new RegExp(wa.replace(".",""),"i")),ka&&"MMMM"===da&&this._longMonthsParse[ra].test(X))||ka&&"MMM"===da&&this._shortMonthsParse[ra].test(X)||!ka&&this._monthsParse[ra].test(X))return ra};Za.monthsRegex=function(X){return this._monthsParseExact?(x(this,"_monthsRegex")||ca.call(this),X?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=Sa),this._monthsStrictRegex&& 466X?this._monthsStrictRegex:this._monthsRegex)};Za.monthsShortRegex=function(X){return this._monthsParseExact?(x(this,"_monthsRegex")||ca.call(this),X?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=Sa),this._monthsShortStrictRegex&&X?this._monthsShortStrictRegex:this._monthsShortRegex)};Za.week=function(X){return qa(X,this._week.dow,this._week.doy).week};Za.firstDayOfYear=function(){return this._week.doy};Za.firstDayOfWeek=function(){return this._week.dow}; 467Za.weekdays=function(X,da){da=D(this._weekdays)?this._weekdays:this._weekdays[X&&!0!==X&&this._weekdays.isFormat.test(da)?"format":"standalone"];return!0===X?na(da,this._week.dow):X?da[X.day()]:da};Za.weekdaysMin=function(X){return!0===X?na(this._weekdaysMin,this._week.dow):X?this._weekdaysMin[X.day()]:this._weekdaysMin};Za.weekdaysShort=function(X){return!0===X?na(this._weekdaysShort,this._week.dow):X?this._weekdaysShort[X.day()]:this._weekdaysShort};Za.weekdaysParse=function(X,da,ka){var ra;if(this._weekdaysParseExact){var wa= 468X.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],X=0;7>X;++X){var ya=k([2E3,1]).day(X);this._minWeekdaysParse[X]=this.weekdaysMin(ya,"").toLocaleLowerCase();this._shortWeekdaysParse[X]=this.weekdaysShort(ya,"").toLocaleLowerCase();this._weekdaysParse[X]=this.weekdays(ya,"").toLocaleLowerCase()}return ka?"dddd"===da?-1!==(ra=bb.call(this._weekdaysParse,wa))?ra:null:"ddd"===da?-1!==(ra=bb.call(this._shortWeekdaysParse,wa))? 469ra:null:-1!==(ra=bb.call(this._minWeekdaysParse,wa))?ra:null:"dddd"===da?-1!==(ra=bb.call(this._weekdaysParse,wa))||-1!==(ra=bb.call(this._shortWeekdaysParse,wa))||-1!==(ra=bb.call(this._minWeekdaysParse,wa))?ra:null:"ddd"===da?-1!==(ra=bb.call(this._shortWeekdaysParse,wa))||-1!==(ra=bb.call(this._weekdaysParse,wa))||-1!==(ra=bb.call(this._minWeekdaysParse,wa))?ra:null:-1!==(ra=bb.call(this._minWeekdaysParse,wa))||-1!==(ra=bb.call(this._weekdaysParse,wa))||-1!==(ra=bb.call(this._shortWeekdaysParse, 470wa))?ra:null}this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(ra=0;7>ra;ra++)if((ya=k([2E3,1]).day(ra),ka&&!this._fullWeekdaysParse[ra]&&(this._fullWeekdaysParse[ra]=new RegExp("^"+this.weekdays(ya,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ra]=new RegExp("^"+this.weekdaysShort(ya,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ra]=new RegExp("^"+this.weekdaysMin(ya,"").replace(".","\\.?")+"$", 471"i")),this._weekdaysParse[ra]||(wa="^"+this.weekdays(ya,"")+"|^"+this.weekdaysShort(ya,"")+"|^"+this.weekdaysMin(ya,""),this._weekdaysParse[ra]=new RegExp(wa.replace(".",""),"i")),ka&&"dddd"===da&&this._fullWeekdaysParse[ra].test(X))||ka&&"ddd"===da&&this._shortWeekdaysParse[ra].test(X)||ka&&"dd"===da&&this._minWeekdaysParse[ra].test(X)||!ka&&this._weekdaysParse[ra].test(X))return ra};Za.weekdaysRegex=function(X){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||oa.call(this),X?this._weekdaysStrictRegex: 472this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=Sa),this._weekdaysStrictRegex&&X?this._weekdaysStrictRegex:this._weekdaysRegex)};Za.weekdaysShortRegex=function(X){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||oa.call(this),X?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sa),this._weekdaysShortStrictRegex&&X?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};Za.weekdaysMinRegex=function(X){return this._weekdaysParseExact? 473(x(this,"_weekdaysRegex")||oa.call(this),X?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sa),this._weekdaysMinStrictRegex&&X?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};Za.isPM=function(X){return"p"===(X+"").toLowerCase().charAt(0)};Za.meridiem=function(X,da,ka){return 11<X?ka?"pm":"PM":ka?"am":"AM"};Fa("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1, 474name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(X){var da=X%10;return X+(1===O(X%100/10)?"th":1===da?"st":2===da?"nd":3===da?"rd":"th")}});B.lang=w("moment.lang is deprecated. Use moment.locale instead.",Fa);B.langData=w("moment.langData is deprecated. Use moment.localeData instead.",za);var Hb=Math.abs,Qc=ob("ms"),Rc=ob("s"),Sc=ob("m"),Tc=ob("h"),Uc=ob("d"),Vc=ob("w"),Wc=ob("M"),Xc=ob("Q"),Yc=ob("y"),Zc=pb("milliseconds"),$c=pb("seconds"), 475ad=pb("minutes"),bd=pb("hours"),cd=pb("days"),dd=pb("months"),ed=pb("years"),Ib=Math.round,hc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},tc=Math.abs,Xa=Pa.prototype;return Xa.isValid=function(){return this._isValid},Xa.abs=function(){var X=this._data;return this._milliseconds=Hb(this._milliseconds),this._days=Hb(this._days),this._months=Hb(this._months),X.milliseconds=Hb(X.milliseconds),X.seconds=Hb(X.seconds),X.minutes=Hb(X.minutes),X.hours=Hb(X.hours),X.months=Hb(X.months),X.years=Hb(X.years),this}, 476Xa.add=function(X,da){return ec(this,X,da,1)},Xa.subtract=function(X,da){return ec(this,X,da,-1)},Xa.as=function(X){if(!this.isValid())return NaN;var da;var ka=this._milliseconds;if("month"===(X=J(X))||"quarter"===X||"year"===X)switch(da=this._days+ka/864E5,ka=this._months+4800*da/146097,X){case "month":return ka;case "quarter":return ka/3;case "year":return ka/12}else switch(da=this._days+Math.round(146097*this._months/4800),X){case "week":return da/7+ka/6048E5;case "day":return da+ka/864E5;case "hour":return 24*
477da+ka/36E5;case "minute":return 1440*da+ka/6E4;case "second":return 86400*da+ka/1E3;case "millisecond":return Math.floor(864E5*da)+ka;default:throw Error("Unknown unit "+X);}},Xa.asMilliseconds=Qc,Xa.asSeconds=Rc,Xa.asMinutes=Sc,Xa.asHours=Tc,Xa.asDays=Uc,Xa.asWeeks=Vc,Xa.asMonths=Wc,Xa.asQuarters=Xc,Xa.asYears=Yc,Xa.valueOf=function(){return this.isValid()?this._milliseconds+864E5*this._days+this._months%12*2592E6+31536E6*O(this._months/12):NaN},Xa._bubble=function(){var X,da,ka,ra,wa,ya=this._milliseconds, 478Ca=this._days,Ma=this._months,La=this._data;return 0<=ya&&0<=Ca&&0<=Ma||0>=ya&&0>=Ca&&0>=Ma||(ya+=864E5*Mb(146097*Ma/4800+Ca),Ca=0,Ma=0),La.milliseconds=ya%1E3,X=R(ya/1E3),La.seconds=X%60,da=R(X/60),La.minutes=da%60,ka=R(da/60),La.hours=ka%24,Ca+=R(ka/24),wa=R(4800*Ca/146097),Ma+=wa,Ca-=Mb(146097*wa/4800),ra=R(Ma/12),Ma%=12,La.days=Ca,La.months=Ma,La.years=ra,this},Xa.clone=function(){return fb(this)},Xa.get=function(X){return X=J(X),this.isValid()?this[X+"s"]():NaN},Xa.milliseconds=Zc,Xa.seconds= 479$c,Xa.minutes=ad,Xa.hours=bd,Xa.days=cd,Xa.weeks=function(){return R(this.days()/7)},Xa.months=dd,Xa.years=ed,Xa.humanize=function(X,da){if(!this.isValid())return this.localeData().invalidDate();var ka,ra=!1,wa=hc;"object"==typeof X&&(da=X,X=!1);"boolean"==typeof X&&(ra=X);"object"==typeof da&&(wa=Object.assign({},hc,da),null!=da.s&&null==da.ss&&(wa.ss=da.s-1));X=this.localeData();da=!ra;var ya=fb(this).abs(),Ca=Ib(ya.as("s")),Ma=Ib(ya.as("m")),La=Ib(ya.as("h")),Ta=Ib(ya.as("d")),Ua=Ib(ya.as("M")), 480Wa=Ib(ya.as("w"));ya=Ib(ya.as("y"));Ca=Ca<=wa.ss&&["s",Ca]||Ca<wa.s&&["ss",Ca]||1>=Ma&&["m"]||Ma<wa.m&&["mm",Ma]||1>=La&&["h"]||La<wa.h&&["hh",La]||1>=Ta&&["d"]||Ta<wa.d&&["dd",Ta];return ka=(null!=wa.w&&(Ca=Ca||1>=Wa&&["w"]||Wa<wa.w&&["ww",Wa]),(Ca=Ca||1>=Ua&&["M"]||Ua<wa.M&&["MM",Ua]||1>=ya&&["y"]||["yy",ya])[2]=da,Ca[3]=0<+this,Ca[4]=X,qc.apply(null,Ca)),ra&&(ka=X.pastFuture(+this,ka)),X.postformat(ka)},Xa.toISOString=Wb,Xa.toString=Wb,Xa.toJSON=Wb,Xa.locale=Ya,Xa.localeData=ib,Xa.toIsoString= 481w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wb),Xa.lang=xc,H("X",0,0,"unix"),H("x",0,0,"valueOf"),T("x",Ba),T("X",/[+-]?\d+(\.\d{1,3})?/),U("X",function(X,da,ka){ka._d=new Date(1E3*parseFloat(X))}),U("x",function(X,da,ka){ka._d=new Date(O(X))}),B.version="2.29.4",ac=Oa,B.fn=Ka,B.min=function(){var X=[].slice.call(arguments,0);return Na("isBefore",X)},B.max=function(){var X=[].slice.call(arguments,0);return Na("isAfter",X)},B.now=function(){return Date.now? 482Date.now():+new Date},B.utc=k,B.unix=function(X){return Oa(1E3*X)},B.months=function(X,da){return Vb(X,da,"months")},B.isDate=c,B.locale=Fa,B.invalid=l,B.duration=fb,B.isMoment=t,B.weekdays=function(X,da,ka){return dc(X,da,ka,"weekdays")},B.parseZone=function(){return Oa.apply(null,arguments).parseZone()},B.localeData=za,B.isDuration=Ra,B.monthsShort=function(X,da){return Vb(X,da,"monthsShort")},B.weekdaysMin=function(X,da,ka){return dc(X,da,ka,"weekdaysMin")},B.defineLocale=Ea,B.updateLocale=function(X, 483da){if(null!=da){var ka,ra,wa=vc;null!=eb[X]&&null!=eb[X].parentLocale?eb[X].set(y(eb[X]._config,da)):(null!=(ra=Aa(X))&&(wa=ra._config),da=y(wa,da),null==ra&&(da.abbr=X),(ka=new z(da)).parentLocale=eb[X],eb[X]=ka);Fa(X)}else null!=eb[X]&&(null!=eb[X].parentLocale?(eb[X]=eb[X].parentLocale,X===Fa()&&Fa(X)):null!=eb[X]&&delete eb[X]);return eb[X]},B.locales=function(){return Nb(eb)},B.weekdaysShort=function(X,da,ka){return dc(X,da,ka,"weekdaysShort")},B.normalizeUnits=J,B.relativeTimeRounding=function(X){return void 0=== 484X?Ib:"function"==typeof X&&(Ib=X,!0)},B.relativeTimeThreshold=function(X,da){return void 0!==hc[X]&&(void 0===da?hc[X]:(hc[X]=da,"s"===X&&(hc.ss=da-1),!0))},B.calendarFormat=function(X,da){X=X.diff(da,"days",!0);return-6>X?"sameElse":-1>X?"lastWeek":0>X?"lastDay":1>X?"sameDay":2>X?"nextDay":7>X?"nextWeek":"sameElse"},B.prototype=Ka,B.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm", 485TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},B}();window.moment=a(108)}).call(this,a(780)(g))},function(g,b,a){var F=a(787),B=a(590);g.exports=function(D,A){A=B(D,A,"get");return F(D,A)};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){var F=a(788),B=a(590);g.exports=function(D,A,x){A=B(D,A,"set");return F(D,A,x),x};g.exports.__esModule=!0;g.exports.default=g.exports}
485,function(g,b,a){function F(e,c){if(-1!==e.indexOf(c))return e;e=e.replace("htTop", 486"").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(e," ").concat(c)}function B(e,c){if(-1!==e.indexOf(c))return e;e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(e," ").concat(c)}function D(e,c){for(e=e.slice(0);0<e.length&&e[0].name===c;)e.shift();return e}function A(e){var c=[];return(0,x.arrayEach)(e,function(d,h){0<h?c[c.length-1].name!==d.name&&c.push(d):c.push(d)}),c}b.__esModule=!0; 487b.align=function(e,c,d,h,k){(0,x.arrayEach)(e,function(f){f.forAll(function(n,l){if(0<=n&&0<=l){var r=h(n,l),m=d;r.className&&(m="vertical"===c?F(r.className,d):B(r.className,d));k(n,l,"className",m)}})})};b.checkSelectionConsistency=function(e,c){var d=!1;Array.isArray(e)&&(0,x.arrayEach)(e,function(h){return h.forAll(function(k,f){if(0<=k&&0<=f&&c(k,f))return d=!0,!1}),d});return d};b.filterSeparators=function(e){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:p.KEY,d=e.slice(0);d= 488D(d,c).slice(0);c=(d.reverse(),(d=D(d,c)).reverse(),d);return A(c)};b.getAlignmentClasses=function(e,c){var d={};return(0,x.arrayEach)(e,function(h){h.forAll(function(k,f){0<=k&&0<=f&&(d[k]||(d[k]=[]),d[k][f]=c(k,f))})}),d};b.getValidSelection=function(e){e=e.getSelected();return!e||0>e[0]?null:e};b.hasSubMenu=function(e){return(0,q.hasClass)(e,"htSubmenu")};b.isDisabled=function(e){return(0,q.hasClass)(e,"htDisabled")};b.isItemHidden=function(e,c){return!e.hidden||!("function"==typeof e.hidden&& 489e.hidden.call(c))};b.isSelectionDisabled=function(e){return(0,q.hasClass)(e,"htSelectionDisabled")};b.isSeparator=function(e){return(0,q.hasClass)(e,"htSeparator")};b.markLabelAsSelected=function(e){return'\x3cspan class\x3d"selected"\x3e'.concat(String.fromCharCode(10003),"\x3c/span\x3e").concat(e)};b.normalizeSelection=function(e){return(0,x.arrayMap)(e,function(c){return{start:c.getTopStartCorner(),end:c.getBottomEndCorner()}})};b.prepareHorizontalAlignClass=B;b.prepareVerticalAlignClass=F;a(33); 490a(12);a(67);a(18);a(13);a(26);a(62);var x=a(20),q=a(23),p=a(327)},function(g,b){g.exports=!1},function(g,b,a){function F(R,O){if(!(R=function(N){if(Array.isArray(N))return N}(R)||function(N,Q){var M=null==N?null:"undefined"!=typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(null!=M){var T,Z=[],L=!0,U=!1;try{for(M=M.call(N);!(L=(T=M.next()).done)&&(Z.push(T.value),!Q||Z.length!==Q);L=!0);}catch(Y){U=!0;var V=Y}finally{try{L||null==M.return||M.return()}finally{if(U)throw V;}}return Z}}(R,O)||A(R, 491O)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return R}function B(R){var O=Array.isArray(R)?x(R):void 0;O||(O="undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"]?Array.from(R):void 0);if(!(R=O||A(R)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return R} 492function D(R,O){var N="undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(!N){if(Array.isArray(R)||(N=A(R))||O&&R&&"number"==typeof R.length){N&&(R=N);var Q=0;O=function(){};return{s:O,n:function(){return Q>=R.length?{done:!0}:{done:!1,value:R[Q++]}},e:function(L){throw L;},f:O}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var M,T=!0,Z=!1;return{s:function(){N=N.call(R)}, 493n:function(){var L=N.next();return T=L.done,L},e:function(L){Z=!0;M=L},f:function(){try{T||null==N.return||N.return()}finally{if(Z)throw M;}}}}function A(R,O){if(R){if("string"==typeof R)return x(R,O);var N=Object.prototype.toString.call(R).slice(8,-1);return"Object"===N&&R.constructor&&(N=R.constructor.name),"Map"===N||"Set"===N?Array.from(R):"Arguments"===N||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?x(R,O):void 0}}function x(R,O){(null==O||O>R.length)&&(O=R.length);for(var N=0,Q=Array(O);N< 494O;N++)Q[N]=R[N];return Q}function q(R,O){for(var N=0;N<O.length;N++){var Q=O[N];Q.enumerable=Q.enumerable||!1;Q.configurable=!0;"value"in Q&&(Q.writable=!0);Object.defineProperty(R,Q.key,Q)}}function p(R,O){var N=F(R,2);R=N[0];N=N[1];if(!isFinite(R)||!isFinite(N))return new E.CellError(E.ErrorType.NUM,H.ErrorMessage.NaN);if(O=null!=O?O:"i",0===N)return"".concat(R);O="".concat(-1===N||1===N?"":Math.abs(N)).concat(O);return 0===R?"".concat(0>N?"-":"").concat(O):"".concat(R).concat(0>N?"-":"+").concat(O)} 495function e(R){return R instanceof K.SimpleRangeValue?R:K.SimpleRangeValue.fromScalar(R)}function c(R){return R instanceof K.SimpleRangeValue&&R.hasOnlyNumbers()||R instanceof E.CellError?R:Object(I.isExtendedNumber)(R)?
495K.SimpleRangeValue.fromScalar(R):null}function d(R){return Number(R)}function h(R){return"string"==typeof R?"":Object(I.isExtendedNumber)(R)?0:"boolean"!=typeof R&&I.EmptyValue}function k(R){if(R instanceof E.CellError||"boolean"==typeof R)return R;if(R===I.EmptyValue)return!1;if(Object(I.isExtendedNumber)(R))return 0!== 496Object(I.getRawValue)(R);R=R.toUpperCase();return"TRUE"===R||"FALSE"!==R&&""!==R&&void 0}function f(R){return R instanceof E.CellError||"string"==typeof R?R:R===I.EmptyValue?"":Object(I.isExtendedNumber)(R)?Object(I.getRawValue)(R).toString():R?"TRUE":"FALSE"}function n(R){return R===I.EmptyValue?0:R}function l(R,O){R=Object(I.getRawValue)(R);O=Object(I.getRawValue)(O);return R>O?1:R<O?-1:0}function r(R){return isNaN(R)||R===1/0||R===-1/0}function m(R){return 0===R?0:R}function t(R){return["*","?"].includes(R)} 497function u(R,O){var N=Object(I.getTypeFormatOfExtendedNumber)(R);R=N.type;N=N.format;var Q=Object(I.getTypeFormatOfExtendedNumber)(O);O=Q.type;Q=Q.format;if(R===I.NumberType.NUMBER_RAW)return{type:O,format:Q};if(O===I.NumberType.NUMBER_RAW)return{type:R,format:N};if(!(R!==I.NumberType.NUMBER_DATETIME&&R!==I.NumberType.NUMBER_DATE||O!==I.NumberType.NUMBER_DATETIME&&O!==I.NumberType.NUMBER_DATE))return{type:I.NumberType.NUMBER_RAW};if(R===I.NumberType.NUMBER_TIME){if(O===I.NumberType.NUMBER_DATE)return{type:I.NumberType.NUMBER_DATETIME, 498format:Q+" "+N};if(O===I.NumberType.NUMBER_DATETIME)return{type:I.NumberType.NUMBER_DATETIME,format:Q}}if(O===I.NumberType.NUMBER_TIME){if(R===I.NumberType.NUMBER_DATE)return{type:I.NumberType.NUMBER_DATETIME,format:N+" "+Q};if(R===I.NumberType.NUMBER_DATETIME)return{type:I.NumberType.NUMBER_DATETIME,format:N}}return{type:R,format:N}}function w(R,O){var N=Object(I.getTypeFormatOfExtendedNumber)(R);R=N.type;N=N.format;var Q=Object(I.getTypeFormatOfExtendedNumber)(O);O=Q.type;Q=Q.format;return R=== 499I.NumberType.NUMBER_PERCENT&&(R=I.NumberType.NUMBER_RAW,N=void 0),O===I.NumberType.NUMBER_PERCENT&&(O=I.NumberType.NUMBER_RAW,Q=void 0),R===I.NumberType.NUMBER_RAW?{type:O,format:Q}:O===I.NumberType.NUMBER_RAW?{type:R,format:N}:{type:I.NumberType.NUMBER_RAW}}function v(R){return y(R.toLowerCase(),"nfd").replace(/[\u0300-\u036f]/g,"")}function C(R,O){var N;if(R.isAdHoc())return null===(N=R.data[0])||void 0===N?void 0:N[0];N=R.range;if(O.formulaAddress.sheet===N.sheet)if(1===N.width()){if(O=O.formulaAddress.row- 500N.start.row,0<=O&&O<N.height())return R.data[O][0]}else if(1===N.height()&&(O=O.formulaAddress.col-N.start.col,0<=O&&O<N.width()))return R.data[0][O]}function y(R,O){return"function"==typeof R.normalize?R.normalize(O.toUpperCase()):z.a[O](R)}a.r(b);a.d(b,"ArithmeticHelper",function(){return P});a.d(b,"coerceComplexToString",function(){return p});a.d(b,"coerceToRange",function(){return e});a.d(b,"coerceToRangeNumbersOrError",function(){return c});a.d(b,"coerceBooleanToNumber",function(){return d}); 501a.d(b,"coerceEmptyToValue",function(){return h});a.d(b,"coerceScalarToBoolean",function(){return k});a.d(b,"coerceScalarToString",function(){return f});a.d(b,"zeroIfEmpty",function(){return n});a.d(b,"numberCmp",function(){return l});a.d(b,"isNumberOverflow",function(){return r});a.d(b,"fixNegativeZero",function(){return m});a.d(b,"forceNormalizeString",function(){return v});a.d(b,"coerceRangeToScalar",function(){return C});a.d(b,"normalizeString",function(){return y});a(18);a(12);a(118);a(52);a(101); 502a(69);a(67);a(0);a(42);a(13);a(26);a(22);a(2);a(8);a(9);a(10);a(3);a(4);g=a(720);var z=a.n(g),E=a(24),H=a(46),G=a(721),I=a(51),K=a(82),J=/^\s*([+-]?)\s*(([\d\.,]+(e[+-]?\d+)?)\s*([ij]?)|([ij]))\s*(([+-])\s*([+-]?)\s*(([\d\.,]+(e[+-]?\d+)?)\s*([ij]?)|([ij])))?$/,P=function(){function R(N,Q,M){var T=this;if(!(this instanceof R))throw new TypeError("Cannot call a class as a function");!0;this.config=N;this.dateTimeHelper=Q;this.numberLiteralsHelper=M;this.lt=function(Z,L){return 0>T.compare(Z,L)};this.leq= 503function(Z,L){return 0>=T.compare(Z,L)};this.gt=function(Z,L){return 0<T.compare(Z,L)};this.geq=function(Z,L){return 0<=T.compare(Z,L)};this.eq=function(Z,L){return 0===T.compare(Z,L)};this.neq=function(Z,L){return 0!==T.compare(Z,L)};this.pow=function(Z,L){return Math.pow(Object(I.getRawValue)(Z),Object(I.getRawValue)(L))};this.addWithEpsilonRaw=function(Z,L){L=Z+L;return Math.abs(L)<T.actualEps*Math.abs(Z)?0:L};this.addWithEpsilon=function(Z,L){var U=u(Z,L);return T.ExtendedNumberFactory(T.addWithEpsilonRaw(Object(I.getRawValue)(Z), 504Object(I.getRawValue)(L)),U)};this.unaryMinus=function(Z){return Object(I.cloneNumber)(Z,-Object(I.getRawValue)(Z))};this.unaryPlus=function(Z){return Z};this.unaryPercent=function(Z){return new I.PercentNumber(Object(I.getRawValue)(Z)/100)};this.concat=function(Z,L){return Z.concat(L)};this.nonstrictadd=function(Z,L){return Z instanceof E.CellError?Z:L instanceof E.CellError?L:"number"==typeof Z?"number"==typeof L?T.addWithEpsilonRaw(Z,L):Z:"number"==typeof L?L:0};this.subtract=function(Z,L){var U= 505u(Z,L);Z=Object(I.getRawValue)(Z);L=Z-Object(I.getRawValue)(L);return Math.abs(L)<T.actualEps*Math.abs(Z)&&(L=0),T.ExtendedNumberFactory(L,U)};this.divide=function(Z,L){var U=Object(I.getRawValue)(Z),V=Object(I.getRawValue)(L);if(0===V)return new E.CellError(E.ErrorType.DIV_BY_ZERO);Z=w(Z,L);return T.ExtendedNumberFactory(U/V,Z)};this.multiply=function(Z,L){var U=w(Z,L);return T.ExtendedNumberFactory(Object(I.getRawValue)(Z)*Object(I.getRawValue)(L),U)};this.manyToExactComplex=function(Z){var L,U= 506[];Z=D(Z);try{for(Z.s();!(L=Z.n()).done;){var V=L.value;if(V instanceof E.CellError)return V;if(Object(I.isExtendedNumber)(V)||"string"==typeof V){var Y=T.coerceScalarToComplex(V);Y instanceof E.CellError||U.push(Y)}}}catch(aa){Z.e(aa)}finally{Z.f()}return U};this.coerceNumbersExactRanges=function(Z){return T.manyToNumbers(Z,T.manyToExactNumbers)};this.coerceNumbersCoerceRangesDropNulls=function(Z){return T.manyToNumbers(Z,T.manyToCoercedNumbersDropNulls)};this.manyToExactNumbers=function(Z){var L, 507U=[];Z=D(Z);try{for(Z.s();!(L=Z.n()).done;){var V=L.value;if(V instanceof E.CellError)return V;Object(I.isExtendedNumber)(V)&&U.push(Object(I.getRawValue)(V))}}catch(Y){Z.e(Y)}finally{Z.f()}return U};this.manyToOnlyNumbersDropNulls=function(Z){var L,U=[];Z=D(Z);try{for(Z.s();!(L=Z.n()).done;){var V=L.value;if(V instanceof E.CellError)return V;if(Object(I.isExtendedNumber)(V))U.push(Object(I.getRawValue)(V));else if(V!==I.EmptyValue)return new E.CellError(E.ErrorType.VALUE,H.ErrorMessage.NumberExpected)}}catch(Y){Z.e(Y)}finally{Z.f()}return U}; 508this.manyToCoercedNumbersDropNulls=function(Z){var L,U=[];Z=D(Z);try{for(Z.s();!(L=Z.n()).done;){var V=L.value;if(V instanceof E.CellError)return V;if(V!==I.EmptyValue){var Y=T.coerceScalarToNumberOrError(V);Object(I.isExtendedNumber)(Y)&&U.push(Object(I.getRawValue)(Y))}}}catch(aa){Z.e(aa)}finally{Z.f()}return U};this.collator=Object(G.collatorFromConfig)(N);this.actualEps=N.smartRounding?N.precisionEpsilon:0}var O;return O=[{key:"eqMatcherFunction",value:function(N){var Q=this,M=this.buildRegex(N); 509return function(T){return"string"==typeof T&&M.test(Q.normalizeString(T))}}},{key:"neqMatcherFunction",value:function(N){var Q=this,M=this.buildRegex(N);return function(T){return!("string"==typeof T&&M.test(Q.normalizeString(T)))}}},{key:"searchString",value:function(N,Q){var M;N=this.buildRegex(N,!1).exec(Q);return null!==(M=null==N?void 0:N.index)&&void 0!==M?M:-1}},{key:"requiresRegex",value:function(N){if(!this.config.useRegularExpressions&&!this.config.useWildcards)return!this.config.matchWholeCell; 510for(var Q=0;Q<N.length;Q++){var M=N.charAt(Q);if(t(M)||this.config.useRegularExpressions&&S.includes(M))return!0}return!1}},{key:"floatCmp",value:function(N,Q){N=Object(I.getRawValue)(N);Q=Object(I.getRawValue)(Q);var M=1+this.actualEps;return 0<=Q&&N*M>=Q&&N<=Q*M||0>=Q&&N*M<=Q&&N>=Q*M?0:N>Q?1:-1}},{key:"coerceScalarToNumberOrError",value:function(N){var Q;return N instanceof E.CellError?N:null!==(Q=this.coerceToMaybeNumber(N))&&void 0!==Q?Q:new E.CellError(E.ErrorType.VALUE,H.ErrorMessage.NumberCoercion)}}, 511{key:"coerceToMaybeNumber",value:function(N){var Q;return null!==(Q=this.coerceNonDateScalarToMaybeNumber(N))&&void 0!==Q?Q:"string"==typeof N?this.dateTimeHelper.dateStringToDateNumber(N):void 0}},{key:"coerceNonDateScalarToMaybeNumber",value:function(N){return N===I.EmptyValue?0:"string"==typeof N?""===N?0:this.numberLiteralsHelper.numericStringToMaybeNumber(N.trim()):Object(I.isExtendedNumber)(N)?N:"boolean"==typeof N?Number(N):void 0}},{key:"coerceComplexExactRanges",value:function(N){var Q,M= 512[];N=D(N);try{for(N.s();!(Q=N.n()).done;){var T=Q.value;if(T instanceof K.SimpleRangeValue)M.push(T);else if(T!==I.EmptyValue){var Z=this.coerceScalarToComplex(T);if(Z instanceof E.CellError)return Z;M.push(Z)}}}catch(L){N.e(L)}finally{N.f()}Q=[];for(T=0;T<M.length;T++)if(Z=M[T],Z instanceof K.SimpleRangeValue){Z=this.manyToExactComplex(Z.valuesFromTopLeftCorner());if(Z instanceof E.CellError)return Z;Q.push.apply(Q,B(Z))}else Q.push(Z);return Q}},{key:"coerceScalarToComplex",value:function(N){return N instanceof 513E.CellError?N:N===I.EmptyValue?[0,0]:Object(I.isExtendedNumber)(N)?[Object(I.getRawValue)(N),0]:"string"==typeof N?this.coerceStringToComplex(N):new E.CellError(E.ErrorType.NUM,H.ErrorMessage.ComplexNumberExpected)}},{key:"ExtendedNumberFactory",value:function(N,Q){var M=Q.format;switch(Q.type){case I.NumberType.NUMBER_RAW:return N;case I.NumberType.NUMBER_CURRENCY:return new I.CurrencyNumber(N,null!=M?M:this.config.currencySymbol[0]);case I.NumberType.NUMBER_DATE:return new I.DateNumber(N,M);case I.NumberType.NUMBER_DATETIME:return new I.DateTimeNumber(N, 514M);case I.NumberType.NUMBER_TIME:return new I.TimeNumber(N,M);case I.NumberType.NUMBER_PERCENT:return new I.PercentNumber(N,M)}}},{key:"buildRegex",value:function(N){var Q,M=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];N=this.normalizeString(N);var T=this.config.useWildcards,Z=this.config.useRegularExpressions;
514if(Z)try{RegExp(N)}catch(Y){T=Z=!1}if(Z){T=N;Z=this.config.caseSensitive;for(var L="",U=0;U<T.length;U++){var V=T.charAt(U);t(V)||S.includes(V)?L+=V:L+=Z?V:V.toLowerCase()}T=L}else if(T){T= 515N;Z=this.config.caseSensitive;L="";for(U=0;U<T.length;U++)V=T.charAt(U),"~"===V?U==T.length-1?L+="~":(V=T.charAt(U+1),t(V)||S.includes(V)?(L+="\\"+V,U++):(L+=V,U++)):t(V)?L+="."+V:S.includes(V)?L+="\\"+V:L+=Z?V:V.toLowerCase();T=L}else{T=N;Z=this.config.caseSensitive;L="";for(U=0;U<T.length;U++)V=T.charAt(U),t(V)||S.includes(V)?L+="\\"+V:L+=Z?V:V.toLowerCase();T=L}return Q=T,this.config.matchWholeCell&&M?RegExp("^("+Q+")$"):RegExp(Q)}},{key:"normalizeString",value:function(N){return this.config.caseSensitive|| 516(N=N.toLowerCase()),this.config.accentSensitive||(N=y(N,"nfd").replace(/[\u0300-\u036f]/g,"")),N}},{key:"compare",value:function(N,Q){if("string"==typeof N||"string"==typeof Q){var M="string"==typeof N?this.dateTimeHelper.dateStringToDateNumber(N):N,T="string"==typeof Q?this.dateTimeHelper.dateStringToDateNumber(Q):Q;if(Object(I.isExtendedNumber)(M)&&Object(I.isExtendedNumber)(T))return this.floatCmp(M,T)}return N===I.EmptyValue?N=h(Q):Q===I.EmptyValue&&(Q=h(N)),"string"==typeof N&&"string"==typeof Q? 517this.stringCmp(N,Q):"boolean"==typeof N&&"boolean"==typeof Q?l(Number(N),Number(Q)):Object(I.isExtendedNumber)(N)&&Object(I.isExtendedNumber)(Q)?this.floatCmp(N,Q):N===I.EmptyValue&&Q===I.EmptyValue?0:l(Object(E.CellValueTypeOrd)(Object(E.getCellValueType)(N)),Object(E.CellValueTypeOrd)(Object(E.getCellValueType)(Q)))}},{key:"stringCmp",value:function(N,Q){return this.collator.compare(N,Q)}},{key:"manyToNumbers",value:function(N,Q){var M,T=[];N=D(N);try{for(N.s();!(M=N.n()).done;){var Z=M.value;if(Z instanceof 518K.SimpleRangeValue)T.push(Z);else{var L=Object(I.getRawValue)(this.coerceScalarToNumberOrError(Z));if(L instanceof E.CellError)return L;T.push(L)}}}catch(U){N.e(U)}finally{N.f()}M=[];for(Z=0;Z<T.length;Z++)if(L=T[Z],L instanceof K.SimpleRangeValue){L=Q(L.valuesFromTopLeftCorner());if(L instanceof E.CellError)return L;M.push.apply(M,B(L))}else M.push(L);return M}},{key:"coerceStringToComplex",value:function(N){var Q,M;N=J.exec(N);return null===N?new E.CellError(E.ErrorType.NUM,H.ErrorMessage.ComplexNumberExpected): 519(Q=void 0!==N[6]?"-"===N[1]?[0,-1]:[0,1]:this.parseComplexToken(N[1]+N[3],N[5]))instanceof E.CellError||void 0===N[8]?Q:(M=void 0!==N[14]?"-"===N[9]?[0,-1]:[0,1]:this.parseComplexToken(N[9]+N[11],N[13]))instanceof E.CellError?M:""!==N[5]||""===N[13]?new E.CellError(E.ErrorType.NUM,H.ErrorMessage.ComplexNumberExpected):"+"===N[8]?[Q[0]+M[0],Q[1]+M[1]]:[Q[0]-M[0],Q[1]-M[1]]}},{key:"parseComplexToken",value:function(N,Q){N=Object(I.getRawValue)(this.coerceNonDateScalarToMaybeNumber(N));return void 0=== 520N?new E.CellError(E.ErrorType.NUM,H.ErrorMessage.ComplexNumberExpected):""===Q?[N,0]:[0,N]}}],q(R.prototype,O),Object.defineProperty(R,"prototype",{writable:!1}),R}(),S="{}[]()\x3c\x3e\x3d.+-,\\$^!".split("")},function(g,b,a){g=a(72);var F=a(61),B=a(212),D=a(175),A=a(99),x=a(213),q=a(65),p=a(337),e=Object.getOwnPropertyDescriptor;b.f=g?e:function(c,d){if(c=A(c),d=x(d),p)try{return e(c,d)}catch(h){}if(q(c,d))return D(!F(B.f,c,d),c[d])}},function(g,b,a){var F=a(56),B=a(155),D=TypeError;g.exports=function(A){if(F(A))return A; 521throw D(B(A)+" is not a function");}},function(g,b,a){b=a(339);var F=a(45),B=a(35),D=a(63),A=a(137),x=a(65),q=a(252),p=a(217);a=a(179);var e=F.TypeError;F=F.WeakMap;if(b||q.state){var c=q.state||(q.state=new F),d=B(c.get),h=B(c.has),k=B(c.set);var f=function(m,t){if(h(c,m))throw new e("Object already initialized");return t.facade=m,k(c,m,t),t};var n=function(m){return d(c,m)||{}};var l=function(m){return h(c,m)}}else{var r=p("state");a[r]=!0;f=function(m,t){if(x(m,r))throw new e("Object already initialized"); 522return t.facade=m,A(m,r,t),t};n=function(m){return x(m,r)?m[r]:{}};l=function(m){return x(m,r)}}g.exports={set:f,get:n,has:l,enforce:function(m){return l(m)?n(m):f(m,{})},getterFor:function(m){return function(t){var u;if(!D(t)||(u=n(t)).type!==m)throw e("Incompatible receiver, "+m+" required");return u}}}},function(g,b,a){function F(e){return Object(q.contains)(p,e.name)}function B(e,c,d){this.name="MismatchedTokenException";this.message=e;this.token=c;this.previousToken=d;this.resyncedTokens=[]} 523function D(e,c,d){this.name="NoViableAltException";this.message=e;this.token=c;this.previousToken=d;this.resyncedTokens=[]}function A(e,c){this.name="NotAllInputParsedException";this.message=e;this.token=c;this.resyncedTokens=[]}function x(e,c,d){this.name="EarlyExitException";this.message=e;this.token=c;this.previousToken=d;this.resyncedTokens=[]}a.r(b);a.d(b,"isRecognitionException",function(){return F});a.d(b,"MismatchedTokenException",function(){return B});a.d(b,"NoViableAltException",function(){return D}); 524a.d(b,"NotAllInputParsedException",function(){return A});a.d(b,"EarlyExitException",function(){return x});var q=a(48),p=["MismatchedTokenException","NoViableAltException","EarlyExitException","NotAllInputParsedException"];Object.freeze(p);B.prototype=Error.prototype;D.prototype=Error.prototype;A.prototype=Error.prototype;x.prototype=Error.prototype},function(g,b,a){g=a(28);var F=a(369).trim;g({target:"String",proto:!0,forced:a(719)("trim")},{trim:function(){return F(this)}})},function(g,b,a){g=a(1);
525b.__esModule=!0;b.collection=void 0;b.default=function(){var D=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"common";B.has(D)||B.set(D,new Map);var A=B.get(D);return{register:function(x,q){A.set(x,q)},getItem:function(x){return A.get(x)},hasItem:function(x){return A.has(x)},getNames:function(){return(0,F.default)(A.keys())},getValues:function(){return(0,F.default)(A.values())}}};var F=g(a(43));a(3);a(32);a(0);a(2);a(4);var B=new Map;b.collection=B},function(g,b,a){b.__esModule=!0;b.ACTIVE_HEADER_TYPE= 526"active-header";b.AREA_TYPE="area";b.CELL_TYPE="cell";b.FILL_TYPE="fill";b.HEADER_TYPE="header";b.CUSTOM_SELECTION_TYPE="custom-selection"},function(g,b,a){b=a(100);g.exports=b("navigator","userAgent")||""},function(g,b,a){var F;g=a(28);var B=a(35);b=a(114).f;var D=a(138),A=a(73),x=a(260),q=a(94),p=a(262);a=a(112);var e=B("".startsWith),c=B("".slice),d=Math.min;B=p("startsWith");g({target:"String",proto:!0,forced:!(!a&&!B&&(F=b(String.prototype,"startsWith"),F&&!F.writable))&&!B},{startsWith:function(h){var k= 527A(q(this));x(h);var f=D(d(1<arguments.length?arguments[1]:void 0,k.length)),n=A(h);return e?e(k,n,f):c(k,f,f+n.length)===n}})},function(g,b,a){function F(v){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(C){return typeof C}:function(C){return C&&"function"==typeof Symbol&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(v)}function B(v,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function");v.prototype= 528Object.create(C&&C.prototype,{constructor:{value:v,writable:!0,configurable:!0}});Object.defineProperty(v,"prototype",{writable:!1});C&&D(v,C)}function D(v,C){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,z){return y.__proto__=z,y})(v,C)}function A(v){var C=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})), 529!0}catch(y){return!1}}();return function(){var y=x(v);if(C){var z=x(this).constructor;y=Reflect.construct(y,arguments,z)}else y=y.apply(this,arguments);if(!y||"object"!==F(y)&&"function"!=typeof y){if(void 0!==y)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");y=this}return y}}function x(v){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(C){return C.__proto__|| 530Object.getPrototypeOf(C)})(v)}function q(v,C){if(!(v=function(y){if(Array.isArray(y))return y}(v)||function(y,z){var E=null==y?null:"undefined"!=typeof Symbol&&y[Symbol.iterator]||y["@@iterator"];if(null!=E){var H,G=[],I=!0,K=!1;try{for(E=E.call(y);!(I=(H=E.next()).done)&&(G.push(H.value),!z||G.length!==z);I=!0);}catch(P){K=!0;var J=P}finally{try{I||null==E.return||E.return()}finally{if(K)throw J;}}return G}}(v,C)||function(y,z){if(y){if("string"==typeof y)return p(y,z);var E=Object.prototype.toString.call(y).slice(8, 531-1);"Object"===E&&y.constructor&&(E=y.constructor.name);if("Map"===E||"Set"===E)return Array.from(y);if("Arguments"===E||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return p(y,z)}}(v,C)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return v}function p(v,C){(null==C||C>v.length)&&(C=v.length);for(var y=0,z=Array(C);y<C;y++)z[y]=v[y];return z}function e(v,C){if(!(v instanceof C))throw new TypeError("Cannot call a class as a function"); 532}function c(v,C){for(var y=0;y<C.length;y++){var z=C[y];z.enumerable=z.enumerable||!1;z.configurable=!0;"value"in z&&(z.writable=!0);Object.defineProperty(v,z.key,z)}}function d(v,C,y){return C&&c(v.prototype,C),y&&c(v,y),Object.defineProperty(v,"prototype",{writable:!1}),v}a.r(b);a.d(b,"FormulaVertex",function(){return t});a.d(b,"ArrayVertex",function(){return u});a.d(b,"FormulaCellVertex",function(){return w});a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(13);a(26);a(22);a(12);a(25);a(7);var h=a(91),k= 533a(132),f=a(384),n=a(24),l=a(46),r=a(51),m=a(197),t=function(){function v(C,y,z){e(this,v);this.formula=C;this.cellAddress=y;this.version=z}return d(v,[{key:"width",get:function(){return 1}},{key:"height",get:function(){return 1}},{key:"getFormula",value:function(C){return this.ensureRecentData(C),this.formula}},{key:"ensureRecentData",value:function(C){if(this.version!=C.version()){C=q(C.applyTransformations(this.formula,this.cellAddress,this.version),3);var y=C[1],z=C[2];this.formula=C[0];this.cellAddress= 534y;this.version=z}}},{key:"getAddress",value:function(C){return this.ensureRecentData(C),this.cellAddress}}],[{key:"fromAst",value:function(C,y,z,E){return z.isScalar()?new w(C,y,E):new u(C,y,z,E)}}]),v}(),u=function(v){function C(z,E,H){var G,I=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;return e(this,C),G=y.call(this,z,E,I),H.isRef?G.array=new f.ErroredArray(new n.CellError(n.ErrorType.REF,l.ErrorMessage.NoSpaceForArrayResult),k.ArraySize.error()):G.array=new f.NotComputedArray(H),G} 535B(C,v);var y=A(C);return d(C,[{key:"width",get:function(){return this.array.width()}},{key:"height",get:function(){return this.array.height()}},{key:"sheet",get:function(){return this.cellAddress.sheet}},{key:"leftCorner",get:function(){return this.cellAddress}},{key:"setCellValue",value:function(z){if(z instanceof n.CellError)return this.setErrorValue(z),z;var E=f.ArrayValue.fromInterpreterValue(z);return E.resize(this.array.size),this.array=E,z}},{key:"getCellValue",value:function(){if(this.array instanceof 536f.NotComputedArray)throw Error("Array not computed yet.");return this.array.simpleRangeValue()}},{key:"valueOrUndef",value:function(){if(!(this.array instanceof f.NotComputedArray))return this.array.simpleRangeValue()}},{key:"getArrayCellValue",value:function(z){var E=z.col-this.cellAddress.col;z=z.row-this.cellAddress.row;try{return this.array.get(E,z)}catch(H){return new n.CellError(n.ErrorType.REF)}}},{key:"getArrayCellRawValue",value:function(z){z=this.getArrayCellValue(z);return z instanceof 537n.CellError||z===r.EmptyValue?void 0:Object(r.getRawValue)(z)}},{key:"setArrayCellValue",value:function(z,E){var H=z.col-this.cellAddress.col;z=z.row-this.cellAddress.row;this.array instanceof f.ArrayValue&&this.array.set(H,z,E)}},{key:"setNoSpace",value:function(){return this.array=new f.ErroredArray(new n.CellError(n.ErrorType.SPILL,l.ErrorMessage.NoSpaceForArrayResult),k.ArraySize.error()),this.getCellValue()}},{key:"getRange",value:function(){return h.AbsoluteCellRange.spanFrom(this.cellAddress, 538this.width,this.height)}},{key:"getRangeOrUndef",value:function(){return h.AbsoluteCellRange.spanFromOrUndef(this.cellAddress,this.width,this.height)}},{key:"setAddress",value:function(z){this.cellAddress=z}},{key:"setFormula",value:function(z){this.formula=z}},{key:"spansThroughSheetRows",value:function(z,E){var H=2<arguments.length&&void 0!==arguments[2]?arguments[2]:E;return this.cellAddress.sheet===z&&this.cellAddress.row<=H&&E<this.cellAddress.row+this.height}},{key:"spansThroughSheetColumn", 539value:function(z,E){var H=2<arguments.length&&void 0!==arguments[2]?arguments[2]:E;return this.cellAddress.sheet===z&&this.cellAddress.col<=H&&E<this.cellAddress.col+this.width}},{key:"isComputed",value:function(){return!(this.array instanceof f.NotComputedArray)}},{key:"columnsFromArray",value:function(){return m.ColumnsSpan.fromNumberOfColumns(this.cellAddress.sheet,this.cellAddress.col,this.width)}},{key:"rowsFromArray",value:function(){return m.RowsSpan.fromNumberOfRows(this.cellAddress.sheet, 540this.cellAddress.row,this.height)}},{key:"ensureRecentData",value:function(z){}},{key:"isLeftCorner",value:function(z){return Object(n.equalSimpleCellAddress)(this.cellAddress,z)}},{key:"setErrorValue",value:function(z){this.array=new f.ErroredArray(z,this.array.size)}}]),C}(t),w=function(v){function C(z,E,H){return e(this,C),y.call(this,z,E,H)}B(C,v);var y=A(C);return d(C,[{key:"valueOrUndef",value:function(){return this.cachedCellValue}},{key:"setCellValue",value:function(z){return this.cachedCellValue= 541z,this.cachedCellValue}},{key:"getCellValue",value:function(){if(void 0!==this.cachedCellValue)return this.cachedCellValue;throw Error("Value of the formula cell is not computed.");}},{key:"isComputed",value:function(){return void 0!==this.cachedCellValue}}]),C}(t)},function(g,b,a){b.__esModule=!0;b.KEY_CODES=void 0;b.isCtrlKey=function(x){var q=[];(0,B.isMacOS)()?q.push(D.COMMAND_LEFT,D.COMMAND_RIGHT,D.COMMAND_FIREFOX):q.push(D.CONTROL);return q.includes(x)};b.isCtrlMetaKey=function(x){return[D.CONTROL, 542D.COMMAND_LEFT,D.COMMAND_RIGHT,D.COMMAND_FIREFOX].includes(x)};b.isFunctionKey=function(x){return A.includes(x)};b.isKey=function(x,q){q=q.split("|");var p=!1;return(0,F.arrayEach)(q,function(e){if(x===D[e])return p=!0,!1}),p};b.isPrintableChar=function(x){return 32===x||48<=x&&57>=x||96<=x&&111>=x||186<=x&&192>=x||219<=x&&222>=x||226<=x||65<=x&&90>=x};a(42);a(49);a(12);a(64);var F=a(20),B=a(107),D={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,B.isFirefox)()?182:174, 543AUDIO_MUTE:(0,B.isFirefox)()?181:173,AUDIO_UP:(0,B.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145, 544SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90};b.KEY_CODES=D;var A=[D.ALT,D.ARROW_DOWN,D.ARROW_LEFT,D.ARROW_RIGHT,D.ARROW_UP,D.AUDIO_DOWN,D.AUDIO_MUTE,D.AUDIO_UP,D.BACKSPACE,D.CAPS_LOCK,D.DELETE,D.END,D.ENTER,D.ESCAPE,D.F1,D.F2,D.F3,D.F4,D.F5,D.F6,D.F7,D.F8,D.F9,D.F10,D.F11,D.F12,D.F13,D.F14,D.F15,D.F16,D.F17,D.F18,D.F19,D.HOME,D.INSERT,D.MEDIA_NEXT,D.MEDIA_PLAY_PAUSE,D.MEDIA_PREV,D.MEDIA_STOP,D.NULL,D.NUM_LOCK,D.PAGE_DOWN,D.PAGE_UP,D.PAUSE,D.SCROLL_LOCK,D.SHIFT, 545D.TAB]},function(g,b,a){var F=a(842);g.exports=function(B,D){if(null==B)return{};var A,x=F(B,D);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(B);for(A=0;A<q.length;A++){var p=q[A];0<=D.indexOf(p)||Object.prototype.propertyIsEnumerable.call(B,p)&&(x[p]=B[p])}}return x};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){function F(w){if("function"!=typeof WeakMap)return null;var v=new WeakMap,C=new WeakMap;return(F=function(y){return y?C:v})(w)}function B(w,v){if(!v&& 546w&&w.__esModule)return w;if(null===w||"object"!==D(w)&&"function"!=typeof w)return{default:w};if((v=F(v))&&v.has(w))return v.get(w);var C={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor,z;for(z in w)if("default"!==z&&Object.prototype.hasOwnProperty.call(w,z)){var E=y?Object.getOwnPropertyDescriptor(w,z):null;E&&(E.get||E.set)?Object.defineProperty(C,z,E):C[z]=w[z]}
546return C.default=w,v&&v.set(w,C),C}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.UNDO=b.SEPARATOR=b.ROW_BELOW= 547b.ROW_ABOVE=b.REMOVE_ROW=b.REMOVE_COLUMN=b.REDO=b.READ_ONLY=b.NO_ITEMS=b.ITEMS=b.COLUMN_RIGHT=b.COLUMN_LEFT=b.CLEAR_COLUMN=b.ALIGNMENT=void 0;b.addItem=function(w,v){-1===t.indexOf(w)&&(u[w]=v)};b.predefinedItems=function(){var w={};return(0,A.objectEach)(u,function(v,C){w[C]=v()}),w};a(33);g=g(a(41));var A=a(17),x=B(a(955));b.ALIGNMENT=x.KEY;var q=B(a(956));b.CLEAR_COLUMN=q.KEY;var p=B(a(957));b.COLUMN_LEFT=p.KEY;var e=B(a(958));b.COLUMN_RIGHT=e.KEY;var c=B(a(959));b.READ_ONLY=c.KEY;var d=B(a(960)); 548b.REDO=d.KEY;var h=B(a(961));b.REMOVE_COLUMN=h.KEY;var k=B(a(962));b.REMOVE_ROW=k.KEY;var f=B(a(963));b.ROW_ABOVE=f.KEY;var n=B(a(964));b.ROW_BELOW=n.KEY;var l=B(a(327));b.SEPARATOR=l.KEY;var r=B(a(965));b.NO_ITEMS=r.KEY;var m;a=B(a(966));b.UNDO=a.KEY;var t=[f.KEY,n.KEY,p.KEY,e.KEY,q.KEY,k.KEY,h.KEY,a.KEY,d.KEY,c.KEY,x.KEY,l.KEY,r.KEY];b.ITEMS=t;var u=(m={},(0,g.default)(m,l.KEY,l.default),(0,g.default)(m,r.KEY,r.default),(0,g.default)(m,f.KEY,f.default),(0,g.default)(m,n.KEY,n.default),(0,g.default)(m, 549p.KEY,p.default),(0,g.default)(m,e.KEY,e.default),(0,g.default)(m,q.KEY,q.default),(0,g.default)(m,k.KEY,k.default),(0,g.default)(m,h.KEY,h.default),(0,g.default)(m,a.KEY,a.default),(0,g.default)(m,d.KEY,d.default),(0,g.default)(m,c.KEY,c.default),(0,g.default)(m,x.KEY,x.default),m)},function(g,b,a){b=a(35);var F=b({}.toString),B=b("".slice);g.exports=function(D){return B(F(D),8,-1)}},function(g,b,a){b=a(35);g.exports=b({}.isPrototypeOf)},function(g,b,a){var F=a(343);g.exports=function(B){B=+B;return B!= 550B||0===B?0:F(B)}},function(g,b,a){var F=a(80).f,B=a(65),D=a(59)("toStringTag");g.exports=function(A,x,q){A&&!q&&(A=A.prototype);A&&!B(A,D)&&F(A,D,{configurable:!0,value:x})}},function(g,b,a){a.r(b);var F=a(360);a.d(b,"DependencyGraph",function(){return F.DependencyGraph});var B=a(288);a.d(b,"AddressMapping",function(){return B.AddressMapping});var D=a(291);a.d(b,"Graph",function(){return D.Graph});var A=a(292);a.d(b,"RangeMapping",function(){return A.RangeMapping});var x=a(293);a.d(b,"SheetMapping", 551function(){return x.SheetMapping});var q=a(289);a.d(b,"ArrayMapping",function(){return q.ArrayMapping});var p=a(123);a.d(b,"FormulaCellVertex",function(){return p.FormulaCellVertex});var e=a(387);a.d(b,"EmptyCellVertex",function(){return e.EmptyCellVertex});var c=a(388);a.d(b,"ValueCellVertex",function(){return c.ValueCellVertex});var d=a(389);a.d(b,"ParsingErrorVertex",function(){return d.ParsingErrorVertex});var h=a(290);a.d(b,"RangeVertex",function(){return h.RangeVertex});var k=a(295);a.d(b,"SparseStrategy", 552function(){return k.SparseStrategy});var f=a(296);a.d(b,"DenseStrategy",function(){return f.DenseStrategy});a.d(b,"ArrayVertex",function(){return p.ArrayVertex})},function(g,b,a){function F(f){var n=Array.isArray(f)?D(f):void 0;n||(n="undefined"!=typeof Symbol&&null!=f[Symbol.iterator]||null!=f["@@iterator"]?Array.from(f):void 0);if(!(f=n||B(f)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 553return f}function B(f,n){if(f){if("string"==typeof f)return D(f,n);var l=Object.prototype.toString.call(f).slice(8,-1);return"Object"===l&&f.constructor&&(l=f.constructor.name),"Map"===l||"Set"===l?Array.from(f):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?D(f,n):void 0}}function D(f,n){(null==n||n>f.length)&&(n=f.length);for(var l=0,r=Array(n);l<n;l++)r[l]=f[l];return r}function A(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function");}function x(f, 554n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}function q(f,n,l){return n&&x(f.prototype,n),l&&x(f,l),Object.defineProperty(f,"prototype",{writable:!1}),f}a.r(b);a.d(b,"ArraySize",function(){return h});a.d(b,"ArraySizePredictor",function(){return k});a(105);a(0);a(36);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var p=a(91),e=a(198),c=a(37),d=a(74),h=function(){function f(n,l){var r= 5552<arguments.length&&void 0!==arguments[2]&&arguments[2];if(A(this,f),this.width=n,this.height=l,this.isRef=r,0>=n||0>=l)throw Error("Incorrect array size");}return q(f,[{key:"isScalar",value:function(){return 1>=this.width&&1>=this.height||this.isRef}}],[{key:"fromArray",value:function(n){return new f(0<n.length?n[0].length:0,n.length)}},{key:"error",value:function(){return new f(1,1,!0)}},{key:"scalar",value:function(){return new f(1,1,!1)}}]),f}(),k=function(){function f(n,l){A(this,f);this.config= 556n;this.functionRegistry=l}return q(f,[{key:"checkArraySize",value:function(n,l){return this.checkArraySizeForAst(n,{formulaAddress:l,arraysFlag:this.config.useArrayArithmetic})}},{key:"checkArraySizeForAst",value:function(n,l){var r=this;switch(n.type){case d.AstNodeType.FUNCTION_CALL:return this.checkArraySizeForFunction(n,l);case d.AstNodeType.COLUMN_RANGE:case d.AstNodeType.ROW_RANGE:case d.AstNodeType.CELL_RANGE:var m=p.AbsoluteCellRange.fromAstOrUndef(n,l.formulaAddress);return void 0===m?h.error(): 557new h(m.width(),m.height(),!0);case d.AstNodeType.ARRAY:var t,u=[];m=[];n=function(y,z){var E="undefined"!=typeof Symbol&&y[Symbol.iterator]||y["@@iterator"];if(!E){if(Array.isArray(y)||(E=B(y))||z&&y&&"number"==typeof y.length){E&&(y=E);var H=0;z=function(){};return{s:z,n:function(){return H>=y.length?{done:!0}:{done:!1,value:y[H++]}},e:function(J){throw J;},f:z}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 558}var G,I=!0,K=!1;return{s:function(){E=E.call(y)},n:function(){var J=E.next();return I=J.done,J},e:function(J){K=!0;G=J},f:function(){try{I||null==E.return||E.return()}finally{if(K)throw G;}}}}(n.args);try{for(n.s();!(t=n.n()).done;){var w=t.value.map(function(y){return r.checkArraySizeForAst(y,l)}),v=Math.min.apply(Math,F(w.map(function(y){return y.height}))),C=w.reduce(function(y,z){return y+z.width},0);u.push(v);m.push(C)}}catch(y){n.e(y)}finally{n.f()}n=u.reduce(function(y,z){return y+z},0);m= 559Math.min.apply(Math,m);return new h(m,n);
559case d.AstNodeType.STRING:case d.AstNodeType.NUMBER:return h.scalar();case d.AstNodeType.CELL_REFERENCE:return new h(1,1,!0);case d.AstNodeType.DIV_OP:case d.AstNodeType.CONCATENATE_OP:case d.AstNodeType.EQUALS_OP:case d.AstNodeType.GREATER_THAN_OP:case d.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case d.AstNodeType.LESS_THAN_OP:case d.AstNodeType.LESS_THAN_OR_EQUAL_OP:case d.AstNodeType.MINUS_OP:case d.AstNodeType.NOT_EQUAL_OP:case d.AstNodeType.PLUS_OP:case d.AstNodeType.POWER_OP:case d.AstNodeType.TIMES_OP:return m= 560this.checkArraySizeForAst(n.left,l),n=this.checkArraySizeForAst(n.right,l),!l.arraysFlag&&(1<m.height||1<m.width||1<n.height||1<n.width)?h.error():new h(Math.max(m.width,n.width),Math.max(m.height,n.height));case d.AstNodeType.MINUS_UNARY_OP:case d.AstNodeType.PLUS_UNARY_OP:case d.AstNodeType.PERCENT_OP:return m=this.checkArraySizeForAst(n.value,l),!l.arraysFlag&&(1<m.height||1<m.width)?h.error():new h(m.width,m.height);case d.AstNodeType.PARENTHESIS:return this.checkArraySizeForAst(n.expression, 561l);default:return h.error()}}},{key:"checkArraySizeForFunction",value:function(n,l){var r=this,m=this.functionRegistry.getMetadata(n.procedureName),t=this.functionRegistry.getArraySizeFunction(n.procedureName);if(void 0!==t)return t(n,l);n=n.args.map(function(C){var y;return r.checkArraySizeForAst(C,new e.InterpreterState(l.formulaAddress,l.arraysFlag||null!==(y=null==m?void 0:m.arrayFunction)&&void 0!==y&&y))});if(void 0===m||m.expandRanges||!l.arraysFlag||m.vectorizationForbidden||void 0===m.parameters)return new h(1, 5621);t=F(m.parameters);if(void 0===m.repeatLastArgs&&t.length<n.length||void 0!==m.repeatLastArgs&&t.length<n.length&&0!=(n.length-t.length)%m.repeatLastArgs)return h.error();for(;t.length<n.length;)t.push.apply(t,F(t.slice(t.length-m.repeatLastArgs)));for(var u=1,w=1,v=0;v<n.length;v++)t[v].argumentType!==c.ArgumentTypes.RANGE&&t[v].argumentType!==c.ArgumentTypes.ANY&&(w=Math.max(w,n[v].height),u=Math.max(u,n[v].width));return new h(u,w)}}]),f}()},function(g,b,a){a.r(b);var F=a(383);a.d(b,"EmptyStatistics", 563function(){return F.EmptyStatistics});var B=a(286);a.d(b,"Statistics",function(){return B.Statistics});var D=a(287);a.d(b,"StatType",function(){return D.StatType})},function(g,b,a){g=a(1);b.__esModule=!0;b.cancelAnimationFrame=function(e){p.call(window,e)};b.getComparisonFunction=function(e){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return D?D:D="object"===("undefined"==typeof Intl?"undefined":(0,F.default)(Intl))?(new Intl.Collator(e,c)).compare:"function"==typeof String.prototype.localeCompare? 564function(d,h){return"".concat(d).localeCompare(h)}:function(d,h){return d===h?0:d>h?-1:1}};b.hasCaptionProblem=function(){if(void 0===B){var e=document.createElement("TABLE");e.style.borderSpacing="0";e.style.borderWidth="0";e.style.padding="0";var c=document.createElement("TBODY");e.appendChild(c);c.appendChild(document.createElement("TR"));c.firstChild.appendChild(document.createElement("TD"));c.firstChild.firstChild.innerHTML="\x3ctr\x3e\x3ctd\x3et\x3cbr\x3et\x3c/td\x3e\x3c/tr\x3e";var d=document.createElement("CAPTION"); 565d.innerHTML="c\x3cbr\x3ec\x3cbr\x3ec\x3cbr\x3ec";d.style.padding="0";d.style.margin="0";e.insertBefore(d,c);document.body.appendChild(e);B=e.offsetHeight<2*e.lastChild.offsetHeight;document.body.removeChild(e)}return B};b.isClassListSupported=function(){return!!document.documentElement.classList};b.isGetComputedStyleSupported=function(){return!!window.getComputedStyle};b.isPassiveEventSupported=function(){if(void 0!==A)return A;try{var e={get passive(){A=!0}};window.addEventListener("test",e,e);window.removeEventListener("test", 566e,e)}catch(c){A=!1}return A};b.isTextContentSupported=function(){return!!document.createTextNode("test").textContent};b.isTouchSupported=function(){return"ontouchstart"in window};b.requestAnimationFrame=function(e){return q.call(window,e)};var F=g(a(21));a(77);var B,D,A,x=0;b=["ms","moz","webkit","o"];var q=window.requestAnimationFrame,p=window.cancelAnimationFrame;for(a=0;a<b.length&&!q;++a)q=window["".concat(b[a],"RequestAnimationFrame")],p=window["".concat(b[a],"CancelAnimationFrame")]||window["".concat(b[a], 567"CancelRequestAnimationFrame")];q||(q=function(e){var c=(new Date).getTime(),d=Math.max(0,16-(c-x)),h=window.setTimeout(function(){e(c+d)},d);return x=c+d,h});p||(p=function(e){clearTimeout(e)})},function(g,b,a){a(75);b.__esModule=!0;g=a(636);b.registerRootComparator=g.registerRootComparator;b.getRootComparator=g.getRootComparator;b.getCompareFunctionFactory=g.getCompareFunctionFactory;a=a(942);b.FIRST_AFTER_SECOND=a.FIRST_AFTER_SECOND;b.FIRST_BEFORE_SECOND=a.FIRST_BEFORE_SECOND;
567b.DO_NOT_SWAP=a.DO_NOT_SWAP; 568b.sort=a.sort},function(g,b,a){var F=a(115);g.exports=function(B,D){B=B[D];return null==B?void 0:F(B)}},function(g,b,a){b=a(72);var F=a(80),B=a(175);g.exports=b?function(D,A,x){return F.f(D,A,B(1,x))}:function(D,A,x){return D[A]=x,D}},function(g,b,a){var F=a(129),B=Math.min;g.exports=function(D){return 0<D?B(F(D),9007199254740991):0}},function(g,b,a){b=a(174);a=Function.prototype;var F=a.apply,B=a.call;g.exports="object"==typeof Reflect&&Reflect.apply||(b?B.bind(F):function(){return B.apply(F,arguments)})}, 569function(g,b,a){var F,B=a(66),D=a(346),A=a(255);b=a(179);var x=a(347),q=a(215),p=a(217)("IE_PROTO"),e=function(){},c=function(h){h.write("\x3cscript\x3e\x3c/script\x3e");h.close();return h.parentWindow.Object},d=function(){try{F=new ActiveXObject("htmlfile")}catch(f){}var h,k;d="undefined"!=typeof document?document.domain&&F?c(F):((k=q("iframe")).style.display="none",x.appendChild(k),k.src="javascript:",(h=k.contentWindow.document).open(),h.write("\x3cscript\x3edocument.F\x3dObject\x3c/script\x3e"), 570h.close(),h.F):c(F);for(h=A.length;h--;)delete d.prototype[A[h]];return d()};b[p]=!0;g.exports=Object.create||function(h,k){var f;return null!==h?(e.prototype=B(h),f=new e,e.prototype=null,f[p]=h):f=d(),void 0===k?f:D.f(f,k)}},function(g,b,a){var F=a(160);b=a(35);var B=a(176),D=a(95),A=a(103),x=a(269),q=b([].push);a=function(p){var e=1==p,c=2==p,d=3==p,h=4==p,k=6==p,f=7==p,n=5==p||k;return function(l,r,m,t){var u,w,v=D(l),C=B(v);r=F(r,m);m=A(C);var y=0;t=t||x;for(l=e?t(l,m):c||f?t(l,0):void 0;m>y;y++)if((n|| 571y in C)&&(w=r(u=C[y],y,v),p))if(e)l[y]=w;else if(w)switch(p){case 3:return!0;case 5:return u;case 6:return y;case 2:q(l,u)}else switch(p){case 4:return!1;case 7:q(l,u)}return k?-1:d||h?h:l}};g.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}},function(g,b,a){a.r(b);a.d(b,"GAstVisitor",function(){return B});var F=a(57),B=function(){function D(){}return D.prototype.visit=function(A){switch(A.constructor){case F.NonTerminal:return this.visitNonTerminal(A); 572case F.Flat:return this.visitFlat(A);case F.Option:return this.visitOption(A);case F.RepetitionMandatory:return this.visitRepetitionMandatory(A);case F.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(A);case F.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(A);case F.Repetition:return this.visitRepetition(A);case F.Alternation:return this.visitAlternation(A);case F.Terminal:return this.visitTerminal(A);case F.Rule:return this.visitRule(A);default:throw Error("non exhaustive match"); 573}},D.prototype.visitNonTerminal=function(A){},D.prototype.visitFlat=function(A){},D.prototype.visitOption=function(A){},D.prototype.visitRepetition=function(A){},D.prototype.visitRepetitionMandatory=function(A){},D.prototype.visitRepetitionMandatoryWithSeparator=function(A){},D.prototype.visitRepetitionWithSeparator=function(A){},D.prototype.visitAlternation=function(A){},D.prototype.visitTerminal=function(A){},D.prototype.visitRule=function(A){},D}()},function(g,b,a){a.r(b);a.d(b,"defaultParserErrorProvider", 574function(){return q});a.d(b,"defaultGrammarResolverErrorProvider",function(){return p});a.d(b,"defaultGrammarValidatorErrorProvider",function(){return e});var F=a(102),B=a(48),D=a(57),A=a(194),x=a(234),q={buildMismatchTokenMessage:function(c){var d=c.expected,h=c.actual;c.previous;c.ruleName;return"Expecting "+(Object(F.hasTokenLabel)(d)?"--\x3e "+Object(F.tokenLabel)(d)+" \x3c--":"token of type --\x3e "+d.name+" \x3c--")+" but found --\x3e '"+h.image+"' \x3c--"},buildNotAllInputParsedMessage:function(c){var d= 575c.firstRedundant;c.ruleName;return"Redundant input, expecting EOF but found: "+d.image},buildNoViableAltMessage:function(c){var d=c.expectedPathsPerAlt,h=c.actual,k=(c.previous,c.customUserDescription);c=(c.ruleName,"\nbut found: '"+Object(B.first)(h).image+"'");if(k)return"Expecting: "+k+c;d=Object(B.reduce)(d,function(f,n){return f.concat(n)},[]);d=Object(B.map)(d,function(f){return"["+Object(B.map)(f,function(n){return Object(F.tokenLabel)(n)}).join(", ")+"]"});return"Expecting: one of these possible Token sequences:\n"+ 576Object(B.map)(d,function(f,n){return" "+(n+1)+". "+f}).join("\n")+c},buildEarlyExitMessage:function(c){var d=c.expectedIterationPaths,h=c.actual,k=c.customUserDescription;
576c=(c.ruleName,"\nbut found: '"+Object(B.first)(h).image+"'");return k?"Expecting: "+k+c:"Expecting: expecting at least one iteration which starts with one of these possible Token sequences::\n \x3c"+(Object(B.map)(d,function(f){return"["+Object(B.map)(f,function(n){return Object(F.tokenLabel)(n)}).join(",")+"]"}).join(" ,")+"\x3e")+ 577c}};Object.freeze(q);var p={buildRuleNotFoundError:function(c,d){return"Invalid grammar, reference to a rule which is not defined: -\x3e"+d.nonTerminalName+"\x3c-\ninside top level rule: -\x3e"+c.name+"\x3c-"}},e={buildDuplicateFoundError:function(c,d){c=c.name;var h=Object(B.first)(d),k=h.idx,f=Object(A.getProductionDslName)(h);h=h instanceof D.Terminal?h.terminalType.name:h instanceof D.NonTerminal?h.nonTerminalName:"";return("-\x3e"+f+(0<k?k:"")+"\x3c- "+(h?"with argument: -\x3e"+h+"\x3c-":"")+ 578"\n appears more than once ("+d.length+" times) in the top level rule: -\x3e"+c+"\x3c-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ").replace(/[ \t]+/g," ").replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(c,d){return"Invalid nested rule name: -\x3e"+d.name+"\x3c- inside rule: -\x3e"+c.name+"\x3c-\nit must match the pattern: -\x3e"+x.validNestedRuleName.toString()+ 579"\x3c-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(c,d){return"Duplicate nested rule name: -\x3e"+Object(B.first)(d).name+"\x3c- inside rule: -\x3e"+c.name+"\x3c-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(c){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: \x3c"+c.name+"\x3e.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."}, 580buildAlternationPrefixAmbiguityError:function(c){var d=Object(B.map)(c.prefixPath,function(k){return Object(F.tokenLabel)(k)}).join(", "),h=0===c.alternation.idx?"":c.alternation.idx;return"Ambiguous alternatives: \x3c"+c.ambiguityIndices.join(" ,")+"\x3e due to common lookahead prefix\nin \x3cOR"+h+"\x3e inside \x3c"+c.topLevelRule.name+"\x3e Rule,\n\x3c"+d+"\x3e may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."}, 581buildAlternationAmbiguityError:function(c){var d=Object(B.map)(c.prefixPath,function(k){return Object(F.tokenLabel)(k)}).join(", "),h=0===c.alternation.idx?"":c.alternation.idx;c="Ambiguous Alternatives Detected: \x3c"+c.ambiguityIndices.join(" ,")+"\x3e in \x3cOR"+h+"\x3e inside \x3c"+c.topLevelRule.name+"\x3e Rule,\n\x3c"+d+"\x3e may appears as a prefix path in all these alternatives.\n";return c+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."}, 582buildEmptyRepetitionError:function(c){var d=Object(A.getProductionDslName)(c.repetition);return 0!==c.repetition.idx&&(d+=c.repetition.idx),"The repetition \x3c"+d+"\x3e within Rule \x3c"+c.topLevelRule.name+"\x3e can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(c){return"Invalid Grammar Token name: -\x3e"+c.tokenType.name+"\x3c- it must match the pattern: -\x3e"+c.expectedPattern.toString()+"\x3c-"},buildEmptyAlternationError:function(c){return"Ambiguous empty alternative: \x3c"+ 583(c.emptyChoiceIdx+1)+"\x3e in \x3cOR"+c.alternation.idx+"\x3e inside \x3c"+c.topLevelRule.name+"\x3e Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(c){return"An Alternation cannot have more than 256 alternatives:\n\x3cOR"+c.alternation.idx+"\x3e inside \x3c"+c.topLevelRule.name+"\x3e Rule.\n has "+(c.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(c){var d=c.topLevelRule.name;return"Left Recursion found in grammar.\nrule: \x3c"+ 584d+"\x3e can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(d+" --\x3e "+B.map(c.leftRecursionPath,function(h){return h.name}).concat([d]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(c){return"Invalid grammar rule name: -\x3e"+c.topLevelRule.name+"\x3c- it must match the pattern: -\x3e"+ 585c.expectedPattern.toString()+"\x3c-"},buildDuplicateRuleNameError:function(c){return"Duplicate definition, rule: -\x3e"+(c.topLevelRule instanceof D.Rule?c.topLevelRule.name:c.topLevelRule)+"\x3c- is already defined in the grammar: -\x3e"+c.grammarName+"\x3c-"}}},function(g,b,a){g=a(28);b=a(722);a=a(186);g({target:"Array",proto:!0},{fill:b});a("fill")}
585,function(g,b,a){function F(e,c){if(!(e=function(d){if(Array.isArray(d))return d}(e)||function(d,h){var k=null==d?null:"undefined"!=typeof Symbol&& 586d[Symbol.iterator]||d["@@iterator"];if(null!=k){var f,n=[],l=!0,r=!1;try{for(k=k.call(d);!(l=(f=k.next()).done)&&(n.push(f.value),!h||n.length!==h);l=!0);}catch(t){r=!0;var m=t}finally{try{l||null==k.return||k.return()}finally{if(r)throw m;}}return n}}(e,c)||B(e,c)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return e}function B(e,c){if(e){if("string"==typeof e)return D(e,c);var d= 587Object.prototype.toString.call(e).slice(8,-1);return"Object"===d&&e.constructor&&(d=e.constructor.name),"Map"===d||"Set"===d?Array.from(e):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?D(e,c):void 0}}function D(e,c){(null==c||c>e.length)&&(c=e.length);for(var d=0,h=Array(c);d<c;d++)h[d]=e[d];return h}function A(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}a.r(b);a.d(b, 588"Transformer",function(){return p});a(93);a(36);a(13);a(0);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var x=a(24),q=a(74),p=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");!0}var c;return c=[{key:"performEagerTransformations",value:function(d,h){var k,f=function(t,u){var w="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!w){if(Array.isArray(t)||(w=B(t))||u&&t&&"number"==typeof t.length){w&&(t=w);var v=0;u=function(){}; 589return{s:u,n:function(){return v>=t.length?{done:!0}:{done:!1,value:t[v++]}},e:function(E){throw E;},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var C,y=!0,z=!1;return{s:function(){w=w.call(t)},n:function(){var E=w.next();return y=E.done,E},e:function(E){z=!0;C=E},f:function(){try{y||null==w.return||w.return()}finally{if(z)throw C;}}}}(d.arrayFormulaNodes());try{for(f.s();!(k=f.n()).done;){var n= 590k.value,l=F(this.transformSingleAst(n.getFormula(d.lazilyTransformingAstService),n.getAddress(d.lazilyTransformingAstService)),2),r=l[1],m=h.rememberNewAst(l[0]);n.setFormula(m);n.setAddress(r)}}catch(t){f.e(t)}finally{f.f()}}},{key:"transformSingleAst",value:function(d,h){return[this.transformAst(d,h),this.fixNodeAddress(h)]}},{key:"transformAst",value:function(d,h){var k=this;switch(d.type){case q.AstNodeType.CELL_REFERENCE:return this.transformCellReferenceAst(d,h);case q.AstNodeType.CELL_RANGE:return this.transformCellRangeAst(d, 591h);case q.AstNodeType.COLUMN_RANGE:return this.transformColumnRangeAst(d,h);case q.AstNodeType.ROW_RANGE:return this.transformRowRangeAst(d,h);case q.AstNodeType.EMPTY:case q.AstNodeType.ERROR:case q.AstNodeType.NUMBER:case q.AstNodeType.NAMED_EXPRESSION:case q.AstNodeType.ERROR_WITH_RAW_INPUT:case q.AstNodeType.STRING:return d;case q.AstNodeType.PERCENT_OP:case q.AstNodeType.MINUS_UNARY_OP:case q.AstNodeType.PLUS_UNARY_OP:return Object.assign(Object.assign({},d),{value:this.transformAst(d.value, 592h)});case q.AstNodeType.FUNCTION_CALL:return Object.assign(Object.assign({},d),{procedureName:d.procedureName,args:d.args.map(function(f){return k.transformAst(f,h)})});case q.AstNodeType.PARENTHESIS:return Object.assign(Object.assign({},d),{expression:this.transformAst(d.expression,h)});case q.AstNodeType.ARRAY:return Object.assign(Object.assign({},d),{args:d.args.map(function(f){return f.map(function(n){return k.transformAst(n,h)})})});default:return Object.assign(Object.assign({},d),{left:this.transformAst(d.left, 593h),right:this.transformAst(d.right,h)})}}},{key:"transformCellReferenceAst",value:function(d,h){h=this.transformCellAddress(d.reference,h);return h instanceof q.CellAddress?Object.assign(Object.assign({},d),{reference:h}):h===x.ErrorType.REF?Object(q.buildCellErrorAst)(new x.CellError(x.ErrorType.REF)):d}},{key:"transformCellRangeAst",value:function(d,h){h=this.transformCellRange(d.start,d.end,h);return Array.isArray(h)?Object.assign(Object.assign({},d),{start:h[0],end:h[1]}):h===x.ErrorType.REF? 594Object(q.buildCellErrorAst)(new x.CellError(x.ErrorType.REF)):d}},{key:"transformColumnRangeAst",value:function(d,h){h=this.transformColumnRange(d.start,d.end,h);return Array.isArray(h)?Object.assign(Object.assign({},d),{start:h[0],end:h[1]}):h===x.ErrorType.REF?Object(q.buildCellErrorAst)(new x.CellError(x.ErrorType.REF)):d}},{key:"transformRowRangeAst",value:function(d,h){h=this.transformRowRange(d.start,d.end,h);return Array.isArray(h)?Object.assign(Object.assign({},d),{start:h[0],end:h[1]}):h=== 595x.ErrorType.REF?Object(q.buildCellErrorAst)(new x.CellError(x.ErrorType.REF)):d}}],A(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}()},function(g,b,a){g=a(28);var F=a(141).find;a=a(186);var B=!0;"find"in[]&&Array(1).find(function(){B=!1});g({target:"Array",proto:!0,forced:B},{find:function(D){return F(this,D,1<arguments.length?arguments[1]:void 0)}});a("find")},function(g,b,a){a(28)({target:"Math",stat:!0},{trunc:a(343)})},function(g,b,a){a(0);a(27);a(53);b.__esModule=!0;var F= 596{BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0};b.TopOverlay=b.TopInlineStartCornerOverlay=b.Overlay=b.InlineStartOverlay=b.BottomOverlay=b.BottomInlineStartCornerOverlay=void 0;g=a(793);b.BottomInlineStartCornerOverlay=g.BottomInlineStartCornerOverlay;g=a(811);b.BottomOverlay=g.BottomOverlay;g=a(813);b.InlineStartOverlay=g.InlineStartOverlay;g=a(170);b.Overlay=g.Overlay;g=a(815);b.TopInlineStartCornerOverlay=g.TopInlineStartCornerOverlay; 597g=a(817);b.TopOverlay=g.TopOverlay;var B=a(149);
597Object.keys(B).forEach(function(D){"default"!==D&&"__esModule"!==D&&(Object.prototype.hasOwnProperty.call(F,D)||D in b&&b[D]===B[D]||(b[D]=B[D]))})},function(g,b,a){b.__esModule=!0;b.CLONE_TYPES=b.CLONE_TOP_INLINE_START_CORNER=b.CLONE_TOP=b.CLONE_INLINE_START=b.CLONE_CLASS_NAMES=b.CLONE_BOTTOM_INLINE_START_CORNER=b.CLONE_BOTTOM=void 0;a(3);a(32);a(0);a(2);a(4);b.CLONE_TOP="top";b.CLONE_BOTTOM="bottom";b.CLONE_INLINE_START="inline_start";b.CLONE_TOP_INLINE_START_CORNER= 598"top_inline_start_corner";b.CLONE_BOTTOM_INLINE_START_CORNER="bottom_inline_start_corner";b.CLONE_TYPES=["top","bottom","inline_start","top_inline_start_corner","bottom_inline_start_corner"];g=new Map([["top","ht_clone_".concat("top")],["bottom","ht_clone_".concat("bottom")],["inline_start","ht_clone_".concat("inline_start"," ht_clone_left")],["top_inline_start_corner","ht_clone_".concat("top_inline_start_corner"," ht_clone_top_left_corner")],["bottom_inline_start_corner","ht_clone_".concat("bottom_inline_start_corner", 599" ht_clone_bottom_left_corner")]]);b.CLONE_CLASS_NAMES=g},function(g,b,a){function F(q){for(var p=q+1,e="";0<p;)q=(p-1)%x,e=String.fromCharCode(65+q)+e,p=parseInt((p-q)/x,10);return e}g=a(1);b.__esModule=!0;b.cellMethodLookupFactory=function(q,p){var e=void 0===p||p;return function(c,d){return function f(k){if(k){if((0,A.hasOwnProperty)(k,q)&&void 0!==k[q])return k[q];if((0,A.hasOwnProperty)(k,"type")&&k.type){if("string"!=typeof k.type)throw Error('Cell "type" must be a string');var n=(0,D.getCellType)(k.type); 600if((0,A.hasOwnProperty)(n,q))return n[q];if(e)return}return f(Object.getPrototypeOf(k))}}("number"==typeof c?this.getCellMeta(c,d):c)}};b.countFirstRowKeys=function(q){var p=0;Array.isArray(q)&&(q[0]&&Array.isArray(q[0])?p=q[0].length:q[0]&&(0,A.isObject)(q[0])&&(p=(0,A.deepObjectSize)(q[0])));return p};b.createEmptySpreadsheetData=function(q,p){for(var e,c=[],d=0;d<q;d++){e=[];for(var h=0;h<p;h++)e.push("");c.push(e)}return c};b.createSpreadsheetData=function(){var q,p,e=0<arguments.length&&void 0!== 601arguments[0]?arguments[0]:100,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:4,d=[];for(q=0;q<e;q++){var h=[];for(p=0;p<c;p++)h.push(F(p)+(q+1));d.push(h)}return d};b.createSpreadsheetObjectData=function(){var q,p,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:100,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:4,d=[];for(q=0;q<e;q++){var h={};for(p=0;p<c;p++)h["prop".concat(p)]=F(p)+(q+1);d.push(h)}return d};b.dataRowToChangesArray=function(q){var p=1<arguments.length&& 602void 0!==arguments[1]?arguments[1]:0,e=q,c=[];Array.isArray(q)&&Array.isArray(q[0])||(e=[q]);return e.forEach(function(d,h){Array.isArray(d)?d.forEach(function(k,f){c.push([h+p,f,k])}):Object.keys(d).forEach(function(k){c.push([h+p,k,d[k]])})}),c};b.isArrayOfArrays=function(q){return!!(Array.isArray(q)&&q.length&&q.every(function(p){return Array.isArray(p)}))};b.isArrayOfObjects=function(q){return!!(Array.isArray(q)&&q.length&&q.every(function(p){return"object"===(0,B.default)(p)&&!Array.isArray(p)&& 603null!==p}))};b.spreadsheetColumnIndex=function(q){var p=0;if(q)for(var e=0,c=q.length-1;e<q.length;e+=1,--c)p+=Math.pow(x,c)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(q[e])+1);return p-1};b.spreadsheetColumnLabel=F;var B=g(a(21));a(25);a(0);a(27);a(53);var D=a(171),A=a(17),x=26},function(g,b,a){b.__esModule=!0;b.TextEditor=b.EDITOR_TYPE=void 0;g=a(866);b.EDITOR_TYPE=g.EDITOR_TYPE;b.TextEditor=g.TextEditor},function(g,b,a){b.__esModule=!0;b.textRenderer=b.RENDERER_TYPE=void 0;g=a(871);b.RENDERER_TYPE= 604g.RENDERER_TYPE;b.textRenderer=g.textRenderer},function(g,b,a){var F=a(154);b=a(38);g.exports=!!Object.getOwnPropertySymbols&&!b(function(){var B=Symbol();return!String(B)||!(Object(B)instanceof Symbol)||!Symbol.sham&&F&&41>F})},function(g,b,a){var F,B;b=a(45);a=a(121);var D=b.process;b=b.Deno;(b=(b=D&&D.versions||b&&b.version)&&b.v8)&&(B=0<(F=b.split("."))[0]&&4>F[0]?1:+(F[0]+F[1]));!B&&a&&(!(F=a.match(/Edge\/(\d+)/))||74<=F[1])&&(F=a.match(/Chrome\/(\d+)/))&&(B=+F[1]);g.exports=B},function(g,b){var a= 605String;g.exports=function(F){try{return a(F)}catch(B){return"Object"}}},function(g,b,a){b=a(112);var F=a(252);(g.exports=function(B,D){return F[B]||(F[B]=void 0!==D?D:{})})("versions",[]).push({version:"3.23.3",mode:b?"pure":"global",copyright:"\u00a9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})},function(g,b,a){var F=a(342),B=a(255).concat("length","prototype");b.f=Object.getOwnPropertyNames|| 606function(D){return F(D,B)}},function(g,b,a){var F=a(129),B=Math.max,D=Math.min;g.exports=function(A,x){A=F(A);return 0>A?B(A+x,0):D(A,x)}},function(g,b,a){var F=a(213),B=a(80),D=a(175);g.exports=function(A,x,q){x=F(x);x in A?B.f(A,x,D(0,q)):A[x]=q}},function(g,b,a){b=a(35);var F=a(115),B=a(174),D=b(b.bind);g.exports=function(A,x){return F(A),void 0===x?A:B?D(A,x):function(){return A.apply(x,arguments)}}},function(g,b,a){var F=a(38);g.exports=function(B,D){var A=[][B];return!!A&&F(function(){A.call(null, 607D||function(){return 1},1)})}},function(g,b,a){a.r(b);
607a.d(b,"LexerDefinitionErrorType",function(){return F});a.d(b,"Lexer",function(){return p});var F,B=a(372),D=a(48),A=a(193);g=a(280);var x=a(279);!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN";e[e.INVALID_PATTERN=1]="INVALID_PATTERN";e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND";e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND";e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND";e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND"; 608e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST";e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE";e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY";e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST";e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED";e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND";e[e.EMPTY_MATCH_PATTERN= 60912]="EMPTY_MATCH_PATTERN";e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS";e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN";e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR";e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"}(F||(F={}));var q={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:g.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(q); 610var p=function(){function e(c,d){var h=this;if(void 0===d&&(d=q),this.lexerDefinition=c,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},"boolean"==typeof d)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported"); 611this.config=Object(D.merge)(q,d);var k=this.config.traceInitPerf;!0===k?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof k&&(this.traceInitMaxIdent=k,this.traceInitPerf=!0);this.traceInitIndent=-1;this.TRACE_INIT("Lexer Constructor",function(){var f,n=!0;h.TRACE_INIT("Lexer Config handling",function(){if(h.config.lineTerminatorsPattern===q.lineTerminatorsPattern)h.config.lineTerminatorsPattern=B.LineTerminatorOptimizedTester;else if(h.config.lineTerminatorCharacters===q.lineTerminatorCharacters)throw Error("Error: Missing \x3clineTerminatorCharacters\x3e property on the Lexer config.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS"); 612if(d.safeMode&&d.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');h.trackStartLines=/full|onlyStart/i.test(h.config.positionTracking);h.trackEndLines=/full/i.test(h.config.positionTracking);Object(D.isArray)(c)?((f={modes:{}}).modes[B.DEFAULT_MODE]=Object(D.cloneArr)(c),f[B.DEFAULT_MODE]=B.DEFAULT_MODE):(n=!1,f=Object(D.cloneObj)(c))});!1===h.config.skipValidations&&(h.TRACE_INIT("performRuntimeChecks",function(){h.lexerDefinitionErrors=h.lexerDefinitionErrors.concat(Object(B.performRuntimeChecks)(f, 613h.trackStartLines,h.config.lineTerminatorCharacters))}),h.TRACE_INIT("performWarningRuntimeChecks",function(){h.lexerDefinitionWarning=h.lexerDefinitionWarning.concat(Object(B.performWarningRuntimeChecks)(f,h.trackStartLines,h.config.lineTerminatorCharacters))}
613));f.modes=f.modes?f.modes:{};Object(D.forEach)(f.modes,function(m,t){f.modes[t]=Object(D.reject)(m,function(u){return Object(D.isUndefined)(u)})});var l=Object(D.keys)(f.modes);if(Object(D.forEach)(f.modes,function(m,t){h.TRACE_INIT("Mode: \x3c"+ 614t+"\x3e processing",function(){var u;(h.modes.push(t),!1===h.config.skipValidations&&h.TRACE_INIT("validatePatterns",function(){h.lexerDefinitionErrors=h.lexerDefinitionErrors.concat(Object(B.validatePatterns)(m,l))}),Object(D.isEmpty)(h.lexerDefinitionErrors))&&(Object(A.augmentTokenTypes)(m),h.TRACE_INIT("analyzeTokenTypes",function(){u=Object(B.analyzeTokenTypes)(m,{lineTerminatorCharacters:h.config.lineTerminatorCharacters,positionTracking:d.positionTracking,ensureOptimizations:d.ensureOptimizations, 615safeMode:d.safeMode,tracer:h.TRACE_INIT.bind(h)})}),h.patternIdxToConfig[t]=u.patternIdxToConfig,h.charCodeToPatternIdxToConfig[t]=u.charCodeToPatternIdxToConfig,h.emptyGroups=Object(D.merge)(h.emptyGroups,u.emptyGroups),h.hasCustom=u.hasCustom||h.hasCustom,h.canModeBeOptimized[t]=u.canBeOptimized)})}),h.defaultMode=f.defaultMode,!Object(D.isEmpty)(h.lexerDefinitionErrors)&&!h.config.deferDefinitionErrorsHandling){var r=Object(D.map)(h.lexerDefinitionErrors,function(m){return m.message}).join("-----------------------\n"); 616throw Error("Errors detected in definition of Lexer:\n"+r);}Object(D.forEach)(h.lexerDefinitionWarning,function(m){Object(D.PRINT_WARNING)(m.message)});h.TRACE_INIT("Choosing sub-methods implementations",function(){if(B.SUPPORT_STICKY?(h.chopInput=D.IDENTITY,h.match=h.matchWithTest):(h.updateLastIndex=D.NOOP,h.match=h.matchWithExec),n&&(h.handleModes=D.NOOP),!1===h.trackStartLines&&(h.computeNewColumn=D.IDENTITY),!1===h.trackEndLines&&(h.updateTokenEndLineColumnLocation=D.NOOP),/full/i.test(h.config.positionTracking))h.createTokenInstance= 617h.createFullToken;else if(/onlyStart/i.test(h.config.positionTracking))h.createTokenInstance=h.createStartOnlyToken;else{if(!/onlyOffset/i.test(h.config.positionTracking))throw Error('Invalid \x3cpositionTracking\x3e config option: "'+h.config.positionTracking+'"');h.createTokenInstance=h.createOffsetOnlyToken}h.hasCustom?(h.addToken=h.addTokenUsingPush,h.handlePayload=h.handlePayloadWithCustom):(h.addToken=h.addTokenUsingMemberAccess,h.handlePayload=h.handlePayloadNoCustom)});h.TRACE_INIT("Failed Optimization Warnings", 618function(){var m=Object(D.reduce)(h.canModeBeOptimized,function(t,u,w){return!1===u&&t.push(w),t},[]);if(d.ensureOptimizations&&!Object(D.isEmpty)(m))throw Error("Lexer Modes: \x3c "+m.join(", ")+' \x3e cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.');});h.TRACE_INIT("clearRegExpParserCache",function(){Object(x.clearRegExpParserCache)()}); 619h.TRACE_INIT("toFastProperties",function(){Object(D.toFastProperties)(h)})})}return e.prototype.tokenize=function(c,d){if(void 0===d&&(d=this.defaultMode),!Object(D.isEmpty)(this.lexerDefinitionErrors))throw c=Object(D.map)(this.lexerDefinitionErrors,function(h){return h.message}).join("-----------------------\n"),Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+c);return this.tokenizeInternal(c,d)},e.prototype.tokenizeInternal=function(c,d){function h(){return N}function k(ba){ba= 620Object(B.charCodeToOptimizedIndex)(ba);ba=Q[ba];return void 0===ba?T:ba}function f(ba){M.push(ba);Q=this.charCodeToPatternIdxToConfig[ba];N=this.patternIdxToConfig[ba];O=O=N.length;ba=this.canModeBeOptimized[ba]&&!1===this.config.safeMode;Z=Q&&ba?k:h}var n,l,r,m,t,u,w,v,C=this,y=c,z=y.length,E=0,H=0,G=Array(this.hasCustom?0:Math.floor(c.length/10)),I=[],K=this.trackStartLines?1:void 0,J=this.trackStartLines?1:void 0,P=Object(B.cloneEmptyGroups)(this.emptyGroups),S=this.trackStartLines,R=this.config.lineTerminatorsPattern, 621O=0,N=[],Q=[],M=[],T=[];Object.freeze(T);var Z=void 0,L,U=function(ba){if(1===M.length&&void 0===ba.tokenType.PUSH_MODE){var fa=C.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ba);I.push({offset:ba.startOffset,line:void 0!==ba.startLine?ba.startLine:void 0,column:void 0!==ba.startColumn?ba.startColumn:void 0,length:ba.image.length,message:fa})}else M.pop(),ba=Object(D.last)(M),N=C.patternIdxToConfig[ba],Q=C.charCodeToPatternIdxToConfig[ba],O=N.length,ba=C.canModeBeOptimized[ba]&&!1=== 622C.config.safeMode,Z=Q&&ba?k:h};for(f.call(this,d);E<z;){d=null;var V=y.charCodeAt(E);var Y=Z(V);var aa=Y.length;for(n=0;n<aa;n++){var W=(L=Y[n]).pattern;
622if(r=null,!1!==(ca=L.short)?V===ca&&(d=W):!0===L.isCustom?null!==(v=W.exec(y,E,G,P))?(d=v[0],void 0!==v.payload&&(r=v.payload)):d=null:(this.updateLastIndex(W,E),d=this.match(W,c,E)),null!==d){void 0!==(W=L.longerAlt)&&(n=N[W],V=n.pattern,W=null,!0===n.isCustom?null!==(v=V.exec(y,E,G,P))?(l=v[0],void 0!==v.payload&&(W=v.payload)):l=null:(this.updateLastIndex(V, 623E),l=this.match(V,c,E)),l&&l.length>d.length&&(d=l,r=W,L=n));break}}if(null!==d){if(m=d.length,void 0!==(t=L.group)&&(u=L.tokenTypeIdx,w=this.createTokenInstance(d,E,u,L.tokenType,K,J,m),this.handlePayload(w,r),!1===t?H=this.addToken(G,H,w):P[t].push(w)),c=this.chopInput(c,m),E+=m,J=this.computeNewColumn(J,m),!0===S&&!0===L.canLineTerminator){W=0;V=n=void 0;R.lastIndex=0;do!0===(n=R.test(d))&&(V=R.lastIndex-1,W++);while(!0===n);0!==W&&(K+=W,J=m-V,this.updateTokenEndLineColumnLocation(w,t,V,W,K,J, 624m))}this.handleModes(L,U,f,w)}else{d=E;n=K;V=J;for(aa=!1;!aa&&E<z;)for(y.charCodeAt(E),c=this.chopInput(c,1),E++,Y=0;Y<O;Y++){var ca,ia=N[Y];W=ia.pattern;if(!1!==(ca=ia.short)?y.charCodeAt(E)===ca&&(aa=!0):!0===ia.isCustom?aa=null!==W.exec(y,E,G,P):(this.updateLastIndex(W,E),aa=null!==W.exec(c)),!0===aa)break}W=E-d;Y=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(y,d,W,n,V);I.push({offset:d,line:n,column:V,length:W,message:Y})}}return this.hasCustom||(G.length=H),{tokens:G,groups:P, 625errors:I}},e.prototype.handleModes=function(c,d,h,k){!0===c.pop?(c=c.push,d(k),void 0!==c&&h.call(this,c)):void 0!==c.push&&h.call(this,c.push)},e.prototype.chopInput=function(c,d){return c.substring(d)},e.prototype.updateLastIndex=function(c,d){c.lastIndex=d},e.prototype.updateTokenEndLineColumnLocation=function(c,d,h,k,f,n,l){var r,m;void 0!==d&&(m=(r=h===l-1)?-1:0,1===k&&!0===r||(c.endLine=f+m,c.endColumn=n-1-m))},e.prototype.computeNewColumn=function(c,d){return c+d},e.prototype.createTokenInstance= 626function(){for(var c=0;c<arguments.length;c++);return null},e.prototype.createOffsetOnlyToken=function(c,d,h,k){return{image:c,startOffset:d,tokenTypeIdx:h,tokenType:k}},e.prototype.createStartOnlyToken=function(c,d,h,k,f,n){return{image:c,startOffset:d,startLine:f,startColumn:n,tokenTypeIdx:h,tokenType:k}},e.prototype.createFullToken=function(c,d,h,k,f,n,l){return{image:c,startOffset:d,endOffset:d+l-1,startLine:f,endLine:f,startColumn:n,endColumn:n+l-1,tokenTypeIdx:h,tokenType:k}},e.prototype.addToken= 627function(c,d,h){return 666},e.prototype.addTokenUsingPush=function(c,d,h){return c.push(h),d},e.prototype.addTokenUsingMemberAccess=function(c,d,h){return c[d]=h,++d},e.prototype.handlePayload=function(c,d){},e.prototype.handlePayloadNoCustom=function(c,d){},e.prototype.handlePayloadWithCustom=function(c,d){null!==d&&(c.payload=d)},e.prototype.match=function(c,d,h){return null},e.prototype.matchWithTest=function(c,d,h){return!0===c.test(d)?d.substring(h,c.lastIndex):null},e.prototype.matchWithExec= 628function(c,d){c=c.exec(d);return null!==c?c[0]:c},e.prototype.TRACE_INIT=function(c,d){if(!0===this.traceInitPerf){this.traceInitIndent++;var h=Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(h+"--\x3e \x3c"+c+"\x3e");var k=Object(D.timer)(d);d=k.time;k=k.value;var f=10<d?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&f(h+"\x3c-- \x3c"+c+"\x3e time: "+d+"ms"),this.traceInitIndent--,k}return d()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.", 629e.NA=/NOT_APPLICABLE/,e}()},function(g,b,a){function F(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function");}function B(d,h){for(var k=0;k<h.length;k++){var f=h[k];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(d,f.key,f)}}function D(d,h,k){return h&&B(d.prototype,h),k&&B(d,k),Object.defineProperty(d,"prototype",{writable:!1}),d}a.r(b);a.d(b,"AddressDependency",function(){return x});a.d(b,"CellRangeDependency",function(){return q}); 630a.d(b,"ColumnRangeDependency",function(){return p});a.d(b,"RowRangeDependency",function(){return e});a.d(b,"NamedExpressionDependency",function(){return c});a(26);var A=a(91),x=function(){function d(h){F(this,d);this.dependency=h}return D(d,[{key:"absolutize",value:function(h){return this.dependency.toSimpleCellAddress(h)}}]),d}(),q=function(){function d(h,k){F(this,d);this.start=h;this.end=k}return D(d,[{key:"absolutize",value:function(h){return new A.AbsoluteCellRange(this.start.toSimpleCellAddress(h), 631this.end.toSimpleCellAddress(h))}}]),d}(),p=function(){function d(h,k){F(this,d);this.start=h;this.end=k}return D(d,[{key:"absolutize",value:function(h){var k=this.start.toSimpleColumnAddress(h);h=this.end.toSimpleColumnAddress(h);return new A.AbsoluteColumnRange(k.sheet,k.col,h.col)}}]),d}(),e=function(){function d(h,k){F(this,d);this.start=h;this.end=k}return D(d,[{key:"absolutize",value:function(h){var k=this.start.toSimpleRowAddress(h);h=this.end.toSimpleRowAddress(h);return new A.AbsoluteRowRange(k.sheet, 632k.row,h.row)}}]),d}(),c=function(){function d(h){F(this,d);this.name=h}return D(d,[{key:"absolutize",value:function(h){return this}}]),d}()},function(g,b,a){function F(t,u){var w="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!w){if(Array.isArray(t)||(w=function(E,H){if(E){if("string"==typeof E)return B(E,H);var G=Object.prototype.toString.call(E).slice(8,-1);"Object"===G&&E.constructor&&(G=E.constructor.name);if("Map"===G||"Set"===G)return Array.from(E);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return B(E, 633H)}}(t))||u&&t&&"number"==typeof t.length){w&&(t=w);var v=0;u=function(){};return{s:u,n:function(){return v>=t.length?{done:!0}:{done:!1,value:t[v++]}},e:function(E){throw E;},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var C,y=!0,z=!1;return{s:function(){w=w.call(t)},n:function(){var E=w.next();return y=E.done,E},e:function(E){z=!0;C=E},f:function(){try{y||null==w.return||w.return()}finally{if(z)throw C; 634}}}}function B(t,u){(null==u||u>t.length)&&(u=t.length);for(var w=0,v=Array(u);w<u;w++)v[w]=t[w];return v}function D(t,u){for(var w=0;w<u.length;w++){var v=u[w];v.enumerable=v.enumerable||!1;v.configurable=!0;"value"in v&&(v.writable=!0);Object.defineProperty(t,v.key,v)}}function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(t)} 635function x(t){return!(!t||"object"!==A(t)&&"function"!=typeof t)&&"year"in t&&"number"==typeof t.year&&"month"in t&&"number"==typeof t.month&&"day"in t&&"number"==typeof t.day}function q(t){return!(!t||"object"!==A(t)&&"function"!=typeof t)&&"hours"in t&&"number"==typeof t.hours&&"minutes"in t&&"number"==typeof t.minutes&&"seconds"in t&&"number"==typeof t.seconds}function p(t,u){u=12*t.year+t.month-1+u;return{year:Math.floor(u/12),month:u%12+1,day:t.day}
635}function e(t){return{year:t.year,month:t.month, 636day:Math.min(t.day,n[t.month-1])}}function c(t){return Math.round(86400*t)/86400}function d(t){t=Math.round(864E7*t)/864E7;t*=24;var u=Math.floor(t);t-=u;t*=60;var w=Math.floor(t);return t-=w,t*=60,{hours:u,minutes:w,seconds:Math.round(1E5*t)/1E5}}function h(t){return((t.seconds/60+t.minutes)/60+t.hours)/24}function k(t){return{year:t.year,month:t.month,day:Math.min(30,t.day)}}a.r(b);a.d(b,"instanceOfSimpleDate",function(){return x});a.d(b,"instanceOfSimpleTime",function(){return q});a.d(b,"maxDate", 637function(){return r});a.d(b,"DateTimeHelper",function(){return m});a.d(b,"offsetMonth",function(){return p});a.d(b,"truncateDayInMonth",function(){return e});a.d(b,"roundToNearestSecond",function(){return c});a.d(b,"numberToSimpleTime",function(){return d});a.d(b,"timeToNumber",function(){return h});a.d(b,"toBasisEU",function(){return k});a(93);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(13);a(26);a(22);a(12);var f=a(51),n=[31,28,31,30,31,30,31,31,30,31,30,31],l=[0,31,59,90,120,151,181,212,243,273,304, 638334],r={year:9999,month:12,day:31},m=function(){function t(w){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");!0;this.config=w;this.minDateAboluteValue=this.dateToNumberFromZero(w.nullDate);this.maxDateValue=this.dateToNumber(r);this.leapYear1900=w.leapYear1900;!this.leapYear1900&&0<=this.dateToNumber({year:1900,month:2,day:28})?this.epochYearZero=this.numberToSimpleDate(2).year:this.epochYearZero=this.numberToSimpleDate(1).year;this.parseDateTime=w.parseDateTime} 639var u;return u=[{key:"getWithinBounds",value:function(w){return w<=this.maxDateValue&&0<=w?w:void 0}},{key:"dateStringToDateNumber",value:function(w){var v=this.parseDateTimeFromConfigFormats(w);w=v.dateTime;var C=v.dateFormat;C=void 0===C?"":C;v=v.timeFormat;v=void 0===v?"":v;if(void 0!==w)return q(w)?x(w)?new f.DateTimeNumber(h(w)+this.dateToNumber(w),C+" "+v):new f.TimeNumber(h(w),v):x(w)?new f.DateNumber(this.dateToNumber(w),C):0}},{key:"parseDateTimeFromConfigFormats",value:function(w){return this.parseDateTimeFromFormats(w, 640this.config.dateFormats,this.config.timeFormats)}},{key:"getNullYear",value:function(){return this.config.nullYear}},{key:"getEpochYearZero",value:function(){return this.epochYearZero}},{key:"isValidDate",value:function(w){return!(isNaN(w.year)||isNaN(w.month)||isNaN(w.day)||w.day!==Math.round(w.day)||w.month!==Math.round(w.month)||w.year!==Math.round(w.year)||1582>w.year||1>w.month||12<w.month||1>w.day||!(this.isLeapYear(w.year)&&2===w.month?29>=w.day:w.day<=n[w.month-1]))}},{key:"dateToNumber", 641value:function(w){return this.dateToNumberFromZero(w)-this.minDateAboluteValue}},{key:"relativeNumberToAbsoluteNumber",value:function(w){return w+this.minDateAboluteValue-(this.leapYear1900?1:0)}},{key:"numberToSimpleDate",value:function(w){var v=Math.floor(w)+this.minDateAboluteValue;w=Math.floor(v/365.2425);this.dateToNumberFromZero({year:w+1,month:1,day:1})<=v?w++:this.dateToNumberFromZero({year:w-1,month:1,day:1})>v&&w--;v-=this.dateToNumberFromZero({year:w,month:1,day:1});var C=v-(this.isLeapYear(w)&& 64259<=v?1:0),y=0;var z=(l[y+6]<=C&&(y+=6),l[y+3]<=C&&(y+=3),l[y+2]<=C?y+=2:l[y+1]<=C&&(y+=1),y);return{year:w,month:z+1,day:v-l[z]-(this.isLeapYear(w)&&1<z?1:0)+1}}},{key:"numberToSimpleDateTime",value:function(w){return Object.assign(Object.assign({},this.numberToSimpleDate(Math.floor(w))),d(w%1))}},{key:"leapYearsCount",value:function(w){return Math.floor(w/4)-Math.floor(w/100)+Math.floor(w/400)+(this.config.leapYear1900&&1900<=w?1:0)}},{key:"daysInMonth",value:function(w,v){return this.isLeapYear(w)&& 6432===v?29:n[v-1]}},{key:"endOfMonth",value:function(w){return{year:w.year,month:w.month,day:this.daysInMonth(w.year,w.month)}}},{key:"toBasisUS",value:function(w,v){return 31===w.day&&(w.day=30),30===w.day&&31===v.day&&(v.day=30),2===w.month&&w.day===this.daysInMonth(w.year,w.month)&&(w.day=30,2===v.month&&v.day===this.daysInMonth(v.year,v.month)&&(v.day=30)),[w,v]}},{key:"yearLengthForBasis",value:function(w,v){return w.year!==v.year?w.year+1!==v.year||w.month<v.month||w.month===v.month&&w.day<v.day? 644(this.leapYearsCount(v.year)-this.leapYearsCount(w.year-1))/(v.year-w.year+1)+365:this.countLeapDays(v)!==this.countLeapDays({year:w.year,month:w.month,day:w.day-1}
644)?366:365:this.isLeapYear(w.year)?366:365}},{key:"parseSingleFormat",value:function(w,v,C){w=this.parseDateTime(w,v,C);if(!x(w)||(0<=w.year&&100>w.year&&(w.year<this.getNullYear()?w.year+=2E3:w.year+=1900),this.isValidDate(w)))return w}},{key:"parseDateTimeFromFormats",value:function(w,v,C){var y;C=0===C.length?[void 0]:C;v=F(0===v.length? 645[void 0]:v);try{for(v.s();!(y=v.n()).done;){var z,E=y.value,H=F(C);try{for(H.s();!(z=H.n()).done;){var G=z.value,I=this.parseSingleFormat(w,E,G);if(void 0!==I)return{dateTime:I,timeFormat:G,dateFormat:E}}}catch(K){H.e(K)}finally{H.f()}}}catch(K){v.e(K)}finally{v.f()}return{}}},{key:"countLeapDays",value:function(w){return 2<w.month||2===w.month&&29<=w.day?this.leapYearsCount(w.year):this.leapYearsCount(w.year-1)}},{key:"dateToNumberFromZero",value:function(w){return 365*w.year+l[w.month-1]+w.day- 6461+(2>=w.month?this.leapYearsCount(w.year-1):this.leapYearsCount(w.year))}},{key:"isLeapYear",value:function(w){return!(w%4)&&(!!(w%100)||!(w%400)||1900===w&&this.config.leapYear1900)}}],D(t.prototype,u),Object.defineProperty(t,"prototype",{writable:!1}),t}()},function(g,b,a){g=a(28);var F=a(141).findIndex;a=a(186);var B=!0;"findIndex"in[]&&Array(1).findIndex(function(){B=!1});g({target:"Array",proto:!0,forced:B},{findIndex:function(D){return F(this,D,1<arguments.length?arguments[1]:void 0)}});a("findIndex")}, 647function(g,b,a){function F(e){var c={};this.getConstructor=function(){return e};this.getInstance=function(d){return d.guid in c||(c[d.guid]=new e(d)),c[d.guid]};D.default.getSingleton().add("afterDestroy",function(){c[this.guid]=null})}function B(e,c){e&&"string"!=typeof e&&(e=(c=e).EDITOR_TYPE);var d=new F(c);"string"==typeof e&&x(e,d);A.set(c,d)}g=a(1);b.__esModule=!0;b.RegisteredEditor=F;b.getEditorInstance=b._getEditorInstance=function(e,c){if("function"==typeof e){A.get(e)||B(null,e);var d=A.get(e)}else{if("string"!= 648typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');d=q(e)}if(!d)throw Error('No editor registered under name "'.concat(e,'"'));return d.getInstance(c)};b.getEditor=function(e){if(!p(e))throw Error('No registered editor found under "'.concat(e,'" name'));return q(e).getConstructor()};b.hasEditor=b.getRegisteredEditors=b.getRegisteredEditorNames=void 0;b.registerEditor=B;a(3);a(0);a(2);a(11);a(4);var D=g(a(71));a=g(a(119));var A=new WeakMap;a=(0,a.default)("editors"); 649var x=a.register,q=a.getItem,p=a.hasItem;g=a.getNames;b.getRegisteredEditors=a.getValues;b.getRegisteredEditorNames=g;b.hasEditor=p},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap;return(F=function(p){return p?q:x})(A)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.Renderer=void 0;var D=g(a(588));b.ViewportColumnsCalculator=D.default;D=g(a(589));b.ViewportRowsCalculator=D.default;D=g(a(312));b.CellCoords=D.default;D=g(a(591)); 650b.CellRange=D.default;D=g(a(789));b.default=D.default;b.Core=D.default;g=g(a(823));b.Selection=g.default;g=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==B(A)&&"function"!=typeof A)return{default:A};if((x=F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]= 651A[e]}q.default=A;x&&x.set(A,q);return q}(a(594));b.Renderer=g;g=a(245);b.OrderView=g.OrderView;b.SharedOrderView=g.SharedOrderView;a=a(60);b.getListenersCounter=a.getListenersCounter},function(g,b,a){function F(A,x,q){return D()?(g.exports=F=Reflect.construct.bind(),g.exports.__esModule=!0,g.exports.default=g.exports):(g.exports=F=function(p,e,c){var d=[null];d.push.apply(d,e);p=new (Function.bind.apply(p,d));return c&&B(p,c.prototype),p},g.exports.__esModule=!0,g.exports.default=g.exports),F.apply(null, 652arguments)}var B=a(592),D=a(792);g.exports=F;g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(26);a(22);a(2);a(42);a(0);a(27);var F=g(a(43)),B=g(a(34)),D=g(a(5)),A=g(a(6)),x=g(a(41)),q=a(23),p=a(70),e=g(a(795)),c=g(a(796)),d=a(594),h=g(a(807)),k=g(a(808)),f=a(148);a=function(){function n(l,r,m,t,u){var w=this;(0,D.default)(this,n);(0,x.default)(this,"wtSettings",null);(0,x.default)(this,"domBindings",void 0);(0,x.default)(this,"TBODY", 653null);(0,x.default)(this,"THEAD",null);(0,x.default)(this,"COLGROUP",null);(0,x.default)(this,"hasTableHeight",!0);(0,x.default)(this,"hasTableWidth",!0);(0,x.default)(this,"isTableVisible",!1);(0,x.default)(this,"tableOffset",0);(0,x.default)(this,"holderOffset",0);this.domBindings=m;this.isMaster="master"===u;this.name=u;this.dataAccessObject=l;this.facadeGetter=r;this.wtSettings=t;this.wot=this.instance=this.dataAccessObject.wot;this.TABLE=m.rootTable;(0,q.removeTextNodes)(this.TABLE);this.spreader= 654this.createSpreader(this.TABLE);this.hider=this.createHider(this.spreader);this.holder=this.createHolder(this.hider);this.wtRootElement=this.holder.parentNode;this.isMaster&&this.alignOverlaysWithTrimmingContainer();this.fixTableDomTree();this.columnFilter=this.rowFilter=null;this.correctHeaderWidth=!1;var v=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",function(){return w._modifyRowHeaderWidth(v)});this.rowUtils=new k.default(this.dataAccessObject,this.wtSettings); 655this.columnUtils=new h.default(this.dataAccessObject,this.wtSettings);this.tableRenderer=new d.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer")})}return(0,A.default)(n,[{key:"is",value:function(l){return this.name===l}},{key:"fixTableDomTree",value:function(){var l=this.domBindings.rootDocument;(this.TBODY=this.TABLE.querySelector("tbody"))||(this.TBODY= 656l.createElement("tbody"),this.TABLE.appendChild(this.TBODY));(this.THEAD=this.TABLE.querySelector("thead"))||(this.THEAD=l.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY));(this.COLGROUP=this.TABLE.querySelector("colgroup"))||(this.COLGROUP=l.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}},{key:"createSpreader",value:function(l){var r,m=l.parentNode;return m&&m.nodeType===Node.ELEMENT_NODE&&(0,q.hasClass)(m,"wtHolder")||((r=this.domBindings.rootDocument.createElement("div")).className= 657"wtSpreader",m&&m.insertBefore(r,l),r.appendChild(l)),r.style.position="relative",r}},{key:"createHider",value:function(l){var r,m=l.parentNode;return m&&m.nodeType===Node.ELEMENT_NODE&&(0,q.hasClass)(m,"wtHolder")||((r=this.domBindings.rootDocument.createElement("div")).className="wtHider",m&&m.insertBefore(r,l),r.appendChild(l)),r}},{key:"createHolder",value:function(l){var r,m=l.parentNode;return m&&m.nodeType===Node.ELEMENT_NODE&&(0,q.hasClass)(m,"wtHolder")||((r=this.domBindings.rootDocument.createElement("div")).style.position= 658"relative",r.className="wtHolder",m&&m.insertBefore(r,l),this.isMaster&&(r.parentNode.className+="ht_master handsontable",r.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr")),r.appendChild(l)),r}},{key:"draw",value:function(){var l=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=this.wtSettings,m=this.dataAccessObject,t=m.wtOverlays,u=m.wtViewport,w=r.getSetting("totalRows"),v=r.getSetting("totalColumns"),C=r.getSetting("rowHeaders"),y=C.length,z=r.getSetting("columnHeaders"), 659E=z.length;m=!1;if(this.isMaster&&(this.holderOffset=(0,q.offset)(this.holder),l=u.createRenderCalculators(l),y&&!r.getSetting("fixedColumnsStart"))){r=t.inlineStartOverlay.get
659ScrollPosition();var H=this.correctHeaderWidth;this.correctHeaderWidth=0!==r;H!==this.correctHeaderWidth&&(l=!1)}if(this.isMaster&&(m=t.updateStateOfRendering()),l)this.isMaster&&u.createVisibleCalculators(),t&&t.refresh(!0);else{this.isMaster?this.tableOffset=(0,q.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset; 660u=0<w?this.getFirstRenderedRow():0;r=0<v?this.getFirstRenderedColumn():0;this.rowFilter=new c.default(u,w,E);this.columnFilter=new e.default(r,v,y);var G;w=!0;this.isMaster&&(this.alignOverlaysWithTrimmingContainer(),w={},this.wtSettings.getSetting("beforeDraw",!0,w),w=!0!==w.skipRender);w&&((this.tableRenderer.setHeaderContentRenderers(C,z),(this.is(f.CLONE_BOTTOM)||this.is(f.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(C,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(), 661this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(G=this.dataAccessObject.workspaceWidth,this.dataAccessObject.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(f.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster)?(this.dataAccessObject.wtViewport.createVisibleCalculators(),this.dataAccessObject.wtOverlays.refresh(!1),this.dataAccessObject.wtOverlays.applyToDOM(),C=(0,q.outerWidth)(this.hider), 662z=(0,q.outerWidth)(this.TABLE),0!==C&&z!==C&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),G!==this.dataAccessObject.wtViewport.getWorkspaceWidth()&&(this.dataAccessObject.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wtSettings.getSetting("onDraw",!0)):this.is(f.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}this.isMaster&&(G=t.topOverlay.resetFixedPosition(), 663t.bottomOverlay.clone&&(G=t.bottomOverlay.resetFixedPosition()||G),G=t.inlineStartOverlay.resetFixedPosition()||G,t.topInlineStartCornerOverlay&&t.topInlineStartCornerOverlay.resetFixedPosition(),t.bottomInlineStartCornerOverlay&&t.bottomInlineStartCornerOverlay.clone&&t.bottomInlineStartCornerOverlay.resetFixedPosition(),G&&(t.refreshAll(),t.adjustElementsSize()));return this.refreshSelections(l),m&&t.syncScrollWithMaster(),this.dataAccessObject.drawn=!0,this}},{key:"markIfOversizedColumnHeader", 664value:function(l){for(var r,m,t=this.columnFilter.renderedToSource(l),u=this.wtSettings.getSetting("columnHeaders").length,w=this.wtSettings.getSetting("defaultRowHeight"),v=this.wtSettings.getSetting("columnHeaderHeight")||[];u;)--u,l=this.getColumnHeaderHeight(u),(r=this.getColumnHeader(t,u))&&(m=(0,q.innerHeight)(r),(!l&&w<m||l<m)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[u]=m),Array.isArray(v)?null!==v[u]&&void 0!==v[u]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[u]= 665v[u]):isNaN(v)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[u]=v),this.dataAccessObject.wtViewport.oversizedColumnHeaders[u]<(v[u]||v)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[u]=v[u]||v))}},{key:"adjustColumnHeaderHeights",value:function(){for(var l=this.THEAD.childNodes,r=this.dataAccessObject.wtViewport.oversizedColumnHeaders,m=0,t=this.wtSettings.getSetting("columnHeaders").length;m<t;m++)if(r[m]){if(!l[m]||0===l[m].childNodes.length)break;l[m].childNodes[0].style.height= 666"".concat(r[m],"px")}}},{key:"resetOversizedRows",value:function(){var l=this.wtSettings,r=this.dataAccessObject.wtViewport;if((this.isMaster||this.is(f.CLONE_BOTTOM))&&!l.getSetting("externalRowCalculator")){l=this.getRenderedRowsCount();for(var m=0;m<l;m++){var t=this.rowFilter.renderedToSource(m);r.oversizedRows&&r.oversizedRows[t]&&(r.oversizedRows[t]=void 0)}}}},{key:"removeClassFromCells",value:function(l){for(var r=this.TABLE.querySelectorAll(".".concat(l)),m=0,t=r.length;m<t;m++)(0,q.removeClass)(r[m], 667l)}},{key:"refreshSelections",value:function(l){var r=this.wtSettings,m=this.dataAccessObject.selections;if(m){m=Array.from(m);var t=m.length;if(l){for(var u=[],w=0;w<t;w++){var v=m[w].settings,C=v.highlightHeaderClassName,y=v.highlightRowClassName;v=v.highlightColumnClassName;for(var z=m[w].classNames,E=z.length,H=0;H<E;H++)u.includes(z[H])||u.push(z[H]);C&&!u.includes(C)&&u.push(C);y&&!u.includes(y)&&u.push(y);v&&!u.includes(v)&&u.push(v)}r=r.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(r))for(w= 6680;w<r.length;w++)u.push(r[w]);r=u.length;for(w=0;w<r;w++)this.removeClassFromCells(u[w])}for(u=0;
668u<t;u++)m[u].draw(this.facadeGetter(),l)}}},{key:"getCell",value:function(l){var r,m=l.row;l=l.col;(r=this.wtSettings.getSetting("onModifyGetCellCoords",m,l))&&Array.isArray(r)&&(l=(0,B.default)(r,2),m=l[0],l=l[1]);if(this.isRowBeforeRenderedRows(m))return-1;if(this.isRowAfterRenderedRows(m))return-2;if(this.isColumnBeforeRenderedColumns(l))return-3;if(this.isColumnAfterRenderedColumns(l))return-4;if(!(r= 6690>m?this.THEAD.childNodes[this.rowFilter.sourceRowToVisibleColHeadedRow(m)]:this.TBODY.childNodes[this.rowFilter.sourceToRendered(m)])&&0<=m)throw Error("TR was expected to be rendered but is not");m=r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(l)];if(!m&&0<=l)throw Error("TD or TH was expected to be rendered but is not");return m}},{key:"getColumnHeader",value:function(l){var r=this.THEAD.childNodes[1<arguments.length&&void 0!==arguments[1]?arguments[1]:0];return null==r?void 0: 670r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(l)]}},{key:"getColumnHeaders",value:function(l){var r=[],m=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(l);return this.THEAD.childNodes.forEach(function(t){(t=t.childNodes[m])&&r.push(t)}),r}},{key:"getRowHeader",value:function(l){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(0!==this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0)){var m=this.wtSettings.getSetting("rowHeaders").length;if(!(r>=m))return m= 671this.TBODY.childNodes[this.rowFilter.sourceToRendered(l)],null==m?void 0:m.childNodes[r]}}},{key:"getRowHeaders",value:function(l){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return[];for(var r=[],m=this.wtSettings.getSetting("rowHeaders").length,t=0;t<m;t++){var u=this.TBODY.childNodes[this.rowFilter.sourceToRendered(l)];(u=null==u?void 0:u.childNodes[t])&&r.push(u)}return r}},{key:"getCoords",value:function(l){if("TD"!==l.nodeName&&"TH"!==l.nodeName&&(l=(0,q.closest)(l,["TD", 672"TH"])),null===l)return null;var r=l.parentNode,m=r.parentNode;r=(0,q.index)(r);var t=l.cellIndex;(0,q.overlayContainsElement)(f.CLONE_TOP_INLINE_START_CORNER,l,this.wtRootElement)||(0,q.overlayContainsElement)(f.CLONE_TOP,l,this.wtRootElement)?"THEAD"===m.nodeName&&(r-=m.childNodes.length):r=(0,q.overlayContainsElement)(f.CLONE_BOTTOM_INLINE_START_CORNER,l,this.wtRootElement)||(0,q.overlayContainsElement)(f.CLONE_BOTTOM,l,this.wtRootElement)?this.wtSettings.getSetting("totalRows")-m.childNodes.length+ 673r:m===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(r):this.rowFilter.renderedToSource(r);return t=(0,q.overlayContainsElement)(f.CLONE_TOP_INLINE_START_CORNER,l,this.wtRootElement)||(0,q.overlayContainsElement)(f.CLONE_INLINE_START,l,this.wtRootElement)||(0,q.overlayContainsElement)(f.CLONE_BOTTOM_INLINE_START_CORNER,l,this.wtRootElement)?this.columnFilter.offsettedTH(t):this.columnFilter.visibleRowHeadedColumnToSourceColumn(t),this.wot.createCellCoords(r,t)}},{key:"markOversizedRows", 674value:function(){if(!this.wtSettings.getSetting("externalRowCalculator")){var l,r,m=this.TBODY.childNodes.length;if(m*this.wtSettings.getSetting("defaultRowHeight")!==(0,q.innerHeight)(this.TBODY)-1||this.wtSettings.getSetting("fixedRowsBottom"))for(;m;){--m;var t=this.rowFilter.renderedToSource(m);var u=this.getRowHeight(t);var w=(r=(l=this.getTrForRow(t)).querySelector("th"))?(0,q.innerHeight)(r):(0,q.innerHeight)(l)-1;(!u&&this.wtSettings.getSetting("defaultRowHeight")<w||u<w)&&(w+=1,this.dataAccessObject.wtViewport.oversizedRows[t]= 675w)}}}},{key:"getTrForRow",value:function(l){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(l)]}},{key:"isColumnHeaderRendered",value:function(l){if(0<=l)return!1;var r=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(l)<=r}},{key:"isRowHeaderRendered",value:function(l){if(0<=l)return!1;var r=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(l)<=r}},{key:"isRowBeforeRenderedRows",value:function(l){var r=this.getFirstRenderedRow();return 0>l&&0>=r?!this.isRowHeaderRendered(l): 676l<r}},{key:"isRowAfterRenderedRows",value:function(l){return l>this.getLastRenderedRow()}},{key:"isColumnBeforeRenderedColumns",value:function(l){var r=this.getFirstRenderedColumn();return 0>l&&0>=r?!this.isColumnHeaderRendered(l):l<r}},{key:"isColumnAfterRenderedColumns",value:function(l){return this.columnFilter&&l>this.getLastRenderedColumn()}},{key:"isColumnAfterViewport",value:function(l){return this.columnFilter&&l>this.getLastVisibleColumn()}},{key:"isRowAfterViewport",value:function(l){return this.rowFilter&& 677l>this.getLastVisibleRow()}},{key:"isColumnBeforeViewport",value:function(l){return this.columnFilter&&0>this.columnFilter.sourceToRendered(l)&&0<=l}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport", 678value:function(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(l){return this.rowUtils.getHeight(l)}},{key:"getColumnHeaderHeight",value:function(l){return this.columnUtils.getHeaderHeight(l)}},{key:"getColumnWidth",value:function(l){return this.columnUtils.getWidth(l)}},{key:"getStretchedColumnWidth",value:function(l){return this.columnUtils.getStretchedColumnWidth(l)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&& 679this.hasTableWidth}},{key:"getWidth",value:function(){return(0,q.outerWidth)(this.TABLE)}},{key:"getHeight",value:function(){return(0,q.outerHeight)(this.TABLE)}},{key:"getTotalWidth",value:function(){var l=(0,q.outerWidth)(this.hider);return 0!==l?l:this.getWidth()}},{key:"getTotalHeight",value:function(){var l=(0,q.outerHeight)(this.hider);return 0!==l?l:this.getHeight()}},{key:"isVisible",value:function(){return(0,q.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(l){l=(0,p.isFunction)(l)? 680l():null;return Array.isArray(l)?(l=(0,F.default)(l))[l.length-1]=this._correctRowHeaderWidth(l[l.length-1]):l=this._correctRowHeaderWidth(l),l}},{key:"_correctRowHeaderWidth",value:function(l){var r=l;return"number"!=typeof l&&(r=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(r+=1),r}}]),n}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.Overlay=void 0;a(33);var F=g(a(5)),B=g(a(6)),D=g(a(41)),A=a(23),x=a(17),q=a(20),p=a(92),e=a(149),c=g(a(809));a=function(){function d(h, 681k,f,n,l){(0,F.default)(this,d);(0,D.default)(this,"wtSettings",null);(0,x.defineGetter)(this,"wot",h,{writable:!1});this.domBindings=l;this.facadeGetter=k;this.wtSettings=n;var r=this.wot.wtTable;h=r.TABLE;k=r.hider;n=r.spreader;l=r.holder;r=r.wtRootElement;this.instance=this.wot;this.type=f;this.mainTableScrollableElement=null;this.TABLE=h;this.hider=k;this.spreader=n;this.holder=l;this.wtRootElement=r;this.trimmingContainer=(0,A.getTrimmingContainer)(this.hider.parentNode.parentNode);this.updateStateOfRendering(); 682this.clone=this.makeClone()}return(0,B.default)(d,[{key:"updateStateOfRendering",value:function(){var h=this.needFullRender;this.needFullRender=this.shouldBeRendered();h=h!==this.needFullRender;return h&&!this.needFullRender&&this.reset(),h}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,A.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var h=this.wot.wtTable; 683"hidden"===this.domBindings.rootWindow.getComputedStyle(h.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,A.getScrollableElement)(h.TABLE)}},{key:"getRelativeCellPosition",value:function(h,k,f){if(!1!==this.clone.wtTable.holder.contains(h)){var n=this.mainTableScrollableElement===this.domBindings.rootWindow;f=f<this.wtSettings.getSetting("fixedColumnsStart");var l=k<this.wtSettings.getSetting("fixedRowsTop"); 684k=k>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom");var r=this.clone.wtTable.spreader;
684r={start:this.getRelativeStartPosition(r),top:r.offsetTop};h={start:this.getRelativeStartPosition(h),top:h.offsetTop};return n?this.getRelativeCellPositionWithinWindow(l,f,h,r):this.getRelativeCellPositionWithinHolder(l,k,f,h,r)}(0,p.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeStartPosition",value:function(h){return this.isRtl()? 685h.offsetParent.offsetWidth-h.offsetLeft-h.offsetWidth:h.offsetLeft}},{key:"getRelativeCellPositionWithinWindow",value:function(h,k,f,n){var l=this.wot.wtTable.wtRootElement.getBoundingClientRect(),r=0;k?(k=l.left,this.isRtl()&&(k=this.domBindings.rootWindow.innerWidth-(l.left+l.width+(0,A.getScrollbarWidth)())),k=0>=k?-1*k:0):k=n.start;h?r=this.clone.wtTable.TABLE.getBoundingClientRect().top-l.top:r=n.top;return{start:f.start+k,top:f.top+r}}},{key:"getRelativeCellPositionWithinHolder",value:function(h, 686k,f,n,l){var r=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),m=this.wot.wtOverlays.topOverlay.getScrollPosition(),t=0,u=0;(f||(t=r-l.start),k)?(h=this.wot.wtTable.wtRootElement.getBoundingClientRect(),u=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+h.top):h||(u=m-l.top);return{start:n.start-t,top:n.top-u}}},{key:"makeClone",value:function(){if(-1===e.CLONE_TYPES.indexOf(this.type))throw Error('Clone type "'.concat(this.type,'" is not supported.'));var h=this.wot.wtTable,k=this.domBindings, 687f=k.rootDocument;k=k.rootWindow;var n=f.createElement("DIV");f=f.createElement("TABLE");var l=h.wtRootElement.parentNode;n.className="".concat(e.CLONE_CLASS_NAMES.get(this.type)," handsontable");n.setAttribute("dir",this.isRtl()?"rtl":"ltr");n.style.position="absolute";n.style.top=0;n.style.overflow="visible";this.isRtl()?n.style.right=0:n.style.left=0;f.className=h.TABLE.className;n.appendChild(f);l.appendChild(n);n=this.wtSettings.getSetting("preventOverflow");return!0===n||"horizontal"===n&&this.type=== 688e.CLONE_TOP||"vertical"===n&&this.type===e.CLONE_INLINE_START?this.mainTableScrollableElement=k:"hidden"===k.getComputedStyle(l).getPropertyValue("overflow")?this.mainTableScrollableElement=h.holder:this.mainTableScrollableElement=(0,A.getScrollableElement)(h.TABLE),new c.default(f,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selections:this.wot.selections})}},{key:"refresh",value:function(){var h=0<arguments.length&&void 0!==arguments[0]&&arguments[0], 689k=this.shouldBeRendered();this.clone&&(this.needFullRender||k)&&this.clone.draw(h);this.needFullRender=k}},{key:"reset",value:function(){if(this.clone){var h=this.clone.wtTable.holder;(0,q.arrayEach)([h.style,this.clone.wtTable.hider.style,h.parentNode.style],function(k){k.width="";k.height=""})}}},{key:"isRtl",value:function(){return this.wtSettings.getSetting("rtlMode")}},{key:"destroy",value:function(){this.clone.eventManager.destroy()}}]),d}();b.Overlay=a},function(g,b,a){g=a(1);b.__esModule= 690!0;b.getCellType=function(p){if(!q(p))throw Error('You declared cell type "'.concat(p,'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method'));return x(p)};b.hasCellType=b.getRegisteredCellTypes=b.getRegisteredCellTypeNames=void 0;b.registerCellType=function(p,e){"string"!=typeof p&&(p=(e=p).CELL_TYPE);var c=e,d=c.editor,h=c.renderer;c=c.validator;
691d&&(0,F.registerEditor)(p,d);h&&(0,B.registerRenderer)(p,h);c&&(0,D.registerValidator)(p,c);A(p,e)};g=g(a(119));var F=a(166),B=a(203),D=a(204);a=(0,g.default)("cellTypes");var A=a.register,x=a.getItem,q=a.hasItem;g=a.getNames;b.getRegisteredCellTypes=a.getValues;b.getRegisteredCellTypeNames=g;b.hasCellType=q},function(g,b,a){function F(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 692[],function(){})),!0}catch(k){return!1}}();return function(){var k=(0,e.default)(d);if(h){var f=(0,e.default)(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments);return(0,p.default)(this,k)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=g(a(41));a=function(d){function h(f,n){var l;return(0,B.default)(this,h),l=k.call(this,f,null),(0,c.default)((0,A.default)(l),"visualCellRange",null), 693l.visualCellRange=n||null,l.commit(),l}(0,q.default)(h,d);var k=F(h);return(0,D.default)(h,[{key:"add",value:function(f){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(f):this.visualCellRange.expand(f),this}},{key:"clear",value:function(){return this.visualCellRange=null,(0,x.default)((0,e.default)(h.prototype),"clear",this).call(this)}},{key:"trimToVisibleCellsRangeOnly",value:function(f){var n=f.from;f=f.to;var l=this.getNearestNotHiddenCoords(n,1),r=this.getNearestNotHiddenCoords(f, 694-1);if(null===l||null===r)return null;if(l.row>r.row||l.col>r.col){if("header"!==this.settings.type&&"active-header"!==this.settings.type)return null;l=n;r=f}return this.settings.createCellRange(l,l,r)}},{key:"getNearestNotHiddenCoords",value:function(f,n){var l=2<arguments.length&&void 0!==arguments[2]?arguments[2]:n,r=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper(),f.row,n);if(null===r)return null;l=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper(),f.col,l);return null=== 695l?null:this.settings.createCellCoords(r,l)}},{key:"getNearestNotHiddenIndex",value:function(f,n,l){if(0>n)return n;f=f.getNearestNotHiddenIndex(n,l);return"header"!==this.settings.type&&"active-header"!==this.settings.type||null!==f?f:-1}},{key:"commit",value:function(){if(null===this.visualCellRange)return this;var f=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===f?null:this.createRenderableCellRange(f.from,f.to),this}},{key:"syncWith",value:function(f){var n= 696"N-S"===f.getVerticalDirection()?1:-1,l="W-E"===f.getHorizontalDirection()?1:-1;n=this.getNearestNotHiddenCoords(f.from.clone().normalize(),n,l);return null!==n&&f.overlaps(n)?(null===this.cellRange&&(l=this.settings.visualToRenderableCoords(n),this.cellRange=this.settings.createCellRange(l)),f.setHighlight(n),this):(f.setHighlight(f.from),this)}},{key:"getCorners",value:function(){var f=this.cellRange,n=f.from,l=f.to,r=null===n.row||null===l.row,m=null===n.col||null===l.col;f=this.settings.createCellCoords(r? 697null:Math.min(n.row,l.row),m?null:Math.min(n.col,l.col));n=this.settings.createCellCoords(r?null:Math.max(n.row,l.row),m?null:Math.max(n.col,l.col));return[f.row,f.col,n.row,n.col]}},{key:"getVisualCorners",value:function(){var f=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),n=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[f.row,f.col,n.row,n.col]}},{key:"createRenderableCellRange",value:function(f,n){f=this.settings.visualToRenderableCoords(f); 698n=this.settings.visualToRenderableCoords(n);return this.settings.createCellRange(f,f,n)}}]),h}(a(167).Selection);b.default=a},function(g,b,a){function F(q,p){return"border_row".concat(q,"col").concat(p)}b.__esModule=!0;b.checkSelectionBorders=function(q,p){var e=!1;return(0,A.arrayEach)(q.getSelectedRange(),function(c){c.forAll(function(d,h){if(!(0>d||0>h||!(d=q.getCellMeta(d,h).borders)||p&&(0,B.hasOwnProperty)(d[p],"hide")&&!1!==d[p].hide))return e=!0,!1})}),e};b.createDefaultCustomBorder=function(){return{width:1, 699color:"#000"}};b.createDefaultHtBorder=function(){return{width:1,color:"#000",cornerVisible:!1}};b.createEmptyBorders=function(q,p){return{id:F(q,p),border:{width:1,color:"#000",cornerVisible:!1},row:q,col:p,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}};b.createId=F;b.createSingleEmptyBorder=function(){return{hide:!0}};b.denormalizeBorder=function(q){(0,D.isDefined)(q.start)&&(q.left=q.start);(0,D.isDefined)(q.end)&&(q.right=q.end);return q};b.extendDefaultBorder=function(q,p){(0,B.hasOwnProperty)(p, 700"border")&&p.border&&(q.border=p.border);(0,B.hasOwnProperty)(p,"top")&&(0,D.isDefined)(p.top)&&(p.top?((0,B.isObject)(p.top)||(p.top={width:1,color:"#000"}),q.top=p.top):(p.top={hide:!0},q.top=p.top));(0,B.hasOwnProperty)(p,"bottom")&&(0,D.isDefined)(p.bottom)&&(p.bottom?((0,B.isObject)(p.bottom)||(p.bottom={width:1,color:"#000"}),q.bottom=p.bottom):(p.bottom={hide:!0},q.bottom=p.bottom));(0,B.hasOwnProperty)(p,"start")&&(0,D.isDefined)(p.start)&&(p.start?((0,B.isObject)(p.start)||(p.start={width:1, 701color:"#000"}),q.start=p.start):(p.start={hide:!0},q.start=p.start));(0,B.hasOwnProperty)(p,"end")&&(0,D.isDefined)(p.end)&&(p.end?((0,B.isObject)(p.end)||(p.end={width:1,color:"#000"}),q.end=p.end):(p.end={hide:!0},q.end=p.end));return q};b.hasLeftRightTypeOptions=function(q){return q.some(function(p){return(0,D.isDefined)(p.left)||(0,D.isDefined)(p.right)})};b.hasStartEndTypeOptions=function(q){return q.some(function(p){return(0,D.isDefined)(p.start)||(0,D.isDefined)(p.end)})};b.markSelected=function(q){return'\x3cspan class\x3d"selected"\x3e'.concat(String.fromCharCode(10003), 702"\x3c/span\x3e").concat(q)};b.normalizeBorder=function(q){var p,e;((0,D.isDefined)(q.start)||(0,D.isDefined)(q.left))&&(q.start=null!==(p=q.start)&&void 0!==p?p:q.left);((0,D.isDefined)(q.end)||(0,D.isDefined)(q.right))&&(q.end=null!==(e=q.end)&&void 0!==e?e:q.right);return delete q.left,delete q.right,q};
702b.toInlinePropName=function(q){var p;return null!==(p=x.get(q))&&void 0!==p?p:q};a(18);a(0);a(3);a(32);a(2);a(4);var B=a(17),D=a(31),A=a(20),x=new Map([["left","start"],["right","end"]])},function(g, 703b,a){b=a(38);g.exports=!b(function(){var F=function(){}.bind();return"function"!=typeof F||F.hasOwnProperty("prototype")})},function(g,b){g.exports=function(a,F){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:F}}},function(g,b,a){b=a(35);var F=a(38),B=a(127),D=Object,A=b("".split);g.exports=F(function(){return!D("z").propertyIsEnumerable(0)})?function(x){return"String"==B(x)?A(x,""):D(x)}:D},function(g,b,a){var F=a(100),B=a(56),D=a(128);b=a(336);var A=Object;g.exports=b?function(x){return"symbol"== 704typeof x}:function(x){var q=F("Symbol");return B(q)&&D(q.prototype,A(x))}},function(g,b,a){b=a(72);var F=a(65);a=Function.prototype;var B=b&&Object.getOwnPropertyDescriptor,D=(F=F(a,"name"))&&"something"===function(){}.name;b=F&&(!b||b&&B(a,"name").configurable);g.exports={EXISTS:F,PROPER:D,CONFIGURABLE:b}},function(g,b){g.exports={}},function(g,b,a){var F=a(38),B=a(56),D=/#|\.prototype\./;b=function(e,c){e=x[A(e)];return e==p||e!=q&&(B(c)?F(c):!!c)};var A=b.normalize=function(e){return String(e).replace(D, 705".").toLowerCase()},x=b.data={},q=b.NATIVE="N",p=b.POLYFILL="P";g.exports=b},function(g,b,a){b=a(35);g.exports=b([].slice)},function(g,b,a){var F=a(342),B=a(255);g.exports=Object.keys||function(D){return F(D,B)}},function(g,b,a){var F=a(127);g.exports=Array.isArray||function(B){return"Array"==F(B)}},function(g,b,a){var F=a(38);b=a(59);var B=a(154),D=b("species");g.exports=function(A){return 51<=B||!F(function(){var x=[];return(x.constructor={})[D]=function(){return{foo:1}},1!==x[A](Boolean).foo})}}, 706function(g,b){g.exports={}},function(g,b,a){b=a(59);var F=a(140);a=a(80).f;var B=b("unscopables"),D=Array.prototype;null==D[B]&&a(D,B,{configurable:!0,value:F(null)});g.exports=function(A){D[B][A]=!0}},function(g,b,a){var F=a(28),B=a(35);b=a(179);var D=a(63),A=a(65),x=a(80).f,q=a(157),p=a(257),e=a(361),c=a(214),d=a(362),h=!1,k=c("meta"),f=0,n=function(r){x(r,k,{value:{objectID:"O"+f++,weakData:{}}})},l=g.exports={enable:function(){l.enable=function(){};h=!0;var r=q.f,m=B([].splice),t={};t[k]=1;r(t).length&& 707(q.f=function(u){u=r(u);for(var w=0,v=u.length;w<v;w++)if(u[w]===k){m(u,w,1);break}return u},F({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:p.f}))},fastKey:function(r,m){if(!D(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!A(r,k)){if(!e(r))return"F";if(!m)return"E";n(r)}return r[k].objectID},getWeakData:function(r,m){if(!A(r,k)){if(!e(r))return!0;if(!m)return!1;n(r)}return r[k].weakData},onFreeze:function(r){return d&&h&&e(r)&&!A(r,k)&&n(r),r}};b[k]=!0},function(g,b, 708a){var F=a(160),B=a(61),D=a(66),A=a(155),x=a(349),q=a(103),p=a(128),e=a(350),c=a(263),d=a(348),h=TypeError,k=function(n,l){this.stopped=n;this.result=l},f=k.prototype;g.exports=function(n,l,r){var m,t=!(!r||!r.AS_ENTRIES);var u=!(!r||!r.IS_ITERATOR);var w=!(!r||!r.INTERRUPTED),v=F(l,r&&r.that),C=function(z){return y&&d(y,"normal",z),new k(!0,z)};l=function(z){return t?(D(z),w?v(z[0],z[1],C):v(z[0],z[1])):w?v(z,C):v(z)};if(u)var y=n;else{if(!(u=c(n)))throw h(A(n)+" is not iterable");if(x(u)){u=0;for(r= 709q(n);r>u;u++)if((m=l(n[u]))&&p(f,m))return m;return new k(!1)}y=e(n,u)}for(n=y.next;!(u=B(n,y)).done;){try{m=l(u.value)}catch(z){d(y,"throw",z)}if("object"==typeof m&&m&&p(f,m))return m}return new k(!1)}},function(g,b,a){b=a(45);g.exports=b.Promise},function(g,b,a){b=a(45);var F=a(189),B=a(56),D=a(180),A=a(216),x=a(59),q=a(686),p=a(112),e=a(154),c=F&&F.prototype,d=x("species"),h=!1,k=B(b.PromiseRejectionEvent);a=D("Promise",function(){var f=A(F),n=f!==String(F);if(!n&&66===e||p&&(!c.catch||!c.finally))return!0; 710if(51<=e&&/native code/.test(f))return!1;f=new F(function(r){r(1)});var l=function(r){r(function(){},function(){})};return(f.constructor={})[d]=l,!(h=f.then(function(){})instanceof l)||!n&&q&&!k});g.exports={CONSTRUCTOR:a,REJECTION_EVENT:k,SUBCLASSING:h}},function(g,b,a){var F=a(115),B=function(D){var A,x;this.promise=new D(function(q,p){if(void 0!==A||void 0!==x)throw TypeError("Bad Promise constructor");A=q;x=p});this.resolve=F(A);this.reject=F(x)};g.exports.f=function(D){return new B(D)}},function(g, 711b,a){function F(L){var U;(U=function(V){if(Array.isArray(V))return B(V)}(L))||(U="undefined"!=typeof Symbol&&null!=L[Symbol.iterator]||null!=L["@@iterator"]?Array.from(L):void 0);
711if(!(L=U||function(V,Y){if(V){if("string"==typeof V)return B(V,Y);var aa=Object.prototype.toString.call(V).slice(8,-1);"Object"===aa&&V.constructor&&(aa=V.constructor.name);if("Map"===aa||"Set"===aa)return Array.from(V);if("Arguments"===aa||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(aa))return B(V,Y)}}(L)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 712return L}function B(L,U){(null==U||U>L.length)&&(U=L.length);for(var V=0,Y=Array(U);V<U;V++)Y[V]=L[V];return Y}a.r(b);a.d(b,"RANGE_OPERATOR",function(){return A});a.d(b,"ABSOLUTE_OPERATOR",function(){return x});a.d(b,"ALL_WHITESPACE_REGEXP",function(){return q});a.d(b,"ODFF_WHITESPACE_REGEXP",function(){return p});a.d(b,"AdditionOp",function(){return e});a.d(b,"PlusOp",function(){return c});a.d(b,"MinusOp",function(){return d});a.d(b,"MultiplicationOp",function(){return h});a.d(b,"TimesOp",function(){return k}); 713a.d(b,"DivOp",function(){return f});a.d(b,"PowerOp",function(){return n});a.d(b,"PercentOp",function(){return l});a.d(b,"BooleanOp",function(){return r});a.d(b,"EqualsOp",function(){return m});a.d(b,"NotEqualOp",function(){return t});a.d(b,"GreaterThanOp",function(){return u});a.d(b,"LessThanOp",function(){return w});a.d(b,"GreaterThanOrEqualOp",function(){return v});a.d(b,"LessThanOrEqualOp",function(){return C});a.d(b,"ConcatenateOp",function(){return y});a.d(b,"simpleSheetName",function(){return z}); 714a.d(b,"quotedSheetName",function(){return E});a.d(b,"sheetNameRegexp",function(){return H});a.d(b,"CellReference",function(){return G});a.d(b,"ColumnRange",function(){return I});a.d(b,"RowRange",function(){return K});a.d(b,"RangeSeparator",function(){return J});a.d(b,"LParen",function(){return P});a.d(b,"RParen",function(){return S});a.d(b,"ArrayLParen",function(){return R});a.d(b,"ArrayRParen",function(){return O});a.d(b,"ProcedureName",function(){return N});a.d(b,"NamedExpression",function(){return Q}); 715a.d(b,"StringLiteral",function(){return M});a.d(b,"ErrorLiteral",function(){return T});a.d(b,"buildLexerConfig",function(){return Z});a(101);a(12);a(69);a(18);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(22);a(13);a(26);var D=a(233),A=":",x="$",q=/\s+/,p=/[ \t\n\r]+/,e=Object(D.createToken)({name:"AdditionOp",pattern:D.Lexer.NA}),c=Object(D.createToken)({name:"PlusOp",pattern:/\+/,categories:e}),d=Object(D.createToken)({name:"MinusOp",pattern:/-/,categories:e}),h=Object(D.createToken)({name:"MultiplicationOp", 716pattern:D.Lexer.NA}),k=Object(D.createToken)({name:"TimesOp",pattern:/\*/,categories:h}),f=Object(D.createToken)({name:"DivOp",pattern:/\//,categories:h}),n=Object(D.createToken)({name:"PowerOp",pattern:/\^/}),l=Object(D.createToken)({name:"PercentOp",pattern:/%/}),r=Object(D.createToken)({name:"BooleanOp",pattern:D.Lexer.NA}),m=Object(D.createToken)({name:"EqualsOp",pattern:/=/,categories:r}),t=Object(D.createToken)({name:"NotEqualOp",pattern:/<>/,categories:r}),u=Object(D.createToken)({name:"GreaterThanOp", 717pattern:/>/,categories:r}),w=Object(D.createToken)({name:"LessThanOp",pattern:/</,categories:r}),v=Object(D.createToken)({name:"GreaterThanOrEqualOp",pattern:/>=/,categories:r}),C=Object(D.createToken)({name:"LessThanOrEqualOp",pattern:/<=/,categories:r}),y=Object(D.createToken)({name:"ConcatenateOp",pattern:/&/}),z="[A-Za-z0-9_\u00c0-\u02af]+",E="'(((?!').|'')*)'",H="(".concat(z,"|").concat(E,")!"),G=Object(D.createToken)({name:"CellReference",pattern:new RegExp("(".concat(H,")?\\").concat(x,"?[A-Za-z]+\\").concat(x, 718"?[0-9]+"))}),I=Object(D.createToken)({name:"ColumnRange",pattern:new RegExp("(".concat(H,")?\\").concat(x,"?[A-Za-z]+").concat(A,"(").concat(H,")?\\").concat(x,"?[A-Za-z]+"))}),K=Object(D.createToken)({name:"RowRange",pattern:new RegExp("(".concat(H,")?\\").concat(x,"?[0-9]+").concat(A,"(").concat(H,")?\\").concat(x,"?[0-9]+"))}),J=Object(D.createToken)({name:"RangeSeparator",pattern:"".concat(A)}),P=Object(D.createToken)({name:"LParen",pattern:/\(/}),S=Object(D.createToken)({name:"RParen",pattern:/\)/}), 719R=Object(D.createToken)({name:"ArrayLParen",pattern:/{/}),O=Object(D.createToken)({name:"ArrayRParen",pattern:/}/}),N=Object(D.createToken)({name:"ProcedureName",pattern:/([A-Za-z\u00C0-\u02AF][A-Za-z0-9\u00C0-\u02AF._]*)\(/}),Q=Object(D.createToken)({name:"NamedExpression",pattern:/[A-Za-z\u00C0-\u02AF_][A-Za-z0-9\u00C0-\u02AF._]*/}),M=Object(D.createToken)({name:"StringLiteral",pattern:/"([^"\\]*(\\.[^"\\]*)*)"/}),T=Object(D.createToken)({name:"ErrorLiteral",pattern:/#[A-Za-z0-9\/]+[?!]?/}),Z=function(L){var U, 720V,Y=L.translationPackage.getFunctionTranslation("OFFSET"),aa=L.errorMapping,W=L.translationPackage.buildFunctionMapping(),ca=Object(D.createToken)({name:"WhiteSpace",pattern:"standard"===L.ignoreWhiteSpace?p:q}),ia=Object(D.createToken)({name:"ArrayRowSep",pattern:L.arrayRowSeparator}),ba=Object(D.createToken)({name:"ArrayColSep",pattern:L.arrayColumnSeparator});L.functionArgSeparator===L.arrayColumnSeparator?(U=ba,V=[]):L.functionArgSeparator===L.arrayRowSeparator?(U=ia,V=[]):V=[U=Object(D.createToken)({name:"ArgSeparator", 721pattern:L.functionArgSeparator})];var fa=Object(D.createToken)({name:"NumberLiteral",pattern:new RegExp("(([".concat(L.decimalSeparator,"]\\d+)|(\\d+([").concat(L.decimalSeparator,"]\\d*)?))(e[+-]?\\d+)?"))});
721Y=Object(D.createToken)({name:"OffsetProcedureName",pattern:new RegExp(Y,"i")});V=[ca,c,d,k,f,n,m,t,l,v,C,u,w,P,S,R,O,Y,N,J].concat(F(V),[I,K,fa,M,T,y,r,e,h,G,Q,ia,ba]);return{ArgSeparator:U,NumberLiteral:fa,OffsetProcedureName:Y,ArrayRowSeparator:ia,ArrayColSeparator:ba,WhiteSpace:ca,allTokens:V, 722errorMapping:aa,functionMapping:W,decimalSeparator:L.decimalSeparator,maxColumns:L.maxColumns,maxRows:L.maxRows}}},function(g,b,a){function F(m,t){m=m.tokenTypeIdx;return m===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[m]}function B(m,t){return m.tokenTypeIdx===t.tokenTypeIdx}function D(m){m=A(m);x(m);p(m);q(m);Object(n.forEach)(m,function(t){t.isParent=0<t.categoryMatches.length})}function A(m){for(var t=Object(n.cloneArr)(m),u=!0;u;){m=Object(n.compact)(Object(n.flatten)(Object(n.map)(m, 723function(v){return v.CATEGORIES})));var w=Object(n.difference)(m,t);t=t.concat(w);Object(n.isEmpty)(w)?u=!1:m=w}return t}function x(m){Object(n.forEach)(m,function(t){c(t)||(r[l]=t,t.tokenTypeIdx=l++);d(t)&&!Object(n.isArray)(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]);d(t)||(t.CATEGORIES=[]);h(t)||(t.categoryMatches=[]);k(t)||(t.categoryMatchesMap={})})}function q(m){Object(n.forEach)(m,function(t){t.categoryMatches=[];Object(n.forEach)(t.categoryMatchesMap,function(u,w){t.categoryMatches.push(r[w].tokenTypeIdx)})})} 724function p(m){Object(n.forEach)(m,function(t){e([],t)})}function e(m,t){Object(n.forEach)(m,function(u){t.categoryMatchesMap[u.tokenTypeIdx]=!0});Object(n.forEach)(t.CATEGORIES,function(u){var w=m.concat(t);Object(n.contains)(w,u)||e(w,u)})}function c(m){return Object(n.has)(m,"tokenTypeIdx")}function d(m){return Object(n.has)(m,"CATEGORIES")}function h(m){return Object(n.has)(m,"categoryMatches")}function k(m){return Object(n.has)(m,"categoryMatchesMap")}function f(m){return Object(n.has)(m,"tokenTypeIdx")} 725a.r(b);a.d(b,"tokenStructuredMatcher",function(){return F});a.d(b,"tokenStructuredMatcherNoCategories",function(){return B});a.d(b,"tokenShortNameIdx",function(){return l});a.d(b,"tokenIdxToClass",function(){return r});a.d(b,"augmentTokenTypes",function(){return D});a.d(b,"expandCategories",function(){return A});a.d(b,"assignTokenDefaultProps",function(){return x});a.d(b,"assignCategoriesTokensProp",function(){return q});a.d(b,"assignCategoriesMapProp",function(){return p});a.d(b,"singleAssignCategoriesToksMap", 726function(){return e});a.d(b,"hasShortKeyProperty",function(){return c});a.d(b,"hasCategoriesProperty",function(){return d});a.d(b,"hasExtendingTokensTypesProperty",function(){return h});a.d(b,"hasExtendingTokensTypesMapProperty",function(){return k});a.d(b,"isTokenType",function(){return f});var n=a(48),l=1,r={}},function(g,b,a){function F(k){return k instanceof e.Flat||k instanceof e.Option||k instanceof e.Repetition||k instanceof e.RepetitionMandatory||k instanceof e.RepetitionMandatoryWithSeparator|| 727k instanceof e.RepetitionWithSeparator||k instanceof e.Terminal||k instanceof e.Rule}function B(k,f){return void 0===f&&(f=[]),!!(k instanceof e.Option||k instanceof e.Repetition||k instanceof e.RepetitionWithSeparator)||(k instanceof e.Alternation?Object(p.some)(k.definition,function(n){return B(n,f)}):!(k instanceof e.NonTerminal&&Object(p.contains)(f,k))&&k instanceof e.AbstractProduction&&(k instanceof e.NonTerminal&&f.push(k),Object(p.every)(k.definition,function(n){return B(n,f)})))}function D(k){return k instanceof 728e.Alternation}function A(k){if(k instanceof e.NonTerminal)return"SUBRULE";if(k instanceof e.Option)return"OPTION";if(k instanceof e.Alternation)return"OR";if(k instanceof e.RepetitionMandatory)return"AT_LEAST_ONE";if(k instanceof e.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(k instanceof e.RepetitionWithSeparator)return"MANY_SEP";if(k instanceof e.Repetition)return"MANY";if(k instanceof e.Terminal)return"CONSUME";throw Error("non exhaustive match");}function x(k){h.reset();k.accept(h); 729k=h.dslMethods;return h.reset(),k}a.r(b);a.d(b,"isSequenceProd",function(){return F});a.d(b,"isOptionalProd",function(){return B});a.d(b,"isBranchingProd",function(){return D});a.d(b,"getProductionDslName",function(){return A});a.d(b,"DslMethodsCollectorVisitor",function(){return d});a.d(b,"collectMethods",function(){return x});var q,p=a(48),e=a(57);g=a(142);var c=(q=function(k,f){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var r in l)l.hasOwnProperty(r)&& 730(n[r]=l[r])})(k,f)},function(k,f){function n(){this.constructor=k}q(k,f);k.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}),d=function(k){function f(){var n=null!==k&&k.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return c(f,k),f.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[], 731repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},f.prototype.visitTerminal=function(n){var l=n.terminalType.name+this.separator+"Terminal";Object(p.has)(this.dslMethods,l)||(this.dslMethods[l]=[]);this.dslMethods[l].push(n)},f.prototype.visitNonTerminal=function(n){var l=n.nonTerminalName+this.separator+"Terminal";Object(p.has)(this.dslMethods,l)||(this.dslMethods[l]=[]);this.dslMethods[l].push(n)},f.prototype.visitOption=function(n){this.dslMethods.option.push(n)},f.prototype.visitRepetitionWithSeparator= 732function(n){this.dslMethods.repetitionWithSeparator.push(n)},f.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},f.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},f.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},f.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},f}(g.GAstVisitor),h=new d},function(g,b,a){function F(n,l,r){return r|l| 733n}function B(n,l,r,m){return r|l|n|m+1<<f}a.r(b);a.d(b,"BITS_FOR_METHOD_TYPE",function(){return D});a.d(b,"BITS_FOR_OCCURRENCE_IDX",function(){return A});a.d(b,"BITS_FOR_RULE_IDX",function(){return x});a.d(b,"BITS_FOR_ALT_IDX",function(){return q});a.d(b,"OR_IDX",function(){return p});a.d(b,"OPTION_IDX",function(){return e});a.d(b,"MANY_IDX",function(){return c});a.d(b,"AT_LEAST_ONE_IDX",function(){return d});a.d(b,"MANY_SEP_IDX",function(){return h});a.d(b,"AT_LEAST_ONE_SEP_IDX",function(){return k}); 734a.d(b,"getKeyForAutomaticLookahead",function(){return F});a.d(b,"getKeyForAltIndex",function(){return B});var D=4,A=8,x=12,q=8,p=1<<A,e=2<<A,c=3<<A,d=4<<A,h=5<<A,k=6<<A,f=32-q},function(g,b,a){function F(c){c=Object(A.defaults)(c,{errMsgProvider:p.defaultGrammarResolverErrorProvider});var d={};return Object(A.forEach)(c.rules,function(h){d[h.name]=h}),Object(x.resolveGrammar)(d,c.errMsgProvider)}function B(c){return c=Object(A.defaults)(c,{errMsgProvider:p.defaultGrammarValidatorErrorProvider,ignoredIssues:{}}
734), 735Object(q.validateGrammar)(c.rules,c.maxLookahead,c.tokenTypes,c.ignoredIssues,c.errMsgProvider,c.grammarName)}function D(c){Object(A.forEach)(c.rules,function(d){var h=new e.DslMethodsCollectorVisitor;d.accept(h);Object(A.forEach)(h.dslMethods,function(k){Object(A.forEach)(k,function(f,n){f.idx=n+1})})})}a.r(b);a.d(b,"resolveGrammar",function(){return F});a.d(b,"validateGrammar",function(){return B});a.d(b,"assignOccurrenceIndices",function(){return D});var A=a(48),x=a(700),q=a(234),p=a(143),e=a(194)}, 736function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(){function e(S,R,O){return Object.defineProperty(S,R,{value:O,enumerable:!0,configurable:!0,writable:!0}),S[R]}function c(S,R,O,N){R=Object.create((R&&R.prototype instanceof h?R:h).prototype);N=new u(N||[]);return R._invoke=function(Q,M,T){var Z= 737"suspendedStart";return function(L,U){if("executing"===Z)throw Error("Generator is already running");if("completed"===Z){if("throw"===L)throw U;return v()}T.method=L;for(T.arg=U;;){if(L=T.delegate)if(L=r(L,T)){if(L===K)continue;return L}if("next"===T.method)T.sent=T._sent=T.arg;else if("throw"===T.method){if("suspendedStart"===Z)throw Z="completed",T.arg;T.dispatchException(T.arg)}else"return"===T.method&&T.abrupt("return",T.arg);Z="executing";L=d(Q,M,T);if("normal"===L.type){if(Z=T.done?"completed": 738"suspendedYield",L.arg===K)continue;return{value:L.arg,done:T.done}}"throw"===L.type&&(Z="completed",T.method="throw",T.arg=L.arg)}}}(S,O,N),R}function d(S,R,O){try{return{type:"normal",arg:S.call(R,O)}}catch(N){return{type:"throw",arg:N}}}function h(){}function k(){}function f(){}function n(S){["next","throw","return"].forEach(function(R){e(S,R,function(O){return this._invoke(R,O)})})}function l(S,R){var O;this._invoke=function(N,Q){function M(){return new R(function(T,Z){!function W(U,V,Y,aa){U= 739d(S[U],S,V);if("throw"!==U.type){var ca=U.arg;return(U=ca.value)&&"object"==F(U)&&z.call(U,"__await")?R.resolve(U.__await).then(function(ia){W("next",ia,Y,aa)},function(ia){W("throw",ia,Y,aa)}):R.resolve(U).then(function(ia){ca.value=ia;Y(ca)},function(ia){return W("throw",ia,Y,aa)})}aa(U.arg)}(N,Q,T,Z)})}return O=O?O.then(M,M):M()}}function r(S,R){var O=S.iterator[R.method];if(void 0===O){if(R.delegate=null,"throw"===R.method){if(S.iterator.return&&(R.method="return",R.arg=void 0,r(S,R),"throw"=== 740R.method))return K;R.method="throw";R.arg=new TypeError("The iterator does not provide a 'throw' method")}return K}O=d(O,S.iterator,R.arg);return"throw"===O.type?(R.method="throw",R.arg=O.arg,R.delegate=null,K):(O=O.arg)?O.done?(R[S.resultName]=O.value,R.next=S.nextLoc,"return"!==R.method&&(R.method="next",R.arg=void 0),R.delegate=null,K):O:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,K)}function m(S){var R={tryLoc:S[0]};1 in S&&(R.catchLoc=S[1]);2 in S&& 741(R.finallyLoc=S[2],R.afterLoc=S[3]);this.tryEntries.push(R)}function t(S){var R=S.completion||{};R.type="normal";delete R.arg;S.completion=R}function u(S){this.tryEntries=[{tryLoc:"root"}];S.forEach(m,this);this.reset(!0)}function w(S){if(S){var R=S[H];if(R)return R.call(S);if("function"==typeof S.next)return S;if(!isNaN(S.length)){var O=-1;R=function Q(){for(;++O<S.length;)if(z.call(S,O))return Q.value=S[O],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return R.next=R}}return{next:v}}function v(){return{value:void 0, 742done:!0}}B=function(){return C};var C={},y=Object.prototype,z=y.hasOwnProperty,E="function"==typeof Symbol?Symbol:{},H=E.iterator||"@@iterator",G=E.asyncIterator||"@@asyncIterator",I=E.toStringTag||"@@toStringTag";try{e({},"")}catch(S){e=function(R,O,N){return R[O]=N}}C.wrap=c;var K={};E={};e(E,H,function(){return this});var J=Object.getPrototypeOf;(J=J&&J(J(w([]))))&&J!==y&&z.call(J,H)&&(E=J);var P=f.prototype=h.prototype=Object.create(E);return k.prototype=f,e(P,"constructor",f),e(f,"constructor", 743k),k.displayName=e(f,I,"GeneratorFunction"),C.isGeneratorFunction=function(S){S="function"==typeof S&&S.constructor;return!!S&&(S===k||"GeneratorFunction"===(S.displayName||S.name))},C.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,f):(S.__proto__=f,e(S,I,"GeneratorFunction")),S.prototype=Object.create(P),S},C.awrap=function(S){return{__await:S}},n(l.prototype),e(l.prototype,G,function(){return this}),C.AsyncIterator=l,C.async=function(S,R,O,N,Q){void 0===Q&&(Q=Promise);var M= 744new l(c(S,R,O,N),Q);return C.isGeneratorFunction(R)?M:M.next().then(function(T){return T.done?T.value:M.next()})},n(P),e(P,I,"Generator"),e(P,H,function(){return this}),e(P,"toString",function(){return"[object Generator]"}),C.keys=function(S){var R=[],O;for(O in S)R.push(O);return R.reverse(),function Q(){for(;R.length;){var M=R.pop();if(M in S)return Q.value=M,Q.done=!1,Q}return Q.done=!0,Q}},C.values=w,u.prototype={constructor:u,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent= 745void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
745h(t),!S)for(var R in this)"t"===R.charAt(0)&&z.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var S=this.tryEntries[0].completion;if("throw"===S.type)throw S.arg;return this.rval},dispatchException:function(S){function R(L,U){return M.type="throw",M.arg=S,O.next=L,U&&(O.method="next",O.arg=void 0),!!U}if(this.done)throw S;for(var O=this,N=this.tryEntries.length-1;0<=N;--N){var Q= 746this.tryEntries[N],M=Q.completion;if("root"===Q.tryLoc)return R("end");if(Q.tryLoc<=this.prev){var T=z.call(Q,"catchLoc"),Z=z.call(Q,"finallyLoc");if(T&&Z){if(this.prev<Q.catchLoc)return R(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return R(Q.finallyLoc)}else if(T){if(this.prev<Q.catchLoc)return R(Q.catchLoc,!0)}else{if(!Z)throw Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return R(Q.finallyLoc)}}}},abrupt:function(S,R){for(var O=this.tryEntries.length-1;0<=O;--O){var N= 747this.tryEntries[O];if(N.tryLoc<=this.prev&&z.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var Q=N;break}}Q&&("break"===S||"continue"===S)&&Q.tryLoc<=R&&R<=Q.finallyLoc&&(Q=null);O=Q?Q.completion:{};return O.type=S,O.arg=R,Q?(this.method="next",this.next=Q.finallyLoc,K):this.complete(O)},complete:function(S,R){if("throw"===S.type)throw S.arg;return"break"===S.type||"continue"===S.type?this.next=S.arg:"return"===S.type?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):"normal"===S.type&& 748R&&(this.next=R),K},finish:function(S){for(var R=this.tryEntries.length-1;0<=R;--R){var O=this.tryEntries[R];if(O.finallyLoc===S)return this.complete(O.completion,O.afterLoc),t(O),K}},catch:function(S){for(var R=this.tryEntries.length-1;0<=R;--R){var O=this.tryEntries[R];if(O.tryLoc===S){S=O.completion;if("throw"===S.type){var N=S.arg;t(O)}return N}}throw Error("illegal catch attempt");},delegateYield:function(S,R,O){return this.delegate={iterator:w(S),resultName:R,nextLoc:O},"next"===this.method&& 749(this.arg=void 0),K}},C}function D(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function");}function A(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}function x(e,c,d){return c&&A(e.prototype,c),d&&A(e,d),Object.defineProperty(e,"prototype",{writable:!1}),e}a.r(b);a.d(b,"RowsSpan",function(){return q});a.d(b,"ColumnsSpan",function(){return p});a(8);a(9);a(0);a(10); 750a(3);a(2);a(4);a(86);a(87);a(88);a(89);a(25);a(27);a(26);a(90);a(62);a(13);var q=function(){function e(c,d,h){if(D(this,e),this.sheet=c,this.rowStart=d,this.rowEnd=h,0>d)throw Error("Starting row cant be less than 0");if(h<d)throw Error("Row span cant end before start");}return x(e,[{key:"numberOfRows",get:function(){return this.rowEnd-this.rowStart+1}},{key:"start",get:function(){return this.rowStart}},{key:"end",get:function(){return this.rowEnd}},{key:"rows",value:B().mark(function d(){var h;return B().wrap(function(k){for(;;)switch(k.prev= 751k.next){case 0:h=this.rowStart;case 1:if(!(h<=this.rowEnd)){k.next=7;break}return k.next=4,h;case 4:++h;k.next=1;break;case 7:case "end":return k.stop()}},d,this)})},{key:"intersect",value:function(d){if(this.sheet!==d.sheet)throw Error("Can't intersect spans from different sheets");var h=Math.max(this.rowStart,d.rowStart);d=Math.min(this.rowEnd,d.rowEnd);return h>d?null:new e(this.sheet,h,d)}},{key:"firstRow",value:function(){return new e(this.sheet,this.rowStart,this.rowStart)}}],[{key:"fromNumberOfRows", 752value:function(d,h,k){return new e(d,h,h+k-1)}},{key:"fromRowStartAndEnd",value:function(d,h,k){return new e(d,h,k)}}]),e}(),p=function(){function e(c,d,h){if(D(this,e),this.sheet=c,this.columnStart=d,this.columnEnd=h,0>d)throw Error("Starting column cant be less than 0");if(h<d)throw Error("Column span cant end before start");}return x(e,[{key:"numberOfColumns",get:function(){return this.columnEnd-this.columnStart+1}},{key:"start",get:function(){return this.columnStart}},{key:"end",get:function(){return this.columnEnd}}, 753{key:"columns",value:B().mark(function d(){var h;return B().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:h=this.columnStart;case 1:if(!(h<=this.columnEnd)){k.next=7;break}return k.next=4,h;case 4:++h;k.next=1;break;case 7:case "end":return k.stop()}},d,this)})},{key:"intersect",value:function(d){if(this.sheet!==d.sheet)throw Error("Can't intersect spans from different sheets");var h=Math.max(this.columnStart,d.columnStart);d=Math.min(this.columnEnd,d.columnEnd);return h>d?null:new e(this.sheet, 754h,d)}},{key:"firstColumn",value:function(){return new e(this.sheet,this.columnStart,this.columnStart)}}],[{key:"fromNumberOfColumns",value:function(d,h,k){return new e(d,h,h+k-1)}},{key:"fromColumnStartAndEnd",value:function(d,h,k){return new e(d,h,k)}}]),e}()},function(g,b,a){function F(D,A){for(var x=0;x<A.length;x++){var q=A[x];q.enumerable=q.enumerable||!1;q.configurable=!0;"value"in q&&(q.writable=!0);Object.defineProperty(D,q.key,q)}}a.r(b);a.d(b,"InterpreterState",function(){return B});var B= 755function(D,A,x){return A&&F(D.prototype,A),x&&F(D,x),Object.defineProperty(D,"prototype",{writable:!1}),D}(function p(A,x,q){if(!(this instanceof p))throw new TypeError("Cannot call a class as a function");!0;this.formulaAddress=A;this.arraysFlag=x;this.formulaVertex=q})},function(g,b,a){function F(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function");}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable= 756!0);Object.defineProperty(c,k.key,k)}}function D(c,d,h){return d&&B(c.prototype,d),h&&B(c,h),Object.defineProperty(c,"prototype",{writable:!1}),c}a.r(b);a.d(b,"DenseSparseChooseBasedOnThreshold",function(){return q});a.d(b,"AlwaysSparse",function(){return p});a.d(b,"AlwaysDense",function(){return e});var A=a(296),x=a(295),q=function(){function c(d){F(this,c);this.threshold=d}return D(c,[{key:"call",value:function(d){return d>this.threshold?A.DenseStrategy:x.SparseStrategy}}]),c}(),p=function(){function c(){F(this, 757c)}return D(c,[{key:"call",value:function(){return x.SparseStrategy}}]),c}(),e=function(){function c(){F(this,c)}return D(c,[{key:"call",value:function(){return A.DenseStrategy}}]),c}()},function(g,b,a){function F(w){var v=Array.isArray(w)?D(w):void 0;v||(v="undefined"!=typeof Symbol&&null!=w[Symbol.iterator]||null!=w["@@iterator"]?Array.from(w):void 0);
757if(!(w=v||B(w)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 758return w}function B(w,v){if(w){if("string"==typeof w)return D(w,v);var C=Object.prototype.toString.call(w).slice(8,-1);return"Object"===C&&w.constructor&&(C=w.constructor.name),"Map"===C||"Set"===C?Array.from(w):"Arguments"===C||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?D(w,v):void 0}}function D(w,v){(null==v||v>w.length)&&(v=w.length);for(var C=0,y=Array(v);C<v;C++)y[C]=w[C];return y}function A(w,v){for(var C=0;C<v.length;C++){var y=v[C];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in 759y&&(y.writable=!0);Object.defineProperty(w,y.key,y)}}a.r(b);a.d(b,"HyperFormula",function(){return u});a(18);a(36);a(22);a(2);a(3);a(0);a(4);a(32);a(13);a(26);a(12);a(8);a(9);a(10);var x=a(91),q=a(391),p=a(730),e=a(24),c=a(201),d=a(239),h=a(164),k=a(749),f=a(751),n=a(40),l=a(238),r=a(305),m=a(241),t=a(74),u=function(){function w(y,z,E,H,G,I,K,J,P,S,R,O,N,Q){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");!0;this._config=y;this._stats=z;this._dependencyGraph=E;this._columnSearch= 760H;this._parser=G;this._unparser=I;this._cellContentParser=K;this._evaluator=J;this._lazilyTransformingAstService=P;this._crudOperations=S;this._exporter=R;this._namedExpressions=O;this._serialization=N;this._functionRegistry=Q;this._emitter=new f.Emitter;this._evaluationSuspended=!1}var v,C;return C=[{key:"defaultConfig",get:function(){return Object(d.getDefaultConfig)()}},{key:"buildFromArray",value:function(y){return this.buildFromEngineState(p.BuildEngineFactory.buildFromSheet(y,1<arguments.length&& 761void 0!==arguments[1]?arguments[1]:{},2<arguments.length&&void 0!==arguments[2]?arguments[2]:[]))}},{key:"buildFromSheets",value:function(y){return this.buildFromEngineState(p.BuildEngineFactory.buildFromSheets(y,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},2<arguments.length&&void 0!==arguments[2]?arguments[2]:[]))}},{key:"buildEmpty",value:function(){return this.buildFromEngineState(p.BuildEngineFactory.buildEmpty(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},1<arguments.length&& 762void 0!==arguments[1]?arguments[1]:[]))}},{key:"getLanguage",value:function(y){Object(q.validateArgToType)(y,"string","languageCode");y=this.registeredLanguages.get(y);if(void 0===y)throw new n.LanguageNotRegisteredError;return y}},{key:"registerLanguage",value:function(y,z){if(Object(q.validateArgToType)(y,"string","languageCode"),this.registeredLanguages.has(y))throw new n.LanguageAlreadyRegisteredError;this.registeredLanguages.set(y,Object(l.buildTranslationPackage)(z))}},{key:"unregisterLanguage", 763value:function(y){if(Object(q.validateArgToType)(y,"string","languageCode"),!this.registeredLanguages.has(y))throw new n.LanguageNotRegisteredError;this.registeredLanguages.delete(y)}},{key:"getRegisteredLanguagesCodes",value:function(){return Array.from(this.registeredLanguages.keys())}},{key:"registerFunctionPlugin",value:function(y,z){r.FunctionRegistry.registerFunctionPlugin(y,z)}},{key:"unregisterFunctionPlugin",value:function(y){r.FunctionRegistry.unregisterFunctionPlugin(y)}},{key:"registerFunction", 764value:function(y,z,E){Object(q.validateArgToType)(y,"string","functionId");r.FunctionRegistry.registerFunction(y,z,E)}},{key:"unregisterFunction",value:function(y){Object(q.validateArgToType)(y,"string","functionId");r.FunctionRegistry.unregisterFunction(y)}},{key:"unregisterAllFunctions",value:function(){r.FunctionRegistry.unregisterAll()}},{key:"getRegisteredFunctionNames",value:function(y){Object(q.validateArgToType)(y,"string","code");var z=r.FunctionRegistry.getRegisteredFunctionIds();return this.getLanguage(y).getFunctionTranslations(z)}}, 765{key:"getFunctionPlugin",value:function(y){return Object(q.validateArgToType)(y,"string","functionId"),r.FunctionRegistry.getFunctionPlugin(y)}},{key:"getAllFunctionPlugins",value:function(){return r.FunctionRegistry.getPlugins()}},{key:"buildFromEngineState",value:function(y){return new w(y.config,y.stats,y.dependencyGraph,y.columnSearch,y.parser,y.unparser,y.cellContentParser,y.evaluator,y.lazilyTransformingAstService,y.crudOperations,y.exporter,y.namedExpressions,y.serialization,y.functionRegistry)}}], 766v=[{key:"graph",get:function(){return this.dependencyGraph.graph}},{key:"rangeMapping",get:function(){return this.dependencyGraph.rangeMapping}},{key:"arrayMapping",get:function(){return this.dependencyGraph.arrayMapping}},{key:"sheetMapping",get:function(){return this.dependencyGraph.sheetMapping}},{key:"addressMapping",get:function(){return this.dependencyGraph.addressMapping}},{key:"dependencyGraph",get:function(){return this._dependencyGraph}},{key:"evaluator",get:function(){return this._evaluator}}, 767{key:"columnSearch",get:function(){return this._columnSearch}},{key:"lazilyTransformingAstService",get:function(){return this._lazilyTransformingAstService}},{key:"licenseKeyValidityState",get:function(){return this._config.licenseKeyValidityState}},{key:"getCellValue",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.ensureEvaluationIsNotSuspended(),this._serialization.getCellValue(y)}},{key:"getCellFormula", 768value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this._serialization.getCellFormula(y)}},{key:"getCellSerialized",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.ensureEvaluationIsNotSuspended(),this._serialization.getCellSerialized(y)}},{key:"getSheetValues",value:function(y){return Object(q.validateArgToType)(y,"number","sheetId"), 769this.ensureEvaluationIsNotSuspended(),this._serialization.getSheetValues(y)}},{key:"getSheetFormulas",value:function(y){return Object(q.validateArgToType)(y,"number","sheetId"),this._serialization.getSheetFormulas(y)}},{key:"getSheetSerialized",value:function(y){return Object(q.validateArgToType)(y,"number","sheetId"),this.ensureEvaluationIsNotSuspended(),this._serialization.getSheetSerialized(y)}},{key:"getAllSheetsDimensions",value:function(){var y=this;return this._serialization.genericAllSheetsGetter(function(z){return y.getSheetDimensions(z)})}}, 770{key:"getSheetDimensions",value:function(y){return Object(q.validateArgToType)(y,"number","sheetId"),{width:this.dependencyGraph.getSheetWidth(y),height:this.dependencyGraph.getSheetHeight(y)}}},{key:"getAllSheetsValues",value:function(){return this.ensureEvaluationIsNotSuspended(),this._serialization.getAllSheetsValues()}},{key:"getAllSheetsFormulas",value:function(){return this._serialization.getAllSheetsFormulas()}},{key:"getAllSheetsSerialized",value:function(){return this.ensureEvaluationIsNotSuspended(), 771this._serialization.getAllSheetsSerialized()}},{key:"updateConfig",value:function(y){var z=this._config.mergeConfig(y);y=this._config.mergeConfig({language:y.language});y=this._serialization.withNewConfig(y,this._namedExpressions).getAllSheetsSerialized();var E=this._serialization.getAllNamedExpressionsSerialized();z=p.BuildEngineFactory.rebuildWithConfig(z,y,E,this._stats);this._config=z.config;this._stats=z.stats;this._dependencyGraph=z.dependencyGraph;this._columnSearch=z.columnSearch;this._parser= 772z.parser;this._unparser=z.unparser;this._cellContentParser=z.cellContentParser;this._evaluator=z.evaluator;this._lazilyTransformingAstService=z.lazilyTransformingAstService;this._crudOperations=z.crudOperations;this._exporter=z.exporter;this._namedExpressions=z.namedExpressions;this._serialization=z.serialization;this._functionRegistry=z.functionRegistry}},{key:"getConfig",value:function(){return this._config.getConfig()}},{key:"rebuildAndRecalculate",value:function(){this.updateConfig({})}},{key:"getStats", 773value:function(){return this._stats.snapshot()}},{key:"undo",value:function(){return this._crudOperations.undo(),this.recomputeIfDependencyGraphNeedsIt()}},{key:"redo",value:function(){return this._crudOperations.redo(),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isThereSomethingToUndo",value:function(){return this._crudOperations.isThereSomethingToUndo()}},{key:"isThereSomethingToRedo",value:function(){return this._crudOperations.isThereSomethingToRedo()}}
773,{key:"isItPossibleToSetCellContents", 774value:function(y){if(Object(e.isSimpleCellAddress)(y))y=new x.AbsoluteCellRange(y,y);else{if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange","address");y=new x.AbsoluteCellRange(y.start,y.end)}try{this._crudOperations.ensureRangeInSizeLimits(y);var z,E=function(H,G){var I="undefined"!=typeof Symbol&&H[Symbol.iterator]||H["@@iterator"];if(!I){if(Array.isArray(H)||(I=B(H))||G&&H&&"number"==typeof H.length){I&&(H=I);var K=0;G=function(){};return{s:G, 775n:function(){return K>=H.length?{done:!0}:{done:!1,value:H[K++]}},e:function(R){throw R;},f:G}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var J,P=!0,S=!1;return{s:function(){I=I.call(H)},n:function(){var R=I.next();return P=R.done,R},e:function(R){S=!0;J=R},f:function(){try{P||null==I.return||I.return()}finally{if(S)throw J;}}}}(y.addresses(this._dependencyGraph));try{for(E.s();!(z=E.n()).done;)this._crudOperations.ensureItIsPossibleToChangeContent(z.value)}catch(H){E.e(H)}finally{E.f()}}catch(H){return!1}return!0}}, 776{key:"setCellContents",value:function(y,z){return this._crudOperations.setCellContents(y,z),this.recomputeIfDependencyGraphNeedsIt()}},{key:"swapRowIndexes",value:function(y,z){return Object(q.validateArgToType)(y,"number","sheetId"),this._crudOperations.setRowOrder(y,z),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToSwapRowIndexes",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");try{return this._crudOperations.validateSwapRowIndexes(y,z),this._crudOperations.testRowOrderForArrays(y, 777z),!0}catch(E){return!1}}},{key:"setRowOrder",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");z=this._crudOperations.mappingFromOrder(y,z,"row");return this.swapRowIndexes(y,z)}},{key:"isItPossibleToSetRowOrder",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");try{var E=this._crudOperations.mappingFromOrder(y,z,"row");return this._crudOperations.validateSwapRowIndexes(y,E),this._crudOperations.testRowOrderForArrays(y,E),!0}catch(H){return!1}}},{key:"swapColumnIndexes", 778value:function(y,z){return Object(q.validateArgToType)(y,"number","sheetId"),this._crudOperations.setColumnOrder(y,z),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToSwapColumnIndexes",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");try{return this._crudOperations.validateSwapColumnIndexes(y,z),this._crudOperations.testColumnOrderForArrays(y,z),!0}catch(E){return!1}}},{key:"setColumnOrder",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");z= 779this._crudOperations.mappingFromOrder(y,z,"column");return this.swapColumnIndexes(y,z)}},{key:"isItPossibleToSetColumnOrder",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");try{var E=this._crudOperations.mappingFromOrder(y,z,"column");return this._crudOperations.validateSwapColumnIndexes(y,E),this._crudOperations.testColumnOrderForArrays(y,E),!0}catch(H){return!1}}},{key:"isItPossibleToAddRows",value:function(y){Object(q.validateArgToType)(y,"number","sheetId");for(var z=arguments.length, 780E=Array(1<z?z-1:0),H=1;H<z;H++)E[H-1]=arguments[H];z=Object(m.normalizeAddedIndexes)(E);try{var G;return(G=this._crudOperations).ensureItIsPossibleToAddRows.apply(G,[y].concat(F(z))),!0}catch(I){return!1}}},{key:"addRows",value:function(y){var z;Object(q.validateArgToType)(y,"number","sheetId");for(var E=arguments.length,H=Array(1<E?E-1:0),G=1;G<E;G++)H[G-1]=arguments[G];return(z=this._crudOperations).addRows.apply(z,[y].concat(H)),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToRemoveRows", 781value:function(y){Object(q.validateArgToType)(y,"number","sheetId");for(var z=arguments.length,E=Array(1<z?z-1:0),H=1;H<z;H++)E[H-1]=arguments[H];z=Object(m.normalizeRemovedIndexes)(E);try{var G;return(G=this._crudOperations).ensureItIsPossibleToRemoveRows.apply(G,[y].concat(F(z))),!0}catch(I){return!1}}},{key:"removeRows",value:function(y){var z;Object(q.validateArgToType)(y,"number","sheetId");for(var E=arguments.length,H=Array(1<E?E-1:0),G=1;G<E;G++)H[G-1]=arguments[G];return(z=this._crudOperations).removeRows.apply(z, 782[y].concat(H)),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToAddColumns",value:function(y){Object(q.validateArgToType)(y,"number","sheetId");for(var z=arguments.length,E=Array(1<z?z-1:0),H=1;H<z;H++)E[H-1]=arguments[H];z=Object(m.normalizeAddedIndexes)(E);try{var G;return(G=this._crudOperations).ensureItIsPossibleToAddColumns.apply(G,[y].concat(F(z))),!0}catch(I){return!1}}},{key:"addColumns",value:function(y){var z;Object(q.validateArgToType)(y,"number","sheetId");for(var E=arguments.length, 783H=Array(1<E?E-1:0),G=1;G<E;G++)H[G-1]=arguments[G];return(z=this._crudOperations).addColumns.apply(z,[y].concat(H)),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToRemoveColumns",value:function(y){Object(q.validateArgToType)(y,"number","sheetId");for(var z=arguments.length,E=Array(1<z?z-1:0),H=1;H<z;H++)E[H-1]=arguments[H];z=Object(m.normalizeRemovedIndexes)(E);try{var G;return(G=this._crudOperations).ensureItIsPossibleToRemoveColumns.apply(G,[y].concat(F(z))),!0}catch(I){return!1}}}, 784{key:"removeColumns",value:function(y){var z;Object(q.validateArgToType)(y,"number","sheetId");for(var E=arguments.length,H=Array(1<E?E-1:0),G=1;G<E;G++)H[G-1]=arguments[G];return(z=this._crudOperations).removeColumns.apply(z,[y].concat(H)),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToMoveCells",value:function(y,z){if(!Object(e.isSimpleCellAddress)(z))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","destinationLeftCorner");if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange", 785"source");try{var E=new x.AbsoluteCellRange(y.start,y.end);return this._crudOperations.operations.ensureItIsPossibleToMoveCells(E.start,E.width(),E.height(),z),!0}catch(H){return!1}}},{key:"moveCells",value:function(y,z){if(!Object(e.isSimpleCellAddress)(z))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","destinationLeftCorner");if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange","source");y=new x.AbsoluteCellRange(y.start,y.end);return this._crudOperations.moveCells(y.start, 786y.width(),y.height(),z),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToMoveRows",value:function(y,z,E,H){Object(q.validateArgToType)(y,"number","sheetId");Object(q.validateArgToType)(z,"number","startRow");Object(q.validateArgToType)(E,"number","numberOfRows");Object(q.validateArgToType)(H,"number","targetRow");try{return this._crudOperations.ensureItIsPossibleToMoveRows(y,z,E,H),!0}catch(G){return!1}}},{key:"moveRows",value:function(y,z,E,H){return Object(q.validateArgToType)(y,"number", 787"sheetId"),Object(q.validateArgToType)(z,"number","startRow"),Object(q.validateArgToType)(E,"number","numberOfRows"),Object(q.validateArgToType)(H,"number","targetRow"),this._crudOperations.moveRows(y,z,E,H),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToMoveColumns",value:function(y,z,E,H){Object(q.validateArgToType)(y,"number","sheetId");Object(q.validateArgToType)(z,"number","startColumn");Object(q.validateArgToType)(E,"number","numberOfColumns");Object(q.validateArgToType)(H,"number", 788"targetColumn");try{return this._crudOperations.ensureItIsPossibleToMoveColumns(y,z,E,H),!0}catch(G){return!1}}},{key:"moveColumns",value:function(y,z,E,H){return Object(q.validateArgToType)(y,"number","sheetId"),Object(q.validateArgToType)(z,"number","startColumn"),Object(q.validateArgToType)(E,"number","numberOfColumns"),Object(q.validateArgToType)(H,"number","targetColumn"),this._crudOperations.moveColumns(y,z,E,H),this.recomputeIfDependencyGraphNeedsIt()}},{key:"copy",value:function(y){if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange", 789"source");var z=new x.AbsoluteCellRange(y.start,y.end);return this._crudOperations.copy(z.start,z.width(),z.height()),this.getRangeValues(y)}},{key:"cut",value:function(y){if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange","source");var z=new x.AbsoluteCellRange(y.start,y.end);return this._crudOperations.cut(z.start,z.width(),z.height()),this.getRangeValues(y)}},{key:"paste",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress", 790"targetLeftCorner");return this.ensureEvaluationIsNotSuspended(),this._crudOperations.paste(y),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isClipboardEmpty",value:function(){return this._crudOperations.isClipboardEmpty()}},{key:"clearClipboard",value:function(){this._crudOperations.clearClipboard()}},{key:"clearRedoStack",value:function(){this._crudOperations.undoRedo.clearRedoStack()}},{key:"clearUndoStack",value:function(){this._crudOperations.undoRedo.clearUndoStack()}},{key:"getRangeValues", 791value:function(y){var z=this;if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange","source");return(new x.AbsoluteCellRange(y.start,y.end)).arrayOfAddressesInRange().map(function(E){return E.map(function(H){return z.getCellValue(H)})})}},{key:"getRangeFormulas",value:function(y){var z=this;if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange","source");return(new x.AbsoluteCellRange(y.start,y.end)).arrayOfAddressesInRange().map(function(E){return E.map(function(H){return z.getCellFormula(H)})})}}, 792{key:"getRangeSerialized",value:function(y){var z=this;if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange","source");return(new x.AbsoluteCellRange(y.start,y.end)).arrayOfAddressesInRange().map(function(E){return E.map(function(H){return z.getCellSerialized(H)})})}},{key:"getFillRangeData",value:function(y,z){var E=this,H=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange", 793"source");if(!Object(x.isSimpleCellRange)(z))throw new n.ExpectedValueOfTypeError("SimpleCellRange","target");var G=new x.AbsoluteCellRange(y.start,y.end),I=new x.AbsoluteCellRange(z.start,z.end);return this.ensureEvaluationIsNotSuspended(),I.arrayOfAddressesInRange().map(function(K){return K.map(function(J){var P=((J.row-(H?z:y).start.row)%G.height()+G.height())%G.height()+y.start.row,S=((J.col-(H?z:y).start.col)%G.width()+G.width())%G.width()+y.start.col;return E._serialization.getCellSerialized({row:P, 794col:S,sheet:G.sheet},J)})})}},{key:"isItPossibleToAddSheet",value:function(y){Object(q.validateArgToType)(y,"string","sheetName");try{return this._crudOperations.ensureItIsPossibleToAddSheet(y),!0}catch(z){return!1}}},{key:"addSheet",value:function(y){void 0!==y&&Object(q.validateArgToType)(y,"string","sheetName");y=this._crudOperations.addSheet(y);return this._emitter.emit(f.Events.SheetAdded,y),y}},{key:"isItPossibleToRemoveSheet",value:function(y){Object(q.validateArgToType)(y,"number","sheetId"); 795try{return this._crudOperations.ensureScopeIdIsValid(y),!0}catch(z){return!1}}},{key:"removeSheet",value:function(y){Object(q.validateArgToType)(y,"number","sheetId");var z=this.sheetMapping.getDisplayName(y);this._crudOperations.removeSheet(y);y=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(f.Events.SheetRemoved,z,y),y}},{key:"isItPossibleToClearSheet",value:function(y){Object(q.validateArgToType)(y,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(y), 796!0}catch(z){return!1}}},{key:"clearSheet",value:function(y){return Object(q.validateArgToType)(y,"number","sheetId"),this._crudOperations.clearSheet(y),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToReplaceSheetContent",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");try{return this._crudOperations.ensureScopeIdIsValid(y),this._crudOperations.ensureItIsPossibleToChangeSheetContents(y,z),!0}catch(E){return!1}}},{key:"setSheetContent",value:function(y,z){return Object(q.validateArgToType)(y, 797"number","sheetId"),this._crudOperations.setSheetContent(y,z),this.recomputeIfDependencyGraphNeedsIt()}},{key:"simpleCellAddressFromString",value:function(y,z){return Object(q.validateArgToType)(y,"string","cellAddress"),Object(q.validateArgToType)(z,"number","sheetId"),Object(t.simpleCellAddressFromString)(this.sheetMapping.get,y,z)}},{key:"simpleCellRangeFromString",value:function(y,z){return Object(q.validateArgToType)(y,"string","cellRange"),Object(q.validateArgToType)(z,"number","sheetId"),Object(t.simpleCellRangeFromString)(this.sheetMapping.get, 798y,z)}},{key:"simpleCellAddressToString",value:function(y,z){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return Object(q.validateArgToType)(z,"number","sheetId"),Object(t.simpleCellAddressToString)(this.sheetMapping.fetchDisplayName,y,z)}},{key:"simpleCellRangeToString",value:function(y,z){if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellRange","cellRange");return Object(q.validateArgToType)(z,"number", 799"sheetId"),Object(t.simpleCellRangeToString)(this.sheetMapping.fetchDisplayName,y,z)}},{key:"getCellDependents",value:function(y){if(Object(e.isSimpleCellAddress)(y))y=this._dependencyGraph.addressMapping.getCell(y);else{if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange",y);y=this._dependencyGraph.rangeMapping.getRange(y.start,y.end)}return void 0===y?[]:this._dependencyGraph.getAdjacentNodesAddresses(y)}},{key:"getCellPrecedents",value:function(y){if(Object(e.isSimpleCellAddress)(y))y= 800this._dependencyGraph.addressMapping.getCell(y);else{if(!Object(x.isSimpleCellRange)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress | SimpleCellRange",y);y=this._dependencyGraph.rangeMapping.getRange(y.start,y.end)}return void 0===y?[]:this._dependencyGraph.dependencyQueryAddresses(y)}},{key:"getSheetName",value:function(y){return Object(q.validateArgToType)(y,"number","sheetId"),this.sheetMapping.getDisplayName(y)}},{key:"getSheetNames",value:function(){return this.sheetMapping.sheetNames()}}, 801{key:"getSheetId",value:function(y){return Object(q.validateArgToType)(y,"string","sheetName"),this.sheetMapping.get(y)}},{key:"doesSheetExist",value:function(y){return Object(q.validateArgToType)(y,"string","sheetName"),this.sheetMapping.hasSheetWithName(y)}},{key:"getCellType",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");var z=this.dependencyGraph.getCell(y);return Object(e.getCellType)(z,y)}},{key:"doesCellHaveSimpleValue", 802value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");return this.getCellType(y)===e.CellType.VALUE}},{key:"doesCellHaveFormula",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");y=this.getCellType(y);return y===e.CellType.FORMULA||y===e.CellType.ARRAYFORMULA}},{key:"isCellEmpty",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress", 803"cellAddress");return this.getCellType(y)===e.CellType.EMPTY}},{key:"isCellPartOfArray",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");y=this.getCellType(y);return y===e.CellType.ARRAY||y===e.CellType.ARRAYFORMULA}},{key:"getCellValueType",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();y=this.dependencyGraph.getCellValue(y); 804return Object(e.getCellValueType)(y)}},{key:"getCellValueDetailedType",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();y=this.dependencyGraph.getCellValue(y);return Object(e.getCellValueDetailedType)(y)}},{key:"getCellValueFormat",value:function(y){if(!Object(e.isSimpleCellAddress)(y))throw new n.ExpectedValueOfTypeError("SimpleCellAddress","cellAddress");this.ensureEvaluationIsNotSuspended();
804 805y=this.dependencyGraph.getCellValue(y);return Object(e.getCellValueFormat)(y)}},{key:"countSheets",value:function(){return this.sheetMapping.numberOfSheets()}},{key:"isItPossibleToRenameSheet",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");Object(q.validateArgToType)(z,"string","newName");try{return this._crudOperations.ensureItIsPossibleToRenameSheet(y,z),!0}catch(E){return!1}}},{key:"renameSheet",value:function(y,z){Object(q.validateArgToType)(y,"number","sheetId");Object(q.validateArgToType)(z, 806"string","newName");y=this._crudOperations.renameSheet(y,z);void 0!==y&&this._emitter.emit(f.Events.SheetRenamed,y,z)}},{key:"batch",value:function(y){this.suspendEvaluation();this._crudOperations.beginUndoRedoBatchMode();try{y()}catch(z){throw this._crudOperations.commitUndoRedoBatchMode(),this.resumeEvaluation(),z;}return this._crudOperations.commitUndoRedoBatchMode(),this.resumeEvaluation()}},{key:"suspendEvaluation",value:function(){this._evaluationSuspended=!0;this._emitter.emit(f.Events.EvaluationSuspended)}}, 807{key:"resumeEvaluation",value:function(){this._evaluationSuspended=!1;var y=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(f.Events.EvaluationResumed,y),y}},{key:"isEvaluationSuspended",value:function(){return this._evaluationSuspended}},{key:"isItPossibleToAddNamedExpression",value:function(y,z,E){Object(q.validateArgToType)(y,"string","expressionName");void 0!==E&&Object(q.validateArgToType)(E,"number","scope");try{return this._crudOperations.ensureItIsPossibleToAddNamedExpression(y, 808z,E),!0}catch(H){return!1}}},{key:"addNamedExpression",value:function(y,z,E,H){Object(q.validateArgToType)(y,"string","expressionName");void 0!==E&&Object(q.validateArgToType)(E,"number","scope");this._crudOperations.addNamedExpression(y,z,E,H);z=this.recomputeIfDependencyGraphNeedsIt();return this._emitter.emit(f.Events.NamedExpressionAdded,y,z),z}},{key:"getNamedExpressionValue",value:function(y,z){Object(q.validateArgToType)(y,"string","expressionName");void 0!==z&&Object(q.validateArgToType)(z, 809"number","scope");this.ensureEvaluationIsNotSuspended();this._crudOperations.ensureScopeIdIsValid(z);return(y=this._namedExpressions.namedExpressionForScope(y,z))?this._serialization.getCellValue(y.address):void 0}},{key:"getNamedExpressionFormula",value:function(y,z){Object(q.validateArgToType)(y,"string","expressionName");void 0!==z&&Object(q.validateArgToType)(z,"number","scope");this._crudOperations.ensureScopeIdIsValid(z);y=this._namedExpressions.namedExpressionForScope(y,z);return void 0=== 810y?void 0:this._serialization.getCellFormula(y.address)}},{key:"getNamedExpression",value:function(y,z){Object(q.validateArgToType)(y,"string","expressionName");void 0!==z&&Object(q.validateArgToType)(z,"number","scope");var E=this._namedExpressions.namedExpressionForScope(y,z);if(void 0!==E)return{name:y,scope:z,expression:this._serialization.getCellFormula(E.address),options:E.options}}},{key:"isItPossibleToChangeNamedExpression",value:function(y,z,E){Object(q.validateArgToType)(y,"string","expressionName"); 811void 0!==E&&Object(q.validateArgToType)(E,"number","scope");try{return this._crudOperations.ensureItIsPossibleToChangeNamedExpression(y,z,E),!0}catch(H){return!1}}},{key:"changeNamedExpression",value:function(y,z,E,H){return Object(q.validateArgToType)(y,"string","expressionName"),void 0!==E&&Object(q.validateArgToType)(E,"number","scope"),this._crudOperations.changeNamedExpressionExpression(y,E,z,H),this.recomputeIfDependencyGraphNeedsIt()}},{key:"isItPossibleToRemoveNamedExpression",value:function(y, 812z){Object(q.validateArgToType)(y,"string","expressionName");void 0!==z&&Object(q.validateArgToType)(z,"number","scope");try{return this._crudOperations.isItPossibleToRemoveNamedExpression(y,z),!0}catch(E){return!1}}},{key:"removeNamedExpression",value:function(y,z){Object(q.validateArgToType)(y,"string","expressionName");void 0!==z&&Object(q.validateArgToType)(z,"number","scope");return(y=this._crudOperations.removeNamedExpression(y,z))?(z=this.recomputeIfDependencyGraphNeedsIt(),this._emitter.emit(f.Events.NamedExpressionRemoved, 813y.displayName,z),z):[]}},{key:"listNamedExpressions",value:function(y){return void 0!==y&&Object(q.validateArgToType)(y,"number","scope"),this._crudOperations.ensureScopeIdIsValid(y),this._namedExpressions.getAllNamedExpressionsNamesInScope(y)}},{key:"getAllNamedExpressionsSerialized",value:function(){return this._serialization.getAllNamedExpressionsSerialized()}},{key:"normalizeFormula",value:function(y){Object(q.validateArgToType)(y,"string","formulaString");var z=this.extractTemporaryFormula(y); 814y=z.ast;z=z.address;if(void 0===y)throw new n.NotAFormulaError;return this._unparser.unparse(y,z)}},{key:"calculateFormula",value:function(y,z){Object(q.validateArgToType)(y,"string","formulaString");Object(q.validateArgToType)(z,"number","sheetId");this._crudOperations.ensureScopeIdIsValid(z);var E=this.extractTemporaryFormula(y,z);y=E.ast;z=E.address;E=E.dependencies;if(void 0===y)throw new n.NotAFormulaError;y=this.evaluator.runAndForget(y,z,E);return this._exporter.exportScalarOrRange(y)}},{key:"validateFormula", 815value:function(y){Object(q.validateArgToType)(y,"string","formulaString");y=this.extractTemporaryFormula(y).ast;return void 0!==y&&!(y.type===t.AstNodeType.ERROR&&!y.error)}},{key:"getRegisteredFunctionNames",value:function(){return w.getLanguage(this._config.language).getFunctionTranslations(this._functionRegistry.getRegisteredFunctionIds())}},{key:"getFunctionPlugin",value:function(y){return Object(q.validateArgToType)(y,"string","functionId"),this._functionRegistry.getFunctionPlugin(y)}},{key:"getAllFunctionPlugins", 816value:function(){return this._functionRegistry.getPlugins()}},{key:"numberToDateTime",value:function(y){return Object(q.validateArgToType)(y,"number","val"),this._evaluator.interpreter.dateTimeHelper.numberToSimpleDateTime(y)}},{key:"numberToDate",value:function(y){return Object(q.validateArgToType)(y,"number","val"),this._evaluator.interpreter.dateTimeHelper.numberToSimpleDate(y)}},{key:"numberToTime",value:function(y){return Object(q.validateArgToType)(y,"number","val"),Object(h.numberToSimpleTime)(y)}}, 817{key:"on",value:function(y,z){this._emitter.on(y,z)}},{key:"once",value:function(y,z){this._emitter.once(y,z)}},{key:"off",value:function(y,z){this._emitter.off(y,z)}},{key:"destroy",value:function(){Object(k.objectDestroy)(this)}},{key:"ensureEvaluationIsNotSuspended",value:function(){if(this._evaluationSuspended)throw new n.EvaluationSuspendedError;}},{key:"extractTemporaryFormula",value:function(y){var z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,E=this._cellContentParser.parse(y); 818z={sheet:z,col:0,row:0};if(!(E instanceof c.CellContent.Formula))return{address:z,dependencies:[]};E=this._parser.parse(E.formula,z);var H=E.ast,G=E.dependencies;return 0<E.errors.length?{address:z,dependencies:[]}:{ast:H,address:z,dependencies:G}}},{key:"recomputeIfDependencyGraphNeedsIt",value:function(){if(this._evaluationSuspended)return[];var y=this._crudOperations.getAndClearContentChanges(),z=Array.from(this.dependencyGraph.verticesToRecompute());this.dependencyGraph.clearRecentlyChangedVertices(); 8190<z.length&&y.addAll(this.evaluator.partialRun(z));z=y.exportChanges(this._exporter);return y.isEmpty()||this._emitter.emit(f.Events.ValuesUpdated,z),z}}],A(w.prototype,v),C&&A(w,C),Object.defineProperty(w,"prototype",{writable:!1}),w}();u.version="2.0.1";u.buildDate="14/06/2022 13:58:16";u.releaseDate="14/06/2022";u.languages={};u.registeredLanguages=new Map},function(g,b,a){function F(t,u){if(!(t=function(w){if(Array.isArray(w))return w}(t)||function(w,v){var C=null==w?null:"undefined"!=typeof Symbol&& 820w[Symbol.iterator]||w["@@iterator"];if(null!=C){var y,z=[],E=!0,H=!1;try{for(C=C.call(w);!(E=(y=C.next()).done)&&(z.push(y.value),!v||z.length!==v);E=!0);}catch(I){H=!0;var G=I}finally{try{E||null==C.return||C.return()}finally{if(H)throw G;}}return z}}
820(t,u)||B(t,u)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return t}function B(t,u){if(t){if("string"==typeof t)return D(t,u);var w= 821Object.prototype.toString.call(t).slice(8,-1);return"Object"===w&&t.constructor&&(w=t.constructor.name),"Map"===w||"Set"===w?Array.from(t):"Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?D(t,u):void 0}}function D(t,u){(null==u||u>t.length)&&(u=t.length);for(var w=0,v=Array(u);w<u;w++)v[w]=t[w];return v}function A(t,u){for(var w=0;w<u.length;w++){var v=u[w];v.enumerable=v.enumerable||!1;v.configurable=!0;"value"in v&&(v.writable=!0);Object.defineProperty(t,v.key,v)}}function x(t, 822u,w){return u&&A(t.prototype,u),w&&A(t,w),Object.defineProperty(t,"prototype",{writable:!1}),t}function q(t,u){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function");}function p(t){return t.startsWith("\x3d")}function e(t){t=t.toLowerCase();return"true"===t||"false"===t}function c(t,u){t=t.toUpperCase();return/#[A-Za-z0-9\/]+[?!]?/.test(t)&&Object.prototype.hasOwnProperty.call(u,t)}a.r(b);a.d(b,"CellContent",function(){return d});a.d(b,"isFormula",function(){return p});a.d(b, 823"isBoolean",function(){return e});a.d(b,"isError",function(){return c});a.d(b,"CellContentParser",function(){return m});a(122);a(12);a(118);a(298);a(13);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(26);a(22);var d,h=a(24),k=a(164),f=a(46),n=a(40),l=a(113),r=a(51);!function(t){var u=x(function C(v){q(this,C);this.value=v;this.value=Object(r.cloneNumber)(this.value,Object(l.fixNegativeZero)(Object(r.getRawValue)(this.value)))});t.Number=u;u=x(function y(C){q(this,y);this.value=C});t.String=u;u=x(function z(y){q(this, 824z);this.value=y});t.Boolean=u;u=function(){function y(){q(this,y)}return x(y,null,[{key:"getSingletonInstance",value:function(){return y.instance||(y.instance=new y),y.instance}}]),y}();t.Empty=u;u=x(function E(z){q(this,E);this.formula=z});t.Formula=u;u=x(function G(E,H){q(this,G);this.value=new h.CellError(E,H)});t.Error=u}(d||(d={}));var m=function(){function t(u,w,v){q(this,t);this.config=u;this.dateHelper=w;this.numberLiteralsHelper=v}return x(t,[{key:"parse",value:function(u){if(null==u)return d.Empty.getSingletonInstance(); 825if("number"==typeof u)return Object(l.isNumberOverflow)(u)?new d.Error(h.ErrorType.NUM,f.ErrorMessage.ValueLarge):new d.Number(u);
825if("boolean"==typeof u)return new d.Boolean(u);if(u instanceof Date)return u=this.dateHelper.dateToNumber({day:u.getDate(),month:u.getMonth()+1,year:u.getFullYear()})+Object(k.timeToNumber)({hours:u.getHours(),minutes:u.getMinutes(),seconds:u.getSeconds()+u.getMilliseconds()/1E3}),0>u?new d.Error(h.ErrorType.NUM,f.ErrorMessage.DateBounds):0==u%1?new d.Number(new r.DateNumber(u, 826"Date()")):1>u?new d.Number(new r.TimeNumber(u,"Date()")):new d.Number(new r.DateTimeNumber(u,"Date()"));if("string"==typeof u){if(e(u))return new d.Boolean("true"===u.toLowerCase());if(p(u))return new d.Formula(u);if(c(u,this.config.errorMapping))return new d.Error(this.config.errorMapping[u.toUpperCase()]);var w=u.trim(),v=0;if(w.endsWith("%"))v=1,w=w.slice(0,w.length-1);else{var C=this.currencyMatcher(w);if(void 0!==C){v=2;w=F(C,2);var y=w[0];w=w[1]}}var z;C=this.numberLiteralsHelper.numericStringToMaybeNumber(w); 827if(void 0!==C)return z=1===v?new r.PercentNumber(C/100):2===v?new r.CurrencyNumber(C,y):C,new d.Number(z);y=this.dateHelper.dateStringToDateNumber(w);return void 0!==y?new d.Number(y):new d.String(u.startsWith("'")?u.slice(1):u)}throw new n.UnableToParseError(u);}},{key:"currencyMatcher",value:function(u){var w,v=function(y,z){var E="undefined"!=typeof Symbol&&y[Symbol.iterator]||y["@@iterator"];if(!E){if(Array.isArray(y)||(E=B(y))||z&&y&&"number"==typeof y.length){E&&(y=E);var H=0;z=function(){}; 828return{s:z,n:function(){return H>=y.length?{done:!0}:{done:!1,value:y[H++]}},e:function(J){throw J;},f:z}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var G,I=!0,K=!1;return{s:function(){E=E.call(y)},n:function(){var J=E.next();return I=J.done,J},e:function(J){K=!0;G=J},f:function(){try{I||null==E.return||E.return()}finally{if(K)throw G;}}}}(this.config.currencySymbol);try{for(v.s();!(w= 829v.n()).done;){var C=w.value;if(u.startsWith(C))return[C,u.slice(C.length)];if(u.endsWith(C))return[C,u.slice(0,u.length-C.length)]}}catch(y){v.e(y)}finally{v.f()}}}]),t}()},function(g,b,a){g=a(1);b.__esModule=!0;b.default=b.SHORTCUTS_GROUP_NAVIGATION=b.SHORTCUTS_GROUP_EDITOR=void 0;a(42);a(49);a(3);a(0);a(2);a(11);a(4);var F=g(a(34)),B=g(a(5)),D=g(a(6)),A=a(124),x=a(83),q=a(166),p=g(a(60)),e=a(31);b.SHORTCUTS_GROUP_NAVIGATION="editorManager.navigation";b.SHORTCUTS_GROUP_EDITOR="editorManager.handlingEditor"; 830var c=function(){function h(k,f,n){var l=this;(0,B.default)(this,h);this.instance=k;this.tableMeta=f;this.selection=n;this.eventManager=new p.default(k);this.lock=this.destroyed=!1;this.cellProperties=this.activeEditor=void 0;this.instance.getShortcutManager().addContext("editor");this.registerShortcuts();this.instance.addHook("afterDocumentKeyDown",function(r){return l.onAfterDocumentKeyDown(r)});this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"compositionstart",function(r){!l.destroyed&& 831l.activeEditor&&!l.activeEditor.isOpened()&&l.instance.isListening()&&l.openEditor("",r)});this.instance.view._wt.update("onCellDblClick",function(r,m,t){return l.onCellDblClick(r,m,t)})}return(0,D.default)(h,[{key:"registerShortcuts",value:function(){var k=this,f=this.instance.getShortcutManager(),n=f.getContext("grid"),l={group:"editorManager.handlingEditor"};f.getContext("editor").addShortcuts([{keys:[["Enter"],["Enter","Shift"],["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],callback:function(r, 832m){k.closeEditorAndSaveChanges(f.isCtrlPressed());k.moveSelectionAfterEnter(m.includes("shift"))}},{keys:[["Escape"],["Escape","Control/Meta"]],callback:function(){k.closeEditorAndRestoreOriginalValue(f.isCtrlPressed());k.activeEditor.focus()}}],l);n.addShortcuts([{keys:[["F2"]],callback:function(r){k.activeEditor&&k.activeEditor.enableFullEditMode();k.openEditor(null,r)}},{keys:[["Backspace"],["Delete"]],callback:function(){k.instance.emptySelectedCells();k.prepareEditor()}},{keys:[["Enter"],["Enter", 833"Shift"]],callback:function(r,m){k.instance.getSettings().enterBeginsEditing?k.cellProperties.readOnly?k.moveSelectionAfterEnter():k.activeEditor&&(k.activeEditor.enableFullEditMode(),k.openEditor(null,r)):k.moveSelectionAfterEnter(m.includes("shift"));(0,x.stopImmediatePropagation)(r)}}],l)}},{key:"lockEditor",value:function(){this.lock=!0}},{key:"unlockEditor",value:function(){this.lock=!1}},{key:"destroyEditor",value:function(k){this.lock||this.closeEditor(k)}},{key:"getActiveEditor",value:function(){return this.activeEditor}}, 834{key:"prepareEditor",value:function(){var k=this;if(!this.lock)if(this.activeEditor&&this.activeEditor.isWaiting(
834))this.closeEditor(!1,!1,function(w){w&&k.prepareEditor()});else{var f=this.instance.selection.selectedRange.current().highlight,n=f.row;f=f.col;var l=this.instance.runHooks("modifyGetCellCoords",n,f),r=n,m=f;Array.isArray(l)&&(m=(0,F.default)(l,2),r=m[0],m=m[1]);this.cellProperties=this.instance.getCellMeta(r,m);l=this.instance.rootDocument.activeElement;if(l&&l.blur(),this.cellProperties.readOnly)this.clearActiveEditor(); 835else{l=this.instance.getCellEditor(this.cellProperties);var t=this.instance.getCell(n,f,!0);if(l&&t){var u=this.instance.colToProp(m);r=this.instance.getSourceDataAtCell(this.instance.toPhysicalRow(r),m);this.activeEditor=(0,q.getEditorInstance)(l,this.instance);this.activeEditor.prepare(n,f,u,t,r,this.cellProperties)}else this.clearActiveEditor()}}}},{key:"isEditorOpened",value:function(){return this.activeEditor&&this.activeEditor.isOpened()}},{key:"openEditor",value:function(k,f){this.activeEditor&& 836this.activeEditor.beginEditing(k,f)}},{key:"closeEditor",value:function(k,f,n){this.activeEditor?this.activeEditor.finishEditing(k,f,n):n&&n(!1)}},{key:"closeEditorAndSaveChanges",value:function(k){this.closeEditor(!1,k)}},{key:"closeEditorAndRestoreOriginalValue",value:function(k){this.closeEditor(!0,k)}},{key:"clearActiveEditor",value:function(){this.activeEditor=void 0}},{key:"moveSelectionAfterEnter",value:function(k){var f="function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(event): 837this.tableMeta.enterMoves;k?this.selection.transformStart(-f.row,-f.col):this.selection.transformStart(f.row,f.col,!0)}},{key:"onAfterDocumentKeyDown",value:function(k){var f=this;if(this.instance.isListening()){var n=k.keyCode;if(229!==n&&this.selection.isSelected()){var l=(k.ctrlKey||k.metaKey)&&!k.altKey;!this.activeEditor||this.activeEditor.isWaiting()||(0,A.isFunctionKey)(n)||(0,A.isCtrlMetaKey)(n)||l||this.isEditorOpened()||(this.instance.getShortcutManager().getContext("editor").addShortcuts([{keys:[["ArrowUp"]], 838callback:function(){f.instance.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){f.instance.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){f.instance.selection.transformStart(0,-1*f.instance.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){f.instance.selection.transformStart(0,f.instance.getDirectionFactor())}}],{runOnlyIf:function(){return(0,e.isDefined)(f.instance.getSelected())},group:"editorManager.navigation"}),this.openEditor("", 839k))}}}},{key:"onCellDblClick",value:function(k,f,n){"TD"===n.nodeName&&(this.activeEditor&&this.activeEditor.enableFullEditMode(),this.openEditor(null,k))}},{key:"destroy",value:function(){this.destroyed=!0;this.eventManager.destroy()}}]),h}(),d=new WeakMap;c.getInstance=function(h,k,f){var n=d.get(h);return n||(n=new c(h,k,f),d.set(h,n)),n};b.default=c},function(g,b,a){g=a(1);b.__esModule=!0;b.getRegisteredRenderers=b.getRegisteredRendererNames=void 0;b.getRenderer=function(A){if("function"==typeof A)return A; 840if(!D(A))throw Error('No registered renderer found under "'.concat(A,'" name'));return B(A)};b.hasRenderer=void 0;b.registerRenderer=function(A,x){"string"!=typeof A&&(A=(x=A).RENDERER_TYPE);F(A,x)};a=(0,g(a(119)).default)("renderers");var F=a.register,B=a.getItem,D=a.hasItem;g=a.getNames;b.getRegisteredRenderers=a.getValues;b.getRegisteredRendererNames=g;b.hasRenderer=D},function(g,b,a){g=a(1);b.__esModule=!0;b.getRegisteredValidators=b.getRegisteredValidatorNames=void 0;b.getValidator=function(A){if("function"== 841typeof A)return A;if(!D(A))throw Error('No registered validator found under "'.concat(A,'" name'));return B(A)};b.hasValidator=void 0;b.registerValidator=function(A,x){"string"!=typeof A&&(A=(x=A).VALIDATOR_TYPE);F(A,x)};a=(0,g(a(119)).default)("validators");var F=a.register,B=a.getItem,D=a.hasItem;g=a.getNames;b.getRegisteredValidators=a.getValues;b.getRegisteredValidatorNames=g;b.hasValidator=D},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=g(a(801));a=function(){function A(x, 842q){(0,F.default)(this,A);this.nodesPool="string"==typeof x?new D.default(x):null;this.nodeType=x;this.rootNode=q;this.table=null;this.renderedNodes=0}return(0,B.default)(A,[{key:"setTable",value:function(x){this.nodesPool&&this.nodesPool.setRootDocument(x.rootDocument);this.table=x}}
842,{key:"adjust",value:function(){}},{key:"render",value:function(){}}]),A}();b.default=a},function(g,b,a){b.__esModule=!0;b.assert=function(D,A){if(!D())throw Error("Assertion failed: ".concat(A));};b.columnFactory=function(D){function A(){} 843var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];(0,F.inherit)(A,D);for(var q=0;q<x.length;q++)A.prototype[x[q]]=void 0;return A};b.expandMetaType=function(D,A){D="string"==typeof D?(0,B.getCellType)(D):D;if((0,F.isObject)(D)){var x=(0,F.isObject)(A),q={};return(0,F.objectEach)(D,function(p,e){"CELL_TYPE"===e||x&&(!x||(0,F.hasOwnProperty)(A,e))||(q[e]=p)}),q}};b.isNullish=function(D){return null==D};b.isUnsignedNumber=function(D){return Number.isInteger(D)&&0<=D};a(68);a(52);var F= 844a(17),B=a(171)},function(g,b,a){b.__esModule=!0;b.EDITOR_TYPE=b.EDITOR_STATE=b.BaseEditor=void 0;g=a(615);b.EDITOR_STATE=g.EDITOR_STATE;b.EDITOR_TYPE=g.EDITOR_TYPE;b.BaseEditor=g.BaseEditor},function(g,b,a){b.__esModule=!0;b.autocompleteRenderer=b.RENDERER_TYPE=void 0;g=a(888);b.RENDERER_TYPE=g.RENDERER_TYPE;b.autocompleteRenderer=g.autocompleteRenderer},function(g,b,a){function F(p,e){return""===p&&(p="(".concat(e,")")),p}function B(p){var e=p;return x&&(e=new Set(e)),function(c){return x?e.has(c): 845!!~e.indexOf(c)}}
845b.__esModule=!0;b.createArrayAssertion=B;b.intersectValues=function(p,e,c,d){var h,k=[],f=p===e;f||(h=B(e));return(0,D.arrayEach)(p,function(n){var l=!1;(f||h(n))&&(l=!0);n={checked:l,value:n,visualValue:F(n,c)};d&&d(n);k.push(n)}),k};b.sortComparison=function(p,e){return"number"==typeof p&&"number"==typeof e?p-e:A(p,e)};b.toEmptyString=function(p){return null==p?"":p};b.toVisualValue=F;b.unifyColumnValues=function(p){p=q?Array.from(new Set(p)):(0,D.arrayUnique)(p);return p=p.sort(function(e, 846c){return"number"==typeof e&&"number"==typeof c?e-c:e===c?0:e>c?1:-1})};a(3);a(0);a(54);a(2);a(4);a(22);a(33);a(75);g=a(134);var D=a(20),A=(0,g.getComparisonFunction)(),x=(new Set([1])).has(1),q=x&&"function"==typeof Array.from},function(g,b,a){b.__esModule=!0;b.getOperationFunc=function(B){if(!F[B])throw Error('Operation with id "'.concat(B,'" does not exist.'));var D=F[B].func;return function(A,x){return D(A,x)}};b.getOperationName=function(B){return F[B].name};b.operations=void 0;b.registerOperation= 847function(B,D,A){F[B]={name:D,func:A}};a(26);var F={};b.operations=F},function(g,b,a){function F(k){if("function"!=typeof WeakMap)return null;var f=new WeakMap,n=new WeakMap;return(F=function(l){return l?n:f})(k)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(1),D=a(21);b.__esModule=!0;b.default=void 0;a(122);var A=B(a(5)),x=B(a(6)),q=a(17);g=B(a(98));var p=B(a(60)),e=a(23),c=a(20),d=function(k,f){if(!f&&k&&k.__esModule)return k;if(null===k||"object"!==D(k)&&"function"!=typeof k)return{default:k};if((f=F(f))&& 848f.has(k))return f.get(k);var n={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor,r;for(r in k)if("default"!==r&&Object.prototype.hasOwnProperty.call(k,r)){var m=l?Object.getOwnPropertyDescriptor(k,r):null;m&&(m.get||m.set)?Object.defineProperty(n,r,m):n[r]=k[r]}n.default=k;f&&f.set(k,n);return n}(a(29)),h="click input keydown keypress keyup focus blur change".split(" ");a=function(){function k(f,n){(0,A.default)(this,k);this.hot=f;this.eventManager=new p.default(this);this.options=(0,q.extend)(k.DEFAULTS, 849n);this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName);this.buildState=null}return(0,x.default)(k,[{key:"setValue",value:function(f){this.options.value=f;this.update()}},{key:"getValue",value:function(){return this.options.value}},{key:"element",get:function(){return"building"===this.buildState?this._element:"built"===this.buildState?(this.update(),this._element):(this.buildState="building",this.build(),this.buildState="built",this._element)}},{key:"isBuilt", 850value:function(){return"built"===this.buildState}},{key:"translateIfPossible",value:function(f){return"string"==typeof f&&f.startsWith(d.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(f):f}},{key:"build",value:function(){var f=this,n=function(r,m){f.eventManager.addEventListener(r,m,function(t){return f.runLocalHooks(m,t,f)})};if(this.buildState||(this.buildState="building"),this.options.className&&(0,e.addClass)(this._element,this.options.className),this.options.children.length)(0,c.arrayEach)(this.options.children, 851function(r){return f._element.appendChild(r.element)});else if(this.options.wrapIt){var l=this.hot.rootDocument.createElement(this.options.tagName);(0,q.objectEach)(this.options,function(r,m){void 0!==l[m]&&"className"!==m&&"tagName"!==m&&"children"!==m&&(l[m]=f.translateIfPossible(r))});this._element.appendChild(l);(0,c.arrayEach)(h,function(r){return n(l,r)})}else(0,c.arrayEach)(h,function(r){return n(f._element,r)})}},{key:"update",value:function(){}},{key:"reset",value:function(){this.options.value= 852"";this.update()}},{key:"show",value:function(){this.element.style.display=""}},{key:"hide",value:function(){this.element.style.display="none"}},{key:"focus",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy();this.hot=this.eventManager=null;this._element.parentNode&&this._element.parentNode.removeChild(this._element);this._element=null}}],[{key:"DEFAULTS",get:function(){return(0,q.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}]),k}();(0,q.mixin)(a, 853g.default);b.default=a},function(g,b,a){g={}.propertyIsEnumerable;var F=Object.getOwnPropertyDescriptor;a=F&&!g.call({1:2},1);b.f=a?function(B){B=F(this,B);return!!B&&B.enumerable}:g},function(g,b,a){var F=a(335),B=a(177);g.exports=function(D){D=F(D,"string");return B(D)?D:D+""}},function(g,b,a){b=a(35);var F=0,B=Math.random(),D=b((1).toString);g.exports=function(A){return"Symbol("+(void 0===A?"":A)+")_"+D(++F+B,36)}},function(g,b,a){b=a(45);a=a(63);
853var F=b.document,B=a(F)&&a(F.createElement);g.exports= 854function(D){return B?F.createElement(D):{}}},function(g,b,a){b=a(35);var F=a(56);a=a(252);var B=b(Function.toString);F(a.inspectSource)||(a.inspectSource=function(D){return B(D)});g.exports=a.inspectSource},function(g,b,a){b=a(156);var F=a(214),B=b("keys");g.exports=function(D){return B[D]||(B[D]=F(D))}},function(g,b){b.f=Object.getOwnPropertySymbols},function(g,b,a){var F=a(65),B=a(56),D=a(95);b=a(217);a=a(344);var A=b("IE_PROTO"),x=Object,q=x.prototype;g.exports=a?x.getPrototypeOf:function(p){p= 855D(p);if(F(p,A))return p[A];var e=p.constructor;return B(e)&&p instanceof e?e.prototype:p instanceof x?q:null}},function(g,b,a){b=a(259);var F=a(56),B=a(127),D=a(59)("toStringTag"),A=Object,x="Arguments"==B(function(){return arguments}());g.exports=b?B:function(q){var p;if(void 0===q)var e="Undefined";else{if(null===q)var c="Null";else{a:{var d=q=A(q);try{c=d[D];break a}catch(h){}c=void 0}c="string"==typeof(e=c)?e:x?B(q):"Object"==(p=B(q))&&F(q.callee)?"Arguments":p}e=c}return e}},function(g,b,a){var F= 856a(35);b=a(38);var B=a(56),D=a(220),A=a(100),x=a(216),q=function(){},p=[],e=A("Reflect","construct"),c=/^\s*(?:class|function)\b/,d=F(c.exec),h=!c.exec(q),k=function(f){if(!B(f))return!1;try{return e(q,p,f),!0}catch(n){return!1}};a=function(f){if(!B(f))return!1;switch(D(f)){case "AsyncFunction":case "GeneratorFunction":case "AsyncGeneratorFunction":return!1}try{return h||!!d(c,x(f))}catch(n){return!0}};a.sham=!0;g.exports=!e||b(function(){var f;return k(k.call)||!k(Object)||!k(function(){f=!0})||f})? 857a:k},function(g,b,a){var F,B,D=a(61);b=a(35);var A=a(73),x=a(352),q=a(268),p=a(156),e=a(140),c=a(116).get,d=a(353);a=a(354);var h=p("native-string-replace",String.prototype.replace),k=RegExp.prototype.exec,f=k,n=b("".charAt),l=b("".indexOf),r=b("".replace),m=b("".slice),t=(B=/b*/g,D(k,F=/a/,"a"),D(k,B,"a"),0!==F.lastIndex||0!==B.lastIndex),u=q.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];(t||w||u||d||a)&&(f=function(v){var C,y,z,E,H,G,I=c(this);v=A(v);var K=I.raw;if(K)return K.lastIndex=this.lastIndex, 858C=D(f,K,v),this.lastIndex=K.lastIndex,C;C=I.groups;I=u&&this.sticky;K=D(x,this);var J=this.source,P=0,S=v;if(I&&(K=r(K,"y",""),-1===l(K,"g")&&(K+="g"),S=m(v,this.lastIndex),0<this.lastIndex&&(!this.multiline||this.multiline&&"\n"!==n(v,this.lastIndex-1))&&(J="(?: "+J+")",S=" "+S,P++),y=new RegExp("^(?:"+J+")",K)),w&&(y=new RegExp("^"+J+"$(?!\\s)",K)),t&&(z=this.lastIndex),E=D(k,I?y:this,S),I?E?(E.input=m(E.input,P),E[0]=m(E[0],P),E.index=this.lastIndex,this.lastIndex+=E[0].length):this.lastIndex= 8590:t&&E&&(this.lastIndex=this.global?E.index+E[0].length:z),w&&E&&1<E.length&&D(h,E[0],y,function(){for(H=1;H<arguments.length-2;H++)void 0===arguments[H]&&(E[H]=void 0)}),E&&C)for(E.groups=y=e(null),H=0;H<C.length;H++)y[(G=C[H])[0]]=E[G[1]];return E});g.exports=f},function(g,b,a){var F=a(669),B=a(65),D=a(355),A=a(80).f;g.exports=function(x){var q=F.Symbol||(F.Symbol={});B(q,x)||A(q,x,{value:D.f(x)})}},function(g,b,a){var F=a(28),B=a(45),D=a(35),A=a(180),x=a(96),q=a(187),p=a(188),e=a(225),c=a(56), 860d=a(63),h=a(38),k=a(264),f=a(130),n=a(270);g.exports=function(l,r,m){var t=-1!==l.indexOf("Map"),u=-1!==l.indexOf("Weak"),w=t?"set":"add",v=B[l],C=v&&v.prototype,y=v,z={},E=function(P){var S=D(C[P]);x(C,P,"add"==P?function(R){return S(this,0===R?0:R),this}:"delete"==P?function(R){return!(u&&!d(R))&&S(this,0===R?0:R)}:"get"==P?function(R){return u&&!d(R)?void 0:S(this,0===R?0:R)}:"has"==P?function(R){return!(u&&!d(R))&&S(this,0===R?0:R)}:function(R,O){return S(this,0===R?0:R,O),this})};if(A(l,!c(v)|| 861!(u||C.forEach&&!h(function(){(new v).entries().next()}))))y=m.getConstructor(r,l,t,w),q.enable();else if(A(l,!0)){var H=new y,G=H[w](u?{}:-0,1)!=H,I=h(function(){H.has(1)}),K=k(function(P){new v(P)}),J=!u&&h(function(){for(var P=new v,S=5;S--;)P[w](S,S);return!P.has(-0)});K||((y=r(function(P,S){e(P,C);P=n(new v,P,y);return null!=S&&p(S,P[w],{that:P,AS_ENTRIES:t}),P})).prototype=C,C.constructor=y);(I||J)&&(E("delete"),E("has"),t&&E("get"));(J||G)&&E(w);u&&C.clear&&delete C.clear}return z[l]=y,F({global:!0, 862constructor:!0,forced:y!=v},z),f(y,l),u||m.setStrong(y,l,t),y}},function(g,b,a){var F=a(128),B=TypeError;g.exports=function(D,A){if(F(A,D))return D;throw B("Incorrect invocation");}},function(g,b,a){b=a(127);a=a(45);
862g.exports="process"==b(a.process)},function(g,b,a){var F,B,D,A=a(45),x=a(139);b=a(160);var q=a(56),p=a(65),e=a(38),c=a(347),d=a(181),h=a(215),k=a(365),f=a(366);a=a(226);var n=A.setImmediate,l=A.clearImmediate,r=A.process,m=A.Dispatch,t=A.Function,u=A.MessageChannel,w=A.String,v=0,C={}; 863try{var y=A.location}catch(I){}var z=function(I){if(p(C,I)){var K=C[I];delete C[I];K()}},E=function(I){return function(){z(I)}},H=function(I){z(I.data)},G=function(I){A.postMessage(w(I),y.protocol+"//"+y.host)};n&&l||(n=function(I){k(arguments.length,1);var K=q(I)?I:t(I),J=d(arguments,1);return C[++v]=function(){x(K,void 0,J)},F(v),v},l=function(I){delete C[I]},a?F=function(I){r.nextTick(E(I))}:m&&m.now?F=function(I){m.now(E(I))}:u&&!f?(D=(B=new u).port2,B.port1.onmessage=H,F=b(D.postMessage,D)): 864A.addEventListener&&q(A.postMessage)&&!A.importScripts&&y&&"file:"!==y.protocol&&!e(G)?(F=G,A.addEventListener("message",H,!1)):F="onreadystatechange"in h("script")?function(I){c.appendChild(h("script")).onreadystatechange=function(){c.removeChild(this);z(I)}}:function(I){setTimeout(E(I),0)});g.exports={set:n,clear:l}},function(g,b,a){a(12);var F=a(35),B=a(96),D=a(222),A=a(38),x=a(59),q=a(137),p=x("species"),e=RegExp.prototype;g.exports=function(c,d,h,k){var f=x(c),n=!A(function(){var m={};return m[f]= 865function(){return 7},7!=""[c](m)}),l=n&&!A(function(){var m=!1,t=/a/;return"split"===c&&((t={}).constructor={},t.constructor[p]=function(){return t},t.flags="",t[f]=/./[f]),t.exec=function(){return m=!0,null},t[f](""),!m});if(!n||!l||h){var r=F(/./[f]);d=d(f,""[c],function(m,t,u,w,v){m=F(m);var C=t.exec;return C===D||C===e.exec?n&&!v?{done:!0,value:r(t,u,w)}:{done:!0,value:m(u,t,w)}:{done:!1}});B(String.prototype,c,d[0]);B(e,f,d[1])}k&&q(e[f],"sham",!0)}},function(g,b,a){var F=a(61),B=a(66),D=a(56), 866A=a(127),x=a(222),q=TypeError;g.exports=function(p,e){var c=p.exec;if(D(c))return p=F(c,p,e),null!==p&&B(p),p;if("RegExp"===A(p))return F(x,p,e);throw q("RegExp#exec called on incompatible receiver");}},function(g,b,a){function F(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}a.r(b);a.d(b,"CellReferenceType",function(){return B});a.d(b,"CellAddress",function(){return p});a(18);var B,D=a(24), 867A=a(104),x=a(231),q=a(232);!function(e){e.CELL_REFERENCE_RELATIVE="CELL_REFERENCE";e.CELL_REFERENCE_ABSOLUTE="CELL_REFERENCE_ABSOLUTE";e.CELL_REFERENCE_ABSOLUTE_COL="CELL_REFERENCE_ABSOLUTE_COL";e.CELL_REFERENCE_ABSOLUTE_ROW="CELL_REFERENCE_ABSOLUTE_ROW"}(B||(B={}));var p=function(){function e(h,k,f,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");!0;this.col=h;this.row=k;this.type=f;this.sheet=n}var c,d;return d=[{key:"fromColAndRow",value:function(h,k,f){return(h.isColumnAbsolute()&& 868k.isRowAbsolute()?e.absolute.bind(this):h.isColumnAbsolute()?e.absoluteCol.bind(this):k.isRowAbsolute()?e.absoluteRow.bind(this):function(n,l,r){return e.relative(l,n,r)})(h.col,k.row,f)}},{key:"relative",value:function(h,k,f){return new e(k,h,B.CELL_REFERENCE_RELATIVE,f)}},{key:"absolute",value:function(h,k,f){return new e(h,k,B.CELL_REFERENCE_ABSOLUTE,f)}},{key:"absoluteCol",value:function(h,k,f){return new e(h,k,B.CELL_REFERENCE_ABSOLUTE_COL,f)}},{key:"absoluteRow",value:function(h,k,f){return new e(h, 869k,B.CELL_REFERENCE_ABSOLUTE_ROW,f)}}],c=[{key:"toSimpleCellAddress",value:function(h){var k=Object(D.absoluteSheetReference)(this,h);return this.type===B.CELL_REFERENCE_ABSOLUTE?Object(D.simpleCellAddress)(k,this.col,this.row):this.type===B.CELL_REFERENCE_ABSOLUTE_ROW?Object(D.simpleCellAddress)(k,h.col+this.col,this.row):this.type===B.CELL_REFERENCE_ABSOLUTE_COL?Object(D.simpleCellAddress)(k,this.col,h.row+this.row):Object(D.simpleCellAddress)(k,h.col+this.col,h.row+this.row)}},{key:"toColumnAddress", 870value:function(){var h=this.isColumnRelative()?x.ReferenceType.RELATIVE:x.ReferenceType.ABSOLUTE;return new x.ColumnAddress(h,this.col,this.sheet)}},{key:"toRowAddress",value:function(){var h=this.isRowRelative()?x.ReferenceType.RELATIVE:x.ReferenceType.ABSOLUTE;return new q.RowAddress(h,this.row,this.sheet)}},{key:"toSimpleColumnAddress",value:function(h){var k=Object(D.absoluteSheetReference)(this,h),f=this.col;return this.isColumnRelative()&&(f+=h.col),Object(D.simpleColumnAddress)(k,f)}},{key:"toSimpleRowAddress", 871value:function(h){var k=Object(D.absoluteSheetReference)(this,h),f=this.row;return this.isRowRelative()&&(f+=h.row),Object(D.simpleRowAddress)(k,f)}},{key:"isRowAbsolute",value:function(){return this.type===B.CELL_REFERENCE_ABSOLUTE||this.type===B.CELL_REFERENCE_ABSOLUTE_ROW}},{key:"isColumnAbsolute",value:function(){return this.type===B.CELL_REFERENCE_ABSOLUTE||this.type===B.CELL_REFERENCE_ABSOLUTE_COL}},{key:"isColumnRelative",value:function(){return this.type===B.CELL_REFERENCE_RELATIVE||this.type=== 872B.CELL_REFERENCE_ABSOLUTE_ROW}},{key:"isRowRelative",value:function(){return this.type===B.CELL_REFERENCE_RELATIVE||this.type===B.CELL_REFERENCE_ABSOLUTE_COL}},{key:"isAbsolute",value:function(){return this.type===B.CELL_REFERENCE_ABSOLUTE&&void 0!==this.sheet}},{key:"shiftedByRows",value:function(h){return new e(this.col,this.row+h,this.type,this.sheet)}},{key:"shiftedByColumns",value:function(h){return new e(this.col+h,this.row,this.type,this.sheet)}},{key:"moved",value:function(h,k,f){return new e(this.col+ 873k,this.row+f,this.type,void 0===this.sheet?void 0:h)}},{key:"withSheet",value:function(h){return new e(this.col,this.row,this.type,h)}},{key:"isInvalid",value:function(h){return Object(D.invalidSimpleCellAddress)(this.toSimpleCellAddress(h))}},{key:"shiftRelativeDimensions",value:function(h,k){return new e(this.isColumnAbsolute()?this.col:this.col+h,this.isRowAbsolute()?this.row:this.row+k,this.type,this.sheet)}},{key:"shiftAbsoluteDimensions",value:function(h,k){return new e(this.isColumnRelative()? 874this.col:this.col+h,this.isRowRelative()?this.row:this.row+k,this.type,this.sheet)}},{key:"hash",value:function(h){h=h&&void 0!==this.sheet?"#".concat(this.sheet):"";switch(this.type){case B.CELL_REFERENCE_RELATIVE:return"".concat(h,"#").concat(this.row,"R").concat(this.col);case B.CELL_REFERENCE_ABSOLUTE:return"".concat(h,"#").concat(this.row,"A").concat(this.col);case B.CELL_REFERENCE_ABSOLUTE_COL:return"".concat(h,"#").concat(this.row,"AC").concat(this.col);case B.CELL_REFERENCE_ABSOLUTE_ROW:return"".concat(h, 875"#").concat(this.row,"AR").concat(this.col)}}},{key:"unparse",value:function(h){h=this.toSimpleCellAddress(h);if(!Object(D.invalidSimpleCellAddress)(h)){var k=Object(A.columnIndexToLabel)(h.col),f=this.t
875ype===B.CELL_REFERENCE_ABSOLUTE||this.type===B.CELL_REFERENCE_ABSOLUTE_ROW?"$":"";return"".concat(this.type===B.CELL_REFERENCE_ABSOLUTE||this.type===B.CELL_REFERENCE_ABSOLUTE_COL?"$":"").concat(k).concat(f).concat(h.row+1)}}},{key:"exceedsSheetSizeLimits",value:function(h,k){return this.row>=k||this.col>= 876h}}],F(e.prototype,c),d&&F(e,d),Object.defineProperty(e,"prototype",{writable:!1}),e}()},function(g,b,a){function F(q,p){for(var e=0;e<p.length;e++){var c=p[e];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(q,c.key,c)}}a.r(b);a.d(b,"ReferenceType",function(){return B});a.d(b,"ColumnAddress",function(){return x});a(18);var B,D=a(24),A=a(104);!function(q){q.RELATIVE="RELATIVE";q.ABSOLUTE="ABSOLUTE"}(B||(B={}));var x=function(){function q(c,d,h){if(!(this instanceof 877q))throw new TypeError("Cannot call a class as a function");!0;this.type=c;this.col=d;this.sheet=h}var p,e;return e=[{key:"absolute",value:function(c,d){return new q(B.ABSOLUTE,c,d)}},{key:"relative",value:function(c,d){return new q(B.RELATIVE,c,d)}},{key:"compareByAbsoluteAddress",value:function(c){return function(d,h){return d.toSimpleColumnAddress(c).c
877ol-h.toSimpleColumnAddress(c).col}}}],p=[{key:"isColumnAbsolute",value:function(){return this.type===B.ABSOLUTE}},{key:"isColumnRelative",value:function(){return this.type=== 878B.RELATIVE}},{key:"isAbsolute",value:function(){return this.type===B.ABSOLUTE&&void 0!==this.sheet}},{key:"moved",value:function(c,d,h){return new q(this.type,this.col+d,void 0===this.sheet?void 0:c)}},{key:"shiftedByColumns",value:function(c){return new q(this.type,this.col+c,this.sheet)}},{key:"toSimpleColumnAddress",value:function(c){var d=Object(D.absoluteSheetReference)(this,c),h=this.col;return this.isColumnRelative()&&(h=c.col+this.col),Object(D.simpleColumnAddress)(d,h)}},{key:"shiftRelativeDimensions", 879value:function(c,d){c=this.isColumnRelative()?this.col+c:this.col;return new q(this.type,c,this.sheet)}},{key:"shiftAbsoluteDimensions",value:function(c,d){c=this.isColumnAbsolute()?this.col+c:this.col;return new q(this.type,c,this.sheet)}},{key:"withSheet",value:function(c){return new q(this.type,this.col,c)}},{key:"isInvalid",value:function(c){return 0>
879this.toSimpleColumnAddress(c).col}},{key:"hash",value:function(c){c=c&&void 0!==this.sheet?"#".concat(this.sheet):"";switch(this.type){case B.RELATIVE:return"".concat(c, 880"#COLR").concat(this.col);case B.ABSOLUTE:return"".concat(c,"#COLA").concat(this.col)}}},{key:"unparse",value:function(c){c=this.toSimpleColumnAddress(c);if(!Object(D.invalidSimpleColumnAddress)(c))return c=Object(A.columnIndexToLabel)(c.col),"".concat(this.type===B.ABSOLUTE?"$":"").concat(c)}},{key:"exceedsSheetSizeLimits",value:function(c){return this.col>=c}}],F(q.prototype,p),e&&F(q,e),Object.defineProperty(q,"prototype",{writable:!1}),q}()},function(g,b,a){function F(x,q){for(var p=0;p<q.length;p++){var e= 881q[p];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(x,e.key,e)}}a.r(b);a.d(b,"RowAddress",function(){return A});a(18);var B=a(24),D=a(231),A=function(){function x(e,c,d){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");!0;this.type=e;this.row=c;this.sheet=d}var q,p;return p=[{key:"absolute",value:function(e,c){return new x(D.ReferenceType.ABSOLUTE,e,c)}},{key:"relative",value:function(e,c){return new x(D.ReferenceType.RELATIVE, 882e,c)}},{key:"compareByAbsoluteAddress",value:function(e){return function(c,d){return c.toSimpleRowAddress(e).row-d.toSimpleRowAddress(e).row}}}],q=[{key:"isRowAbsolute",value:function(){return this.type===D.ReferenceType.ABSOLUTE}},{key:"isRowRelative",value:function(){return this.type===D.ReferenceType.RELATIVE}},{key:"isAbsolute",value:function(){return this.type===D.ReferenceType.ABSOLUTE&&void 0!==this.sheet}},{key:"moved",value:function(e,c,d){return new x(this.type,this.row+d,void 0===this.sheet? 883void 0:e)}},{key:"shiftedByRows",value:function(e){return new x(this.type,this.row+e,this.sheet)}},{key:"toSimpleRowAddress",value:function(e){var c=Object(B.absoluteSheetReference)(this,e),d=this.row;return this.isRowRelative()&&(d=e.row+this.row),Object(B.simpleRowAddress)(c,d)}},{key:"shiftRelativeDimensions",value:function(e,c){e=this.isRowRelative()?this.row+c:this.row;return new x(this.type,e,this.sheet)}},{key:"shiftAbsoluteDimensions",value:function(e,c){e=this.isRowAbsolute()?this.row+c: 884this.row;return new x(this.type,e,this.sheet)}},{key:"withSheet",value:function(e){return new x(this.type,this.row,e)}},{key:"isInvalid",value:function(e){return 0>this.toSimpleRowAddress(e).row}},{key:"hash",value:function(e){e=e&&void 0!==this.sheet?"#".concat(this.sheet):"";switch(this.type){case D.ReferenceType.RELATIVE:return"".concat(e,"#ROWR").concat(this.row);case D.ReferenceType.ABSOLUTE:return"".concat(e,"#ROWA").concat(this.row)}}},{key:"unparse",value:function(e){e=this.toSimpleRowAddress(e); 885if(!Object(B.invalidSimpleRowAddress)(e))return"".concat(this.type===D.ReferenceType.ABSOLUTE?"$":"").concat(e.row+1)}},{key:"exceedsSheetSizeLimits",value:function(e){return this.row>=e}}],F(x.prototype,q),p&&F(x,p),Object.defineProperty(x,"prototype",{writable:!1}),x}()},function(g,b,a){function F(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")} 886a.r(b);a.d(b,"clearCache",function(){return F});var B=a(276);a.d(b,"VERSION",function(){return B.VERSION});var D=a(81);a.d(b,"Parser",function(){return D.Parser});a.d(b,"CstParser",function(){return D.CstParser});a.d(b,"EmbeddedActionsParser",function(){return D.EmbeddedActionsParser});a.d(b,"ParserDefinitionErrorType",function(){return D.ParserDefinitionErrorType});a.d(b,"EMPTY_ALT",function(){return D.EMPTY_ALT});var A=a(162);a.d(b,"Lexer",function(){return A.Lexer});a.d(b,"LexerDefinitionErrorType", 887function(){return A.LexerDefinitionErrorType});var x=a(102);a.d(b,"createToken",function(){return x.createToken});a.d(b,"createTokenInstance",function(){return x.createTokenInstance});a.d(b,"EOF",function(){return x.EOF});a.d(b,"tokenLabel",function(){return x.tokenLabel});a.d(b,"tokenMatcher",function(){return x.tokenMatcher});a.d(b,"tokenName",function(){return x.tokenName});var q=a(143);a.d(b,"defaultGrammarResolverErrorProvider",function(){return q.defaultGrammarResolverErrorProvider});a.d(b, 888"defaultGrammarValidatorErrorProvider",function(){return q.defaultGrammarValidatorErrorProvider});a.d(b,"defaultParserErrorProvider",function(){return q.defaultParserErrorProvider});var p=a(117);a.d(b,"EarlyExitException",function(){return p.EarlyExitException});a.d(b,"isRecognitionException",function(){return p.isRecognitionException});a.d(b,"MismatchedTokenException",function(){return p.MismatchedTokenException});a.d(b,"NotAllInputParsedException",function(){return p.NotAllInputParsedException}); 889a.d(b,"NoViableAltException",function(){return p.NoViableAltException});var e=a(280);a.d(b,"defaultLexerErrorProvider",function(){return e.defaultLexerErrorProvider});var c=a(57);a.d(b,"Alternation",function(){return c.Alternation});a.d(b,"Flat",function(){return c.Flat});a.d(b,"NonTerminal",function(){return c.NonTerminal});a.d(b,"Option",function(){return c.Option});a.d(b,"Repetition",function(){return c.Repetition});a.d(b,"RepetitionMandatory",function(){return c.RepetitionMandatory});a.d(b,"RepetitionMandatoryWithSeparator", 890function(){return c.RepetitionMandatoryWithSeparator});a.d(b,"RepetitionWithSeparator",function(){return c.RepetitionWithSeparator});a.d(b,"Rule",function(){return c.Rule});a.d(b,"Terminal",function(){return c.Terminal});a.d(b,"serializeGrammar",function(){return c.serializeGrammar});a.d(b,"serializeProduction",function(){return c.serializeProduction});var d=a(142);a.d(b,"GAstVisitor",function(){return d.GAstVisitor});var h=a(196);a.d(b,"assignOccurrenceIndices",function(){return h.assignOccurrenceIndices}); 891a.d(b,"resolveGrammar",function(){return h.resolveGrammar});a.d(b,"validateGrammar",function(){return h.validateGrammar});var k=a(377);a.d(b,"createSyntaxDiagramsCode",function(){return k.createSyntaxDiagramsCode});var f=a(282);a.d(b,"generateParserFactory",function(){return f.generateParserFactory});a.d(b,"generateParserModule",function(){return f.generateParserModule})},function(g,b,a){function F(J,P,S,R,O,N){var Q=m.map(J,function(ia){return function(ba,fa){var ja=new E;ba.accept(ja);ja=m.groupBy(ja.allProductions, 892B);ja=m.pick(ja,function(qa){return 1<qa.length});return m.map(m.values(ja),function(qa){var ha=m.first(qa);qa=fa.buildDuplicateFoundError(ba,qa);var na=Object(u.getProductionDslName)(ha);qa={message:qa,type:t.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:ba.name,dslName:na,occurrence:ha.idx};ha=D(ha);return ha&&(qa.parameter=ha),qa})}(ia,O)}),M=m.map(J,function(ia){return c(ia,ia,O)}),T=[],Z=[],L=[];Object(m.every)(M,m.isEmpty)&&(T=Object(m.map)(J,function(ia){return h(ia,O)}),Z=Object(m.map)(J, 893function(ia){return k(ia,P,R,O)}),L=n(J,P,O));var U=function(ia,ba,fa){var ja=[],qa=Object(m.map)(ba,function(ha){return ha.name});return Object(m.forEach)(ia,function(ha){var na=ha.name;Object(m.contains)(qa,na)&&(ha=fa.buildNamespaceConflictError(ha),ja.push({message:ha,type:t.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:na}))}),ja}(J,S,O);S=m.map(S,function(ia){return q(ia,O)});var V=function(ia,ba){var fa=[];return Object(m.forEach)(ia,function(ja){var qa=new v.NamedDSLMethodsCollectorVisitor(""); 894ja.accept(qa);qa=Object(m.map)(qa.result,function(ha){return ha.orgProd});fa.push(Object(m.map)(qa,function(ha){return x(ja,ha,ba)}))}),Object(m.flatten)(fa)}(J,O),Y=function(ia,ba){var fa=[];return Object(m.forEach)(ia,function(ja){var qa=new v.NamedDSLMethodsCollectorVisitor("");ja.accept(qa);qa=Object(m.groupBy)(qa.result,function(ha){return ha.name});qa=Object(m.pick)(qa,function(ha){return 1<ha.length});Object(m.forEach)(Object(m.values)(qa),function(ha){ha=Object(m.map)(ha,function(na){return na.orgProd}); 895ha=ba.buildDuplicateNestedRuleNameError(ja,ha);fa.push({message:ha,type:t.ParserDefinitionErrorType.DUPLICATE_NESTED_NAME,ruleName:ja.name})})}),fa}(J,O),aa=Object(m.map)(J,function(ia){return f(ia,O)}),W=Object(m.map)(J,function(ia){return A(ia,O)}),ca=Object(m.map)(J,function(ia){return p(ia,J,N,O)});return m.flatten(Q.concat(S,V,Y,L,M,T,Z,U,aa,W,ca))}function B(J){return Object(u.getProductionDslName)(J)+"_#_"+J.idx+"_#_"+D(J)}function D(J){return J instanceof y.Terminal?J.terminalType.name:J instanceof 896y.NonTerminal?J.nonTerminalName:""}function A(J,P){var S=[],R=J.name;return R.match(H)||S.push({message:P.buildInvalidRuleNameError({topLevelRule:J,expectedPattern:H}),type:t.ParserDefinitionErrorType.INVALID_RULE_NAME,ruleName:R}),S}function x(J,P,S){var R,O=[];return P.name.match(G)||(R=S.buildInvalidNestedRuleNameError(J,P),O.push({message:R,type:t.ParserDefinitionErrorType.INVALID_
896NESTED_RULE_NAME,ruleName:J.name})),O}function q(J,P){var S=[];return J.name.match(H)||S.push({message:P.buildTokenNameError({tokenType:J, 897expectedPattern:H}),type:t.ParserDefinitionErrorType.INVALID_TOKEN_NAME}),S}function p(J,P,S,R){var O=[];1<Object(m.reduce)(P,function(N,Q){return Q.name===J.name?N+1:N},0)&&(P=R.buildDuplicateRuleNameError({topLevelRule:J,grammarName:S}),O.push({message:P,type:t.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:J.name}));return O}function e(J,P,S){var R,O=[];return m.contains(P,J)||(R="Invalid rule override, rule: -\x3e"+J+"\x3c- cannot be overridden in the grammar: -\x3e"+S+"\x3c-as it is not defined in any of the super grammars ", 898O.push({message:R,type:t.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:J})),O}function c(J,P,S,R){void 0===R&&(R=[]);var O=[];P=d(P.definition);if(m.isEmpty(P))return[];var N=J.name;m.contains(P,J)&&O.push({message:S.buildLeftRecursionError({topLevelRule:J,leftRecursionPath:R}),type:t.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:N});P=m.difference(P,R.concat([J]));P=m.map(P,function(Q){var M=m.cloneArr(R);return M.push(Q),c(J,Q,S,M)});return O.concat(m.flatten(P))}function d(J){var P= 899[];if(m.isEmpty(J))return P;var S=m.first(J);if(S instanceof y.NonTerminal)P.push(S.referencedRule);else if(S instanceof y.Flat||S instanceof y.Option||S instanceof y.RepetitionMandatory||S instanceof y.RepetitionMandatoryWithSeparator||S instanceof y.RepetitionWithSeparator||S instanceof y.Repetition)P=P.concat(d(S.definition));else if(S instanceof y.Alternation)P=m.flatten(m.map(S.definition,function(O){return d(O.definition)}));else if(!(S instanceof y.Terminal))throw Error("non exhaustive match"); 900S=Object(u.isOptionalProd)(S);var R=1<J.length;return S&&R?(J=m.drop(J),P.concat(d(J))):P}function h(J,P){var S=new I;J.accept(S);return m.reduce(S.alternations,function(R,O){var N=m.dropRight(O.definition);N=m.map(N,function(Q,M){Q=Object(C.nextPossibleTokensAfter)([Q],[],null,1);return m.isEmpty(Q)?{message:P.buildEmptyAlternationError({topLevelRule:J,alternation:O,emptyChoiceIdx:M}),type:t.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:J.name,occurrence:O.idx,alternative:M+1}:null});return R.concat(m.compact(N))}, 901[])}function k(J,P,S,R){var O=new I;J.accept(O);O=O.alternations;var N=S[J.name];return N&&(O=Object(m.reject)(O,function(Q){return N[Object(u.getProductionDslName)(Q)+(0===Q.idx?"":Q.idx)]})),O=Object(m.reject)(O,function(Q){return!0===Q.ignoreAmbiguities}),m.reduce(O,function(Q,M){var T=Object(w.getLookaheadPathsForOr)(M.idx,J,M.maxLookahead||P,M),Z=function(L,U,V,Y){var aa=[],W=Object(m.reduce)(L,function(ca,ia,ba){return!0===U.definition[ba].ignoreAmbiguities||Object(m.forEach)(ia,function(fa){var ja= 902[ba];Object(m.forEach)(L,function(qa,ha){ba!==ha&&Object(w.containsPath)(qa,fa)&&!0!==U.definition[ha].ignoreAmbiguities&&ja.push(ha)});1<ja.length&&!Object(w.containsPath)(aa,fa)&&(aa.push(fa),ca.push({alts:ja,path:fa}))}),ca},[]);return m.map(W,function(ca){var ia=Object(m.map)(ca.alts,function(ba){return ba+1});return{message:Y.buildAlternationAmbiguityError({topLevelRule:V,alternation:U,ambiguityIndices:ia,prefixPath:ca.path}),type:t.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:V.name,occurrence:U.idx, 903alternatives:[ca.alts]}})}(T,M,J,R);M=l(T,M,J,R);return Q.concat(Z,M)},[])}function f(J,P){var S=new I;J.accept(S);return m.reduce(S.alternations,function(R,O){return 255<O.definition.length&&R.push({message:P.buildTooManyAlternativesError({topLevelRule:J,alternation:O}),type:t.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:J.name,occurrence:O.idx}),R},[])}function n(J,P,S){var R=[];return Object(m.forEach)(J,function(O){var N=new K;O.accept(N);Object(m.forEach)(N.allProductions,function(Q){var M= 904Object(w.getProdType)(Q);M=Object(w.getLookaheadPathsForOptionalProd)(Q.idx,O,M,Q.maxLookahead||P)[0];Object(m.isEmpty)(Object(m.flatten)(M))&&(Q=S.buildEmptyRepetitionError({topLevelRule:O,repetition:Q}),R.push({message:Q,type:t.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:O.name}))})}),R}function l(J,P,S,R){var O=[],N=Object(m.reduce)(J,function(Q,M,T){M=Object(m.map)(M,function(Z){return{idx:T,path:Z}});return Q.concat(M)},[]);return Object(m.forEach)(N,function(Q){if(!0!==P.definition[Q.idx].ignoreAmbiguities){var M= 905Q.idx,T=Q.path;Q=Object(m.findAll)(N,function(Z){return!0!==P.definition[Z.idx].ignoreAmbiguities&&Z.idx<M&&Object(w.isStrictPrefixOfPath)(Z.path,T)});Q=Object(m.map)(Q,function(Z){var L=[Z.idx+1,M+1],U=0===P.idx?"":P.idx;return{message:R.buildAlternationPrefixAmbiguityError({topLevelRule:S,alternation:P,ambiguityIndices:L,prefixPath:Z.path}),type:t.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:S.name,occurrence:U,alternatives:L}});O=O.concat(Q)}}),O}a.r(b);a.d(b,"validateGrammar",function(){return F}); 906a.d(b,"identifyProductionForDuplicates",function(){return B});a.d(b,"OccurrenceValidationCollector",function(){return E});a.d(b,"validTermsPattern",function(){return H});a.d(b,"validNestedRuleName",function(){return G});a.d(b,"validateRuleName",function(){return A});a.d(b,"validateNestedRuleName",function(){return x});a.d(b,"validateTokenName",function(){return q});a.d(b,"validateRuleDoesNotAlreadyExist",function(){return p});
906a.d(b,"validateRuleIsOverridden",function(){return e});a.d(b,"validateNoLeftRecursion", 907function(){return c});a.d(b,"getFirstNoneTerminal",function(){return d});a.d(b,"validateEmptyOrAlternative",function(){return h});a.d(b,"validateAmbiguousAlternationAlternatives",function(){return k});a.d(b,"RepetionCollector",function(){return K});a.d(b,"validateTooManyAlts",function(){return f});a.d(b,"validateSomeNonEmptyLookaheadPath",function(){return n});a.d(b,"checkPrefixAlternativesAmbiguities",function(){return l});var r,m=a(48),t=a(81),u=a(194),w=a(235),v=a(281),C=a(236),y=a(57);g=a(142); 908var z=(r=function(J,P){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,R){S.__proto__=R}||function(S,R){for(var O in R)R.hasOwnProperty(O)&&(S[O]=R[O])})(J,P)},function(J,P){function S(){this.constructor=J}r(J,P);J.prototype=null===P?Object.create(P):(S.prototype=P.prototype,new S)}),E=function(J){function P(){var S=null!==J&&J.apply(this,arguments)||this;return S.allProductions=[],S}return z(P,J),P.prototype.visitNonTerminal=function(S){this.allProductions.push(S)},P.prototype.visitOption= 909function(S){this.allProductions.push(S)},P.prototype.visitRepetitionWithSeparator=function(S){this.allProductions.push(S)},P.prototype.visitRepetitionMandatory=function(S){this.allProductions.push(S)},P.prototype.visitRepetitionMandatoryWithSeparator=function(S){this.allProductions.push(S)},P.prototype.visitRepetition=function(S){this.allProductions.push(S)},P.prototype.visitAlternation=function(S){this.allProductions.push(S)},P.prototype.visitTerminal=function(S){this.allProductions.push(S)},P}(g.GAstVisitor), 910H=/^[a-zA-Z_]\w*$/,G=new RegExp(H.source.replace("^","^\\$")),I=function(J){function P(){var S=null!==J&&J.apply(this,arguments)||this;return S.alternations=[],S}return z(P,J),P.prototype.visitAlternation=function(S){this.alternations.push(S)},P}(g.GAstVisitor),K=function(J){function P(){var S=null!==J&&J.apply(this,arguments)||this;return S.allProductions=[],S}return z(P,J),P.prototype.visitRepetitionWithSeparator=function(S){this.allProductions.push(S)},P.prototype.visitRepetitionMandatory=function(S){this.allProductions.push(S)}, 911P.prototype.visitRepetitionMandatoryWithSeparator=function(S){this.allProductions.push(S)},P.prototype.visitRepetition=function(S){this.allProductions.push(S)},P}(g.GAstVisitor)},function(g,b,a){function F(z){if(z instanceof w.Option)return r.OPTION;if(z instanceof w.Repetition)return r.REPETITION;if(z instanceof w.RepetitionMandatory)return r.REPETITION_MANDATORY;if(z instanceof w.RepetitionMandatoryWithSeparator)return r.REPETITION_MANDATORY_WITH_SEPARATOR;if(z instanceof w.RepetitionWithSeparator)return r.REPETITION_WITH_SEPARATOR; 912if(z instanceof w.Alternation)return r.ALTERNATION;throw Error("non exhaustive match");}function B(z,E,H,G,I,K){z=d(z,E,H);return K(z,G,n(z)?u.tokenStructuredMatcherNoCategories:u.tokenStructuredMatcher,I)}function D(z,E,H,G,I,K){z=h(z,E,I,H);E=n(z)?u.tokenStructuredMatcherNoCategories:u.tokenStructuredMatcher;return K(z[0],E,G)}function A(z,E,H,G){var I=z.length,K=Object(m.every)(z,function(P){return Object(m.every)(P,function(S){return 1===S.length})});if(E)return function(P){P=Object(m.map)(P, 913function(L){return L.GATE});for(var S=0;S<I;S++){var R=z[S],O=R.length,N=P[S];if(void 0===N||!1!==N.call(this))a:for(N=0;N<O;N++){for(var Q=R[N],M=Q.length,T=0;T<M;T++){var Z=this.LA(T+1);if(!1===H(Z,Q[T]))continue a}return S}}};if(K&&!G){E=Object(m.map)(z,function(P){return Object(m.flatten)(P)});var J=Object(m.reduce)(E,function(P,S,R){return Object(m.forEach)(S,function(O){Object(m.has)(P,O.tokenTypeIdx)||(P[O.tokenTypeIdx]=R);Object(m.forEach)(O.categoryMatches,function(N){Object(m.has)(P,N)|| 914(P[N]=R)})}),P},[]);return function(){var P=this.LA(1);return J[P.tokenTypeIdx]}}return function(){for(var P=0;P<I;P++){var S=z[P],R=S.length,O=0;a:for(;O<R;O++){for(var N=S[O],Q=N.length,M=0;M<Q;M++){var T=this.LA(M+1);if(!1===H(T,N[M]))continue a}return P}}}}function x(z,E,H){var G=Object(m.every)(z,function(P){return 1===P.length}),I=z.length;if(G&&!H){H=Object(m.flatten)(z);if(1===H.length&&Object(m.isEmpty)(H[0].categoryMatches)){var K=H[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx=== 915K}}var J=Object(m.reduce)(H,function(P,S,R){return P[S.tokenTypeIdx]=!0,Object(m.forEach)(S.
915categoryMatches,function(O){P[O]=!0}),P},[]);return function(){var P=this.LA(1);return!0===J[P.tokenTypeIdx]}}return function(){var P=0;a:for(;P<I;P++){for(var S=z[P],R=S.length,O=0;O<R;O++){var N=this.LA(O+1);if(!1===E(N,S[O]))continue a}return!0}return!1}}function q(z){for(var E=Array(z),H=0;H<z;H++)E[H]=[];return E}function p(z){for(var E=[""],H=0;H<z.length;H++){for(var G=z[H],I=[],K=0;K<E.length;K++){var J= 916E[K];I.push(J+"_"+G.tokenTypeIdx);for(var P=0;P<G.categoryMatches.length;P++)I.push(J+("_"+G.categoryMatches[P]))}E=I}return E}function e(z,E,H){for(var G=0;G<z.length;G++)if(G!==H)for(var I=z[G],K=0;K<E.length;K++)if(!0===I[E[K]])return!1;return!0}function c(z,E){z=Object(m.map)(z,function(S){return Object(t.possiblePathsFrom)([S],1)});for(var H=q(z.length),G=Object(m.map)(z,function(S){var R={};return Object(m.forEach)(S,function(O){O=p(O.partialPath);Object(m.forEach)(O,function(N){R[N]=!0})}), 917R}),I=z,K=1;K<=E;K++){var J=I;I=q(J.length);z=function(S){for(var R=J[S],O=0;O<R.length;O++){var N=R[O].partialPath,Q=R[O].suffixDef,M=p(N);if(e(G,M,S)||Object(m.isEmpty)(Q)||N.length===E){if(Q=H[S],!1===k(Q,N))for(Q.push(N),N=0;N<M.length;N++)G[S][M[N]]=!0}else M=Object(t.possiblePathsFrom)(Q,K+1,N),I[S]=I[S].concat(M),Object(m.forEach)(M,function(T){T=p(T.partialPath);Object(m.forEach)(T,function(Z){G[S][Z]=!0})})}};for(var P=0;P<J.length;P++)z(P)}return H}function d(z,E,H,G){z=new y(z,r.ALTERNATION, 918G);return E.accept(z),c(z.result,H)}function h(z,E,H,G){var I=new y(z,H);E.accept(I);I=I.result;z=(new C(E,z,H)).startWalking();return c([new w.Flat({definition:I}),new w.Flat({definition:z})],G)}function k(z,E){var H=0;a:for(;H<z.length;H++){var G=z[H];if(G.length===E.length){for(var I=0;I<G.length;I++){var K=E[I],J=G[I];if(!1===(K===J||void 0!==J.categoryMatchesMap[K.tokenTypeIdx]))continue a}return!0}}return!1}function f(z,E){return z.length<E.length&&Object(m.every)(z,function(H,G){G=E[G];return H=== 919G||G.categoryMatchesMap[H.tokenTypeIdx]})}function n(z){return Object(m.every)(z,function(E){return Object(m.every)(E,function(H){return Object(m.every)(H,function(G){return Object(m.isEmpty)(G.categoryMatches)})})})}a.r(b);a.d(b,"PROD_TYPE",function(){return r});a.d(b,"getProdType",function(){return F});a.d(b,"buildLookaheadFuncForOr",function(){return B});a.d(b,"buildLookaheadFuncForOptionalProd",function(){return D});a.d(b,"buildAlternativesLookAheadFunc",function(){return A});a.d(b,"buildSingleAlternativeLookaheadFunction", 920function(){return x});a.d(b,"lookAheadSequenceFromAlternatives",function(){return c});a.d(b,"getLookaheadPathsForOr",function(){return d});a.d(b,"getLookaheadPathsForOptionalProd",function(){return h});a.d(b,"containsPath",function(){return k});a.d(b,"isStrictPrefixOfPath",function(){return f});a.d(b,"areTokenCategoriesNotUsed",function(){return n});var l,r,m=a(48),t=a(236);g=a(277);var u=a(193),w=a(57);a=a(142);var v=(l=function(z,E){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&& 921function(H,G){H.__proto__=G}||function(H,G){for(var I in G)G.hasOwnProperty(I)&&(H[I]=G[I])})(z,E)},function(z,E){function H(){this.constructor=z}l(z,E);z.prototype=null===E?Object.create(E):(H.prototype=E.prototype,new H)});!function(z){z[z.OPTION=0]="OPTION";z[z.REPETITION=1]="REPETITION";z[z.REPETITION_MANDATORY=2]="REPETITION_MANDATORY";z[z.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR";z[z.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR";z[z.ALTERNATION= 9225]="ALTERNATION"}(r||(r={}));var C=function(z){function E(H,G,I){var K=z.call(this)||this;return K.topProd=H,K.targetOccurrence=G,K.targetProdType=I,K}return v(E,z),E.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},E.prototype.checkIsTarget=function(H,G,I,K){return H.idx===this.targetOccurrence&&this.targetProdType===G&&(this.restDef=I.concat(K),!0)},E.prototype.walkOption=function(H,G,I){this.checkIsTarget(H,r.OPTION,G,I)||z.prototype.walkOption.call(this,H,G,I)},E.prototype.walkAtLeastOne= 923function(H,G,I){this.checkIsTarget(H,r.REPETITION_MANDATORY,G,I)||z.prototype.walkOption.call(this,H,G,I)},E.prototype.walkAtLeastOneSep=function(H,G,I){this.checkIsTarget(H,r.REPETITION_MANDATORY_WITH_SEPARATOR,G,I)||z.prototype.walkOption.call(this,H,G,I)},E.prototype.walkMany=function(H,G,I){this.checkIsTarget(H,r.REPETITION,G,I)||z.prototype.walkOption.call(this,H,G,I)},E.prototype.walkManySep=function(H,G,I){this.checkIsTarget(H,r.REPETITION_WITH_SEPARATOR,G,I)||z.prototype.walkOption.call(this, 924H,G,I)},E}(g.RestWalker),y=function(z){function E(H,G,I){var K=z.call(this)||this;return K.targetOccurrence=H,K.targetProdType=G,K.targetRef=I,K.result=[],K}return v(E,z),E.prototype.checkIsTarget=function(H,G){H.idx!==this.targetOccurrence||this.targetProdType!==G||void 0!==this.targetRef&&H!==this.targetRef||(this.result=H.definition)},E.prototype.visitOption=function(H){this.checkIsTarget(H,r.OPTION)},E.prototype.visitRepetition=function(H){this.checkIsTarget(H,r.REPETITION)},E.prototype.visitRepetitionMandatory= 925function(H){this.checkIsTarget(H,r.REPETITION_MANDATORY)},E.prototype.visitRepetitionMandatoryWithSeparator=function(H){this.checkIsTarget(H,r.REPETITION_MANDATORY_WITH_SEPARATOR)},E.prototype.visitRepetitionWithSeparator=function(H){this.checkIsTarget(H,r.REPETITION_WITH_SEPARATOR)},E.prototype.visitAlternation=function(H){this.checkIsTarget(H,r.ALTERNATION)},E}(a.GAstVisitor)},function(g,b,a){function F(l,r,m){function t(C){C=F(C.concat(Object(A.drop)(l,w+1)),r,m);return u.concat(C)}void 0===m&& 926(m=[]);m=Object(A.cloneArr)(m);for(var u=[],w=0;m.length<r&&w<l.length;){var v=l[w];if(v instanceof q.Flat||v instanceof q.NonTerminal)return t(v.definition);if(v instanceof q.Option)u=t(v.definition);else{if(v instanceof q.RepetitionMandatory)return t(v=v.definition.concat([new q.Repetition({definition:v.definition})]));if(v instanceof q.RepetitionMandatoryWithSeparator)return t(v=[new q.Flat({definition:v.definition}),new q.Repetition({definition:[new q.Terminal({terminalType:v.separator})].concat(v.definition)})]); 927if(v instanceof q.RepetitionWithSeparator)v=v.definition.concat([new q.Repetition({definition:[new q.Terminal({terminalType:v.separator})].concat(v.definition)})]),u=t(v);else if(v instanceof q.Repetition)v=v.definition.concat([new q.Repetition({definition:v.definition})]),u=t(v);else{if(v instanceof q.Alternation)return Object(A.forEach)(v.definition,function(C){u=t(C.definition)}),u;if(!(v instanceof q.Terminal))throw Error("non exhaustive match");m.push(v.terminalType)}}w++}return u.push({partialPath:m, 928suffixDef:Object(A.drop)(l,w)}),u}function B(l,r,m,t){var u=["EXIT_NONE_TERMINAL"],w=!1,v=r.length;t=v-t-1;var C=[],y=[];for(y.push({idx:-1,def:l,ruleStack:[],occurrenceStack:[]});!Object(A.isEmpty)(y);){var z=y.pop();if("EXIT_ALTERNATIVE"!==z){var E=z.def,H=z.idx;l=z.ruleStack;z=z.occurrenceStack;if(!Object(A.isEmpty)(E)){var G=E[0];if("EXIT_NONE_TERMINAL"===G)l={idx:H,def:Object(A.drop)(E),ruleStack:Object(A.dropRight)(l),occurrenceStack:Object(A.dropRight)(z)},y.push(l);else if(G instanceof q.Terminal)if(H< 929v-1)H+=1,m(r[H],G.terminalType)&&(l={idx:H,def:Object(A.drop)(E),ruleStack:l,occurrenceStack:z},y.push(l));else{if(H!==v-1)throw Error("non exhaustive match");C.push({nextTokenType:G.terminalType,nextTokenOccurrence:G.idx,ruleStack:l,occurrenceStack:z});w=!0}else if(G instanceof q.NonTerminal)l=Object(A.cloneArr)(l),l.push(G.nonTerminalName),z=Object(A.cloneArr)(z),z.push(G.idx),l={idx:H,def:G.definition.concat(u,Object(A.drop)(E)),ruleStack:l,occurrenceStack:z},y.push(l);else if(G instanceof q.Option){var I= 930{idx:H,def:Object(A.drop)(E),ruleStack:l,occurrenceStack:z};y.push(I);y.push("EXIT_ALTERNATIVE");l={idx:H,def:G.definition.concat(Object(A.drop)(E)),ruleStack:l,occurrenceStack:z};y.push(l)}else if(G instanceof q.RepetitionMandatory)I=new q.Repetition({definition:G.definition,idx:G.idx}),l={idx:H,def:G.definition.concat([I],Object(A.drop)(E)),ruleStack:l,occurrenceStack:z},y.push(l);else if(G instanceof q.RepetitionMandatoryWithSeparator)I=new q.Terminal({terminalType:G.separator}),I=new q.Repetition({definition:[I].concat(G.definition), 931idx:G.idx}),l={idx:H,def:G.definition.concat([I],Object(A.drop)(E)),ruleStack:l,occurrenceStack:z},y.push(l);else if(G instanceof q.RepetitionWithSeparator)I={idx:H,def:Object(A.drop)(E),ruleStack:l,occurrenceStack:z},y.push(I),y.push("EXIT_ALTERNATIVE"),I=new q.Terminal({terminalType:G.separator}),I=new q.Repetition({definition:[I].concat(G.definition),idx:G.idx}),l={idx:H,def:G.definition.concat([I],Object(A.drop)(E)),ruleStack:l,occurrenceStack:z},y.push(l);else if(G instanceof q.Repetition)I= 932{idx:H,def:Object(A.drop)(E),ruleStack:l,occurrenceStack:z},y.push(I),y.push("EXIT_ALTERNATIVE"),I=new q.Repetition({definition:G.definition,idx:G.idx}),l={idx:H,def:G.definition.concat([I],Object(A.drop)(E)),ruleStack:l,occurrenceStack:z},y.push(l);else if(G instanceof q.Alternation)for(I=G.definition.length-1;0<=I;I--){var K={idx:H,def:G.definition[I].definition.concat(Object(A.drop)(E)),ruleStack:l,occurrenceStack:z};y.push(K);y.push("EXIT_ALTERNATIVE")}else if(G instanceof q.Flat)y.push({idx:H, 933def:G.definition.concat(Object(A.drop)(E)),ruleStack:l,occurrenceStack:z});else{if(!(G instanceof q.Rule))throw Error("non exhaustive match");E=y;I=E.push;l=Object(A.cloneArr)(l);l.push(G.name);z=Object(A.cloneArr)(z);l=(z.push(1),{idx:H,def:G.definition,ruleStack:l,occurrenceStack:z});I.call(E,l)}}}else w&&Object(A.last)(y).idx<=t&&y.pop()}return C}a.r(b);a.d(b,"AbstractNextPossibleTokensWalker",function(){return e});a.d(b,"NextAfterTokenWalker",function(){return c});a.d(b,"AbstractNextTerminalAfterProductionWalker", 934function(){return d});a.d(b,"NextTerminalAfterManyWalker",function(){return h});a.d(b,"NextTerminalAfterManySepWalker",function(){return k});a.d(b,"NextTerminalAfterAtLeastOneWalker",function(){return f});a.d(b,"NextTerminalAfterAtLeastOneSepWalker",function(){return n});a.d(b,"possiblePathsFrom",function(){return F});a.d(b,"nextPossibleTokensAfter",function(){return B});var D;g=a(277);var A=a(48),x=a(373),q=a(57),p=(D=function(l,r){return(D=Object.
934setPrototypeOf||{__proto__:[]}instanceof Array&& 935function(m,t){m.__proto__=t}||function(m,t){for(var u in t)t.hasOwnProperty(u)&&(m[u]=t[u])})(l,r)},function(l,r){function m(){this.constructor=l}D(l,r);l.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}),e=function(l){function r(m,t){var u=l.call(this)||this;return u.topProd=m,u.path=t,u.possibleTokTypes=[],u.nextProductionName="",u.nextProductionOccurrence=0,u.found=!1,u.isAtEndOfPath=!1,u}return p(r,l),r.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!== 936this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Object(A.cloneArr)(this.path.ruleStack).reverse(),this.occurrenceStack=Object(A.cloneArr)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},r.prototype.walk=function(m,t){void 0===t&&(t=[]);this.found||l.prototype.walk.call(this,m,t)},r.prototype.walkProdRef=function(m,t,u){m.referencedRule.name=== 937this.nextProductionName&&m.idx===this.nextProductionOccurrence&&(t=t.concat(u),this.updateExpectedNext(),this.walk(m.referencedRule,t))},r.prototype.updateExpectedNext=function(){Object(A.isEmpty)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},r}(g.RestWalker),c=function(l){function r(m,t){m=l.call(this,m,t)||this;return m.path=t,m.nextTerminalName= 938"",m.nextTerminalOccurrence=0,m.nextTerminalName=m.path.lastTok.name,m.nextTerminalOccurrence=m.path.lastTokOccurrence,m}return p(r,l),r.prototype.walkTerminal=function(m,t,u){this.isAtEndOfPath&&m.terminalType.name===this.nextTerminalName&&m.idx===this.nextTerminalOccurrence&&!this.found&&(m=t.concat(u),m=new q.Flat({definition:m}),this.possibleTokTypes=Object(x.first)(m),this.found=!0)},r}(e),d=function(l){function r(m,t){var u=l.call(this)||this;return u.topRule=m,u.occurrence=t,u.result={token:void 0, 939occurrence:void 0,isEndOfRule:void 0},u}return p(r,l),r.prototype.startWalking=function(){return this.walk(this.topRule),this.result},r}(g.RestWalker),h=function(l){function r(){return null!==l&&l.apply(this,arguments)||this}return p(r,l),r.prototype.walkMany=function(m,t,u){m.idx===this.occurrence?(m=Object(A.first)(t.concat(u)),this.result.isEndOfRule=void 0===m,m instanceof q.Terminal&&(this.result.token=m.terminalType,this.result.occurrence=m.idx)):l.prototype.walkMany.call(this,m,t,u)},r}(d), 940k=function(l){function r(){return null!==l&&l.apply(this,arguments)||this}return p(r,l),r.prototype.walkManySep=function(m,t,u){m.idx===this.occurrence?(m=Object(A.first)(t.concat(u)),this.result.isEndOfRule=void 0===m,m instanceof q.Terminal&&(this.result.token=m.terminalType,this.result.occurrence=m.idx)):l.prototype.walkManySep.call(this,m,t,u)},r}(d),f=function(l){function r(){return null!==l&&l.apply(this,arguments)||this}return p(r,l),r.prototype.walkAtLeastOne=function(m,t,u){m.idx===this.occurrence? 941(m=Object(A.first)(t.concat(u)),this.result.isEndOfRule=void 0===m,m instanceof q.Terminal&&(this.result.token=m.terminalType,this.result.occurrence=m.idx)):l.prototype.walkAtLeastOne.call(this,m,t,u)},r}(d),n=function(l){function r(){return null!==l&&l.apply(this,arguments)||this}return p(r,l),r.prototype.walkAtLeastOneSep=function(m,t,u){m.idx===this.occurrence?(m=Object(A.first)(t.concat(u)),this.result.isEndOfRule=void 0===m,m instanceof q.Terminal&&(this.result.token=m.terminalType,this.result.occurrence= 942m.idx)):l.prototype.walkAtLeastOneSep.call(this,m,t,u)},r}(d)},function(g,b,a){a.r(b);a.d(b,"absolutizeDependencies",function(){return A});a.d(b,"filterDependenciesOutOfScope",function(){return x});a(36);a(39);a(0);var F=a(91),B=a(24),D=a(74),A=function(q,p){return q.map(function(e){return e.absolutize(p)})},x=function(q){return q.filter(function(p){return p instanceof D.NamedExpressionDependency||(p instanceof F.AbsoluteCellRange?!(Object(B.invalidSimpleCellAddress)(p.start)||Object(B.invalidSimpleCellAddress)(p.end)): 943!Object(B.invalidSimpleCellAddress)(p))})}},function(g,b,a){a.r(b);a.d(b,"UIElement",function(){return F});var F,B=a(294);a.d(b,"TranslationPackage",function(){return B.TranslationPackage});a.d(b,"buildTranslationPackage",function(){return B.buildTranslationPackage});(F||(F={})).NEW_SHEET_PREFIX="NEW_SHEET_PREFIX"},function(g,b,a){function F(n){var l;(l=function(r){if(Array.isArray(r))return B(r)}(n))||(l="undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"]?Array.from(n):void 0); 944if(!(n=l||function(r,m){if(r){if("string"==typeof r)return B(r,m);var t=Object.prototype.toString.call(r).slice(8,-1);"Object"===t&&r.constructor&&(t=r.constructor.name);if("Map"===t||"Set"===t)return Array.from(r);
944if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return B(r,m)}}(n)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return n}function B(n,l){(null==l||l>n.length)&& 945(l=n.length);for(var r=0,m=Array(l);r<l;r++)m[r]=n[r];return m}function D(n,l){for(var r=0;r<l.length;r++){var m=l[r];m.enumerable=m.enumerable||!1;m.configurable=!0;"value"in m&&(m.writable=!0);Object.defineProperty(n,m.key,m)}}function A(n){var l,r={},m;for(m in f.defaultConfig){var t=null!==(l=n[m])&&void 0!==l?l:f.defaultConfig[m];Array.isArray(t)?r[m]=F(t):r[m]=t}return r}function x(){return A({})}a.r(b);a.d(b,"Config",function(){return f});a.d(b,"getDefaultConfig",function(){return x});a(3); 946a(0);a(2);a(11);a(4);a(27);a(93);a(18);a(8);a(9);a(10);a(22);a(13);a(26);a(12);var q=a(391);g=a(392);var p=a(164);b=a(199);var e=a(40),c=a(299),d=a(726),h=a(200),k=new WeakMap,f=function(){function n(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var u=m.accentSensitive,w=m.binarySearchThreshold,v=m.caseSensitive,C=m.caseFirst,y=m.chooseAddressMappingPolicy, 947z=m.currencySymbol,E=m.dateFormats,H=m.decimalSeparator,G=m.evaluateNullToZero,I=m.functionArgSeparator,K=m.functionPlugins,J=m.ignorePunctuation,P=m.leapYear1900,S=m.localeLang,R=m.language,O=m.ignoreWhiteSpace,N=m.licenseKey,Q=m.matchWholeCell,M=m.arrayColumnSeparator,T=m.arrayRowSeparator,Z=m.maxRows,L=m.maxColumns,U=m.nullYear,V=m.nullDate,Y=m.parseDateTime,aa=m.precisionEpsilon,W=m.precisionRounding,ca=m.stringifyDateTime,ia=m.stringifyDuration,ba=m.smartRounding,fa=m.timeFormats,ja=m.thousandSeparator, 948qa=m.useArrayArithmetic,ha=m.useStats,na=m.undoLimit,oa=m.useColumnIndex,ma=m.useRegularExpressions,pa=m.useWildcards;t&&n.warnDeprecatedOptions(m);this.useArrayArithmetic=Object(q.configValueFromParam)(qa,"boolean","useArrayArithmetic");this.accentSensitive=Object(q.configValueFromParam)(u,"boolean","accentSensitive");this.caseSensitive=Object(q.configValueFromParam)(v,"boolean","caseSensitive");this.caseFirst=Object(q.configValueFromParam)(C,["upper","lower","false"],"caseFirst");this.ignorePunctuation= 949Object(q.configValueFromParam)(J,"boolean","ignorePunctuation");this.chooseAddressMappingPolicy=null!=y?y:n.defaultConfig.chooseAddressMappingPolicy;this.dateFormats=F(Object(q.configValueFromParamCheck)(E,Array.isArray,"array","dateFormats"));this.timeFormats=F(Object(q.configValueFromParamCheck)(fa,Array.isArray,"array","timeFormats"));this.functionArgSeparator=Object(q.configValueFromParam)(I,"string","functionArgSeparator");this.decimalSeparator=Object(q.configValueFromParam)(H,[".",","],"decimalSeparator"); 950this.language=Object(q.configValueFromParam)(R,"string","language");this.ignoreWhiteSpace=Object(q.configValueFromParam)(O,["standard","any"],"ignoreWhiteSpace");this.licenseKey=Object(q.configValueFromParam)(N,"string","licenseKey");this.thousandSeparator=Object(q.configValueFromParam)(ja,["",","," ","."],"thousandSeparator");this.arrayColumnSeparator=Object(q.configValueFromParam)(M,[",",";"],"arrayColumnSeparator");this.arrayRowSeparator=Object(q.configValueFromParam)(T,[";","|"],"arrayRowSeparator"); 951this.localeLang=Object(q.configValueFromParam)(S,"string","localeLang");this.functionPlugins=F(null!=K?K:n.defaultConfig.functionPlugins);this.smartRounding=Object(q.configValueFromParam)(ba,"boolean","smartRounding");this.evaluateNullToZero=Object(q.configValueFromParam)(G,"boolean","evaluateNullToZero");this.nullYear=Object(q.configValueFromParam)(U,"number","nullYear");Object(q.validateNumberToBeAtLeast)(this.nullYear,"nullYear",0);Object(q.validateNumberToBeAtMost)(this.nullYear,"nullYear",100); 952this.precisionRounding=Object(q.configValueFromParam)(W,"number","precisionRounding");Object(q.validateNumberToBeAtLeast)(this.precisionRounding,"precisionRounding",0);this.precisionEpsilon=Object(q.configValueFromParam)(aa,"number","precisionEpsilon");Object(q.validateNumberToBeAtLeast)(this.precisionEpsilon,"precisionEpsilon",0);this.useColumnIndex=Object(q.configValueFromParam)(oa,"boolean","useColumnIndex");this.useStats=Object(q.configValueFromParam)(ha,"boolean","useStats");this.binarySearchThreshold= 953null!=w?w:n.defaultConfig.binarySearchThreshold;this.parseDateTime=Object(q.configValueFromParam)(Y,"function","parseDateTime");this.stringifyDateTime=Object(q.configValueFromParam)(ca,"function","stringifyDateTime");this.stringifyDuration=Object(q.configValueFromParam)(ia,"function","stringifyDuration");this.translationPackage=h.HyperFormula.getLanguage(this.language);this.errorMapping=this.translationPackage.buildErrorMapping();this.nullDate=Object(q.configValueFromParamCheck)(V,p.instanceOfSimpleDate, 954"IDate","nullDate");this.leapYear1900=Object(q.configValueFromParam)(P,"boolean","leapYear1900");this.undoLimit=Object(q.configValueFromParam)(na,"number","undoLimit");this.useRegularExpressions=Object(q.configValueFromParam)(ma,"boolean","useRegularExpressions");this.useWildcards=Object(q.configValueFromParam)(pa,"boolean","useWildcards");this.matchWholeCell=Object(q.configValueFromParam)(Q,"boolean","matchWholeCell");Object(q.validateNumberToBeAtLeast)(this.undoLimit,"undoLimit",0);this.maxRows= 955Object(q.configValueFromParam)(Z,"number","maxRows");Object(q.validateNumberToBeAtLeast)(this.maxRows,"maxRows",1);this.maxColumns=Object(q.configValueFromParam)(L,"number","maxColumns");this.currencySymbol=this.setupCurrencySymbol(z);Object(q.validateNumberToBeAtLeast)(this.maxColumns,"maxColumns",1);k.set(this,{licenseKeyValidityState:Object(d.checkLicenseKeyValidity)(this.licenseKey)});Object(q.configCheckIfParametersNotInConflict)({value:this.decimalSeparator,name:"decimalSeparator"},{value:this.functionArgSeparator, 956name:"functionArgSeparator"},{value:this.thousandSeparator,name:"thousandSeparator"});Object(q.configCheckIfParametersNotInConflict)({value:this.arrayRowSeparator,name:"arrayRowSeparator"},{value:this.arrayColumnSeparator,name:"arrayColumnSeparator"})}var l,r;return r=[{key:"warnDeprecatedOptions",value:function(m){n.warnDeprecatedIfUsed(m.binarySearchThreshold,"binarySearchThreshold","1.1")}},{key:"warnDeprecatedIfUsed",value:function(m,t,u,w){void 0!==m&&(void 0===w?console.warn("".concat(t," option is deprecated since ").concat(u)): 957console.warn("".concat(t," option is deprecated since ").concat(u,", please use ").concat(w)))}}],l=[{key:"setupCurrencySymbol",value:function(m){m=F(Object(q.configValueFromParamCheck)(m,Array.isArray,"array","currencySymbol"));return m.forEach(function(t){if("string"!=typeof t)throw new e.ExpectedValueOfTypeError("string[]","currencySymbol");if(""===t)throw new e.ConfigValueEmpty("currencySymbol");}),m}},{key:"licenseKeyValidityState",get:function(){return k.get(this).licenseKeyValidityState}}, 958{key:"getConfig",value:function(){return A(this)}},{key:"mergeConfig",value:function(m){var t=Object.assign({},this.getConfig(),m);return n.warnDeprecatedOptions(m),new n(t,!1)}}],D(n.prototype,l),r&&D(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}();f.defaultConfig={accentSensitive:!1,binarySearchThreshold:20,currencySymbol:["$"],caseSensitive:!1,caseFirst:"lower",chooseAddressMappingPolicy:new b.AlwaysDense,dateFormats:["DD/MM/YYYY","DD/MM/YY"],decimalSeparator:".",evaluateNullToZero:!1, 959functionArgSeparator:",",functionPlugins:[],ignorePunctuation:!1,language:"enGB",ignoreWhiteSpace:"standard",licenseKey:"",leapYear1900:!1,localeLang:"en",matchWholeCell:!0,arrayColumnSeparator:",",arrayRowSeparator:";",maxRows:4E4,maxColumns:18278,nullYear:30,nullDate:{year:1899,month:12,day:30},parseDateTime:g.defaultParseToDateTime,precisionEpsilon:1E-13,precisionRounding:14,smartRounding:!0,stringifyDateTime:c.defaultStringifyDateTime,stringifyDuration:c.defaultStringifyDuration,timeFormats:["hh:mm", 960"hh:mm:ss.sss"],thousandSeparator:"",undoLimit:20,useRegularExpressions:!1,useWildcards:!0,useColumnIndex:!1,useStats:!1,useArrayArithmetic:!1}},function(g,b,a){function F(h,k){if(!(h instanceof k))throw new TypeError("Cannot call a class as a function");}function B(h,k){for(var f=0;f<k.length;f++){var n=k[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(h,n.key,n)}}function D(h,k,f){return k&&B(h.prototype,k),f&&B(h,f),Object.defineProperty(h, 961"prototype",{writable:!1}),h}a.r(b);a.d(b,"InternalNamedExpression",function(){return q});a.d(b,"NamedExpressions",function(){return c});a.d(b,"doesContainRelativeReferences",function(){return d});a(3);a(32);a(0);a(2);a(4);a(39);a(22);a(12);a(36);a(27);var A=a(24),x=a(74),q=function(){function h(k,f,n,l){F(this,h);this.displayName=k;this.address=f;this.added=n;this.options=l}return D(h,[{key:"normalizeExpressionName",value:function(){return this.displayName.toLowerCase()}},{key:"copy",value:function(){return new h(this.displayName, 962this.address,this.added,this.options)}}]),h}(),p=function(){function h(){F(this,h);this.mapping=new Map}return D(h,[{key:"has",value:function(k){return this.mapping.has(this.normalizeExpressionName(k))}},{key:"isNameAvailable",value:function(k){k=this.normalizeExpressionName(k);k=this.mapping.get(k);return!(k&&k.added)}},{key:"add",value:function(k){this.mapping.set(k.normalizeExpressionName(),k)}},{key:"get",value:function(k){return this.mapping.get(this.normalizeExpressionName(k))}},{key:"getExisting", 963value:function(k){return(k=this.mapping.get(this.normalizeExpressionName(k)))&&k.added?k:void 0}},{key:"remove",value:function(k){k=this.normalizeExpressionName(k);(k=this.mapping.get(k))&&(k.added=!1)}},{key:"getAllNamedExpressions",value:function(){return Array.from(this.mapping.values()).filter(function(k){return k.added})}},{key:"normalizeExpressionName",value:function(k){return k.toLowerCase()}}]),h}(),e=function(){function h(){F(this,h);this.mapping=new Map}return D(h,[{key:"add",value:function(k){this.mapping.set(this.normalizeExpressionName(k.displayName), 964k)}},{key:"get",value:function(k){return this.mapping.get(this.normalizeExpressionName(k))}},{key:"has",value:function(k){return this.mapping.has(this.normalizeExpressionName(k))}},{key:"getAllNamedExpressions",value:function(){return Array.from(this.mapping.values()).filter(function(k){return k.added})}},{key:"isNameAvailable",value:function(k){k=this.normalizeExpressionName(k);return!this.mapping.has(k)}},{key:"remove",value:function(k){k=this.normalizeExpressionName(k);this.mapping.get(k)&&this.mapping.delete(k)}}, 965{key:"normalizeExpressionName",value:function(k){return k.toLowerCase()}}]),h}(),c=function(){function h(){F(this,h);this.nextNamedExpressionRow=0;this.workbookStore=new p;this.worksheetStores=new Map;this.addressCache=new Map}return D(h,[{key:"isNameAvailable",value:function(k,f){var n,l;return void 0===f?this.workbookStore.isNameAvailable(k):null===(l=null===(n=this.worksheetStore(f))||void 0===n?void 0:n.isNameAvailable(k))||void 0===l||l}},{key:"namedExpressionInAddress",value:function(k){return(k= 966this.addressCache.get(k))&&k.added?k:void 0}},{key:"namedExpressionForScope",value:function(k,f){var n;return void 0===f?this.workbookStore.getExisting(k):null===(n=this.worksheetStore(f))||void 0===n?void 0:n.get(k)}},{key:"nearestNamedExpression",value:function(k,f){var n,l;return null!==(l=null===(n=this.worksheetStore(f))||void 0===n?void 0:n.get(k))&&void 0!==l?l:this.workbookStore.getExisting(k)}},{key:"isExpressionInScope",value:function(k,f){var n,l;return null!==(l=null===(n=this.worksheetStore(f))|| 967void 0===n?void 0:n.has(k))&&void 0!==l&&l}},{key:"isNameValid",value:function(k){return!/^[A-Za-z]+[0-9]+$/.test(k)&&/^[A-Za-z\u00C0-\u02AF_][A-Za-z0-9\u00C0-\u02AF._]*$/.test(k)}},{key:"addNamedExpression",value:function(k,f,n){f=void 0===f?this.workbookStore:this.worksheetStoreOrCreate(f);var l=f.get(k);return void 0!==l?(l.added=!0,l.displayName=k,l.options=n):(l=new q(k,this.nextAddress(),!0,n),f.add(l)),this.addressCache.set(l.address.row,l),l}},{key:"restoreNamedExpression",value:function(k, 968f){f=void 0===f?this.workbookStore:this.worksheetStoreOrCreate(f);return k.added=!0,f.add(k),this.addressCache.set(k.address.row,k),k}},{key:"namedExpressionOrPlaceholder",value:function(k,f){var n;return null!==(n=this.worksheetStoreOrCreate(f).get(k))&&void 0!==n?n:this.workbookNamedExpressionOrPlaceholder(k)}},{key:"workbookNamedExpressionOrPlaceholder",value:function(k){var f=this.workbookStore.get(k);
968return void 0===f&&(f=new q(k,this.nextAddress(),!1),this.workbookStore.add(f)),f}},{key:"remove", 969value:function(k,f){var n,l=null==(n=void 0===f?this.workbookStore:this.worksheetStore(f))?void 0:n.get(k);if(void 0===n||void 0===l||!l.added)throw"Named expression does not exist";n.remove(k);n instanceof e&&0===n.mapping.size&&this.worksheetStores.delete(f);this.addressCache.delete(l.address.row)}},{key:"getAllNamedExpressionsNamesInScope",value:function(k){return this.getAllNamedExpressions().filter(function(f){return f.scope===k}).map(function(f){return f.expression.displayName})}},{key:"getAllNamedExpressionsNames", 970value:function(){return this.getAllNamedExpressions().map(function(k){return k.expression.displayName})}},{key:"getAllNamedExpressions",value:function(){var k=[];return this.workbookStore.getAllNamedExpressions().forEach(function(f){k.push({expression:f,scope:void 0})}),this.worksheetStores.forEach(function(f,n){f.getAllNamedExpressions().forEach(function(l){k.push({expression:l,scope:n})})}),k}},{key:"getAllNamedExpressionsForScope",value:function(k){var f,n;return void 0===k?this.workbookStore.getAllNamedExpressions(): 971null!==(n=null===(f=this.worksheetStores.get(k))||void 0===f?void 0:f.getAllNamedExpressions())&&void 0!==n?n:[]}},{key:"worksheetStoreOrCreate",value:function(k){var f=this.worksheetStores.get(k);return f||(f=new e,this.worksheetStores.set(k,f)),f}},{key:"worksheetStore",value:function(k){return this.worksheetStores.get(k)}},{key:"nextAddress",value:function(){return Object(A.simpleCellAddress)(h.SHEET_FOR_WORKBOOK_EXPRESSIONS,
9710,this.nextNamedExpressionRow++)}}]),h}();c.SHEET_FOR_WORKBOOK_EXPRESSIONS= 972-1;var d=function f(k){switch(k.type){case x.AstNodeType.EMPTY:case x.AstNodeType.NUMBER:case x.AstNodeType.STRING:case x.AstNodeType.ERROR:case x.AstNodeType.ERROR_WITH_RAW_INPUT:return!1;case x.AstNodeType.CELL_REFERENCE:return!k.reference.isAbsolute();case x.AstNodeType.CELL_RANGE:case x.AstNodeType.COLUMN_RANGE:case x.AstNodeType.ROW_RANGE:return!k.start.isAbsolute();case x.AstNodeType.NAMED_EXPRESSION:return!1;case x.AstNodeType.PERCENT_OP:case x.AstNodeType.PLUS_UNARY_OP:case x.AstNodeType.MINUS_UNARY_OP:return f(k.value); 973case x.AstNodeType.CONCATENATE_OP:case x.AstNodeType.EQUALS_OP:case x.AstNodeType.NOT_EQUAL_OP:case x.AstNodeType.LESS_THAN_OP:case x.AstNodeType.GREATER_THAN_OP:case x.AstNodeType.LESS_THAN_OR_EQUAL_OP:case x.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case x.AstNodeType.MINUS_OP:case x.AstNodeType.PLUS_OP:case x.AstNodeType.TIMES_OP:case x.AstNodeType.DIV_OP:case x.AstNodeType.POWER_OP:return f(k.left)||f(k.right);case x.AstNodeType.PARENTHESIS:return f(k.expression);case x.AstNodeType.FUNCTION_CALL:return k.args.some(function(n){return f(n)}); 974case x.AstNodeType.ARRAY:return k.args.some(function(n){return n.some(function(l){return f(l)})})}}},function(g,b,a){function F(L){var U=Array.isArray(L)?x(L):void 0;U||(U="undefined"!=typeof Symbol&&null!=L[Symbol.iterator]||null!=L["@@iterator"]?Array.from(L):void 0);if(!(L=U||A(L)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return L}function B(L,U){if(!(L=function(V){if(Array.isArray(V))return V}(L)|| 975function(V,Y){var aa=null==V?null:"undefined"!=typeof Symbol&&V[Symbol.iterator]||V["@@iterator"];if(null!=aa){var W,ca=[],ia=!0,ba=!1;try{for(aa=aa.call(V);!(ia=(W=aa.next()).done)&&(ca.push(W.value),!Y||ca.length!==Y);ia=!0);}catch(ja){ba=!0;var fa=ja}finally{try{ia||null==aa.return||aa.return()}finally{if(ba)throw fa;}}return ca}}(L,U)||A(L,U)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 976return L}function D(L,U){var V="undefined"!=typeof Symbol&&L[Symbol.iterator]||L["@@iterator"];if(!V){if(Array.isArray(L)||(V=A(L))||U&&L&&"number"==typeof L.length){V&&(L=V);var Y=0;U=function(){};return{s:U,n:function(){return Y>=L.length?{done:!0}:{done:!1,value:L[Y++]}},e:function(ia){throw ia;},f:U}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var aa,W=!0,ca=!1;return{s:function(){V= 977V.call(L)},n:function(){var ia=V.next();return W=ia.done,ia},e:function(ia){ca=!0;aa=ia},f:function(){try{W||null==V.return||V.return()}finally{if(ca)throw aa;}}}}function A(L,U){if(L){if("string"==typeof L)return x(L,U);var V=Object.prototype.toString.call(L).slice(8,-1);return"Object"===V&&L.constructor&&(V=L.constructor.name),"Map"===V||"Set"===V?Array.from(L):"Arguments"===V||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?x(L,U):void 0}}function x(L,U){(null==U||U>L.length)&&(U=L.length); 978for(var V=0,Y=Array(U);V<U;V++)Y[V]=L[V];return Y}function q(L,U){if(!(L instanceof U))throw new TypeError("Cannot call a class as a function");}function p(L,U){for(var V=0;V<U.length;V++){var Y=U[V];Y.enumerable=Y.enumerable||!1;Y.configurable=!0;"value"in Y&&(Y.writable=!0);Object.defineProperty(L,Y.key,Y)}}function e(L,U,V){return U&&p(L.prototype,U),V&&p(L,V),Object.defineProperty(L,"prototype",{writable:!1}),L}function c(L){if(1>=L.length)return L;L=F(L).sort(function(Y,aa){return B(Y,1)[0]- 979B(aa,1)[0]});L=L.reduce(function(Y,aa){var W=B(aa,2);aa=W[0];W=W[1];var ca=Y[Y.length-1],ia=ca[0]+ca[1];return aa<=ia?ca[1]+=Math.max(0,W-(ia-aa)):Y.push([aa,W]),Y},[L[0]]);for(var U=0,V=0;V<L.length;++V)L[V][0]-=U,U+=L[V][1];return L}function d(L){if(1>=L.length)return L;L=F(L).sort(function(Y,aa){return B(Y,1)[0]-B(aa,1)[0]});L=L.reduce(function(Y,aa){var W=B(aa,2);aa=W[0];W=W[1];var ca=Y[Y.length-1];return aa===ca[0]?ca[1]=Math.max(ca[1],W):Y.push([aa,W]),Y},[L[0]]);for(var U=0,V=0;V<L.length;++V)L[V][0]+= 980U,U+=L[V][1];return L}function h(L){return Number.isInteger(L)&&0<L}a.r(b);a.d(b,"RemoveRowsCommand",function(){return N});a.d(b,"AddRowsCommand",function(){return Q});a.d(b,"AddColumnsCommand",function(){return M});a.d(b,"RemoveColumnsCommand",function(){return T});a.d(b,"Operations",function(){return Z});a.d(b,"normalizeRemovedIndexes",function(){return c});a.d(b,"normalizeAddedIndexes",function(){return d});a(36);a(52);a(0);a(3);a(4);a(18);a(93);a(39);a(26);a(75);a(105);a(68);a(13);a(22);a(2); 981a(12);a(8);a(9);a(10);var k=a(91),f=a(237),n=a(132),l=a(24),r=a(201),m=a(393),t=a(285),u=a(131),w=a(123),v=a(732),C=a(394),y=a(733),z=a(734),E=a(735),H=a(395),G=a(736),I=a(40),K=a(51),J=a(240),P=a(74),S=a(304),R=a(197),O=a(133),N=function(){function L(U,V){q(this,L);this.sheet=U;this.indexes=V}return e(L,[{key:"normalizedIndexes",value:function(){return c(this.indexes)}},{key:"rowsSpans",value:function(){var U=this;return this.normalizedIndexes().map(function(V){return R.RowsSpan.fromNumberOfRows(U.sheet, 982V[0],V[1])})}}]),L}(),Q=function(){function L(U,V){q(this,L);this.sheet=U;this.indexes=V}return e(L,[{key:"normalizedIndexes",value:function(){return d(this.indexes)}},{key:"rowsSpans",value:function(){var U=this;return this.normalizedIndexes().map(function(V){return R.RowsSpan.fromNumberOfRows(U.sheet,V[0],V[1])})}}]),L}(),M=function(){function L(U,V){q(this,L);this.sheet=U;this.indexes=V}return e(L,[{key:"normalizedIndexes",value:function(){return d(this.indexes)}},{key:"columnsSpans",value:function(){var U= 983this;return this.normalizedIndexes().map(function(V){return R.ColumnsSpan.fromNumberOfColumns(U.sheet,V[0],V[1])})}}]),L}(),T=function(){function L(U,V){q(this,L);this.sheet=U;this.indexes=V}return e(L,[{key:"normalizedIndexes",value:function(){return c(this.indexes)}},{key:"columnsSpans",value:function(){var U=this;return this.normalizedIndexes().map(function(V){return R.ColumnsSpan.fromNumberOfColumns(U.sheet,V[0],V[1])})}}]),L}(),Z=function(){function L(U,V,Y,aa,W,ca,ia,ba,fa){q(this,L);this.dependencyGraph= 984V;this.columnSearch=Y;this.cellContentParser=aa;this.parser=W;this.stats=ca;this.lazilyTransformingAstService=ia;this.namedExpressions=ba;this.arraySizePredictor=fa;this.changes=t.ContentChanges.empty();this.allocateNamedExpressionAddressSpace();this.maxColumns=U.maxColumns;this.maxRows=U.maxRows}return e(L,[{key:"sheetMapping",get:function(){return this.dependencyGraph.sheetMapping}},{key:"addressMapping",get:function(){return this.dependencyGraph.addressMapping}},{key:"removeRows",value:function(U){var V, 985Y=[];U=D(U.rowsSpans());try{for(U.s();!(V=U.n()).done;){var aa=this.doRemoveRows(V.value);aa&&Y.push(aa)}}catch(W){U.e(W)}finally{U.f()}return Y}},{key:"addRows",value:function(U){var V;U=D(U.rowsSpans());try{for(U.s();!(V=U.n()).done;)this.doAddRows(V.value)}catch(Y){U.e(Y)}finally{U.f()}}},{key:"addColumns",value:function(U){var V;U=D(U.columnsSpans());try{for(U.s();!(V=U.n()).done;)this.doAddColumns(V.value)}catch(Y){U.e(Y)}finally{U.f()}}},{key:"removeColumns",value:function(U){var V,Y=[];U=D(U.columnsSpans()); 986try{for(U.s();!(V=U.n()).done;){var aa=this.doRemoveColumns(V.value);aa&&Y.push(aa)}}catch(W){U.e(W)}finally{U.f()}return Y}},{key:"removeSheet",value:function(U){var V,Y=this;this.dependencyGraph.removeSheet(U);this.stats.measure(O.StatType.TRANSFORM_ASTS,function(){var W=new G.RemoveSheetTransformer(U);
986W.performEagerTransformations(Y.dependencyGraph,Y.parser);V=Y.lazilyTransformingAstService.addTransformation(W)});this.sheetMapping.removeSheet(U);this.columnSearch.removeSheet(U);var aa=this.namedExpressions.getAllNamedExpressionsForScope(U).map(function(W){return Y.removeNamedExpression(W.normalizeExpressionName(), 987U)});return{version:V,scopedNamedExpressions:aa}}},{key:"removeSheetByName",value:function(U){U=this.sheetMapping.fetch(U);return this.removeSheet(U)}},{key:"clearSheet",value:function(U){this.dependencyGraph.clearSheet(U);this.columnSearch.removeSheet(U)}},{key:"addSheet",value:function(U){U=this.sheetMapping.addSheet(U);var V=[];return this.dependencyGraph.addressMapping.autoAddSheet(U,V,Object(S.findBoundaries)(V)),this.sheetMapping.fetchDisplayName(U)}},{key:"renameSheet",value:function(U,V){return this.sheetMapping.renameSheet(U, 988V)}},{key:"moveRows",value:function(U,V,Y,aa){var W=R.RowsSpan.fromNumberOfRows(U,aa,Y);this.lazilyTransformingAstService.beginCombinedMode(U);this.doAddRows(W);aa<V&&(V+=Y);W=Object(l.simpleCellAddress)(U,0,V);aa=Object(l.simpleCellAddress)(U,0,aa);this.moveCells(W,Number.POSITIVE_INFINITY,Y,aa);U=R.RowsSpan.fromNumberOfRows(U,V,Y);return this.doRemoveRows(U),this.lazilyTransformingAstService.commitCombinedMode()}},{key:"moveColumns",value:function(U,V,Y,aa){var W=R.ColumnsSpan.fromNumberOfColumns(U, 989aa,Y);this.lazilyTransformingAstService.beginCombinedMode(U);this.doAddColumns(W);aa<V&&(V+=Y);W=Object(l.simpleCellAddress)(U,V,0);aa=Object(l.simpleCellAddress)(U,aa,0);this.moveCells(W,Y,Number.POSITIVE_INFINITY,aa);U=R.ColumnsSpan.fromNumberOfColumns(U,V,Y);return this.doRemoveColumns(U),this.lazilyTransformingAstService.commitCombinedMode()}},{key:"moveCells",value:function(U,V,Y,aa){var W=this;this.ensureItIsPossibleToMoveCells(U,V,Y,aa);var ca=k.AbsoluteCellRange.spanFrom(U,V,Y),ia=k.AbsoluteCellRange.spanFrom(aa, 990V,Y),ba=aa.col-U.col,fa=aa.row-U.row,ja=aa.sheet,qa=this.getRangeClipboardCells(ia);ia=this.dependencyGraph.rawValuesFromRange(ia);this.columnSearch.removeValues(ia);var ha;ia=this.dependencyGraph.rawValuesFromRange(ca);this.columnSearch.moveValues(ia,ba,fa,ja);this.stats.measure(O.StatType.TRANSFORM_ASTS,function(){var na=new z.MoveCellsTransformer(ca,ba,fa,ja);na.performEagerTransformations(W.dependencyGraph,W.parser);ha=W.lazilyTransformingAstService.addTransformation(na)});this.dependencyGraph.moveCells(ca, 991ba,fa,ja);U=this.updateNamedExpressionsForMovedCells(U,V,Y,aa);return{version:ha,overwrittenCellsData:qa,addedGlobalNamedExpressions:U}}},{key:"setRowOrder",value:function(U,V){var Y,aa=this,W=[],ca=[];V=D(V);try{var ia=function(){var ba=B(Y.value,2),fa=ba[0],ja=ba[1];fa!==ja&&(ba=k.AbsoluteCellRange.spanFrom({sheet:U,col:0,row:fa},1/0,1),ba=aa.getRangeClipboardCells(ba),ca=ca.concat(ba),W.push(ba.map(function(qa){qa=B(qa,2);var ha=qa[0];return[{sheet:ha.sheet,col:ha.col,row:ja},qa[1]]})))};for(V.s();!(Y= 992V.n()).done;)ia()}catch(ba){V.e(ba)}finally{V.f()}return W.forEach(function(ba){return aa.restoreClipboardCells(U,ba.values())}),ca}},{key:"setColumnOrder",value:function(U,V){var Y,aa=this,W=[],ca=[];V=D(V);try{var ia=function(){var ba=B(Y.value,2),fa=ba[0],ja=ba[1];fa!==ja&&(ba=k.AbsoluteCellRange.spanFrom({sheet:U,col:fa,row:0},1,1/0),ba=aa.getRangeClipboardCells(ba),ca=ca.concat(ba),W.push(ba.map(function(qa){qa=B(qa,2);var ha=qa[0],na=ha.sheet;ha=(ha.col,ha.row);return[{sheet:na,col:ja,row:ha}, 993qa[1]]})))};for(V.s();!(Y=V.n()).done;)ia()}catch(ba){V.e(ba)}finally{V.f()}return W.forEach(function(ba){return aa.restoreClipboardCells(U,ba.values())}),ca}},{key:"addNamedExpression",value:function(U,V,Y,aa){aa=this.namedExpressions.addNamedExpression(U,Y,aa);this.storeNamedExpressionInCell(aa.address,V);this.adjustNamedExpressionEdges(aa,U,Y)}},{key:"restoreNamedExpression",value:function(U,V,Y){var aa=U.displayName;this.restoreCell(U.address,V);U=this.namedExpressions.restoreNamedExpression(U, 994Y);this.adjustNamedExpressionEdges(U,aa,Y)}},{key:"changeNamedExpressionExpression",value:function(U,V,Y,aa){Y=this.namedExpressions.namedExpressionForScope(U,Y);if(!Y)throw new I.NamedExpressionDoesNotExistError(U);U=Y.copy();Y.options=aa;aa=this.getClipboardCell(Y.address);return this.storeNamedExpressionInCell(Y.address,V),[U,aa]}},{key:"removeNamedExpression",value:function(U,V){var Y=this.namedExpressions.namedExpressionForScope(U,V);if(!Y)throw new I.NamedExpressionDoesNotExistError(U);this.namedExpressions.remove(Y.displayName, 995V);var aa=this.getClipboardCell(Y.address);void 0!==V?(U=this.namedExpressions.workbookNamedExpressionOrPlaceholder(U),this.dependencyGraph.exch
995angeNode(Y.address,U.address)):this.dependencyGraph.setCellEmpty(Y.address);return[Y,aa]}},{key:"ensureItIsPossibleToMoveCells",value:function(U,V,Y,aa){var W;(W=Object(l.invalidSimpleCellAddress)(U))||((W=h(V)&&h(Y))||(W=0===U.row&&h(V)&&Y===Number.POSITIVE_INFINITY||0===U.col&&h(Y)&&V===Number.POSITIVE_INFINITY),W=!W);if(W||Object(l.invalidSimpleCellAddress)(aa)|| 996!this.sheetMapping.hasSheetWithId(U.sheet)||!this.sheetMapping.hasSheetWithId(aa.sheet))throw new I.InvalidArgumentsError("a valid range of cells to move.");U=k.AbsoluteCellRange.spanFrom(U,V,Y);V=k.AbsoluteCellRange.spanFrom(aa,V,Y);if(V.exceedsSheetSizeLimits(this.maxColumns,this.maxRows))throw new I.SheetSizeLimitExceededError;if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(U))throw new I.SourceLocationHasArrayError;if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(V))throw new I.TargetLocationHasArrayError; 997}},{key:"restoreClipboardCells",value:function(U,V){var Y,aa=[];V=D(V);try{for(V.s();!(Y=V.n()).done;){var W=B(Y.value,2),ca=W[0],ia=W[1];if(this.restoreCell(ca,ia),ia.type===m.ClipboardCellType.FORMULA){var ba=this.parser.fetchCachedResult(ia.hash).dependencies;aa.push.apply(aa,F(this.updateNamedExpressionsForTargetAddress(U,ca,ba)))}}}catch(fa){V.e(fa)}finally{V.f()}return aa}},{key:"restoreCell",value:function(U,V){switch(V.type){case m.ClipboardCellType.VALUE:this.setValueToCell(V,U);break;case m.ClipboardCellType.FORMULA:this.setFormulaToCellFromCache(V.hash, 998U);break;case m.ClipboardCellType.EMPTY:this.setCellEmpty(U);break;case m.ClipboardCellType.PARSING_ERROR:this.setParsingErrorToCell(V.rawInput,V.errors,U)}}},{key:"getOldContent",value:function(U){var V=this.dependencyGraph.getCell(U);if(void 0===V||V instanceof u.EmptyCellVertex)return[U,{type:m.ClipboardCellType.EMPTY}];if(V instanceof u.ValueCellVertex)return[U,Object.assign({type:m.ClipboardCellType.VALUE},V.getValues())];if(V instanceof w.FormulaVertex)return[V.getAddress(this.lazilyTransformingAstService), 999{type:m.ClipboardCellType.FORMULA,hash:this.parser.computeHashFromAst(V.getFormula(this.lazilyTransformingAstService))}];if(V instanceof u.ParsingErrorVertex)return[U,{type:m.ClipboardCellType.PARSING_ERROR,rawInput:V.rawInput,errors:V.errors}];throw Error("Trying to copy unsupported type");}},{key:"getClipboardCell",value:function(U){var V=this.dependencyGraph.getCell(U);if(void 0===V||V instanceof u.EmptyCellVertex)return{type:m.ClipboardCellType.EMPTY};if(V instanceof u.ValueCellVertex)return Object.assign({type:m.ClipboardCellType.VALUE}, 1000V.getValues());if(V instanceof u.ArrayVertex){var Y=V.getArrayCellValue(U);return Y===K.EmptyValue?{type:m.ClipboardCellType.EMPTY}:{type:m.ClipboardCellType.VALUE,parsedValue:Y,rawValue:V.getArrayCellRawValue(U)}}if(V instanceof u.FormulaCellVertex)return{type:m.ClipboardCellType.FORMULA,hash:this.parser.computeHashFromAst(V.getFormula(this.lazilyTransformingAstService))};if(V instanceof u.ParsingErrorVertex)return{type:m.ClipboardCellType.PARSING_ERROR,rawInput:V.rawInput,errors:V.errors};throw Error("Trying to copy unsupported type"); 1001}},{key:"getSheetClipboardCells",value:function(U){for(var V=this.dependencyGraph.getSheetHeight(U),Y=this.dependencyGraph.getSheetWidth(U),aa=Array(V),W=0;W<V;W++){aa[W]=Array(Y);for(var ca=0;ca<Y;ca++){var ia=Object(l.simpleCellAddress)(U,ca,W);aa[W][ca]=this.getClipboardCell(ia)}}return aa}},{key:"getRangeClipboardCells",value:function(U){var V,Y=[];U=D(U.addresses(this.dependencyGraph));try{for(U.s();!(V=U.n()).done;){var aa=V.value;Y.push([aa,this.getClipboardCell(aa)])}}catch(W){U.e(W)}finally{U.f()}return Y}}, 1002{key:"setCellContent",value:function(U,V){var Y=this.cellContentParser.parse(V),aa=this.getOldContent(U);if(Y instanceof r.CellContent.Formula){V=this.parser.parse(Y.formula,U);var W=V.ast,ca=V.errors;0<ca.length?this.setParsingErrorToCell(Y.formula,ca,U):(Y=this.arraySizePredictor.checkArraySize(W,U),this.setFormulaToCell(U,Y,V))}else Y instanceof r.CellContent.Empty?this.setCellEmpty(U):this.setValueToCell({parsedValue:Y.value,rawValue:V},U);return aa}},{key:"setSheetContent",value:function(U,V){this.clearSheet(U); 1003for(var Y=0;Y<V.length;Y++)for(var aa=0;aa<V[Y].length;aa++){var W=Object(l.simpleCellAddress)(U,aa,Y);this.setCellContent(W,V[Y][aa])}}},{key:"setParsingErrorToCell",value:function(U,V,Y){var aa=this.dependencyGraph.getCellValue(Y);U=new u.ParsingErrorVertex(V,U);V=this.dependencyGraph.setParsingErrorToCell(Y,U);this.columnSearch.remove(Object(K.getRawValue)(aa),Y);this.columnSearch.applyChanges(V.getChanges());this.changes.addAll(V);this.changes.addChange(U.getCellValue(),Y)}},{key:"setFormulaToCell", 1004value:function(U,V,Y){var aa=Y.ast,W=Y.hasVolatileFunction,ca=Y.hasStru
1004cturalChangeFunction,ia=Y.dependencies;Y=this.dependencyGraph.getCellValue(U);V=this.dependencyGraph.setFormulaToCell(U,aa,Object(f.absolutizeDependencies)(ia,U),V,W,ca);this.columnSearch.remove(Object(K.getRawValue)(Y),U);this.columnSearch.applyChanges(V.getChanges());this.changes.addAll(V)}},{key:"setValueToCell",value:function(U,V){var Y=this.dependencyGraph.getCellValue(V),aa=this.dependencyGraph.setValueToCell(V,U);this.columnSearch.change(Object(K.getRawValue)(Y), 1005Object(K.getRawValue)(U.parsedValue),V);this.columnSearch.applyChanges(aa.getChanges().filter(function(W){return!Object(l.equalSimpleCellAddress)(W.address,V)}));this.changes.addAll(aa);this.changes.addChange(U.parsedValue,V)}},{key:"setCellEmpty",value:function(U){if(!this.dependencyGraph.isArrayInternalCell(U)){var V=this.dependencyGraph.getCellValue(U),Y=this.dependencyGraph.setCellEmpty(U);this.columnSearch.remove(Object(K.getRawValue)(V),U);this.columnSearch.applyChanges(Y.getChanges());this.changes.addAll(Y); 1006this.changes.addChange(K.EmptyValue,U)}}},{key:"setFormulaToCellFromCache",value:function(U,V){var Y=this.parser.fetchCachedResult(U),aa=Y.ast;U=Y.hasVolatileFunction;var W=Y.hasStructuralChangeFunction,ca=Object(f.absolutizeDependencies)(Y.dependencies,V);Y=B((new y.CleanOutOfScopeDependenciesTransformer(V.sheet)).transformSingleAst(aa,V),1)[0];this.parser.rememberNewAst(Y);ca=Object(f.filterDependenciesOutOfScope)(ca);aa=this.arraySizePredictor.checkArraySize(aa,V);this.dependencyGraph.setFormulaToCell(V, 1007Y,ca,aa,U,W)}},{key:"rowEffectivelyNotInSheet",value:function(U,V){return U>=this.dependencyGraph.addressMapping.getHeight(V)}},{key:"getAndClearContentChanges",value:function(){var U=this.changes;return this.changes=t.ContentChanges.empty(),U}},{key:"forceApplyPostponedTransformations",value:function(){this.dependencyGraph.forceApplyPostponedTransformations()}},{key:"doRemoveRows",value:function(U){var V=this;if(!this.rowEffectivelyNotInSheet(U.rowStart,U.sheet)){var Y,aa=[],W=D(this.dependencyGraph.entriesFromRowsSpan(U)); 1008try{for(W.s();!(Y=W.n()).done;){var ca=B(Y.value,1)[0];aa.push({address:ca,cellType:this.getClipboardCell(ca)})}}catch(ba){W.e(ba)}finally{W.f()}var ia;Y=this.dependencyGraph.removeRows(U);W=Y.affectedArrays;return this.columnSearch.applyChanges(Y.contentChanges.getChanges()),this.stats.measure(O.StatType.TRANSFORM_ASTS,function(){var ba=new H.RemoveRowsTransformer(U);ba.performEagerTransformations(V.dependencyGraph,V.parser);ia=V.lazilyTransformingAstService.addTransformation(ba)}),this.rewriteAffectedArrays(W), 1009{version:ia,removedCells:aa,rowFrom:U.rowStart,rowCount:U.numberOfRows}}}},{key:"doRemoveColumns",value:function(U){var V=this;if(!this.columnEffectivelyNotInSheet(U.columnStart,U.sheet)){var Y,aa=[],W=D(this.dependencyGraph.entriesFromColumnsSpan(U));try{for(W.s();!(Y=W.n()).done;){var ca=B(Y.value,1)[0];aa.push({address:ca,cellType:this.getClipboardCell(ca)})}}catch(ba){W.e(ba)}finally{W.f()}var ia;Y=this.dependencyGraph.removeColumns(U);W=Y.affectedArrays;return this.columnSearch.applyChanges(Y.contentChanges.getChanges()), 1010this.columnSearch.removeColumns(U),this.stats.measure(O.StatType.TRANSFORM_ASTS,function(){var ba=new E.RemoveColumnsTransformer(U);ba.performEagerTransformations(V.dependencyGraph,V.parser);ia=V.lazilyTransformingAstService.addTransformation(ba)}),this.rewriteAffectedArrays(W),{version:ia,removedCells:aa,columnFrom:U.columnStart,columnCount:U.numberOfColumns}}}},{key:"doAddRows",value:function(U){var V=this;if(!this.rowEffectivelyNotInSheet(U.rowStart,U.sheet)){var Y=this.dependencyGraph.addRows(U).affectedArrays; 1011this.stats.measure(O.StatType.TRANSFORM_ASTS,function(){var aa=new C.AddRowsTransformer(U);aa.performEagerTransformations(V.dependencyGraph,V.parser);V.lazilyTransformingAstService.addTransformation(aa)});this.rewriteAffectedArrays(Y)}}},{key:"rewriteAffectedArrays",value:function(U){var V;U=D(U.values());try{for(U.s();!(V=U.n()).done;){var Y=V.value;if(!Y.array.size.isRef){var aa=Y.getFormula(this.lazilyTransformingAstService),W=Y.getAddress(this.lazilyTransformingAstService),ca=this.parser.computeHashFromAst(aa); 1012this.setFormulaToCellFromCache(ca,W)}}}catch(ia){U.e(ia)}finally{U.f()}}},{key:"doAddColumns",value:function(U){var V=this;if(!this.columnEffectivelyNotInSheet(U.columnStart,U.sheet)){var Y=this.dependencyGraph.addColumns(U),aa=Y.affectedArrays;Y=Y.contentChanges;this.columnSearch.addColumns(U);this.columnSearch.applyChanges(Y.getChanges());this.stats.measure(O.StatType.TRANSFORM_ASTS,function(){var W=new v.AddColumnsTransformer(U);W.performEagerTransformations(V.dependencyGraph,V.parser);V.lazilyTransformingAstService.addTransformation(W)}); 1013this.rewriteAffectedArrays(aa)}}},{key:"columnEffectivelyNotInSheet",value:function(U,V){return U>=this.dependencyGraph.addressMapping.getWidth(V)}}
1013,{key:"adjustNamedExpressionEdges",value:function(U,V,Y){if(void 0!==Y){var aa,W=this.dependencyGraph.fetchCellOrCreateEmpty(U.address);V=this.namedExpressions.workbookNamedExpressionOrPlaceholder(V);V=this.dependencyGraph.fetchCellOrCreateEmpty(V.address);var ca=D(this.dependencyGraph.graph.adjacentNodes(V));try{for(ca.s();!(aa=ca.n()).done;){var ia= 1014aa.value;if(ia instanceof u.FormulaCellVertex&&ia.getAddress(this.lazilyTransformingAstService).sheet===Y){var ba,fa=ia.getFormula(this.lazilyTransformingAstService),ja=ia.getAddress(this.lazilyTransformingAstService),qa=this.parser.fetchCachedResultForAst(fa).dependencies,ha=D(Object(f.absolutizeDependencies)(qa,ja));try{for(ha.s();!(ba=ha.n()).done;){var na=ba.value;na instanceof P.NamedExpressionDependency&&na.name.toLowerCase()===U.displayName.toLowerCase()&&(this.dependencyGraph.graph.removeEdge(V, 1015ia),this.dependencyGraph.graph.addEdge(W,ia))}}catch(oa){ha.e(oa)}finally{ha.f()}}}}catch(oa){ca.e(oa)}finally{ca.f()}}}},{key:"storeNamedExpressionInCell",value:function(U,V){var Y=this.cellContentParser.parse(V);if(Y instanceof r.CellContent.Formula){V=this.parser.parse(Y.formula,Object(l.simpleCellAddress)(-1,0,0));if(Object(J.doesContainRelativeReferences)(V.ast))throw new I.NoRelativeAddressesAllowedError;Y=V.hasVolatileFunction;var aa=V.hasStructuralChangeFunction;this.dependencyGraph.setFormulaToCell(U, 1016V.ast,Object(f.absolutizeDependencies)(V.dependencies,U),n.ArraySize.scalar(),Y,aa)}else Y instanceof r.CellContent.Empty?this.setCellEmpty(U):this.setValueToCell({parsedValue:Y.value,rawValue:V},U)}},{key:"updateNamedExpressionsForMovedCells",value:function(U,V,Y,aa){if(U.sheet===aa.sheet)return[];var W,ca=[];V=D(k.AbsoluteCellRange.spanFrom(aa,V,Y).addresses(this.dependencyGraph));try{for(V.s();!(W=V.n()).done;){var ia=W.value,ba=this.addressMapping.fetchCell(ia);if(ba instanceof u.FormulaCellVertex&& 1017ia.sheet!==U.sheet){var fa=ba.getFormula(this.lazilyTransformingAstService),ja=this.parser.fetchCachedResultForAst(fa).dependencies;ca.push.apply(ca,F(this.updateNamedExpressionsForTargetAddress(U.sheet,ia,ja)))}}}catch(qa){V.e(qa)}finally{V.f()}return ca}},{key:"updateNamedExpressionsForTargetAddress",value:function(U,V,Y){if(U===V.sheet)return[];var aa,W=[],ca=this.addressMapping.fetchCell(V);Y=D(Object(f.absolutizeDependencies)(Y,V));try{for(Y.s();!(aa=Y.n()).done;){var ia=aa.value;if(ia instanceof 1018P.NamedExpressionDependency){var ba=ia.name,fa=this.dependencyGraph.fetchNamedExpressionVertex(ba,U),ja=this.namedExpressions.isExpressionInScope(ba,V.sheet)?this.dependencyGraph.fetchNamedExpressionVertex(ba,V.sheet):this.copyOrFetchGlobalNamedExpressionVertex(ba,fa,W);ja!==fa&&(this.dependencyGraph.graph.softRemoveEdge(fa,ca),this.dependencyGraph.graph.addEdge(ja,ca))}}}catch(qa){Y.e(qa)}finally{Y.f()}return W}},{key:"allocateNamedExpressionAddressSpace",value:function(){this.dependencyGraph.addressMapping.addSheet(-1, 1019new u.SparseStrategy(0,0))}},{key:"copyOrFetchGlobalNamedExpressionVertex",value:function(U,V,Y){var aa=this.namedExpressions.namedExpressionForScope(U);void 0===aa&&((aa=this.namedExpressions.addNamedExpression(U),Y.push(aa.normalizeExpressionName()),V instanceof u.FormulaCellVertex)?(U=this.parser.fetchCachedResultForAst(V.getFormula(this.lazilyTransformingAstService)),V=U.hasVolatileFunction,Y=U.hasStructuralChangeFunction,this.dependencyGraph.setFormulaToCell(aa.address,U.ast,Object(f.absolutizeDependencies)(U.dependencies, 1020aa.address),n.ArraySize.scalar(),V,Y)):V instanceof u.EmptyCellVertex?this.setCellEmpty(aa.address):V instanceof u.ValueCellVertex&&this.setValueToCell(V.getValues(),aa.address));return this.dependencyGraph.fetchCellOrCreateEmpty(aa.address)}}]),L}()},function(g,b,a){function F(m,t){if(!(m=function(u){if(Array.isArray(u))return u}(m)||function(u,w){var v=null==u?null:"undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(null!=v){var C,y=[],z=!0,E=!1;try{for(v=v.call(u);!(z=(C=v.next()).done)&& 1021(y.push(C.value),!w||y.length!==w);z=!0);}catch(G){E=!0;var H=G}finally{try{z||null==v.return||v.return()}finally{if(E)throw H;}}return y}}
1021(m,t)||B(m,t)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return m}function B(m,t){if(m){if("string"==typeof m)return D(m,t);var u=Object.prototype.toString.call(m).slice(8,-1);return"Object"===u&&m.constructor&&(u=m.constructor.name),"Map"===u|| 1022"Set"===u?Array.from(m):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?D(m,t):void 0}}function D(m,t){(null==t||t>m.length)&&(t=m.length);for(var u=0,w=Array(t);u<t;u++)w[u]=m[u];return w}function A(m,t){if(!(m instanceof t))throw new TypeError("Cannot call a class as a function");}function x(m,t){for(var u=0;u<t.length;u++){var w=t[u];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(m,w.key,w)}}function q(m,t,u){return t&&x(m.prototype, 1023t),u&&x(m,u),Object.defineProperty(m,"prototype",{writable:!1}),m}a.r(b);a.d(b,"ExportedCellChange",function(){return n});a.d(b,"ExportedNamedExpressionChange",function(){return l});a.d(b,"Exporter",function(){return r});a(26);a(36);a(397);a(13);a(0);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var p=a(24),e=a(297),c=a(46),d=a(51),h=a(82),k=a(240),f=a(104),n=function(){function m(t,u){A(this,m);this.address=t;this.newValue=u}return q(m,[{key:"col",get:function(){return this.address.col}},{key:"row", 1024get:function(){return this.address.row}},{key:"sheet",get:function(){return this.address.sheet}},{key:"value",get:function(){return this.newValue}}]),m}(),l=q(function w(t,u){A(this,w);this.name=t;this.newValue=u}),r=function(){function t(u,w,v,C){A(this,t);this.config=u;this.namedExpressions=w;this.sheetIndexMapping=v;this.lazilyTransformingService=C}return q(t,[{key:"exportChange",value:function(u){var w=u.value,v=u.address;if(v.sheet===k.NamedExpressions.SHEET_FOR_WORKBOOK_EXPRESSIONS){var C=this.namedExpressions.namedExpressionInAddress(v.row); 1025if(!C)throw Error("Missing named expression");return new l(C.displayName,this.exportScalarOrRange(w))}if(w instanceof h.SimpleRangeValue){u=[];w=function(z,E){var H="undefined"!=typeof Symbol&&z[Symbol.iterator]||z["@@iterator"];if(!H){if(Array.isArray(z)||(H=B(z))||E&&z&&"number"==typeof z.length){H&&(z=H);var G=0;E=function(){};return{s:E,n:function(){return G>=z.length?{done:!0}:{done:!1,value:z[G++]}},e:function(P){throw P;},f:E}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1026}var I,K=!0,J=!1;return{s:function(){H=H.call(z)},n:function(){var P=H.next();return K=P.done,P},e:function(P){J=!0;I=P},f:function(){try{K||null==H.return||H.return()}finally{if(J)throw I;}}}}(w.entriesFromTopLeftCorner(v));try{for(w.s();!(C=w.n()).done;){var y=F(C.value,2);u.push(new n(y[1],this.exportValue(y[0])))}}catch(z){w.e(z)}finally{w.f()}return u}return new n(v,this.exportValue(w))}},{key:"exportValue",value:function(u){return u instanceof h.SimpleRangeValue?this.detailedError(new p.CellError(p.ErrorType.VALUE, 1027c.ErrorMessage.ScalarExpected)):this.config.smartRounding&&Object(d.isExtendedNumber)(u)?this.cellValueRounding(Object(d.getRawValue)(u)):u instanceof p.CellError?this.detailedError(u):u===d.EmptyValue?null:Object(d.getRawValue)(u)}},{key:"exportScalarOrRange",value:function(u){var w=this;return u instanceof h.SimpleRangeValue?u.rawData().map(function(v){return v.map(function(C){return w.exportValue(C)})}):this.exportValue(u)}},{key:"detailedError",value:function(u){var w,v,C=void 0,y=null===(w=u.root)|| 1028void 0===w?void 0:w.getAddress(this.lazilyTransformingService);return void 0!==y&&(C=y.sheet===k.NamedExpressions.SHEET_FOR_WORKBOOK_EXPRESSIONS?null===(v=this.namedExpressions.namedExpressionInAddress(y.row))||void 0===v?void 0:v.displayName:Object(f.simpleCellAddressToString)(this.sheetIndexMapping,y,-1)),new e.DetailedCellError(u,this.config.translationPackage.getErrorTranslation(u.type),C)}},{key:"cellValueRounding",value:function(u){if(0===u)return u;var w=Math.pow(10,this.config.precisionRounding- 1029Math.floor(Math.log10(Math.abs(u))));return 0>u?-Math.round(-u*w)/w:Math.round(u*w)/w}}]),t}()},function(g,b,a){function F(c){c=(0,A.toUpperCaseFirst)(c);return e.getItem(c)}g=a(1);b.__esModule=!0;b.getPlugin=F;b.getPluginsNames=function(){return[].concat((0,D.default)(q.getItems()),(0,D.default)(p.getItems())
1029)};b.hasPlugin=function(c){return!!F(c)};b.registerPlugin=function(c,d,h){c=function(k,f,n){"function"==typeof k&&(k=(f=k).PLUGIN_KEY,n=f.PLUGIN_PRIORITY);return[k,f,n]}(c,d,h);h=(0,B.default)(c, 10303);c=h[0];d=h[1];h=h[2];void 0===F(c)&&function(k,f,n){k=(0,A.toUpperCaseFirst)(k);if(e.hasItem(k))throw Error(x(k));void 0===n?p.addItem(k):q.addItem(n,k);e.addItem(k,f)}(c,d,h)};a(18);var B=g(a(34)),D=g(a(43)),A=a(97);b=a(784);g=a(244);a=a(785);var x=function(c){return'There is already registered "'.concat(c,'" plugin.')},q=(0,b.createPriorityMap)({errorPriorityExists:function(c){return'There is already registered plugin on priority "'.concat(c,'".')},errorPriorityNaN:function(c){return'The priority "'.concat(c, 1031'" is not a number.')}}),p=(0,a.createUniqueSet)({errorItemExists:x}),e=(0,g.createUniqueMap)({errorIdExists:x})},function(g,b,a){g=a(1);b.__esModule=!0;b.createUniqueMap=function(){function x(){return(0,F.default)(e)}function q(c){return e.has(c)}var p=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).errorIdExists,e=new Map;return p=(0,D.isFunction)(p)?p:A,{addItem:function(c,d){if(q(c))throw Error(p(c));e.set(c,d)},clear:function(){e.clear()},getId:function(c){var d=x().find(function(h){h= 1032(0,B.default)(h,2);var k=h[0];return c===h[1]&&k})||[null];return(0,B.default)(d,1)[0]},getItem:function(c){return e.get(c)},getItems:x,hasItem:q,removeItem:function(c){return e.delete(c)}}};var F=g(a(43)),B=g(a(34));a(3);a(32);a(0);a(2);a(4);a(146);var D=a(70),A=function(x){return"The id '".concat(x,"' is already declared in a map.")}},function(g,b,a){g=a(1);b.__esModule=!0;var F=g(a(595));b.OrderView=F.default;a=g(a(800));b.SharedOrderView=a.default},function(g,b,a){var F=a(1);b.__esModule=!0;b.IndexMap= 1033void 0;a(13);var B=F(a(5)),D=F(a(6)),A=a(47);g=a(17);var x=a(70);a=F(a(98));F=function(){function q(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;(0,B.default)(this,q);this.indexedValues=[];this.initValueOrFn=p}return(0,D.default)(q,[{key:"getValues",value:function(){return this.indexedValues}},{key:"getValueAtIndex",value:function(p){var e=this.indexedValues;if(p<e.length)return e[p]}},{key:"setValues",value:function(p){this.indexedValues=p.slice();this.runLocalHooks("change")}}, 1034{key:"setValueAtIndex",value:function(p,e){return p<this.indexedValues.length&&(this.indexedValues[p]=e,this.runLocalHooks("change"),!0)}},{key:"clear",value:function(){this.setDefaultValues()}},{key:"getLength",value:function(){return this.getValues().length}},{key:"setDefaultValues",value:function(){var p=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0;(0,x.isFunction)(this.initValueOrFn)?(0,A.rangeEach)(e-1,function(c){return p.indexedValues.push(p.initValueOrFn(c))}): 1035(0,A.rangeEach)(e-1,function(){return p.indexedValues.push(p.initValueOrFn)});this.runLocalHooks("change")}},{key:"init",value:function(p){return this.setDefaultValues(p),this.runLocalHooks("init"),this}},{key:"insert",value:function(){this.runLocalHooks("change")}},{key:"remove",value:function(){this.runLocalHooks("change")}},{key:"destroy",value:function(){this.clearLocalHooks();this.initValueOrFn=this.indexedValues=null}}]),q}();b.IndexMap=F;(0,g.mixin)(F,a.default)},function(g,b,a){g=a(1);b.__esModule= 1036!0;b.getListWithInsertedItems=function(D,A,x){return[].concat((0,F.default)(D.slice(0,A)),(0,F.default)(x),(0,F.default)(D.slice(A)))};b.getListWithRemovedItems=function(D,A){return(0,B.arrayFilter)(D,function(x){return!1===A.includes(x)})};a(18);a(13);a(42);a(49);var F=g(a(43)),B=a(20)},function(g,b,a){function F(k){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:d;if(f!==d&&f!==h)throw Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(k); 1037f=f===d;var l=0;n&&(n=k[0],0===k.length?l=1:f&&n instanceof x.CellRange?l=3:f&&Array.isArray(n)?l=F(n,h):2<=k.length&&4>=k.length&&!k.some(function(r,m){return!c[m].includes((0,A.default)(r))})&&(l=2));return l}function B(k){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=f.keepDirection,l=void 0!==n&&n,r=f.propToCol;if(!e.includes(k))throw Error("Unsupported selection ranges schema type was provided.");return function(m){var t=3===k,u=t?m.from.row:m[0],w=t?m.from.col:m[1],v=t?m.to.row: 1038m[2],C=t?m.to.col:m[3];("function"==typeof r&&("string"==typeof w&&(w=r(w)),"string"==typeof C&&(C=r(C))),(0,p.isUndefined)(v)&&(v=u),(0,p.isUndefined)(C)&&(C=w),l)||(m=u,t=w,u=Math.min(m,v),w=Math.min(t,C),v=Math.max(m,v),C=Math.max(t,C));return[u,w,v,C]}}g=a(1);b.__esModule=!0;b.SELECTION_TYPE_UNRECOGNIZED=b.SELECTION_TYPE_OBJECT=b.SELECTION_TYPE_EMPTY=b.SELECTION_TYPE_ARRAY=b.SELECTION_TYPES=void 0;b.detectSelectionType=F;b.isValidCoord=function(k){var f=1<arguments.length&&void 0!==arguments[1]? 1039arguments[1]:1/0;return"number"==typeof k&&0<=k&&k<f};b.normalizeSelectionFactory=B;b.transformSelectionToColumnDistance=function(k){var f=F(k);if(0===f||1===f)return[];var n=B(f),l=new Set;(0,q.arrayEach)(k,function(r){r=n(r);r=(0,D.default)(r,4);var m=Math.max(r[1],0);(0,q.arrayEach)(Array.from(Array(r[3]-m+1),function(t,u){return m+u}),function(t){l.has(t)||l.add(t)})});k=Array.from(l).sort(function(r,m){return r-m});return(0,q.arrayReduce)(k,function(r,m,t,u){return 0!==t&&m===u[t-1]+1?r[r.length- 10401][1]+=1:r.push([m,1]),r},[])};b.transformSelectionToRowDistance=function(k){var f=F(k);if(0===f||1===f)return[];var n=B(f),l=new Set;(0,q.arrayEach)(k,function(r){r=n(r);r=(0,D.default)(r,3);var m=Math.max(r[0],0);(0,q.arrayEach)(Array.from(Array(r[2]-m+1),function(t,u){return m+u}),function(t){l.has(t)||l.add(t)})});k=Array.from(l).sort(function(r,m){return r-m});return(0,q.arrayReduce)(k,function(r,m,t,u){return 0!==t&&m===u[t-1]+1?r[r.length-1][1]+=1:r.push([m,1]),r},[])};var D=g(a(34)),A=g(a(21)); 1041a(8);a(9);a(0);a(42);a(49);a(3);a(54);a(2);a(4);a(22);a(75);var x=a(167),q=a(20),p=a(31);b.SELECTION_TYPE_UNRECOGNIZED=0;b.SELECTION_TYPE_EMPTY=1;b.SELECTION_TYPE_ARRAY=2;b.SELECTION_TYPE_OBJECT=3;var e=[3,2];b.SELECTION_TYPES=e;var c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),h=Symbol("child")},function(g,b,a){b.__esModule=!0;b.baseRenderer=b.RENDERER_TYPE=void 0;g=a(872);b.RENDERER_TYPE=g.RENDERER_TYPE;b.baseRenderer=g.baseRenderer}, 1042function(g,b,a){var F=a(1);b.__esModule=!0;b.default=void 0;var B=F(a(5)),D=F(a(6)),A=a(20);g=a(17);F=F(a(98));var x=a(84);a=function(){function q(p,e){var c=e.id;e=e.stateless;e=void 0===e||e;(0,B.default)(this,q);this.hot=p;this.id=c;this.elements=[];this.hidden=!1;
1042this.stateId="Filters.component.".concat(this.id);this.state=e?null:this.hot.columnIndexMapper.registerMap(this.stateId,new x.LinkedPhysicalIndexToValueMap)}return(0,D.default)(q,[{key:"reset",value:function(){(0,A.arrayEach)(this.elements, 1043function(p){return p.reset()})}},{key:"hide",value:function(){this.hidden=!0}},{key:"show",value:function(){this.hidden=!1}},{key:"isHidden",value:function(){return null===this.hot||this.hidden}},{key:"restoreState",value:function(p){this.state&&this.setState(this.state.getValueAtIndex(p))}},{key:"setState",value:function(){throw Error("The state setting logic is not implemented");}},{key:"saveState",value:function(p){this.state&&this.state.setValueAtIndex(p,this.getState())}},{key:"getState",value:function(){throw Error("The state gathering logic is not implemented"); 1044}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.stateId);this.clearLocalHooks();(0,A.arrayEach)(this.elements,function(p){return p.destroy()});this.hot=this.elements=this.state=null}}]),q}();(0,g.mixin)(a,F.default);b.default=a},function(g,b,a){function F(u){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(u)} 1045function B(u,w){(null==w||w>u.length)&&(w=u.length);for(var v=0,C=Array(w);v<w;v++)C[v]=u[v];return C}function D(u,w){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,C){return v.__proto__=C,v})(u,w)}function A(u){var w=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(v){return!1}}();return function(){var v= 1046x(u);if(w){var C=x(this).constructor;v=Reflect.construct(v,arguments,C)}else v=v.apply(this,arguments);if(!v||"object"!==F(v)&&"function"!=typeof v){if(void 0!==v)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");v=this}return v}}function x(u){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)})(u)}a.r(b); 1047a(25);a(256);a(122);a(0);a(7);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var q=a(24);a.d(b,"CellType",function(){return q.CellType});a.d(b,"CellValueType",function(){return q.CellValueType});a.d(b,"CellValueDetailedType",function(){return q.CellValueDetailedType});a.d(b,"ErrorType",function(){return q.ErrorType});a.d(b,"CellError",function(){return q.CellError});var p=a(297);a.d(b,"DetailedCellError",function(){return p.DetailedCellError});var e=a(239),c=a(199);a.d(b,"AlwaysDense",function(){return c.AlwaysDense}); 1048a.d(b,"AlwaysSparse",function(){return c.AlwaysSparse});a.d(b,"DenseSparseChooseBasedOnThreshold",function(){return c.DenseSparseChooseBasedOnThreshold});var d=a(40);a.d(b,"ConfigValueTooBigError",function(){return d.ConfigValueTooBigError});a.d(b,"ConfigValueTooSmallError",function(){return d.ConfigValueTooSmallError});a.d(b,"EvaluationSuspendedError",function(){return d.EvaluationSuspendedError});a.d(b,"ExpectedOneOfValuesError",function(){return d.ExpectedOneOfValuesError});a.d(b,"ExpectedValueOfTypeError", 1049function(){return d.ExpectedValueOfTypeError});a.d(b,"FunctionPluginValidationError",function(){return d.FunctionPluginValidationError});a.d(b,"InvalidAddressError",function(){return d.InvalidAddressError});a.d(b,"InvalidArgumentsError",function(){return d.InvalidArgumentsError});a.d(b,"LanguageAlreadyRegisteredError",function(){return d.LanguageAlreadyRegisteredError});a.d(b,"LanguageNotRegisteredError",function(){return d.LanguageNotRegisteredError});a.d(b,"MissingTranslationError",function(){return d.MissingTranslationError}); 1050a.d(b,"NamedExpressionDoesNotExistError",function(){return d.NamedExpressionDoesNotExistError});a.d(b,"NamedExpressionNameIsAlreadyTakenError",function(){return d.NamedExpressionNameIsAlreadyTakenError});a.d(b,"NamedExpressionNameIsInvalidError",function(){return d.NamedExpressionNameIsInvalidError});a.d(b,"NoOperationToRedoError",function(){return d.NoOperationToRedoError});a.d(b,"NoOperationToUndoError",function(){return d.NoOperationToUndoError});a.d(b,"NoRelativeAddressesAllowedError",function(){return d.NoRelativeAddressesAllowedError}); 1051a.d(b,"NoSheetWithIdError",function(){return d.NoSheetWithIdError});a.d(b,"NoSheetWithNameError",function(){return d.NoSheetWithNameError});a.d(b,"NotAFormulaError",function(){return d.NotAFormulaError});a.d(b,"NothingToPasteError",function(){return d.NothingToPasteError});a.d(b,"ProtectedFunctionTranslationError",function(){return d.ProtectedFunctionTranslationError});a.d(b,"SheetNameAlreadyTakenError",function(){return d.SheetNameAlreadyTakenError});a.d(b,"SheetSizeLimitExceededError",function(){return d.SheetSizeLimitExceededError}); 1052a.d(b,"SourceLocationHasArrayError",function(){return d.SourceLocationHasArrayError});a.d(b,"TargetLocationHasArrayError",function(){return d.TargetLocationHasArrayError});a.d(b,"UnableToParseError",function(){return d.UnableToParseError});var h=a(242);a.d(b,"ExportedCellChange",function(){return h.ExportedCellChange});a.d(b,"ExportedNamedExpressionChange",function(){return h.ExportedNamedExpressionChange});var k=a(200);a.d(b,"HyperFormula",function(){return k.HyperFormula});var f=a(753),n=a(306); 1053a.d(b,"FunctionPlugin",function(){return n.FunctionPlugin});g=a(754);var l=a(82);a.d(b,"SimpleRangeValue",function(){return l.SimpleRangeValue});var r=function(u){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");return v.apply(this,arguments)}!function(C,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(y&&y.prototype,{constructor:{value:C,writable:!0,configurable:!0}}); 1054Object.defineProperty(C,"prototype",{writable:!1});y&&D(C,y)}(w,u);var v=A(w);return Object.defineProperty(w,"prototype",{writable:!1}),w}(k.HyperFormula);
1054r.HyperFormula=k.HyperFormula;r.ErrorType=q.ErrorType;r.CellType=q.CellType;r.CellValueType=q.CellValueType;r.CellValueDetailedType=q.CellValueDetailedType;r.DetailedCellError=p.DetailedCellError;r.ExportedCellChange=h.ExportedCellChange;r.ExportedNamedExpressionChange=h.ExportedNamedExpressionChange;r.ConfigValueTooBigError=d.ConfigValueTooBigError; 1055r.ConfigValueTooSmallError=d.ConfigValueTooSmallError;r.EvaluationSuspendedError=d.EvaluationSuspendedError;r.ExpectedOneOfValuesError=d.ExpectedOneOfValuesError;r.ExpectedValueOfTypeError=d.ExpectedValueOfTypeError;r.FunctionPlugin=n.FunctionPlugin;r.FunctionPluginValidationError=d.FunctionPluginValidationError;r.InvalidAddressError=d.InvalidAddressError;r.InvalidArgumentsError=d.InvalidArgumentsError;r.LanguageNotRegisteredError=d.LanguageNotRegisteredError;r.LanguageAlreadyRegisteredError=d.LanguageAlreadyRegisteredError; 1056r.MissingTranslationError=d.MissingTranslationError;r.NamedExpressionDoesNotExistError=d.NamedExpressionDoesNotExistError;r.NamedExpressionNameIsAlreadyTakenError=d.NamedExpressionNameIsAlreadyTakenError;r.NamedExpressionNameIsInvalidError=d.NamedExpressionNameIsInvalidError;r.NoOperationToRedoError=d.NoOperationToRedoError;r.NoOperationToUndoError=d.NoOperationToUndoError;r.NoRelativeAddressesAllowedError=d.NoRelativeAddressesAllowedError;r.NoSheetWithIdError=d.NoSheetWithIdError;r.NoSheetWithNameError= 1057d.NoSheetWithNameError;r.NotAFormulaError=d.NotAFormulaError;r.NothingToPasteError=d.NothingToPasteError;r.ProtectedFunctionTranslationError=d.ProtectedFunctionTranslationError;r.SheetNameAlreadyTakenError=d.SheetNameAlreadyTakenError;r.SheetSizeLimitExceededError=d.SheetSizeLimitExceededError;r.SourceLocationHasArrayError=d.SourceLocationHasArrayError;r.TargetLocationHasArrayError=d.TargetLocationHasArrayError;r.UnableToParseError=d.UnableToParseError;k.HyperFormula.registerLanguage(e.Config.defaultConfig.language, 1058f.default);k.HyperFormula.languages[f.default.langCode]=f.default;var m;e=function(u,w){var v="undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];
1058if(!v){if(Array.isArray(u)||(v=function(H,G){if(H){if("string"==typeof H)return B(H,G);var I=Object.prototype.toString.call(H).slice(8,-1);"Object"===I&&H.constructor&&(I=H.constructor.name);if("Map"===I||"Set"===I)return Array.from(H);if("Arguments"===I||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return B(H,G)}}(u))||w&&u&&"number"== 1059typeof u.length){v&&(u=v);var C=0;w=function(){};return{s:w,n:function(){return C>=u.length?{done:!0}:{done:!1,value:u[C++]}},e:function(H){throw H;},f:w}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var y,z=!0,E=!1;return{s:function(){v=v.call(u)},n:function(){var H=v.next();return z=H.done,H},e:function(H){E=!0;y=H},f:function(){try{z||null==v.return||v.return()}finally{if(E)throw y; 1060}}}}(Object.getOwnPropertyNames(g));try{for(e.s();!(m=e.n()).done;){var t=m.value;t.startsWith("_")||k.HyperFormula.registerFunctionPlugin(g[t])}}catch(u){e.e(u)}finally{e.f()}b.default=r;window.HyperFormula=a(251).default},function(g,b,a){b=a(45);a=a(253);a=b["__core-js_shared__"]||a("__core-js_shared__",{});g.exports=a},function(g,b,a){var F=a(45),B=Object.defineProperty;g.exports=function(D,A){try{B(F,D,{value:A,configurable:!0,writable:!0})}catch(x){F[D]=A}return A}},function(g,b,a){var F=a(99), 1061B=a(158),D=a(103);b=function(A){return function(x,q,p){var e;x=F(x);var c=D(x);p=B(p,c);if(A&&q!=q)for(;c>p;){if((e=x[p++])!=e)return!0}else for(;c>p;p++)if((A||p in x)&&x[p]===q)return A||p||0;return!A&&-1}};g.exports={includes:b(!0),indexOf:b(!1)}},function(g,b){g.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},function(g,b,a){g=a(28);b=a(38);a=a(257).f;g({target:"Object",stat:!0,forced:b(function(){return!Object.getOwnPropertyNames(1)})}, 1062{getOwnPropertyNames:a})},function(g,b,a){var F=a(127),B=a(99),D=a(157).f,A=a(258),x="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];g.exports.f=function(q){if(x&&"Window"==F(q))try{var p=D(q)}catch(e){p=A(x)}else p=D(B(q));return p}},function(g,b,a){var F=a(158),B=a(103),D=a(159),A=Array,x=Math.max;g.exports=function(q,p,e){var c=B(q);p=F(p,c);e=F(void 0===e?c:e,c);c=A(x(e-p,0));for(var d=0;p<e;p++,d++)D(c,d,q[p]);return c.length=d,c}},function(g, 1063b,a){b={};b[a(59)("toStringTag")]="z";g.exports="[object z]"===String(b)},function(g,b,a){var F=a(261),B=TypeError;g.exports=function(D){if(F(D))throw B("The method doesn't accept regular expressions");return D}},function(g,b,a){var F=a(63),B=a(127),D=a(59)("match");g.exports=function(A){var x;return F(A)&&(void 0!==(x=A[D])?!!x:"RegExp"==B(A))}},function(g,b,a){var F=a(59)("match");g.exports=function(B){var D=/./;try{"/./"[B](D)}catch(A){try{return D[F]=!1,"/./"[B](D)}catch(x){}}return!1}},function(g, 1064b,a){var F=a(220),B=a(136),D=a(185),A=a(59)("iterator");g.exports=function(x){if(null!=x)return B(x,A)||B(x,"@@iterator")||D[F(x)]}},function(g,b,a){var F=a(59)("iterator"),B=!1;try{var D=0;b={next:function(){return{done:!!D++}},return:function(){B=!0}};b[F]=function(){return this};Array.from(b,function(){throw 2;})}catch(A){}g.exports=function(A,x){if(!x&&!B)return!1;var q=!1;try{x={},x[F]=function(){return{next:function(){return{done:q=!0}}}},A(x)}catch(p){}return q}},function(g,b,a){b=a(35);var F= 1065a(129),B=a(73),D=a(94),A=b("".charAt),x=b("".charCodeAt),q=b("".slice);a=function(p){return function(e,c){var d,h;e=B(D(e));c=F(c);var k=e.length;return 0>c||c>=k?p?"":void 0:55296>(d=x(e,c))||56319<d||c+1===k||56320>(h=x(e,c+1))||57343<h?p?A(e,c):d:p?q(e,c,c+2):h-56320+(d-55296<<10)+65536}};g.exports={codeAt:a(!1),charAt:a(!0)}},function(g,b,a){var F=a(28),B=a(61),D=a(112);b=a(178);var A=a(56),x=a(666),q=a(219),p=a(267),e=a(130),c=a(137),d=a(96),h=a(59),k=a(185);a=a(351);var f=b.PROPER,n=b.CONFIGURABLE, 1066l=a.IteratorPrototype,r=a.BUGGY_SAFARI_ITERATORS,m=h("iterator"),t=function(){return this};g.exports=function(u,w,v,C,y,z,E){x(v,w,C);var H,G,I;C=function(N){if(N===y&&R)return R;if(!r&&N in P)return P[N];switch(N){case "keys":case "values":case "entries":return function(){return new v(this,N)}}return function(){return new v(this)}};var K=w+" Iterator",J=!1,P=u.prototype,S=P[m]||P["@@iterator"]||y&&P[y],R=!r&&S||C(y),O="Array"==w&&P.entries||S;if(O&&(H=q(O.call(new u)))!==Object.prototype&&H.next&& 1067(D||q(H)===l||(p?p(H,l):A(H[m])||d(H,m,t)),e(H,K,!0,!0),D&&(k[K]=t)),f&&"values"==y&&S&&"values"!==S.name&&(!D&&n?c(P,"name","values"):(J=!0,R=function(){return B(S,this)})),y)if(G={values:C("values"),keys:z?R:C("keys"),entries:C("entries")},E)for(I in G)!r&&!J&&I in P||d(P,I,G[I]);else F({target:w,proto:!0,forced:r||J},G);return D&&!E||P[m]===R||d(P,m,R,{name:y}),k[w]=R,G}},function(g,b,a){var F=a(35),B=a(66),D=a(667);
1067g.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A,x=!1,q={};try{(A= 1068F(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(q,[]),x=q instanceof Array}catch(p){}return function(p,e){return B(p),D(e),x?A(p,e):p.__proto__=e,p}}():void 0)},function(g,b,a){b=a(38);var F=a(45).RegExp,B=(a=b(function(){var D=F("a","y");return D.lastIndex=2,null!=D.exec("abcd")}))||b(function(){return!F("a","y").sticky});b=a||b(function(){var D=F("^r","gy");return D.lastIndex=2,null!=D.exec("str")});g.exports={BROKEN_CARET:b,MISSED_STICKY:B,UNSUPPORTED_Y:a}},function(g,b,a){var F= 1069a(671);g.exports=function(B,D){return new (F(B))(0===D?0:D)}},function(g,b,a){var F=a(56),B=a(63),D=a(267);g.exports=function(A,x,q){var p,e;return D&&F(p=x.constructor)&&p!==q&&B(e=p.prototype)&&e!==q.prototype&&D(A,e),A}},function(g,b,a){var F=a(96);g.exports=function(B,D,A){for(var x in D)F(B,x,D[x],A);return B}},function(g,b,a){var F=a(100),B=a(80);b=a(59);var D=a(72),A=b("species");g.exports=function(x){x=F(x);var q=B.f;D&&x&&!x[A]&&q(x,A,{configurable:!0,get:function(){return this}})}},function(g, 1070b){g.exports=function(a){try{return{error:!1,value:a()}}catch(F){return{error:!0,value:F}}}},function(g,b,a){a(28)({target:"Number",stat:!0},{isFinite:a(693)})},function(g,b,a){var F=a(265).charAt;g.exports=function(B,D,A){return D+(A?F(B,D).length:1)}},function(g,b,a){a.r(b);a.d(b,"VERSION",function(){return F});var F="6.5.0"},function(g,b,a){function F(x,q,p){return[new D.Option({definition:[new D.Terminal({terminalType:x.separator})].concat(x.definition)})].concat(q,p)}a.r(b);a.d(b,"RestWalker", 1071function(){return A});var B=a(48),D=a(57),A=function(){function x(){}return x.prototype.walk=function(q,p){var e=this;void 0===p&&(p=[]);Object(B.forEach)(q.definition,function(c,d){d=Object(B.drop)(q.definition,d+1);if(c instanceof D.NonTerminal)e.walkProdRef(c,d,p);else if(c instanceof D.Terminal)e.walkTerminal(c,d,p);else if(c instanceof D.Flat)e.walkFlat(c,d,p);else if(c instanceof D.Option)e.walkOption(c,d,p);else if(c instanceof D.RepetitionMandatory)e.walkAtLeastOne(c,d,p);else if(c instanceof 1072D.RepetitionMandatoryWithSeparator)e.walkAtLeastOneSep(c,d,p);else if(c instanceof D.RepetitionWithSeparator)e.walkManySep(c,d,p);else if(c instanceof D.Repetition)e.walkMany(c,d,p);else{if(!(c instanceof D.Alternation))throw Error("non exhaustive match");e.walkOr(c,d,p)}})},x.prototype.walkTerminal=function(q,p,e){},x.prototype.walkProdRef=function(q,p,e){},x.prototype.walkFlat=function(q,p,e){p=p.concat(e);this.walk(q,p)},x.prototype.walkOption=function(q,p,e){p=p.concat(e);this.walk(q,p)},x.prototype.walkAtLeastOne= 1073function(q,p,e){p=[new D.Option({definition:q.definition})].concat(p,e);this.walk(q,p)},x.prototype.walkAtLeastOneSep=function(q,p,e){p=F(q,p,e);this.walk(q,p)},x.prototype.walkMany=function(q,p,e){p=[new D.Option({definition:q.definition})].concat(p,e);this.walk(q,p)},x.prototype.walkManySep=function(q,p,e){p=F(q,p,e);this.walk(q,p)},x.prototype.walkOr=function(q,p,e){var c=this,d=p.concat(e);Object(B.forEach)(q.definition,function(h){h=new D.Flat({definition:[h]});c.walk(h,d)})},x}()},function(g, 1074b,a){var F,B;"undefined"!=typeof self&&self;a=[];void 0===(B="function"==typeof(F=function(){function D(){}function A(r){return r.charCodeAt(0)}function x(r,m){void 0!==r.length?r.forEach(function(t){m.push(t)}):m.push(r)}function q(r,m){if(!0===r[m])throw"duplicate flag "+m;r[m]=!0}function p(r){if(void 0===r)throw Error("Internal Error - Should never get here!");}function e(){}D.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}};D.prototype.restoreState= 1075function(r){this.idx=r.idx;this.input=r.input;this.groupIdx=r.groupIdx};D.prototype.pattern=function(r){this.idx=0;this.input=r;this.groupIdx=0;this.consumeChar("/");r=this.disjunction();this.consumeChar("/");for(var m={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case "g":q(m,"global");break;case "i":q(m,"ignoreCase");break;case "m":q(m,"multiLine");break;case "u":q(m,"unicode");break;case "y":q(m,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+ 1076this.input.substring(this.idx));return{type:"Pattern",flags:m,value:r}};D.prototype.disjunction=function(){var r=[];for(r.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),r.push(this.alternative());return{type:"Disjunction",value:r}};D.prototype.alternative=function(){for(var r=[];this.isTerm();)r.push(this.term());return{type:"Alternative",value:r}};D.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()};D.prototype.assertion=function(){switch(this.popChar()){case "^":return{type:"StartAnchor"}; 1077case "$":return{type:"EndAnchor"};case "\\":switch(this.popChar()){case "b":return{type:"WordBoundary"};case "B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case "(":switch(this.consumeChar("?"),this.popChar()){case "\x3d":var r="Lookahead";break;case "!":r="NegativeLookahead"}p(r);var m=this.disjunction();return this.consumeChar(")"),{type:r,value:m}}throw Error("Internal Error - Should never get here!");};D.prototype.quantifier=function(r){switch(this.popChar()){case "*":var m= 1078{atLeast:0,atMost:1/0};break;case "+":m={atLeast:1,atMost:1/0};break;case "?":m={atLeast:0,atMost:1};break;case "{":var t=this.integerIncludingZero();switch(this.popChar()){case "}":m={atLeast:t,atMost:t};break;case ",":m=this.isDigit()?{atLeast:t,atMost:this.integerIncludingZero()}:{atLeast:t,atMost:1/0},this.consumeChar("}")}if(!0===r&&void 0===m)return;p(m)}if(!0!==r||void 0!==m)return p(m),"?"===this.peekChar(0)?(this.consumeChar("?"),m.greedy=!1):m.greedy=!0,m.type="Quantifier",m};D.prototype.atom= 1079function(){switch(this.peekChar()){case ".":var r=this.dotAll();break;case "\\":r=this.atomEscape();break;case "[":r=this.characterClass();break;case "(":r=this.group()}return void 0===r&&this.isPatternCharacter()&&(r=this.patternCharacter()),p(r),this.isQuantifier()&&(r.quantifier=this.quantifier()),r};D.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[A("\n"),A("\r"),A("\u2028"),A("\u2029")]}};D.prototype.atomEscape=function(){switch(this.consumeChar("\\"),
1080this.peekChar()){case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":return this.decimalEscapeAtom();case "d":case "D":case "s":case "S":case "w":case "W":return this.characterClassEscape();case "f":case "n":case "r":case "t":case "v":return this.controlEscapeAtom();case "c":return this.controlLetterEscapeAtom();case "0":return this.nulCharacterAtom();case "x":return this.hexEscapeSequenceAtom();case "u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}; 1081D.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}};D.prototype.characterClassEscape=function(){var r=!1;switch(this.popChar()){case "d":var m=f;break;case "D":m=f;r=!0;break;case "s":m=l;break;case "S":m=l;r=!0;break;case "w":m=n;break;case "W":m=n,r=!0}return p(m),{type:"Set",value:m,complement:r}};D.prototype.controlEscapeAtom=function(){switch(this.popChar()){case "f":var r=A("\f");break;case "n":r=A("\n");break;case "r":r=A("\r");break;case "t":r= 1082A("\t");break;case "v":r=A("\v")}return p(r),{type:"Character",value:r}};D.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var r=this.popChar();if(!1===/[a-zA-Z]/.test(r))throw Error("Invalid ");return{type:"Character",value:r.toUpperCase().charCodeAt(0)-64}};D.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:A("\x00")}};D.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)};D.prototype.regExpUnicodeEscapeSequenceAtom= 1083function(){return this.consumeChar("u"),this.parseHexDigits(4)};D.prototype.identityEscapeAtom=function(){return{type:"Character",value:A(this.popChar())}};D.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case "\n":case "\r":case "\u2028":case "\u2029":case "\\":case "]":throw Error("TBD");default:return{type:"Character",value:A(this.popChar())}}};D.prototype.characterClass=function(){var r=[],m=!1;this.consumeChar("[");for("^"===this.peekChar(0)&&(this.consumeChar("^"),m= 1084!0);this.isClassAtom();){var t=this.classAtom();if("Character"===t.type&&this.isRangeDash()){this.consumeChar("-");var u=this.classAtom();if("Character"===u.type){if(u.value<t.value)throw Error("Range out of order in character class");r.push({from:t.value,to:u.value})}else x(t.value,r),r.push(A("-")),x(u.value,r)}else x(t.value,r)}return this.consumeChar("]"),{type:"Set",complement:m,value:r}};D.prototype.classAtom=function(){switch(this.peekChar()){case "]":case "\n":case "\r":case "\u2028":case "\u2029":throw Error("TBD"); 1085case "\\":return this.classEscape();default:return this.classPatternCharacterAtom()}};D.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case "b":return this.consumeChar("b"),{type:"Character",value:A("\b")};case "d":case "D":case "s":case "S":case "w":case "W":return this.characterClassEscape();case "f":case "n":case "r":case "t":case "v":return this.controlEscapeAtom();case "c":return this.controlLetterEscapeAtom();case "0":return this.nulCharacterAtom();case "x":return this.hexEscapeSequenceAtom(); 1086case "u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}};D.prototype.group=function(){var r=!0;switch(this.consumeChar("("),this.peekChar(0)){case "?":this.consumeChar("?");this.consumeChar(":");r=!1;break;default:this.groupIdx++}var m=this.disjunction();this.consumeChar(")");m={type:"Group",capturing:r,value:m};return r&&(m.idx=this.groupIdx),m};D.prototype.positiveInteger=function(){var r=this.popChar();if(!1===k.test(r))throw Error("Expecting a positive integer"); 1087for(;h.test(this.peekChar(0));)r+=this.popChar();return parseInt(r,10)};D.prototype.integerIncludingZero=function(){var r=this.popChar();if(!1===h.test(r))throw Error("Expecting an integer");for(;h.test(this.peekChar(0));)r+=this.popChar();return parseInt(r,10)};D.prototype.patternCharacter=function(){var r=this.popChar();switch(r){case "\n":case "\r":case "\u2028":case "\u2029":case "^":case "$":case "\\":case ".":case "*":case "+":case "?":case "(":case ")":case "[":case "|":throw Error("TBD"); 1088default:return{type:"Character",value:A(r)}}};D.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case "g":case "i":case "m":case "u":case "y":return!0;default:return!1}};D.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)};D.prototype.isDigit=function(){return h.test(this.peekChar(0))};D.prototype.isClassAtom=function(r){switch(void 0===r&&(r=0),this.peekChar(r)){case "]":case "\n":case "\r":case "\u2028":case "\u2029":return!1;default:return!0}};D.prototype.isTerm= 1089function(){return this.isAtom()||this.isAssertion()};D.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case ".":case "\\":case "[":case "(":return!0;default:return!1}};D.prototype.isAssertion=function(){switch(this.peekChar(0)){case "^":case "$":return!0;case "\\":switch(this.peekChar(1)){case "b":case "B":return!0;default:return!1}case "(":return"?"===this.peekChar(1)&&("\x3d"===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}};D.prototype.isQuantifier= 1090function(){var r=this.saveState();try{return void 0!==this.quantifier(!0)}catch(m){return!1}finally{this.restoreState(r)}};D.prototype.isPatternCharacter=function(){switch(this.peekChar()){case "^":case "$":case "\\":case ".":case "*":case "+":case "?":case "(":case ")":case "[":case "|":case "/":case "\n":case "\r":case "\u2028":case "\u2029":return!1;default:return!0}};D.prototype.parseHexDigits=function(r){for(var m="",t=0;t<r;t++){var u=this.popChar();if(!1===d.test(u))throw Error("Expecting a HexDecimal digits"); 1091m+=u}return{type:"Character",value:parseInt(m,16)}};D.prototype.peekChar=function(r){return void 0===r&&(r=0),this.input[this.idx+r]};D.prototype.popChar=function(){var r=this.peekChar(0);return this.consumeChar(),r};D.prototype.consumeChar=function(r){if(void 0!==r&&this.input[this.idx]!==r)throw Error("Expected: '"+r+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var c,d=/[0-9a-fA-F]/,h=/[0-9]/,k= 1092/[1-9]/,f=[];for(c=A("0");c<=A("9");c++)f.push(c);var n=[A("_")].concat(f);for(c=A("a");c<=A("z");c++)n.push(c);for(c=A("A");c<=A("Z");c++)n.push(c);var l=[A(" "),A("\f"),A("\n"),A("\r"),A("\t"),A("\v"),A("\t"),A(" "),A("\u1680"),A("\u2000"),A("\u2001"),A("\u2002"),A("\u2003"),A("\u2004"),A("\u2005"),A("\u2006"),A("\u2007"),A("\u2008"),A("\u2009"),A("\u200a"),A("\u2028"),A("\u2029"),A("\u202f"),A("\u205f"),A("\u3000"),A("\ufeff")];return e.prototype.visitChildren=function(r){for(var m in r){var t= 1093r[m];r.hasOwnProperty(m)&&(void 0!==t.type?this.visit(t):Array.isArray(t)&&t.forEach(function(u){this.visit(u)},this))}},e.prototype.visit=function(r){switch(r.type){case "Pattern":this.visitPattern(r);break;case "Flags":this.visitFlags(r);break;case "Disjunction":this.visitDisjunction(r);break;case "Alternative":this.visitAlternative(r);break;case "StartAnchor":this.visitStartAnchor(r);break;case "EndAnchor":this.visitEndAnchor(r);break;case "WordBoundary":this.visitWordBoundary(r);break;case "NonWordBoundary":this.visitNonWordBoundary(r); 1094break;case "Lookahead":this.visitLookahead(r);break;case "NegativeLookahead":this.visitNegativeLookahead(r);break;case "Character":this.visitCharacter(r);break;case "Set":this.visitSet(r);break;case "Group":this.visitGroup(r);break;case "GroupBackReference":this.visitGroupBackReference(r);break;case "Quantifier":this.visitQuantifier(r)}this.visitChildren(r)},e.prototype.visitPattern=function(r){},e.prototype.visitFlags=function(r){},e.prototype.visitDisjunction=function(r){},e.prototype.visitAlternative= 1095function(r){},e.prototype.visitStartAnchor=function(r){},e.prototype.visitEndAnchor=function(r){},e.prototype.visitWordBoundary=function(r){},e.prototype.visitNonWordBoundary=function(r){},e.prototype.visitLookahead=function(r){},e.prototype.visitNegativeLookahead=function(r){},e.prototype.visitCharacter=function(r){},e.prototype.visitSet=function(r){},e.prototype.visitGroup=function(r){},e.prototype.visitGroupBackReference=function(r){},e.prototype.visitQuantifier=function(r){},{RegExpParser:D,BaseRegExpVisitor:e, 1096VERSION:"0.4.0"}})?F.apply(b,a):F)||(g.exports=B)},function(g,b,a){function F(x){x=x.toString();if(D.hasOwnProperty(x))return D[x];var q=A.pattern(x);return D[x]=q,q}function B(){D={}}a.r(b);a.d(b,"getRegExpAst",function(){return F});a.d(b,"clearRegExpParserCache",function(){return B});var D={},A=new (a(278).RegExpParser)},function(g,b,a){a.r(b);a.d(b,"defaultLexerErrorProvider",function(){return F});var F={buildUnableToPopLexerModeMessage:function(B){return"Unable to pop Lexer Mode after encountering Token -\x3e"+
1097B.image+"\x3c- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(B,D,A,x,q){return"unexpected character: -\x3e"+B.charAt(D)+"\x3c- at offset: "+D+", skipped "+A+" characters."}}},function(g,b,a){function F(k,f){!0===isNaN(k.startOffset)?(k.startOffset=f.startOffset,k.endOffset=f.endOffset):1==k.endOffset<f.endOffset&&(k.endOffset=f.endOffset)}function B(k,f){!0===isNaN(k.startOffset)?(k.startOffset=f.startOffset,k.startColumn=f.startColumn,k.startLine=f.startLine,k.endOffset=f.endOffset, 1098k.endColumn=f.endColumn,k.endLine=f.endLine):1==k.endOffset<f.endOffset&&(k.endOffset=f.endOffset,k.endColumn=f.endColumn,k.endLine=f.endLine)}function D(k,f,n){void 0===k.children[n]?k.children[n]=[f]:k.children[n].push(f)}function A(k,f,n){void 0===k.children[f]?k.children[f]=[n]:k.children[f].push(n)}function x(k,f){var n={allRuleNames:[]};return Object(p.forEach)(k,function(l){var r=f[l.name];n.allRuleNames.push(l.name);r=new h(r);l.accept(r);Object(p.forEach)(r.result,function(m){m.def;m.key; 1099n.allRuleNames.push(l.name+m.name)})}),n}a.r(b);a.d(b,"setNodeLocationOnlyOffset",function(){return F});a.d(b,"setNodeLocationFull",function(){return B});a.d(b,"addTerminalToCst",function(){return D});a.d(b,"addNoneTerminalToCst",function(){return A});a.d(b,"NamedDSLMethodsCollectorVisitor",function(){return h});a.d(b,"expandAllNestedRuleNames",function(){return x});var q,p=a(48),e=a(195),c=a(57);g=a(142);var d=(q=function(k,f){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n, 1100l){n.__proto__=l}||function(n,l){for(var r in l)l.hasOwnProperty(r)&&(n[r]=l[r])})(k,f)},function(k,f){function n(){this.constructor=k}q(k,f);k.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}),h=function(k){function f(n){var l=k.call(this)||this;return l.result=[],l.ruleIdx=n,l}return d(f,k),f.prototype.collectNamedDSLMethod=function(n,l,r){if(!Object(p.isUndefined)(n.name)){if(n instanceof c.Option||n instanceof c.Repetition||n instanceof c.RepetitionMandatory||n instanceof c.Alternation)l= 1101new l({definition:n.definition,idx:n.idx});else{if(!(n instanceof c.RepetitionMandatoryWithSeparator||n instanceof c.RepetitionWithSeparator))throw Error("non exhaustive match");
1101l=new l({definition:n.definition,idx:n.idx,separator:n.separator})}l=[l];r=Object(e.getKeyForAutomaticLookahead)(this.ruleIdx,r,n.idx);this.result.push({def:l,key:r,name:n.name,orgProd:n})}},f.prototype.visitOption=function(n){this.collectNamedDSLMethod(n,c.Option,e.OPTION_IDX)},f.prototype.visitRepetition=function(n){this.collectNamedDSLMethod(n, 1102c.Repetition,e.MANY_IDX)},f.prototype.visitRepetitionMandatory=function(n){this.collectNamedDSLMethod(n,c.RepetitionMandatory,e.AT_LEAST_ONE_IDX)},f.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.collectNamedDSLMethod(n,c.RepetitionMandatoryWithSeparator,e.AT_LEAST_ONE_SEP_IDX)},f.prototype.visitRepetitionWithSeparator=function(n){this.collectNamedDSLMethod(n,c.RepetitionWithSeparator,e.MANY_SEP_IDX)},f.prototype.visitAlternation=function(n){var l=this;this.collectNamedDSLMethod(n, 1103c.Alternation,e.OR_IDX);var r=1<n.definition.length;Object(p.forEach)(n.definition,function(m,t){if(!Object(p.isUndefined)(m.name)){var u=r?[new c.Option({definition:m.definition})]:m.definition;t=Object(e.getKeyForAltIndex)(l.ruleIdx,e.OR_IDX,n.idx,t);l.result.push({def:u,key:t,name:m.name,orgProd:m})}})},f}(g.GAstVisitor)},function(g,b,a){function F(A){var x=Object(D.genWrapperFunction)({name:A.name,rules:A.rules}),q=new Function("tokenVocabulary","config","chevrotain",x);return function(p){return q(A.tokenVocabulary, 1104p,a(233))}}function B(A){return Object(D.genUmdModule)({name:A.name,rules:A.rules})}a.r(b);a.d(b,"generateParserFactory",function(){return F});a.d(b,"generateParserModule",function(){return B});var D=a(711)},function(g,b,a){function F(C){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(y){return typeof y}:function(y){return y&&"function"==typeof Symbol&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(C)}function B(C,y){if(!(C=function(z){if(Array.isArray(z))return z}(C)|| 1105function(z,E){var H=null==z?null:"undefined"!=typeof Symbol&&z[Symbol.iterator]||z["@@iterator"];if(null!=H){var G,I=[],K=!0,J=!1;try{for(H=H.call(z);!(K=(G=H.next()).done)&&(I.push(G.value),!E||I.length!==E);K=!0);}catch(S){J=!0;var P=S}finally{try{K||null==H.return||H.return()}finally{if(J)throw P;}}return I}}(C,y)||function(z,E){if(z){if("string"==typeof z)return D(z,E);var H=Object.prototype.toString.call(z).slice(8,-1);"Object"===H&&z.constructor&&(H=z.constructor.name);if("Map"===H||"Set"=== 1106H)return Array.from(z);if("Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return D(z,E)}}(C,y)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return C}function D(C,y){(null==y||y>C.length)&&(y=C.length);for(var z=0,E=Array(y);z<y;z++)E[z]=C[z];return E}function A(C,y){if(!(C instanceof y))throw new TypeError("Cannot call a class as a function");}function x(C,y){for(var z= 11070;z<y.length;z++){var E=y[z];E.enumerable=E.enumerable||!1;E.configurable=!0;"value"in E&&(E.writable=!0);Object.defineProperty(C,E.key,E)}}function q(C,y,z){return y&&x(C.prototype,y),z&&x(C,z),Object.defineProperty(C,"prototype",{writable:!1}),C}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(C,y,z){var E;for(E=C;!Object.prototype.hasOwnProperty.call(E,y)&&null!==(E=d(E)););if(E)return E=Object.getOwnPropertyDescriptor(E,y),E.get?E.get.call(3>arguments.length? 1108C:z):E.value}).apply(this,arguments)}function e(C,y){return(e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,E){return z.__proto__=E,z})(C,y)}function c(C){var y=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(z){return!1}}();return function(){var z=d(C);if(y){var E=d(this).constructor;z=Reflect.construct(z, 1109arguments,E)}else z=z.apply(this,arguments);if(!z||"object"!==F(z)&&"function"!=typeof z){if(void 0!==z)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");z=this}return z}}
1109function d(C){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)})(C)}a.r(b);a.d(b,"FormulaParser",function(){return w});a.d(b,"FormulaLexer", 1110function(){return v});a(13);a(12);a(64);a(18);a(67);a(52);a(36);a(75);a(68);a(25);a(0);a(7);a(381);a(19);a(8);a(9);a(10);a(3);a(2);a(4);a(26);a(22);var h=a(233),k=a(24),f=a(46),n=a(104),l=a(106),r=a(230),m=a(192),t=a(232),u=a(231),w=function(C){function y(E,H){var G;return A(this,y),(G=z.call(this,E.allTokens,{outputCst:!1,maxLookahead:7})).booleanExpressionOrEmpty=G.RULE("booleanExpressionOrEmpty",function(){return G.OR([{ALT:function(){return G.SUBRULE(G.booleanExpression)}},{ALT:Object(h.EMPTY_ALT)(Object(l.buildEmptyArgAst)())}])}), 1111G.procedureExpression=G.RULE("procedureExpression",function(){var I,K=G.CONSUME(m.ProcedureName),J=K.image.toUpperCase().slice(0,-1),P=null!==(I=G.lexerConfig.functionMapping[J])&&void 0!==I?I:J,S=[],R=G.SUBRULE(G.booleanExpressionOrEmpty);G.MANY(function(){var O,N=G.CONSUME(G.lexerConfig.ArgSeparator);R.type===l.AstNodeType.EMPTY&&(R.leadingWhitespace=null===(O=N.leadingWhitespace)||void 0===O?void 0:O.image);S.push(R);R=G.SUBRULE2(G.booleanExpressionOrEmpty)});S.push(R);1===S.length&&S[0].type=== 1112l.AstNodeType.EMPTY&&(S.length=0);I=G.CONSUME(m.RParen);return Object(l.buildProcedureAst)(P,S,K.leadingWhitespace,I.leadingWhitespace)}),G.namedExpressionExpression=G.RULE("namedExpressionExpression",function(){var I=G.CONSUME(m.NamedExpression);return Object(l.buildNamedExpressionAst)(I.image,I.leadingWhitespace)}),G.offsetProcedureExpression=G.RULE("offsetProcedureExpression",function(){var I=[];return G.CONSUME(G.lexerConfig.OffsetProcedureName),G.CONSUME(m.LParen),G.MANY_SEP({SEP:G.lexerConfig.ArgSeparator, 1113DEF:function(){I.push(G.SUBRULE(G.booleanExpression))}}),G.CONSUME(m.RParen),G.handleOffsetHeuristic(I)}),G.columnRangeExpression=G.RULE("columnRangeExpression",function(){var I=G.CONSUME(m.ColumnRange),K=B(I.image.split(":"),2),J=K[0],P=K[1];K=G.ACTION(function(){return Object(n.columnAddressFromString)(G.sheetMapping,J,G.formulaAddress)});var S=G.ACTION(function(){return Object(n.columnAddressFromString)(G.sheetMapping,P,G.formulaAddress)});if(void 0===K||void 0===S)return Object(l.buildCellErrorAst)(new k.CellError(k.ErrorType.REF)); 1114if(K.exceedsSheetSizeLimits(G.lexerConfig.maxColumns)||S.exceedsSheetSizeLimits(G.lexerConfig.maxColumns))return Object(l.buildErrorWithRawInputAst)(I.image,new k.CellError(k.ErrorType.NAME),I.leadingWhitespace);if(void 0===K.sheet&&void 0!==S.sheet)return G.parsingError(l.ParsingErrorType.ParserError,"Malformed range expression");S=y.fixSheetIdsForRangeEnds(K,S);K=S.sheetRefType;S=G.orderColumnRangeEnds(S.firstEnd,S.secondEnd);return Object(l.buildColumnRangeAst)(S.start,S.end,K,I.leadingWhitespace)}), 1115G.rowRangeExpression=G.RULE("rowRangeExpression",function(){var I=G.CONSUME(m.RowRange),K=B(I.image.split(":"),2),J=K[0],P=K[1];K=G.ACTION(function(){return Object(n.rowAddressFromString)(G.sheetMapping,J,G.formulaAddress)});var S=G.ACTION(function(){return Object(n.rowAddressFromString)(G.sheetMapping,P,G.formulaAddress)});if(void 0===K||void 0===S)return Object(l.buildCellErrorAst)(new k.CellError(k.ErrorType.REF));if(K.exceedsSheetSizeLimits(G.lexerConfig.maxRows)||S.exceedsSheetSizeLimits(G.lexerConfig.maxRows))return Object(l.buildErrorWithRawInputAst)(I.image, 1116new k.CellError(k.ErrorType.NAME),I.leadingWhitespace);if(void 0===K.sheet&&void 0!==S.sheet)return G.parsingError(l.ParsingErrorType.ParserError,"Malformed range expression");S=y.fixSheetIdsForRangeEnds(K,S);K=S.sheetRefType;S=G.orderRowRangeEnds(S.firstEnd,S.secondEnd);return Object(l.buildRowRangeAst)(S.start,S.end,K,I.leadingWhitespace)}),G.cellReference=G.RULE("cellReference",function(){var I=G.CONSUME(m.CellReference),K=G.ACTION(function(){return Object(n.cellAddressFromString)(G.sheetMapping, 1117I.image,G.formulaAddress)});return void 0===K?Object(l.buildErrorWithRawInputAst)(I.image,new k.CellError(k.ErrorType.REF),I.leadingWhitespace):K.exceedsSheetSizeLimits(G.lexerConfig.maxColumns,G.lexerConfig.maxRows)?Object(l.buildErrorWithRawInputAst)(I.image,new k.CellError(k.ErrorType.NAME),I.leadingWhitespace):Object(l.buildCellReferenceAst)(K,I.leadingWhitespace)}),G.endRangeReference=G.RULE("endRangeReference",function(I){var K,J=G.CONSUME(m.CellReference),P=G.ACTION(function(){return Object(n.cellAddressFromString)(G.sheetMapping, 1118I.image,G.formulaAddress)}),S=G.ACTION(function(){return Object(n.cellAddressFromString)(G.sheetMapping,J.image,G.formulaAddress)});return void 0===P||void 0===S?G.ACTION(function(){return Object(l.buildErrorWithRawInputAst)("".concat(I.image,":").concat(J.image),new k.CellError(k.ErrorType.REF),I.leadingWhitespace)}):P.exceedsSheetSizeLimits(G.lexerConfig.maxColumns,G.lexerConfig.maxRows)||S.exceedsSheetSizeLimits(G.lexerConfig.maxColumns,G.lexerConfig.maxRows)?G.ACTION(function(){return Object(l.buildErrorWithRawInputAst)("".concat(I.image, 1119":").concat(J.image),new k.CellError(k.ErrorType.NAME),I.leadingWhitespace)}):G.buildCellRange(P,S,null===(K=I.leadingWhitespace)||void 0===K?void 0:K.image)}),G.endOfRangeExpression=G.RULE("endOfRangeExpression",function(I){return G.OR([{ALT:function(){return G.SUBRULE(G.endRangeReference,{ARGS:[I]})}},{ALT:function(){var K,J=G.SUBRULE(G.offsetProcedureExpression),P=G.ACTION(function(){return Object(n.cellAddressFromString)(G.sheetMapping,I.image,G.formulaAddress)});return void 0===P?Object(l.buildCellErrorAst)(new k.CellError(k.ErrorType.REF)): 1120J.type===l.AstNodeType.CELL_REFERENCE?G.buildCellRange(P,J.reference,null===(K=I.leadingWhitespace)||void 0===K?void 0:K.image):G.parsingError(l.ParsingErrorType.RangeOffsetNotAllowed,"Range offset not allowed here")}}])}),G.cellRangeExpression=G.RULE("cellRangeExpression",function(){var I=G.CONSUME(m.CellReference);return G.CONSUME2(m.RangeSeparator),G.SUBRULE(G.endOfRangeExpression,{ARGS:[I]})}),G.endRangeWithOffsetStartReference=G.RULE("endRangeWithOffsetStartReference",function(I){var K=G.CONSUME(m.CellReference), 1121J=G.ACTION(function(){return Object(n.cellAddressFromString)(G.sheetMapping,K.image,G.formulaAddress)});return void 0===J?G.ACTION(function(){return Object(l.buildCellErrorAst)(new k.CellError(k.ErrorType.REF))}):G.buildCellRange(I.reference,J,I.leadingWhitespace)}),G.endOfRangeWithOffsetStartExpression=G.RULE("endOfRangeWithOffsetStartExpression",function(I){return G.OR([{ALT:function(){return G.SUBRULE(G.endRangeWithOffsetStartReference,{ARGS:[I]})}},{ALT:function(){var K=G.SUBRULE(G.offsetProcedureExpression); 1122return K.type===l.AstNodeType.CELL_REFERENCE?G.buildCellRange(I.reference,K.reference,I.leadingWhitespace):G.parsingError(l.ParsingErrorType.RangeOffsetNotAllowed,"Range offset not allowed here")}}])}),G.offsetExpression=G.RULE("offsetExpression",function(){var I,K=G.SUBRULE(G.offsetProcedureExpression);return G.OPTION(function(){G.CONSUME(m.RangeSeparator);I=K.type===l.AstNodeType.CELL_RANGE?G.parsingError(l.ParsingErrorType.RangeOffsetNotAllowed,"Range offset not allowed here"):G.SUBRULE(G.endOfRangeWithOffsetStartExpression, 1123{ARGS:[K]})}),void 0!==I?I:K}),G.insideArrayExpression=G.RULE("insideArrayExpression",function(){var I=[[]];return I[I.length-1].push(G.SUBRULE(G.booleanExpression)),G.MANY(function(){G.OR([{ALT:function(){G.CONSUME(G.lexerConfig.ArrayColSeparator);I[I.length-1].push(G.SUBRULE2(G.booleanExpression))}},{ALT:function(){G.CONSUME(G.lexerConfig.ArrayRowSeparator);I.push([]);I[I.length-1].push(G.SUBRULE3(G.booleanExpression))}}])}),Object(l.buildArrayAst)(I)}),G.parenthesisExpression=G.RULE("parenthesisExpression", 1124function(){var I=G.CONSUME(m.LParen),K=G.SUBRULE(G.booleanExpression),J=G.CONSUME(m.RParen);return Object(l.buildParenthesisAst)(K,I.leadingWhitespace,J.leadingWhitespace)}),G.arrayExpression=G.RULE("arrayExpression",function(){return G.OR([{ALT:function(){var I=G.CONSUME(m.ArrayLParen),K=G.SUBRULE(G.insideArrayExpression),J=G.CONSUME(m.ArrayRParen);return Object(l.buildArrayAst)(K.args,I.leadingWhitespace,J.leadingWhitespace)}},{ALT:function(){return G.SUBRULE(G.parenthesisExpression)}}])}),G.numericStringToNumber= 1125function(I){I=I.replace(G.lexerConfig.decimalSeparator,".");return Number(I)},G.positiveAtomicExpression=G.RULE("positiveAtomicExpression",function(){var I;return G.OR(null!==(I=G.atomicExpCache)&&void 0!==I?I:G.atomicExpCache=[{ALT:function(){return G.SUBRULE(G.arrayExpression)}},{ALT:function(){return G.SUBRULE(G.cellRangeExpression)}},{ALT:function(){return G.SUBRULE(G.columnRangeExpression)}},{ALT:function(){return G.SUBRULE(G.rowRangeExpression)}},{ALT:function(){return G.SUBRULE(G.offsetExpression)}}, 1126{ALT:function(){return G.SUBRULE(G.cellReference)}},{ALT:function(){return G.SUBRULE(G.procedureExpression)}},{ALT:function(){return G.SUBRULE(G.namedExpressionExpression)}},{ALT:function(){var K=G.CONSUME(G.lexerConfig.NumberLiteral);return Object(l.buildNumberAst)(G.numericStringToNumber(K.image),K.leadingWhitespace)}},{ALT:function(){var K=G.CONSUME(m.StringLiteral);return Object(l.buildStringAst)(K)}},{ALT:function(){var K=G.CONSUME(m.ErrorLiteral),J=K.image.toUpperCase();return(J=G.lexerConfig.errorMapping[J])? 1127Object(l.buildCellErrorAst)(new k.CellError(J),K.leadingWhitespace):G.parsingError(l.ParsingErrorType.ParserError,"Unknown error literal")}}])}),G.rightUnaryOpAtomicExpression=G.RULE("rightUnaryOpAtomicExpression",function(){var I=G.SUBRULE(G.positiveAtomicExpression),K=G.OPTION(function(){return G.CONSUME(m.PercentOp)});return K?Object(l.buildPercentOpAst)(I,K.leadingWhitespace):I}),G.atomicExpression=G.RULE("atomicExpression",function(){return G.OR([{ALT:function(){var I=G.CONSUME(m.AdditionOp), 1128K=G.SUBRULE(G.atomicExpression);return Object(h.tokenMatcher)(I,m.PlusOp)?Object(l.buildPlusUnaryOpAst)(K,I.leadingWhitespace):Object(h.tokenMatcher)(I,m.MinusOp)?Object(l.buildMinusUnaryOpAst)(K,I.leadingWhitespace):(G.customParsingError=Object(l.parsingError)(l.ParsingErrorType.ParserError,"Mismatched token type"),G.customParsingError)}},{ALT:function(){return G.SUBRULE2(G.rightUnaryOpAtomicExpression)}}])}),G.powerExpression=G.RULE("powerExpression",function(){var I=G.SUBRULE(G.atomicExpression); 1129return G.MANY(function(){var K=G.CONSUME(m.PowerOp),J=G.SUBRULE2(G.atomicExpression);Object(h.tokenMatcher)(K,m.PowerOp)?I=Object(l.buildPowerOpAst)(I,J,K.leadingWhitespace):G.ACTION(function(){throw Error("Operator not supported");})}),I}),G.multiplicationExpression=G.RULE("multiplicationExpression",function(){var I=G.SUBRULE(G.powerExpression);return G.MANY(function(){var K=G.CONSUME(m.MultiplicationOp),J=G.SUBRULE2(G.powerExpression);Object(h.tokenMatcher)(K,m.TimesOp)?I=Object(l.buildTimesOpAst)(I, 1130J,K.leadingWhitespace):Object(h.tokenMatcher)(K,m.DivOp)?I=Object(l.buildDivOpAst)(I,J,K.leadingWhitespace):G.ACTION(function(){throw Error("Operator not supported");})}),I}),G.additionExpression=G.RULE("additionExpression",function(){var I=G.SUBRULE(G.multiplicationExpression);return G.MANY(function(){var K=G.CONSUME(m.AdditionOp),J=G.SUBRULE2(G.multiplicationExpression);Object(h.tokenMatcher)(K,m.PlusOp)?I=Object(l.buildPlusOpAst)(I,J,K.leadingWhitespace):Object(h.tokenMatcher)(K,m.MinusOp)?I=Object(l.buildMinusOpAst)(I, 1131J,K.leadingWhitespace):G.ACTION(function(){throw Error("Operator not supported");})}),I}),G.concatenateExpression=G.RULE("concatenateExpression",function(){var I=G.SUBRULE(G.additionExpression);return G.MANY(function(){var K=G.CONSUME(m.ConcatenateOp),J=G.SUBRULE2(G.additionExpression);I=Object(l.buildConcatenateOpAst)(I,J,K.leadingWhitespace)}),I}),G.booleanExpression=G.RULE("booleanExpression",function(){var I=G.SUBRULE(G.concatenateExpression);return G.MANY(function(){var K=G.CONSUME(m.BooleanOp), 1132J=G.SUBRULE2(G.concatenateExpression);Object(h.tokenMatcher)(K,m.EqualsOp)?I=Object(l.buildEqualsOpAst)(I,J,K.leadingWhitespace):Object(h.tokenMatcher)(K,m.NotEqualOp)?I=Object(l.buildNotEqualOpA
1132st)(I,J,K.leadingWhitespace):Object(h.tokenMatcher)(K,m.GreaterThanOp)?I=Object(l.buildGreaterThanOpAst)(I,J,K.leadingWhitespace):Object(h.tokenMatcher)(K,m.LessThanOp)?I=Object(l.buildLessThanOpAst)(I,J,K.leadingWhitespace):Object(h.tokenMatcher)(K,m.GreaterThanOrEqualOp)?I=Object(l.buildGreaterThanOrEqualOpAst)(I, 1133J,K.leadingWhitespace):Object(h.tokenMatcher)(K,m.LessThanOrEqualOp)?I=Object(l.buildLessThanOrEqualOpAst)(I,J,K.leadingWhitespace):G.ACTION(function(){throw Error("Operator not supported");})}),I}),G.formula=G.RULE("formula",function(){return G.CONSUME(m.EqualsOp),G.SUBRULE(G.booleanExpression)}),G.lexerConfig=E,G.sheetMapping=H,G.formulaAddress=Object(k.simpleCellAddress)(0,0,0),G.performSelfAnalysis(),G}!function(E,H){if("function"!=typeof H&&null!==H)throw new TypeError("Super expression must either be null or a function"); 1134E.prototype=Object.create(H&&H.prototype,{constructor:{value:E,writable:!0,configurable:!0}});Object.defineProperty(E,"prototype",{writable:!1});H&&e(E,H)}(y,C);var z=c(y);return q(y,[{key:"parseFromTokens",value:function(E,H){this.input=E;E=this.formulaWithContext(H);H=[];return this.customParsingError&&H.push(this.customParsingError),0<(H=H.concat(this.errors.map(function(G){return{type:l.ParsingErrorType.ParserError,message:G.message}}))).length&&(E=Object(l.buildParsingErrorAst)()),{ast:E,errors:H}}}, 1135{key:"reset",value:function(){p(d(y.prototype),"reset",this).call(this);this.customParsingError=void 0}},{key:"formulaWithContext",value:function(E){return this.formulaAddress=E,this.formula()}},{key:"buildCellRange",value:function(E,H,G){if(void 0===E.sheet&&void 0!==H.sheet)return this.parsingError(l.ParsingErrorType.ParserError,"Malformed range expression");H=y.fixSheetIdsForRangeEnds(E,H);E=H.sheetRefType;H=this.orderCellRangeEnds(H.firstEnd,H.secondEnd);return Object(l.buildCellRangeAst)(H.start, 1136H.end,E,G)}},{key:"orderCellRangeEnds",value:function(E,H){var G=[E,H];H=B(G.map(function(P){return P.toColumnAddress()}).sort(u.ColumnAddress.compareByAbsoluteAddress(this.formulaAddress)),2);E=H[0];H=H[1];var I=B(G.map(function(P){return P.toRowAddress()}).sort(t.RowAddress.compareByAbsoluteAddress(this.formulaAddress)),2),K=I[0];I=I[1];G=B(G.map(function(P){return P.sheet}).sort(y.compareSheetIds.bind(this)),2);var J=G[1];return{start:r.CellAddress.fromColAndRow(E,K,G[0]),end:r.CellAddress.fromColAndRow(H, 1137I,J)}}},{key:"orderColumnRangeEnds",value:function(E,H){var G=[E,H];H=B(G.sort(u.ColumnAddress.compareByAbsoluteAddress(this.formulaAddress)),2);E=H[0];H=H[1];G=B(G.map(function(K){return K.sheet}).sort(y.compareSheetIds.bind(this)),2);var I=G[1];return{start:new u.ColumnAddress(E.type,E.col,G[0]),end:new u.ColumnAddress(H.type,H.col,I)}}},{key:"orderRowRangeEnds",value:function(E,H){var G=[E,H];H=B(G.sort(t.RowAddress.compareByAbsoluteAddress(this.formulaAddress)),2);E=H[0];H=H[1];G=B(G.map(function(K){return K.sheet}).sort(y.compareSheetIds.bind(this)), 11382);var I=G[1];return{start:new t.RowAddress(E.type,E.row,G[0]),end:new t.RowAddress(H.type,H.row,I)}}},{key:"handleOffsetHeuristic",value:function(E){var H=E[0];if(H.type!==l.AstNodeType.CELL_REFERENCE)return this.parsingError(l.ParsingErrorType.StaticOffsetError,"First argument to OFFSET is not a reference");var G=E[1];if(G.type===l.AstNodeType.NUMBER&&Number.isInteger(G.value))var I=G.value;else if(G.type===l.AstNodeType.PLUS_UNARY_OP&&G.value.type===l.AstNodeType.NUMBER&&Number.isInteger(G.value.value))I= 1139G.value.value;else{if(G.type!==l.AstNodeType.MINUS_UNARY_OP||G.value.type!==l.AstNodeType.NUMBER||!Number.isInteger(G.value.value))return this.parsingError(l.ParsingErrorType.StaticOffsetError,"Second argument to OFFSET is not a static number");I=-G.value.value}G=E[2];if(G.type===l.AstNodeType.NUMBER&&Number.isInteger(G.value))var K=G.value;else if(G.type===l.AstNodeType.PLUS_UNARY_OP&&G.value.type===l.AstNodeType.NUMBER&&Number.isInteger(G.value.value))K=G.value.value;else{if(G.type!==l.AstNodeType.MINUS_UNARY_OP|| 1140G.value.type!==l.AstNodeType.NUMBER||!Number.isInteger(G.value.value))return this.parsingError(l.ParsingErrorType.StaticOffsetError,"Third argument to OFFSET is not a static number");K=-G.value.value}G=E[3];if(void 0===G)G=1;
1140else{if(G.type!==l.AstNodeType.NUMBER)return this.parsingError(l.ParsingErrorType.StaticOffsetError,"Fourth argument to OFFSET is not a static number");if(1>(G=G.value))return this.parsingError(l.ParsingErrorType.StaticOffsetError,"Fourth argument to OFFSET is too small number"); 1141if(!Number.isInteger(G))return this.parsingError(l.ParsingErrorType.StaticOffsetError,"Fourth argument to OFFSET is not integer")}E=E[4];if(void 0===E)E=1;else{if(E.type!==l.AstNodeType.NUMBER)return this.parsingError(l.ParsingErrorType.StaticOffsetError,"Fifth argument to OFFSET is not a static number");if(1>(E=E.value))return this.parsingError(l.ParsingErrorType.StaticOffsetError,"Fifth argument to OFFSET is too small number");if(!Number.isInteger(E))return this.parsingError(l.ParsingErrorType.StaticOffsetError, 1142"Fifth argument to OFFSET is not integer")}I=new r.CellAddress(H.reference.col+K,H.reference.row+I,H.reference.type);K=I.col;var J=I.row;if(H.reference.type!==r.CellReferenceType.CELL_REFERENCE_RELATIVE&&H.reference.type!==r.CellReferenceType.CELL_REFERENCE_ABSOLUTE_COL||(J+=this.formulaAddress.row),H.reference.type!==r.CellReferenceType.CELL_REFERENCE_RELATIVE&&H.reference.type!==r.CellReferenceType.CELL_REFERENCE_ABSOLUTE_ROW||(K+=this.formulaAddress.col),0>K||0>J)return Object(l.buildCellErrorAst)(new k.CellError(k.ErrorType.REF, 1143f.ErrorMessage.OutOfSheet));if(1===E&&1===G)return Object(l.buildCellReferenceAst)(I);H=new r.CellAddress(I.col+E-1,I.row+G-1,I.type);return Object(l.buildCellRangeAst)(I,H,l.RangeSheetReferenceType.RELATIVE)}},{key:"parsingError",value:function(E,H){return this.customParsingError=Object(l.parsingError)(E,H),Object(l.buildParsingErrorAst)()}}],[{key:"fixSheetIdsForRangeEnds",value:function(E,H){var G=y.rangeSheetReferenceType(E.sheet,H.sheet);return{firstEnd:E,secondEnd:void 0!==E.sheet&&void 0=== 1144H.sheet?H.withSheet(E.sheet):H,sheetRefType:G}}},{key:"compareSheetIds",value:function(E,H){return(null!=E?E:1/0)-(null!=H?H:1/0)}},{key:"rangeSheetReferenceType",value:function(E,H){return void 0===E?l.RangeSheetReferenceType.RELATIVE:void 0===H?l.RangeSheetReferenceType.START_ABSOLUTE:l.RangeSheetReferenceType.BOTH_ABSOLUTE}}]),y}(h.EmbeddedActionsParser),v=function(){function C(y){A(this,C);this.lexerConfig=y;this.lexer=new h.Lexer(y.allTokens,{ensureOptimizations:!0})}return q(C,[{key:"tokenizeFormula", 1145value:function(y){y=this.lexer.tokenize(y);var z=y.tokens;return z=this.trimTrailingWhitespaces(z),z=this.skipWhitespacesInsideRanges(z),z=this.skipWhitespacesBeforeArgSeparators(z),y.tokens=z,y}},{key:"skipWhitespacesInsideRanges",value:function(y){var z=this;return C.filterTokensByNeighbors(y,function(E,H,G){return(Object(h.tokenMatcher)(E,m.CellReference)||Object(h.tokenMatcher)(E,m.RangeSeparator))&&Object(h.tokenMatcher)(H,z.lexerConfig.WhiteSpace)&&(Object(h.tokenMatcher)(G,m.CellReference)|| 1146Object(h.tokenMatcher)(G,m.RangeSeparator))})}},{key:"skipWhitespacesBeforeArgSeparators",value:function(y){var z=this;return C.filterTokensByNeighbors(y,function(E,H,G){return!Object(h.tokenMatcher)(E,z.lexerConfig.ArgSeparator)&&Object(h.tokenMatcher)(H,z.lexerConfig.WhiteSpace)&&Object(h.tokenMatcher)(G,z.lexerConfig.ArgSeparator)})}},{key:"trimTrailingWhitespaces",value:function(y){return 0<y.length&&Object(h.tokenMatcher)(y[y.length-1],this.lexerConfig.WhiteSpace)&&y.pop(),y}}],[{key:"filterTokensByNeighbors", 1147value:function(y,z){if(3>y.length)return y;for(var E=0,H=[y[E++]];E<y.length-1;)z(y[E-1],y[E],y[E+1])||H.push(y[E]),++E;return H.push(y[E]),H}}]),C}()},function(g,b,a){function F(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}function B(c,d){return c.toString().replace(".",d)}a.r(b);a.d(b,"Unparser",function(){return e});a.d(b,"formatNumber",function(){return B});a(76);a(36);a(18);a(0);a(69); 1148a(12);a(67);var D=a(24),A=a(251),x=a(104),q=a(106),p=a(379),e=function(){function c(h,k,f,n){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");!0;this.config=h;this.lexerConfig=k;this.sheetMappingFn=f;this.namedExpressions=n}var d;return d=[{key:"unparse",value:function(h,k){return"\x3d"+this.unparseAst(h,k)}},{key:"unparseAst",value:function(h,k){var f=this;switch(h.type){case q.AstNodeType.EMPTY:return Object(q.imageWithWhitespace)("",h.leadingWhitespace);
1148case q.AstNodeType.NUMBER:return Object(q.imageWithWhitespace)(B(h.value, 1149this.config.decimalSeparator),h.leadingWhitespace);case q.AstNodeType.STRING:return Object(q.imageWithWhitespace)('"'+h.value+'"',h.leadingWhitespace);case q.AstNodeType.FUNCTION_CALL:var n=h.args.map(function(m){return void 0!==m?f.unparseAst(m,k):""}).join(this.config.functionArgSeparator);n=(this.config.translationPackage.isFunctionTranslated(h.procedureName)?this.config.translationPackage.getFunctionTranslation(h.procedureName):h.procedureName)+"("+n+Object(q.imageWithWhitespace)(")",h.internalWhitespace); 1150return Object(q.imageWithWhitespace)(n,h.leadingWhitespace);case q.AstNodeType.NAMED_EXPRESSION:var l=null===(n=this.namedExpressions.nearestNamedExpression(h.expressionName,k.sheet))||void 0===n?void 0:n.displayName;return Object(q.imageWithWhitespace)(l||h.expressionName,h.leadingWhitespace);case q.AstNodeType.CELL_REFERENCE:var r;return r=void 0!==h.reference.sheet?this.unparseSheetName(h.reference.sheet)+"!":"",r+=null!==(l=h.reference.unparse(k))&&void 0!==l?l:this.config.translationPackage.getErrorTranslation(D.ErrorType.REF), 1151Object(q.imageWithWhitespace)(r,h.leadingWhitespace);case q.AstNodeType.COLUMN_RANGE:case q.AstNodeType.ROW_RANGE:case q.AstNodeType.CELL_RANGE:return Object(q.imageWithWhitespace)(this.formatRange(h,k),h.leadingWhitespace);case q.AstNodeType.PLUS_UNARY_OP:return n=this.unparseAst(h.value,k),Object(q.imageWithWhitespace)("+",h.leadingWhitespace)+n;case q.AstNodeType.MINUS_UNARY_OP:return n=this.unparseAst(h.value,k),Object(q.imageWithWhitespace)("-",h.leadingWhitespace)+n;case q.AstNodeType.PERCENT_OP:return this.unparseAst(h.value, 1152k)+Object(q.imageWithWhitespace)("%",h.leadingWhitespace);case q.AstNodeType.ERROR:return n=this.config.translationPackage.getErrorTranslation(h.error?h.error.type:D.ErrorType.ERROR),Object(q.imageWithWhitespace)(n,h.leadingWhitespace);case q.AstNodeType.ERROR_WITH_RAW_INPUT:return Object(q.imageWithWhitespace)(h.rawInput,h.leadingWhitespace);case q.AstNodeType.PARENTHESIS:return n="("+this.unparseAst(h.expression,k)+Object(q.imageWithWhitespace)(")",h.internalWhitespace),Object(q.imageWithWhitespace)(n, 1153h.leadingWhitespace);case q.AstNodeType.ARRAY:return n="{"+h.args.map(function(m){return m.map(function(t){return f.unparseAst(t,k)}).join(f.config.arrayColumnSeparator)}).join(this.config.arrayRowSeparator)+Object(q.imageWithWhitespace)("}",h.internalWhitespace),Object(q.imageWithWhitespace)(n,h.leadingWhitespace);default:return n=this.unparseAst(h.left,k),l=this.unparseAst(h.right,k),n+Object(q.imageWithWhitespace)(p.binaryOpTokenMap[h.type],h.leadingWhitespace)+l}}},{key:"unparseSheetName",value:function(h){var k= 1154Object(x.sheetIndexToString)(h,this.sheetMappingFn);if(void 0===k)throw new A.NoSheetWithIdError(h);return k}},{key:"formatRange",value:function(h,k){var f="",n="";void 0!==h.start.sheet&&h.sheetReferenceType!==q.RangeSheetReferenceType.RELATIVE&&(f=this.unparseSheetName(h.start.sheet)+"!");void 0!==h.end.sheet&&h.sheetReferenceType===q.RangeSheetReferenceType.BOTH_ABSOLUTE&&(n=this.unparseSheetName(h.end.sheet)+"!");var l=h.start.unparse(k);h=h.end.unparse(k);return void 0===l||void 0===h?this.config.translationPackage.getErrorTranslation(D.ErrorType.REF): 1155"".concat(f).concat(l,":").concat(n).concat(h)}}],F(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}()},function(g,b,a){function F(p,e){var c="undefined"!=typeof Symbol&&p[Symbol.iterator]||p["@@iterator"];if(!c){if(Array.isArray(p)||(c=function(n,l){if(n){if("string"==typeof n)return B(n,l);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(n);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return B(n, 1156l)}}(p))||e&&p&&"number"==typeof p.length){c&&(p=c);var d=0;e=function(){};return{s:e,n:function(){return d>=p.length?{done:!0}:{done:!1,value:p[d++]}},e:function(n){throw n;},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var h,k=!0,f=!1;return{s:function(){c=c.call(p)},n:function(){var n=c.next();return k=n.done,n},e:function(n){f=!0;h=n},f:function(){try{k||null==c.return||c.return()}finally{if(f)throw h; 1157}}}}function B(p,e){(null==e||e>
1157p.length)&&(e=p.length);for(var c=0,d=Array(e);c<e;c++)d[c]=p[c];return d}function D(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}a.r(b);a.d(b,"ContentChanges",function(){return q});a(3);a(32);a(0);a(2);a(4);a(27);a(18);a(22);a(13);a(26);a(12);a(8);a(9);a(10);var A=a(24),x=a(82),q=function(){function p(){if(!(this instanceof p))throw new TypeError("Cannot call a class as a function"); 1158!0;this.changes=new Map}var e,c;return c=[{key:"empty",value:function(){return new p}}],e=[{key:"addAll",value:function(d){var h;d=F(d.changes.values());try{for(d.s();!(h=d.n()).done;){var k=h.value;this.add(k.address,k)}}catch(f){d.e(f)}finally{d.f()}return this}},{key:"addChange",value:function(d,h,k){this.addInterpreterValue(d,h,k)}},{key:"exportChanges",value:function(d){var h=[];return this.changes.forEach(function(k){k=d.exportChange(k);Array.isArray(k)?h=h.concat(k):h.push(k)}),h}},{key:"getChanges", 1159value:function(){return Array.from(this.changes.values())}},{key:"isEmpty",value:function(){return 0===this.changes.size}},{key:"add",value:function(d,h){var k=h.value;if(k instanceof x.SimpleRangeValue){var f;k=F(k.effectiveAddressesFromData(d));try{for(k.s();!(f=k.n()).done;){var n=f.value;this.changes.delete("".concat(n.sheet,",").concat(n.col,",").concat(n.row))}}catch(l){k.e(l)}finally{k.f()}}this.changes.set(Object(A.addressKey)(d),h)}},{key:"addInterpreterValue",value:function(d,h,k){this.add(h, 1160{address:h,value:d,oldValue:k})}}],D(p.prototype,e),c&&D(p,c),Object.defineProperty(p,"prototype",{writable:!1}),p}()},function(g,b,a){function F(A,x){for(var q=0;q<x.length;q++){var p=x[q];p.enumerable=p.enumerable||!1;p.configurable=!0;"value"in p&&(p.writable=!0);Object.defineProperty(A,p.key,p)}}a.r(b);a.d(b,"Statistics",function(){return D});a(3);a(32);a(0);a(2);a(4);var B=a(287),D=function(){function A(){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function");!0;this.stats= 1161new Map([[B.StatType.CRITERION_FUNCTION_FULL_CACHE_USED,0],[B.StatType.CRITERION_FUNCTION_PARTIAL_CACHE_USED,0]]);this.startTimes=new Map}var x;return x=[{key:"incrementCriterionFunctionFullCacheUsed",value:function(){var q,p=(null!==(q=this.stats.get(B.StatType.CRITERION_FUNCTION_FULL_CACHE_USED))&&void 0!==q?q:0)+1;this.stats.set(B.StatType.CRITERION_FUNCTION_FULL_CACHE_USED,p)}},{key:"incrementCriterionFunctionPartialCacheUsed",value:function(){var q,p=(null!==(q=this.stats.get(B.StatType.CRITERION_FUNCTION_PARTIAL_CACHE_USED))&& 1162void 0!==q?q:0)+1;this.stats.set(B.StatType.CRITERION_FUNCTION_PARTIAL_CACHE_USED,p)}},{key:"reset",value:function(){this.stats.clear();this.startTimes.clear();this.stats.set(B.StatType.CRITERION_FUNCTION_FULL_CACHE_USED,0);this.stats.set(B.StatType.CRITERION_FUNCTION_PARTIAL_CACHE_USED,0)}},{key:"start",value:function(q){if(this.startTimes.get(q))throw Error("Statistics ".concat(q," already started"));this.startTimes.set(q,Date.now())}},{key:"end",value:function(q){var p,e=Date.now(),c=this.startTimes.get(q); 1163if(!c)throw Error("Statistics ".concat(q," not started"));var d=null!==(p=this.stats.get(q))&&void 0!==p?p:0;this.stats.set(q,d+(e-c));this.startTimes.delete(q)}},{key:"measure",value:function(q,p){this.start(q);p=p();return this.end(q),p}},{key:"snapshot",value:function(){return new Map(this.stats)}}],F(A.prototype,x),Object.defineProperty(A,"prototype",{writable:!1}),A}()},function(g,b,a){var F;a.r(b);a.d(b,"StatType",function(){return F});(function(B){B.BUILD_ENGINE_TOTAL="BUILD_ENGINE_TOTAL"; 1164B.PARSER="PARSER";B.GRAPH_BUILD="GRAPH_BUILD";B.COLLECT_DEPENDENCIES="COLLECT_DEPENDENCIES";B.PROCESS_DEPENDENCIES="PROCESS_DEPENDENCIES";B.TOP_SORT="TOP_SORT";B.BUILD_COLUMN_INDEX="BUILD_COLUMN_INDEX";B.EVALUATION="EVALUATION";B.VLOOKUP="VLOOKUP";B.TRANSFORM_ASTS="TRANSFORM_ASTS";B.TRANSFORM_ASTS_POSTPONED="TRANSFORM_ASTS_POSTPONED";B.ADJUSTING_ADDRESS_MAPPING="ADJUSTING_ADDRESS_MAPPING";B.ADJUSTING_ARRAY_MAPPING="ADJUSTING_ARRAY_MAPPING";B.ADJUSTING_RANGES="ADJUSTING_RANGES";B.ADJUSTING_GRAPH="ADJUSTING_GRAPH"; 1165B.CRITERION_FUNCTION_FULL_CACHE_USED="CRITERION_FUNCTION_FULL_CACHE_USED";B.CRITERION_FUNCTION_PARTIAL_CACHE_USED="CRITERION_FUNCTION_PARTIAL_CACHE_USED"})(F||(F={}))},function(g,b,a){function F(k){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(k)}function B(k,f){if(!(k=function(n){if(Array.isArray(n))return n}(k)||function(n,l){var r= 1166null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var m,t=[],u=!0,w=!1;try{for(r=r.call(n);!(u=(m=r.next()).done)&&(t.push(m.value),!l||t.length!==l);u=!0);}catch(C){w=!0;var v=C}finally{try{u||null==r.return||r.return()}finally{if(w)throw v;}}return t}}
1166(k,f)||A(k,f)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return k}function D(k,f){var n="undefined"!= 1167typeof Symbol&&k[Symbol.iterator]||k["@@iterator"];if(!n){if(Array.isArray(k)||(n=A(k))||f&&k&&"number"==typeof k.length){n&&(k=n);var l=0;f=function(){};return{s:f,n:function(){return l>=k.length?{done:!0}:{done:!1,value:k[l++]}},e:function(u){throw u;},f:f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var r,m=!0,t=!1;return{s:function(){n=n.call(k)},n:function(){var u=n.next();return m= 1168u.done,u},e:function(u){t=!0;r=u},f:function(){try{m||null==n.return||n.return()}finally{if(t)throw r;}}}}function A(k,f){if(k){if("string"==typeof k)return x(k,f);var n=Object.prototype.toString.call(k).slice(8,-1);return"Object"===n&&k.constructor&&(n=k.constructor.name),"Map"===n||"Set"===n?Array.from(k):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(k,f):void 0}}function x(k,f){(null==f||f>k.length)&&(f=k.length);for(var n=0,l=Array(f);n<f;n++)l[n]=k[n];return l}function q(){function k(Q, 1169M,T){return Object.defineProperty(Q,M,{value:T,enumerable:!0,configurable:!0,writable:!0}),Q[M]}function f(Q,M,T,Z){M=Object.create((M&&M.prototype instanceof l?M:l).prototype);Z=new y(Z||[]);return M._invoke=function(L,U,V){var Y="suspendedStart";return function(aa,W){if("executing"===Y)throw Error("Generator is already running");if("completed"===Y){if("throw"===aa)throw W;return E()}V.method=aa;for(V.arg=W;;){if(aa=V.delegate)if(aa=w(aa,V)){if(aa===R)continue;return aa}if("next"===V.method)V.sent= 1170V._sent=V.arg;else if("throw"===V.method){if("suspendedStart"===Y)throw Y="completed",V.arg;V.dispatchException(V.arg)}else"return"===V.method&&V.abrupt("return",V.arg);Y="executing";aa=n(L,U,V);if("normal"===aa.type){if(Y=V.done?"completed":"suspendedYield",aa.arg===R)continue;return{value:aa.arg,done:V.done}}"throw"===aa.type&&(Y="completed",V.method="throw",V.arg=aa.arg)}}}(Q,T,Z),M}function n(Q,M,T){try{return{type:"normal",arg:Q.call(M,T)}}catch(Z){return{type:"throw",arg:Z}}}function l(){}function r(){} 1171function m(){}function t(Q){["next","throw","return"].forEach(function(M){k(Q,M,function(T){return this._invoke(M,T)})})}function u(Q,M){var T;this._invoke=function(Z,L){function U(){return new M(function(V,Y){!function fa(W,ca,ia,ba){W=n(Q[W],Q,ca);if("throw"!==W.type){var ja=W.arg;return(W=ja.value)&&"object"==F(W)&&I.call(W,"__await")?M.resolve(W.__await).then(function(qa){fa("next",qa,ia,ba)},function(qa){fa("throw",qa,ia,ba)}):M.resolve(W).then(function(qa){ja.value=qa;ia(ja)},function(qa){return fa("throw", 1172qa,ia,ba)})}ba(W.arg)}(Z,L,V,Y)})}return T=T?T.then(U,U):U()}}function w(Q,M){var T=Q.iterator[M.method];if(void 0===T){if(M.delegate=null,"throw"===M.method){if(Q.iterator.return&&(M.method="return",M.arg=void 0,w(Q,M),"throw"===M.method))return R;M.method="throw";M.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}T=n(T,Q.iterator,M.arg);return"throw"===T.type?(M.method="throw",M.arg=T.arg,M.delegate=null,R):(T=T.arg)?T.done?(M[Q.resultName]=T.value,M.next=Q.nextLoc,"return"!== 1173M.method&&(M.method="next",M.arg=void 0),M.delegate=null,R):T:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,R)}function v(Q){var M={tryLoc:Q[0]};1 in Q&&(M.catchLoc=Q[1]);2 in Q&&(M.finallyLoc=Q[2],M.afterLoc=Q[3]);this.tryEntries.push(M)}function C(Q){var M=Q.completion||{};M.type="normal";delete M.arg;Q.completion=M}function y(Q){this.tryEntries=[{tryLoc:"root"}];Q.forEach(v,this);this.reset(!0)}function z(Q){if(Q){var M=Q[J];if(M)return M.call(Q);if("function"== 1174typeof Q.next)return Q;if(!isNaN(Q.length)){var T=-1;M=function L(){for(;++T<Q.length;)if(I.call(Q,T))return L.value=Q[T],L.done=!1,L;return L.value=void 0,L.done=!0,L};return M.next=M}}return{next:E}}function E(){return{value:void 0,done:!0}}q=function(){return H};var H={},G=Object.prototype,I=G.hasOwnProperty,K="function"==typeof Symbol?Symbol:{},J=K.iterator||"@@iterator",P=K.asyncIterator||"@@asyncIterator",S=K.toStringTag||"@@toStringTag";try{k({},"")}catch(Q){k=function(M,T,Z){return M[T]=Z}}H.wrap= 1175f;var R={};K={};k(K,J,function(){return this});var O=Object.getPrototypeOf;(O=O&&O(O(z([]))))&&O!==G&&I.call(O,J)&&(K=O);var N=m.prototype=l.prototype=Object.create(K);return r.prototype=m,k(N,"constructor",m),k(m,"constructor",r),r.displayName=k(m,S,"GeneratorFunction"),H.isGeneratorFunction=function(Q){Q="function"==typeof Q&&Q.constructor;return!!Q&&(Q===r||"GeneratorFunction"===(Q.displayName||Q.name))},H.mark=function(Q){return Object.setPrototypeOf?Object.setPrototypeOf(Q,m):(Q.__proto__=m, 1176k(Q,S,"GeneratorFunction")),Q.prototype=Object.create(N),Q},H.awrap=function(Q){return{__await:Q}},t(u.prototype),k(u.prototype,P,function(){return this}),H.AsyncIterator=u,H.async=function(Q,M,T,Z,L){void 0===L&&(L=Prom
1176ise);var U=new u(f(Q,M,T,Z),L);return H.isGeneratorFunction(M)?U:U.next().then(function(V){return V.done?V.value:U.next()})},t(N),k(N,S,"Generator"),k(N,J,function(){return this}),k(N,"toString",function(){return"[object Generator]"}),H.keys=function(Q){var M=[],T;for(T in Q)M.push(T); 1177return M.reverse(),function L(){for(;M.length;){var U=M.pop();if(U in Q)return L.value=U,L.done=!1,L}return L.done=!0,L}},H.values=z,y.prototype={constructor:y,reset:function(Q){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!Q)for(var M in this)"t"===M.charAt(0)&&I.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=void 0)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if("throw"===Q.type)throw Q.arg; 1178return this.rval},dispatchException:function(Q){function M(aa,W){return U.type="throw",U.arg=Q,T.next=aa,W&&(T.method="next",T.arg=void 0),!!W}if(this.done)throw Q;for(var T=this,Z=this.tryEntries.length-1;0<=Z;--Z){var L=this.tryEntries[Z],U=L.completion;if("root"===L.tryLoc)return M("end");if(L.tryLoc<=this.prev){var V=I.call(L,"catchLoc"),Y=I.call(L,"finallyLoc");if(V&&Y){if(this.prev<L.catchLoc)return M(L.catchLoc,!0);if(this.prev<L.finallyLoc)return M(L.finallyLoc)}else if(V){if(this.prev<L.catchLoc)return M(L.catchLoc, 1179!0)}else{if(!Y)throw Error("try statement without catch or finally");if(this.prev<L.finallyLoc)return M(L.finallyLoc)}}}},abrupt:function(Q,M){for(var T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T];if(Z.tryLoc<=this.prev&&I.call(Z,"finallyLoc")&&this.prev<Z.finallyLoc){var L=Z;break}}L&&("break"===Q||"continue"===Q)&&L.tryLoc<=M&&M<=L.finallyLoc&&(L=null);T=L?L.completion:{};return T.type=Q,T.arg=M,L?(this.method="next",this.next=L.finallyLoc,R):this.complete(T)},complete:function(Q, 1180M){if("throw"===Q.type)throw Q.arg;return"break"===Q.type||"continue"===Q.type?this.next=Q.arg:"return"===Q.type?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):"normal"===Q.type&&M&&(this.next=M),R},finish:function(Q){for(var M=this.tryEntries.length-1;0<=M;--M){var T=this.tryEntries[M];if(T.finallyLoc===Q)return this.complete(T.completion,T.afterLoc),C(T),R}},catch:function(Q){for(var M=this.tryEntries.length-1;0<=M;--M){var T=this.tryEntries[M];if(T.tryLoc===Q){Q=T.completion;if("throw"=== 1181Q.type){var Z=Q.arg;C(T)}return Z}}throw Error("illegal catch attempt");},delegateYield:function(Q,M,T){return this.delegate={iterator:z(Q),resultName:M,nextLoc:T},"next"===this.method&&(this.arg=void 0),R}},H}function p(k,f){for(var n=0;n<f.length;n++){var l=f[n];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(k,l.key,l)}}a.r(b);a.d(b,"AddressMapping",function(){return h});a(3);a(32);a(0);a(2);a(4);a(144);a(8);a(9);a(10);a(86);a(87);a(88);a(89); 1182a(25);a(27);a(26);a(90);a(62);a(13);a(22);a(12);var e=a(40),c=a(51),d=a(131),h=function(){function k(n){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function");!0;this.policy=n;this.mapping=new Map}var f;return f=[{key:"getCell",value:function(n){var l=this.mapping.get(n.sheet);if(void 0===l)throw new e.NoSheetWithIdError(n.sheet);return l.getCell(n)}},{key:"fetchCell",value:function(n){var l=this.mapping.get(n.sheet);if(void 0===l)throw new e.NoSheetWithIdError(n.sheet); 1183n=l.getCell(n);if(!n)throw Error("Vertex for address missing in AddressMapping");return n}},{key:"strategyFor",value:function(n){var l=this.mapping.get(n);if(void 0===l)throw new e.NoSheetWithIdError(n);return l}},{key:"addSheet",value:function(n,l){if(this.mapping.has(n))throw Error("Sheet already added");this.mapping.set(n,l)}},{key:"autoAddSheet",value:function(n,l,r){l=r.height;var m=r.width;r=this.policy.call(r.fill);this.addSheet(n,new r(m,l))}},{key:"getCellValue",value:function(n){var l=this.getCell(n); 1184return void 0===l?c.EmptyValue:l instanceof d.ArrayVertex?l.getArrayCellValue(n):l.getCellValue()}},{key:"getRawValue",value:function(n){var l=this.getCell(n);return l instanceof d.ValueCellVertex?l.getValues().rawValue:l instanceof d.ArrayVertex?l.getArrayCellRawValue(n):null}},{key:"setCell",value:function(n,l){var r=this.mapping.get(n.sheet);if(!r)throw Error("Sheet not initialized");r.setCell(n,l)}},{key:"moveCell",value:function(n,l){var r=this.mapping.get(n.sheet);if(!r)throw Error("Sheet not initialized."); 1185if(n.sheet!==l.sheet)throw Error("Cannot move cells between sheets.");if(r.has(l))throw Error("Cannot move cell. Destination already occupied.");r=r.getCell(n);if(void 0===r)throw Error("Cannot move cell. No cell with such address.");this.setCell(l,r);this.removeCell(n)}},{key:"removeCell",value:function(n){var l=this.mapping.get(n.sheet);if(!l)throw Error("Sheet not initialized");l.removeCell(n)}},{key:"has",value:function(n){var l=this.mapping.get(n.sheet);return void 0!==l&&l.has(n)}},{key:"getHeight", 1186value:function(n){var l=this.mapping.get(n);if(void 0===l)throw new e.NoSheetWithIdError(n);return l.getHeight()}},{key:"getWidth",value:function(n){var l=this.mapping.get(n);if(!l)throw new e.NoSheetWithIdError(n);
1186return l.getWidth()}},{key:"addRows",value:function(n,l,r){var m=this.mapping.get(n);if(void 0===m)throw new e.NoSheetWithIdError(n);m.addRows(l,r)}},{key:"removeRows",value:function(n){var l=this.mapping.get(n.sheet);if(void 0===l)throw new e.NoSheetWithIdError(n.sheet);l.removeRows(n)}}, 1187{key:"removeSheet",value:function(n){this.mapping.delete(n)}},{key:"addColumns",value:function(n,l,r){var m=this.mapping.get(n);if(void 0===m)throw new e.NoSheetWithIdError(n);m.addColumns(l,r)}},{key:"removeColumns",value:function(n){var l=this.mapping.get(n.sheet);if(void 0===l)throw new e.NoSheetWithIdError(n.sheet);l.removeColumns(n)}},{key:"verticesFromRowsSpan",value:q().mark(function r(l){return q().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.delegateYield(this.mapping.get(l.sheet).verticesFromRowsSpan(l), 1188"t0",1);case 1:case "end":return m.stop()}},r,this)})},{key:"verticesFromColumnsSpan",value:q().mark(function m(r){return q().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this.mapping.get(r.sheet).verticesFromColumnsSpan(r),"t0",1);case 1:case "end":return t.stop()}},m,this)})},{key:"entriesFromRowsSpan",value:q().mark(function t(m){return q().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.delegateYield(this.mapping.get(m.sheet).entriesFromRowsSpan(m), 1189"t0",1);case 1:case "end":return u.stop()}},t,this)})},{key:"entriesFromColumnsSpan",value:q().mark(function u(t){return q().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.delegateYield(this.mapping.get(t.sheet).entriesFromColumnsSpan(t),"t0",1);case 1:case "end":return w.stop()}},u,this)})},{key:"entries",value:q().mark(function u(){var w,v,C,y,z;return q().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:w=D(this.mapping.entries()),E.prev=1,w.s();case 3:if((v=w.n()).done){E.next= 11908;break}return C=B(v.value,2),y=C[0],z=C[1],E.delegateYield(z.getEntries(y),"t0",6);case 6:E.next=3;break;case 8:E.next=13;break;case 10:E.prev=10,E.t1=E.catch(1),w.e(E.t1);case 13:return E.prev=13,w.f(),E.finish(13);case 16:case "end":return E.stop()}},u,this,[[1,10,13,16]])})},{key:"sheetEntries",value:q().mark(function v(w){var C;return q().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(void 0===(C=this.mapping.get(w))){y.next=5;break}return y.delegateYield(C.getEntries(w),"t0",3);case 3:y.next= 11916;break;case 5:throw new e.NoSheetWithIdError(w);case 6:case "end":return y.stop()}},v,this)})}],p(k.prototype,f),Object.defineProperty(k,"prototype",{writable:!1}),k}()},function(g,b,a){function F(d){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}function B(){function d(O,N,Q){return Object.defineProperty(O,N,{value:Q,enumerable:!0, 1192configurable:!0,writable:!0}),O[N]}function h(O,N,Q,M){N=Object.create((N&&N.prototype instanceof f?N:f).prototype);M=new v(M||[]);return N._invoke=function(T,Z,L){var U="suspendedStart";return function(V,Y){if("executing"===U)throw Error("Generator is already running");if("completed"===U){if("throw"===V)throw Y;return y()}L.method=V;for(L.arg=Y;;){if(V=L.delegate)if(V=t(V,L)){if(V===P)continue;return V}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if("suspendedStart"===U)throw U= 1193"completed",L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg);U="executing";V=k(T,Z,L);if("normal"===V.type){if(U=L.done?"completed":"suspendedYield",V.arg===P)continue;return{value:V.arg,done:L.done}}"throw"===V.type&&(U="completed",L.method="throw",L.arg=V.arg)}}}(O,Q,M),N}function k(O,N,Q){try{return{type:"normal",arg:O.call(N,Q)}}catch(M){return{type:"throw",arg:M}}}function f(){}function n(){}function l(){}function r(O){["next","throw","return"].forEach(function(N){d(O, 1194N,function(Q){return this._invoke(N,Q)})})}function m(O,N){var Q;this._invoke=function(M,T){function Z(){return new N(function(L,U){!function ia(Y,aa,W,ca){Y=k(O[Y],O,aa);if("throw"!==Y.type){var ba=Y.arg;return(Y=ba.value)&&"object"==F(Y)&&H.call(Y,"__await")?N.resolve(Y.__await).then(function(fa){ia("next",fa,W,ca)},function(fa){ia("throw",fa,W,ca)}):N.resolve(Y).then(function(fa){ba.value=fa;W(ba)},function(fa){return ia("throw",fa,W,ca)})}ca(Y.arg)}(M,T,L,U)})}return Q=Q?Q.then(Z,Z):Z()}}function t(O, 1195N){var Q=O.iterator[N.method];if(void 0===Q){if(N.delegate=null,"throw"===N.method){if(O.iterator.return&&
1195(N.method="return",N.arg=void 0,t(O,N),"throw"===N.method))return P;N.method="throw";N.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}Q=k(Q,O.iterator,N.arg);return"throw"===Q.type?(N.method="throw",N.arg=Q.arg,N.delegate=null,P):(Q=Q.arg)?Q.done?(N[O.resultName]=Q.value,N.next=O.nextLoc,"return"!==N.method&&(N.method="next",N.arg=void 0),N.delegate=null,P):Q:(N.method= 1196"throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,P)}function u(O){var N={tryLoc:O[0]};1 in O&&(N.catchLoc=O[1]);2 in O&&(N.finallyLoc=O[2],N.afterLoc=O[3]);this.tryEntries.push(N)}function w(O){var N=O.completion||{};N.type="normal";delete N.arg;O.completion=N}function v(O){this.tryEntries=[{tryLoc:"root"}];O.forEach(u,this);this.reset(!0)}function C(O){if(O){var N=O[I];if(N)return N.call(O);if("function"==typeof O.next)return O;if(!isNaN(O.length)){var Q=-1;N=function T(){for(;++Q< 1197O.length;)if(H.call(O,Q))return T.value=O[Q],T.done=!1,T;return T.value=void 0,T.done=!0,T};return N.next=N}}return{next:y}}function y(){return{value:void 0,done:!0}}B=function(){return z};var z={},E=Object.prototype,H=E.hasOwnProperty,G="function"==typeof Symbol?Symbol:{},I=G.iterator||"@@iterator",K=G.asyncIterator||"@@asyncIterator",J=G.toStringTag||"@@toStringTag";try{d({},"")}catch(O){d=function(N,Q,M){return N[Q]=M}}z.wrap=h;var P={};G={};d(G,I,function(){return this});var S=Object.getPrototypeOf; 1198(S=S&&S(S(C([]))))&&S!==E&&H.call(S,I)&&(G=S);var R=l.prototype=f.prototype=Object.create(G);return n.prototype=l,d(R,"constructor",l),d(l,"constructor",n),n.displayName=d(l,J,"GeneratorFunction"),z.isGeneratorFunction=function(O){O="function"==typeof O&&O.constructor;return!!O&&(O===n||"GeneratorFunction"===(O.displayName||O.name))},z.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,l):(O.__proto__=l,d(O,J,"GeneratorFunction")),O.prototype=Object.create(R),O},z.awrap=function(O){return{__await:O}}, 1199r(m.prototype),d(m.prototype,K,function(){return this}),z.AsyncIterator=m,z.async=function(O,N,Q,M,T){void 0===T&&(T=Promise);var Z=new m(h(O,N,Q,M),T);return z.isGeneratorFunction(N)?Z:Z.next().then(function(L){return L.done?L.value:Z.next()})},r(R),d(R,J,"Generator"),d(R,I,function(){return this}),d(R,"toString",function(){return"[object Generator]"}),z.keys=function(O){var N=[],Q;for(Q in O)N.push(Q);return N.reverse(),function T(){for(;N.length;){var Z=N.pop();if(Z in O)return T.value=Z,T.done= 1200!1,T}return T.done=!0,T}},z.values=C,v.prototype={constructor:v,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!O)for(var N in this)"t"===N.charAt(0)&&H.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=void 0)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if("throw"===O.type)throw O.arg;return this.rval},dispatchException:function(O){function N(V,Y){return Z.type= 1201"throw",Z.arg=O,Q.next=V,Y&&(Q.method="next",Q.arg=void 0),!!Y}if(this.done)throw O;for(var Q=this,M=this.tryEntries.length-1;0<=M;--M){var T=this.tryEntries[M],Z=T.completion;if("root"===T.tryLoc)return N("end");if(T.tryLoc<=this.prev){var L=H.call(T,"catchLoc"),U=H.call(T,"finallyLoc");if(L&&U){if(this.prev<T.catchLoc)return N(T.catchLoc,!0);if(this.prev<T.finallyLoc)return N(T.finallyLoc)}else if(L){if(this.prev<T.catchLoc)return N(T.catchLoc,!0)}else{if(!U)throw Error("try statement without catch or finally"); 1202if(this.prev<T.finallyLoc)return N(T.finallyLoc)}}}},abrupt:function(O,N){for(var Q=this.tryEntries.length-1;0<=Q;--Q){var M=this.tryEntries[Q];if(M.tryLoc<=this.prev&&H.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var T=M;break}}T&&("break"===O||"continue"===O)&&T.tryLoc<=N&&N<=T.finallyLoc&&(T=null);Q=T?T.completion:{};return Q.type=O,Q.arg=N,T?(this.method="next",this.next=T.finallyLoc,P):this.complete(Q)},complete:function(O,N){if("throw"===O.type)throw O.arg;return"break"===O.type||"continue"=== 1203O.type?this.next=O.arg:"return"===O.type?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):"normal"===O.type&&N&&(this.next=N),P},finish:function(O){for(var N=this.tryEntries.length-1;0<=N;--N){var Q=this.tryEntries[N];if(Q.finallyLoc===O)return this.complete(Q.completion,Q.afterLoc),w(Q),P}},catch:function(O){for(var N=this.tryEntries.length-1;0<=N;--N){var Q=this.tryEntries[N];if(Q.tryLoc===O){O=Q.completion;if("throw"===O.type){var M=O.arg;w(Q)}return M}}throw Error("illegal catch attempt"); 1204},delegateYield:function(O,N,Q){return this.delegate={iterator:C(O),resultName:N,nextLoc:Q},"next"===this.method&&(this.arg=void 0),P}},z}
1204function D(d,h){if(!(d=function(k){if(Array.isArray(k))return k}(d)||function(k,f){var n=null==k?null:"undefined"!=typeof Symbol&&k[Symbol.iterator]||k["@@iterator"];if(null!=n){var l,r=[],m=!0,t=!1;try{for(n=n.call(k);!(m=(l=n.next()).done)&&(r.push(l.value),!f||r.length!==f);m=!0);}catch(w){t=!0;var u=w}finally{try{m||null==n.return||n.return()}finally{if(t)throw u; 1205}}return r}}(d,h)||x(d,h)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return d}function A(d,h){var k="undefined"!=typeof Symbol&&d[Symbol.iterator]||d["@@iterator"];if(!k){if(Array.isArray(d)||(k=x(d))||h&&d&&"number"==typeof d.length){k&&(d=k);var f=0;h=function(){};return{s:h,n:function(){return f>=d.length?{done:!0}:{done:!1,value:d[f++]}},e:function(m){throw m;},f:h}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1206}var n,l=!0,r=!1;
1206return{s:function(){k=k.call(d)},n:function(){var m=k.next();return l=m.done,m},e:function(m){r=!0;n=m},f:function(){try{l||null==k.return||k.return()}finally{if(r)throw n;}}}}function x(d,h){if(d){if("string"==typeof d)return q(d,h);var k=Object.prototype.toString.call(d).slice(8,-1);return"Object"===k&&d.constructor&&(k=d.constructor.name),"Map"===k||"Set"===k?Array.from(d):"Arguments"===k||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?q(d,h):void 0}}function q(d,h){(null== 1207h||h>d.length)&&(h=d.length);for(var k=0,f=Array(h);k<h;k++)f[k]=d[k];return f}function p(d,h){for(var k=0;k<h.length;k++){var f=h[k];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(d,f.key,f)}}a.r(b);a.d(b,"ArrayMapping",function(){return c});a(3);a(32);a(0);a(2);a(4);a(27);a(13);a(26);a(22);a(12);a(8);a(9);a(10);a(86);a(87);a(88);a(89);a(25);a(90);a(62);var e=a(24),c=function(){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function"); 1208!0;this.arrayMapping=new Map}var h;return h=[{key:"getArray",value:function(k){var f=this.getArrayByCorner(k.start);if(null==f?0:f.getRange().sameAs(k))return f}},{key:"getArrayByCorner",value:function(k){return this.arrayMapping.get(Object(e.addressKey)(k))}},{key:"setArray",value:function(k,f){this.arrayMapping.set(Object(e.addressKey)(k.start),f)}},{key:"removeArray",value:function(k){"string"==typeof k?this.arrayMapping.delete(k):this.arrayMapping.delete(Object(e.addressKey)(k.start))}},{key:"count", 1209value:function(){return this.arrayMapping.size}},{key:"arraysInRows",value:B().mark(function n(f){var l,r,m,t,u;return B().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:l=A(this.arrayMapping.entries()),w.prev=1,l.s();case 3:if((r=l.n()).done){w.next=10;break}if(m=D(r.value,2),t=m[0],!(u=m[1]).spansThroughSheetRows(f.sheet,f.rowStart,f.rowEnd)){w.next=8;break}return w.next=8,[t,u];case 8:w.next=3;break;case 10:w.next=15;break;case 12:w.prev=12,w.t0=w.catch(1),l.e(w.t0);case 15:return w.prev= 121015,l.f(),w.finish(15);case 18:case "end":return w.stop()}},n,this,[[1,12,15,18]])})},{key:"arraysInCols",value:B().mark(function l(n){var r,m,t,u,w;return B().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:r=A(this.arrayMapping.entries()),v.prev=1,r.s();case 3:if((m=r.n()).done){v.next=10;break}if(t=D(m.value,2),u=t[0],!(w=t[1]).spansThroughSheetColumn(n.sheet,n.columnStart,n.columnEnd)){v.next=8;break}return v.next=8,[u,w];case 8:v.next=3;break;case 10:v.next=15;break;case 12:v.prev=12,v.t0= 1211v.catch(1),r.e(v.t0);case 15:return v.prev=15,r.f(),v.finish(15);case 18:case "end":return v.stop()}},l,this,[[1,12,15,18]])})},{key:"isFormulaArrayInRow",value:function(n,l){var r,m=A(this.arrayMapping.values());try{for(m.s();!(r=m.n()).done;)if(r.value.spansThroughSheetRows(n,l))return!0}catch(t){m.e(t)}finally{m.f()}return!1}},{key:"isFormulaArrayInAllRows",value:function(n){var l,r=!0,m=A(n.rows());try{for(m.s();!(l=m.n()).done;)this.isFormulaArrayInRow(n.sheet,l.value)||(r=!1)}catch(t){m.e(t)}finally{m.f()}return r}}, 1212{key:"isFormulaArrayInColumn",value:function(n,l){var r,m=A(this.arrayMapping.values());try{for(m.s();!(r=m.n()).done;)if(r.value.spansThroughSheetColumn(n,l))return!0}catch(t){m.e(t)}finally{m.f()}return!1}},{key:"isFormulaArrayInAllColumns",value:function(n){var l,r=!0,m=A(n.columns());try{for(m.s();!(l=m.n()).done;)this.isFormulaArrayInColumn(n.sheet,l.value)||(r=!1)}catch(t){m.e(t)}finally{m.f()}return r}},{key:"isFormulaArrayInRange",value:function(n){var l,r=A(this.arrayMapping.values());try{for(r.s();!(l= 1213r.n()).done;)if(l.value.getRange().doesOverlap(n))return!0}catch(m){r.e(m)}finally{r.f()}return!1}},{key:"isFormulaArrayAtAddress",value:function(n){var l,r=A(this.arrayMapping.values());try{for(r.s();!(l=r.n()).done;)if(l.value.getRange().addressInRange(n))return!0}catch(m){r.e(m)}finally{r.f()}return!1}},{key:"moveArrayVerticesAfterRowByRows",value:function(n,l,r){this.updateArrayVerticesInSheet(n,function(m,t){m=t.getRange();return l<=m.start.row?[m.shifted(0,r),t]:void 0})}},{key:"moveArrayVerticesAfterColumnByColumns", 1214value:function(n,l,r){this.updateArrayVerticesInSheet(n,function(m,t){m=t.getRange();
1214return l<=m.start.col?[m.shifted(r,0),t]:void 0})}},{key:"updateArrayVerticesInSheet",value:function(n,l){var r,m=this,t=[],u=A(this.arrayMapping.entries());try{for(u.s();!(r=u.n()).done;){var w=D(r.value,2),v=w[0],C=w[1];if(C.sheet===n){var y=l(v,C);void 0!==y&&(this.removeArray(v),t.push(y))}}}catch(z){u.e(z)}finally{u.f()}t.forEach(function(z){z=D(z,2);m.setArray(z[0],z[1])})}}],p(d.prototype,h),Object.defineProperty(d, 1215"prototype",{writable:!1}),d}()},function(g,b,a){function F(D,A){for(var x=0;x<A.length;x++){var q=A[x];q.enumerable=q.enumerable||!1;q.configurable=!0;"value"in q&&(q.writable=!0);Object.defineProperty(D,q.key,q)}}a.r(b);a.d(b,"RangeVertex",function(){return B});a(3);a(32);a(0);a(2);a(4);a(54);a(27);var B=function(){function D(x){if(!(this instanceof D))throw new TypeError("Cannot call a class as a function");!0;this.range=x;this.functionCache=new Map;this.criterionFunctionCache=new Map;this.dependentCacheRanges= 1216new Set;this.bruteForce=!1}var A;return A=[{key:"start",get:function(){return this.range.start}},{key:"end",get:function(){return this.range.end}},{key:"sheet",get:function(){return this.range.start.sheet}},{key:"getFunctionValue",value:function(x){return this.functionCache.get(x)}},{key:"setFunctionValue",value:function(x,q){this.functionCache.set(x,q)}},{key:"getCriterionFunctionValue",value:function(x,q){var p;return null===(p=this.getCriterionFunctionValues(x).get(q))||void 0===p?void 0:p[0]}}, 1217{key:"getCriterionFunctionValues",value:function(x){var q;return null!==(q=this.criterionFunctionCache.get(x))&&void 0!==q?q:new Map}},{key:"setCriterionFunctionValues",value:function(x,q){this.criterionFunctionCache.set(x,q)}},{key:"addDependentCacheRange",value:function(x){x!==this&&this.dependentCacheRanges.add(x)}},{key:"clearCache",value:function(){this.functionCache.clear();this.criterionFunctionCache.clear();
1217this.dependentCacheRanges.forEach(function(x){return x.criterionFunctionCache.clear()}); 1218this.dependentCacheRanges.clear()}},{key:"getStart",value:function(){return this.start}},{key:"getEnd",value:function(){return this.end}}],F(D.prototype,A),Object.defineProperty(D,"prototype",{writable:!1}),D}()},function(g,b,a){function F(q,p){var e="undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(!e){if(Array.isArray(q)||(e=function(f,n){if(f){if("string"==typeof f)return B(f,n);var l=Object.prototype.toString.call(f).slice(8,-1);"Object"===l&&f.constructor&&(l=f.constructor.name); 1219if("Map"===l||"Set"===l)return Array.from(f);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return B(f,n)}}(q))||p&&q&&"number"==typeof q.length){e&&(q=e);var c=0;p=function(){};return{s:p,n:function(){return c>=q.length?{done:!0}:{done:!1,value:q[c++]}},e:function(f){throw f;},f:p}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var d,h=!0,k=!1;return{s:function(){e= 1220e.call(q)},n:function(){var f=e.next();return h=f.done,f},e:function(f){k=!0;d=f},f:function(){try{h||null==e.return||e.return()}finally{if(k)throw d;}}}}function B(q,p){(null==p||p>q.length)&&(p=q.length);for(var e=0,c=Array(p);e<p;e++)c[e]=q[e];return c}function D(q,p){for(var e=0;e<p.length;e++){var c=p[e];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(q,c.key,c)}}a.r(b);a.d(b,"Graph",function(){return x});var A;a(3);a(0);a(54);a(2);a(4);a(32); 1221a(27);a(22);a(62);a(13);a(26);a(12);a(8);a(9);a(10);!function(q){q[q.ON_STACK=0]="ON_STACK";q[q.PROCESSED=1]="PROCESSED";q[q.POPPED=2]="POPPED"}(A||(A={}));var x=function(){function q(e){if(!(this instanceof q))throw new TypeError("Cannot call a class as a function");!0;this.dependencyQuery=e;this.nodes=new Set;this.specialNodes=new Set;this.specialNodesStructuralChanges=new Set;this.specialNodesRecentlyChanged=new Set;this.infiniteRanges=new Set;this.edges=new Map}var p;return p=[{key:"addNode", 1222value:function(e){this.nodes.add(e);this.edges.has(e)||this.edges.set(e,new Set)}},{key:"addEdge",value:function(e,c){if(!this.nodes.has(e))throw Error("Unknown node ".concat(e));if(!this.nodes.has(c))throw Error("Unknown node ".concat(c));this.edges.get(e).add(c)}},{key:"removeEdge",value:function(e,c){if(!this.existsEdge(e,c))throw Error("Edge does not exist");this.edges.get(e).delete(c)}},{key:"softRemoveEdge",value:function(e,c){var d;null===(d=this.edges.get(e))||void 0===d||d.delete(c)}},{key:"removeIncomingEdges",
1223value:function(e){this.edges.forEach(function(c){c.delete(e)})}},{key:"adjacentNodes",value:function(e){return this.edges.get(e)}},{key:"adjacentNodesCount",value:function(e){return this.adjacentNodes(e).size}},{key:"hasNode",value:function(e){return this.nodes.has(e)}},{key:"nodesCount",value:function(){return this.nodes.size}},{key:"edgesCount",value:function(){var e=0;return this.edges.forEach(function(c){return e+=c.size}),e}},{key:"removeNode",value:function(e){var c,d=F(this.adjacentNodes(e).values()); 1224try{for(d.s();!(c=d.n()).done;)this.markNodeAsSpecialRecentlyChanged(c.value)}catch(h){d.e(h)}finally{d.f()}return this.edges.delete(e),this.nodes.delete(e),this.specialNodes.delete(e),this.specialNodesRecentlyChanged.delete(e),this.specialNodesStructuralChanges.delete(e),this.infiniteRanges.delete(e),this.removeDependencies(e)}},{key:"markNodeAsSpecial",value:function(e){this.specialNodes.add(e)}},{key:"markNodeAsSpecialRecentlyChanged",value:function(e){this.nodes.has(e)&&this.specialNodesRecentlyChanged.add(e)}}, 1225{key:"markNodeAsChangingWithStructure",value:function(e){this.specialNodesStructuralChanges.add(e)}},{key:"clearSpecialNodesRecentlyChanged",value:function(){this.specialNodesRecentlyChanged.clear()}},{key:"markNodeAsInfiniteRange",value:function(e){this.infiniteRanges.add(e)}},{key:"existsEdge",value:function(e,c){var d,h;return null!==(h=null===(d=this.edges.get(e))||void 0===d?void 0:d.has(c))&&void 0!==h&&h}},{key:"topSortWithScc",value:function(){return this.getTopSortedWithSccSubgraphFrom(Array.from(this.nodes), 1226function(){return!0},function(){})}},{key:"getTopSortedWithSccSubgraphFrom",value:function(e,c,d){var h=this,k=new Map,f=new Map,n=new Map,l=new Set,r=new Map,m=[],t=0,u=new Set;e.reverse();e.forEach(function(y){if(void 0===r.get(y)){var z=[y],E=[];r.set(y,A.ON_STACK);for(y=function(){var H=z[z.length-1];switch(r.get(H)){case A.ON_STACK:k.set(H,t);f.set(H,t);E.push(H);t++;h.adjacentNodes(H).forEach(function(K){void 0===k.get(K)&&(z.push(K),n.set(K,H),r.set(K,A.ON_STACK))});r.set(H,A.PROCESSED);break; 1227case A.PROCESSED:var G;if(G=k.get(H),h.adjacentNodes(H).forEach(function(K){l.has(K)||(G=n.get(K)===H?Math.min(G,f.get(K)):Math.min(G,k.get(K)))}),f.set(H,G),G===k.get(H)){var I=[];do I.push(E[E.length-1]),E.pop();while(I[I.length-1]!==H);I.forEach(function(K){l.add(K)});m.push.apply(m,I);1<I.length&&I.forEach(function(K){u.add(K)})}z.pop();r.set(H,A.POPPED);break;case A.POPPED:z.pop()}};0<z.length;)y()}});var w=new Set(e),v=[],C=[];return m.reverse(),m.forEach(function(y){u.has(y)||h.adjacentNodes(y).has(y)? 1228(C.push(y),d(y),h.adjacentNodes(y).forEach(function(z){return w.add(z)})):(v.push(y),w.has(y)&&c(y)&&h.adjacentNodes(y).forEach(function(z){return w.add(z)}))}),{sorted:v,cycled:C}}},{key:"getDependencies",value:function(e){var c=[];
1228return this.edges.forEach(function(d,h){d.has(e)&&c.push(h)}),c}},{key:"removeDependencies",value:function(e){var c,d=this.dependencyQuery(e),h=F(d);try{for(h.s();!(c=h.n()).done;)this.softRemoveEdge(c.value,e)}catch(k){h.e(k)}finally{h.f()}return d}}],D(q.prototype,p), 1229Object.defineProperty(q,"prototype",{writable:!1}),q}()},function(g,b,a){function F(f){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(f)}function B(){function f(M,T,Z){return Object.defineProperty(M,T,{value:Z,enumerable:!0,configurable:!0,writable:!0}),M[T]}function n(M,T,Z,L){T=Object.create((T&&T.prototype instanceof r?T:r).prototype); 1230L=new z(L||[]);return T._invoke=function(U,V,Y){var aa="suspendedStart";return function(W,ca){if("executing"===aa)throw Error("Generator is already running");if("completed"===aa){if("throw"===W)throw ca;return H()}Y.method=W;for(Y.arg=ca;;){if(W=Y.delegate)if(W=v(W,Y)){if(W===O)continue;return W}if("next"===Y.method)Y.sent=Y._sent=Y.arg;else if("throw"===Y.method){if("suspendedStart"===aa)throw aa="completed",Y.arg;Y.dispatchException(Y.arg)}else"return"===Y.method&&Y.abrupt("return",Y.arg);aa="executing"; 1231W=l(U,V,Y);if("normal"===W.type){if(aa=Y.done?"completed":"suspendedYield",W.arg===O)continue;return{value:W.arg,done:Y.done}}"throw"===W.type&&(aa="completed",Y.method="throw",Y.arg=W.arg)}}}(M,Z,L),T}function l(M,T,Z){try{return{type:"normal",arg:M.call(T,Z)}}catch(L){return{type:"throw",arg:L}}}function r(){}function m(){}function t(){}function u(M){["next","throw","return"].forEach(function(T){f(M,T,function(Z){return this._invoke(T,Z)})})}function w(M,T){var Z;this._invoke=function(L,U){function V(){return new T(function(Y, 1232aa){!function ja(ca,ia,ba,fa){ca=l(M[ca],M,ia);if("throw"!==ca.type){var qa=ca.arg;return(ca=qa.value)&&"object"==F(ca)&&K.call(ca,"__await")?T.resolve(ca.__await).then(function(ha){ja("next",ha,ba,fa)},function(ha){ja("throw",ha,ba,fa)}):T.resolve(ca).then(function(ha){qa.value=ha;ba(qa)},function(ha){return ja("throw",ha,ba,fa)})}fa(ca.arg)}(L,U,Y,aa)})}return Z=Z?Z.then(V,V):V()}}function v(M,T){var Z=M.iterator[T.method];if(void 0===Z){if(T.delegate=null,"throw"===T.method){if(M.iterator.return&& 1233(T.method="return",T.arg=void 0,v(M,T),"throw"===T.method))return O;T.method="throw";T.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}Z=l(Z,M.iterator,T.arg);return"throw"===Z.type?(T.method="throw",T.arg=Z.arg,T.delegate=null,O):(Z=Z.arg)?Z.done?(T[M.resultName]=Z.value,T.next=M.nextLoc,"return"!==T.method&&(T.method="next",T.arg=void 0),T.delegate=null,O):Z:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,O)}function C(M){var T= 1234{tryLoc:M[0]};1 in M&&(T.catchLoc=M[1]);2 in M&&(T.finallyLoc=M[2],T.afterLoc=M[3]);this.tryEntries.push(T)}function y(M){var T=M.completion||{};T.type="normal";delete T.arg;M.completion=T}function z(M){this.tryEntries=[{tryLoc:"root"}];M.forEach(C,this);this.reset(!0)}function E(M){if(M){var T=M[P];if(T)return T.call(M);if("function"==typeof M.next)return M;if(!isNaN(M.length)){var Z=-1;T=function U(){for(;++Z<M.length;)if(K.call(M,Z))return U.value=M[Z],U.done=!1,U;return U.value=void 0,U.done= 1235!0,U};return T.next=T}}return{next:H}}function H(){return{value:void 0,done:!0}}B=function(){return G};var G={},I=Object.prototype,K=I.hasOwnProperty,J="function"==typeof Symbol?Symbol:{},P=J.iterator||"@@iterator",S=J.asyncIterator||"@@asyncIterator",R=J.toStringTag||"@@toStringTag";try{f({},"")}
1235catch(M){f=function(T,Z,L){return T[Z]=L}}G.wrap=n;var O={};J={};f(J,P,function(){return this});var N=Object.getPrototypeOf;(N=N&&N(N(E([]))))&&N!==I&&K.call(N,P)&&(J=N);var Q=t.prototype=r.prototype=Object.create(J); 1236return m.prototype=t,f(Q,"constructor",t),f(t,"constructor",m),m.displayName=f(t,R,"GeneratorFunction"),G.isGeneratorFunction=function(M){M="function"==typeof M&&M.constructor;return!!M&&(M===m||"GeneratorFunction"===(M.displayName||M.name))},G.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,t):(M.__proto__=t,f(M,R,"GeneratorFunction")),M.prototype=Object.create(Q),M},G.awrap=function(M){return{__await:M}},u(w.prototype),f(w.prototype,S,function(){return this}),G.AsyncIterator= 1237w,G.async=function(M,T,Z,L,U){void 0===U&&(U=Promise);var V=new w(n(M,T,Z,L),U);return G.isGeneratorFunction(T)?V:V.next().then(function(Y){return Y.done?Y.value:V.next()})},u(Q),f(Q,R,"Generator"),f(Q,P,function(){return this}),f(Q,"toString",function(){return"[object Generator]"}),G.keys=function(M){var T=[],Z;for(Z in M)T.push(Z);return T.reverse(),function U(){for(;T.length;){var V=T.pop();if(V in M)return U.value=V,U.done=!1,U}return U.done=!0,U}},G.values=E,z.prototype={constructor:z,reset:function(M){if(this.prev= 12380,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!M)for(var T in this)"t"===T.charAt(0)&&K.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=void 0)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if("throw"===M.type)throw M.arg;return this.rval},dispatchException:function(M){function T(W,ca){return V.type="throw",V.arg=M,Z.next=W,ca&&(Z.method="next",Z.arg=void 0),!!ca}if(this.done)throw M;for(var Z= 1239this,L=this.tryEntries.length-1;0<=L;--L){var U=this.tryEntries[L],V=U.completion;if("root"===U.tryLoc)return T("end");if(U.tryLoc<=this.prev){var Y=K.call(U,"catchLoc"),aa=K.call(U,"finallyLoc");if(Y&&aa){if(this.prev<U.catchLoc)return T(U.catchLoc,!0);if(this.prev<U.finallyLoc)return T(U.finallyLoc)}else if(Y){if(this.prev<U.catchLoc)return T(U.catchLoc,!0)}else{if(!aa)throw Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return T(U.finallyLoc)}}}},abrupt:function(M,T){for(var Z= 1240this.tryEntries.length-1;0<=Z;--Z){var L=this.tryEntries[Z];if(L.tryLoc<=this.prev&&K.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var U=L;break}}U&&("break"===M||"continue"===M)&&U.tryLoc<=T&&T<=U.finallyLoc&&(U=null);Z=U?U.completion:{};return Z.type=M,Z.arg=T,U?(this.method="next",this.next=U.finallyLoc,O):this.complete(Z)},complete:function(M,T){if("throw"===M.type)throw M.arg;return"break"===M.type||"continue"===M.type?this.next=M.arg:"return"===M.type?(this.rval=this.arg=M.arg,this.method= 1241"return",this.next="end"):"normal"===M.type&&T&&(this.next=T),O},finish:function(M){for(var T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T];if(Z.finallyLoc===M)return this.complete(Z.completion,Z.afterLoc),y(Z),O}},catch:function(M){for(var T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T];if(Z.tryLoc===M){M=Z.completion;if("throw"===M.type){var L=M.arg;y(Z)}return L}}throw Error("illegal catch attempt");},delegateYield:function(M,T,Z){return this.delegate={iterator:E(M), 1242resultName:T,nextLoc:Z},"next"===this.method&&(this.arg=void 0),O}},G}function D(f,n){if(!(f=function(l){if(Array.isArray(l))return l}(f)||function(l,r){var m=null==l?null:"undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"];if(null!=m){var t,u=[],w=!0,v=!1;try{for(m=m.call(l);!(w=(t=m.next()).done)&&(u.push(t.value),!r||u.length!==r);w=!0);}catch(y){v=!0;var C=y}finally{try{w||null==m.return||m.return()}finally{if(v)throw C;}}return u}}(f,n)||x(f,n)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1243return f}function A(f,n){var l="undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(!l){if(Array.isArray(f)||(l=x(f))||n&&f&&"number"==typeof f.length){l&&(f=l);var r=0;n=function(){};return{s:n,n:function(){return r>=f.length?{done:!0}:{done:!1,value:f[r++]}},e:function(w){throw w;},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var m,t=!0,u=!1;return{s:function(){l=l.call(f)}, 1244n:function(){var w=l.next();return t=w.done,w},e:function(w){u=!0;m=w},f:function(){try{t||null==l.return||l.return()}finally{if(u)throw m;}}}}function x(f,n){if(f){if("string"==typeof f)return q(f,n);var l=Object.prototype.toString.call(f).slice(8,-1);return"Object"===l&&f.constructor&&(l=f.constructor.name),"Map"===l||"Set"===l?Array.from(f):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?q(f,n):void 0}}function q(f,n){(null==n||n>f.length)&&(n=f.length);for(var l=0,r=Array(n);l< 1245n;l++)r[l]=f[l];return r}function p(f,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}function e(f,n){return"".concat(f.col,",").concat(f.row,",").concat(n.col,",").concat(n.row)}function c(f){return e(f.start,f.end)}a.r(b);a.d(b,"RangeMapping",function(){return k});a(3);a(32);a(0);a(2);a(4);a(75);a(10);a(8);a(9);a(274);a(52);a(27);a(36);a(39);a(18);a(13);a(26);a(22);a(12);a(86);a(87);a(88);a(89); 1246a(25);a(90);a(62);var d=a(91),h=a(24),k=function(){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");!0;this.rangeMapping=new Map}var n;return n=[{key:"getMappingSize",value:function(l){var r,m;return null!==(m=null===(r=this.rangeMapping.get(l))||void 0===r?void 0:r.size)&&void 0!==m?m:0}},{key:"setRange",value:function(l){var r=this.rangeMapping.get(l.getStart().sheet);void 0===r&&(r=new Map,this.rangeMapping.set(l.getStart().sheet,r));var m=e(l.getStart(), 1247l.getEnd());r.set(m,l)}},{key:"removeRange",value:function(l){var r=l.getStart().sheet,m=this.rangeMapping.get(r);void 0!==m&&(l=e(l.getStart(),l.getEnd()),m.delete(l),0===m.size&&this.rangeMapping.delete(r))}},{key:"getRange",value:function(l,r){var m=this.rangeMapping.get(l.sheet);l=e(l,r);return null==m?void 0:m.get(l)}},{key:"fetchRange",value:function(l,r){l=this.getRange(l,r);if(!l)throw Error("Range does not exist");return l}},{key:"truncateRanges",value:function(l,r){var m,t=[],u=[],w=[], 1248v=l.sheet,C=A(this.entriesFromSheet(l.sheet));try{for(C.s();!(m=C.n()).done;){var y=D(m.value,2),z=y[0],E=y[1],H=E.range;l.start<=r(E.range.end)&&(H.removeSpan(l),H.shouldBeRemoved()?(this.removeByKey(v,z),t.push(E)):u.push([z,E]),w.push(E))}}catch(G){C.e(G)}
1248finally{C.f()}l=[];u.sort(function(G,I){G=G[1];I=I[1];var K=r(G.range.start),J=r(G.range.start);return K===J?r(G.range.end)-r(I.range.end):K-J});for(m=0;m<u.length;m++)y=D(u[m],2),C=y[0],y=y[1],z=c(y.range),z!==C&&(z=this.getByKey(v,z),this.removeByKey(v, 1249C),void 0!==z&&y!=z?l.push([z,y]):this.setRange(y));return{verticesToRemove:t,verticesToMerge:l,verticesWithChangedSize:w}}},{key:"moveAllRangesInSheetAfterRowByRows",value:function(l,r,m){return this.updateVerticesFromSheet(l,function(t,u){return r<=u.start.row?(u.range.shiftByRows(m),{changedSize:!1,vertex:u}):r>u.start.row&&r<=u.end.row?(u.range.expandByRows(m),{changedSize:!0,vertex:u}):void 0})}},{key:"moveAllRangesInSheetAfterColumnByColumns",value:function(l,r,m){return this.updateVerticesFromSheet(l, 1250function(t,u){return r<=u.start.col?(u.range.shiftByColumns(m),{changedSize:!1,vertex:u}):r>u.start.col&&r<=u.end.col?(u.range.expandByColumns(m),{changedSize:!0,vertex:u}):void 0})}},{key:"moveRangesInsideSourceRange",value:function(l,r,m,t){this.updateVerticesFromSheet(l.sheet,function(u,w){return l.containsRange(w.range)?(w.range.shiftByColumns(r),w.range.shiftByRows(m),w.range.moveToSheet(t),{changedSize:!1,vertex:w}):void 0})}},{key:"removeRangesInSheet",value:function(l){if(this.rangeMapping.has(l)){var r= 1251this.rangeMapping.get(l).values();return this.rangeMapping.delete(l),r}return[][Symbol.iterator]()}},{key:"rangesInSheet",value:B().mark(function m(r){var t;return B().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(t=this.rangeMapping.get(r)){u.next=3;break}return u.abrupt("return");case 3:return u.delegateYield(t.values(),"t0",4);case 4:case "end":return u.stop()}},m,this)})},{key:"rangeVerticesContainedInRange",value:B().mark(function t(m){var u,w,v;return B().wrap(function(C){for(;;)switch(C.prev= 1252C.next){case 0:u=A(this.rangesInSheet(m.sheet)),C.prev=1,u.s();case 3:if((w=u.n()).done){C.next=10;break}if(v=w.value,!m.containsRange(v.range)){C.next=8;break}return C.next=8,v;case 8:C.next=3;break;case 10:C.next=15;break;case 12:C.prev=12,C.t0=C.catch(1),u.e(C.t0);case 15:return C.prev=15,u.f(),C.finish(15);case 18:case "end":return C.stop()}},t,this,[[1,12,15,18]])})},{key:"findSmallerRange",value:function(m){if(1<m.height()&&Number.isFinite(m.height())){var t=Object(h.simpleCellAddress)(m.end.sheet, 1253m.end.col,m.end.row-1);t=this.getRange(m.start,t);if(void 0!==t)return{smallerRangeVertex:t,restRange:new d.AbsoluteCellRange(Object(h.simpleCellAddress)(m.start.sheet,m.start.col,m.end.row),m.end)}}return{restRange:m}}},{key:"entriesFromSheet",value:B().mark(function u(t){var w;return B().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(w=this.rangeMapping.get(t)){v.next=3;break}return v.abrupt("return");case 3:return v.delegateYield(w.entries(),"t0",4);case 4:case "end":return v.stop()}}, 1254u,this)})},{key:"removeByKey",value:function(t,u){this.rangeMapping.get(t).delete(u)}},{key:"getByKey",value:function(t,u){var w;return null===(w=this.rangeMapping.get(t))||void 0===w?void 0:w.get(u)}},{key:"updateVerticesFromSheet",value:function(t,u){var w,v=this,C=[],y=A(this.entriesFromSheet(t));try{for(y.s();!(w=y.n()).done;){var z=D(w.value,2),E=z[0],H=u(E,z[1]);void 0!==H&&(this.removeByKey(t,E),C.push(H))}}catch(G){y.e(G)}finally{y.f()}
1254return C.forEach(function(G){v.setRange(G.vertex)}),{verticesWithChangedSize:C.filter(function(G){return G.changedSize}).map(function(G){return G.vertex})}}}], 1255p(f.prototype,n),Object.defineProperty(f,"prototype",{writable:!1}),f}()},function(g,b,a){function F(k){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(k)}function B(){function k(Q,M,T){return Object.defineProperty(Q,M,{value:T,enumerable:!0,configurable:!0,writable:!0}),Q[M]}function f(Q,M,T,Z){M=Object.create((M&&M.prototype instanceof 1256l?M:l).prototype);Z=new y(Z||[]);return M._invoke=function(L,U,V){var Y="suspendedStart";return function(aa,W){if("executing"===Y)throw Error("Generator is already running");if("completed"===Y){if("throw"===aa)throw W;return E()}V.method=aa;for(V.arg=W;;){if(aa=V.delegate)if(aa=w(aa,V)){if(aa===R)continue;return aa}if("next"===V.method)V.sent=V._sent=V.arg;else if("throw"===V.method){if("suspendedStart"===Y)throw Y="completed",V.arg;V.dispatchException(V.arg)}else"return"===V.method&&V.abrupt("return", 1257V.arg);Y="executing";aa=n(L,U,V);if("normal"===aa.type){if(Y=V.done?"completed":"suspendedYield",aa.arg===R)continue;return{value:aa.arg,done:V.done}}"throw"===aa.type&&(Y="completed",V.method="throw",V.arg=aa.arg)}}}(Q,T,Z),M}function n(Q,M,T){try{return{type:"normal",arg:Q.call(M,T)}}catch(Z){return{type:"throw",arg:Z}}}function l(){}function r(){}function m(){}function t(Q){["next","throw","return"].forEach(function(M){k(Q,M,function(T){return this._invoke(M,T)})})}function u(Q,M){var T;this._invoke= 1258function(Z,L){function U(){return new M(function(V,Y){!function fa(W,ca,ia,ba){W=n(Q[W],Q,ca);if("throw"!==W.type){var ja=W.arg;return(W=ja.value)&&"object"==F(W)&&I.call(W,"__await")?M.resolve(W.__await).then(function(qa){fa("next",qa,ia,ba)},function(qa){fa("throw",qa,ia,ba)}):M.resolve(W).then(function(qa){ja.value=qa;ia(ja)},function(qa){return fa("throw",qa,ia,ba)})}ba(W.arg)}(Z,L,V,Y)})}return T=T?T.then(U,U):U()}}function w(Q,M){var T=Q.iterator[M.method];if(void 0===T){if(M.delegate=null, 1259"throw"===M.method){if(Q.iterator.return&&(M.method="return",M.arg=void 0,w(Q,M),"throw"===M.method))return R;M.method="throw";M.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}T=n(T,Q.iterator,M.arg);return"throw"===T.type?(M.method="throw",M.arg=T.arg,M.delegate=null,R):(T=T.arg)?T.done?(M[Q.resultName]=T.value,M.next=Q.nextLoc,"return"!==M.method&&(M.method="next",M.arg=void 0),M.delegate=null,R):T:(M.method="throw",M.arg=new TypeError("iterator result is not an object"), 1260M.delegate=null,R)}function v(Q){var M={tryLoc:Q[0]};1 in Q&&(M.catchLoc=Q[1]);2 in Q&&(M.finallyLoc=Q[2],M.afterLoc=Q[3]);this.tryEntries.push(M)}function C(Q){var M=Q.completion||{};M.type="normal";delete M.arg;Q.completion=M}function y(Q){this.tryEntries=[{tryLoc:"root"}];Q.forEach(v,this);this.reset(!0)}function z(Q){if(Q){var M=Q[J];if(M)return M.call(Q);if("function"==typeof Q.next)return Q;if(!isNaN(Q.length)){var T=-1;M=function L(){for(;++T<Q.length;)if(I.call(Q,T))return L.value=Q[T],L.done= 1261!1,L;return L.value=void 0,L.done=!0,L};return M.next=M}}return{next:E}}function E(){return{value:void 0,done:!0}}B=function(){return H};var H={},G=Object.prototype,I=G.hasOwnProperty,K="function"==typeof Symbol?Symbol:{},J=K.iterator||"@@iterator",P=K.asyncIterator||"@@asyncIterator",S=K.toStringTag||"@@toStringTag";try{k({},"")}catch(Q){k=function(M,T,Z){return M[T]=Z}}H.wrap=f;var R={};K={};k(K,J,function(){return this});var O=Object.getPrototypeOf;(O=O&&O(O(z([]))))&&O!==G&&I.call(O,J)&&(K=O); 1262var N=m.prototype=l.prototype=Object.create(K);return r.prototype=m,k(N,"constructor",m),k(m,"constructor",r),r.displayName=k(m,S,"GeneratorFunction"),H.isGeneratorFunction=function(Q){Q="function"==typeof Q&&Q.constructor;return!!Q&&(Q===r||"GeneratorFunction"===(Q.displayName||Q.name))},H.mark=function(Q){return Object.setPrototypeOf?Object.setPrototypeOf(Q,m):(Q.__proto__=m,k(Q,S,"GeneratorFunction")),Q.prototype=Object.create(N),Q},H.awrap=function(Q){return{__await:Q}},t(u.prototype),k(u.prototype, 1263P,function(){return this}),H.AsyncIterator=u,H.async=function(Q,M,T,Z,L){void 0===L&&(L=Prom
1263ise);var U=new u(f(Q,M,T,Z),L);return H.isGeneratorFunction(M)?U:U.next().then(function(V){return V.done?V.value:U.next()})},t(N),k(N,S,"Generator"),k(N,J,function(){return this}),k(N,"toString",function(){return"[object Generator]"}),H.keys=function(Q){var M=[],T;for(T in Q)M.push(T);return M.reverse(),function L(){for(;M.length;){var U=M.pop();if(U in Q)return L.value=U,L.done=!1,L}return L.done=!0,L}},H.values= 1264z,y.prototype={constructor:y,reset:function(Q){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!Q)for(var M in this)"t"===M.charAt(0)&&I.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=void 0)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if("throw"===Q.type)throw Q.arg;return this.rval},dispatchException:function(Q){function M(aa,W){return U.type="throw",U.arg=Q,T.next=aa,W&&(T.method= 1265"next",T.arg=void 0),!!W}if(this.done)throw Q;for(var T=this,Z=this.tryEntries.length-1;0<=Z;--Z){var L=this.tryEntries[Z],U=L.completion;if("root"===L.tryLoc)return M("end");if(L.tryLoc<=this.prev){var V=I.call(L,"catchLoc"),Y=I.call(L,"finallyLoc");if(V&&Y){if(this.prev<L.catchLoc)return M(L.catchLoc,!0);if(this.prev<L.finallyLoc)return M(L.finallyLoc)}else if(V){if(this.prev<L.catchLoc)return M(L.catchLoc,!0)}else{if(!Y)throw Error("try statement without catch or finally");if(this.prev<L.finallyLoc)return M(L.finallyLoc)}}}}, 1266abrupt:function(Q,M){for(var T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T];if(Z.tryLoc<=this.prev&&I.call(Z,"finallyLoc")&&this.prev<Z.finallyLoc){var L=Z;break}}L&&("break"===Q||"continue"===Q)&&L.tryLoc<=M&&M<=L.finallyLoc&&(L=null);T=L?L.completion:{};return T.type=Q,T.arg=M,L?(this.method="next",this.next=L.finallyLoc,R):this.complete(T)},complete:function(Q,M){if("throw"===Q.type)throw Q.arg;return"break"===Q.type||"continue"===Q.type?this.next=Q.arg:"return"===Q.type?(this.rval= 1267this.arg=Q.arg,this.method="return",this.next="end"):"normal"===Q.type&&M&&(this.next=M),R},finish:function(Q){for(var M=this.tryEntries.length-1;0<=M;--M){var T=this.tryEntries[M];if(T.finallyLoc===Q)return this.complete(T.completion,T.afterLoc),C(T),R}},catch:function(Q){for(var M=this.tryEntries.length-1;0<=M;--M){var T=this.tryEntries[M];if(T.tryLoc===Q){Q=T.completion;if("throw"===Q.type){var Z=Q.arg;C(T)}return Z}}throw Error("illegal catch attempt");},delegateYield:function(Q,M,T){return this.delegate= 1268{iterator:z(Q),resultName:M,nextLoc:T},"next"===this.method&&(this.arg=void 0),R}},H}function D(k,f){var n="undefined"!=typeof Symbol&&k[Symbol.iterator]||k["@@iterator"];if(!n){if(Array.isArray(k)||(n=function(u,w){if(u){if("string"==typeof u)return A(u,w);var v=Object.prototype.toString.call(u).slice(8,-1);"Object"===v&&u.constructor&&(v=u.constructor.name);if("Map"===v||"Set"===v)return Array.from(u);if("Arguments"===v||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return A(u,w)}}(k))||f&& 1269k&&"number"==typeof k.length){n&&(k=n);var l=0;f=function(){};return{s:f,n:function(){return l>=k.length?{done:!0}:{done:!1,value:k[l++]}},e:function(u){throw u;},f:f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var r,m=!0,t=!1;return{s:function(){n=n.call(k)},n:function(){var u=n.next();return m=u.done,u},e:function(u){t=!0;r=u},f:function(){try{m||null==n.return||n.return()}finally{if(t)throw r; 1270}}}}function A(k,f){(null==f||f>k.length)&&(f=k.length);for(var n=0,l=Array(f);n<f;n++)l[n]=k[n];return l}function x(k,f){if(!(k instanceof f))throw new TypeError("Cannot call a class as a function");}function q(k,f){for(var n=0;n<f.length;n++){var l=f[n];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(k,l.key,l)}}function p(k,f,n){return f&&q(k.prototype,f),n&&q(k,n),Object.defineProperty(k,"prototype",{writable:!1}),k}a.r(b);a.d(b,"SheetMapping", 1271function(){return h});a(3);a(32);a(0);a(2);a(4);a(18);a(36);a(22);a(13);a(26);a(12);a(8);a(9);a(10);a(86);a(87);a(88);a(89);a(25);a(27);a(90);a(62);var e=a(40),c=a(238),d=function(){function k(f,n){x(this,k);this.id=f;this.displayName=n}return p(k,[{key:"canonicalName",get:function(){return this.displayName.toLowerCase()}}]),k}(),h=function(){function k(f){var n=this;x(this,k);this.languages=f;this.mappingFromCanonicalName=new Map;this.mappingFromId=new Map;this.lastSheetId=-1;this.fetch=function(l){var r= 1272n.mappingFromCanonicalName.get(l.toLowerCase());if(void 0===r)throw new e.NoSheetWithNameError(l);return r.id};this.get=function(l){var r;return null===(r=n.mappingFromCanonicalName.get(l.toLowerCase()))||void 0===r?void 0:r.id};this.fetchDisplayName=function(l){return n.fetchSheetById(l).displayName};this.sheetNamePrefix=f.getUITranslation(c.UIElement.NEW_SHEET_PREFIX)}return p(k,[{key:"addSheet",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"".concat(this.sheetNamePrefix).concat(this.lastSheetId+ 12732),n=f.toLowerCase();if(this.mappingFromCanonicalName.has(n))throw new e.SheetNameAlreadyTakenError(f);this.lastSheetId++;f=new d(this.lastSheetId,f);return this.store(f),f.id}},{key:"removeSheet",value:function(f){var n=this.fetchSheetById(f);f==this.lastSheetId&&--this.lastSheetId;this.mappingFromCanonicalName.delete(n.canonicalName);this.mappingFromId.delete(n.id)}},{key:"getDisplayName",value:function(f){var n;return null===(n=this.mappingFromId.get(f))||void 0===n?void 0:n.displayName}},{key:"displayNames", 1274value:B().mark(function n(){var l,r,m;return B().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:l=D(this.mappingFromCanonicalName.values()),t.prev=1,l.s();case 3:if((r=l.n()).done){t.next=9;break}return m=r.value,t.next=7,m.displayName;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),l.e(t.t0);case 14:return t.prev=14,l.f(),t.finish(14);case 17:case "end":return t.stop()}},n,this,[[1,11,14,17]])})},{key:"numberOfSheets",value:function(){return this.mappingFromCanonicalName.size}}, 1275{key:"hasSheetWithId",value:function(n){return this.mappingFromId.has(n)}},{key:"hasSheetWithName",value:function(n){return this.mappingFromCanonicalName.has(n.toLowerCase())}},{key:"renameSheet",value:function(n,l){n=this.fetchSheetById(n);var r=n.displayName;if(r!==l){var m=this.mappingFromCanonicalName.get(l.toLowerCase());
1275if(void 0!==m&&m.id!==n.id)throw new e.SheetNameAlreadyTakenError(l);return this.mappingFromCanonicalName.delete(n.canonicalName),n.displayName=l,this.store(n),r}}},{key:"sheetNames", 1276value:function(){return Array.from(this.mappingFromId.values()).map(function(n){return n.displayName})}},{key:"store",value:function(n){this.mappingFromId.set(n.id,n);this.mappingFromCanonicalName.set(n.canonicalName,n)}},{key:"fetchSheetById",value:function(n){var l=this.mappingFromId.get(n);if(void 0===l)throw new e.NoSheetWithIdError(n);return l}}]),k}()},function(g,b,a){function F(c,d){var h="undefined"!=typeof Symbol&&c[Symbol.iterator]||c["@@iterator"];if(!h){if(Array.isArray(c)||(h=function(r, 1277m){if(r){if("string"==typeof r)return B(r,m);var t=Object.prototype.toString.call(r).slice(8,-1);"Object"===t&&r.constructor&&(t=r.constructor.name);if("Map"===t||"Set"===t)return Array.from(r);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return B(r,m)}}(c))||d&&c&&"number"==typeof c.length){h&&(c=h);var k=0;d=function(){};return{s:d,n:function(){return k>=c.length?{done:!0}:{done:!1,value:c[k++]}},e:function(r){throw r;},f:d}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1278}var f,n=!0,l=!1;return{s:function(){h=h.call(c)},n:function(){var r=h.next();return n=r.done,r},e:function(r){l=!0;f=r},f:function(){try{n||null==h.return||h.return()}finally{if(l)throw f;}}}}function B(c,d){(null==d||d>c.length)&&(d=c.length);for(var h=0,k=Array(d);h<d;h++)k[h]=c[h];return k}function D(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}function A(c){return new e(Object.assign({}, 1279c.functions),Object.assign({},c.errors),Object.assign({},c.ui))}a.r(b);a.d(b,"TranslationPackage",function(){return e});a.d(b,"buildTranslationPackage",function(){return A});a(93);a(105);a(0);a(53);a(385);a(3);a(54);a(2);a(4);a(256);a(13);a(26);a(22);a(12);a(8);a(9);a(10);var x=a(24),q=a(40),p=a(238),e=function(){function c(h,k,f){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");!0;this.functions=h;this.errors=k;this.ui=f;this._protectedTranslations={VERSION:"VERSION"}; 1280this.checkUI();this.checkErrors();this.checkFunctionTranslations(this.functions);Object.assign(this.functions,this._protectedTranslations)}var d;return d=[{key:"extendFunctions",value:function(h){this.checkFunctionTranslations(h);Object.assign(this.functions,h)}},{key:"buildFunctionMapping",value:function(){var h=this;return Object.keys(this.functions).reduce(function(k,f){return k[h.functions[f]]=f,k},{})}},{key:"buildErrorMapping",value:function(){var h=this;return Object.keys(this.errors).reduce(function(k, 1281f){return k[h.errors[f]]=f,k},{})}},{key:"isFunctionTranslated",value:function(h){return void 0!==this.functions[h]}},{key:"getFunctionTranslations",value:function(h){var k,f=[];h=F(h);try{for(h.s();!(k=h.n()).done;){var n=k.value;this.isFunctionTranslated(n)&&f.push(this.functions[n])}}catch(l){h.e(l)}finally{h.f()}return f}},{key:"getFunctionTranslation",value:function(h){var k=this.functions[h];if(void 0===k)throw new q.MissingTranslationError("functions.".concat(h));return k}},{key:"getMaybeFunctionTranslation", 1282value:function(h){return this.functions[h]}},{key:"getErrorTranslation",value:function(h){if(h===x.ErrorType.LIC)return"#".concat(x.ErrorType.LIC,"!");var k=this.errors[h];if(void 0===k)throw new q.MissingTranslationError("errors.".concat(h));return k}},{key:"getUITranslation",value:function(h){var k=this.ui[h];if(void 0===k)throw new q.MissingTranslationError("ui.".concat(h));return k}},{key:"checkUI",value:function(){for(var h=0,k=Object.values(p.UIElement);h<k.length;h++){var f=k[h];if(!(f in this.ui))throw new q.MissingTranslationError("ui.".concat(f)); 1283}}},{key:"checkErrors",value:function(){for(var h=0,k=Object.values(x.ErrorType);h<k.length;h++){var f=k[h];if(!(f in this.errors)&&f!==x.ErrorType.LIC)throw new q.MissingTranslationError("errors.".concat(f));}}},{key:"checkFunctionTranslations",value:function(h){var k;h=new Set(Object.getOwnPropertyNames(h));var f=F(Object.getOwnPropertyNames(this._protectedTranslations));try{for(f.s();!(k=f.n()).done;){var n=k.value;if(h.has(n))throw new q.ProtectedFunctionTranslationError(n);}}catch(l){f.e(l)}finally{f.f()}}}], 1284D(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}()},function(g,b,a){function F(d){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}function B(){function d(O,N,Q){return Object.defineProperty(O,N,{value:Q,enumerable:!0,configurable:!0,writable:!0}),O[N]}function h(O,N,Q,M){N=Object.create((N&&N.prototype instanceof 1285f?N:f).prototype);M=new v(M||[]);return N._invoke=function(T,Z,L){var U="suspendedStart";return function(V,Y){if("executing"===U)throw Error("Generator is already running");if("completed"===U){if("throw"===V)throw Y;return y()}L.method=V;for(L.arg=Y;;){if(V=L.delegate)if(V=t(V,L)){if(V===P)continue;return V}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if("suspendedStart"===U)throw U="completed",L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg); 1286U="executing";V=k(T,Z,L);if("normal"===V.type){if(U=L.done?"completed":"suspendedYield",V.arg===P)continue;return{value:V.arg,done:L.done}}"throw"===V.type&&(U="completed",L.method="throw",L.arg=V.arg)}}}(O,Q,M),N}function k(O,N,Q){try{return{type:"normal",arg:O.call(N,Q)}}catch(M){return{type:"throw",arg:M}}}function f(){}function n(){}function l(){}function r(O){["next","throw","return"].forEach(function(N){d(O,N,function(Q){return this._invoke(N,Q)})})}function m(O,N){var Q;this._invoke=function(M, 1287T){function Z(){return new N(function(L,U){!function ia(Y,aa,W,ca){Y=k(O[Y],O,aa);if("throw"!==Y.type){var ba=Y.arg;return(Y=ba.value)&&"object"==F(Y)&&H.call(Y,"__await")?N.resolve(Y.__await).then(function(fa){ia("next",fa,W,ca)},function(fa){ia("throw",fa,W,ca)}):N.resolve(Y).then(function(fa){ba.value=fa;W(ba)},function(fa){return ia("throw",fa,W,ca)})}ca(Y.arg)}(M,T,L,U)})}return Q=Q?Q.then(Z,Z):Z()}}function t(O,N){var Q=O.iterator[N.method];if(void 0===Q){if(N.delegate=null,"throw"===N.method){if(O.iterator.return&& 1288(N.method="return",N.arg=void 0,t(O,N),"throw"===N.method))return P;N.method="throw";N.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}Q=k(Q,O.iterator,N.arg);return"throw"===Q.type?(N.method="throw",N.arg=Q.arg,N.delegate=null,P):(Q=Q.arg)?Q.done?(N[O.resultName]=Q.value,N.next=O.nextLoc,"return"!==N.method&&(N.method="next",N.arg=void 0),N.delegate=null,P):Q:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,P)}function u(O){var N= 1289{tryLoc:O[0]};1 in O&&(N.catchLoc=O[1]);2 in O&&(N.finallyLoc=O[2],N.afterLoc=O[3]);this.tryEntries.push(N)}function w(O){var N=O.completion||{};N.type="normal";delete N.arg;O.completion=N}function v(O){this.tryEntries=[{tryLoc:"root"}];O.forEach(u,this);this.reset(!0)}function C(O){if(O){var N=O[I];if(N)return N.call(O);if("function"==typeof O.next)return O;if(!isNaN(O.length)){var Q=-1;N=function T(){for(;++Q<O.length;)if(H.call(O,Q))return T.value=O[Q],T.done=!1,T;return T.value=void 0,T.done= 1290!0,T};return N.next=N}}return{next:y}}function y(){return{value:void 0,done:!0}}B=function(){return z};var z={},E=Object.prototype,H=E.hasOwnProperty,G="function"==typeof Symbol?Symbol:{},I=G.iterator||"@@iterator",K=G.asyncIterator||"@@asyncIterator",J=G.toStringTag||"@@toStringTag";try{d({},"")}catch(O){d=function(N,Q,M){return N[Q]=M}}z.wrap=h;var P={};G={};d(G,I,function(){return this});var S=Object.getPrototypeOf;(S=S&&S(S(C([]))))&&S!==E&&H.call(S,I)&&(G=S);var R=l.prototype=f.prototype=Object.create(G); 1291return n.prototype=l,d(R,"constructor",l),d(l,"constructor",n),n.displayName=d(l,J,"GeneratorFunction"),z.isGeneratorFunction=function(O){O="function"==typeof O&&O.constructor;return!!O&&(O===n||"GeneratorFunction"===(O.displayName||O.name))},z.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,l):(O.__proto__=l,d(O,J,"GeneratorFunction")),O.prototype=Object.create(R),O},z.awrap=function(O){return{__await:O}},r(m.prototype),d(m.prototype,K,function(){return this}),z.AsyncIterator= 1292m,z.async=function(O,N,Q,M,T){void 0===T&&(T=Promise);var Z=new m(h(O,N,Q,M),T);return z.isGeneratorFunction(N)?Z:Z.next().then(function(L){return L.done?L.value:Z.next()})},r(R),d(R,J,"Generator"),d(R,I,function(){return this}),d(R,"toString",function(){return"[object Generator]"}),z.keys=function(O){var N=[],Q;for(Q in O)N.push(Q);return N.reverse(),function T(){for(;N.length;){var Z=N.pop();if(Z in O)return T.value=Z,T.done=!1,T}return T.done=!0,T}},z.values=C,v.prototype={constructor:v,reset:function(O){if(this.prev= 12930,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
1293h(w),!O)for(var N in this)"t"===N.charAt(0)&&H.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=void 0)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if("throw"===O.type)throw O.arg;return this.rval},dispatchException:function(O){function N(V,Y){return Z.type="throw",Z.arg=O,Q.next=V,Y&&(Q.method="next",Q.arg=void 0),!!Y}if(this.done)throw O;for(var Q=this, 1294M=this.tryEntries.length-1;0<=M;--M){var T=this.tryEntries[M],Z=T.completion;if("root"===T.tryLoc)return N("end");if(T.tryLoc<=this.prev){var L=H.call(T,"catchLoc"),U=H.call(T,"finallyLoc");if(L&&U){if(this.prev<T.catchLoc)return N(T.catchLoc,!0);if(this.prev<T.finallyLoc)return N(T.finallyLoc)}else if(L){if(this.prev<T.catchLoc)return N(T.catchLoc,!0)}else{if(!U)throw Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return N(T.finallyLoc)}}}},abrupt:function(O,N){for(var Q= 1295this.tryEntries.length-1;0<=Q;--Q){var M=this.tryEntries[Q];if(M.tryLoc<=this.prev&&H.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var T=M;break}}T&&("break"===O||"continue"===O)&&T.tryLoc<=N&&N<=T.finallyLoc&&(T=null);Q=T?T.completion:{};return Q.type=O,Q.arg=N,T?(this.method="next",this.next=T.finallyLoc,P):this.complete(Q)},complete:function(O,N){if("throw"===O.type)throw O.arg;return"break"===O.type||"continue"===O.type?this.next=O.arg:"return"===O.type?(this.rval=this.arg=O.arg,this.method= 1296"return",this.next="end"):"normal"===O.type&&N&&(this.next=N),P},finish:function(O){for(var N=this.tryEntries.length-1;0<=N;--N){var Q=this.tryEntries[N];if(Q.finallyLoc===O)return this.complete(Q.completion,Q.afterLoc),w(Q),P}},catch:function(O){for(var N=this.tryEntries.length-1;0<=N;--N){var Q=this.tryEntries[N];if(Q.tryLoc===O){O=Q.completion;if("throw"===O.type){var M=O.arg;w(Q)}return M}}throw Error("illegal catch attempt");},delegateYield:function(O,N,Q){return this.delegate={iterator:C(O), 1297resultName:N,nextLoc:Q},"next"===this.method&&(this.arg=void 0),P}},z}function D(d,h){if(!(d=function(k){if(Array.isArray(k))return k}(d)||function(k,f){var n=null==k?null:"undefined"!=typeof Symbol&&k[Symbol.iterator]||k["@@iterator"];if(null!=n){var l,r=[],m=!0,t=!1;try{for(n=n.call(k);!(m=(l=n.next()).done)&&(r.push(l.value),!f||r.length!==f);m=!0);}catch(w){t=!0;var u=w}finally{try{m||null==n.return||n.return()}finally{if(t)throw u;}}return r}}(d,h)||x(d,h)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1298return d}function A(d,h){var k="undefined"!=typeof Symbol&&d[Symbol.iterator]||d["@@iterator"];if(!k){if(Array.isArray(d)||(k=x(d))||h&&d&&"number"==typeof d.length){k&&(d=k);var f=0;h=function(){};return{s:h,n:function(){return f>=d.length?{done:!0}:{done:!1,value:d[f++]}},e:function(m){throw m;},f:h}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var n,l=!0,r=!1;
1298return{s:function(){k=k.call(d)}, 1299n:function(){var m=k.next();return l=m.done,m},e:function(m){r=!0;n=m},f:function(){try{l||null==k.return||k.return()}finally{if(r)throw n;}}}}function x(d,h){if(d){if("string"==typeof d)return q(d,h);var k=Object.prototype.toString.call(d).slice(8,-1);return"Object"===k&&d.constructor&&(k=d.constructor.name),"Map"===k||"Set"===k?Array.from(d):"Arguments"===k||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?q(d,h):void 0}}function q(d,h){(null==h||h>d.length)&&(h=d.length);for(var k=0,f=Array(h);k< 1300h;k++)f[k]=d[k];return f}function p(d,h){for(var k=0;k<h.length;k++){var f=h[k];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(d,f.key,f)}}a.r(b);a.d(b,"SparseStrategy",function(){return c});a(3);a(32);a(0);a(2);a(4);a(27);a(13);a(26);a(22);a(12);a(8);a(9);a(10);a(86);a(87);a(88);a(89);a(25);a(90);a(62);var e=a(24),c=function(){function d(k,f){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");!0;this.width=k;this.height= 1301f;this.mapping=new Map}var h;return h=[{key:"getCell",value:function(k){var f;return null===(f=this.mapping.get(k.col))||void 0===f?void 0:f.get(k.row)}},{key:"setCell",value:function(k,f){this.width=Math.max(this.width,k.col+1);this.height=Math.max(this.height,k.row+1);var n=this.mapping.get(k.col);n||(n=new Map,this.mapping.set(k.col,n));n.set(k.row,f)}},{key:"has",value:function(k){var f;return!(null===(f=this.mapping.get(k.col))||void 0===f||!f.get(k.row))}},{key:"getHeight",value:function(){return this.height}}, 1302{key:"getWidth",value:function(){return this.width}},{key:"removeCell",value:function(k){var f;null===(f=this.mapping.get(k.col))||void 0===f||f.delete(k.row)}},{key:"addRows",value:function(k,f){this.mapping.forEach(function(n){var l=new Map;n.forEach(function(r,m){m>=k&&(l.set(m+f,r),n.delete(m))});l.forEach(function(r,m){n.set(m,r)})});this.height+=f}},{key:"addColumns",value:function(k,f){var n=this,l=new Map;this.mapping.forEach(function(r,m){m>=k&&(l.set(m+f,r),n.mapping.delete(m))});l.forEach(function(r, 1303m){n.mapping.set(m,r)});this.width+=f}},{key:"removeRows",value:function(k){this.mapping.forEach(function(f){var n=new Map;f.forEach(function(l,r){r>=k.rowStart&&(f.delete(r),r>k.rowEnd&&n.set(r-k.numberOfRows,l))});n.forEach(function(l,r){f.set(r,l)})});this.height=Math.max(0,this.height-Math.max(0,Math.min(this.height-1,k.rowEnd)-k.rowStart+1))}},{key:"removeColumns",value:function(k){var f=this,n=new Map;this.mapping.forEach(function(l,r){r>=k.columnStart&&(f.mapping.delete(r),r>k.columnEnd&&n.set(r- 1304k.numberOfColumns,l))});n.forEach(function(l,r){f.mapping.set(r,l)});this.width=Math.max(0,this.width-Math.max(0,Math.min(this.width-1,k.columnEnd)-k.columnStart+1))}},{key:"getEntries",value:B().mark(function n(f){var l,r,m,t,u,w,v,C,y,z;return B().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:l=A(this.mapping),E.prev=1,l.s();case 3:if((r=l.n()).done){E.next=24;break}m=D(r.value,2);t=m[0];u=m[1];w=A(u);E.prev=6;w.s();case 8:if((v=w.n()).done){E.next=14;break}return C=D(v.value,2),y=C[0],z= 1305C[1],E.next=12,[Object(e.simpleCellAddress)(f,t,y),z];case 12:E.next=8;break;case 14:E.next=19;break;case 16:E.prev=16,E.t0=E.catch(6),w.e(E.t0);case 19:return E.prev=19,w.f(),E.finish(19);case 22:E.next=3;break;case 24:E.next=29;break;case 26:E.prev=26,E.t1=E.catch(1),l.e(E.t1);case 29:return E.prev=29,l.f(),E.finish(29);case 32:case "end":return E.stop()}},n,this,[[1,26,29,32],[6,16,19,22]])})},{key:"verticesFromColumn",value:B().mark(function l(n){var r,m,t,u,w;return B().wrap(function(v){for(;;)switch(v.prev= 1306v.next){case 0:if(void 0!==(r=this.mapping.get(n))){v.next=3;break}return v.abrupt("return");case 3:m=A(r),v.prev=4,m.s();case 6:if((t=m.n()).done){v.next=12;break}return(u=D(t.value,2))[0],w=u[1],v.next=10,w;case 10:v.next=6;break;case 12:v.next=17;break;case 14:v.prev=14,v.t0=v.catch(4),m.e(v.t0);case 17:return v.prev=17,m.f(),v.finish(17);case 20:case "end":return v.stop()}},l,this,[[4,14,17,20]])})},{key:"verticesFromRow",value:B().mark(function r(l){var m,t,u,w;return B().wrap(function(v){for(;;)switch(v.prev= 1307v.next){case 0:m=A(this.mapping.values()),v.prev=1,m.s();case 3:if((t=m.n()).done){v.next=11;break}if(u=t.value,void 0===(w=u.get(l))){v.next=9;break}return v.next=9,w;case 9:v.next=3;break;case 11:v.next=16;break;case 13:v.prev=13,v.t0=v.catch(1),m.e(v.t0);case 16:return v.prev=16,m.f(),v.finish(16);case 19:case "end":return v.stop()}},r,this,[[1,13,16,19]])})}
1307,{key:"verticesFromColumnsSpan",value:B().mark(function m(r){var t,u,w,v,C,y,z,E;return B().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:t= 1308A(r.columns()),H.prev=1,t.s();case 3:if((u=t.n()).done){H.next=27;break}if(w=u.value,void 0!==(v=this.mapping.get(w))){H.next=8;break}return H.abrupt("continue",25);case 8:C=A(v),H.prev=9,C.s();case 11:if((y=C.n()).done){H.next=17;break}return(z=D(y.value,2))[0],E=z[1],H.next=15,E;case 15:H.next=11;break;case 17:H.next=22;break;case 19:H.prev=19,H.t0=H.catch(9),C.e(H.t0);case 22:return H.prev=22,C.f(),H.finish(22);case 25:H.next=3;break;case 27:H.next=32;break;case 29:H.prev=29,H.t1=H.catch(1),t.e(H.t1); 1309case 32:return H.prev=32,t.f(),H.finish(32);case 35:case "end":return H.stop()}},m,this,[[1,29,32,35],[9,19,22,25]])})},{key:"verticesFromRowsSpan",value:B().mark(function t(m){var u,w,v,C,y,z,E;return B().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:u=A(this.mapping.values()),H.prev=1,u.s();case 3:if((w=u.n()).done){H.next=26;break}v=w.value;C=A(m.rows());H.prev=6;C.s();case 8:if((y=C.n()).done){H.next=16;break}if(z=y.value,void 0===(E=v.get(z))){H.next=14;break}return H.next=14,E;case 14:H.next= 13108;break;case 16:H.next=21;break;case 18:H.prev=18,H.t0=H.catch(6),C.e(H.t0);case 21:return H.prev=21,C.f(),H.finish(21);case 24:H.next=3;break;case 26:H.next=31;break;case 28:H.prev=28,H.t1=H.catch(1),u.e(H.t1);case 31:return H.prev=31,u.f(),H.finish(31);case 34:case "end":return H.stop()}},t,this,[[1,28,31,34],[6,18,21,24]])})},{key:"entriesFromRowsSpan",value:B().mark(function u(t){var w,v,C,y,z,E,H,G,I;return B().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:w=A(this.mapping.entries()), 1311K.prev=1,w.s();case 3:if((v=w.n()).done){K.next=26;break}C=D(v.value,2);y=C[0];z=C[1];E=A(t.rows());K.prev=6;E.s();case 8:if((H=E.n()).done){K.next=16;break}if(G=H.value,void 0===(I=z.get(G))){K.next=14;break}return K.next=14,[Object(e.simpleCellAddress)(t.sheet,y,G),I];case 14:K.next=8;break;case 16:K.next=21;break;case 18:K.prev=18,K.t0=K.catch(6),E.e(K.t0);case 21:return K.prev=21,E.f(),K.finish(21);case 24:K.next=3;break;case 26:K.next=31;break;case 28:K.prev=28,K.t1=K.catch(1),w.e(K.t1);case 31:return K.prev= 131231,w.f(),K.finish(31);case 34:case "end":return K.stop()}},u,this,[[1,28,31,34],[6,18,21,24]])})},{key:"entriesFromColumnsSpan",value:B().mark(function w(u){var v,C,y,z,E,H,G,I,K;return B().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:v=A(u.columns()),J.prev=1,v.s();case 3:if((C=v.n()).done){J.next=26;break}if(y=C.value,void 0===(z=this.mapping.get(y))){J.next=24;break}E=A(z.entries());J.prev=8;E.s();case 10:if((H=E.n()).done){J.next=16;break}return G=D(H.value,2),I=G[0],K=G[1],J.next=14, 1313[Object(e.simpleCellAddress)(u.sheet,y,I),K];case 14:J.next=10;break;case 16:J.next=21;break;case 18:J.prev=18,J.t0=J.catch(8),E.e(J.t0);case 21:return J.prev=21,E.f(),J.finish(21);case 24:J.next=3;break;case 26:J.next=31;break;case 28:J.prev=28,J.t1=J.catch(1),v.e(J.t1);case 31:return J.prev=31,v.f(),J.finish(31);case 34:case "end":return J.stop()}},w,this,[[1,28,31,34],[8,18,21,24]])})},{key:"vertices",value:B().mark(function w(){var v,C,y,z,E,H,G,I;return B().wrap(function(K){for(;;)switch(K.prev= 1314K.next){case 0:v=A(this.mapping),K.prev=1,v.s();case 3:if((C=v.n()).done){K.next=25;break}(y=D(C.value,2))[0];z=y[1];E=A(z);K.prev=6;E.s();case 8:if((H=E.n()).done){K.next=15;break}if((G=D(H.value,2))[0],void 0===(I=G[1])){K.next=13;break}return K.next=13,I;case 13:K.next=8;break;case 15:K.next=20;break;case 17:K.prev=17,K.t0=K.catch(6),E.e(K.t0);case 20:return K.prev=20,E.f(),K.finish(20);case 23:K.next=3;break;case 25:K.next=30;break;case 27:K.prev=27,K.t1=K.catch(1),v.e(K.t1);case 30:return K.prev= 131530,v.f(),K.finish(30);case 33:case "end":return K.stop()}},w,this,[[1,27,30,33],[6,17,20,23]])})}],p(d.prototype,h),Object.defineProperty(d,"prototype",{writable:!1}),d}()},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(){function e(S,R,O){return Object.defineProperty(S,R,{value:O,enumerable:!0, 1316configurable:!0,writable:!0}),S[R]}function c(S,R,O,N){R=Object.create((R&&R.prototype instanceof h?R:h).prototype);N=new u(N||[]);return R._invoke=function(Q,M,T){var Z="suspendedStart";return function(L,U){if("executing"===Z)throw Error("Generator is already running");if("completed"===Z){if("throw"===L)throw U;return v()}T.method=L;for(T.arg=U;;){if(L=T.delegate)if(L=r(L,T)){if(L===K)continue;return L}if("next"===T.method)T.sent=T._sent=T.arg;else if("throw"===T.method){if("suspendedStart"===Z)throw Z= 1317"completed",T.arg;T.dispatchException(T.arg)}else"return"===T.method&&T.abrupt("return",T.arg);Z="executing";L=d(Q,M,T);if("normal"===L.type){if(Z=T.done?"completed":"suspendedYield",L.arg===K)continue;return{value:L.arg,done:T.done}}"throw"===L.type&&(Z="completed",T.method="throw",T.arg=L.arg)}}}(S,O,N),R}function d(S,R,O){try{return{type:"normal",arg:S.call(R,O)}}catch(N){return{type:"throw",arg:N}}}function h(){}function k(){}function f(){}function n(S){["next","throw","return"].forEach(function(R){e(S, 1318R,function(O){return this._invoke(R,O)})})}function l(S,R){var O;this._invoke=function(N,Q){function M(){return new R(function(T,Z){!function W(U,V,Y,aa){U=d(S[U],S,V);if("throw"!==U.type){var ca=U.arg;return(U=ca.value)&&"object"==F(U)&&z.call(U,"__await")?R.resolve(U.__await).then(function(ia){W("next",ia,Y,aa)},function(ia){W("throw",ia,Y,aa)}):R.resolve(U).then(function(ia){ca.value=ia;Y(ca)},function(ia){return W("throw",ia,Y,aa)})}aa(U.arg)}(N,Q,T,Z)})}return O=O?O.then(M,M):M()}}function r(S, 1319R){var O=S.iterator[R.method];if(void 0===O){if(R.delegate=null,"throw"===R.method){if(S.iterator.return&&
1319(R.method="return",R.arg=void 0,r(S,R),"throw"===R.method))return K;R.method="throw";R.arg=new TypeError("The iterator does not provide a 'throw' method")}return K}O=d(O,S.iterator,R.arg);return"throw"===O.type?(R.method="throw",R.arg=O.arg,R.delegate=null,K):(O=O.arg)?O.done?(R[S.resultName]=O.value,R.next=S.nextLoc,"return"!==R.method&&(R.method="next",R.arg=void 0),R.delegate=null,K):O:(R.method= 1320"throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,K)}function m(S){var R={tryLoc:S[0]};1 in S&&(R.catchLoc=S[1]);2 in S&&(R.finallyLoc=S[2],R.afterLoc=S[3]);this.tryEntries.push(R)}function t(S){var R=S.completion||{};R.type="normal";delete R.arg;S.completion=R}function u(S){this.tryEntries=[{tryLoc:"root"}];S.forEach(m,this);this.reset(!0)}function w(S){if(S){var R=S[H];if(R)return R.call(S);if("function"==typeof S.next)return S;if(!isNaN(S.length)){var O=-1;R=function Q(){for(;++O< 1321S.length;)if(z.call(S,O))return Q.value=S[O],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return R.next=R}}return{next:v}}function v(){return{value:void 0,done:!0}}B=function(){return C};var C={},y=Object.prototype,z=y.hasOwnProperty,E="function"==typeof Symbol?Symbol:{},H=E.iterator||"@@iterator",G=E.asyncIterator||"@@asyncIterator",I=E.toStringTag||"@@toStringTag";try{e({},"")}catch(S){e=function(R,O,N){return R[O]=N}}C.wrap=c;var K={};E={};e(E,H,function(){return this});var J=Object.getPrototypeOf; 1322(J=J&&J(J(w([]))))&&J!==y&&z.call(J,H)&&(E=J);var P=f.prototype=h.prototype=Object.create(E);return k.prototype=f,e(P,"constructor",f),e(f,"constructor",k),k.displayName=e(f,I,"GeneratorFunction"),C.isGeneratorFunction=function(S){S="function"==typeof S&&S.constructor;return!!S&&(S===k||"GeneratorFunction"===(S.displayName||S.name))},C.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,f):(S.__proto__=f,e(S,I,"GeneratorFunction")),S.prototype=Object.create(P),S},C.awrap=function(S){return{__await:S}}, 1323n(l.prototype),e(l.prototype,G,function(){return this}),C.AsyncIterator=l,C.async=function(S,R,O,N,Q){void 0===Q&&(Q=Promise);var M=new l(c(S,R,O,N),Q);return C.isGeneratorFunction(R)?M:M.next().then(function(T){return T.done?T.value:M.next()})},n(P),e(P,I,"Generator"),e(P,H,function(){return this}),e(P,"toString",function(){return"[object Generator]"}),C.keys=function(S){var R=[],O;for(O in S)R.push(O);return R.reverse(),function Q(){for(;R.length;){var M=R.pop();if(M in S)return Q.value=M,Q.done= 1324!1,Q}return Q.done=!0,Q}},C.values=w,u.prototype={constructor:u,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(t),!S)for(var R in this)"t"===R.charAt(0)&&z.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var S=this.tryEntries[0].completion;if("throw"===S.type)throw S.arg;return this.rval},dispatchException:function(S){function R(L,U){return M.type= 1325"throw",M.arg=S,O.next=L,U&&(O.method="next",O.arg=void 0),!!U}if(this.done)throw S;for(var O=this,N=this.tryEntries.length-1;0<=N;--N){var Q=this.tryEntries[N],M=Q.completion;if("root"===Q.tryLoc)return R("end");if(Q.tryLoc<=this.prev){var T=z.call(Q,"catchLoc"),Z=z.call(Q,"finallyLoc");if(T&&Z){if(this.prev<Q.catchLoc)return R(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return R(Q.finallyLoc)}else if(T){if(this.prev<Q.catchLoc)return R(Q.catchLoc,!0)}else{if(!Z)throw Error("try statement without catch or finally"); 1326if(this.prev<Q.finallyLoc)return R(Q.finallyLoc)}}}},abrupt:function(S,R){for(var O=this.tryEntries.length-1;0<=O;--O){var N=this.tryEntries[O];if(N.tryLoc<=this.prev&&z.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var Q=N;break}}Q&&("break"===S||"continue"===S)&&Q.tryLoc<=R&&R<=Q.finallyLoc&&(Q=null);O=Q?Q.completion:{};return O.type=S,O.arg=R,Q?(this.method="next",this.next=Q.finallyLoc,K):this.complete(O)},complete:function(S,R){if("throw"===S.type)throw S.arg;return"break"===S.type||"continue"=== 1327S.type?this.next=S.arg:"return"===S.type?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):"normal"===S.type&&R&&(this.next=R),K},finish:function(S){for(var R=this.tryEntries.length-1;0<=R;--R){var O=this.tryEntries[R];if(O.finallyLoc===S)return this.complete(O.completion,O.afterLoc),t(O),K}},catch:function(S){for(var R=this.tryEntries.length-1;0<=R;--R){var O=this.tryEntries[R];if(O.tryLoc===S){S=O.completion;if("throw"===S.type){var N=S.arg;t(O)}return N}}throw Error("illegal catch attempt"); 1328},delegateYield:function(S,R,O){return this.delegate={iterator:w(S),resultName:R,nextLoc:O},"next"===this.method&&(this.arg=void 0),K}},C}function D(e){var c;(c=function(d){if(Array.isArray(d))return A(d)}(e))||(c="undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"]?Array.from(e):void 0);if(!(e=c||function(d,h){if(d){if("string"==typeof d)return A(d,h);var k=Object.prototype.toString.call(d).slice(8,-1);"Object"===k&&d.constructor&&(k=d.constructor.name);if("Map"===k||"Set"=== 1329k)return Array.from(d);if("Arguments"===k||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return A(d,h)}}(e)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return e}function A(e,c){(null==c||c>e.length)&&(c=e.length);for(var d=0,h=Array(c);d<c;d++)h[d]=e[d];return h}function x(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable= 1330!0);Object.defineProperty(e,h.key,h)}}a.r(b);a.d(b,"DenseStrategy",function(){return p});a(55);a(18);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(22);a(13);a(26);a(12);a(86);a(87);a(88);a(89);a(25);a(27);a(90);a(62);var q=a(24),p=function(){function e(d,h){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");!0;this.width=d;this.height=h;this.mapping=Array(h);for(var k=0;k<h;k++)this.mapping[k]=Array(d)}var c;return c=[{key:"getCell",value:function(d){return this.getCellVertex(d.col, 1331d.row)}},{key:"setCell",value:function(d,h){this.width=Math.max(this.width,d.col+1);this.height=Math.max(this.height,d.row+1);this.mapping[d.row]||(this.mapping[d.row]=Array(this.width));this.mapping[d.row][d.col]=h}},{key:"has",value:function(d){var h=this.mapping[d.row];return!!h&&!!h[d.col]}},{key:"getHeight",value:function(){return this.height}},{key:"getWidth",value:function(){return this.width}},{key:"removeCell",value:function(d){void 0!==this.mapping[d.row]&&delete this.mapping[d.row][d.col]}}, 1332{key:"addRows",value:function(d,h){for(var k,f=[],n=0;n<h;n++)f.push(Array(this.width));(k=this.mapping).splice.apply(k,[d,0].concat(f));this.height+=h}},{key:"addColumns",value:function(d,h){for(var k=0;k<this.height;k++){var f;(f=this.mapping[k]).splice.apply(f,[d,0].concat(D(Array(h))))}this.width+=h}},{key:"removeRows",value:function(d){this.mapping.splice(d.rowStart,d.numberOfRows);this.height=Math.max(0,this.height-Math.max(0,Math.min(this.height-1,d.rowEnd)-d.rowStart+1))}},{key:"removeColumns", 1333value:function(d){for(var h=0;h<this.height;h++)this.mapping[h].splice(d.columnStart,d.numberOfColumns);this.width=Math.max(0,this.width-Math.max(0,Math.min(this.width-1,d.columnEnd)-d.columnStart+1))}}
1333,{key:"getEntries",value:B().mark(function k(h){var f,n,l;return B().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:f=0;case 1:if(!(f<this.height)){r.next=14;break}n=0;case 3:if(!(n<this.width)){r.next=11;break}if(!(l=this.getCellVertex(n,f))){r.next=8;break}return r.next=8,[Object(q.simpleCellAddress)(h, 1334n,f),l];case 8:++n;r.next=3;break;case 11:++f;r.next=1;break;case 14:case "end":return r.stop()}},k,this)})},{key:"verticesFromColumn",value:B().mark(function f(k){var n,l;return B().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:n=0;case 1:if(!(n<this.height)){r.next=9;break}if(!(l=this.getCellVertex(k,n))){r.next=6;break}return r.next=6,l;case 6:++n;r.next=1;break;case 9:case "end":return r.stop()}},f,this)})},{key:"verticesFromRow",value:B().mark(function n(f){var l,r;return B().wrap(function(m){for(;;)switch(m.prev= 1335m.next){case 0:l=0;case 1:if(!(l<this.width)){m.next=9;break}if(!(r=this.getCellVertex(l,f))){m.next=6;break}return m.next=6,r;case 6:++l;m.next=1;break;case 9:case "end":return m.stop()}},n,this)})},{key:"verticesFromColumnsSpan",value:B().mark(function l(n){var r,m,t;return B().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:r=n.columnStart;case 1:if(!(r<=n.columnEnd)){u.next=14;break}m=0;case 3:if(!(m<this.height)){u.next=11;break}if(!(t=this.getCellVertex(r,m))){u.next=8;break}return u.next= 13368,t;case 8:++m;u.next=3;break;case 11:++r;u.next=1;break;case 14:case "end":return u.stop()}},l,this)})},{key:"verticesFromRowsSpan",value:B().mark(function r(l){var m,t,u;return B().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:m=0;case 1:if(!(m<this.width)){w.next=14;break}t=l.rowStart;case 3:if(!(t<=l.rowEnd)){w.next=11;break}if(!(u=this.getCellVertex(m,t))){w.next=8;break}return w.next=8,u;case 8:++t;w.next=3;break;case 11:++m;w.next=1;break;case 14:case "end":return w.stop()}},r,this)})}, 1337{key:"entriesFromRowsSpan",value:B().mark(function m(r){var t,u,w;return B().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:t=0;case 1:if(!(t<this.width)){v.next=14;break}u=r.rowStart;case 3:if(!(u<=r.rowEnd)){v.next=11;break}if(!(w=this.getCellVertex(t,u))){v.next=8;break}return v.next=8,[Object(q.simpleCellAddress)(r.sheet,t,u),w];case 8:++u;v.next=3;break;case 11:++t;v.next=1;break;case 14:case "end":return v.stop()}},m,this)})},{key:"entriesFromColumnsSpan",value:B().mark(function t(m){var u, 1338w,v;return B().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:u=0;case 1:if(!(u<this.height)){C.next=14;break}w=m.columnStart;case 3:if(!(w<=m.columnEnd)){C.next=11;break}if(!(v=this.getCellVertex(w,u))){C.next=8;break}return C.next=8,[Object(q.simpleCellAddress)(m.sheet,w,u),v];case 8:++w;C.next=3;break;case 11:++u;C.next=1;break;case 14:case "end":return C.stop()}},t,this)})},{key:"vertices",value:B().mark(function t(){var u,w,v;return B().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:u= 13390;case 1:if(!(u<this.height)){C.next=14;break}w=0;case 3:if(!(w<this.width)){C.next=11;break}if(!(v=this.getCellVertex(w,u))){C.next=8;break}return C.next=8,v;case 8:++w;C.next=3;break;case 11:++u;C.next=1;break;case 14:case "end":return C.stop()}},t,this)})},{key:"getCellVertex",value:function(t,u){var w;return null===(w=this.mapping[u])||void 0===w?void 0:w[t]}}],x(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}()},function(g,b,a){function F(D,A){for(var x=0;x<A.length;x++){var q= 1340A[x];q.enumerable=q.enumerable||!1;q.configurable=!0;"value"in q&&(q.writable=!0);Object.defineProperty(D,q.key,q)}}a.r(b);a.d(b,"DetailedCellError",function(){return B});var B=function(){function D(x,q,p){var e;if(!(this instanceof D))throw new TypeError("Cannot call a class as a function");!0;this.value=q;this.address=p;this.type=x.type;this.message=null!==(e=x.message)&&void 0!==e?e:""}var A;return A=[{key:"toString",value:function(){return this.value}},{key:"valueOf",value:function(){return this.value}}], 1341F(D.prototype,A),Object.defineProperty(D,"prototype",{writable:!1}),D}()},function(g,b,a){var F;g=a(28);var B=a(35);b=a(114).f;var D=a(138),A=a(73),x=a(260),q=a(94),p=a(262);a=a(112);var e=B("".endsWith),c=B("".slice),d=Math.min;B=p("endsWith");g({target:"String",proto:!0,forced:!(!a&&!B&&(F=b(String.prototype,"endsWith"),F&&!F.writable))&&!B},{endsWith:function(h){var k=A(q(this));x(h);var f=1<arguments.length?arguments[1]:void 0,n=k.length;f=void 0===f?n:d(D(f),n);n=A(h);return e?e(k,n,f):c(k,f- 1342n.length,f)===n}})},function(g,b,a){function F(k,f){if(!(k=function(n){if(Array.isArray(n))return n}(k)||function(n,l){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var m,t=[],u=!0,w=!1;try{for(r=r.call(n);!(u=(m=r.next()).done)&&(t.push(m.value),!l||t.length!==l);u=!0);}catch(C){w=!0;var v=C}finally{try{u||null==r.return||r.return()}finally{if(w)throw v;}}return t}}
1342(k,f)||B(k,f)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1343return k}function B(k,f){if(k){if("string"==typeof k)return D(k,f);var n=Object.prototype.toString.call(k).slice(8,-1);return"Object"===n&&k.constructor&&(n=k.constructor.name),"Map"===n||"Set"===n?Array.from(k):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(k,f):void 0}}function D(k,f){(null==f||f>k.length)&&(f=k.length);for(var n=0,l=Array(f);n<f;n++)l[n]=k[n];return l}function A(k,f,n,l){l=n.stringifyDateTime(l.numberToSimpleDateTime(k),f);if(void 0!==l)return l;n=n.stringifyDuration(Object(d.numberToSimpleTime)(k), 1344f);if(void 0!==n)return n;n=Object(h.parseForNumberFormat)(f);if(void 0!==n){f=n.tokens;n="";for(l=0;l<f.length;++l){var r=f[l];if(r.type!==h.TokenType.FREE_TEXT){var m=r.value.split("."),t=m[0];r=m[1]||"";m=m[1]?".":"";var u=Number(k.toFixed(r.length)).toString().split("."),w=u[0]||"";u=u[1]||"";t.length>
1344w.length&&(t=t.substr(0,t.length-w.length).split("0").length-1,w=x(w,t+w.length));r=r.substr(u.length,r.length-u.length).split("0").length-1;u=q(u,r+u.length);n+=w+m+u}else n+=r.value}k=n}else k= 1345f;return k}function x(k,f){for(k+="";k.length<f;)k="0"+k;return k}function q(k,f){for(k+="";k.length<f;)k+="0";return k}function p(k,f){var n=Object(h.parseForDateTimeFormat)(f);if(void 0!==n){var l;f="";n=function(t,u){var w="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!w){if(Array.isArray(t)||(w=B(t))||u&&t&&"number"==typeof t.length){w&&(t=w);var v=0;u=function(){};return{s:u,n:function(){return v>=t.length?{done:!0}:{done:!1,value:t[v++]}},e:function(E){throw E;},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1346}var C,y=!0,z=!1;return{s:function(){w=w.call(t)},n:function(){var E=w.next();return y=E.done,E},e:function(E){z=!0;C=E},f:function(){try{y||null==w.return||w.return()}finally{if(z)throw C;}}}}(n.tokens);try{for(n.s();!(l=n.n()).done;){var r=l.value;if(r.type!==h.TokenType.FREE_TEXT)if(c.secondsExtendedRegexp.test(r.value)){var m=r.value.length-3;f+=(10>k.seconds?"0":"")+Math.round(k.seconds*Math.pow(10,m))/Math.pow(10,m)}else switch(r.value.toLowerCase()){case "h":case "hh":f+=x(k.hours,r.value.length); 1347k.hours=0;break;case "[hh]":f+=x(k.hours,r.value.length-2);k.hours=0;break;case "m":case "mm":f+=x(k.minutes,r.value.length);k.minutes=0;break;case "[mm]":f+=x(k.minutes+60*k.hours,r.value.length-2);k.minutes=0;k.hours=0;break;case "s":case "ss":f+=x(k.seconds,r.value.length);break;default:return}else f+=r.value}}catch(t){n.e(t)}finally{n.f()}return f}}function e(k,f){f=Object(h.parseForDateTimeFormat)(f);if(void 0!==f){f=f.tokens;for(var n="",l=!1,r=f.some(function(w){return w.type===h.TokenType.FORMAT&& 1348("a/p"===w.value||"A/P"===w.value||"am/pm"===w.value||"AM/PM"===w.value)}),m=0;m<f.length;m++){var t=f[m];if(t.type!==h.TokenType.FREE_TEXT)if(c.secondsExtendedRegexp.test(t.value))t=t.value.length-3,n+=(10>k.seconds?"0":"")+Math.round(k.seconds*Math.pow(10,t))/Math.pow(10,t);else switch(t.value.toLowerCase()){case "h":case "hh":l=!0;n+=x(r?(k.hours+11)%12+1:k.hours,t.value.length);break;case "d":case "dd":n+=x(k.day,t.value.length);break;case "s":case "ss":n+=x(Math.round(k.seconds),t.value.length); 1349break;case "m":case "mm":m+1<f.length&&f[m+1].value.startsWith(":")&&(l=!0);n+=x(l?k.minutes:k.month,t.value.length);l=!0;break;case "yy":n+=x(k.year%100,t.value.length);break;case "yyyy":n+=k.year;break;case "am/pm":case "a/p":var u=F(t.value.split("/"),2);t=u[0];u=u[1];n+=12>k.hours?t:u;break;default:return}else n+=t.value}return n}}a.r(b);a.d(b,"format",function(){return A});a.d(b,"padLeft",function(){return x});a.d(b,"padRight",function(){return q});a.d(b,"defaultStringifyDuration",function(){return p}); 1350a.d(b,"defaultStringifyDateTime",function(){return e});a(12);a(64);a(0);a(69);a(52);a(300);a(122);a(13);a(26);a(22);a(2);a(8);a(9);a(10);a(3);a(4);var c=a(392),d=a(164),h=a(725)},function(g,b,a){g=a(28);b=a(35);var F=a(129),B=a(368),D=a(301);a=a(38);var A=RangeError,x=String,q=Math.floor,p=b(D),e=b("".slice),c=b((1).toFixed),d=function(n,l,r){return 0===l?r:1==l%2?d(n,l-1,r*n):d(n*n,l/2,r)},h=function(n,l,r){for(var m=-1;6>++m;)r+=l*n[m],n[m]=r%1E7,r=q(r/1E7)},k=function(n,l){for(var r=6,m=0;0<=--r;)m+= 1351n[r],n[r]=q(m/l),m=m%l*1E7},f=function(n){for(var l=6,r="";0<=--l;)if(""!==r||0===l||0!==n[l]){var m=x(n[l]);r=""===r?m:r+p("0",7-m.length)+m}return r};g({target:"Number",proto:!0,forced:a(function(){return"0.000"!==c(8E-5,3)||"1"!==c(.9,0)||"1.25"!==c(1.255,2)||"1000000000000000128"!==c(0xde0b6b3a7640080,0)})||!a(function(){c({})})},{toFixed:function(n){var l,r,m,t=B(this);n=F(n);var u=[0,0,0,0,0,0],w="",v="0";if(0>n||20<n)throw A("Incorrect fraction digits");if(t!=t)return"NaN";if(-1E21>=t||1E21<= 1352t)return x(t);if(0>t&&(w="-",t=-t),1E-21<t){v=0;for(var C=t*d(2,69,1);4096<=C;)v+=12,C/=4096;for(;2<=C;)v+=1,C/=2;if(r=0>(l=v-69)?t*d(2,-l,1):t/d(2,l,1),r*=4503599627370496,0<(l=52-l)){h(u,0,r);for(r=n;7<=r;)h(u,1E7,0),r-=7;h(u,d(10,r,1),0);for(r=l-1;23<=r;)k(u,8388608),r-=23;k(u,1<<r);h(u,1,1);k(u,2);v=f(u)}else h(u,0,r),h(u,1<<-l,0),v=f(u)+p("0",n)}return 0<n?w+((m=v.length)<=n?"0."+p("0",n-m)+v:e(v,0,m-n)+"."+e(v,m-n)):w+v}})},function(g,b,a){var F=a(129),B=a(73),D=a(94),A=RangeError;g.exports= 1353function(x){var q=B(D(this)),p="";x=F(x);if(0>x||x==1/0)throw A("Wrong number of repetitions");for(;0<x;(x>>>=1)&&(q+=q))1&x&&(p+=q);return p}},function(g,b,a){g=a(28);var F=a(265).codeAt;g({target:"String",proto:!0},{codePointAt:function(B){return F(this,B)}})},function(g,b,a){g=a(28);var F=a(728).start;g({target:"String",proto:!0,forced:a(729)},{padStart:function(B){return F(this,B,1<arguments.length?arguments[1]:void 0)}})},function(g,b,a){function F(A){if(!Array.isArray(A))throw new D.InvalidArgumentsError("an array of arrays."); 1354for(var x=0;x<A.length;x++)if(!Array.isArray(A[x]))throw new D.InvalidArgumentsError("an array of arrays.");}function B(A){for(var x=0,q=0,p=0,e=0;e<A.length;e++){for(var c=0,d=0;d<A[e].length;d++)null!=A[e][d]&&(c=d+1,++p);x=Math.max(x,c);0<c&&(q=e+1)}A=x*q;return{height:q,width:x,fill:0===A?0:p/A}}a.r(b);a.d(b,"validateAsSheet",function(){return F});a.d(b,"findBoundaries",function(){return B});var D=a(40)},function(g,b,a){function F(f){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator? 1355function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(f)}function B(){function f(M,T,Z){return Object.defineProperty(M,T,{value:Z,enumerable:!0,configurable:!0,writable:!0}),M[T]}function n(M,T,Z,L){T=Object.create((T&&T.prototype instanceof r?T:r).prototype);L=new z(L||[]);return T._invoke=function(U,V,Y){var aa="suspendedStart";return function(W,ca){if("executing"===aa)throw Error("Generator is already running");
1356if("completed"===aa){if("throw"===W)throw ca;return H()}Y.method=W;for(Y.arg=ca;;){if(W=Y.delegate)if(W=v(W,Y)){if(W===O)continue;return W}if("next"===Y.method)Y.sent=Y._sent=Y.arg;else if("throw"===Y.method){if("suspendedStart"===aa)throw aa="completed",Y.arg;Y.dispatchException(Y.arg)}else"return"===Y.method&&Y.abrupt("return",Y.arg);aa="executing";W=l(U,V,Y);if("normal"===W.type){if(aa=Y.done?"completed":"suspendedYield",W.arg===O)continue;return{value:W.arg,done:Y.done}}"throw"===W.type&&(aa= 1357"completed",Y.method="throw",Y.arg=W.arg)}}}(M,Z,L),T}function l(M,T,Z){try{return{type:"normal",arg:M.call(T,Z)}}catch(L){return{type:"throw",arg:L}}}function r(){}function m(){}function t(){}function u(M){["next","throw","return"].forEach(function(T){f(M,T,function(Z){return this._invoke(T,Z)})})}function w(M,T){var Z;this._invoke=function(L,U){function V(){return new T(function(Y,aa){!function ja(ca,ia,ba,fa){ca=l(M[ca],M,ia);if("throw"!==ca.type){var qa=ca.arg;return(ca=qa.value)&&"object"==F(ca)&& 1358K.call(ca,"__await")?T.resolve(ca.__await).then(function(ha){ja("next",ha,ba,fa)},function(ha){ja("throw",ha,ba,fa)}):T.resolve(ca).then(function(ha){qa.value=ha;ba(qa)},function(ha){return ja("throw",ha,ba,fa)})}fa(ca.arg)}(L,U,Y,aa)})}return Z=Z?Z.then(V,V):V()}}function v(M,T){var Z=M.iterator[T.method];if(void 0===Z){if(T.delegate=null,"throw"===T.method){if(M.iterator.return&&(T.method="return",T.arg=void 0,v(M,T),"throw"===T.method))return O;T.method="throw";T.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}Z= 1359l(Z,M.iterator,T.arg);return"throw"===Z.type?(T.method="throw",T.arg=Z.arg,T.delegate=null,O):(Z=Z.arg)?Z.done?(T[M.resultName]=Z.value,T.next=M.nextLoc,"return"!==T.method&&(T.method="next",T.arg=void 0),T.delegate=null,O):Z:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,O)}function C(M){var T={tryLoc:M[0]};1 in M&&(T.catchLoc=M[1]);2 in M&&(T.finallyLoc=M[2],T.afterLoc=M[3]);this.tryEntries.push(T)}function y(M){var T=M.completion||{};T.type="normal";delete T.arg; 1360M.completion=T}function z(M){this.tryEntries=[{tryLoc:"root"}];M.forEach(C,this);this.reset(!0)}function E(M){if(M){var T=M[P];if(T)return T.call(M);if("function"==typeof M.next)return M;if(!isNaN(M.length)){var Z=-1;T=function U(){for(;++Z<M.length;)if(K.call(M,Z))return U.value=M[Z],U.done=!1,U;return U.value=void 0,U.done=!0,U};return T.next=T}}return{next:H}}function H(){return{value:void 0,done:!0}}B=function(){return G};var G={},I=Object.prototype,K=I.hasOwnProperty,J="function"==typeof Symbol? 1361Symbol:{},P=J.iterator||"@@iterator",S=J.asyncIterator||"@@asyncIterator",R=J.toStringTag||"@@toStringTag";try{f({},"")}
1361catch(M){f=function(T,Z,L){return T[Z]=L}}G.wrap=n;var O={};J={};f(J,P,function(){return this});var N=Object.getPrototypeOf;(N=N&&N(N(E([]))))&&N!==I&&K.call(N,P)&&(J=N);var Q=t.prototype=r.prototype=Object.create(J);return m.prototype=t,f(Q,"constructor",t),f(t,"constructor",m),m.displayName=f(t,R,"GeneratorFunction"),G.isGeneratorFunction=function(M){M="function"==typeof M&&M.constructor; 1362return!!M&&(M===m||"GeneratorFunction"===(M.displayName||M.name))},G.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,t):(M.__proto__=t,f(M,R,"GeneratorFunction")),M.prototype=Object.create(Q),M},G.awrap=function(M){return{__await:M}},u(w.prototype),f(w.prototype,S,function(){return this}),G.AsyncIterator=w,G.async=function(M,T,Z,L,U){void 0===U&&(U=Promise);var V=new w(n(M,T,Z,L),U);return G.isGeneratorFunction(T)?V:V.next().then(function(Y){return Y.done?Y.value:V.next()})}, 1363u(Q),f(Q,R,"Generator"),f(Q,P,function(){return this}),f(Q,"toString",function(){return"[object Generator]"}),G.keys=function(M){var T=[],Z;for(Z in M)T.push(Z);return T.reverse(),function U(){for(;T.length;){var V=T.pop();if(V in M)return U.value=V,U.done=!1,U}return U.done=!0,U}},G.values=E,z.prototype={constructor:z,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!M)for(var T in this)"t"=== 1364T.charAt(0)&&K.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=void 0)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if("throw"===M.type)throw M.arg;return this.rval},dispatchException:function(M){function T(W,ca){return V.type="throw",V.arg=M,Z.next=W,ca&&(Z.method="next",Z.arg=void 0),!!ca}if(this.done)throw M;for(var Z=this,L=this.tryEntries.length-1;0<=L;--L){var U=this.tryEntries[L],V=U.completion;if("root"===U.tryLoc)return T("end");if(U.tryLoc<=this.prev){var Y=K.call(U,"catchLoc"), 1365aa=K.call(U,"finallyLoc");if(Y&&aa){if(this.prev<U.catchLoc)return T(U.catchLoc,!0);if(this.prev<U.finallyLoc)return T(U.finallyLoc)}else if(Y){if(this.prev<U.catchLoc)return T(U.catchLoc,!0)}else{if(!aa)throw Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return T(U.finallyLoc)}}}},abrupt:function(M,T){for(var Z=this.tryEntries.length-1;0<=Z;--Z){var L=this.tryEntries[Z];if(L.tryLoc<=this.prev&&K.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var U=L;break}}U&&("break"=== 1366M||"continue"===M)&&U.tryLoc<=T&&T<=U.finallyLoc&&(U=null);Z=U?U.completion:{};return Z.type=M,Z.arg=T,U?(this.method="next",this.next=U.finallyLoc,O):this.complete(Z)},complete:function(M,T){if("throw"===M.type)throw M.arg;return"break"===M.type||"continue"===M.type?this.next=M.arg:"return"===M.type?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):"normal"===M.type&&T&&(this.next=T),O},finish:function(M){for(var T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T];if(Z.finallyLoc=== 1367M)return this.complete(Z.completion,Z.afterLoc),y(Z),O}},catch:function(M){for(var T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T];if(Z.tryLoc===M){M=Z.completion;if("throw"===M.type){var L=M.arg;y(Z)}return L}}throw Error("illegal catch attempt");},delegateYield:function(M,T,Z){return this.delegate={iterator:E(M),resultName:T,nextLoc:Z},"next"===this.method&&(this.arg=void 0),O}},G}function D(f){var n=Array.isArray(f)?p(f):void 0;n||(n="undefined"!=typeof Symbol&&null!=f[Symbol.iterator]|| 1368null!=f["@@iterator"]?Array.from(f):void 0);if(!(f=n||q(f)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return f}function A(f,n){if(!(f=function(l){if(Array.isArray(l))return l}(f)||function(l,r){var m=null==l?null:"undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"];if(null!=m){var t,u=[],w=!0,v=!1;try{for(m=m.call(l);!(w=(t=m.next()).done)&&(u.push(t.value),!r||u.length!==r);w= 1369!0);}catch(y){v=!0;var C=y}finally{try{w||null==m.return||m.return()}finally{if(v)throw C;}}return u}}
1369(f,n)||q(f,n)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return f}function x(f,n){var l="undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(!l){if(Array.isArray(f)||(l=q(f))||n&&f&&"number"==typeof f.length){l&&(f=l);var r=0;n=function(){};return{s:n,n:function(){return r>= 1370f.length?{done:!0}:{done:!1,value:f[r++]}},e:function(w){throw w;},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var m,t=!0,u=!1;return{s:function(){l=l.call(f)},n:function(){var w=l.next();return t=w.done,w},e:function(w){u=!0;m=w},f:function(){try{t||null==l.return||l.return()}finally{if(u)throw m;}}}}function q(f,n){if(f){if("string"==typeof f)return p(f,n);var l=Object.prototype.toString.call(f).slice(8, 1371-1);return"Object"===l&&f.constructor&&(l=f.constructor.name),"Map"===l||"Set"===l?Array.from(f):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?p(f,n):void 0}}function p(f,n){(null==n||n>f.length)&&(n=f.length);for(var l=0,r=Array(n);l<n;l++)r[l]=f[l];return r}function e(f,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}function c(f,n){var l,r=n.implementedFunctions[f],m=null=== 1372(l=n.aliases)||void 0===l?void 0:l[f];if(void 0!==m){if(void 0!==r)throw new d.AliasAlreadyExisting(f,n.name);r=n.implementedFunctions[m]}if(void 0===r)throw d.FunctionPluginValidationError.functionNotDeclaredInPlugin(f,n.name);return r}a.r(b);a.d(b,"FunctionRegistry",function(){return k});a(26);a(3);a(32);a(0);a(2);a(4);a(54);a(146);a(22);a(18);a(27);a(53);a(13);a(12);a(8);a(9);a(10);a(86);a(87);a(88);a(89);a(25);a(90);a(62);var d=a(40),h=a(200);g=a(740);var k=function(){function f(r){var m=this; 1373if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");if(this.config=r,this.functions=new Map,this.arraySizeFunctions=new Map,this.volatileFunctions=new Set,this.arrayFunctions=new Set,this.structuralChangeFunctions=new Set,this.functionsWhichDoesNotNeedArgumentsToBeComputed=new Set,this.functionsMetadata=new Map,this.doesFunctionNeedArgumentToBeComputed=function(z){return m.functionsWhichDoesNotNeedArgumentsToBeComputed.has(z)},this.isFunctionVolatile=function(z){return m.volatileFunctions.has(z)}, 1374this.isArrayFunction=function(z){return m.arrayFunctions.has(z)},this.isFunctionDependentOnSheetStructureChange=function(z){return m.structuralChangeFunctions.has(z)},0<r.functionPlugins.length){this.instancePlugins=new Map;var t;r=x(r.functionPlugins);try{for(r.s();!(t=r.n()).done;)f.loadPluginFunctions(t.value,this.instancePlugins)}catch(z){r.e(z)}finally{r.f()}}else this.instancePlugins=new Map(f.plugins);var u;t=x(f.protectedFunctions());try{for(t.s();!(u=t.n()).done;){var w=A(u.value,2);f.loadFunctionUnprotected(w[1], 1375w[0],this.instancePlugins)}}catch(z){t.e(z)}finally{t.f()}var v;u=x(this.instancePlugins.entries());try{for(u.s();!(v=u.n()).done;){var C=A(v.value,2),y=C[0];this.categorizeFunction(y,c(y,C[1]))}}catch(z){u.e(z)}finally{u.f()}}var n,l;return n=[{key:"initializePlugins",value:function(r){var m,t=this,u=[],w=x(this.instancePlugins.entries());try{var v=function(){var C=A(m.value,2),y=C[0],z=C[1];C=u.find(function(H){return H instanceof z});void 0===C&&(C=new z(r),u.push(C));var E=c(y,z);t.functions.set(y, 1376[E.method,C]);E=E.arraySizeMethod;void 0!==E&&t.arraySizeFunctions.set(y,[E,C])};for(w.s();!(m=w.n()).done;)v()}catch(C){w.e(C)}finally{w.f()}}},{key:"getFunctionPlugin",value:function(r){if(!f.functionIsProtected(r))return this.instancePlugins.get(r)}},{key:"getFunction",value:function(r){var m=this.functions.get(r);if(void 0!==m&&this.config.translationPackage.isFunctionTranslated(r)){r=A(m,2);var t=r[0],u=r[1];return function(w,v){return u[t](w,v)}}}},{key:"getArraySizeFunction",value:function(r){var m= 1377this.arraySizeFunctions.get(r);if(void 0!==m&&this.config.translationPackage.isFunctionTranslated(r)){r=A(m,2);var t=r[0],u=r[1];return function(w,v){return u[t](w,v)}}}},{key:"getMetadata",value:function(r){return this.functionsMetadata.get(r)}},{key:"getPlugins",value:function(){var r,m=new Set,t=x(this.instancePlugins);try{for(t.s();!(r=t.n()).done;){var u=A(r.value,2),w=u[1];f.functionIsProtected(u[0])||m.add(w)}}catch(v){t.e(v)}finally{t.f()}return Array.from(m)}},{key:"getRegisteredFunctionIds", 1378value:function(){return Array.from(this.functions.keys())}},{key:"categorizeFunction",value:function(r,m){m.isVolatile&&this.volatileFunctions.add(r);m.arrayFunction&&this.arrayFunctions.add(r);m.doesNotNeedArgumentsToBeComputed&&this.functionsWhichDoesNotNeedArgumentsToBeComputed.add(r);
1378m.isDependentOnSheetStructureChange&&this.structuralChangeFunctions.add(r);this.functionsMetadata.set(r,m)}}],l=[{key:"registerFunctionPlugin",value:function(r,m){this.loadPluginFunctions(r,this.plugins);void 0!== 1379m&&this.loadTranslations(m)}},{key:"registerFunction",value:function(r,m,t){this.loadPluginFunction(m,r,this.plugins);void 0!==t&&this.loadTranslations(t)}},{key:"unregisterFunction",value:function(r){if(this.functionIsProtected(r))throw d.ProtectedFunctionError.cannotUnregisterFunctionWithId(r);this.plugins.delete(r)}},{key:"unregisterFunctionPlugin",value:function(r){var m,t=x(this.protectedPlugins());try{for(t.s();!(m=t.n()).done;)if(m.value===r)throw d.ProtectedFunctionError.cannotUnregisterProtectedPlugin(); 1380}catch(C){t.e(C)}finally{t.f()}var u;m=x(this.plugins.entries());try{for(m.s();!(u=m.n()).done;){var w=A(u.value,2),v=w[0];w[1]===r&&this.plugins.delete(v)}}catch(C){m.e(C)}finally{m.f()}}},{key:"unregisterAll",value:function(){this.plugins.clear()}},{key:"getRegisteredFunctionIds",value:function(){return[].concat(D(Array.from(this.plugins.keys())),D(Array.from(this._protectedPlugins.keys())))}},{key:"getPlugins",value:function(){return Array.from((new Set(this.plugins.values())).values())}},{key:"getFunctionPlugin", 1381value:function(r){return this.functionIsProtected(r)?void 0:this.plugins.get(r)}},{key:"functionIsProtected",value:function(r){return this._protectedPlugins.has(r)}},{key:"loadTranslations",value:function(r){var m=new Set(h.HyperFormula.getRegisteredLanguagesCodes());Object.keys(r).forEach(function(t){m.has(t)&&h.HyperFormula.getLanguage(t).extendFunctions(r[t])})}},{key:"loadPluginFunctions",value:function(r,m){var t=this;Object.keys(r.implementedFunctions).forEach(function(u){t.loadPluginFunction(r, 1382u,m)});void 0!==r.aliases&&Object.keys(r.aliases).forEach(function(u){t.loadPluginFunction(r,u,m)})}},{key:"loadPluginFunction",value:function(r,m,t){if(this.functionIsProtected(m))throw d.ProtectedFunctionError.cannotRegisterFunctionWithId(m);this.loadFunctionUnprotected(r,m,t)}},{key:"loadFunctionUnprotected",value:function(r,m,t){var u=c(m,r).method;if(!Object.prototype.hasOwnProperty.call(r.prototype,u))throw d.FunctionPluginValidationError.functionMethodNotFound(u,r.name);t.set(m,r)}},{key:"protectedFunctions", 1383value:B().mark(function m(){var t,u,w,v,C;return B().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:t=x(this._protectedPlugins),y.prev=1,t.s();case 3:if((u=t.n()).done){y.next=10;break}if(w=A(u.value,2),v=w[0],void 0===(C=w[1])){y.next=8;break}return y.next=8,[v,C];case 8:y.next=3;break;case 10:y.next=15;break;case 12:y.prev=12,y.t0=y.catch(1),t.e(y.t0);case 15:return y.prev=15,t.f(),y.finish(15);case 18:case "end":return y.stop()}},m,this,[[1,12,15,18]])})},{key:"protectedPlugins",value:B().mark(function t(){var u, 1384w,v,C;return B().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:u=x(this._protectedPlugins),y.prev=1,u.s();case 3:if((w=u.n()).done){y.next=10;break}if(v=A(w.value,2),void 0===(C=v[1])){y.next=8;break}return y.next=8,C;case 8:y.next=3;break;case 10:y.next=15;break;case 12:y.prev=12,y.t0=y.catch(1),u.e(y.t0);case 15:return y.prev=15,u.f(),y.finish(15);case 18:case "end":return y.stop()}},t,this,[[1,12,15,18]])})}],n&&e(f.prototype,n),l&&e(f,l),Object.defineProperty(f,"prototype",{writable:!1}), 1385f}();k.plugins=new Map;k._protectedPlugins=new Map([["VERSION",g.VersionPlugin],["OFFSET",void 0]])},function(g,b,a){a.r(b);var F=a(37);a.d(b,"FunctionPlugin",function(){return F.FunctionPlugin})},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable= 1386h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d= 1387x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=this}return d}}
1387function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)}a.r(b); 1388a.d(b,"PI",function(){return q});a.d(b,"MathConstantsPlugin",function(){return p});a(300);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=parseFloat(Math.PI.toFixed(14)),p=function(e){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return h.apply(this,arguments)}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(f&&f.prototype,{constructor:{value:k, 1389writable:!0,configurable:!0}});Object.defineProperty(k,"prototype",{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c);return d=[{key:"pi",value:function(k,f){return this.runFunction(k.args,f,this.metadata("PI"),function(){return q})}},{key:"sqrtpi",value:function(k,f){return this.runFunction(k.args,f,this.metadata("SQRTPI"),function(n){return Math.sqrt(q*n)})}}],B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(g.FunctionPlugin);p.implementedFunctions={PI:{method:"pi",parameters:[]}, 1390SQRTPI:{method:"sqrtpi",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]}}},function(g,b){b=Math.expm1;var a=Math.exp;g.exports=!b||22025.465794806718<b(10)||22025.465794806718>b(10)||-2E-17!=b(-2E-17)?function(F){F=+F;return 0==F?F:-1E-6<F&&1E-6>F?F+F*F/2:a(F)-1}:b},function(g,b,a){var F=a(447);g.exports=function(B,D){if(B){if("string"==typeof B)return F(B,D);var A=Object.prototype.toString.call(B).slice(8,-1);return"Object"===A&&B.constructor&&(A=B.constructor.name),"Map"===A||"Set"=== 1391A?Array.from(B):"Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?F(B,D):void 0}};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){g=a(1);b.__esModule=!0;b._dataToHTML=function(x){for(var q=x.length,p=["\x3ctable\x3e"],e=0;e<q;e+=1){var c=x[e],d=c.length,h=[];0===e&&p.push("\x3ctbody\x3e");for(var k=0;k<d;k+=1){var f=c[k];f=(0,B.isEmpty)(f)?"":f.toString().replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"\x3cbr\x3e\r\n").replace(/\x20/gi, 1392"\x26nbsp;").replace(/\t/gi,"\x26#9;");h.push("\x3ctd\x3e".concat(f,"\x3c/td\x3e"))}p.push.apply(p,["\x3ctr\x3e"].concat(h,["\x3c/tr\x3e"]));e+1===q&&p.push("\x3c/tbody\x3e")}return p.push("\x3c/table\x3e"),p.join("")};b.htmlToGridSettings=function(x){var q=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document,p={},e=q.createDocumentFragment();q=q.createElement("div");e.appendChild(q);var c=x;"string"==typeof c&&(e=c.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,function(H){var G=H.match(/<td\b[^>]*?>/g)[0]; 1393H=H.substring(G.length,H.lastIndexOf("\x3c")).replace(/(<(?!br)([^>]+)>)/gi,"");return"".concat(G).concat(H).concat("\x3c/td\x3e")}),q.insertAdjacentHTML("afterbegin","".concat(e)),c=q.querySelector("table"));if(c&&"TABLE"===(c&&c.nodeName||"")){q=q.querySelector('meta[name$\x3d"enerator"]');var d=null!==c.querySelector("tbody th"),h=(e=c.querySelector("tr"))?Array.from(e.cells).reduce(function(H,G){return H+G.colSpan},0)-(d?1:0):0,k=c.tFoot&&Array.from(c.tFoot.rows)||[],f=[];e=!1;var n=0;e=0;if(c.tHead){var l= 1394Array.from(c.tHead.rows).filter(function(H){var G=null!==H.querySelector("td");return G&&f.push(H),!G});n=l.length;e=0<n;1<n?p.nestedHeaders=Array.from(l).reduce(function(H,G){G=Array.from(G.cells).reduce(function(I,K,J){if(d&&0===J)return I;J=K.colSpan;K=K.innerHTML;return I.push(1<J?{label:K,colspan:J}:K),I},[]);return H.push(G),H},[]):e&&(p.colHeaders=Array.from(l[0].children).reduce(function(H,G,I){return d&&0===I||H.push(G.innerHTML),H},[]))}f.length&&(p.fixedRowsTop=f.length);k.length&&(p.fixedRowsBottom= 1395k.length);c=[].concat(f,(0,F.default)(Array.from(c.tBodies).reduce(function(H,G){return H.push.apply(H,(0,F.default)(Array.from(G.rows))),H},[])),(0,F.default)(k));e=c.length;k=Array(e);for(n=0;n<e;n++)k[n]=Array(h);h=[];n=[];for(l=0;l<e;l++)for(var r=Array.from(c[l].cells),m=r.length,t=0;t<m;t++){var u=r[t],w=u.nodeName,v=u.innerHTML,C=u.rowSpan,y=u.colSpan,z=k[l].findIndex(function(H){return void 0===H});if("TD"===w){if(1<C||1<y){for(w=l;w<l+C;w++)if(w<e)for(var E=z;E<z+y;E++)k[w][E]=null;(u=u.getAttribute("style"))&&
1396u.includes("mso-ignore:colspan")||h.push({col:z,row:l,rowspan:C,colspan:y})}C="";C=q&&/excel/gi.test(q.content)?v.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):v.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n");k[l][z]=C.replace(A,function(H){return D[H]})}else n.push(v)}h.length&&(p.mergeCells=h);n.length&&(p.rowHeaders=n);k.length&&(p.data=k);return p}};b.instanceToHTML=function(x){var q=x.hasColHeaders(),p=x.hasRowHeaders(),e=[q?-1:0,p?-1:0,x.countRows()-1,x.countCols()- 13971];e=x.getData.apply(x,e);for(var c=e.length,d=0<c?e[0].length:0,h=["\x3ctable\x3e","\x3c/table\x3e"],k=q?["\x3cthead\x3e","\x3c/thead\x3e"]:[],f=["\x3ctbody\x3e","\x3c/tbody\x3e"],n=p?1:0,l=q?1:0,r=0;r<c;r+=1){for(var m=q&&0===r,t=[],u=0;u<d;u+=1){var w=!m&&p&&0===u,v="";if(m)v="\x3cth\x3e".concat(x.getColHeader(u-n),"\x3c/th\x3e");else if(w)v="\x3cth\x3e".concat(x.getRowHeader(r-l),"\x3c/th\x3e");else{w=e[r][u];var C=x.getCellMeta(r-l,u-n),y=C.rowspan,z=C.colspan;C.hidden||(v=[],(y&&v.push('rowspan\x3d"'.concat(y, 1398'"')),z&&v.push('colspan\x3d"'.concat(z,'"')),(0,B.isEmpty)(w))?v="\x3ctd ".concat(v.join(" "),"\x3e\x3c/td\x3e"):(w=w.toString().replace("\x3c","\x26lt;").replace("\x3e","\x26gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"\x3cbr\x3e\r\n").replace(/\x20/gi,"\x26nbsp;").replace(/\t/gi,"\x26#9;"),v="\x3ctd ".concat(v.join(" "),"\x3e").concat(w,"\x3c/td\x3e")))}t.push(v)}t=["\x3ctr\x3e"].concat(t,["\x3c/tr\x3e"]).join("");m?k.splice(1,0,t):f.splice(-1,0,t)}return h.splice(1,0,k.join(""),f.join("")), 1399h.join("")};var F=g(a(43));a(101);a(12);a(69);a(76);a(36);a(53);a(67);a(0);a(18);a(55);a(587);a(782);a(105);a(22);a(2);a(39);a(165);a(42);a(49);var B=a(31),D={"\x26nbsp;":" ","\x26amp;":"\x26","\x26lt;":"\x3c","\x26gt;":"\x3e"},A=new RegExp(Object.keys(D).map(function(x){return"(".concat(x,")")}).join("|"),"gi")},function(g,b,a){b.__esModule=!0;b.RENDER_TYPE=1;b.FULLY_VISIBLE_TYPE=2;b.PARTIALLY_VISIBLE_TYPE=3},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(0);a(2);a(11);a(4);var F= 1400g(a(5)),B=g(a(6)),D=g(a(41)),A=g(a(109)),x=g(a(110)),q=new WeakMap;a=function(){function p(e,c){var d=2<arguments.length&&void 0!==arguments[2]&&arguments[2];(0,F.default)(this,p);(0,D.default)(this,"row",null);(0,D.default)(this,"col",null);if(q.has(this))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;q.set(this,{writable:!0,value:!1});(0,x.default)(this,q,d);void 0!==e&&void 0!==c&&(this.row=e,this.col=c)}return(0,B.default)(p,[{key:"isValid",value:function(e){return!(0> 1401this.row||0>this.col)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&((0,A.default)(this,q)?this.col<=e.col:this.col>=e.col)}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&((0,A.default)(this,q)?this.col>=e.col:this.col<=e.col)}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&((0,A.default)(this, 1402q)?this.col>=e.col:this.col<=e.col)}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&((0,A.default)(this,q)?this.col<=e.col:this.col>=e.col)}},{key:"normalize",value:function(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}},{key:"clone",value:function(){return new p(this.row,this.col,(0,A.default)(this,q))}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),p}();b.default=a},function(g, 1403b,a){b.__esModule=!0;b.default=void 0;g={getFirstRenderedColumn:function(){return 0===this.wtSettings.getSetting("totalColumns")?-1:0},getFirstVisibleColumn:function(){return this.getFirstRenderedColumn()},getLastRenderedColumn:function(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn:function(){return this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var F=this.wtSettings.getSetting("totalColumns");return Math.min(this.wtSettings.getSetting("fixedColumnsStart"),F)}, 1404getVisibleColumnsCount:function(){return this.getRenderedColumnsCount()}};
1404(0,a(17).defineGetter)(g,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});b.default=g},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=g(a(41)),A=a(23),x=a(97),q=g(a(60)),p=g(a(810)),e=g(a(312)),c=g(a(591));a=function(){function d(h,k){(0,F.default)(this,d);(0,D.default)(this,"wtTable",void 0);(0,D.default)(this,"wtScroll",void 0);(0,D.default)(this,"wtViewport",void 0);(0,D.default)(this, 1405"wtOverlays",void 0);(0,D.default)(this,"selections",void 0);(0,D.default)(this,"wtEvent",void 0);(0,D.default)(this,"guid","wt_".concat((0,x.randomString)()));(0,D.default)(this,"drawInterrupted",!1);(0,D.default)(this,"drawn",!1);(0,D.default)(this,"domBindings",void 0);(0,D.default)(this,"wtSettings",void 0);this.domBindings={rootTable:h,rootDocument:h.ownerDocument,rootWindow:h.ownerDocument.defaultView};this.wtSettings=k;this.wtScroll=new p.default(this.createScrollDao())}return(0,B.default)(d, 1406[{key:"eventManager",get:function(){return new q.default(this)}},{key:"findOriginalHeaders",value:function(){var h=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var k=0,f=this.wtTable.THEAD.childNodes[0].childNodes.length;k<f;k++)h.push(this.wtTable.THEAD.childNodes[0].childNodes[k].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(n,l){(0,A.fastInnerText)(l,h[n])}])}}},{key:"createCellCoords", 1407value:function(h,k){return new e.default(h,k,this.wtSettings.getSetting("rtlMode"))}},{key:"createCellRange",value:function(h,k,f){return new c.default(h,k,f,this.wtSettings.getSetting("rtlMode"))}},{key:"draw",value:function(){var h=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,h||this.wtTable.isVisible()?this.wtTable.draw(h):this.drawInterrupted=!0,this}},{key:"getCell",value:function(h){if(!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(h); 1408var k=this.wtSettings.getSetting("totalRows"),f=this.wtSettings.getSetting("fixedRowsTop"),n=this.wtSettings.getSetting("fixedRowsBottom"),l=this.wtSettings.getSetting("fixedColumnsStart");if(h.row<f&&h.col<l)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(h);if(h.row<f)return this.wtOverlays.topOverlay.clone.wtTable.getCell(h);if(h.col<l&&h.row>=k-n){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(h)}else{if(h.col< 1409l)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(h);if(h.row<k&&h.row>=k-n&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(h)}return this.wtTable.getCell(h)}},{key:"scrollViewport",value:function(h,k,f,n,l){return!(0>h.col||0>h.row)&&this.wtScroll.scrollViewport(h,k,f,n,l)}},{key:"scrollViewportHorizontally",value:function(h,k,f){return!(0>h)&&this.wtScroll.scrollViewportHorizontally(h,k,f)}},{key:"scrollViewportVertically", 1410value:function(h,k,f){return!(0>h)&&this.wtScroll.scrollViewportVertically(h,k,f)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"destroy",value:function(){this.wtOverlays.destroy();this.wtEvent.destroy()}},{key:"createScrollDao",value:function(){var h=this;return{get drawn(){return h.drawn},get topOverlay(){return h.wtOverlays.topOverlay},get inlineStartOverlay(){return h.wtOverlays.inlineStartOverlay}, 1411get wtTable(){return h.wtTable},get wtViewport(){return h.wtViewport},get rootWindow(){return h.domBindings.rootWindow},get totalRows(){return h.wtSettings.getSetting("totalRows")},get totalColumns(){return h.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return h.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return h.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return h.wtSettings.getSetting("fixedColumnsStart")}}}},{key:"getTableDao",value:function(){var h= 1412this;return{get wot(){return h},get parentTableOffset(){return h.cloneSource.wtTable.tableOffset},get cloneSource(){return h.cloneSource},get workspaceWidth(){return h.wtViewport.getWorkspaceWidth()},get wtViewport(){return h.wtViewport},get wtOverlays(){return h.wtOverlays},get selections(){return h.selections},get drawn(){return h.drawn},set drawn(k){h.drawn=k},get wtTable(){return h.wtTable},get startColumnRendered(){return h.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return h.wtViewport.columnsVisibleCalculator.startColumn}, 1413get endColumnRendered(){return h.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return h.wtViewport.columnsVisibleCalculator.endColumn},get countColumnsRendered(){return h.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return h.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return h.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return h.wtViewport.rowsVisibleCalculator.startRow},get endRowRendered(){return h.wtViewport.rowsRenderCalculator.endRow}, 1414get endRowVisible(){return h.wtViewport.rowsVisibleCalculator.endRow},get countRowsRendered(){return h.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return h.wtViewport.rowsVisibleCalculator.count}}}}]),d}();b.default=a},function(g,b,a){b.__esModule=!0;b.default=void 0;g={getFirstRenderedColumn:function(){var F=this.dataAccessObject.
1414startColumnRendered;return null===F?-1:F},getFirstVisibleColumn:function(){var F=this.dataAccessObject.startColumnVisible;return null===F?-1:F},getLastRenderedColumn:function(){var F= 1415this.dataAccessObject.endColumnRendered;return null===F?-1:F},getLastVisibleColumn:function(){var F=this.dataAccessObject.endColumnVisible;return null===F?-1:F},getRenderedColumnsCount:function(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount:function(){return this.dataAccessObject.countColumnsVisible}};(0,a(17).defineGetter)(g,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});b.default=g},function(g,b,a){b.__esModule=!0;b.hasValidParameter=function(D){return D=== 1416B};b.holder=void 0;b.isRootInstance=function(D){return F.has(D)};b.registerAsRootInstance=function(D){F.set(D,!0)};b.rootInstanceSymbol=void 0;a(3);a(0);a(2);a(11);a(4);a(8);a(9);var F=new WeakMap;b.holder=F;var B=Symbol("rootInstance");b.rootInstanceSymbol=B},function(g,b,a){function F(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})), 1417!0}catch(h){return!1}}();return function(){var h=(0,p.default)(c);if(d){var k=(0,p.default)(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);return(0,q.default)(this,h)}}a(0);a(7);g=a(1);b.__esModule=!0;b.PhysicalIndexToValueMap=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));g=a(246);var e=a(318);a=function(c){function d(){return(0,B.default)(this,d),h.apply(this,arguments)}(0,x.default)(d,c);var h=F(d);return(0,D.default)(d,[{key:"insert", 1418value:function(k,f){this.indexedValues=(0,e.getListWithInsertedItems)(this.indexedValues,k,f,this.initValueOrFn);(0,A.default)((0,p.default)(d.prototype),"insert",this).call(this,k,f)}},{key:"remove",value:function(k){this.indexedValues=(0,e.getListWithRemovedItems)(this.indexedValues,k);(0,A.default)((0,p.default)(d.prototype),"remove",this).call(this,k)}}]),d}(g.IndexMap);b.PhysicalIndexToValueMap=a},function(g,b,a){g=a(1);b.__esModule=!0;b.getListWithInsertedItems=function(A,x,q,p){x=q.length? 1419q[0]:void 0;return[].concat((0,F.default)(A.slice(0,x)),(0,F.default)(q.map(function(e,c){return(0,B.isFunction)(p)?p(e,c):p})),(0,F.default)(void 0===x?[]:A.slice(x)))};b.getListWithRemovedItems=function(A,x){return(0,D.arrayFilter)(A,function(q,p){return!1===x.includes(p)})};a(18);a(13);a(36);a(42);a(49);var F=g(a(43)),B=a(70),D=a(20)},function(g,b,a){var F=a(1);b.__esModule=!0;b.MapCollection=void 0;b.getRegisteredMapsCounter=function(){return x};a(3);a(32);a(0);a(2);a(4);a(27);a(22);var B=F(a(5)), 1420D=F(a(6)),A=a(31);g=a(17);a=F(a(98));var x=0;F=function(){function q(){(0,B.default)(this,q);this.collection=new Map}return(0,D.default)(q,[{key:"register",value:function(p,e){var c=this;!1===this.collection.has(p)&&(this.collection.set(p,e),e.addLocalHook("change",function(){return c.runLocalHooks("change",e)}),x+=1)}},{key:"unregister",value:function(p){var e=this.collection.get(p);(0,A.isDefined)(e)&&(e.destroy(),this.collection.delete(p),this.runLocalHooks("change",e),--x)}},{key:"unregisterAll", 1421value:function(){var p=this;this.collection.forEach(function(e,c){return p.unregister(c)});this.collection.clear()}},{key:"get",value:function(p){return(0,A.isUndefined)(p)?Array.from(this.collection.values()):this.collection.get(p)}},{key:"getLength",value:function(){return this.collection.size}},{key:"removeFromEvery",value:function(p){this.collection.forEach(function(e){e.remove(p)})}},{key:"insertToEvery",value:function(p,e){this.collection.forEach(function(c){c.insert(p,e)})}},{key:"initEvery", 1422value:function(p){this.collection.forEach(function(e){e.init(p)})}}]),q}();b.MapCollection=F;(0,g.mixin)(F,a.default)},function(g,b,a){a(0);a(27);a(53);g=a(1);b.__esModule=!0;var F={Highlight:!0,Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},B=g(a(607));b.Highlight=B.default;g=g(a(848));b.Selection=g.default;g=a(601);b.handleMouseEvent=g.handleMouseEvent;g=a(248);b.detectSelectionType=g.detectSelectionType;b.normalizeSelectionFactory=g.normalizeSelectionFactory; 1423var D=a(120);
1423Object.keys(D).forEach(function(A){"default"!==A&&"__esModule"!==A&&(Object.prototype.hasOwnProperty.call(F,A)||A in b&&b[A]===D[A]||(b[A]=D[A]))})},function(g,b,a){b.__esModule=!0;b.EDITOR_TYPE=b.AutocompleteEditor=void 0;g=a(875);b.EDITOR_TYPE=g.EDITOR_TYPE;b.AutocompleteEditor=g.AutocompleteEditor},function(g,b,a){b.__esModule=!0;b.HandsontableEditor=b.EDITOR_TYPE=void 0;g=a(876);b.EDITOR_TYPE=g.EDITOR_TYPE;b.HandsontableEditor=g.HandsontableEditor},function(g,b,a){b.__esModule=!0; 1424b.EDITOR_TYPE=b.DateEditor=void 0;g=a(878);b.EDITOR_TYPE=g.EDITOR_TYPE;b.DateEditor=g.DateEditor},function(g,b,a){b.__esModule=!0;b.autocompleteValidator=b.VALIDATOR_TYPE=void 0;g=a(897);b.VALIDATOR_TYPE=g.VALIDATOR_TYPE;b.autocompleteValidator=g.autocompleteValidator},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(0);a(27);a(118);var F=g(a(34)),B=g(a(5)),D=g(a(6)),A=a(23),x=a(20);a=function(){function q(p){(0,B.default)(this,q);this.hot=p;this.container=null;this.injected=!1;this.rows= 1425[];this.columns=[];this.samples=null;this.settings={useHeaders:!0}}return(0,D.default)(q,[{key:"addRow",value:function(p,e){if(this.columns.length)throw Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var c={row:p};this.rows.push(c);this.samples=e;this.table=this.createTable(this.hot.table.className);this.table.colGroup.appendChild(this.createColGroupsCol());this.table.tr.appendChild(this.createRow(p));this.container.container.appendChild(this.table.fragment); 1426c.table=this.table.table}},{key:"addColumnHeadersRow",value:function(p){if(null!=this.hot.getColHeader(0)){var e={row:-1};this.rows.push(e);this.container=this.createContainer(this.hot.rootElement.className);this.samples=p;this.table=this.createTable(this.hot.table.className);this.table.colGroup.appendChild(this.createColGroupsCol());this.appendColumnHeadersRow();this.container.container.appendChild(this.table.fragment);e.table=this.table.table}}},{key:"addColumn",value:function(p,e){if(this.rows.length)throw Error("Doesn't support multi-dimensional table"); 1427this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var c={col:p};this.columns.push(c);this.samples=e;this.table=this.createTable(this.hot.table.className);this.getSetting("useHeaders")&&null!==this.hot.getColHeader(p)&&this.hot.view.appendColHeader(p,this.table.th);this.table.tBody.appendChild(this.createCol(p));this.container.container.appendChild(this.table.fragment);c.table=this.table.table}},{key:"getHeights",value:function(p){this.injected||this.injectTable(); 1428(0,x.arrayEach)(this.rows,function(e){p(e.row,(0,A.outerHeight)(e.table)-1)})}},{key:"getWidths",value:function(p){this.injected||this.injectTable();(0,x.arrayEach)(this.columns,function(e){var c=e.table.getBoundingClientRect().width;p(e.col,Math.ceil(c))})}},{key:"setSettings",value:function(p){this.settings=p}},{key:"setSetting",value:function(p,e){this.settings||(this.settings={});this.settings[p]=e}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(p){return this.settings? 1429this.settings[p]:null}},{key:"createColGroupsCol",value:function(){var p=this,e=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&e.appendChild(this.createColElement(-1)),this.samples.forEach(function(c){(0,x.arrayEach)(c.strings,function(d){e.appendChild(p.createColElement(d.col))})}),e}},{key:"createRow",value:function(p){var e=this,c=this.hot.rootDocument,d=c.createDocumentFragment(),h=c.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(p, 1430h),d.appendChild(h)),this.samples.forEach(function(k){(0,x.arrayEach)(k.strings,function(f){var n=f.col,l=e.hot.getCellMeta(p,n);l.col=n;l.row=p;var r=e.hot.getCellRenderer(l),m=c.createElement("td");m.setAttribute("ghost-table",1);r(e.hot,m,p,n,e.hot.colToProp(n),f.value,l);d.appendChild(m)})}),d}},{key:"appendColumnHeadersRow",value:function(){var p=this,e=this.hot.rootDocument,c=e.createDocumentFragment(),d=[];if(this.hot.hasRowHeaders()){var h=e.createElement("th");d.push([-1,h]);c.appendChild(h)}
1430this.samples.forEach(function(k){(0,x.arrayEach)(k.strings, 1431function(f){f=f.col;var n=e.createElement("th");d.push([f,n]);c.appendChild(n)})});this.table.tHead.appendChild(c);(0,x.arrayEach)(d,function(k){k=(0,F.default)(k,2);p.hot.view.appendColHeader(k[0],k[1])})}},{key:"createCol",value:function(p){var e=this,c=this.hot.rootDocument,d=c.createDocumentFragment();return this.samples.forEach(function(h){(0,x.arrayEach)(h.strings,function(k){var f=k.row,n=e.hot.getCellMeta(f,p);n.col=p;n.row=f;var l=e.hot.getCellRenderer(n),r=c.createElement("td"),m=c.createElement("tr"); 1432r.setAttribute("ghost-table",1);l(e.hot,r,f,p,e.hot.colToProp(p),k.value,n);m.appendChild(r);d.appendChild(m)})}),d}},{key:"clean",value:function(){this.rows.length=0;this.rows[-1]=void 0;this.columns.length=0;this.samples&&this.samples.clear();this.samples=null;this.removeTable()}},{key:"injectTable",value:function(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;this.injected||((p||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable", 1433value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(p){var e=this.hot.rootDocument.createElement("col");return e.style.width="".concat(this.hot.view._wt.wtTable.getStretchedColumnWidth(p),"px"),e}},{key:"createTable",value:function(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=this.hot.rootDocument,c=e.createDocumentFragment(), 1434d=e.createElement("table"),h=e.createElement("thead"),k=e.createElement("tbody"),f=e.createElement("colgroup"),n=e.createElement("tr");e=e.createElement("th");return this.isVertical()&&d.appendChild(f),this.isHorizontal()&&(n.appendChild(e),h.appendChild(n),d.style.tableLayout="auto",d.style.width="auto"),d.appendChild(h),this.isVertical()&&k.appendChild(n),d.appendChild(k),(0,A.addClass)(d,p),c.appendChild(d),{fragment:c,table:d,tHead:h,tBody:k,colGroup:f,tr:n,th:e}}},{key:"createContainer",value:function(){var p= 14350<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=this.hot.rootDocument,c=e.createDocumentFragment();e=e.createElement("div");p="htGhostTable htAutoSize ".concat(p.trim());return(0,A.addClass)(e,p),c.appendChild(e),{fragment:c,container:e}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),q}();b.default=a},function(g,b,a){b.__esModule=!0;b.HEADER_SPAN_CLASS=b.DESC_SORT_STATE= 1436b.ASC_SORT_STATE=void 0;b.areValidSortStates=function(x){if(x.some(function(q){if(!1===(0,F.isObject)(q))q=!1;else{var p=q.sortOrder;q=Number.isInteger(q.column)&&[D,A].includes(p)}return!1===q}))return!1;x=x.map(function(q){return q.column});return(new Set(x)).size===x.length};b.getHeaderSpanElement=function(x){return x.querySelector(".".concat("colHeader"))};b.getNextSortOrder=function(x){if(x!==A)return x===D?A:D};b.isFirstLevelColumnHeader=function(x,q){if(0>x||!q.parentNode)return!1;x=q.parentNode.parentNode.childNodes; 1437return-1!=Array.from(x).indexOf(q.parentNode)-x.length?!1:!0};b.wasHeaderClickedProperly=function(x,q,p){return-1===x&&0<=q&&!1===(0,B.isRightClick)(p)};a(68);a(52);a(42);a(0);a(36);a(3);a(54);a(2);a(4);a(33);a(22);var F=a(17),B=a(83),D="asc";b.ASC_SORT_STATE=D;var A="desc";b.DESC_SORT_STATE=A;b.HEADER_SPAN_CLASS="colHeader"},function(g,b,a){b.__esModule=!0;b.KEY=void 0;b.default=function(){return{name:"---------"}};b.KEY="---------"},function(g,b,a){function F(t,u){var w=Object.keys(t);if(Object.getOwnPropertySymbols){var v= 1438Object.getOwnPropertySymbols(t);u&&(v=v.filter(function(C){return Object.getOwnPropertyDescriptor(t,C).enumerable}));w.push.apply(w,v)}return w}function B(t){for(var u=1;u<arguments.length;u++){var w=null!=arguments[u]?arguments[u]:{};u%2?F(Object(w),!0).forEach(function(v){(0,D.default)(t,v,w[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(w)):F(Object(w)).forEac
1438h(function(v){Object.defineProperty(t,v,Object.getOwnPropertyDescriptor(w,v))})}return t} 1439a(8);a(39);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;a(26);a(77);a(53);a(12);a(101);a(69);a(0);a(67);a(18);var D=g(a(41)),A=g(a(5)),x=g(a(6)),q=g(a(967)),p=a(126),e=a(111),c=g(a(445)),d=g(a(60)),h=a(20),k=a(107),f=a(23),n=a(83),l=a(70),r=a(31),m=a(17);a=g(a(98));g=function(){function t(u,w){(0,A.default)(this,t);this.hot=u;this.options=w||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement};this.eventManager= 1440new d.default(this);this.container=this.createContainer(this.options.name);this.hotMenu=null;this.hotSubMenus={};this.parentMenu=this.options.parent||null;this.origOutsideClickDeselects=this.menuItems=null;this.keyEvent=!1;this.offset={above:0,below:0,left:0,right:0};this._afterScrollCallback=null;this.registerEvents()}return(0,x.default)(t,[{key:"registerEvents",value:function(){for(var u=this,w=this.hot.rootWindow;w;)this.eventManager.addEventListener(w.document,"mousedown",function(v){return u.onDocumentMouseDown(v)}), 1441this.eventManager.addEventListener(w.document,"contextmenu",function(v){return u.onDocumentContextMenu(v)}),w=(0,f.getParentWindow)(w)}},{key:"setMenuItems",value:function(u){this.menuItems=u}},{key:"getSelectedItem",value:function(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}},{key:"hasSelectedItem",value:function(){return Array.isArray(this.hotMenu.getSelectedLast())}},{key:"setOffset",value:function(u){this.offset[u]=1<arguments.length&& 1442void 0!==arguments[1]?arguments[1]:0}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var u=this;this.runLocalHooks("beforeOpen");this.container.removeAttribute("style");this.container.style.display="block";var w=(0,l.debounce)(function(I){return u.openSubMenu(I)},300),v=this.options.minWidth||215,C=!1,y=(0,h.arrayFilter)(this.menuItems,function(I){return I.key===p.NO_ITEMS&&(C=!0),(0,e.isItemHidden)(I,u.hot)});if(1>y.length&&!C)y.push((0,p.predefinedItems)()[p.NO_ITEMS]); 1443else if(0===y.length)return;y=(0,e.filterSeparators)(y,p.SEPARATOR);var z=!1,E={data:y,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:function(I){return(0,r.isDefined)(I)&&I<v?v:I},autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,maxCols:1,columns:[{data:"name",renderer:function(I,K,J,P,S,R){return u.menuItemRenderer(I,K,J,P,S,R)}}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",afterOnCellMouseOver:function(I, 1444K){u.isAllSubMenusClosed()?w(K.row):u.openSubMenu(K.row)},rowHeights:function(I){return y[I].name===p.SEPARATOR?1:23},afterOnCellContextMenu:function(I){I.preventDefault();(0,k.isWindowsOS)()&&z&&u.hasSelectedItem()&&u.close(!0)},beforeOnCellMouseUp:function(I){u.hasSelectedItem()&&(z=!u.isCommandPassive(u.getSelectedItem()),u.executeCommand(I))},afterOnCellMouseUp:function(I){(0,k.isWindowsOS)()&&(0,n.isRightClick)(I)||!z||!u.hasSelectedItem()||((0,k.isMobileBrowser)()||(0,k.isIpadOS)()?setTimeout(function(){return u.close(!0)}, 1445325):u.close(!0))},afterUnlisten:function(){!u.hasSelectedItem()&&u.isOpened()&&u.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects;this.hot.getSettings().outsideClickDeselects=!1;this.hotMenu=new c.default(this.container,E);this.hotMenu.addHook("afterInit",function(){return u.onAfterInit()});this.hotMenu.addHook("afterSelection",function(){return u.onAfterSelection.apply(u,arguments)});this.hotMenu.init();this.hotMenu.listen();E=this.hotMenu.getShortcutManager(); 1446var H=E.addContext("menu"),G=B(B({},{group:"menu"}),{},{runOnlyIf:function(I){return!1===(0,f.isInput)(I.target)||!1===u.container.contains(I.target)}});E.setActiveContextName("menu");H.addShortcuts([{keys:[["Escape"]],callback:function(){u.keyEvent=!0;u.close();u.keyEvent=!1}},{keys:[["ArrowDown"]],callback:function(){var I=u.hotMenu.getSelectedLast();u.keyEvent=!0;
1446I?u.selectNextCell(I[0],I[1]):u.selectFirstCell();u.keyEvent=!1}},{keys:[["ArrowUp"]],callback:function(){var I=u.hotMenu.getSelectedLast(); 1447u.keyEvent=!0;I?u.selectPrevCell(I[0],I[1]):u.selectLastCell();u.keyEvent=!1}},{keys:[["ArrowRight"]],callback:function(){var I=u.hotMenu.getSelectedLast();(u.keyEvent=!0,I)&&(I=u.openSubMenu(I[0]))&&I.selectFirstCell();u.keyEvent=!1}},{keys:[["ArrowLeft"]],callback:function(){var I=u.hotMenu.getSelectedLast();u.keyEvent=!0;I&&u.isSubMenu()&&(u.close(),u.parentMenu&&u.parentMenu.hotMenu.listen());u.keyEvent=!1}},{keys:[["Enter"]],callback:function(I){var K=u.hotMenu.getSelectedLast();u.keyEvent=!0; 1448u.hotMenu.getSourceDataAtRow(K[0]).submenu||(u.executeCommand(I),u.close(!0));u.keyEvent=!1}},{keys:[["PageUp"]],callback:function(){var I=u.hotMenu.getSelectedLast();u.keyEvent=!0;I?u.hotMenu.selection.transformStart(-u.hotMenu.countVisibleRows(),0):u.selectFirstCell();u.keyEvent=!1}},{keys:[["PageDown"]],callback:function(){var I=u.hotMenu.getSelectedLast();u.keyEvent=!0;I?u.hotMenu.selection.transformStart(u.hotMenu.countVisibleRows(),0):u.selectLastCell();u.keyEvent=!1}}],G);this.blockMainTableCallbacks(); 1449this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var u=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(u&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu", 1450value:function(u){if(!this.hotMenu)return!1;var w=this.hotMenu.getCell(u,0);if(this.closeAllSubMenus(),!w||!(0,e.hasSubMenu)(w))return!1;u=this.hotMenu.getSourceDataAtRow(u);var v=new t(this.hot,{parent:this,name:u.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return v.setMenuItems(u.submenu.items),v.open(),v.setPosition(w.getBoundingClientRect()),this.hotSubMenus[u.key]=v,v}},{key:"closeSubMenu",value:function(u){u=this.hotMenu.getSourceDataAtRow(u);var w= 1451this.hotSubMenus[u.key];w&&(w.destroy(),delete this.hotSubMenus[u.key])}},{key:"closeAllSubMenus",value:function(){var u=this;(0,h.arrayEach)(this.hotMenu.getData(),function(w,v){return u.closeSubMenu(v)})}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){var u=this.container.parentNode;this.clearLocalHooks();this.close();this.parentMenu=null;this.eventManager.destroy();u&&u.removeChild(this.container)}},{key:"isOpened", 1452value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(u){if(this.isOpened()&&this.hasSelectedItem()){var w=this.getSelectedItem();if(this.runLocalHooks("select",w,u),!this.isCommandPassive(w)){var v=this.hot.getSelectedRange();v=v?(0,e.normalizeSelection)(v):[];this.runLocalHooks("executeCommand",w.key,v,u);this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",w.key,v,u)}}}},{key:"isCommandPassive",value:function(u){var w=u.isCommand,v=u.name,C=u.disabled;u= 1453u.submenu;C=!0===C||"function"==typeof C&&!0===C.call(this.hot);return!1===w||v===p.SEPARATOR||!0===C||u}},{key:"setPosition",value:function(u){u=new q.default(u,this.container.ownerDocument.defaultView);this.options.keepInViewport?(u.fitsBelow(this.container)?this.setPositionBelowCursor(u):u.fitsAbove(this.container)?this.setPositionAboveCursor(u):this.setPositionBelowCursor(u),this.hot.isLtr()?this.setHorizontalPositionForLtr(u):this.setHorizontalPositionForRtl(u)):(this.setPositionBelowCursor(u), 1454this.setPositionOnRightOfCursor(u))}},{key:"setHorizontalPositionForRtl",value:function(u){u.fitsOnLeft(this.container)?this.setPositionOnLeftOfCurs
1454or(u):this.setPositionOnRightOfCursor(u)}},{key:"setHorizontalPositionForLtr",value:function(u){u.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(u):this.setPositionOnLeftOfCursor(u)}},{key:"setPositionAboveCursor",value:function(u){var w=this.offset.above+u.top-this.container.offsetHeight;this.isSubMenu()&&(w=u.top+u.cellHeight-this.container.offsetHeight+ 14553);this.container.style.top="".concat(w,"px")}},{key:"setPositionBelowCursor",value:function(u){var w=this.offset.below+u.top+1;this.isSubMenu()&&(w=u.top-1);this.container.style.top="".concat(w,"px")}},{key:"setPositionOnRightOfCursor",value:function(u){var w=u.left;if(this.isSubMenu()){var v=this.parentMenu.container.getBoundingClientRect().right;w+=u.cellWidth+v-(u.left+u.cellWidth)}else w+=this.offset.right;this.container.style.left="".concat(w,"px")}},{key:"setPositionOnLeftOfCursor",value:function(u){var w= 1456this.offset.left+u.left-this.container.offsetWidth;if(this.isSubMenu()){var v=this.parentMenu.container.getBoundingClientRect().left;w-=u.left-v}this.container.style.left="".concat(w,"px")}},{key:"selectFirstCell",value:function(){var u=this.hotMenu.getCell(0,0);(0,e.isSeparator)(u)||(0,e.isDisabled)(u)||(0,e.isSelectionDisabled)(u)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var u=this.hotMenu.countRows()-1,w=this.hotMenu.getCell(u,0);(0,e.isSeparator)(w)|| 1457(0,e.isDisabled)(w)||(0,e.isSelectionDisabled)(w)?this.selectPrevCell(u,0):(this.hotMenu.selectCell(u,0,void 0,void 0,!1),this.hotMenu.scrollViewportTo(u,0,!0,!1))}},{key:"selectNextCell",value:function(u,w){u+=1;var v=u<this.hotMenu.countRows()?this.hotMenu.getCell(u,w):null;v&&((0,e.isSeparator)(v)||(0,e.isDisabled)(v)||(0,e.isSelectionDisabled)(v)?this.selectNextCell(u,w):this.hotMenu.selectCell(u,w))}},{key:"selectPrevCell",value:function(u,w){--u;var v=0<=u?this.hotMenu.getCell(u,w):null;v&& 1458((0,e.isSeparator)(v)||(0,e.isDisabled)(v)||(0,e.isSelectionDisabled)(v)?this.selectPrevCell(u,w):this.hotMenu.selectCell(u,w))}},{key:"menuItemRenderer",value:function(u,w,v,C,y,z){var E=u.getSourceDataAtRow(v),H=this.hot.rootDocument.createElement("div");"function"==typeof z&&(z=z.call(this.hot));(0,f.empty)(w);(0,f.addClass)(H,"htItemWrapper");w.appendChild(H);(new RegExp(p.SEPARATOR,"i")).test(E.name)?(0,f.addClass)(w,"htSeparator"):"function"==typeof E.renderer?((0,f.addClass)(w,"htCustomMenuRenderer"), 1459w.appendChild(E.renderer(u,H,v,C,y,z))):(0,f.fastInnerHTML)(H,z);!0===E.disabled||"function"==typeof E.disabled&&!0===E.disabled.call(this.hot)?((0,f.addClass)(w,"htDisabled"),this.eventManager.addEventListener(w,"mouseenter",function(){return u.deselectCell()})):E.disableSelection?((0,f.addClass)(w,"htSelectionDisabled"),this.eventManager.addEventListener(w,"mouseenter",function(){return u.deselectCell()})):(0,m.hasOwnProperty)(E,"submenu")?((0,f.addClass)(w,"htSubmenu"),E.disableSelection?this.eventManager.addEventListener(w, 1460"mouseenter",function(){return u.deselectCell()}):this.eventManager.addEventListener(w,"mouseenter",function(){return u.selectCell(v,C,void 0,void 0,!1,!1)})):((0,f.removeClass)(w,["htSubmenu","htDisabled"]),E.disableSelection?this.eventManager.addEventListener(w,"mouseenter",function(){return u.deselectCell()}):this.eventManager.addEventListener(w,"mouseenter",function(){return u.selectCell(v,C,void 0,void 0,!1,!1)}))}},{key:"createContainer",value:function(){var u,w=this.options.container.ownerDocument, 1461v=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return v&&((0,l.isFunction)(v)&&(v=null===(v=v.call(this.hot))||(0,r.isUndefined)(v)?"":v.toString()),v=v.replace(/[^A-z0-9]/g,"_"),v="".concat(this.options.className,"Sub_").concat(v),u=w.querySelector(".".concat(this.options.className,".").concat(v))),u||(u=w.createElement("div"),(0,f.addClass)(u,"htMenu ".concat(this.options.className)),v&&(0,f.addClass)(u,v),this.options.container.appendChild(u)),u}},{key:"blockMainTableCallbacks", 1462value:function(){this._afterScrollCallback=function(){};this.hot.addHook("afterScrollVertically",this._afterScrollCallback);this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onAfterInit",value:function(){var u=this.hotMenu.view._wt.wtTable, 1463w=this.hotMenu.getSettings().data,v=u.hider.style;u=u.holder.style;var C=parseInt(v.width,10);w=(0,h.arrayReduce)(w,function(y,z){return y+(z.name===p.SEPARATOR?1:26)},0);u.width="".concat(C+3,"px");u.height="".concat(w+3,"px");v.height=u.height}},{key:"onAfterSelection",value:function(u,w,v,C,y){!1===this.keyEvent&&(y.value=!0)}},{key:"onDocumentMouseDown",value:function(u){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,f.isChildOf)(u.target,this.hotMenu.rootElement)?this.close(!0): 1464!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,f.isChildOf)(u.target,".htMenu")||this.close(!0))}},{key:"onDocumentContextMenu",value:function(u){this.isOpened()&&(0,f.hasClass)(u.target,"htCore")&&(0,f.isChildOf)(u.target,this.hotMenu.rootElement)&&u.preventDefault()}}]),t}();(0,m.mixin)(g,a.default);b.default=g},function(g,b,a){g=a(1);b.__esModule=!0;b.TYPE_TEXT=b.TYPE_NUMERIC=b.TYPE_DATE=b.TYPES=void 0;b.default=function(I){var K=[];
1464G[I]||(I="text");return(0,B.arrayEach)(G[I],function(J){J= 1465J===D.SEPARATOR?{name:D.SEPARATOR}:(0,F.clone)((0,A.getConditionDescriptor)(J));K.push(J)}),K};g=g(a(41));var F=a(17),B=a(20),D=a(126),A=a(58),x=a(999);b.CONDITION_NONE=x.CONDITION_NAME;var q=a(640);b.CONDITION_EMPTY=q.CONDITION_NAME;var p=a(1E3);b.CONDITION_NOT_EMPTY=p.CONDITION_NAME;var e=a(641);b.CONDITION_EQUAL=e.CONDITION_NAME;var c=a(1001);b.CONDITION_NOT_EQUAL=c.CONDITION_NAME;var d=a(1002);b.CONDITION_GREATER_THAN=d.CONDITION_NAME;var h=a(1003);b.CONDITION_GREATER_THAN_OR_EQUAL=h.CONDITION_NAME; 1466var k=a(1004);b.CONDITION_LESS_THAN=k.CONDITION_NAME;var f=a(1005);b.CONDITION_LESS_THAN_OR_EQUAL=f.CONDITION_NAME;var n=a(642);b.CONDITION_BETWEEN=n.CONDITION_NAME;var l=a(1006);b.CONDITION_NOT_BETWEEN=l.CONDITION_NAME;var r=a(1007);b.CONDITION_BEGINS_WITH=r.CONDITION_NAME;var m=a(1008);b.CONDITION_ENDS_WITH=m.CONDITION_NAME;var t=a(645);b.CONDITION_CONTAINS=t.CONDITION_NAME;var u=a(1009);b.CONDITION_NOT_CONTAINS=u.CONDITION_NAME;var w=a(644);b.CONDITION_DATE_BEFORE=w.CONDITION_NAME;var v=a(643); 1467b.CONDITION_DATE_AFTER=v.CONDITION_NAME;var C=a(1010);b.CONDITION_TOMORROW=C.CONDITION_NAME;var y=a(1011);b.CONDITION_TODAY=y.CONDITION_NAME;var z=a(1012);b.CONDITION_YESTERDAY=z.CONDITION_NAME;var E=a(1013);b.CONDITION_BY_VALUE=E.CONDITION_NAME;E=a(1014);b.CONDITION_TRUE=E.CONDITION_NAME;E=a(1015);b.CONDITION_FALSE=E.CONDITION_NAME;E=a(330);b.OPERATION_AND=E.OPERATION_ID;E=a(646);b.OPERATION_OR=E.OPERATION_ID;var H;a=a(647);b.OPERATION_OR_THEN_VARIABLE=a.OPERATION_ID;b.TYPE_NUMERIC="numeric";b.TYPE_TEXT= 1468"text";b.TYPE_DATE="date";var G=(H={},(0,g.default)(H,"numeric",[x.CONDITION_NAME,D.SEPARATOR,q.CONDITION_NAME,p.CONDITION_NAME,D.SEPARATOR,e.CONDITION_NAME,c.CONDITION_NAME,D.SEPARATOR,d.CONDITION_NAME,h.CONDITION_NAME,k.CONDITION_NAME,f.CONDITION_NAME,n.CONDITION_NAME,l.CONDITION_NAME]),(0,g.default)(H,"text",[x.CONDITION_NAME,D.SEPARATOR,q.CONDITION_NAME,p.CONDITION_NAME,D.SEPARATOR,e.CONDITION_NAME,c.CONDITION_NAME,D.SEPARATOR,r.CONDITION_NAME,m.CONDITION_NAME,D.SEPARATOR,t.CONDITION_NAME,u.CONDITION_NAME]), 1469(0,g.default)(H,"date",[x.CONDITION_NAME,D.SEPARATOR,q.CONDITION_NAME,p.CONDITION_NAME,D.SEPARATOR,e.CONDITION_NAME,c.CONDITION_NAME,D.SEPARATOR,w.CONDITION_NAME,v.CONDITION_NAME,n.CONDITION_NAME,D.SEPARATOR,C.CONDITION_NAME,y.CONDITION_NAME,z.CONDITION_NAME]),H);b.TYPES=G},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap;return(F=function(p){return p?q:x})(A)}function B(A,x){return A.every(function(q){return q.func(x)})}a(3);a(2);a(11);a(4); 1470a(19);var D=a(21);b.__esModule=!0;b.SHORT_NAME_FOR_COMPONENT=b.OPERATION_ID=void 0;b.operationResult=B;a(0);g=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==D(A)&&"function"!=typeof A)return{default:A};if((x=F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]= 1471A[e]}q.default=A;x&&x.set(A,q);return q}(a(29));a=a(210);b.OPERATION_ID="conjunction";g=g.FILTERS_LABELS_CONJUNCTION;b.SHORT_NAME_FOR_COMPONENT=g;(0,a.registerOperation)("conjunction",g,B)},function(g,b,a){function F(k){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n=(0,e.default)(k); 1472if(f){var l=(0,e.default)(this).constructor;n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);return(0,p.default)(this,n)}}a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(3);a(0);a(2);a(11);a(4);var c=a(23),d=a(17);a=g(a(211));var h=new WeakMap;a=function(k){function f(l,r){var m;return(0,B.default)(this,f),m=n.call(this,l,(0,d.extend)(f.DEFAULTS,r)),h.set((0,A.default)(m),{}),m.registerHooks(),m}(0,q.default)(f, 1473k);var n=F(f);return(0,D.default)(f,[{key:"registerHooks",value:function(){var l=this;this.addLocalHook("click",function(){return l.onClick()});this.addLocalHook("keyup",function(r){return l.onKeyup(r)})}},{key:"build",value:function(){(0,x.default)((0,e.default)(f.prototype),"build",this).call(this);var l=h.get(this),r=this.hot.rootDocument.createElement("div");l.input=this._element.firstChild;(0,c.addClass)(this._element,"htUIInput");(0,c.addClass)(r,"htUIInputIcon");this._element.appendChild(r); 1474this.update()}}
1474,{key:"update",value:function(){if(this.isBuilt()){var l=h.get(this).input;l.type=this.options.type;l.placeholder=this.translateIfPossible(this.options.placeholder);l.value=this.translateIfPossible(this.options.value)}}},{key:"focus",value:function(){this.isBuilt()&&h.get(this).input.focus()}},{key:"onClick",value:function(){}},{key:"onKeyup",value:function(l){this.options.value=l.target.value}}],[{key:"DEFAULTS",get:function(){return(0,d.clone)({placeholder:"",type:"text",tagName:"input"})}}]), 1475f}(a.default);b.default=a},function(g,b,a){function F(S,R){var O=Object.keys(S);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(S);R&&(N=N.filter(function(Q){return Object.getOwnPropertyDescriptor(S,Q).enumerable}));O.push.apply(O,N)}return O}function B(S){for(var R=1;R<arguments.length;R++){var O=null!=arguments[R]?arguments[R]:{};R%2?F(Object(O),!0).forEach(function(N){(0,r.default)(S,N,O[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(O)): 1476F(Object(O)).forEach(function(N){Object.defineProperty(S,N,Object.getOwnPropertyDescriptor(O,N))})}return S}function D(S){var R=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(O){return!1}}();return function(){var O=(0,l.default)(S);if(R){var N=(0,l.default)(this).constructor;O=Reflect.construct(O,arguments,N)}else O=O.apply(this, 1477arguments);return(0,n.default)(this,O)}}function A(S,R,O){if(R.has(S))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;R.set(S,O)}a(7);a(53);a(8);a(39);a(19);a(85);var x=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.Formulas=void 0;a(18);a(0);a(27);a(3);a(54);a(2);a(4);a(36);a(42);a(49);a(62);a(75);a(11);var q=x(a(43)),p=x(a(21)),e=x(a(34)),c=x(a(5)),d=x(a(6)),h=x(a(44)),k=x(a(30)),f=x(a(15)),n=x(a(16)),l=x(a(14)),r=x(a(41)),m=x(a(110)),t=x(a(109)); 1478g=a(50);var u=x(a(119)),w=a(92),v=a(47),C=a(31),y=a(1029),z=a(1030),E=a(650),H=a(150),G=a(97);a=x(a(71));b.PLUGIN_KEY="formulas";b.PLUGIN_PRIORITY=260;a.default.getSingleton().register("afterNamedExpressionAdded");a.default.getSingleton().register("afterNamedExpressionRemoved");a.default.getSingleton().register("afterSheetAdded");a.default.getSingleton().register("afterSheetRemoved");a.default.getSingleton().register("afterSheetRenamed");a.default.getSingleton().register("afterFormulasValuesUpdate"); 1479var I=function(S){return"UndoRedo.undo"===S||"UndoRedo.redo"===S||"auto"===S},K=new WeakMap,J=new WeakMap,P=new WeakMap;a=function(S){function R(){var N;(0,c.default)(this,R);for(var Q=arguments.length,M=Array(Q),T=0;T<Q;T++)M[T]=arguments[T];return N=O.call.apply(O,[this].concat(M)),A((0,h.default)(N),K,{writable:!0,value:!1}),A((0,h.default)(N),J,{writable:!0,value:!1}),A((0,h.default)(N),P,{writable:!0,value:[["valuesUpdated",function(){return N.onEngineValuesUpdated.apply(N,arguments)}],["namedExpressionAdded", 1480function(){return N.onEngineNamedExpressionsAdded.apply(N,arguments)}],["namedExpressionRemoved",function(){return N.onEngineNamedExpressionsRemoved.apply(N,arguments)}],["sheetAdded",function(){return N.onEngineSheetAdded.apply(N,arguments)}],["sheetRenamed",function(){return N.onEngineSheetRenamed.apply(N,arguments)}],["sheetRemoved",function(){return N.onEngineSheetRemoved.apply(N,arguments)}]]}),(0,r.default)((0,h.default)(N),"staticRegister",(0,u.default)("formulas")),(0,r.default)((0,h.default)(N), 1481"engine",null),(0,r.default)((0,h.default)(N),"sheetName",null),N}(0,f.default)(R,S);var O=D(R);return(0,d.default)(R,[{key:"sheetId",get:function(){return null===this.sheetName?null:this.engine.getSheetId(this.sheetName)}},{key:"isEnabled",value:function(){return!!this.hot.getSettings().formulas}},{key:"enablePlugin",value:function(){var N,Q=this;this.enabled||((this.engine=null!==(N=(0,y.setupEngine)(this.hot))&&void 0!==N?N:this.engine,this.engine)?(null===this.sheetName||this.engine.doesSheetExist(this.sheetName)|| 1482(N=this.addSheet(this.sheetName,this.hot.getSourceDataArray()),!1!==N&&(this.sheetName=N)),this.addHook("beforeLoadData",function(){return Q.onBeforeLoadData.apply(Q,arguments)}),this.addHook("afterLoadData",function(){return Q.onAfterLoadData.apply(Q,arguments)}),this.addHook("modifyData",function(){return Q.onModifyData.apply(Q,arguments)}),this.addHook("modifySourceData",function(){return Q.onModifySourceData.apply(Q,arguments)}),this.addHook("beforeValidate",function(){return Q.onBeforeValidate.apply(Q, 1483arguments)}),this.addHook("afterSetSourceDataAtCell",function(){return Q.onAfterSetSourceDataAtCell.apply(Q,arguments)}),this.addHook("afterSetDataAtCell",function(){return Q.onAfterSetDataAtCell.apply(Q,arguments)}),this.addHook("afterSetDataAtRowProp",function(){return Q.onAfterSetDataAtCell.apply(Q,arguments)}),this.addHook("beforeCreateRow",function(){return Q.onBeforeCreateRow.apply(Q,arguments)}),this.addHook("beforeCreateCol",function(){return Q.onBeforeCreateCol.apply(Q,arguments)}),this.addHook("afterCreateRow", 1484function(){return Q.onAfterCreateRow.apply(Q,arguments)}),this.addHook("afterCreateCol",function(){return Q.onAfterCreateCol.apply(Q,arguments)}),this.addHook("beforeRemoveRow",function(){return Q.onBeforeRemoveRow.apply(Q,arguments)}),this.addHook("beforeRemoveCol",function(){return Q.onBeforeRemoveCol.apply(Q,arguments)}),this.addHook("afterRemoveRow",function(){return Q.onAfterRemoveRow.apply(Q,arguments)}),this.addHook("afterRemoveCol",function(){return Q.onAfterRemoveCol.apply(Q,arguments)}), 1485this.addHook("beforeUndo",function(M){"row_move"!==(null==M?void 0:M.actionType)&&Q.engine.undo()}),this.addHook("beforeRedo",function(M){"row_move"!==(null==M?void 0:M.actionType)&&Q.engine.redo()}),this.addHook("afterDetachChild",function(){return Q.onAfterDetachChild.apply(Q,arguments)}),this.addHook("beforeAutofill",function(){return Q.onBeforeAutofill.apply(Q,arguments)}),(0,t.default)(this,P).forEach(function(M){M=(0,e.default)(M,2);return Q.engine.on(M[0],M[1])}),(0,k.default)((0,l.default)(R.prototype), 1486"enablePlugin",this).call(this)):(0,w.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance."))}},{key:"disablePlugin",value:function(){var N=this;(0,t.default)(this,P).forEach(function(Q){Q=(0,e.default)(Q,2);return N.engine.off(Q[0],Q[1])});(0,y.unregisterEngine)(this.engine,this.hot);this.engine=null;(0,k.default)((0,l.default)(R.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(N){this.engine.updateConfig((0,E.getEngineSettingsWithOverrides)(this.hot.getSettings())); 1487var Q=this.hot.getSettings().formulas;((0,C.isDefined)(Q)&&(0,C.isDefined)(Q.sheetName)&&Q.sheetName!==this.sheetName&&this.switchSheet(Q.sheetName),N.data||null!==this.sheetName)||((Q=this.hot.getSettings().formulas.sheetName)&&this.engine.doesSheetExist(Q)?this.switchSheet(this.sheetName):this.sheetName=this.addSheet(null!=Q?Q:void 0,this.hot.getSourceDataArray()));(0,k.default)((0,l.default)(R.prototype),"updatePlugin",this).call(this,N)}},{key:"destroy",value:function(){var N=this;(0,t.default)(this, 1488P).forEach(function(Q){var M,T=(0,e.default)(Q,2);Q=T[0];T=T[1];return null===(M=N.engine)||void 0===M?void 0:M.off(Q,T)});(0,m.default)(this,P,null);(0,y.unregisterEngine)(this.engine,this.hot);this.engine=null;(0,k.default)((0,l.default)(R.prototype),"destroy",this).call(this)}},{key:"getPhysicalIndexPosition",value:function(N,Q,M,T,Z){return!Z&&N>=M?T+(N-M):Q}},{key:"toPhysicalRowPosition",value:function(N){var Q=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return this.getPhysicalIndexPosition(N, 1489this.hot.toPhysicalRow(N),this.hot.countRows(),this.hot.countSourceRows(),Q)}},{key:"toPhysicalColumnPosition",value:function(N){var Q=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return this.getPhysicalIndexPosition(N,this.hot.toPhysicalColumn(N),this.hot.countCols(),this.hot.countSourceCols(),Q)}},{key:"addSheet",value:function(N,Q){if((0,C.isDefined)(Q)&&!(0,H.isArrayOfArrays)(Q))return(0,w.warn)("The provided data should be an array of arrays."),!1;if(null!=N&&this.engine.doesSheetExist(N))return(0,w.warn)("Sheet with the provided name already exists."), 1490!1;try{var M=this.engine.addSheet(null!=N?N:void 0);return Q&&this.engine.setSheetContent(this.engine.getSheetId(M),Q),M}catch(T){return(0,w.warn)(T.message),!1}}},{key:"switchSheet",value:function(N){this.engine.doesSheetExist(N)?(this.sheetName=N,N=this.engine.getSheetSerialized(this.sheetId),0<N.length&&this.hot.loadData(N,"".concat((0,G.toUpperCaseFirst)("formulas"),".switchSheet"))):(0,w.error)("The sheet named `".concat(N,"` does not exist, switch aborted."))}},{key:"getCellType",value:function(N, 1491Q){var M=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.sheetId,T=this.hot.toPhysicalRow(N),Z=this.hot.toPhysicalColumn(Q);return null!==T&&null!==Z?this.engine.getCellType({sheet:M,row:T,col:Z}):"EMPTY"}},{key:"isFormulaCellType",value:function(N,Q){var M=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.sheetId,T=this.hot.toPhysicalRow(N),Z=this.hot.toPhysicalColumn(Q);return null!==T&&null!==Z&&this.engine.doesCellHaveFormula({sheet:M,row:T,col:Z})}},{key:"renderDependentSheets", 1492value:function(N){var Q=this,M=1<arguments.length&&void 0!==arguments[1]&&arguments[1],T=new Set;
1492N.forEach(function(Z){var L;Z=null==Z||null===(L=Z.address)||void 0===L?void 0:L.sheet;void 0!==Z&&(T.has(Z)||T.add(Z))});(0,y.getRegisteredHotInstances)(this.engine).forEach(function(Z,L){var U;(M||L!==Q.sheetId)&&T.has(L)&&(Z.render(),null===(U=Z.view)||void 0===U||U.adjustElementsSize())})}},{key:"validateDependentCells",value:function(N){var Q=this,M=function(Z){var L;Z=null!==(L=null==Z?void 0:Z.address)&& 1493void 0!==L?L:{};L=Z.row;var U=Z.col;Z=Z.sheet;return(0,C.isDefined)(Z)?"".concat(Z,":").concat(L,"x").concat(U):""},T=new Set((1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).map(function(Z){return M(Z)}));N.forEach(function(Z){var L,U,V=null!==(L=Z.address)&&void 0!==L?L:{};L=V.row;var Y=V.col;V=(0,C.isDefined)(L)?Q.hot.toVisualRow(L):null;L=(0,C.isDefined)(Y)?Q.hot.toVisualColumn(Y):null;null!==V&&null!==L&&(Y=null==Z||null===(U=Z.address)||void 0===U?void 0:U.sheet,Z=M(Z),void 0===Y|| 1494T.has(Z)||(Z=(0,y.getRegisteredHotInstances)(Q.engine).get(Y))&&Z.validateCell(Z.getDataAtCell(V,L),Z.getCellMeta(V,L),function(){}))})}},{key:"syncChangeWithEngine",value:function(N,Q,M){N={row:this.toPhysicalRowPosition(N),col:this.toPhysicalColumnPosition(Q),sheet:this.sheetId};if(this.engine.isItPossibleToSetCellContents(N))return this.engine.setCellContents(N,M);(0,w.warn)("Not possible to set cell data at ".concat(JSON.stringify(N)))}},{key:"onBeforeValidate",value:function(N,Q,M){M=this.hot.propToCol(M); 1495return this.isFormulaCellType(Q,M)?(N={row:this.hot.toPhysicalRow(Q),col:this.hot.toPhysicalColumn(M),sheet:this.sheetId},N=this.engine.getCellValue(N),"object"===(0,p.default)(N)&&null!==N?N.value:N):N}},{key:"onBeforeAutofill",value:function(N,Q,M){var T=this;N=function(Z){return B(B({},Z),{},{sheet:T.sheetId})};Q={start:N(Q.getTopStartCorner()),end:N(Q.getBottomEndCorner())};M={start:N(M.getTopStartCorner()),end:N(M.getBottomEndCorner())};return!1!==this.engine.isItPossibleToSetCellContents(M)&& 1496this.engine.getFillRangeData(Q,M)}},{key:"onBeforeLoadData",value:function(N,Q){(2<arguments.length&&void 0!==arguments[2]?arguments[2]:"").includes((0,G.toUpperCaseFirst)("formulas"))||(0,m.default)(this,J,(0,C.isUndefined)(this.hot.getSettings().data))}},{key:"onAfterLoadData",value:function(N,Q){if(!(2<arguments.length&&void 0!==arguments[2]?arguments[2]:"").includes((0,G.toUpperCaseFirst)("formulas")))if(this.sheetName=(0,y.setupSheet)(this.engine,this.hot.getSettings().formulas.sheetName),(0,t.default)(this, 1497J))this.switchSheet(this.sheetName);else{var M=this.hot.getSourceDataArray();this.engine.isItPossibleToReplaceSheetContent(this.sheetId,M)&&((0,m.default)(this,K,!0),M=this.engine.setSheetContent(this.sheetId,this.hot.getSourceDataArray()),this.renderDependentSheets(M),(0,m.default)(this,K,!1))}}},{key:"onModifyData",value:function(N,Q,M,T){if("get"===T&&!(0,t.default)(this,K)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){T=this.hot.toVisualRow(N);if(!this.isFormulaCellType(T, 1498Q)&&"ARRAY"!==this.getCellType(T,Q))return void((0,z.isEscapedFormulaExpression)(M.value)&&(M.value=(0,z.unescapeFormulaExpression)(M.value)));
1498N={row:N,col:this.toPhysicalColumnPosition(Q),sheet:this.sheetId};N=this.engine.getCellValue(N);N="object"===(0,p.default)(N)&&null!==N?N.value:N;M.value=N}}},{key:"onModifySourceData",value:function(N,Q,M,T){"get"===T&&!(0,t.default)(this,K)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)&&(T=this.hot.toVisualRow(N),Q=this.hot.propToCol(Q), 1499this.isFormulaCellType(T,Q)||"ARRAY"===this.getCellType(T,Q))&&(T=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName)),0!==T.width||0!==T.height)&&(N={row:N,col:this.toPhysicalColumnPosition(Q),sheet:this.sheetId},M.value=this.engine.getCellSerialized(N))}},{key:"onAfterSetDataAtCell",value:function(N,Q){var M=this;if(!I(Q)){var T=[],Z=[];Q=this.engine.batch(function(){N.forEach(function(L){var U=(0,e.default)(L,4);L=U[0];var V=U[3];U=M.hot.propToCol(U[1]);var Y=M.hot.toPhysicalRow(L), 1500aa=M.hot.toPhysicalColumn(U),W={row:Y,col:aa,sheet:M.sheetId};null!==Y&&null!==aa?M.syncChangeWithEngine(L,U,V):T.push([L,U,V]);Z.push({address:W})})});T.length&&this.hot.addHookOnce("afterChange",function(){var L=M.engine.batch(function(){T.forEach(function(U){U=(0,e.default)(U,3);M.syncChangeWithEngine(U[0],U[1],U[2])})});M.renderDependentSheets(L,!0)});this.renderDependentSheets(Q);this.validateDependentCells(Q,Z)}}},{key:"onAfterSetSourceDataAtCell",value:function(N,Q){var M=this;if(!I(Q)){var T= 1501[],Z=[];N.forEach(function(L){var U=(0,e.default)(L,4),V=U[0];L=U[3];U=M.hot.propToCol(U[1]);(0,v.isNumeric)(U)&&(V={row:V,col:M.toPhysicalColumnPosition(U),sheet:M.sheetId},M.engine.isItPossibleToSetCellContents(V)?(Z.push({address:V}),T.push.apply(T,(0,q.default)(M.engine.setCellContents(V,L)))):(0,w.warn)("Not possible to set source cell data at ".concat(JSON.stringify(V))))});this.renderDependentSheets(T);this.validateDependentCells(T,Z)}}},{key:"onBeforeCreateRow",value:function(N,Q){if(null=== 1502this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[this.toPhysicalRowPosition(N),Q]))return!1}},{key:"onBeforeCreateCol",value:function(N,Q){if(null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[this.toPhysicalColumnPosition(N),Q]))return!1}},{key:"onBeforeRemoveRow",value:function(N,Q,M){var T=this;return!1!==M.every(function(Z){return T.engine.isItPossibleToRemoveRows(T.sheetId, 1503[Z,1])})&&void 0}},{key:"onBeforeRemoveCol",value:function(N,Q,M){var T=this;return!1!==M.every(function(Z){return T.engine.isItPossibleToRemoveColumns(T.sheetId,[Z,1])})&&void 0}},{key:"onAfterCreateRow",value:function(N,Q,M){I(M)||(N=this.engine.addRows(this.sheetId,[this.toPhysicalRowPosition(N),Q]),this.renderDependentSheets(N))}},{key:"onAfterCreateCol",value:function(N,Q,M){I(M)||(N=this.engine.addColumns(this.sheetId,[this.toPhysicalColumnPosition(N),Q]),this.renderDependentSheets(N))}},{key:"onAfterRemoveRow", 1504value:function(N,Q,M,T){var Z=this;if(!I(T)){var L=M.sort().reverse();N=this.engine.batch(function(){L.forEach(function(U){Z.engine.removeRows(Z.sheetId,[U,1])})});this.renderDependentSheets(N)}}},{key:"onAfterRemoveCol",value:function(N,Q,M,T){var Z=this;if(!I(T)){var L=M.sort().reverse();N=this.engine.batch(function(){L.forEach(function(U){Z.engine.removeColumns(Z.sheetId,[U,1])})});this.renderDependentSheets(N)}}},{key:"onAfterDetachChild",value:function(N,Q,M){var T,Z=this;(0,m.default)(this, 1505K,!0);N=this.hot.getSourceDataArray(M,0,M+((null===(T=Q.__children)||void 0===T?void 0:T.length)||0),this.hot.countSourceCols());(0,m.default)(this,K,!1);N.forEach(function(L,U){L.forEach(function(V,Y){Z.engine.setCellContents({col:Y,row:M+U,sheet:Z.sheetId},[[V]])})})}},{key:"onEngineValuesUpdated",value:function(N){this.hot.runHooks("afterFormulasValuesUpdate",N)}},{key:"onEngineNamedExpressionsAdded",value:function(N,Q){this.hot.runHooks("afterNamedExpressionAdded",N,Q)}},{key:"onEngineNamedExpressionsRemoved", 1506value:function(N,Q){this.hot.runHooks("afterNamedExpressionRemoved",N,Q)}},{key:"onEngineSheetAdded",value:function(N){this.hot.runHooks("afterSheetAdded",N)}},{key:"onEngineSheetRenamed",value:function(N,Q){this.hot.runHooks("afterSheetRenamed",N,Q)}},{key:"onEngineSheetRemoved",value:function(N,Q){this.hot.runHooks("afterSheetRemoved",N,Q)}}],[{key:"PLUGIN_KEY",get:function(){return"formulas"}},{key:"PLUGIN_PRIORITY",get:function(){return 260}}]),R}(g.BasePlugin);b.Formulas=a},function(g,b,a){g= 1507a(1);b.__esModule=!0;b.default=void 0;
1507var F,B,D,A,x=g(a(78)),q=g(a(5)),p=g(a(6)),e=a(79);a=function(){function c(d,h,k,f,n,l){(0,q.default)(this,c);this.row=d;this.col=h;this.rowspan=k;this.colspan=f;this.removed=!1;this.cellCoordsFactory=n;this.cellRangeFactory=l}return(0,p.default)(c,[{key:"normalize",value:function(d){var h=d.countRows();d=d.countCols();0>this.row?this.row=0:this.row>h-1&&(this.row=h-1);0>this.col?this.col=0:this.col>d-1&&(this.col=d-1);this.row+this.rowspan>h-1&&(this.rowspan= 1508h-this.row);this.col+this.colspan>d-1&&(this.colspan=d-this.col)}},{key:"includes",value:function(d,h){return this.row<=d&&this.col<=h&&this.row+this.rowspan-1>=d&&this.col+this.colspan-1>=h}},{key:"includesHorizontally",value:function(d){return this.col<=d&&this.col+this.colspan-1>=d}},{key:"includesVertically",value:function(d){return this.row<=d&&this.row+this.rowspan-1>=d}},{key:"shift",value:function(d,h){var k=d[0]||d[1],f=h+Math.abs(d[0]||d[1])-1,n=d[0]?"colspan":"rowspan";d=d[0]?"col":"row"; 1509var l=Math.min(h,f);f=Math.max(h,f);var r=this[d],m=this[d]+this[n]-1;if(r>=h&&(this[d]+=k),0<k)h<=m&&h>r&&(this[n]+=k);else if(0>k){if(l<=r&&f>=m)return this.removed=!0,!1;r>=l&&r<=f?(h=f-r+1,this[d]-=Math.abs(k)-h+k,this[n]-=h):r<=l&&m>=f?this[n]+=k:r<=l&&m>=l&&m<f&&(this[n]-=m-l+1)}return!0}},{key:"isFarther",value:function(d,h){return!d||("down"===h?d.row+d.rowspan-1<this.row+this.rowspan-1:"up"===h?d.row>this.row:"right"===h?d.col+d.colspan-1<this.col+this.colspan-1:"left"===h?d.col>this.col: 1510null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(d){return(0,e.toSingleLine)(F||(F=(0,x.default)(["The merged cell declared with {row: ",", col: ", 1511", \n rowspan: ",", colspan: ","} contains negative values, which is \n not supported. It will not be added to the collection."],["The merged cell declared with {row: ",", col: ",",\\x20\n rowspan: ",", colspan: ","} contains negative values, which is\\x20\n not supported. It will not be added to the collection."])),d.row,d.col,d.rowspan,d.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(d){return(0,e.toSingleLine)(B||(B=(0,x.default)(["The merged cell declared at [", 1512", ","] is positioned \n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."],["The merged cell declared at [",", ","] is positioned\\x20\n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."])),d.row,d.col)}},{key:"IS_SINGLE_CELL",value:function(d){return(0,e.toSingleLine)(D||(D=(0,x.default)(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'], 1513["The merged cell declared at [",", ",'] has both "rowspan"\\x20\n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'])),d.row,d.col)}},{key:"ZERO_SPAN_WARNING",value:function(d){return(0,e.toSingleLine)(A||(A=(0,x.default)(["The merged cell declared at [",", ",'] has "rowspan" \n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has "rowspan"\\x20\n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'])), 1514d.row,d.col)}},{key:"containsNegativeValues",value:function(d){return 0>d.row||0>d.col||0>d.rowspan||0>d.colspan}},{key:"isSingleCell",value:function(d){return 1===d.colspan&&1===d.rowspan}},{key:"containsZeroSpan",value:function(d){return 0===d.colspan||0===d.rowspan}},{key:"isOutOfBounds",value:function(d,h,k){return 0>d.row||0>d.col||d.row>=h||d.row+d.rowspan-1>=h||d.col>=k||d.col+d.colspan-1>=k}}]),c}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(6)),B=g(a(5)); 1515a=(0,F.default)(function q(A,x){(0,B.default)(this,q);this.hot=x;this.plugin=A});b.default=a},function(g,b,a){var F=a(61),B=a(63),D=a(177),A=a(136),x=a(660);b=a(59);var q=TypeError,p=b("toPrimitive");
1515g.exports=function(e,c){if(!B(e)||D(e))return e;var d,h=A(e,p);if(h){if(void 0===c&&(c="default"),d=F(h,e,c),!B(d)||D(d))return d;throw q("Can't convert object to primitive value");}return void 0===c&&(c="number"),x(e,c)}},function(g,b,a){b=a(153);g.exports=b&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}, 1516function(g,b,a){b=a(72);var F=a(38),B=a(215);g.exports=!b&&!F(function(){return 7!=Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a})},function(g,b,a){b=a(72);a=a(38);g.exports=b&&a(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},function(g,b,a){var F=a(45);b=a(56);a=a(216);F=F.WeakMap;g.exports=b(F)&&/native code/.test(a(F))},function(g,b,a){var F=a(65),B=a(341),D=a(114),A=a(80);g.exports=function(x,q,p){for(var e=B(q),c=A.f, 1517d=D.f,h=0;h<e.length;h++){var k=e[h];F(x,k)||p&&F(p,k)||c(x,k,d(q,k))}}},function(g,b,a){b=a(100);var F=a(35),B=a(157),D=a(218),A=a(66),x=F([].concat);g.exports=b("Reflect","ownKeys")||function(q){var p=B.f(A(q)),e=D.f;return e?x(p,e(q)):p}},function(g,b,a){b=a(35);var F=a(65),B=a(99),D=a(254).indexOf,A=a(179),x=b([].push);g.exports=function(q,p){var e;q=B(q);var c=0,d=[];for(e in q)!F(A,e)&&F(q,e)&&x(d,e);for(;p.length>c;)F(q,e=p[c++])&&(~D(d,e)||x(d,e));return d}},function(g,b){var a=Math.ceil, 1518F=Math.floor;g.exports=Math.trunc||function(B){B=+B;return(0<B?F:a)(B)}},function(g,b,a){b=a(38);g.exports=!b(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})},function(g,b,a){var F=a(221),B=a(155),D=TypeError;g.exports=function(A){if(F(A))return A;throw D(B(A)+" is not a constructor");}},function(g,b,a){g=a(72);var F=a(338),B=a(80),D=a(66),A=a(99),x=a(182);b.f=g&&!F?Object.defineProperties:function(q,p){D(q);var e,c=A(p);p=x(p);for(var d=p.length, 1519h=0;d>h;)B.f(q,e=p[h++],c[e]);return q}},function(g,b,a){b=a(100);g.exports=b("document","documentElement")},function(g,b,a){var F=a(61),B=a(66),D=a(136);g.exports=function(A,x,q){var p;B(A);try{if(!(p=D(A,"return"))){if("throw"===x)throw q;return q}p=F(p,A)}catch(c){var e=!0;p=c}if("throw"===x)throw q;if(e)throw p;return B(p),q}},function(g,b,a){b=a(59);var F=a(185),B=b("iterator"),D=Array.prototype;g.exports=function(A){return void 0!==A&&(F.Array===A||D[B]===A)}},function(g,b,a){var F=a(61),B= 1520a(115),D=a(66),A=a(155),x=a(263),q=TypeError;g.exports=function(p,e){var c=2>arguments.length?x(p):e;if(B(c))return D(F(c,p));throw q(A(p)+" is not iterable");}},function(g,b,a){var F,B,D;b=a(38);var A=a(56),x=a(140),q=a(219),p=a(96),e=a(59);a=a(112);var c=e("iterator");e=!1;[].keys&&("next"in(D=[].keys())?(B=q(q(D)))!==Object.prototype&&(F=B):e=!0);null==F||b(function(){var d={};return F[c].call(d)!==d})?F={}:a&&(F=x(F));A(F[c])||p(F,c,function(){return this});g.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:e}}, 1521function(g,b,a){var F=a(66);g.exports=function(){var B=F(this),D="";return B.hasIndices&&(D+="d"),B.global&&(D+="g"),B.ignoreCase&&(D+="i"),B.multiline&&(D+="m"),B.dotAll&&(D+="s"),B.unicode&&(D+="u"),B.unicodeSets&&(D+="v"),B.sticky&&(D+="y"),D}},function(g,b,a){b=a(38);var F=a(45).RegExp;g.exports=b(function(){var B=F(".","s");return!(B.dotAll&&B.exec("\n")&&"s"===B.flags)})},function(g,b,a){b=a(38);var F=a(45).RegExp;g.exports=b(function(){var B=F("(?\x3ca\x3eb)","g");return"b"!==B.exec("b").groups.a|| 1522"bc"!=="b".replace(B,"$\x3ca\x3ec")})},function(g,b,a){g=a(59);b.f=g},function(g,b,a){b=a(153);g.exports=b&&!!Symbol.for&&!!Symbol.keyFor},function(g,b){g.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0, 1523SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(g,b,a){b=(b=a(215)("span").classList)&&b.constructor&&b.constructor.prototype;g.exports=b===Object.prototype?void 0:b},function(g,b){var a=TypeError;g.exports=function(F){if(9007199254740991<F)throw a("Maximum allowed index exceeded");return F}},function(g,b,a){function F(P){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator? 1524function(S){return typeof S}:function(S){return S&&"function"==typeof Symbol&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(P)}function B(P,S,R){return(B=D()?Reflect.construct.bind():function(O,N,Q){var M=[null];M.push.apply(M,N);O=new (Function.bind.apply(O,M));return Q&&A(O,Q.prototype),O}).apply(null,arguments)}function D(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1525[],function(){})),!0}catch(P){return!1}}function A(P,S){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,O){return R.__proto__=O,R})(P,S)}function x(){function P(ma,pa,sa){return Object.defineProperty(ma,pa,{value:sa,enumerable:!0,configurable:!0,writable:!0}),ma[pa]}function S(ma,pa,sa,va){pa=Object.create((pa&&pa.prototype instanceof O?pa:O).prototype);va=new V(va||[]);return pa._invoke=function(Aa,Fa,Ea){var za="suspendedStart";return function(ea,la){if("executing"===za)throw Error("Generator is already running"); 1526if("completed"===za){if("throw"===ea)throw la;return aa()}Ea.method=ea;for(Ea.arg=la;;){if(ea=Ea.delegate)if(ea=Z(ea,Ea)){if(ea===ha)continue;return ea}if("next"===Ea.method)Ea.sent=Ea._sent=Ea.arg;else if("throw"===Ea.method){if("suspendedStart"===za)throw za="completed",Ea.arg;Ea.dispatchException(Ea.arg)}else"return"===Ea.method&&Ea.abrupt("return",Ea.arg);za="executing";ea=R(Aa,Fa,Ea);if("normal"===ea.type){if(za=Ea.done?"completed":"suspendedYield",ea.arg===ha)continue;return{value:ea.arg,done:Ea.done}}"throw"=== 1527ea.type&&(za="completed",Ea.method="throw",Ea.arg=ea.arg)}}}(ma,sa,va),pa}
1527function R(ma,pa,sa){try{return{type:"normal",arg:ma.call(pa,sa)}}catch(va){return{type:"throw",arg:va}}}function O(){}function N(){}function Q(){}function M(ma){["next","throw","return"].forEach(function(pa){P(ma,pa,function(sa){return this._invoke(pa,sa)})})}function T(ma,pa){var sa;this._invoke=function(va,Aa){function Fa(){return new pa(function(Ea,za){!function Da(la,ta,ua,xa){la=R(ma[la],ma,ta);if("throw"!==la.type){var Ga= 1528la.arg;return(la=Ga.value)&&"object"==F(la)&&ia.call(la,"__await")?pa.resolve(la.__await).then(function(Ha){Da("next",Ha,ua,xa)},function(Ha){Da("throw",Ha,ua,xa)}):pa.resolve(la).then(function(Ha){Ga.value=Ha;ua(Ga)},function(Ha){return Da("throw",Ha,ua,xa)})}xa(la.arg)}(va,Aa,Ea,za)})}return sa=sa?sa.then(Fa,Fa):Fa()}}function Z(ma,pa){var sa=ma.iterator[pa.method];if(void 0===sa){if(pa.delegate=null,"throw"===pa.method){if(ma.iterator.return&&(pa.method="return",pa.arg=void 0,Z(ma,pa),"throw"=== 1529pa.method))return ha;pa.method="throw";pa.arg=new TypeError("The iterator does not provide a 'throw' method")}return ha}sa=R(sa,ma.iterator,pa.arg);return"throw"===sa.type?(pa.method="throw",pa.arg=sa.arg,pa.delegate=null,ha):(sa=sa.arg)?sa.done?(pa[ma.resultName]=sa.value,pa.next=ma.nextLoc,"return"!==pa.method&&(pa.method="next",pa.arg=void 0),pa.delegate=null,ha):sa:(pa.method="throw",pa.arg=new TypeError("iterator result is not an object"),pa.delegate=null,ha)}function L(ma){var pa={tryLoc:ma[0]}; 15301 in ma&&(pa.catchLoc=ma[1]);2 in ma&&(pa.finallyLoc=ma[2],pa.afterLoc=ma[3]);this.tryEntries.push(pa)}function U(ma){var pa=ma.completion||{};pa.type="normal";delete pa.arg;ma.completion=pa}function V(ma){this.tryEntries=[{tryLoc:"root"}];ma.forEach(L,this);this.reset(!0)}function Y(ma){if(ma){var pa=ma[fa];if(pa)return pa.call(ma);if("function"==typeof ma.next)return ma;if(!isNaN(ma.length)){var sa=-1;pa=function Aa(){for(;++sa<ma.length;)if(ia.call(ma,sa))return Aa.value=ma[sa],Aa.done=!1,Aa;return Aa.value= 1531void 0,Aa.done=!0,Aa};return pa.next=pa}}return{next:aa}}function aa(){return{value:void 0,done:!0}}x=function(){return W};var W={},ca=Object.prototype,ia=ca.hasOwnProperty,ba="function"==typeof Symbol?Symbol:{},fa=ba.iterator||"@@iterator",ja=ba.asyncIterator||"@@asyncIterator",qa=ba.toStringTag||"@@toStringTag";try{P({},"")}catch(ma){P=function(pa,sa,va){return pa[sa]=va}}W.wrap=S;var ha={};ba={};P(ba,fa,function(){return this});var na=Object.getPrototypeOf;(na=na&&na(na(Y([]))))&&na!==ca&&ia.call(na, 1532fa)&&(ba=na);var oa=Q.prototype=O.prototype=Object.create(ba);return N.prototype=Q,P(oa,"constructor",Q),P(Q,"constructor",N),N.displayName=P(Q,qa,"GeneratorFunction"),W.isGeneratorFunction=function(ma){ma="function"==typeof ma&&ma.constructor;return!!ma&&(ma===N||"GeneratorFunction"===(ma.displayName||ma.name))},W.mark=function(ma){return Object.setPrototypeOf?Object.setPrototypeOf(ma,Q):(ma.__proto__=Q,P(ma,qa,"GeneratorFunction")),ma.prototype=Object.create(oa),ma},W.awrap=function(ma){return{__await:ma}}, 1533M(T.prototype),P(T.prototype,ja,function(){return this}),W.AsyncIterator=T,W.async=function(ma,pa,sa,va,Aa){void 0===Aa&&(Aa=Promise);var Fa=new T(S(ma,pa,sa,va),Aa);return W.isGeneratorFunction(pa)?Fa:Fa.next().then(function(Ea){return Ea.done?Ea.value:Fa.next()})},M(oa),P(oa,qa,"Generator"),P(oa,fa,function(){return this}),P(oa,"toString",function(){return"[object Generator]"}),W.keys=function(ma){var pa=[],sa;for(sa in ma)pa.push(sa);return pa.reverse(),function Aa(){for(;pa.length;){var Fa=pa.pop(); 1534if(Fa in ma)return Aa.value=Fa,Aa.done=!1,Aa}return Aa.done=!0,Aa}},W.values=Y,V.prototype={constructor:V,reset:function(ma){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(U),!ma)for(var pa in this)"t"===pa.charAt(0)&&ia.call(this,pa)&&!isNaN(+pa.slice(1))&&(this[pa]=void 0)},stop:function(){this.done=!0;var ma=this.tryEntries[0].completion;if("throw"===ma.type)throw ma.arg;return this.rval},dispatchException:function(ma){function pa(ea, 1535la){return Fa.type="throw",Fa.arg=ma,sa.next=ea,la&&(sa.method="next",sa.arg=void 0),!!la}if(this.done)throw ma;for(var sa=this,va=this.tryEntries.length-1;0<=va;--va){var Aa=this.tryEntries[va],Fa=Aa.completion;if("root"===Aa.tryLoc)return pa("end");if(Aa.tryLoc<=this.prev){var Ea=ia.call(Aa,"catchLoc"),za=ia.call(Aa,"finallyLoc");if(Ea&&za){if(this.prev<Aa.catchLoc)return pa(Aa.catchLoc,!0);if(this.prev<Aa.finallyLoc)return pa(Aa.finallyLoc)}
1535else if(Ea){if(this.prev<Aa.catchLoc)return pa(Aa.catchLoc, 1536!0)}else{if(!za)throw Error("try statement without catch or finally");if(this.prev<Aa.finallyLoc)return pa(Aa.finallyLoc)}}}},abrupt:function(ma,pa){for(var sa=this.tryEntries.length-1;0<=sa;--sa){var va=this.tryEntries[sa];if(va.tryLoc<=this.prev&&ia.call(va,"finallyLoc")&&this.prev<va.finallyLoc){var Aa=va;break}}Aa&&("break"===ma||"continue"===ma)&&Aa.tryLoc<=pa&&pa<=Aa.finallyLoc&&(Aa=null);sa=Aa?Aa.completion:{};return sa.type=ma,sa.arg=pa,Aa?(this.method="next",this.next=Aa.finallyLoc,ha):this.complete(sa)}, 1537complete:function(ma,pa){if("throw"===ma.type)throw ma.arg;return"break"===ma.type||"continue"===ma.type?this.next=ma.arg:"return"===ma.type?(this.rval=this.arg=ma.arg,this.method="return",this.next="end"):"normal"===ma.type&&pa&&(this.next=pa),ha},finish:function(ma){for(var pa=this.tryEntries.length-1;0<=pa;--pa){var sa=this.tryEntries[pa];if(sa.finallyLoc===ma)return this.complete(sa.completion,sa.afterLoc),U(sa),ha}},catch:function(ma){for(var pa=this.tryEntries.length-1;0<=pa;--pa){var sa=this.tryEntries[pa]; 1538if(sa.tryLoc===ma){ma=sa.completion;if("throw"===ma.type){var va=ma.arg;U(sa)}return va}}throw Error("illegal catch attempt");},delegateYield:function(ma,pa,sa){return this.delegate={iterator:Y(ma),resultName:pa,nextLoc:sa},"next"===this.method&&(this.arg=void 0),ha}},W}function q(P){var S=Array.isArray(P)?d(P):void 0;S||(S="undefined"!=typeof Symbol&&null!=P[Symbol.iterator]||null!=P["@@iterator"]?Array.from(P):void 0);if(!(P=S||c(P)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1539return P}function p(P,S){var R="undefined"!=typeof Symbol&&P[Symbol.iterator]||P["@@iterator"];if(!R){if(Array.isArray(P)||(R=c(P))||S&&P&&"number"==typeof P.length){R&&(P=R);var O=0;S=function(){};return{s:S,n:function(){return O>=P.length?{done:!0}:{done:!1,value:P[O++]}},e:function(T){throw T;},f:S}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var N,Q=!0,M=!1;return{s:function(){R=R.call(P)}, 1540n:function(){var T=R.next();return Q=T.done,T},e:function(T){M=!0;N=T},f:function(){try{Q||null==R.return||R.return()}finally{if(M)throw N;}}}}function e(P,S){if(!(P=function(R){if(Array.isArray(R))return R}(P)||function(R,O){var N=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=N){var Q,M=[],T=!0,Z=!1;try{for(N=N.call(R);!(T=(Q=N.next()).done)&&(M.push(Q.value),!O||M.length!==O);T=!0);}catch(U){Z=!0;var L=U}finally{try{T||null==N.return||N.return()}finally{if(Z)throw L; 1541}}return M}}(P,S)||c(P,S)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return P}function c(P,S){if(P){if("string"==typeof P)return d(P,S);var R=Object.prototype.toString.call(P).slice(8,-1);return"Object"===R&&P.constructor&&(R=P.constructor.name),"Map"===R||"Set"===R?Array.from(P):"Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?d(P,S):void 0}}function d(P,S){(null== 1542S||S>P.length)&&(S=P.length);for(var R=0,O=Array(S);R<S;R++)O[R]=P[R];return O}function h(P,S){for(var R=0;R<S.length;R++){var O=S[R];O.enumerable=O.enumerable||!1;O.configurable=!0;"value"in O&&(O.writable=!0);Object.defineProperty(P,O.key,O)}}a.r(b);a.d(b,"DependencyGraph",function(){return J});a(36);a(26);a(3);a(0);a(54);a(2);a(4);a(18);a(27);a(39);a(22);a(8);a(9);a(10);a(13);a(12);a(86);a(87);a(88);a(89);a(25);a(90);a(62);a(7);var k=a(91),f=a(237),n=a(24),l=a(285),r=a(46),m=a(51),t=a(82),u=a(74), 1543w=a(197),v=a(133),C=a(131),y=a(288),z=a(289),E=a(723),H=a(123),G=a(291),I=a(292),K=a(293),J=function(){function P(O,N,Q,M,T,Z,L,U){var V=this;if(!(this instanceof P))throw new TypeError("Cannot call a class as a function");!0;this.addressMapping=O;this.rangeMapping=N;this.sheetMapping=Q;this.arrayMapping=M;this.stats=T;this.lazilyTransformingAstService=Z;this.functionRegistry=L;this.namedExpressions=U;this.changes=l.ContentChanges.empty();this.dependencyQueryAddresses=function(Y){if(Y instanceof C.RangeVertex)return V.rangeDependencyQuery(Y).map(function(W){W= 1544e(W,2);var ca=W[0];W[1];return ca});Y=V.formulaDependencyQuery(Y);if(void 0!==Y){Y=e(Y,2);var aa=Y[0];return Y[1].map(function(W){return W instanceof u.NamedExpressionDependency?V.namedExpressions.namedExpressionOrPlaceholder(W.name,aa.sheet).address:Object(n.isSimpleCellAddress)(W)?W:Object(k.simpleCellRange)(W.start,W.end)})}return[]};this.dependencyQueryVertices=function(Y){if(Y instanceof C.RangeVertex)return V.rangeDependencyQuery(Y).map(function(W){W=e(W,2);W[0];return W[1]});Y=V.formulaDependencyQuery(Y); 1545if(void 0!==Y){Y=e(Y,2);var aa=Y[0];return Y[1].map(function(W){return W instanceof k.AbsoluteCellRange?V.rangeMapping.fetchRange(W.start,W.end):W instanceof u.NamedExpressionDependency?(W=V.namedExpressions.namedExpressionOrPlaceholder(W.name,aa.sheet),V.addressMapping.fetchCell(W.address)):V.addressMapping.fetchCell(W)})}return[]};this.rangeDependencyQuery=function(Y){var aa,W=[],ca=V.rangeMapping.findSmallerRange(Y.range),ia=ca.smallerRangeVertex;ca=ca.restRange;void 0!==ia&&V.graph.adjacentNodes(ia).has(Y)? 1546(aa=ca,W.push([new k.AbsoluteCellRange(ia.start,ia.end),ia])):aa=Y.range;var ba;Y=p(aa.addresses(V));try{for(Y.s();!(ba=Y.n()).done;
1546){var fa=ba.value,ja=V.addressMapping.getCell(fa);ja instanceof C.EmptyCellVertex&&(ja.address=fa);void 0!==ja&&W.push([fa,ja])}}catch(qa){Y.e(qa)}finally{Y.f()}return W};this.formulaDependencyQuery=function(Y){if(Y instanceof H.FormulaVertex){var aa=Y.getAddress(V.lazilyTransformingAstService);Y=Y.getFormula(V.lazilyTransformingAstService);Y=Object(u.collectDependencies)(Y, 1547V.functionRegistry);return[aa,Object(f.absolutizeDependencies)(Y,aa)]}};this.graph=new G.Graph(this.dependencyQueryVertices)}var S,R;return R=[{key:"buildEmpty",value:function(O,N,Q,M,T){return new P(new y.AddressMapping(N.chooseAddressMappingPolicy),new I.RangeMapping,new K.SheetMapping(N.translationPackage),new z.ArrayMapping,T,O,Q,M)}}],S=[{key:"setFormulaToCell",value:function(O,N,Q,M,T,Z){N=H.FormulaVertex.fromAst(N,O,M,this.lazilyTransformingAstService.version());return this.exchangeOrAddFormulaVertex(N), 1548this.processCellDependencies(Q,N),this.graph.markNodeAsSpecialRecentlyChanged(N),T&&this.markAsVolatile(N),Z&&this.markAsDependentOnStructureChange(N),this.correctInfiniteRangesDependency(O),this.getAndClearContentChanges()}},{key:"setParsingErrorToCell",value:function(O,N){var Q=this.shrinkPossibleArrayAndGetCell(O);return this.exchangeOrAddGraphNode(Q,N),this.addressMapping.setCell(O,N),this.graph.markNodeAsSpecialRecentlyChanged(N),this.correctInfiniteRangesDependency(O),this.getAndClearContentChanges()}}, 1549{key:"setValueToCell",value:function(O,N){var Q=this.shrinkPossibleArrayAndGetCell(O);(Q instanceof C.ArrayVertex&&this.arrayMapping.removeArray(Q.getRange()),Q instanceof C.ValueCellVertex)?Q.getValues().rawValue!==N.rawValue&&(Q.setValues(N),this.graph.markNodeAsSpecialRecentlyChanged(Q)):(N=new C.ValueCellVertex(N.parsedValue,N.rawValue),this.exchangeOrAddGraphNode(Q,N),this.addressMapping.setCell(O,N),this.graph.markNodeAsSpecialRecentlyChanged(N));return this.correctInfiniteRangesDependency(O), 1550this.getAndClearContentChanges()}},{key:"setCellEmpty",value:function(O){var N=this.shrinkPossibleArrayAndGetCell(O);if(void 0===N)return l.ContentChanges.empty();if(0<this.graph.adjacentNodes(N).size){var Q=new C.EmptyCellVertex(O);this.exchangeGraphNode(N,Q);0===this.graph.adjacentNodesCount(Q)?(this.removeVertex(Q),this.addressMapping.removeCell(O)):(this.graph.markNodeAsSpecialRecentlyChanged(Q),this.addressMapping.setCell(O,Q))}else this.removeVertex(N),this.addressMapping.removeCell(O);return this.getAndClearContentChanges()}}, 1551{key:"ensureThatVertexIsNonArrayCellVertex",value:function(O){if(O instanceof C.ArrayVertex)throw Error("Illegal operation");}},{key:"clearRecentlyChangedVertices",value:function(){this.graph.clearSpecialNodesRecentlyChanged()}},{key:"verticesToRecompute",value:function(){return new Set([].concat(q(this.graph.specialNodesRecentlyChanged),q(this.volatileVertices())))}},{key:"processCellDependencies",value:function(O,N){var Q=this;O.forEach(function(M){if(M instanceof k.AbsoluteCellRange){var T=Q.getRange(M.start, 1552M.end);void 0===T&&(T=new C.RangeVertex(M),Q.rangeMapping.setRange(T));Q.graph.addNode(T);M.isFinite()||Q.graph.markNodeAsInfiniteRange(T);var Z=Q.rangeMapping.findSmallerRange(M),L=Z.smallerRangeVertex;Z=Z.restRange;if(void 0!==L){if(Q.graph.addEdge(L,T),T.bruteForce){T.bruteForce=!1;var U;L=p(M.addresses(Q));try{for(L.s();!(U=L.n()).done;)Q.graph.removeEdge(Q.fetchCell(U.value),T)}catch(Y){L.e(Y)}finally{L.f()}}}else T.bruteForce=!0;U=Q.arrayMapping.getArray(Z);if(void 0!==U)Q.graph.addEdge(U,T); 1553else{var V;Z=p(Z.addresses(Q));try{for(Z.s();!(V=Z.n()).done;)Q.graph.addEdge(Q.fetchCellOrCreateEmpty(V.value),T)}catch(Y){Z.e(Y)}finally{Z.f()}}Q.graph.addEdge(T,N);M.isFinite()&&Q.correctInfiniteRangesDependenciesByRangeVertex(T)}else M instanceof u.NamedExpressionDependency?(T=N.getAddress(Q.lazilyTransformingAstService).sheet,M=Q.fetchNamedExpressionVertex(M.name,T),Q.graph.addEdge(M,N)):Q.graph.addEdge(Q.fetchCellOrCreateEmpty(M),N)})}},{key:"fetchNamedExpressionVertex",value:function(O,N){O= 1554this.namedExpressions.namedExpressionOrPlaceholder(O,N);return this.fetchCellOrCreateEmpty(O.address)}},{key:"exchangeNode",value:function(O,N){var Q=this.fetchCellOrCreateEmpty(O);N=this.fetchCellOrCreateEmpty(N);this.addressMapping.removeCell(O);this.exchangeGraphNode(Q,N)}},{key:"correctInfiniteRangesDependency",value:function(O){var N,Q=void 0,M=p(this.graph.infiniteRanges);try{for(M.s();!(N=M.n()).done;){var T=N.value;T.range.addressInRange(O)&&(Q=null!=Q?Q:this.fetchCellOrCreateEmpty(O),this.graph.addEdge(Q, 1555T))}}catch(Z){M.e(Z)}finally{M.f()}}},{key:"fetchCellOrCreateEmpty",value:function(O){var N=this.addressMapping.getCell(O);return void 0===N&&(N=new C.EmptyCellVertex(O),this.graph.addNode(N),this.addressMapping.setCell(O,N)),N}},{key:"removeRows",value:function(O){var N=this;this.stats.measure(v.StatType.ADJUSTING_GRAPH,function(){var M,T=p(N.addressMapping.entriesFromRowsSpan(O));try{for(T.s();!(M=T.n()).done;){var Z,L=e(M.value,2),U=L[0],V=L[1],Y=p(N.graph.adjacentNodes(V));try{for(Y.s();!(Z=Y.n()).done;)N.graph.markNodeAsSpecialRecentlyChanged(Z.value)}catch(aa){Y.e(aa)}finally{Y.f()}if(V instanceof 1556C.ArrayVertex){if(!V.isLeftCorner(U))continue;N.shrinkArrayToCorner(V);N.arrayMapping.removeArray(V.getRange())}N.removeVertex(V)}}catch(aa){T.e(aa)}finally{T.f()}});this.stats.measure(v.StatType.ADJUSTING_ADDRESS_MAPPING,function(){N.addressMapping.removeRows(O)});var Q=this.stats.measure(v.StatType.ADJUSTING_RANGES,function(){var M=N.truncateRanges(O,function(T){return T.row});return N.getArrayVerticesRelatedToRanges(M)});return this.stats.measure(v.StatType.ADJUSTING_ARRAY_MAPPING,function(){N.fixArraysAfterRemovingRows(O.sheet, 1557O.rowStart,O.numberOfRows)}),this.addStructuralNodesToChangeSet(),{affectedArrays:Q,contentChanges:this.getAndClearContentChanges()}}},{key:"removeSheet",value:function(O){var N,Q=this,M=new Set,T=p(this.addressMapping.sheetEntries(O));try{for(T.s();!(N=T.n()).done;){var Z=e(N.value,2),L=Z[0],U=Z[1];if(U instanceof C.ArrayVertex){if(M.has(U))continue;M.add(U)}var V,Y=p(this.graph.adjacentNodes(U));try{for(Y.s();!(V=Y.n()).done;)this.graph.markNodeAsSpecialRecentlyChanged(V.value)}catch(aa){Y.e(aa)}finally{Y.f()}this.removeVertex(U); 1558this.addressMapping.removeCell(L)}}catch(aa){T.e(aa)}finally{T.f()}this.stats.measure(v.StatType.ADJUSTING_ARRAY_MAPPING,function(){var aa,W=p(M.values());try{for(W.s();!(aa=W.n()).done;)Q.arrayMapping.removeArray(aa.value.getRange())}catch(ca){W.e(ca)}finally{W.f()}});this.stats.measure(v.StatType.ADJUSTING_RANGES,function(){var aa,W=p(Q.rangeMapping.removeRangesInSheet(O));try{for(W.s();!(aa=W.n()).done;)Q.removeVertex(aa.value)}catch(ca){W.e(ca)}finally{W.f()}Q.stats.measure(v.StatType.ADJUSTING_ADDRESS_MAPPING, 1559function(){Q.addressMapping.removeSheet(O)})});this.addStructuralNodesToChangeSet()}},{key:"clearSheet",value:function(O){var N,Q=new Set;O=p(this.addressMapping.sheetEntries(O));try{for(O.s();!(N=O.n()).done;){var M=e(N.value,2),T=M[0],Z=M[1];Z instanceof C.ArrayVertex?Q.add(Z):this.setCellEmpty(T)}}catch(U){O.e(U)}finally{O.f()}var L;N=p(Q.values());try{for(N.s();!(L=N.n()).done;)this.setArrayEmpty(L.value)}catch(U){N.e(U)}finally{N.f()}this.addStructuralNodesToChangeSet()}},{key:"removeColumns", 1560value:function(O){var N=this;this.stats.measure(v.StatType.ADJUSTING_GRAPH,function(){var M,T=p(N.addressMapping.entriesFromColumnsSpan(O));try{for(T.s();!(M=T.n()).done;){var Z,L=e(M.value,2),U=L[0],V=L[1],Y=p(N.graph.adjacentNodes(V));try{for(Y.s();!(Z=Y.n()).done;)N.graph.markNodeAsSpecialRecentlyChanged(Z.value)}catch(aa){Y.e(aa)}finally{Y.f()}if(V instanceof C.ArrayVertex){if(!V.isLeftCorner(U))continue;N.shrinkArrayToCorner(V);N.arrayMapping.removeArray(V.getRange())}N.removeVertex(V)}}catch(aa){T.e(aa)}finally{T.f()}}); 1561this.stats.measure(v.StatType.ADJUSTING_ADDRESS_MAPPING,function(){N.addressMapping.removeColumns(O)});var Q=this.stats.measure(v.StatType.ADJUSTING_RANGES,function(){var M=N.truncateRanges(O,function(T){return T.col});return N.getArrayVerticesRelatedToRanges(M)});return this.stats.measure(v.StatType.ADJUSTING_ARRAY_MAPPING,function(){return N.fixArraysAfterRemovingColumns(O.sheet,O.columnStart,O.numberOfColumns)}),this.addStructuralNodesToChangeSet(),{affectedArrays:Q,contentChanges:this.getAndClearContentChanges()}}}, 1562{key:"addRows",value:function(O){var N=this;this.stats.measure(v.StatType.ADJUSTING_ADDRESS_MAPPING,function(){N.addressMapping.addRows(O.sheet,O.rowStart,O.numberOfRows)});var Q=this.stats.measure(v.StatType.ADJUSTING_RANGES,function(){var Z=N.rangeMapping.moveAllRangesInSheetAfterRowByRows(O.sheet,O.rowStart,O.numberOfRows);return N.fixRangesWhenAddingRows(O.sheet,O.rowStart,O.numberOfRows),N.getArrayVerticesRelatedToRanges(Z.verticesWithChangedSize)});this.stats.measure(v.StatType.ADJUSTING_ARRAY_MAPPING, 1563function(){N.fixArraysAfterAddingRow(O.sheet,O.rowStart,O.numberOfRows)});var M,T=p(this.addressMapping.verticesFromRowsSpan(O));try{for(T.s();!(M=T.n()).done;)this.graph.markNodeAsSpecialRecentlyChanged(M.value)}catch(Z){T.e(Z)}finally{T.f()}return this.addStructuralNodesToChangeSet(),{affectedArrays:Q}}},{key:"addColumns",value:function(O){var N=this;this.stats.measure(v.StatType.ADJUSTING_ADDRESS_MAPPING,function(){N.addressMapping.addColumns(O.sheet,O.columnStart,O.numberOfColumns)});var Q=this.stats.measure(v.StatType.ADJUSTING_RANGES, 1564function(){var Z=N.rangeMapping.moveAllRangesInSheetAfterColumnByColumns(O.sheet,O.columnStart,O.numberOfColumns);return N.fixRangesWhenAddingColumns(O.sheet,O.columnStart,O.numberOfColumns),N.getArrayVerticesRelatedToRanges(Z.verticesWithChangedSize)});this.stats.measure(v.StatType.ADJUSTING_ARRAY_MAPPING,function(){return N.fixArraysAfterAddingColumn(O.
1564sheet,O.columnStart,O.numberOfColumns)});var M,T=p(this.addressMapping.verticesFromColumnsSpan(O));try{for(T.s();!(M=T.n()).done;)this.graph.markNodeAsSpecialRecentlyChanged(M.value)}catch(Z){T.e(Z)}finally{T.f()}return this.addStructuralNodesToChangeSet(), 1565{affectedArrays:Q,contentChanges:this.getAndClearContentChanges()}}},{key:"ensureNoArrayInRange",value:function(O){if(this.arrayMapping.isFormulaArrayInRange(O))throw Error("It is not possible to move / replace cells with array");}},{key:"isThereSpaceForArray",value:function(O){var N=O.getRangeOrUndef();if(void 0===N)return!1;var Q;N=p(N.addresses(this));try{for(N.s();!(Q=N.n()).done;){var M=this.addressMapping.getCell(Q.value);if(void 0!==M&&!(M instanceof C.EmptyCellVertex)&&M!==O)return!1}}catch(T){N.e(T)}finally{N.f()}return!0}}, 1566{key:"moveCells",value:function(O,N,Q,M){var T,Z=p(O.addressesWithDirection(N,Q,this));try{for(Z.s();!(T=Z.n()).done;){var L=T.value,U=Object(n.simpleCellAddress)(M,L.col+N,L.row+Q),V=this.addressMapping.getCell(L),Y=this.addressMapping.getCell(U);if(this.addressMapping.removeCell(L),void 0!==V){this.graph.markNodeAsSpecialRecentlyChanged(V);this.addressMapping.setCell(U,V);var aa,W=void 0,ca=p(this.graph.adjacentNodes(V));try{for(ca.s();!(aa=ca.n()).done;){var ia=aa.value;ia instanceof C.RangeVertex&& 1567!O.containsRange(ia.range)&&(W=null!=W?W:this.fetchCellOrCreateEmpty(L),this.graph.addEdge(W,ia),this.graph.removeEdge(V,ia))}}catch(Fa){ca.e(Fa)}finally{ca.f()}W&&(this.graph.markNodeAsSpecialRecentlyChanged(W),this.addressMapping.setCell(L,W))}if(void 0!==Y){void 0===V&&this.addressMapping.removeCell(U);var ba,fa=p(this.graph.adjacentNodes(Y));try{for(fa.s();!(ba=fa.n()).done;){var ja=ba.value;V=null!=V?V:this.fetchCellOrCreateEmpty(U);this.graph.addEdge(V,ja);this.graph.markNodeAsSpecialRecentlyChanged(V)}}catch(Fa){fa.e(Fa)}finally{fa.f()}this.removeVertex(Y)}}}catch(Fa){Z.e(Fa)}finally{Z.f()}var qa; 1568T=p(this.rangeMapping.rangeVerticesContainedInRange(O));try{for(T.s();!(qa=T.n()).done;){var ha,na=qa.value,oa=p(this.graph.adjacentNodes(na));try{for(oa.s();!(ha=oa.n()).done;){var ma=ha.value;if(ma instanceof C.RangeVertex&&!O.containsRange(ma.range)){this.graph.removeEdge(na,ma);var pa,sa=p(na.range.addresses(this));try{for(sa.s();!(pa=sa.n()).done;){var va=pa.value,Aa=this.fetchCellOrCreateEmpty(va);this.graph.addEdge(Aa,ma);this.addressMapping.setCell(va,Aa);this.graph.markNodeAsSpecialRecentlyChanged(Aa)}}catch(Fa){sa.e(Fa)}finally{sa.f()}}}}catch(Fa){oa.e(Fa)}finally{oa.f()}}}catch(Fa){T.e(Fa)}finally{T.f()}this.rangeMapping.moveRangesInsideSourceRange(O, 1569N,Q,M)}},{key:"setArrayEmpty",value:function(O){var N,Q=k.AbsoluteCellRange.spanFrom(O.getAddress(this.lazilyTransformingAstService),O.width,O.height),M=this.graph.adjacentNodes(O);Q=p(Q.addresses(this));try{for(Q.s();!(N=Q.n()).done;)this.addressMapping.removeCell(N.value)}catch(aa){Q.e(aa)}finally{Q.f()}var T;N=p(M.values());try{for(N.s();!(T=N.n()).done;){var Z,L=T.value,U=Object(E.collectAddressesDependentToRange)(this.functionRegistry,L,O.getRange(),this.lazilyTransformingAstService,this),V= 1570p(U);try{for(V.s();!(Z=V.n()).done;){var Y=this.fetchCellOrCreateEmpty(Z.value);this.graph.addEdge(Y,L)}}catch(aa){V.e(aa)}finally{V.f()}0<U.length&&this.graph.markNodeAsSpecialRecentlyChanged(L)}}catch(aa){N.e(aa)}finally{N.f()}this.removeVertex(O);this.arrayMapping.removeArray(O.getRange())}},{key:"addVertex",value:function(O,N){this.graph.addNode(N);this.addressMapping.setCell(O,N)}},{key:"addArrayVertex",value:function(O,N){this.graph.addNode(N);this.setAddressMappingForArrayVertex(N,O)}},{key:"arrayFormulaNodes", 1571value:x().mark(function N(){var Q,M,T;return x().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:Q=p(this.graph.nodes),Z.prev=1,Q.s();case 3:if((M=Q.n()).done){Z.next=10;break}if(!((T=M.value)instanceof C.ArrayVertex)){Z.next=8;break}return Z.next=8,T;case 8:Z.next=3;break;case 10:Z.next=15;break;case 12:Z.prev=12,Z.t0=Z.catch(1),Q.e(Z.t0);case 15:return Z.prev=15,Q.f(),Z.finish(15);case 18:case "end":return Z.stop()}},N,this,[[1,12,15,18]])})},{key:"entriesFromRowsSpan",value:x().mark(function M(Q){return x().wrap(function(T){for(;;)switch(T.prev= 1572T.next){case 0:return T.delegateYield(this.addressMapping.entriesFromRowsSpan(Q),"t0",1);
1572case 1:case "end":return T.stop()}},M,this)})},{key:"entriesFromColumnsSpan",value:x().mark(function T(M){return x().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.delegateYield(this.addressMapping.entriesFromColumnsSpan(M),"t0",1);case 1:case "end":return Z.stop()}},T,this)})},{key:"existsVertex",value:function(M){return this.addressMapping.has(M)}},{key:"fetchCell",value:function(M){return this.addressMapping.fetchCell(M)}}, 1573{key:"getCell",value:function(M){return this.addressMapping.getCell(M)}},{key:"getCellValue",value:function(M){return this.addressMapping.getCellValue(M)}},{key:"getRawValue",value:function(M){return this.addressMapping.getRawValue(M)}},{key:"getScalarValue",value:function(M){M=this.addressMapping.getCellValue(M);return M instanceof t.SimpleRangeValue?new n.CellError(n.ErrorType.VALUE,r.ErrorMessage.ScalarExpected):M}},{key:"existsEdge",value:function(M,T){return this.graph.existsEdge(M,T)}},{key:"getSheetId", 1574value:function(M){return this.sheetMapping.fetch(M)}},{key:"getSheetHeight",value:function(M){return this.addressMapping.getHeight(M)}},{key:"getSheetWidth",value:function(M){return this.addressMapping.getWidth(M)}},{key:"getArray",value:function(M){return this.arrayMapping.getArray(M)}},{key:"setArray",value:function(M,T){this.arrayMapping.setArray(M,T)}},{key:"getRange",value:function(M,T){return this.rangeMapping.getRange(M,T)}},{key:"topSortWithScc",value:function(){return this.graph.topSortWithScc()}}, 1575{key:"markAsVolatile",value:function(M){this.graph.markNodeAsSpecial(M)}},{key:"markAsDependentOnStructureChange",value:function(M){this.graph.markNodeAsChangingWithStructure(M)}},{key:"forceApplyPostponedTransformations",value:function(){var M,T=p(this.graph.nodes.values());try{for(T.s();!(M=T.n()).done;){var Z=M.value;Z instanceof C.FormulaCellVertex&&Z.ensureRecentData(this.lazilyTransformingAstService)}}catch(L){T.e(L)}finally{T.f()}}},{key:"volatileVertices",value:function(){return this.graph.specialNodes}}, 1576{key:"getArrayVerticesRelatedToRanges",value:function(M){var T=this;M=M.map(function(Z){return T.graph.hasNode(Z)?Array.from(T.graph.adjacentNodes(Z)).filter(function(L){return L instanceof C.ArrayVertex}):[]});return B(Set,q(M))}},{key:"rawValuesFromRange",value:x().mark(function Z(T){var L,U,V,Y;return x().wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:L=p(T.addresses(this)),aa.prev=1,L.s();case 3:if((U=L.n()).done){aa.next=11;break}if(V=U.value,(Y=this.getScalarValue(V))===m.EmptyValue){aa.next= 15779;break}return aa.next=9,[Object(m.getRawValue)(Y),V];case 9:aa.next=3;break;case 11:aa.next=16;break;case 13:aa.prev=13,aa.t0=aa.catch(1),L.e(aa.t0);case 16:return aa.prev=16,L.f(),aa.finish(16);case 19:case "end":return aa.stop()}},Z,this,[[1,13,16,19]])})},{key:"entriesFromRange",value:x().mark(function L(Z){var U,V,Y;return x().wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:U=p(Z.addresses(this)),aa.prev=1,U.s();case 3:if((V=U.n()).done){aa.next=9;break}return Y=V.value,aa.next=7,[Y, 1578this.getCell(Y)];case 7:aa.next=3;break;case 9:aa.next=14;break;case 11:aa.prev=11,aa.t0=aa.catch(1),U.e(aa.t0);case 14:return aa.prev=14,U.f(),aa.finish(14);case 17:case "end":return aa.stop()}},L,this,[[1,11,14,17]])})},{key:"exchangeGraphNode",value:function(Z,L){var U=this;this.graph.addNode(L);var V=this.graph.adjacentNodes(Z);this.removeVertex(Z);V.forEach(function(Y){U.graph.hasNode(Y)&&U.graph.addEdge(L,Y)})}},{key:"exchangeOrAddGraphNode",value:function(Z,L){Z?this.exchangeGraphNode(Z,L): 1579this.graph.addNode(L)}},{key:"computeListOfValuesInRange",value:function(Z){var L,U=[];Z=p(Z.addresses(this));try{for(Z.s();!(L=Z.n()).done;){var V=this.getScalarValue(L.value);U.push(V)}}catch(Y){Z.e(Y)}finally{Z.f()}return U}},{key:"shrinkArrayToCorner",value:function(Z){this.cleanAddressMappingUnderArray(Z);var L,U=p(this.adjacentArrayVertices(Z));try{for(U.s();!(L=U.n()).done;){var V=L.value,Y=void 0;Y=V instanceof H.FormulaVertex?this.formulaDirectDependenciesToArray(V,Z):this.rangeDirectDependenciesToArray(V, 1580Z);var aa,W=!1,ca=p(Y);try{for(ca.s();!(aa=ca.n()).done;){var ia=e(aa.value,2),ba=ia[1];Z.isLeftCorner(ia[0])&&(W=!0);this.graph.addEdge(ba,V);this.graph.markNodeAsSpecialRecentlyChanged(ba)}}catch(fa){ca.e(fa)}finally{ca.f()}W||this.graph.removeEdge(Z,V)}}catch(fa){U.e(fa)}finally{U.f()}this.graph.markNodeAsSpecialRecentlyChanged(Z)}},{key:"isArrayInternalCell",value:function(Z){var L=this.getCell(Z);return L instanceof C.ArrayVertex&&!L.isLeftCorner(Z)}},{key:"getAndClearContentChanges",value:function(){var Z= 1581this.changes;return this.changes=l.ContentChanges.empty(),Z}},{key:"getAdjacentNodesAddresses",value:function(Z){var L=this,U=[];
1581return this.graph.adjacentNodes(Z).forEach(function(V){V instanceof C.RangeVertex?U.push(Object(k.simpleCellRange)(V.start,V.end)):U.push(V.getAddress(L.lazilyTransformingAstService))}),U}},{key:"correctInfiniteRangesDependenciesByRangeVertex",value:function(Z){var L,U=p(this.graph.infiniteRanges);try{for(U.s();!(L=U.n()).done;){var V=L.value,Y=Z.range.intersectionWith(V.range); 1582if(void 0!==Y){var aa,W=p(Y.addresses(this));try{for(W.s();!(aa=W.n()).done;)this.graph.addEdge(this.fetchCellOrCreateEmpty(aa.value),V)}catch(ca){W.e(ca)}finally{W.f()}}}}catch(ca){U.e(ca)}finally{U.f()}}},{key:"cleanAddressMappingUnderArray",value:function(Z){var L,U=p(Z.getRange().addresses(this));try{for(U.s();!(L=U.n()).done;){var V=L.value,Y=Z.getArrayCellValue(V);this.getCell(V)===Z?Z.isLeftCorner(V)?this.changes.addChange(new n.CellError(n.ErrorType.REF),V,Y):(this.addressMapping.removeCell(V), 1583this.changes.addChange(m.EmptyValue,V,Y)):this.changes.addChange(m.EmptyValue,V,Y)}}catch(aa){U.e(aa)}finally{U.f()}}},{key:"formulaDirectDependenciesToArray",value:x().mark(function V(L,U){var Y,aa,W,ca,ia,ba,fa,ja;return x().wrap(function(qa){for(;;)switch(qa.prev=qa.next){case 0:if(aa=null!==(Y=this.formulaDependencyQuery(L))&&void 0!==Y?Y:[],W=e(aa,2),void 0!==(ca=W[1])){qa.next=3;break}return qa.abrupt("return");case 3:ia=p(ca),qa.prev=4,ia.s();case 6:if((ba=ia.n()).done){qa.next=16;break}if(!((fa= 1584ba.value)instanceof u.NamedExpressionDependency||fa instanceof k.AbsoluteCellRange)){qa.next=10;break}return qa.abrupt("continue",14);case 10:if(!U.getRange().addressInRange(fa)){qa.next=14;break}return ja=this.fetchCellOrCreateEmpty(fa),qa.next=14,[fa,ja];case 14:qa.next=6;break;case 16:qa.next=21;break;case 18:qa.prev=18,qa.t0=qa.catch(4),ia.e(qa.t0);case 21:return qa.prev=21,ia.f(),qa.finish(21);case 24:case "end":return qa.stop()}},V,this,[[4,18,21,24]])})},{key:"rangeDirectDependenciesToArray", 1585value:x().mark(function Y(U,V){var aa,W,ca,ia,ba,fa;return x().wrap(function(ja){for(;;)switch(ja.prev=ja.next){case 0:aa=this.rangeMapping.findSmallerRange(U.range),W=aa.restRange,ca=p(W.addresses(this)),ja.prev=2,ca.s();case 4:if((ia=ca.n()).done){ja.next=12;break}if(ba=ia.value,!V.getRange().addressInRange(ba)){ja.next=10;break}return fa=this.fetchCellOrCreateEmpty(ba),ja.next=10,[ba,fa];case 10:ja.next=4;break;case 12:ja.next=17;break;case 14:ja.prev=14,ja.t0=ja.catch(2),ca.e(ja.t0);case 17:return ja.prev= 158617,ca.f(),ja.finish(17);case 20:case "end":return ja.stop()}},Y,this,[[2,14,17,20]])})},{key:"adjacentArrayVertices",value:x().mark(function Y(V){var aa,W,ca,ia;return x().wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:aa=this.graph.adjacentNodes(V),W=p(aa),ba.prev=2,W.s();case 4:if((ca=W.n()).done){ba.next=11;break}if(!((ia=ca.value)instanceof H.FormulaVertex||ia instanceof C.RangeVertex)){ba.next=9;break}return ba.next=9,ia;case 9:ba.next=4;break;case 11:ba.next=16;break;case 13:ba.prev= 158713,ba.t0=ba.catch(2),W.e(ba.t0);case 16:return ba.prev=16,W.f(),ba.finish(16);case 19:case "end":return ba.stop()}},Y,this,[[2,13,16,19]])})},{key:"addStructuralNodesToChangeSet",value:function(){var V,Y=p(this.graph.specialNodesStructuralChanges);try{for(Y.s();!(V=Y.n()).done;)this.graph.markNodeAsSpecialRecentlyChanged(V.value)}catch(aa){Y.e(aa)}finally{Y.f()}}},{key:"fixRangesWhenAddingRows",value:function(V,Y,aa){var W=0;for(V=Array.from(this.rangeMapping.rangesInSheet(V));W<V.length;W++){var ca= 1588V[W];if(ca.range.includesRow(Y+aa))if(ca.bruteForce){var ia,ba=p(ca.range.rangeWithSameWidth(Y,aa).addresses(this));try{for(ba.s();!(ia=ba.n()).done;)this.graph.addEdge(this.fetchCellOrCreateEmpty(ia.value),ca)}catch(qa){ba.e(qa)}finally{ba.f()}}else{ba=ca;var fa=this.rangeMapping.findSmallerRange(ba.range);if(void 0===fa.smallerRangeVertex){for(;void 0===fa.smallerRangeVertex;){fa=new C.RangeVertex(k.AbsoluteCellRange.spanFrom(ba.range.start,ba.range.width(),ba.range.height()-1));this.rangeMapping.setRange(fa); 1589this.graph.addNode(fa);var ja=new k.AbsoluteCellRange(Object(n.simpleCellAddress)(ba.range.start.sheet,ba.range.start.col,ba.range.end.row),ba.range.end);this.addAllFromRange(ja,ba);this.graph.addEdge(fa,ba);ba=fa;fa=this.rangeMapping.findSmallerRange(ba.range)}this.graph.addEdge(fa.smallerRangeVertex,ba);this.addAllFromRange(fa.restRange,ba);this.graph.removeEdge(fa.smallerRangeVertex,ca)}}}}},{key:"addAllFromRange",value:function(V,Y){var aa;V=p(V.addresses(this));try{for(V.s();!(aa=V.n()).done;)this.graph.addEdge(this.fetchCellOrCreateEmpty(aa.value), 1590Y)}catch(W){V.e(W)}finally{V.f()}}},{key:"fixRangesWhenAddingColumns",value:function(V,Y,aa){var W,ca=p(this.rangeMapping.rangesInSheet(V));try{for(ca.s();!(W=ca.n()).done;){var ia=W.value;if(ia.range.includesColumn(Y+aa)){var ba,fa=p((ia.bruteForce?ia.range.rangeWithSameHeight(Y,aa):k.AbsoluteCellRange.spanFrom(Object(n.simpleCellAddress)(V,Y,ia.range.end.row),aa,1)).addresses(this));try{for(fa.s();!(ba=fa.n()).done;)this.graph.addEdge(this.fetchCellOrCreateEmpty(ba.value),ia)}catch(ja){fa.e(ja)}finally{fa.f()}}}}catch(ja){ca.e(ja)}finally{ca.f()}}},
1591{key:"exchangeOrAddFormulaVertex",value:function(V){var Y=V.getAddress(this.lazilyTransformingAstService),aa=k.AbsoluteCellRange.spanFrom(Y,V.width,V.height),W=this.shrinkPossibleArrayAndGetCell(Y);if(V instanceof C.ArrayVertex&&this.setArray(aa,V),this.exchangeOrAddGraphNode(W,V),this.addressMapping.setCell(Y,V),V instanceof C.ArrayVertex){if(!this.isThereSpaceForArray(V))return;var ca;Y=p(aa.addresses(this));try{for(Y.s();!(ca=Y.n()).done;){var ia=ca.value;if(!V.isLeftCorner(ia)){var ba=this.getCell(ia); 1592this.exchangeOrAddGraphNode(ba,V)}}}catch(ja){Y.e(ja)}finally{Y.f()}}var fa;aa=p(aa.addresses(this));try{for(aa.s();!(fa=aa.n()).done;)this.addressMapping.setCell(fa.value,V)}catch(ja){aa.e(ja)}finally{aa.f()}}},{key:"setAddressMappingForArrayVertex",value:function(V,Y){if(this.addressMapping.setCell(Y,V),V instanceof C.ArrayVertex)if(Y=k.AbsoluteCellRange.spanFromOrUndef(Y,V.width,V.height),void 0!==Y&&(this.setArray(Y,V),this.isThereSpaceForArray(V))){var aa;Y=p(Y.addresses(this));try{for(Y.s();!(aa= 1593Y.n()).done;)this.addressMapping.setCell(aa.value,V)}catch(W){Y.e(W)}finally{Y.f()}}}},{key:"truncateRanges",value:function(V,Y){var aa,W=this.rangeMapping.truncateRanges(V,Y);Y=W.verticesToRemove;V=W.verticesWithChangedSize;W=p(W.verticesToMerge);try{for(W.s();!(aa=W.n()).done;){var ca=e(aa.value,2);this.mergeRangeVertices(ca[0],ca[1])}}catch(ba){W.e(ba)}finally{W.f()}var ia;aa=p(Y);try{for(aa.s();!(ia=aa.n()).done;)this.removeVertexAndCleanupDependencies(ia.value)}catch(ba){aa.e(ba)}finally{aa.f()}return V}}, 1594{key:"fixArraysAfterAddingRow",value:function(V,Y,aa){if(this.arrayMapping.moveArrayVerticesAfterRowByRows(V,Y,aa),!(0>=Y)){var W,ca=p(this.arrayMapping.arraysInRows(w.RowsSpan.fromRowStartAndEnd(V,Y-1,Y-1)));try{for(ca.s();!(W=ca.n()).done;)for(var ia=e(W.value,2)[1],ba=ia.getRange(),fa=ba.start.col;fa<=ba.end.col;++fa)for(var ja=Y;ja<=ba.end.row;++ja){var qa=Object(n.simpleCellAddress)(V,fa,ja),ha=Object(n.simpleCellAddress)(V,fa,ja+aa),na=ia.getArrayCellValue(qa);this.addressMapping.moveCell(ha, 1595qa);this.changes.addChange(m.EmptyValue,ha,na)}}catch(oa){ca.e(oa)}finally{ca.f()}}}},{key:"fixArraysAfterRemovingRows",value:function(V,Y,aa){if(this.arrayMapping.moveArrayVerticesAfterRowByRows(V,Y,-aa),!(0>=Y)){var W;V=p(this.arrayMapping.arraysInRows(w.RowsSpan.fromRowStartAndEnd(V,Y-1,Y-1)));try{for(V.s();!(W=V.n()).done;){var ca=e(W.value,2)[1];if(this.isThereSpaceForArray(ca)){var ia,ba=p(ca.getRange().addresses(this));try{for(ba.s();!(ia=ba.n()).done;)this.addressMapping.setCell(ia.value, 1596ca)}catch(fa){ba.e(fa)}finally{ba.f()}}else this.setNoSpaceIfArray(ca)}}catch(fa){V.e(fa)}finally{V.f()}}}},{key:"fixArraysAfterAddingColumn",value:function(V,Y,aa){if(this.arrayMapping.moveArrayVerticesAfterColumnByColumns(V,Y,aa),!(0>=Y)){var W,ca=p(this.arrayMapping.arraysInCols(w.ColumnsSpan.fromColumnStartAndEnd(V,Y-1,Y-1)));try{for(ca.s();!(W=ca.n()).done;)for(var ia=e(W.value,2)[1],ba=ia.getRange(),fa=ba.start.row;fa<=ba.end.row;++fa)for(var ja=Y;ja<=ba.end.col;++ja){var qa=Object(n.simpleCellAddress)(V, 1597ja,fa),ha=Object(n.simpleCellAddress)(V,ja+aa,fa),na=ia.getArrayCellValue(qa);this.addressMapping.moveCell(ha,qa);this.changes.addChange(m.EmptyValue,ha,na)}}catch(oa){ca.e(oa)}finally{ca.f()}}}},{key:"fixArraysAfterRemovingColumns",value:function(V,Y,aa){if(this.arrayMapping.moveArrayVerticesAfterColumnByColumns(V,Y,-aa),!(0>=Y)){var W;V=p(this.arrayMapping.arraysInCols(w.ColumnsSpan.fromColumnStartAndEnd(V,Y-1,Y-1)));try{for(V.s();!(W=V.n()).done;){var ca=e(W.value,2)[1];if(this.isThereSpaceForArray(ca)){var ia, 1598ba=p(ca.getRange().addresses(this));try{for(ba.s();!(ia=ba.n()).done;)this.addressMapping.setCell(ia.value,ca)}catch(fa){ba.e(fa)}finally{ba.f()}}else this.setNoSpaceIfArray(ca)}}catch(fa){V.e(fa)}finally{V.f()}}}},{key:"shrinkPossibleArrayAndGetCell",value:function(V){var Y=this.getCell(V);return Y instanceof C.ArrayVertex?(this.setNoSpaceIfArray(Y),this.getCell(V)):Y}},{key:"setNoSpaceIfArray",value:function(V){V instanceof C.ArrayVertex&&(this.shrinkArrayToCorner(V),V.setNoSpace())}},{key:"removeVertex", 1599value:function(V){this.removeVertexAndCleanupDependencies(V);V instanceof C.RangeVertex&&this.rangeMapping.removeRange(V)}},{key:"mergeRangeVertices",value:function(V,Y){var aa=this,W=this.graph.adjacentNodes(Y);this.removeVertexAndCleanupDependencies(Y);this.graph.softRemoveEdge(V,Y);W.forEach(function(ca){aa.graph.hasNode(ca)&&aa.graph.addEdge(V,ca)})}},{key:"removeVertexAndCleanupDependencies",value:function(V){for(var Y=new Set(this.graph.removeNode(V));0<Y.size;)V=Y.values().next().value,Y.delete(V), 1600this.graph.hasNode(V)&&0===this.graph.adjacentNodesCount(V)&&((V instanceof C.RangeVertex||V instanceof C.EmptyCellVertex)&&this.graph.removeNode(V).forEac
1600h(function(aa){return Y.add(aa)}),V instanceof C.RangeVertex?this.rangeMapping.removeRange(V):V instanceof C.EmptyCellVertex&&this.addressMapping.removeCell(V.address))}}],h(P.prototype,S),R&&h(P,R),Object.defineProperty(P,"prototype",{writable:!1}),P}()},function(g,b,a){b=a(38);var F=a(63),B=a(127),D=a(678),A=Object.isExtensible;a=b(function(){A(1)}); 1601g.exports=a||D?function(x){return!!F(x)&&(!D||"ArrayBuffer"!=B(x))&&(!A||A(x))}:A},function(g,b,a){b=a(38);g.exports=!b(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(g,b,a){var F=a(80).f,B=a(140),D=a(271),A=a(160),x=a(225),q=a(188),p=a(266),e=a(272),c=a(72),d=a(187).fastKey;b=a(116);var h=b.set,k=b.getterFor;g.exports={getConstructor:function(f,n,l,r){f=f(function(v,C){x(v,m);h(v,{type:n,index:B(null),first:void 0,last:void 0,size:0});c||(v.size=0);null!=C&&q(C,v[r], 1602{that:v,AS_ENTRIES:l})});var m=f.prototype,t=k(n),u=function(v,C,y){var z,E,H=t(v),G=w(v,C);return G?G.value=y:(H.last=G={index:E=d(C,!0),key:C,value:y,previous:z=H.last,next:void 0,removed:!1},H.first||(H.first=G),z&&(z.next=G),c?H.size++:v.size++,"F"!==E&&(H.index[E]=G)),v},w=function(v,C){v=t(v);var y=d(C);if("F"!==y)return v.index[y];for(v=v.first;v;v=v.next)if(v.key==C)return v};return D(m,{clear:function(){for(var v=t(this),C=v.index,y=v.first;y;)y.removed=!0,y.previous&&(y.previous=y.previous.next= 1603void 0),delete C[y.index],y=y.next;v.first=v.last=void 0;c?v.size=0:this.size=0},delete:function(v){var C=t(this);if(v=w(this,v)){var y=v.next,z=v.previous;delete C.index[v.index];v.removed=!0;z&&(z.next=y);y&&(y.previous=z);C.first==v&&(C.first=y);C.last==v&&(C.last=z);c?C.size--:this.size--}return!!v},forEach:function(v){for(var C,y=t(this),z=A(v,1<arguments.length?arguments[1]:void 0);C=C?C.next:y.first;)for(z(C.value,C.key,this);C&&C.removed;)C=C.previous},has:function(v){return!!w(this,v)}}), 1604D(m,l?{get:function(v){return(v=w(this,v))&&v.value},set:function(v,C){return u(this,0===v?0:v,C)}}:{add:function(v){return u(this,v=0===v?0:v,v)}}),c&&F(m,"size",{get:function(){return t(this).size}}),f},setStrong:function(f,n,l){var r=n+" Iterator",m=k(n),t=k(r);p(f,n,function(u,w){h(this,{type:r,target:u,state:m(u),kind:w,last:void 0})},function(){for(var u=t(this),w=u.kind,v=u.last;v&&v.removed;)v=v.previous;return u.target&&(u.last=v=v?v.next:u.state.first)?"keys"==w?{value:v.key,done:!1}:"values"== 1605w?{value:v.value,done:!1}:{value:[v.key,v.value],done:!1}:(u.target=void 0,{value:void 0,done:!0})},l?"entries":"values",!l,!0);e(n)}}},function(g,b,a){var F=a(66),B=a(345),D=a(59)("species");g.exports=function(A,x){var q;A=F(A).constructor;return void 0===A||null==(q=F(A)[D])?x:B(q)}},function(g,b){var a=TypeError;g.exports=function(F,B){if(F<B)throw a("Not enough arguments");return F}},function(g,b,a){b=a(121);
1605g.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(b)},function(g,b,a){var F=a(189); 1606b=a(264);a=a(190).CONSTRUCTOR;g.exports=a||!b(function(B){F.all(B).then(void 0,function(){})})},function(g,b,a){b=a(35);g.exports=b((1).valueOf)},function(g,b,a){b=a(35);var F=a(94),B=a(73);a=a(370);var D=b("".replace);a="["+a+"]";var A=RegExp("^"+a+a+"*"),x=RegExp(a+a+"*$");a=function(q){return function(p){p=B(F(p));return 1&q&&(p=D(p,A,"")),2&q&&(p=D(p,x,"")),p}};g.exports={start:a(1),end:a(2),trim:a(3)}},function(g,b){g.exports="\t\n\v\f\r \u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"}, 1607function(g,b,a){var F=a(61),B=a(65),D=a(128),A=a(352),x=RegExp.prototype;g.exports=function(q){var p=q.flags;return void 0!==p||"flags"in x||B(q,"flags")||!D(x,q)?p:F(A,q)}},function(g,b,a){function F(){M=!1}function B(){M=!0}function D(Y,aa){var W,ca=(aa=Object(J.defaults)(aa,{useSticky:M,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(Ea,za){return za()}})).tracer;ca("initCharCodeToOptimizedIndexMap",function(){if(Object(J.isEmpty)(V)){V=Array(65536); 1608for(var Ea=0;65536>Ea;Ea++)V[Ea]=255<Ea?255+~~(Ea/255):Ea}!0});ca("Reject Lexer.NA",function(){W=Object(J.reject)(Y,function(Ea){return Ea[O]===K.Lexer.NA})});var ia,ba,fa,ja,qa,ha,na,oa,ma,pa,sa,va=!1;ca("Transform Patterns",function(){va=!1;ia=Object(J.map)(W,function(Ea){Ea=Ea[O];if(Object(J.isRegExp)(Ea)){var za=Ea.source;return 1===za.length&&"^"!==za&&"$"!==za&&"."!==za?za:2!==za.length||"\\"!==za[0]||Object(J.contains)("dDsStrnt0cbBfvwW".split(""),za[1])?aa.useSticky?r(Ea):l(Ea):za[1]}if(Object(J.isFunction)(Ea))return va= 1609!0,{exec:Ea};if(Object(J.has)(Ea,"exec"))return va=!0,Ea;if("string"==typeof Ea){if(1===Ea.length)return Ea;Ea=Ea.replace(/[\\^$.*+?()[\]{}|]/g,"\\$\x26");Ea=new RegExp(Ea);return aa.useSticky?r(Ea):l(Ea)}throw Error("non exhaustive match");})});ca("misc mapping",function(){ba=Object(J.map)(W,function(Ea){return Ea.tokenTypeIdx});fa=Object(J.map)(W,function(Ea){Ea=Ea.GROUP;if(Ea!==K.Lexer.SKIPPED){if(Object(J.isString)(Ea))return Ea;if(Object(J.isUndefined)(Ea))return!1;throw Error("non exhaustive match"); 1610}});ja=Object(J.map)(W,function(Ea){if(Ea=Ea.LONGER_ALT)return Object(J.indexOf)(W,Ea)});qa=Object(J.map)(W,function(Ea){return Ea.PUSH_MODE});ha=Object(J.map)(W,function(Ea){return Object(J.has)(Ea,"POP_MODE")})});ca("Line Terminator Handling",function(){var Ea=z(aa.lineTerminatorCharacters);na=Object(J.map)(W,function(za){return!1});"onlyOffset"!==aa.positionTracking&&(na=Object(J.map)(W,function(za){return Object(J.has)(za,"LINE_BREAKS")?za.LINE_BREAKS:!1===C(za,Ea)?Object(P.canMatchCharCode)(Ea, 1611za.PATTERN):void 0}))});ca("Misc Mapping #2",function(){oa=Object(J.map)(W,w);ma=Object(J.map)(ia,v);pa=Object(J.reduce)(W,function(Ea,za){za=za.GROUP;return Object(J.isString)(za)&&za!==K.Lexer.SKIPPED&&(Ea[za]=[]),Ea},{});sa=Object(J.map)(ia,function(Ea,za){return{pattern:ia[za],longerAlt:ja[za],canLineTerminator:na[za],isCustom:oa[za],short:ma[za],group:fa[za],push:qa[za],pop:ha[za],tokenTypeIdx:ba[za],tokenType:W[za]}})});var Aa=!0,Fa=[];return aa.safeMode||ca("First Char Optimization",function(){Fa= 1612Object(J.reduce)(W,function(Ea,za,ea){if("string"==typeof za.PATTERN)za=H(za.PATTERN.charCodeAt(0)),E(Ea,za,sa[ea]);else if(Object(J.isArray)(za.START_CHARS_HINT)){var la;Object(J.forEach)(za.START_CHARS_HINT,function(ta){ta=H("string"==typeof ta?ta.charCodeAt(0):ta);la!==ta&&(la=ta,E(Ea,ta,sa[ea]))})}else Object(J.isRegExp)(za.PATTERN)?za.PATTERN.unicode?(Aa=!1,aa.ensureOptimizations&&Object(J.PRINT_ERROR)(P.failedOptimizationPrefixMsg+"\tUnable to analyze \x3c "+za.PATTERN.toString()+" \x3e pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE")): 1613(za=Object(P.getOptimizedStartCodesIndices)(za.PATTERN,aa.ensureOptimizations),Object(J.isEmpty)(za)&&(Aa=!1),Object(J.forEach)(za,function(ta){E(Ea,ta,sa[ea])})):(aa.ensureOptimizations&&Object(J.PRINT_ERROR)(P.failedOptimizationPrefixMsg+"\tTokenType: \x3c"+za.name+"\x3e is using a custom token pattern without providing \x3cstart_chars_hint\x3e parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"), 1614Aa=!1);return Ea},[])}),ca("ArrayPacking",function(){Fa=Object(J.packArray)(Fa)}
1614),{emptyGroups:pa,patternIdxToConfig:sa,charCodeToPatternIdxToConfig:Fa,hasCustom:va,canBeOptimized:Aa}}function A(Y,aa){var W=[];Y=x(Y);W=W.concat(Y.errors);Y=q(Y.valid);var ca=Y.valid;return W=(W=(W=(W=(W=W.concat(Y.errors)).concat(function(ia){var ba=[];ia=Object(J.filter)(ia,function(fa){return Object(J.isRegExp)(fa[O])});return ba=(ba=(ba=(ba=(ba=ba.concat(p(ia))).concat(c(ia))).concat(d(ia))).concat(h(ia))).concat(e(ia))}(ca))).concat(k(ca))).concat(f(ca, 1615aa))).concat(n(ca))}function x(Y){var aa=Object(J.filter)(Y,function(W){return!Object(J.has)(W,O)});return{errors:Object(J.map)(aa,function(W){return{message:"Token Type: -\x3e"+W.name+"\x3c- missing static 'PATTERN' property",type:K.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[W]}}),valid:Object(J.difference)(Y,aa)}}function q(Y){var aa=Object(J.filter)(Y,function(W){W=W[O];return!(Object(J.isRegExp)(W)||Object(J.isFunction)(W)||Object(J.has)(W,"exec")||Object(J.isString)(W))});return{errors:Object(J.map)(aa, 1616function(W){return{message:"Token Type: -\x3e"+W.name+"\x3c- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:K.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[W]}}),valid:Object(J.difference)(Y,aa)}}function p(Y){var aa=function(W){function ca(){var ia=null!==W&&W.apply(this,arguments)||this;return ia.found=!1,ia}return R(ca,W),ca.prototype.visitEndAnchor=function(ia){this.found=!0},ca}(I.BaseRegExpVisitor); 1617Y=Object(J.filter)(Y,function(W){W=W[O];try{var ca=Object(S.getRegExpAst)(W),ia=new aa;return ia.visit(ca),ia.found}catch(ba){return T.test(W.source)}});return Object(J.map)(Y,function(W){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: -\x3e"+W.name+"\x3c- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:K.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[W]}})}function e(Y){Y= 1618Object(J.filter)(Y,function(aa){return aa[O].test("")});return Object(J.map)(Y,function(aa){return{message:"Token Type: -\x3e"+aa.name+"\x3c- static 'PATTERN' must not match an empty string",type:K.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[aa]}})}function c(Y){var aa=function(W){function ca(){var ia=null!==W&&W.apply(this,arguments)||this;return ia.found=!1,ia}return R(ca,W),ca.prototype.visitStartAnchor=function(ia){this.found=!0},ca}(I.BaseRegExpVisitor);Y=Object(J.filter)(Y,function(W){W= 1619W[O];try{var ca=Object(S.getRegExpAst)(W),ia=new aa;return ia.visit(ca),ia.found}catch(ba){return Z.test(W.source)}});return Object(J.map)(Y,function(W){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: -\x3e"+W.name+"\x3c- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:K.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[W]}})}function d(Y){Y=Object(J.filter)(Y,function(aa){aa= 1620aa[O];return aa instanceof RegExp&&(aa.multiline||aa.global)});return Object(J.map)(Y,function(aa){return{message:"Token Type: -\x3e"+aa.name+"\x3c- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:K.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[aa]}})}function h(Y){var aa=[],W=Object(J.map)(Y,function(ca){return Object(J.reduce)(Y,function(ia,ba){return ca.PATTERN.source!==ba.PATTERN.source||Object(J.contains)(aa,ba)||ba.PATTERN===K.Lexer.NA||(aa.push(ba),ia.push(ba)), 1621ia},[])});W=Object(J.compact)(W);W=Object(J.filter)(W,function(ca){return 1<ca.length});return Object(J.map)(W,function(ca){var ia=Object(J.map)(ca,function(ba){return ba.name});return{message:"The same RegExp pattern -\x3e"+Object(J.first)(ca).PATTERN+"\x3c-has been used in all of the following Token Types: "+ia.join(", ")+" \x3c-",type:K.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:ca}})}function k(Y){Y=Object(J.filter)(Y,function(aa){if(!Object(J.has)(aa,"GROUP"))return!1;aa=aa.GROUP; 1622return aa!==K.Lexer.SKIPPED&&aa!==K.Lexer.NA&&!Object(J.isString)(aa)});return Object(J.map)(Y,function(aa){return{message:"Token Type: -\x3e"+aa.name+"\x3c- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:K.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[aa]}})}function f(Y,aa){Y=Object(J.filter)(Y,function(W){return void 0!==W.PUSH_MODE&&!Object(J.contains)(aa,W.PUSH_MODE)});return Object(J.map)(Y,function(W){return{message:"Token Type: -\x3e"+W.name+"\x3c- static 'PUSH_MODE' value cannot refer to a Lexer Mode -\x3e"+ 1623W.PUSH_MODE+"\x3c-which does not exist",type:K.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[W]}})}function n(Y){var aa=[],W=Object(J.reduce)(Y,function(ca,ia,ba){var fa=ia.PATTERN;return fa===K.Lexer.NA||(Object(J.isString)(fa)?ca.push({str:fa,idx:ba,tokenType:ia}):Object(J.isRegExp)(fa)&&void 0===Object(J.find)(".\\[]|^$()?*+{".split(""),function(ja){return-1!==fa.source.indexOf(ja)})&&ca.push({str:fa.source,idx:ba,tokenType:ia})),ca},[]);return Object(J.forEach)(Y,function(ca,ia){Object(J.forEach)(W, 1624function(ba){var fa=ba.str,ja=ba.tokenType;ia<ba.idx&&function(qa,ha){if(Object(J.isRegExp)(ha))return qa=ha.exec(qa),null!==qa&&0===qa.index;if(Object(J.isFunction)(ha))return ha(qa,0,[],{});if(Object(J.has)(ha,"exec"))return ha.exec(qa,0,[],{});if("string"==typeof ha)return ha===qa;throw Error("non exhaustive match");}(fa,ca.PATTERN)&&aa.push({message:"Token: -\x3e"+ja.name+"\x3c- can never be matched.\nBecause it appears AFTER the Token Type -\x3e"+ca.name+"\x3c-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE", 1625type:K.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[ca,ja]})})}),aa}function l(Y){return new RegExp("^(?:"+Y.source+")",Y.ignoreCase?"i":"")}function r(Y){return new RegExp(""+Y.source,Y.ignoreCase?"iy":"y")}function m(Y,aa,W){var ca=[];return Object(J.has)(Y,N)||ca.push({message:"A MultiMode Lexer cannot be initialized without a \x3c"+N+"\x3e property in its definition\n",type:K.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object(J.has)(Y,Q)||ca.push({message:"A MultiMode Lexer cannot be initialized without a \x3c"+ 1626Q+"\x3e property in its definition\n",type:K.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object(J.has)(Y,Q)&&Object(J.has)(Y,N)&&!Object(J.has)(Y.modes,Y.defaultMode)&&ca.push({message:"A MultiMode Lexer cannot be initialized with a "+N+": \x3c"+Y.defaultMode+"\x3ewhich does not exist\n",type:K.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object(J.has)(Y,Q)&&Object(J.forEach)(Y.modes,function(ia,ba){Object(J.forEach)(ia,function(fa,ja){Object(J.isUndefined)(fa)&& 1627ca.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:\x3c"+ba+"\x3e at index: \x3c"+ja+"\x3e\n",type:K.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),ca}function t(Y,aa,W){var ca=[],ia=!1;Y=Object(J.compact)(Object(J.flatten)(Object(J.mapValues)(Y.modes,function(fa){return fa})));Y=Object(J.reject)(Y,function(fa){return fa[O]===K.Lexer.NA});var ba=z(W);return aa&&Object(J.forEach)(Y,function(fa){var ja=C(fa,ba);!1!==ja?(fa={message:y(fa,ja), 1628type:ja.issue,tokenType:fa},ca.push(fa)):Object(J.has)(fa,"LINE_BREAKS")?!0===fa.LINE_BREAKS&&(ia=!0):Object(P.canMatchCharCode)(ba,fa.PATTERN)&&(ia=!0)}),aa&&!ia&&ca.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:K.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}), 1629ca}function u(Y){var aa={},W=Object(J.keys)(Y);
1629return Object(J.forEach)(W,function(ca){if(!Object(J.isArray)(Y[ca]))throw Error("non exhaustive match");aa[ca]=[]}),aa}function w(Y){Y=Y.PATTERN;if(Object(J.isRegExp)(Y))return!1;if(Object(J.isFunction)(Y)||Object(J.has)(Y,"exec"))return!0;if(Object(J.isString)(Y))return!1;throw Error("non exhaustive match");}function v(Y){return!(!Object(J.isString)(Y)||1!==Y.length)&&Y.charCodeAt(0)}function C(Y,aa){if(Object(J.has)(Y,"LINE_BREAKS"))return!1;if(Object(J.isRegExp)(Y.PATTERN)){try{Object(P.canMatchCharCode)(aa, 1630Y.PATTERN)}catch(W){return{issue:K.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:W.message}}return!1}if(Object(J.isString)(Y.PATTERN))return!1;if(w(Y))return{issue:K.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match");}function y(Y,aa){if(aa.issue===K.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the \x3c"+Y.name+"\x3e Token Type\n\t Root cause: "+aa.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"; 1631if(aa.issue===K.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the \x3cline_breaks\x3e option.\n\tThe problem is in the \x3c"+Y.name+"\x3e Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match");}function z(Y){return Object(J.map)(Y,function(aa){return Object(J.isString)(aa)&&0<aa.length?aa.charCodeAt(0):aa})}function E(Y,aa,W){void 0===Y[aa]?Y[aa]= 1632[W]:Y[aa].push(W)}function H(Y){return Y<U?Y:V[Y]}a.r(b);a.d(b,"DEFAULT_MODE",function(){return N});a.d(b,"MODES",function(){return Q});a.d(b,"SUPPORT_STICKY",function(){return M});a.d(b,"disableSticky",function(){return F});a.d(b,"enableSticky",function(){return B});a.d(b,"analyzeTokenTypes",function(){return D});a.d(b,"validatePatterns",function(){return A});a.d(b,"findMissingPatterns",function(){return x});a.d(b,"findInvalidPatterns",function(){return q});a.d(b,"findEndOfInputAnchor",function(){return p}); 1633a.d(b,"findEmptyMatchRegExps",function(){return e});a.d(b,"findStartOfInputAnchor",function(){return c});a.d(b,"findUnsupportedFlags",function(){return d});a.d(b,"findDuplicatePatterns",function(){return h});a.d(b,"findInvalidGroupType",function(){return k});a.d(b,"findModesThatDoNotExist",function(){return f});a.d(b,"findUnreachablePatterns",function(){return n});a.d(b,"addStartOfInput",function(){return l});a.d(b,"addStickyFlag",function(){return r});a.d(b,"performRuntimeChecks",function(){return m}); 1634a.d(b,"performWarningRuntimeChecks",function(){return t});a.d(b,"cloneEmptyGroups",function(){return u});a.d(b,"isCustomPattern",function(){return w});a.d(b,"isShortPattern",function(){return v});a.d(b,"LineTerminatorOptimizedTester",function(){return L});a.d(b,"buildLineBreakIssueMessage",function(){return y});a.d(b,"minOptimizationVal",function(){return U});a.d(b,"charCodeToOptimizedIndex",function(){return H});var G,I=a(278),K=a(162),J=a(48),P=a(699),S=a(279),R=(G=function(Y,aa){return(G=Object.setPrototypeOf|| 1635{__proto__:[]}instanceof Array&&function(W,ca){W.__proto__=ca}||function(W,ca){for(var ia in ca)ca.hasOwnProperty(ia)&&(W[ia]=ca[ia])})(Y,aa)},function(Y,aa){function W(){this.constructor=Y}G(Y,aa);Y.prototype=null===aa?Object.create(aa):(W.prototype=aa.prototype,new W)}),O="PATTERN",N="defaultMode",Q="modes",M="boolean"==typeof RegExp("(?:)").sticky,T=/[^\\][\$]/,Z=/[^\\[][\^]|^\^/,L={test:function(Y){for(var aa=Y.length,W=this.lastIndex;W<aa;W++){var ca=Y.charCodeAt(W);if(10===ca)return this.lastIndex= 1636W+1,!0;if(13===ca)return 10===Y.charCodeAt(W+1)?this.lastIndex=W+2:this.lastIndex=W+1,!0}return!1},lastIndex:0},U=256,V=[]},function(g,b,a){function F(e){if(e instanceof q.NonTerminal)return F(e.referencedRule);if(e instanceof q.Terminal)return[e.terminalType];if(Object(p.isSequenceProd)(e))return B(e);if(Object(p.isBranchingProd)(e))return D(e);throw Error("non exhaustive match");}function B(e){var c=[];e=e.definition;var d=0;var h=e.length>d;for(var k=!0;h&&k;)h=e[d],k=Object(p.isOptionalProd)(h), 1637c=c.concat(F(h)),d+=1,h=e.length>d;return Object(x.uniq)(c)}function D(e){e=Object(x.map)(e.definition,function(c){return F(c)});return Object(x.uniq)(Object(x.flatten)(e))}function A(e){return[e.terminalType]}a.r(b);a.d(b,"first",function(){return F});a.d(b,"firstForSequence",function(){return B});a.d(b,"firstForBranching",function(){return D});a.d(b,"firstForTerminal",function(){return A});var x=a(48),q=a(57),p=a(194)},function(g,b,a){a.r(b);a.d(b,"IN",function(){return F});var F="_~IN~_"},function(g, 1638b,a){function F(h){this.name=c;this.message=h}function B(h,k,f,n,l,r,m){var t=this.getKeyForAutomaticLookahead(n,l);n=this.firstAfterRepMap[t];void 0===n&&(n=this.getCurrRuleFullName(),n=(new r(this.getGAstProductions()[n],l)).startWalking(),this.firstAfterRepMap[t]=n);l=n.token;r=n.occurrence;n=n.isEndOfRule;1===this.RULE_STACK.length&&n&&void 0===l&&(l=D.EOF,r=1);this.shouldInRepetitionRecoveryBeTried(l,r,m)&&this.tryInRepetitionRecovery(h,k,f,l)}
1638a.r(b);a.d(b,"EOF_FOLLOW_KEY",function(){return e}); 1639a.d(b,"IN_RULE_RECOVERY_EXCEPTION",function(){return c});a.d(b,"InRuleRecoveryException",function(){return F});a.d(b,"Recoverable",function(){return d});a.d(b,"attemptInRepetitionRecovery",function(){return B});var D=a(102),A=a(48),x=a(117),q=a(374),p=a(81),e={},c="InRuleRecoveryException";F.prototype=Error.prototype;var d=function(){function h(){}return h.prototype.initRecoverable=function(k){this.firstAfterRepMap={};this.resyncFollows={};(this.recoveryEnabled=Object(A.has)(k,"recoveryEnabled")? 1640k.recoveryEnabled:p.DEFAULT_PARSER_CONFIG.recoveryEnabled)&&(this.attemptInRepetitionRecovery=B)},h.prototype.getTokenToInsert=function(k){k=Object(D.createTokenInstance)(k,"",NaN,NaN,NaN,NaN,NaN,NaN);return k.isInsertedInRecovery=!0,k},h.prototype.canTokenTypeBeInsertedInRecovery=function(k){return!0},h.prototype.tryInRepetitionRecovery=function(k,f,n,l){for(var r=this,m=this.findReSyncTokenType(),t=this.exportLexerState(),u=[],w=!1,v=this.LA(1),C=this.LA(1),y=function(){var z=r.LA(0);z=r.errorMessageProvider.buildMismatchTokenMessage({expected:l, 1641actual:v,previous:z,ruleName:r.getCurrRuleFullName()});z=new x.MismatchedTokenException(z,v,r.LA(0));z.resyncedTokens=Object(A.dropRight)(u);r.SAVE_ERROR(z)};!w;){if(this.tokenMatcher(C,l))return void y();if(n.call(this))return y(),void k.apply(this,f);this.tokenMatcher(C,m)?w=!0:(C=this.SKIP_TOKEN(),this.addToResyncTokens(C,u))}this.importLexerState(t)},h.prototype.shouldInRepetitionRecoveryBeTried=function(k,f,n){return!1!==n&&void 0!==k&&void 0!==f&&!this.tokenMatcher(this.LA(1),k)&&!this.isBackTracking()&& 1642!this.canPerformInRuleRecovery(k,this.getFollowsForInRuleRecovery(k,f))},h.prototype.getFollowsForInRuleRecovery=function(k,f){k=this.getCurrentGrammarPath(k,f);return this.getNextPossibleTokenTypes(k)},h.prototype.tryInRuleRecovery=function(k,f){if(this.canRecoverWithSingleTokenInsertion(k,f))return this.getTokenToInsert(k);if(this.canRecoverWithSingleTokenDeletion(k))return k=this.SKIP_TOKEN(),this.consumeToken(),k;throw new F("sad sad panda");},h.prototype.canPerformInRuleRecovery=function(k,f){return this.canRecoverWithSingleTokenInsertion(k, 1643f)||this.canRecoverWithSingleTokenDeletion(k)},h.prototype.canRecoverWithSingleTokenInsertion=function(k,f){var n=this;if(!this.canTokenTypeBeInsertedInRecovery(k)||Object(A.isEmpty)(f))return!1;var l=this.LA(1);return void 0!==Object(A.find)(f,function(r){return n.tokenMatcher(l,r)})},h.prototype.canRecoverWithSingleTokenDeletion=function(k){return this.tokenMatcher(this.LA(2),k)},h.prototype.isInCurrentRuleReSyncSet=function(k){var f=this.getCurrFollowKey();f=this.getFollowSetFromFollowKey(f);return Object(A.contains)(f, 1644k)},h.prototype.findReSyncTokenType=function(){for(var k=this.flattenFollowSet(),f=this.LA(1),n=2;;){f=f.tokenType;if(Object(A.contains)(k,f))return f;f=this.LA(n);n++}},h.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return e;var k=this.getLastExplicitRuleShortName(),f=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(k),idxInCallingRule:f,inRule:this.shortRuleNameToFullName(n)}},h.prototype.buildFullFollowKeyStack= 1645function(){var k=this,f=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return Object(A.isEmpty)(this.LAST_EXPLICIT_RULE_STACK)||(f=Object(A.map)(this.LAST_EXPLICIT_RULE_STACK,function(l){return k.RULE_STACK[l]}),n=Object(A.map)(this.LAST_EXPLICIT_RULE_STACK,function(l){return k.RULE_OCCURRENCE_STACK[l]})),Object(A.map)(f,function(l,r){return 0===r?e:{ruleName:k.shortRuleNameToFullName(l),idxInCallingRule:n[r],inRule:k.shortRuleNameToFullName(f[r-1])}})},h.prototype.flattenFollowSet=function(){var k= 1646this,f=Object(A.map)(this.buildFullFollowKeyStack(),function(n){return k.getFollowSetFromFollowKey(n)});return Object(A.flatten)(f)},h.prototype.getFollowSetFromFollowKey=function(k){return k===e?[D.EOF]:this.resyncFollows[k.ruleName+k.idxInCallingRule+q.IN+k.inRule]},h.prototype.addToResyncTokens=function(k,f){return this.tokenMatcher(k,D.EOF)||f.push(k),f},h.prototype.reSyncTo=function(k){for(var f=[],n=this.LA(1);!1===this.tokenMatcher(n,k);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,f);return Object(A.dropRight)(f)}, 1647h.prototype.attemptInRepetitionRecovery=function(k,f,n,l,r,m,t){},h.prototype.getCurrentGrammarPath=function(k,f){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:Object(A.cloneArr)(this.RULE_OCCURRENCE_STACK),lastTok:k,lastTokOccurrence:f}},h.prototype.getHumanReadableRuleStack=function(){var k=this;return Object(A.isEmpty)(this.LAST_EXPLICIT_RULE_STACK)?Object(A.map
1647)(this.RULE_STACK,function(f){return k.shortRuleNameToFullName(f)}):Object(A.map)(this.LAST_EXPLICIT_RULE_STACK,function(f){return k.shortRuleNameToFullName(k.RULE_STACK[f])})}, 1648h}()},function(g,b,a){function F(q){return B(q.constructor)}function B(q){return q.name||q.toString().match(x)[1]}function D(q,p){var e=Object.getOwnPropertyDescriptor(q,"name");return!(!Object(A.isUndefined)(e)&&!e.configurable)&&(Object.defineProperty(q,"name",{enumerable:!1,configurable:!0,writable:!1,value:p}),!0)}a.r(b);a.d(b,"classNameFromInstance",function(){return F});a.d(b,"functionName",function(){return B});a.d(b,"defineNameProp",function(){return D});var A=a(48),x=/^\s*function\s*(\S*)\s*\(/}, 1649function(g,b,a){function F(D,A){A=void 0===A?{}:A;var x=A.resourceBase;x=void 0===x?"https://unpkg.com/chevrotain@"+B.VERSION+"/diagrams/":x;A=A.css;return"\n\x3c!-- This is a generated file --\x3e\n\x3c!DOCTYPE html\x3e\n\x3cmeta charset\x3d\"utf-8\"\x3e\n\x3cstyle\x3e\n body {\n background-color: hsl(30, 20%, 95%)\n }\n\x3c/style\x3e\n\n\n\x3clink rel\x3d'stylesheet' href\x3d'"+((void 0===A?"https://unpkg.com/chevrotain@"+B.VERSION+"/diagrams/diagrams.css":A)+"'\x3e\n\n\x3cscript src\x3d'")+ 1650(x+"vendor/railroad-diagrams.js'\x3e\x3c/script\x3e\n\x3cscript src\x3d'"+x+"src/diagrams_builder.js'\x3e\x3c/script\x3e\n\x3cscript src\x3d'"+x+"src/diagrams_behavior.js'\x3e\x3c/script\x3e\n\x3cscript src\x3d'"+x+'src/main.js\'\x3e\x3c/script\x3e\n\n\x3cdiv id\x3d"diagrams" align\x3d"center"\x3e\x3c/div\x3e \n\n\x3cscript\x3e\n window.serializedGrammar \x3d ')+(JSON.stringify(D,null," ")+';\n\x3c/script\x3e\n\n\x3cscript\x3e\n var diagramsDiv \x3d document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n\x3c/script\x3e\n')} 1651a.r(b);a.d(b,"createSyntaxDiagramsCode",function(){return F});var B=a(276)},function(g,b,a){function F(l,r){if(!(l=function(m){if(Array.isArray(m))return m}(l)||function(m,t){var u=null==m?null:"undefined"!=typeof Symbol&&m[Symbol.iterator]||m["@@iterator"];if(null!=u){var w,v=[],C=!0,y=!1;try{for(u=u.call(m);!(C=(w=u.next()).done)&&(v.push(w.value),!t||v.length!==t);C=!0);}catch(E){y=!0;var z=E}finally{try{C||null==u.return||u.return()}finally{if(y)throw z;}}return v}}(l,r)||function(m,t){if(m){if("string"== 1652typeof m)return B(m,t);var u=Object.prototype.toString.call(m).slice(8,-1);"Object"===u&&m.constructor&&(u=m.constructor.name);if("Map"===u||"Set"===u)return Array.from(m);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return B(m,t)}}(l,r)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return l}function B(l,r){(null==r||r>l.length)&&(r=l.length);for(var m=0,t= 1653Array(r);m<r;m++)t[m]=l[m];return t}function D(l,r){for(var m=0;m<r.length;m++){var t=r[m];t.enumerable=t.enumerable||!1;t.configurable=!0;"value"in t&&(t.writable=!0);Object.defineProperty(l,t.key,t)}}a.r(b);a.d(b,"ParserWithCaching",function(){return n});a(36);a(93);a(18);a(13);a(12);a(64);a(76);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(26);a(22);var A=a(233),x=a(24),q=a(74),p=a(104),e=a(106),c=a(379),d=a(712),h=a(283),k=a(192),f=a(284),n=function(){function l(m,t,u){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function"); 1654!0;this.config=m;this.functionRegistry=t;this.sheetMapping=u;this.statsCacheUsed=0;this.lexerConfig=Object(k.buildLexerConfig)(m);this.lexer=new h.FormulaLexer(this.lexerConfig);this.formulaParser=new h.FormulaParser(this.lexerConfig,this.sheetMapping);this.cache=new d.Cache(this.functionRegistry)}var r;return r=[{key:"parse",value:function(m,t){var u=this.tokenizeFormula(m);if(0<u.errors.length)return t=u.errors.map(function(v){return{type:e.ParsingErrorType.LexingError,message:v.message}}),{ast:Object(q.buildParsingErrorAst)(), 1655errors:t,hasVolatileFunction:!1,hasStructuralChangeFunction:!1,dependencies:[]};m=this.computeHashFromTokens(u.tokens,t);var w=this.cache.get(m);
1655if(void 0!==w)++this.statsCacheUsed;else{u=this.bindWhitespacesToTokens(u.tokens);t=this.formulaParser.parseFromTokens(u,t);if(0<t.errors.length)return Object.assign(Object.assign({},t),{hasVolatileFunction:!1,hasStructuralChangeFunction:!1,dependencies:[]});w=this.cache.set(m,t.ast)}t=w;return{ast:t.ast,errors:[],hasVolatileFunction:t.hasVolatileFunction, 1656hasStructuralChangeFunction:t.hasStructuralChangeFunction,dependencies:t.relativeDependencies}}},{key:"fetchCachedResultForAst",value:function(m){m=this.computeHashFromAst(m);return this.fetchCachedResult(m)}},{key:"fetchCachedResult",value:function(m){m=this.cache.get(m);if(void 0===m)throw Error("There is no AST with such key in the cache");return{ast:m.ast,errors:[],hasVolatileFunction:m.hasVolatileFunction,hasStructuralChangeFunction:m.hasStructuralChangeFunction,dependencies:m.relativeDependencies}}}, 1657{key:"computeHashFromTokens",value:function(m,t){for(var u,w="",v=0;v<m.length;){var C=m[v];if(Object(A.tokenMatcher)(C,k.CellReference)){var y=Object(p.cellAddressFromString)(this.sheetMapping,C.image,t);w=void 0===y?w.concat(C.image):w.concat(y.hash(!0))}else Object(A.tokenMatcher)(C,k.ProcedureName)?(C=C.image.toUpperCase().slice(0,-1),y=null!==(u=this.lexerConfig.functionMapping[C])&&void 0!==u?u:C,w=w.concat(y,"(")):Object(A.tokenMatcher)(C,k.ColumnRange)?(y=F(C.image.split(":"),2),C=y[1],y= 1658Object(p.columnAddressFromString)(this.sheetMapping,y[0],t),C=Object(p.columnAddressFromString)(this.sheetMapping,C,t),w=void 0===y||void 0===C?w.concat("!REF"):w.concat(y.hash(!0),":",C.hash(!0))):Object(A.tokenMatcher)(C,k.RowRange)?(y=F(C.image.split(":"),2),C=y[1],y=Object(p.rowAddressFromString)(this.sheetMapping,y[0],t),C=Object(p.rowAddressFromString)(this.sheetMapping,C,t),w=void 0===y||void 0===C?w.concat("!REF"):w.concat(y.hash(!0),":",C.hash(!0))):w=w.concat(C.image);v++}return w}},{key:"rememberNewAst", 1659value:function(m){var t=this.computeHashFromAst(m);return this.cache.maybeSetAndThenGet(t,m)}},{key:"computeHashFromAst",value:function(m){return"\x3d"+this.computeHashOfAstNode(m)}},{key:"computeHashOfAstNode",value:function(m){var t=this;switch(m.type){case q.AstNodeType.EMPTY:return m.leadingWhitespace||"";case q.AstNodeType.NUMBER:return Object(e.imageWithWhitespace)(Object(f.formatNumber)(m.value,this.config.decimalSeparator),m.leadingWhitespace);case q.AstNodeType.STRING:return Object(e.imageWithWhitespace)('"'+ 1660m.value+'"',m.leadingWhitespace);case q.AstNodeType.NAMED_EXPRESSION:return Object(e.imageWithWhitespace)(m.expressionName,m.leadingWhitespace);case q.AstNodeType.FUNCTION_CALL:var u=m.args.map(function(v){return t.computeHashOfAstNode(v)}).join(this.config.functionArgSeparator);u=m.procedureName+"("+u+Object(e.imageWithWhitespace)(")",m.internalWhitespace);return Object(e.imageWithWhitespace)(u,m.leadingWhitespace);case q.AstNodeType.CELL_REFERENCE:return Object(e.imageWithWhitespace)(m.reference.hash(!0), 1661m.leadingWhitespace);case q.AstNodeType.COLUMN_RANGE:case q.AstNodeType.ROW_RANGE:case q.AstNodeType.CELL_RANGE:u=m.start.hash(m.sheetReferenceType!==e.RangeSheetReferenceType.RELATIVE);var w=m.end.hash(m.sheetReferenceType===e.RangeSheetReferenceType.BOTH_ABSOLUTE);return Object(e.imageWithWhitespace)(u+":"+w,m.leadingWhitespace);case q.AstNodeType.MINUS_UNARY_OP:return Object(e.imageWithWhitespace)("-"+this.computeHashOfAstNode(m.value),m.leadingWhitespace);case q.AstNodeType.PLUS_UNARY_OP:return Object(e.imageWithWhitespace)("+"+ 1662this.computeHashOfAstNode(m.value),m.leadingWhitespace);case q.AstNodeType.PERCENT_OP:return this.computeHashOfAstNode(m.value)+Object(e.imageWithWhitespace)("%",m.leadingWhitespace);case q.AstNodeType.ERROR:return u=this.config.translationPackage.getErrorTranslation(m.error?m.error.type:x.ErrorType.ERROR),Object(e.imageWithWhitespace)(u,m.leadingWhitespace);case q.AstNodeType.ERROR_WITH_RAW_INPUT:return Object(e.imageWithWhitespace)(m.rawInput,m.leadingWhitespace);case q.AstNodeType.ARRAY:return u= 1663m.args.map(function(v){return v.map(function(C){return t.computeHashOfAstNode(C)}).join(",")}).join(";"),Object(e.imageWithWhitespace)("{"+u+Object(e.imageWithWhitespace)("}",m.internalWhitespace),m.leadingWhitespace);case q.AstNodeType.PARENTHESIS:return u="("+this.computeHashOfAstNode(m.expression)+Object(e.imageWithWhitespace)(")",m.internalWhitespace),Object(e.imageWithWhitespace)(u,m.leadingWhitespace);default:return this.computeHashOfAstNode(m.left)+Object(e.imageWithWhitespace)(c.binaryOpTokenMap[m.type], 1664m.leadingWhitespace)+this.computeHashOfAstNode(m.right)}}}
1664,{key:"bindWhitespacesToTokens",value:function(m){var t=[],u=m[0];Object(A.tokenMatcher)(u,this.lexerConfig.WhiteSpace)||t.push(u);for(u=1;u<m.length;++u){var w=m[u];if(!Object(A.tokenMatcher)(w,this.lexerConfig.WhiteSpace)){var v=m[u-1];Object(A.tokenMatcher)(v,this.lexerConfig.WhiteSpace)&&(w.leadingWhitespace=v);t.push(w)}}return t}},{key:"tokenizeFormula",value:function(m){return this.lexer.tokenizeFormula(m)}}],D(l.prototype,r),Object.defineProperty(l, 1665"prototype",{writable:!1}),l}()},function(g,b,a){function F(A,x,q){return x in A?Object.defineProperty(A,x,{value:q,enumerable:!0,configurable:!0,writable:!0}):A[x]=q,A}a.r(b);a.d(b,"binaryOpTokenMap",function(){return D});var B;g=a(106);var D=(F(B={},g.AstNodeType.PLUS_OP,"+"),F(B,g.AstNodeType.MINUS_OP,"-"),F(B,g.AstNodeType.TIMES_OP,"*"),F(B,g.AstNodeType.DIV_OP,"/"),F(B,g.AstNodeType.CONCATENATE_OP,"\x26"),F(B,g.AstNodeType.POWER_OP,"^"),F(B,g.AstNodeType.EQUALS_OP,"\x3d"),F(B,g.AstNodeType.NOT_EQUAL_OP, 1666"\x3c\x3e"),F(B,g.AstNodeType.GREATER_THAN_OP,"\x3e"),F(B,g.AstNodeType.GREATER_THAN_OR_EQUAL_OP,"\x3e\x3d"),F(B,g.AstNodeType.LESS_THAN_OP,"\x3c"),F(B,g.AstNodeType.LESS_THAN_OR_EQUAL_OP,"\x3c\x3d"),B)},function(g,b,a){var F=a(155),B=TypeError;g.exports=function(D,A){if(!delete D[A])throw B("Cannot delete property "+F(A)+" of "+F(D));}},function(g,b,a){g=a(28);var F=a(61),B=a(63),D=a(66),A=a(718),x=a(114),q=a(219);g({target:"Reflect",stat:!0},{get:function d(e,c){var h,k,f=3>arguments.length?e:arguments[2]; 1667return D(e)===f?e[c]:(h=x.f(e,c))?A(h)?h.value:void 0===h.get?void 0:F(h.get,f):B(k=q(e))?d(k,c,f):void 0}})},function(g,b,a){a.r(b);a.d(b,"collectDependencies",function(){return B});a(0);a(27);var F=a(74),B=function(D,A){var x=[];return function h(p,e,c,d){switch(p.type){case F.AstNodeType.NAMED_EXPRESSION:return void(d&&c.push(new F.NamedExpressionDependency(p.expressionName)));case F.AstNodeType.CELL_REFERENCE:return void(d&&c.push(new F.AddressDependency(p.reference)));case F.AstNodeType.CELL_RANGE:return void(d&& 1668p.start.sheet===p.end.sheet&&c.push(new F.CellRangeDependency(p.start,p.end)));case F.AstNodeType.COLUMN_RANGE:return void(d&&p.start.sheet===p.end.sheet&&c.push(new F.ColumnRangeDependency(p.start,p.end)));case F.AstNodeType.ROW_RANGE:return void(d&&p.start.sheet===p.end.sheet&&c.push(new F.RowRangeDependency(p.start,p.end)));case F.AstNodeType.PERCENT_OP:case F.AstNodeType.PLUS_UNARY_OP:case F.AstNodeType.MINUS_UNARY_OP:return void h(p.value,e,c,!0);case F.AstNodeType.CONCATENATE_OP:case F.AstNodeType.EQUALS_OP:case F.AstNodeType.NOT_EQUAL_OP:case F.AstNodeType.LESS_THAN_OP:case F.AstNodeType.GREATER_THAN_OP:case F.AstNodeType.LESS_THAN_OR_EQUAL_OP:case F.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case F.AstNodeType.MINUS_OP:case F.AstNodeType.PLUS_OP:case F.AstNodeType.TIMES_OP:case F.AstNodeType.DIV_OP:case F.AstNodeType.POWER_OP:return h(p.left, 1669e,c,!0),void h(p.right,e,c,!0);case F.AstNodeType.PARENTHESIS:return void h(p.expression,e,c,d);case F.AstNodeType.FUNCTION_CALL:var k=!e.doesFunctionNeedArgumentToBeComputed(p.procedureName);return void p.args.forEach(function(f){return h(f,e,c,k)})}}(D,A,x,!0),x}},function(g,b,a){function F(p){return(F="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})(p)} 1670function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1671[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}
1671function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 1672function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"EmptyStatistics",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0, 1673configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"incrementCriterionFunctionFullCacheUsed",value:function(){}},{key:"incrementCriterionFunctionPartialCacheUsed",value:function(){}},{key:"start",value:function(h){}},{key:"end",value:function(h){}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(a(286).Statistics)},function(g,b,a){function F(f){var n=Array.isArray(f)?D(f):void 0;n||(n="undefined"!=typeof Symbol&& 1674null!=f[Symbol.iterator]||null!=f["@@iterator"]?Array.from(f):void 0);if(!(f=n||B(f)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return f}function B(f,n){if(f){if("string"==typeof f)return D(f,n);var l=Object.prototype.toString.call(f).slice(8,-1);return"Object"===l&&f.constructor&&(l=f.constructor.name),"Map"===l||"Set"===l?Array.from(f):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)? 1675D(f,n):void 0}}function D(f,n){(null==n||n>f.length)&&(n=f.length);for(var l=0,r=Array(n);l<n;l++)r[l]=f[l];return r}function A(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function");}function x(f,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}function q(f,n,l){return n&&x(f.prototype,n),l&&x(f,l),Object.defineProperty(f,"prototype",{writable:!1}),f}a.r(b);a.d(b,"NotComputedArray", 1676function(){return d});a.d(b,"ArrayValue",function(){return h});a.d(b,"ErroredArray",function(){return k});a(55);a(18);a(144);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(22);a(13);a(26);a(12);var p=a(132),e=a(51),c=a(82),d=function(){function f(n){A(this,f);this.size=n}return q(f,[{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"get",value:function(n,l){throw Error("Array not computed yet.");}},{key:"simpleRangeValue",value:function(){throw Error("Array not computed yet."); 1677}}]),f}(),h=function(){function f(n){A(this,f);this.size=new p.ArraySize(0<n.length?n[0].length:0,n.length);this.array=n}return q(f,[{key:"simpleRangeValue",value:function(){return c.SimpleRangeValue.onlyValues(this.array)}},{key:"addRows",value:function(n,l){var r;(r=this.array).splice.apply(r,[n,0].concat(F(this.nullArrays(l,this.width()))));this.size.height+=l}},{key:"addColumns",value:function(n,l){for(var r=0;r<this.height();r++){var m;(m=this.array[r]).splice.apply(m,[n,0].concat(F(Array(l).fill(e.EmptyValue))))}this.size.width+= 1678l}},{key:"removeRows",value:function(n,l){if(this.outOfBound(0,n)||this.outOfBound(0,l))throw Error("Array index out of bound");l=l-n+1;this.array.splice(n,l);this.size.height-=l}},{key:"removeColumns",value:function(n,l){if(this.outOfBound(n,0)||this.outOfBound(l,0))throw Error("Array index out of bound");var r;l=l-n+1;var m=function(t,u){var w="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!w){if(Array.isArray(t)||(w=B(t))||u&&t&&"number"==typeof t.length){w&&(t=w);var v=0;u= 1679function(){};return{s:u,n:function(){return v>=t.length?{done:!0}:{done:!1,value:t[v++]}},e:function(E){throw E;},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var C,y=!0,z=!1;return{s:function(){w=w.call(t)},n:function(){var E=w.next();return y=E.done,E},e:function(E){z=!0;C=E},f:function(){try{y||null==w.return||w.return()}finally{if(z)throw C;}}}}(this.array);try{for(m.s();!(r=m.n()).done;)r.value.splice(n, 1680l)}catch(t){m.e(t)}finally{m.f()}this.size.width-=l}},{key:"nullArrays",value:function(n,l){for(var r=[],m=0;m<n;++m)r.push(Array(l).fill(e.EmptyValue));return r}},{key:"get",value:function(n,l){if(this.outOfBound(n,l))throw Error("Array index out of bound");return this.array[l][n]}},{key:"set",value:function(n,l,r){if(this.outOfBound(n,l))throw Error("Array index out of bound");this.array[l][n]=r}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}}, 1681{key:"raw",value:function(){return this.array}},{key:"resize",value:function(n){if(this.height()<n.height&&isFinite(n.height)&&this.addRows(this.height(),n.height-this.height()),this.height()>n.height)throw"Resizing to smaller array";if(this.width()<n.width&&isFinite(n.width)&&this.addColumns(this.width(),n.width-this.width()),this.width()>n.width)throw"Resizing to smaller array";}},{key:"outOfBound",value:function(n,l){return 0>n||0>l||l>this.size.height-1||n>this.size.width-1}}],[{key:"fromInterpreterValue", 1682value:function(n){return n instanceof c.SimpleRangeValue?new f(n.data):new f([[n]])}}]),f}(),k=function(){function f(n,l){A(this,f);this.error=n;this.size=l}return q(f,[{key:"get",value:function(n,l){return this.error}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"simpleRangeValue",value:function(){return this.error}}]),f}()},function(g,b,a){g=a(28);var F=a(386).values;g({target:"Object",stat:!0},{values:function(B){return F(B)}})}, 1683function(g,b,a){var F=a(72);b=a(35);var B=a(182),D=a(99),A=b(a(212).f),x=b([].push);a=function(q){return function(p){for(var e=D(p),c=B(e),d=c.length,h=0,k=[];d>h;)p=c[h++],F&&!A(e,p)||x(k,q?[p,e[p]]:e[p]);return k}};g.exports={entries:a(!0),values:a(!1)}},function(g,b,a){function F(A,x){for(var q=0;q<x.length;q++){var p=x[q];p.enumerable=p.enumerable||!1;p.configurable=!0;"value"in p&&(p.writable=!0);Object.defineProperty(A,p.key,p)}}a.r(b);a.d(b,"EmptyCellVertex",function(){return D});var B=a(51), 1684D=function(){function A(q){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function");!0;this.address=q}var x;return x=[{key:"getCellValue",value:function(){return B.EmptyValue}}
1684],F(A.prototype,x),Object.defineProperty(A,"prototype",{writable:!1}),A}()},function(g,b,a){function F(D,A){for(var x=0;x<A.length;x++){var q=A[x];q.enumerable=q.enumerable||!1;q.configurable=!0;"value"in q&&(q.writable=!0);Object.defineProperty(D,q.key,q)}}a.r(b);a.d(b,"ValueCellVertex",function(){return B}); 1685var B=function(){function D(x,q){if(!(this instanceof D))throw new TypeError("Cannot call a class as a function");!0;this.parsedValue=x;this.rawValue=q}var A;return A=[{key:"getValues",value:function(){return{parsedValue:this.parsedValue,rawValue:this.rawValue}}},{key:"setValues",value:function(x){this.parsedValue=x.parsedValue;this.rawValue=x.rawValue}},{key:"getCellValue",value:function(){return this.parsedValue}},{key:"setCellValue",value:function(x){throw"SetCellValue is deprecated for ValueCellVertex"; 1686}}],F(D.prototype,A),Object.defineProperty(D,"prototype",{writable:!1}),D}()},function(g,b,a){function F(A,x){for(var q=0;q<x.length;q++){var p=x[q];p.enumerable=p.enumerable||!1;p.configurable=!0;"value"in p&&(p.writable=!0);Object.defineProperty(A,p.key,p)}}a.r(b);a.d(b,"ParsingErrorVertex",function(){return D});var B=a(24),D=function(){function A(q,p){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function");!0;this.errors=q;this.rawInput=p}var x;return x=[{key:"getCellValue", 1687value:function(){return B.CellError.parsingError()}},{key:"getFormula",value:function(){return this.rawInput}}],F(A.prototype,x),Object.defineProperty(A,"prototype",{writable:!1}),A}()},function(g,b,a){b=a(35);var F=a(271),B=a(187).getWeakData,D=a(66),A=a(63),x=a(225),q=a(188),p=a(141),e=a(65);a=a(116);var c=a.set,d=a.getterFor,h=p.find,k=p.findIndex,f=b([].splice),n=0,l=function(t){return t.frozen||(t.frozen=new r)},r=function(){this.entries=[]},m=function(t,u){return h(t.entries,function(w){return w[0]=== 1688u})};r.prototype={get:function(t){if(t=m(this,t))return t[1]},has:function(t){return!!m(this,t)},set:function(t,u){var w=m(this,t);w?w[1]=u:this.entries.push([t,u])},delete:function(t){var u=k(this.entries,function(w){return w[0]===t});return~u&&f(this.entries,u,1),!!~u}};g.exports={getConstructor:function(t,u,w,v){t=t(function(E,H){x(E,C);c(E,{type:u,id:n++,frozen:void 0});null!=H&&q(H,E[v],{that:E,AS_ENTRIES:w})});var C=t.prototype,y=d(u),z=function(E,H,G){var I=y(E),K=B(D(H),!0);return!0===K?l(I).set(H, 1689G):K[I.id]=G,E};return F(C,{delete:function(E){var H=y(this);if(!A(E))return!1;var G=B(E);return!0===G?l(H).delete(E):G&&e(G,H.id)&&delete G[H.id]},has:function(E){var H=y(this);if(!A(E))return!1;var G=B(E);return!0===G?l(H).has(E):G&&e(G,H.id)}}),F(C,w?{get:function(E){var H=y(this);if(A(E)){var G=B(E);return!0===G?l(H).get(E):G?G[H.id]:void 0}},set:function(E,H){return z(this,E,H)}}:{add:function(E){return z(this,E,!0)}}),t}}},function(g,b,a){function F(k,f){var n="undefined"!=typeof Symbol&&k[Symbol.iterator]|| 1690k["@@iterator"];if(!n){if(Array.isArray(k)||(n=function(u,w){if(u){if("string"==typeof u)return B(u,w);var v=Object.prototype.toString.call(u).slice(8,-1);"Object"===v&&u.constructor&&(v=u.constructor.name);if("Map"===v||"Set"===v)return Array.from(u);if("Arguments"===v||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return B(u,w)}}(k))||f&&k&&"number"==typeof k.length){n&&(k=n);var l=0;f=function(){};return{s:f,n:function(){return l>=k.length?{done:!0}:{done:!1,value:k[l++]}},e:function(u){throw u; 1691},f:f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var r,m=!0,t=!1;return{s:function(){n=n.call(k)},n:function(){var u=n.next();return m=u.done,u},e:function(u){t=!0;r=u},f:function(){try{m||null==n.return||n.return()}finally{if(t)throw r;}}}}function B(k,f){(null==f||f>k.length)&&(f=k.length);for(var n=0,l=Array(f);n<f;n++)l[n]=k[n];return l}function D(k){return(D="function"==typeof Symbol&& 1692"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(k)}function A(k,f,n){if(void 0===k)return d.Config.defaultConfig[n];if("string"==typeof f){if(D(k)===f)return k;throw new h.ExpectedValueOfTypeError(f,n);}if(f.includes(k))return k;throw new h.ExpectedOneOfValuesError(f.map(function(l){return"'".concat(l,"'")}).join(" "),n);}function x(k,f,n){if(k<n)throw new h.ConfigValueTooSmallError(f, 1693n);}function q(k,f,n){if(k>n)throw new h.ConfigValueTooBigError(f,n);}function p(k,f,n,l){if(f(k))return k;if(void 0===k)return d.Config.defaultConfig[l];throw new h.ExpectedValueOfTypeError(n,l);}function e(){for(var k=new Map,f=arguments.length,n=Array(f),l=0;l<f;l++)n[l]=arguments[l];
1693n.forEach(function(t){var u=k.get(t.value)||[];u.push(t.name);k.set(t.value,u)});var r;f=[];n=F(k.values());try{for(n.s();!(r=n.n()).done;){var m=r.value;1<m.length&&f.push(m)}}catch(t){n.e(t)}finally{n.f()}if(0<f.length)throw f.forEach(function(t){return t.sort()}), 1694r=f.map(function(t){return"[".concat(t,"]")}).join("; "),Error("Config initialization failed. Parameters in conflict: ".concat(r));}function c(k,f,n){if(D(k)!==f)throw new h.ExpectedValueOfTypeError(f,n);}a.r(b);a.d(b,"configValueFromParam",function(){return A});a.d(b,"validateNumberToBeAtLeast",function(){return x});a.d(b,"validateNumberToBeAtMost",function(){return q});a.d(b,"configValueFromParamCheck",function(){return p});a.d(b,"configCheckIfParametersNotInConflict",function(){return e});a.d(b, 1695"validateArgToType",function(){return c});a(42);a(49);a(76);a(36);a(3);a(32);a(0);a(2);a(4);a(27);a(26);a(75);a(8);a(9);a(10);a(13);a(22);a(12);var d=a(239),h=a(40)},function(g,b,a){function F(x,q,p){var e=(x=x.replace(/\s\s+/g," ").trim().toLowerCase()).substring(x.length-2);"am"===e||"pm"===e?x=x.substring(0,x.length-2).trim():"a"===(e=x.substring(x.length-1))||"p"===e?x=x.substring(0,x.length-1).trim():e=void 0;var c=x.split(/[ /.-]/g);2<=c.length&&c[c.length-2].includes(":")&&(c[c.length-2]=c[c.length- 16962]+"."+c[c.length-1],c.pop());x=c[c.length-1].split(":");if(void 0!==e&&x.push(e),1===c.length)return B(x,p);if(1===x.length)return D(c,q);q=D(c.slice(0,c.length-1),q);p=B(x,p);return void 0===q||void 0===p?void 0:Object.assign(Object.assign({},q),p)}function B(x,q){if(void 0!==q){(q=q.toLowerCase()).endsWith("am/pm")?q=q.substring(0,q.length-5).trim():q.endsWith("a/p")&&(q=q.substring(0,q.length-3).trim());var p=q.split(":"),e=void 0;"am"===x[x.length-1]||"a"===x[x.length-1]?(e=!1,x.pop()):"pm"!== 1697x[x.length-1]&&"p"!==x[x.length-1]||(e=!0,x.pop());q=0;if(1<=p.length&&A.test(p[p.length-1])&&(q=p[p.length-1].length-3,p[p.length-1]="ss"),x.length===p.length){var c=p.indexOf("hh"),d=p.indexOf("mm");p=p.indexOf("ss");c=-1!==c?x[c]:"0";if(/^\d+$/.test(c)){c=Number(c);if(void 0!==e){if(0>c||12<c)return;c%=12;e&&(c+=12)}e=-1!==d?x[d]:"0";if(/^\d+$/.test(e)&&(e=Number(e),x=-1!==p?x[p]:"0",/^\d+(\.\d+)?$/.test(x)))return{hours:c,minutes:e,seconds:Math.round(Number(x)*Math.pow(10,q))/Math.pow(10,q)}}}}} 1698function D(x,q){if(void 0!==q){var p=q.toLowerCase().split(/[ /.-]/g);if(x.length===p.length){var e=p.indexOf("mm");q=p.indexOf("dd");var c=p.indexOf("yyyy");p=p.indexOf("yy");if(e in x&&q in x&&(c in x||p in x)&&!(c in x&&p in x)){var d;if(c in x){if(c=x[c],!/^\d+$/.test(c)||1E3>(d=Number(c))||9999<d)return}else if(c=x[p],!/^\d+$/.test(c)||0>(d=Number(c))||99<d)return;e=x[e];if(/^\d+$/.test(e)&&(e=Number(e),x=x[q],/^\d+$/.test(x)))return{year:d,month:e,day:Number(x)}}}}}a.r(b);a.d(b,"defaultParseToDateTime", 1699function(){return F});a.d(b,"secondsExtendedRegexp",function(){return A});a(118);a(12);a(67);a(64);a(42);a(49);a(13);a(93);a(298);a(52);var A=/^ss\.(s+|0+)$/},function(g,b,a){function F(f){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(f)}function B(){function f(M,T,Z){return Object.defineProperty(M,T,{value:Z,enumerable:!0,configurable:!0, 1700writable:!0}),M[T]}function n(M,T,Z,L){T=Object.create((T&&T.prototype instanceof r?T:r).prototype);L=new z(L||[]);return T._invoke=function(U,V,Y){var aa="suspendedStart";return function(W,ca){if("executing"===aa)throw Error("Generator is already running");if("completed"===aa){if("throw"===W)throw ca;return H()}Y.method=W;for(Y.arg=ca;;){if(W=Y.delegate)if(W=v(W,Y)){if(W===O)continue;return W}if("next"===Y.method)Y.sent=Y._sent=Y.arg;else if("throw"===Y.method){if("suspendedStart"===aa)throw aa= 1701"completed",Y.arg;Y.dispatchException(Y.arg)}else"return"===Y.method&&Y.abrupt("return",Y.arg);aa="executing";W=l(U,V,Y);if("normal"===W.type){if(aa=Y.done?"completed":"suspendedYield",W.arg===O)continue;return{value:W.arg,done:Y.done}}"throw"===W.type&&(aa="completed",Y.method="throw",Y.arg=W.arg)}}}(M,Z,L),T}function l(M,T,Z){try{return{type:"normal",arg:M.call(T,Z)}}catch(L){return{type:"throw",arg:L}}}function r(){}function m(){}function t(){}function u(M){["next","throw","return"].forEach(function(T){f(M, 1702T,function(Z){return this._invoke(T,Z)})})}function w(M,T){var Z;this._invoke=function(L,U){function V(){return new T(function(Y,aa){!function ja(ca,ia,ba,fa){ca=l(M[ca],M,ia);if("throw"!==ca.type){var qa=ca.arg;return(ca=qa.value)&&"object"==F(ca)&&K.call(ca,"__await")?T.resolve(ca.__await).then(function(ha){ja("next",ha,ba,fa)},function(ha){ja("throw",ha,ba,fa)}):T.resolve(ca).then(function(ha){qa.value=ha;ba(qa)},function(ha){return ja("throw",ha,ba,fa)})}fa(ca.arg)}(L,U,Y,aa)})}return Z=Z?Z.then(V, 1703V):V()}}function v(M,T){var Z=M.iterator[T.method];if(void 0===Z){if(T.delegate=null,"throw"===T.method){if(M.iterator.return&&
1703(T.method="return",T.arg=void 0,v(M,T),"throw"===T.method))return O;T.method="throw";T.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}Z=l(Z,M.iterator,T.arg);return"throw"===Z.type?(T.method="throw",T.arg=Z.arg,T.delegate=null,O):(Z=Z.arg)?Z.done?(T[M.resultName]=Z.value,T.next=M.nextLoc,"return"!==T.method&&(T.method="next",T.arg=void 0),T.delegate= 1704null,O):Z:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,O)}function C(M){var T={tryLoc:M[0]};1 in M&&(T.catchLoc=M[1]);2 in M&&(T.finallyLoc=M[2],T.afterLoc=M[3]);this.tryEntries.push(T)}function y(M){var T=M.completion||{};T.type="normal";delete T.arg;M.completion=T}function z(M){this.tryEntries=[{tryLoc:"root"}];M.forEach(C,this);this.reset(!0)}function E(M){if(M){var T=M[P];if(T)return T.call(M);if("function"==typeof M.next)return M;if(!isNaN(M.length)){var Z= 1705-1;T=function U(){for(;++Z<M.length;)if(K.call(M,Z))return U.value=M[Z],U.done=!1,U;return U.value=void 0,U.done=!0,U};return T.next=T}}return{next:H}}function H(){return{value:void 0,done:!0}}B=function(){return G};var G={},I=Object.prototype,K=I.hasOwnProperty,J="function"==typeof Symbol?Symbol:{},P=J.iterator||"@@iterator",S=J.asyncIterator||"@@asyncIterator",R=J.toStringTag||"@@toStringTag";try{f({},"")}
1705catch(M){f=function(T,Z,L){return T[Z]=L}}G.wrap=n;var O={};J={};f(J,P,function(){return this}); 1706var N=Object.getPrototypeOf;(N=N&&N(N(E([]))))&&N!==I&&K.call(N,P)&&(J=N);var Q=t.prototype=r.prototype=Object.create(J);return m.prototype=t,f(Q,"constructor",t),f(t,"constructor",m),m.displayName=f(t,R,"GeneratorFunction"),G.isGeneratorFunction=function(M){M="function"==typeof M&&M.constructor;return!!M&&(M===m||"GeneratorFunction"===(M.displayName||M.name))},G.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,t):(M.__proto__=t,f(M,R,"GeneratorFunction")),M.prototype=Object.create(Q), 1707M},G.awrap=function(M){return{__await:M}},u(w.prototype),f(w.prototype,S,function(){return this}),G.AsyncIterator=w,G.async=function(M,T,Z,L,U){void 0===U&&(U=Promise);var V=new w(n(M,T,Z,L),U);return G.isGeneratorFunction(T)?V:V.next().then(function(Y){return Y.done?Y.value:V.next()})},u(Q),f(Q,R,"Generator"),f(Q,P,function(){return this}),f(Q,"toString",function(){return"[object Generator]"}),G.keys=function(M){var T=[],Z;for(Z in M)T.push(Z);return T.reverse(),function U(){for(;T.length;){var V= 1708T.pop();if(V in M)return U.value=V,U.done=!1,U}return U.done=!0,U}},G.values=E,z.prototype={constructor:z,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!M)for(var T in this)"t"===T.charAt(0)&&K.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=void 0)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if("throw"===M.type)throw M.arg;return this.rval},dispatchException:function(M){function T(W, 1709ca){return V.type="throw",V.arg=M,Z.next=W,ca&&(Z.method="next",Z.arg=void 0),!!ca}if(this.done)throw M;for(var Z=this,L=this.tryEntries.length-1;0<=L;--L){var U=this.tryEntries[L],V=U.completion;if("root"===U.tryLoc)return T("end");if(U.tryLoc<=this.prev){var Y=K.call(U,"catchLoc"),aa=K.call(U,"finallyLoc");if(Y&&aa){if(this.prev<U.catchLoc)return T(U.catchLoc,!0);if(this.prev<U.finallyLoc)return T(U.finallyLoc)}else if(Y){if(this.prev<U.catchLoc)return T(U.catchLoc,!0)}else{if(!aa)throw Error("try statement without catch or finally"); 1710if(this.prev<U.finallyLoc)return T(U.finallyLoc)}}}},abrupt:function(M,T){for(var Z=this.tryEntries.length-1;0<=Z;--Z){var L=this.tryEntries[Z];if(L.tryLoc<=this.prev&&K.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var U=L;break}}U&&("break"===M||"continue"===M)&&U.tryLoc<=T&&T<=U.finallyLoc&&(U=null);Z=U?U.completion:{};return Z.type=M,Z.arg=T,U?(this.method="next",this.next=U.finallyLoc,O):this.complete(Z)},complete:function(M,T){if("throw"===M.type)throw M.arg;return"break"===M.type||"continue"=== 1711M.type?this.next=M.arg:"return"===M.type?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):"normal"===M.type&&T&&(this.next=T),O},finish:function(M){for(var T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T];if(Z.finallyLoc===M)return this.complete(Z.completion,Z.afterLoc),y(Z),O}},catch:function(M){for(var T=this.tryEntries.length-1;0<=T;--T){var Z=this.tryEntries[T];if(Z.tryLoc===M){M=Z.completion;if("throw"===M.type){var L=M.arg;y(Z)}return L}}throw Error("illegal catch attempt"); 1712},delegateYield:function(M,T,Z){return this.delegate={iterator:E(M),resultName:T,nextLoc:Z},"next"===this.method&&(this.arg=void 0),O}},G}function D(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function");}function A(f,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}function x(f,n,l){return n&&A(f.prototype,n),l&&A(f,l),Object.defineProperty(f,"prototype",{writable:!1}), 1713f}a.r(b);a.d(b,"ClipboardCellType",function(){return p});a.d(b,"ClipboardOperations",function(){return k});a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(86);a(87);a(88);a(89);a(25);a(27);a(26);a(90);a(62);a(13);var q,p,e=a(91),c=a(24),d=a(40);!function(f){f[f.COPY=0]="COPY";f[f.CUT=1]="CUT"}(q||(q={}));(function(f){f[f.VALUE=0]="VALUE";f[f.EMPTY=1]="EMPTY";f[f.FORMULA=2]="FORMULA";f[f.PARSING_ERROR=3]="PARSING_ERROR"})(p||(p={}));var h=function(){function f(n,l,r,m,t){D(this,f);this.sourceLeftCorner=n;this.width= 1714l;this.height=r;this.type=m;this.content=t}return x(f,[{key:"getContent",value:B().mark(function r(l){var m,t;return B().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(void 0!==this.content){u.next=4;break}return u.abrupt("return");case 4:m=0;case 5:if(!(m<this.height)){u.next=16;break}t=0;case 7:if(!(t<this.width)){u.next=13;break}return u.next=10,[Object(c.simpleCellAddress)(l.sheet,l.col+t,l.row+m),this.content[m][t]];case 10:++t;u.next=7;break;case 13:++m;u.next=5;break;case 16:case "end":return u.stop()}}, 1715r,this)})}]),f}(),k=function(){function f(n,l,r){D(this,f);this.dependencyGraph=l;this.operations=r;this.maxRows=n.maxRows;this.maxColumns=n.maxColumns}return x(f,[{key:"cut",value:function(n,l,r){this.clipboard=new h(n,l,r,q.CUT)}},{key:"copy",value:function(n,l,r){for(var m=[],t=0;t<r;++t){m[t]=[];for(var u=0;u<l;++u){var w=this.operations.getClipboardCell(Object(c.simpleCellAddress)(n.sheet,n.col+u,n.row+t));m[t].push(w)}}this.clipboard=new h(n,l,r,q.COPY,m)}},{key:"abortCut",value:function(){this.clipboard&& 1716this.clipboard.type===q.CUT&&this.clear()}},{key:"clear",value:function(){this.clipboard=void 0}},{key:"ensureItIsPossibleToCopyPaste",value:function(n){if(void 0!==this.clipboard){if(Object(c.invalidSimpleCellAddress)(n)||!this.dependencyGraph.sheetMapping.hasSheetWithId(n.sheet))throw new d.InvalidArgumentsError("a valid target address.");n=e.AbsoluteCellRange.spanFrom(n,this.clipboard.width,this.clipboard.height);if(n.exceedsSheetSizeLimits(this.maxColumns,this.maxRows))throw new d.SheetSizeLimitExceededError; 1717if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(n))throw Error("It is not possible to paste onto an array");}}},{key:"isCutClipboard",value:function(){return void 0!==this.clipboard&&this.clipboard.type===q.CUT}},{key:"isCopyClipboard",value:function(){return void 0!==this.clipboard&&this.clipboard.type===q.COPY}}]),f}()},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&& 1718c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}
1718function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 1719try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d=x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=this}return d}}function x(e){return(x= 1720Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)}a.r(b);a.d(b,"AddRowsTransformer",function(){return p});a(93);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=function(e){function c(k){var f;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return(f=h.call(this)).rowsSpan=k,f}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function"); 1721k.prototype=Object.create(f&&f.prototype,{constructor:{value:k,writable:!0,configurable:!0}});Object.defineProperty(k,"prototype",{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c);return d=[{key:"sheet",get:function(){return this.rowsSpan.sheet}},{key:"isIrreversible",value:function(){return!1}},{key:"transformColumnRangeAst",value:function(k,f){return k}},{key:"transformCellRange",value:function(k,f,n){return this.transformRange(k,f,n)}},{key:"transformRowRange",value:function(k,f,n){return this.transformRange(k, 1722f,n)}},{key:"transformColumnRange",value:function(k,f,n){throw Error("Not implemented");}},{key:"transformCellAddress",value:function(k,f){var n=Object(q.absoluteSheetReference)(k,f);if(n!==this.rowsSpan.sheet&&f.sheet!==this.rowsSpan.sheet)return!1;var l=k.toSimpleRowAddress(f);return n===this.rowsSpan.sheet&&f.sheet!==this.rowsSpan.sheet?this.rowsSpan.rowStart<=l.row&&k.shiftedByRows(this.rowsSpan.numberOfRows):f.sheet===this.rowsSpan.sheet&&n!==this.rowsSpan.sheet?!k.isRowAbsolute()&&!(f.row<this.rowsSpan.rowStart)&& 1723k.shiftedByRows(-this.rowsSpan.numberOfRows):k.isRowAbsolute()?!(k.row<this.rowsSpan.rowStart)&&k.shiftedByRows(this.rowsSpan.numberOfRows):l.row<this.rowsSpan.rowStart?!(f.row<this.rowsSpan.rowStart)&&k.shiftedByRows(-this.rowsSpan.numberOfRows):f.row<this.rowsSpan.rowStart&&k.shiftedByRows(this.rowsSpan.numberOfRows)}},{key:"fixNodeAddress",value:function(k){return this.rowsSpan.sheet===k.sheet&&this.rowsSpan.rowStart<=k.row?Object.assign(Object.assign({},k),{row:k.row+this.rowsSpan.numberOfRows}): 1724k}},{key:"transformRange",value:function(k,f,n){var l=this.transformCellAddress(k,n);n=this.transformCellAddress(f,n);return l===q.ErrorType.REF||n===q.ErrorType.REF?q.ErrorType.REF:!(!l&&!n)&&[l||k,n||f]}}],B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(a(145).Transformer)},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&& 1725c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1726[],function(){})),!0}catch(d){return!1}}();return function(){var d=x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=this}return d}}
1726function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 1727function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)}a.r(b);a.d(b,"RemoveRowsTransformer",function(){return p});a(93);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=function(e){function c(k){var f;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return(f=h.call(this)).rowsSpan=k,f}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(f&&f.prototype, 1728{constructor:{value:k,writable:!0,configurable:!0}});Object.defineProperty(k,"prototype",{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c);return d=[{key:"sheet",get:function(){return this.rowsSpan.sheet}},{key:"isIrreversible",value:function(){return!0}},{key:"transformColumnRangeAst",value:function(k,f){return k}},{key:"transformCellAddress",value:function(k,f){var n=Object(q.absoluteSheetReference)(k,f);if(this.rowsSpan.sheet!==f.sheet&&this.rowsSpan.sheet!==n)return!1;if(this.rowsSpan.sheet!==f.sheet&& 1729this.rowsSpan.sheet===n){var l=k.toSimpleRowAddress(f);if(l.row<this.rowsSpan.rowStart)return!1;if(l.row>this.rowsSpan.rowEnd)return k.shiftedByRows(-this.rowsSpan.numberOfRows)}if(this.rowsSpan.sheet===f.sheet&&this.rowsSpan.sheet!==n){if(k.isRowAbsolute()||f.row<this.rowsSpan.rowStart)return!1;if(f.row>this.rowsSpan.rowEnd)return k.shiftedByRows(this.rowsSpan.numberOfRows)}if(this.rowsSpan.sheet===f.sheet&&this.rowsSpan.sheet===n)if(k.isRowAbsolute()){if(k.row<this.rowsSpan.rowStart)return!1;if(k.row> 1730this.rowsSpan.rowEnd)return k.shiftedByRows(-this.rowsSpan.numberOfRows)}else if(n=k.toSimpleRowAddress(f),n.row<this.rowsSpan.rowStart){if(f.row<this.rowsSpan.rowStart)return!1;if(f.row>this.rowsSpan.rowEnd)return k.shiftedByRows(this.rowsSpan.numberOfRows)}else if(n.row>this.rowsSpan.rowEnd){if(f.row<this.rowsSpan.rowStart)return k.shiftedByRows(-this.rowsSpan.numberOfRows);if(f.row>this.rowsSpan.rowEnd)return!1}return q.ErrorType.REF}},{key:"transformCellRange",value:function(k,f,n){return this.transformRange(k, 1731f,n)}},{key:"transformRowRange",value:function(k,f,n){return this.transformRange(k,f,n)}},{key:"transformColumnRange",value:function(k,f,n){throw Error("Not implemented");}},{key:"fixNodeAddress",value:function(k){return this.rowsSpan.sheet===k.sheet&&this.rowsSpan.rowStart<=k.row?Object.assign(Object.assign({},k),{row:k.row-this.rowsSpan.numberOfRows}):k}},{key:"transformRange",value:function(k,f,n){var l=Object(q.absoluteSheetReference)(k,n),r=k,m=f;if(this.rowsSpan.sheet===l){l=k.toSimpleRowAddress(n); 1732var t=f.toSimpleRowAddress(n);if(this.rowsSpan.rowStart<=l.row&&this.rowsSpan.rowEnd>=t.row)return q.ErrorType.REF;l.row>=this.rowsSpan.rowStart&&l.row<=this.rowsSpan.rowEnd&&(r=k.shiftedByRows(this.rowsSpan.rowEnd-l.row+1));t.row>=this.rowsSpan.rowStart&&t.row<=this.rowsSpan.rowEnd&&(m=f.shiftedByRows(-(t.row-this.rowsSpan.rowStart+1)))}k=this.transformCellAddress(r,n);n=this.transformCellAddress(m,n);return!1===k&&!1===n?[r,m]:k===q.ErrorType.REF||n===q.ErrorType.REF?q.ErrorType.REF:[k||r,n||m]}}], 1733B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(a(145).Transformer)},function(g,b,a){function F(T){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Z){return typeof Z}:function(Z){return Z&&"function"==typeof Symbol&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(T)}function B(T,Z){if(!(T=function(L){if(Array.isArray(L))return L}(T)||function(L,U){var V=null==L?null:"undefined"!=typeof Symbol&&L[Symbol.iterator]||L["@@iterator"]; 1734if(null!=V){var Y,aa=[],W=!0,ca=!1;try{for(V=V.call(L);!(W=(Y=V.next()).done)&&(aa.push(Y.value),!U||aa.length!==U);W=!0);}catch(ba){ca=!0;var ia=ba}finally{try{W||null==V.return||V.return()}finally{if(ca)throw ia;}}return aa}}(T,Z)||A(T,Z)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return T}function D(T,Z){var L="undefined"!=typeof Symbol&&T[Symbol.iterator]||T["@@iterator"];if(!L){if(Array.isArray(T)|| 1735(L=A(T))||Z&&T&&"number"==typeof T.length){L&&(T=L);var U=0;Z=function(){};return{s:Z,n:function(){return U>=T.length?{done:!0}:{done:!1,value:T[U++]}},e:function(W){throw W;},f:Z}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var V,Y=!0,aa=!1;return{s:function(){L=L.call(T)},n:function(){var W=L.next();return Y=W.done,W},e:function(W){aa=!0;V=W},f:function(){try{Y||null==L.return||L.return()}finally{if(aa)throw V; 1736}}}}function A(T,Z){if(T){if("string"==typeof T)return x(T,Z);var L=Object.prototype.toString.call(T).slice(8,-1);return"Object"===L&&T.constructor&&(L=T.constructor.name),"Map"===L||"Set"===L?Array.from(T):"Arguments"===L||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L)?x(T,Z):void 0}}function x(T,Z){(null==Z||Z>T.length)&&(Z=T.length);for(var L=0,U=Array(Z);L<Z;L++)U[L]=T[L];return U}function q(){function T(za,ea,la){return Object.defineProperty(za,ea,{value:la,enumerable:!0,configurable:!0, 1737writable:!0}),za[ea]}function Z(za,ea,la,ta){ea=Object.create((ea&&ea.prototype instanceof U?ea:U).prototype);ta=new fa(ta||[]);return ea._invoke=function(ua,xa,Da){var Ga="suspendedStart";return function(Ha,Ja){if("executing"===Ga)throw Error("Generator is already running");if("completed"===Ga){if("throw"===Ha)throw Ja;return qa()}Da.method=Ha;for(Da.arg=Ja;;){if(Ha=Da.delegate)if(Ha=ca(Ha,Da)){if(Ha===Aa)continue;return Ha}if("next"===Da.method)Da.sent=Da._sent=Da.arg;else if("throw"===Da.method){if("suspendedStart"=== 1738Ga)throw Ga="completed",Da.arg;Da.dispatchException(Da.arg)}else"return"===Da.method&&Da.abrupt("return",Da.arg);Ga="executing";Ha=L(ua,xa,Da);if("normal"===Ha.type){if(Ga=Da.done?"completed":"suspendedYield",Ha.arg===Aa)continue;return{value:Ha.arg,done:Da.done}}"throw"===Ha.type&&(Ga="completed",Da.method="throw",Da.arg=Ha.arg)}}}(za,la,ta),ea}function L(za,ea,la){try{return{type:"normal",arg:za.call(ea,la)}}catch(ta){return{type:"throw",arg:ta}}}function U(){}function V(){}function Y(){}function aa(za){["next", 1739"throw","return"].forEach(function(ea){T(za,ea,function(la){return this._invoke(ea,la)})})}function W(za,ea){var la;this._invoke=function(ta,ua){function xa(){return new ea(function(Da,Ga){!function Ra(Ja,Oa,Na,Pa){Ja=L(za[Ja],za,Oa);
1739if("throw"!==Ja.type){var ab=Ja.arg;return(Ja=ab.value)&&"object"==F(Ja)&&oa.call(Ja,"__await")?ea.resolve(Ja.__await).then(function(Va){Ra("next",Va,Na,Pa)},function(Va){Ra("throw",Va,Na,Pa)}):ea.resolve(Ja).then(function(Va){ab.value=Va;Na(ab)},function(Va){return Ra("throw", 1740Va,Na,Pa)})}Pa(Ja.arg)}(ta,ua,Da,Ga)})}return la=la?la.then(xa,xa):xa()}}function ca(za,ea){var la=za.iterator[ea.method];if(void 0===la){if(ea.delegate=null,"throw"===ea.method){if(za.iterator.return&&(ea.method="return",ea.arg=void 0,ca(za,ea),"throw"===ea.method))return Aa;ea.method="throw";ea.arg=new TypeError("The iterator does not provide a 'throw' method")}return Aa}la=L(la,za.iterator,ea.arg);return"throw"===la.type?(ea.method="throw",ea.arg=la.arg,ea.delegate=null,Aa):(la=la.arg)?la.done? 1741(ea[za.resultName]=la.value,ea.next=za.nextLoc,"return"!==ea.method&&(ea.method="next",ea.arg=void 0),ea.delegate=null,Aa):la:(ea.method="throw",ea.arg=new TypeError("iterator result is not an object"),ea.delegate=null,Aa)}function ia(za){var ea={tryLoc:za[0]};1 in za&&(ea.catchLoc=za[1]);2 in za&&(ea.finallyLoc=za[2],ea.afterLoc=za[3]);this.tryEntries.push(ea)}function ba(za){var ea=za.completion||{};ea.type="normal";delete ea.arg;za.completion=ea}function fa(za){this.tryEntries=[{tryLoc:"root"}]; 1742za.forEach(ia,this);this.reset(!0)}function ja(za){if(za){var ea=za[pa];if(ea)return ea.call(za);if("function"==typeof za.next)return za;if(!isNaN(za.length)){var la=-1;ea=function ua(){for(;++la<za.length;)if(oa.call(za,la))return ua.value=za[la],ua.done=!1,ua;return ua.value=void 0,ua.done=!0,ua};return ea.next=ea}}return{next:qa}}function qa(){return{value:void 0,done:!0}}q=function(){return ha};var ha={},na=Object.prototype,oa=na.hasOwnProperty,ma="function"==typeof Symbol?Symbol:{},pa=ma.iterator|| 1743"@@iterator",sa=ma.asyncIterator||"@@asyncIterator",va=ma.toStringTag||"@@toStringTag";try{T({},"")}catch(za){T=function(ea,la,ta){return ea[la]=ta}}ha.wrap=Z;var Aa={};ma={};T(ma,pa,function(){return this});var Fa=Object.getPrototypeOf;(Fa=Fa&&Fa(Fa(ja([]))))&&Fa!==na&&oa.call(Fa,pa)&&(ma=Fa);var Ea=Y.prototype=U.prototype=Object.create(ma);return V.prototype=Y,T(Ea,"constructor",Y),T(Y,"constructor",V),V.displayName=T(Y,va,"GeneratorFunction"),ha.isGeneratorFunction=function(za){za="function"== 1744typeof za&&za.constructor;return!!za&&(za===V||"GeneratorFunction"===(za.displayName||za.name))},ha.mark=function(za){return Object.setPrototypeOf?Object.setPrototypeOf(za,Y):(za.__proto__=Y,T(za,va,"GeneratorFunction")),za.prototype=Object.create(Ea),za},ha.awrap=function(za){return{__await:za}},aa(W.prototype),T(W.prototype,sa,function(){return this}),ha.AsyncIterator=W,ha.async=function(za,ea,la,ta,ua){void 0===ua&&(ua=Promise);var xa=new W(Z(za,ea,la,ta),ua);return ha.isGeneratorFunction(ea)? 1745xa:xa.next().then(function(Da){return Da.done?Da.value:xa.next()})},aa(Ea),T(Ea,va,"Generator"),T(Ea,pa,function(){return this}),T(Ea,"toString",function(){return"[object Generator]"}),ha.keys=function(za){var ea=[],la;for(la in za)ea.push(la);return ea.reverse(),function ua(){for(;ea.length;){var xa=ea.pop();if(xa in za)return ua.value=xa,ua.done=!1,ua}return ua.done=!0,ua}},ha.values=ja,fa.prototype={constructor:fa,reset:function(za){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done= 1746!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(ba),!za)for(var ea in this)"t"===ea.charAt(0)&&oa.call(this,ea)&&!isNaN(+ea.slice(1))&&(this[ea]=void 0)},stop:function(){this.done=!0;var za=this.tryEntries[0].completion;if("throw"===za.type)throw za.arg;return this.rval},dispatchException:function(za){function ea(Ha,Ja){return xa.type="throw",xa.arg=za,la.next=Ha,Ja&&(la.method="next",la.arg=void 0),!!Ja}if(this.done)throw za;for(var la=this,ta=this.tryEntries.length- 17471;0<=ta;--ta){var ua=this.tryEntries[ta],xa=ua.completion;if("root"===ua.tryLoc)return ea("end");if(ua.tryLoc<=this.prev){var Da=oa.call(ua,"catchLoc"),Ga=oa.call(ua,"finallyLoc");if(Da&&Ga){if(this.prev<ua.catchLoc)return ea(ua.catchLoc,!0);if(this.prev<ua.finallyLoc)return ea(ua.finallyLoc)}else if(Da){if(this.prev<ua.catchLoc)return ea(ua.catchLoc,!0)}else{if(!Ga)throw Error("try statement without catch or finally");if(this.prev<ua.finallyLoc)return ea(ua.finallyLoc)}}}},abrupt:function(za,ea){for(var la= 1748this.tryEntries.length-1;0<=la;--la){var ta=this.tryEntries[la];if(ta.tryLoc<=this.prev&&oa.call(ta,"finallyLoc")&&this.prev<ta.finallyLoc){var ua=ta;break}}ua&&("break"===za||"continue"===za)&&ua.tryLoc<=ea&&ea<=ua.finallyLoc&&(ua=null);la=ua?ua.completion:{};return la.type=za,la.arg=ea,ua?(this.method="next",this.next=ua.finallyLoc,Aa):this.complete(la)},complete:function(za,ea){if("throw"===za.type)throw za.arg;return"break"===za.type||"continue"===za.type?this.next=za.arg:"return"===za.type?(this.rval= 1749this.arg=za.arg,this.method="return",this.next="end"):"normal"===za.type&&ea&&(this.next=ea),Aa},finish:function(za){for(var ea=this.tryEntries.length-1;0<=ea;--ea){var la=this.tryEntries[ea];if(la.finallyLoc===za)return this.complete(la.completion,la.afterLoc),ba(la),Aa}},catch:function(za){for(var ea=this.tryEntries.length-1;0<=ea;--ea){var la=this.tryEntries[ea];if(la.tryLoc===za){za=la.completion;if("throw"===za.type){var ta=za.arg;ba(la)}return ta}}throw Error("illegal catch attempt");},delegateYield:function(za, 1750ea,la){return this.delegate={iterator:ja(za),resultName:ea,nextLoc:la},"next"===this.method&&(this.arg=void 0),Aa}},ha}function p(T,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(Z&&Z.prototype,{constructor:{value:T,writable:!0,configurable:!0}});Object.defineProperty(T,"prototype",{writable:!1});Z&&e(T,Z)}function e(T,Z){return(e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,U){return L.__proto__= 1751U,L})(T,Z)}function c(T){var Z=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(L){return!1}}();return function(){var L=d(T);if(Z){var U=d(this).constructor;L=Reflect.construct(L,arguments,U)}else L=L.apply(this,arguments);if(!L||"object"!==F(L)&&"function"!=typeof L){if(void 0!==L)throw new TypeError("Derived constructors may only return object or undefined"); 1752if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");L=this}return L}}
1752function d(T){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)})(T)}function h(T,Z){for(var L=0;L<Z.length;L++){var U=Z[L];U.enumerable=U.enumerable||!1;U.configurable=!0;"value"in U&&(U.writable=!0);Object.defineProperty(T,U.key,U)}}function k(T,Z,L){return Z&&h(T.prototype,Z),L&&h(T,L),Object.defineProperty(T, 1753"prototype",{writable:!1}),T}function f(T,Z){if(!(T instanceof Z))throw new TypeError("Cannot call a class as a function");}a.r(b);a.d(b,"BaseUndoEntry",function(){return r});a.d(b,"RemoveRowsUndoEntry",function(){return m});a.d(b,"MoveCellsUndoEntry",function(){return t});a.d(b,"AddRowsUndoEntry",function(){return u});a.d(b,"SetRowOrderUndoEntry",function(){return w});a.d(b,"SetColumnOrderUndoEntry",function(){return v});a.d(b,"SetSheetContentUndoEntry",function(){return C});a.d(b,"MoveRowsUndoEntry", 1754function(){return y});a.d(b,"MoveColumnsUndoEntry",function(){return z});a.d(b,"AddColumnsUndoEntry",function(){return E});a.d(b,"RemoveColumnsUndoEntry",function(){return H});a.d(b,"AddSheetUndoEntry",function(){return G});a.d(b,"RemoveSheetUndoEntry",function(){return I});a.d(b,"RenameSheetUndoEntry",function(){return K});a.d(b,"ClearSheetUndoEntry",function(){return J});a.d(b,"SetCellContentsUndoEntry",function(){return P});a.d(b,"PasteUndoEntry",function(){return S});a.d(b,"AddNamedExpressionUndoEntry", 1755function(){return R});a.d(b,"RemoveNamedExpressionUndoEntry",function(){return O});a.d(b,"ChangeNamedExpressionUndoEntry",function(){return N});a.d(b,"BatchUndoEntry",function(){return Q});a.d(b,"UndoRedo",function(){return M});a(26);a(3);a(32);a(0);a(2);a(4);a(55);a(25);a(7);a(8);a(9);a(10);a(86);a(87);a(88);a(89);a(27);a(90);a(62);a(13);a(22);a(12);var n=a(24),l=a(241),r=k(function Z(){f(this,Z)}),m=function(Z){function L(V,Y){var aa;return f(this,L),(aa=U.call(this)).command=V,aa.rowsRemovals= 1756Y,aa}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoRemoveRows(this)}},{key:"doRedo",value:function(V){V.redoRemoveRows(this)}}]),L}(r),t=function(Z){function L(V,Y,aa,W,ca,ia,ba){var fa;return f(this,L),(fa=U.call(this)).sourceLeftCorner=V,fa.width=Y,fa.height=aa,fa.destinationLeftCorner=W,fa.overwrittenCellsData=ca,fa.addedGlobalNamedExpressions=ia,fa.version=ba,fa}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoMoveCells(this)}},{key:"doRedo",value:function(V){V.redoMoveCells(this)}}]), 1757L}(r),u=function(Z){function L(V){var Y;return f(this,L),(Y=U.call(this)).command=V,Y}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoAddRows(this)}},{key:"doRedo",value:function(V){V.redoAddRows(this)}}]),L}(r),w=function(Z){function L(V,Y,aa){var W;return f(this,L),(W=U.call(this)).sheetId=V,W.rowMapping=Y,W.oldContent=aa,W}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoSetRowOrder(this)}},{key:"doRedo",value:function(V){V.redoSetRowOrder(this)}}]),L}(r), 1758v=function(Z){function L(V,Y,aa){var W;return f(this,L),(W=U.call(this)).sheetId=V,W.columnMapping=Y,W.oldContent=aa,W}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoSetColumnOrder(this)}},{key:"doRedo",value:function(V){V.redoSetColumnOrder(this)}}]),L}(r),C=function(Z){function L(V,Y,aa){var W;return f(this,L),(W=U.call(this)).sheetId=V,W.oldSheetContent=Y,W.newSheetContent=aa,W}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoSetSheetContent(this)}},{key:"doRedo", 1759value:function(V){V.redoSetSheetContent(this)}}]),L}(r),y=function(Z){function L(V,Y,aa,W,ca){var ia;return f(this,L),(ia=U.call(this)).sheet=V,ia.startRow=Y,ia.numberOfRows=aa,ia.targetRow=W,ia.version=ca,ia.undoStart=ia.startRow<ia.targetRow?ia.targetRow-ia.numberOfRows:ia.targetRow,ia.undoEnd=ia.startRow>ia.targetRow?ia.startRow+ia.numberOfRows:ia.startRow,ia}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoMoveRows(this)}},{key:"doRedo",value:function(V){V.redoMoveRows(this)}}]), 1760L}(r),z=function(Z){function L(V,Y,aa,W,ca){var ia;return f(this,L),(ia=U.call(this)).sheet=V,ia.startColumn=Y,ia.numberOfColumns=aa,ia.targetColumn=W,ia.version=ca,ia.undoStart=ia.startColumn<ia.targetColumn?ia.targetColumn-ia.numberOfColumns:ia.targetColumn,ia.undoEnd=ia.startColumn>ia.targetColumn?ia.startColumn+ia.numberOfColumns:ia.startColumn,ia}p(L,Z);var U=c(L);
1760return k(L,[{key:"doUndo",value:function(V){V.undoMoveColumns(this)}},{key:"doRedo",value:function(V){V.redoMoveColumns(this)}}]), 1761L}(r),E=function(Z){function L(V){var Y;return f(this,L),(Y=U.call(this)).command=V,Y}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoAddColumns(this)}},{key:"doRedo",value:function(V){V.redoAddColumns(this)}}]),L}(r),H=function(Z){function L(V,Y){var aa;return f(this,L),(aa=U.call(this)).command=V,aa.columnsRemovals=Y,aa}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoRemoveColumns(this)}},{key:"doRedo",value:function(V){V.redoRemoveColumns(this)}}]),L}(r), 1762G=function(Z){function L(V){var Y;return f(this,L),(Y=U.call(this)).sheetName=V,Y}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoAddSheet(this)}},{key:"doRedo",value:function(V){V.redoAddSheet(this)}}]),L}(r),I=function(Z){function L(V,Y,aa,W,ca){var ia;return f(this,L),(ia=U.call(this)).sheetName=V,ia.sheetId=Y,ia.oldSheetContent=aa,ia.scopedNamedExpressions=W,ia.version=ca,ia}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoRemoveSheet(this)}},{key:"doRedo", 1763value:function(V){V.redoRemoveSheet(this)}}]),L}(r),K=function(Z){function L(V,Y,aa){var W;return f(this,L),(W=U.call(this)).sheetId=V,W.oldName=Y,W.newName=aa,W}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoRenameSheet(this)}},{key:"doRedo",value:function(V){V.redoRenameSheet(this)}}]),L}(r),J=function(Z){function L(V,Y){var aa;return f(this,L),(aa=U.call(this)).sheetId=V,aa.oldSheetContent=Y,aa}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoClearSheet(this)}}, 1764{key:"doRedo",value:function(V){V.redoClearSheet(this)}}]),L}(r),P=function(Z){function L(V){var Y;return f(this,L),(Y=U.call(this)).cellContents=V,Y}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoSetCellContents(this)}},{key:"doRedo",value:function(V){V.redoSetCellContents(this)}}]),L}(r),S=function(Z){function L(V,Y,aa,W){var ca;return f(this,L),(ca=U.call(this)).targetLeftCorner=V,ca.oldContent=Y,ca.newContent=aa,ca.addedGlobalNamedExpressions=W,ca}p(L,Z);var U=c(L);return k(L, 1765[{key:"doUndo",value:function(V){V.undoPaste(this)}},{key:"doRedo",value:function(V){V.redoPaste(this)}}]),L}(r),R=function(Z){function L(V,Y,aa,W){var ca;return f(this,L),(ca=U.call(this)).name=V,ca.newContent=Y,ca.scope=aa,ca.options=W,ca}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoAddNamedExpression(this)}},{key:"doRedo",value:function(V){V.redoAddNamedExpression(this)}}]),L}(r),O=function(Z){function L(V,Y,aa){var W;return f(this,L),(W=U.call(this)).namedExpression=V,W.content= 1766Y,W.scope=aa,W}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoRemoveNamedExpression(this)}},{key:"doRedo",value:function(V){V.redoRemoveNamedExpression(this)}}]),L}(r),N=function(Z){function L(V,Y,aa,W,ca){var ia;return f(this,L),(ia=U.call(this)).namedExpression=V,ia.newContent=Y,ia.oldContent=aa,ia.scope=W,ia.options=ca,ia}p(L,Z);var U=c(L);return k(L,[{key:"doUndo",value:function(V){V.undoChangeNamedExpression(this)}},{key:"doRedo",value:function(V){V.redoChangeNamedExpression(this)}}]), 1767L}(r),Q=function(Z){function L(){var V;return f(this,L),(V=U.apply(this,arguments)).operations=[],V}p(L,Z);var U=c(L);return k(L,[{key:"add",value:function(V){this.operations.push(V)}},{key:"reversedOperations",value:q().mark(function Y(){var aa;return q().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:aa=this.operations.length-1;case 1:if(!(0<=aa)){W.next=7;break}return W.next=4,this.operations[aa];case 4:aa--;W.next=1;break;case 7:case "end":return W.stop()}},Y,this)})},{key:"doUndo",value:function(Y){Y.undoBatch(this)}}, 1768{key:"doRedo",value:function(Y){Y.redoBatch(this)}}]),L}(r),M=function(){function Z(L,U){f(this,Z);this.operations=U;this.oldData=new Map;this.undoStack=[];this.redoStack=[];this.undoLimit=L.undoLimit}return k(Z,[{key:"saveOperation",value:function(L){void 0!==this.batchUndoEntry?this.batchUndoEntry.add(L):this.addUndoEntry(L)}},{key:"beginBatchMode",value:function(){this.batchUndoEntry=new Q}},{key:"commitBatchMode",value:function(){if(void 0===this.batchUndoEntry)throw"Batch mode wasn't started"; 1769this.addUndoEntry(this.batchUndoEntry);this.batchUndoEntry=void 0}},{key:"storeDataForVersion",value:function(L,U,V){this.oldData.has(L)||this.oldData.set(L,[]);this.oldData.get(L).push([U,V])}},{key:"clearRedoStack",value:function(){this.redoStack=[]}},{key:"clearUndoStack",value:function(){this.undoStack=[]}},{key:"isUndoStackEmpty",value:function(){return 0===this.undoStack.length}},{key:"isRedoStackEmpty",value:function(){return 0===this.redoStack.length}},{key:"undo",value:function(){var L=this.undoStack.pop(); 1770if(!L)throw"Attempted to undo without operation on stack";this.undoEntry(L);this.redoStack.push(L)}},{key:"undoBatch",value:function(L){var U;L=D(L.reversedOperations());try{for(L.s();!(U=L.n()).done;)this.undoEntry(U.value)}catch(V){L.e(V)}finally{L.f()}}},{key:"undoRemoveRows",value:function(L){this.operations.forceApplyPostponedTransformations();var U=L.command.sheet;L=L.rowsRemovals;for(var V=L.length-1;0<=V;--V){var Y=L[V];this.operations.addRows(new l.AddRowsCommand(U,[[Y.rowFrom,Y.rowCount]])); 1771var aa,W=D(Y.removedCells);try{for(W.s();!(aa=W.n()).done;){var ca=aa.value;this.operations.restoreCell(ca.address,ca.cellType)}}catch(ia){W.e(ia)}finally{W.f()}this.restoreOldDataFromVersion(Y.version-1)}}},{key:"undoRemoveColumns",value:function(L){this.operations.forceApplyPostponedTransformations();var U=L.command.sheet;L=L.columnsRemovals;for(var V=L.length-1;0<=V;--V){var Y=L[V];this.operations.addColumns(new l.AddColumnsCommand(U,[[Y.columnFrom,Y.columnCount]]));var aa,W=D(Y.removedCells); 1772try{for(W.s();!(aa=W.n()).done;){var ca=aa.value;this.operations.restoreCell(ca.address,ca.cellType)}}catch(ia){W.e(ia)}finally{W.f()}this.restoreOldDataFromVersion(Y.version-1)}}},{key:"undoAddRows",value:function(L){for(var U=L.command.rowsSpans(),V=U.length-1;0<=V;--V){var Y=U[V];this.operations.removeRows(new l.RemoveRowsCommand(L.command.sheet,[[Y.rowStart,Y.numberOfRows]]))}}},{key:"undoAddColumns",value:function(L){for(var U=L.command.columnsSpans(),V=U.length-1;0<=V;--V){var Y=U[V];this.operations.removeColumns(new l.RemoveColumnsCommand(L.command.sheet, 1773[[Y.columnStart,Y.numberOfColumns]]))}}},{key:"undoSetCellContents",value:function(L){var U;L=D(L.cellContents);try{for(L.s();!(U=L.n()).done;){var V=U.value,Y=V.address,aa=B(V.oldContent,2),W=aa[0],ca=aa[1];Object(n.equalSimpleCellAddress)(Y,W)||this.operations.setCellEmpty(Y);this.operations.restoreCell(W,ca)}}catch(ia){L.e(ia)}finally{L.f()}}},{key:"undoPaste",value:function(L){this.restoreOperationOldContent(L.oldContent);var U;L=D(L.addedGlobalNamedExpressions);try{for(L.s();!(U=L.n()).done;)this.operations.removeNamedExpression(U.value)}catch(V){L.e(V)}finally{L.f()}}}, 1774{key:"undoMoveRows",value:function(L){this.operations.moveRows(L.sheet,L.undoStart,L.numberOfRows,L.undoEnd);this.restoreOldDataFromVersion(L.version-1)}},{key:"undoMoveColumns",value:function(L){this.operations.moveColumns(L.sheet,L.undoStart,L.numberOfColumns,L.undoEnd);this.restoreOldDataFromVersion(L.version-1)}},{key:"undoMoveCells",value:function(L){this.operations.forceApplyPostponedTransformations();this.operations.moveCells(L.destinationLeftCorner,L.width,L.height,L.sourceLeftCorner);this.restoreOperationOldContent(L.overwrittenCellsData); 1775this.restoreOldDataFromVersion(L.version-1);var U;L=D(L.addedGlobalNamedExpressions);try{for(L.s();!(U=L.n()).done;)this.operations.removeNamedExpression(U.value)}catch(V){L.e(V)}finally{L.f()}}},{key:"undoAddSheet",value:function(L){this.operations.removeSheetByName(L.sheetName)}},{key:"undoRemoveSheet",value:function(L){this.operations.forceApplyPostponedTransformations();var U=L.oldSheetContent,V=L.sheetId;this.operations.addSheet(L.sheetName);for(var Y=0;Y<U.length;Y++)for(var aa=U[Y],W=0;W<aa.length;W++){var ca= 1776aa[W],ia=Object(n.simpleCellAddress)(V,W,Y);this.operations.restoreCell(ia,ca)}var ba;U=D(L.scopedNamedExpressions);try{for(U.s();!(ba=U.n()).done;){var fa=B(ba.value,2);this.operations.restoreNamedExpression(fa[0],fa[1],V)}}catch(ja){U.e(ja)}finally{U.f()}this.restoreOldDataFromVersion(L.version-1)}},{key:"undoRenameSheet",value:function(L){this.operations.renameSheet(L.sheetId,L.oldName)}},{key:"undoClearSheet",value:function(L){var U=L.oldSheetContent;L=L.sheetId;for(var V=0;V<U.length;V++)for(var Y= 1777U[V],aa=0;aa<Y.length;aa++){var W=Y[aa],ca=Object(n.simpleCellAddress)(L,aa,V);this.operations.restoreCell(ca,W)}}},{key:"undoSetSheetContent",value:function(L){var U=L.oldSheetContent;L=L.sheetId;this.operations.clearSheet(L);for(var V=0;V<U.length;V++)for(var Y=U[V],aa=0;aa<Y.length;aa++){var W=Y[aa],ca=Object(n.simpleCellAddress)(L,aa,V);this.operations.restoreCell(ca,W)}}},{key:"undoAddNamedExpression",value:function(L){this.operations.removeNamedExpression(L.name,L.scope)}},{key:"undoRemoveNamedExpression", 1778value:function(L){this.operations.restoreNamedExpression(L.namedExpression,L.c
1778ontent,L.scope)}},{key:"undoChangeNamedExpression",value:function(L){this.operations.restoreNamedExpression(L.namedExpression,L.oldContent,L.scope)}},{key:"undoSetRowOrder",value:function(L){this.restoreOperationOldContent(L.oldContent)}},{key:"undoSetColumnOrder",value:function(L){this.restoreOperationOldContent(L.oldContent)}},{key:"redo",value:function(){var L=this.redoStack.pop();if(!L)throw"Attempted to redo without operation on stack"; 1779this.redoEntry(L);this.undoStack.push(L)}},{key:"redoBatch",value:function(L){var U;L=D(L.operations);try{for(L.s();!(U=L.n()).done;)this.redoEntry(U.value)}catch(V){L.e(V)}finally{L.f()}}},{key:"redoRemoveRows",value:function(L){this.operations.removeRows(L.command)}},{key:"redoMoveCells",value:function(L){this.operations.moveCells(L.sourceLeftCorner,L.width,L.height,L.destinationLeftCorner)}},{key:"redoRemoveColumns",value:function(L){this.operations.removeColumns(L.command)}},{key:"redoPaste", 1780value:function(L){var U=L.targetLeftCorner;L=L.newContent;for(var V=L.length,Y=L[0].length,aa=0;aa<V;++aa)for(var W=0;W<Y;++W){var ca=Object(n.simpleCellAddress)(U.sheet,U.col+W,U.row+aa);this.operations.restoreCell(ca,L[aa][W])}}},{key:"redoSetCellContents",value:function(L){var U;L=D(L.cellContents);try{for(L.s();!(U=L.n()).done;){var V=U.value;this.operations.setCellContent(V.address,V.newContent)}}catch(Y){L.e(Y)}finally{L.f()}}},{key:"redoAddRows",value:function(L){this.operations.addRows(L.command)}}, 1781{key:"redoAddColumns",value:function(L){this.operations.addColumns(L.command)}},{key:"redoRemoveSheet",value:function(L){this.operations.removeSheetByName(L.sheetName)}},{key:"redoAddSheet",value:function(L){this.operations.addSheet(L.sheetName)}},{key:"redoRenameSheet",value:function(L){this.operations.renameSheet(L.sheetId,L.newName)}},{key:"redoMoveRows",value:function(L){this.operations.moveRows(L.sheet,L.startRow,L.numberOfRows,L.targetRow)}},{key:"redoMoveColumns",value:function(L){this.operations.moveColumns(L.sheet, 1782L.startColumn,L.numberOfColumns,L.targetColumn)}},{key:"redoClearSheet",value:function(L){this.operations.clearSheet(L.sheetId)}},{key:"redoSetSheetContent",value:function(L){this.operations.setSheetContent(L.sheetId,L.newSheetContent)}},{key:"redoAddNamedExpression",value:function(L){this.operations.addNamedExpression(L.name,L.newContent,L.scope,L.options)}},{key:"redoRemoveNamedExpression",value:function(L){this.operations.removeNamedExpression(L.namedExpression.displayName,L.scope)}},{key:"redoChangeNamedExpression", 1783value:function(L){this.operations.changeNamedExpressionExpression(L.namedExpression.displayName,L.newContent,L.scope,L.options)}},{key:"redoSetRowOrder",value:function(L){this.operations.setRowOrder(L.sheetId,L.rowMapping)}},{key:"redoSetColumnOrder",value:function(L){this.operations.setColumnOrder(L.sheetId,L.columnMapping)}},{key:"addUndoEntry",value:function(L){this.undoStack.push(L);this.undoStack.splice(0,Math.max(0,this.undoStack.length-this.undoLimit))}},{key:"undoEntry",value:function(L){L.doUndo(this)}}, 1784{key:"restoreOperationOldContent",value:function(L){var U;L=D(L);try{for(L.s();!(U=L.n()).done;){var V=B(U.value,2);this.operations.restoreCell(V[0],V[1])}}catch(Y){L.e(Y)}finally{L.f()}}},{key:"redoEntry",value:function(L){L.doRedo(this)}},{key:"restoreOldDataFromVersion",value:function(L){var U;L=D(this.oldData.get(L)||[]);try{for(L.s();!(U=L.n()).done;){var V=B(U.value,2);this.operations.setFormulaToCellFromCache(V[1],V[0])}}catch(Y){L.e(Y)}finally{L.f()}}}]),Z}()},function(g,b,a){a(28)({target:"Math", 1785stat:!0},{log10:a(738)})},function(g,b,a){function F(d){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}function B(d,h){for(var k=0;k<h.length;k++){var f=h[k];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(d,f.key,f)}}function D(d,h){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind(): 1786function(k,f){return k.__proto__=f,k})(d,h)}function A(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k=x(d);if(h){var f=x(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments);if(!k||"object"!==F(k)&&"function"!=typeof k){if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined"); 1787if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");k=this}return k}}
1787function x(d){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)})(d)}a.r(b);a.d(b,"ColumnBinarySearch",function(){return c});a(36);a(165);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(113),p=a(399),e=a(51),c=function(d){function h(n,l){var r;if(!(this instanceof h))throw new TypeError("Cannot call a class as a function"); 1788return(r=f.call(this,n)).dependencyGraph=n,r.config=l,r}!function(n,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,writable:!0,configurable:!0}});Object.defineProperty(n,"prototype",{writable:!1});l&&D(n,l)}(h,d);var k,f=A(h);return k=[{key:"add",value:function(n,l){}},{key:"remove",value:function(n,l){}},{key:"change",value:function(n,l,r){}},{key:"applyChanges",value:function(n){}}, 1789{key:"addColumns",value:function(n){}},{key:"removeColumns",value:function(n){}},{key:"removeSheet",value:function(n){}},{key:"moveValues",value:function(n,l,r,m){}},{key:"removeValues",value:function(n){}},{key:"find",value:function(n,l,r){"string"==typeof n&&(n=Object(q.forceNormalizeString)(n));var m=l.range;return void 0===m?l.valuesFromTopLeftCorner().map(e.getRawValue).map(function(t){return"string"==typeof t?Object(q.forceNormalizeString)(t):t}).indexOf(n):r?Object(p.rangeLowerBound)(m,n,this.dependencyGraph, 1790"row"):this.dependencyGraph.computeListOfValuesInRange(m).findIndex(function(t){return("string"==typeof(t=Object(e.getRawValue)(t))?Object(q.forceNormalizeString)(t):t)===n})}}],B(h.prototype,k),Object.defineProperty(h,"prototype",{writable:!1}),h}(a(400).AdvancedFind)},function(g,b,a){function F(p){return(F="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": 1791typeof e})(p)}function B(p,e,c,d){var h="col"===d?p.effectiveEndColumn(c):p.effectiveEndRow(c);var k=p.start[d],f=D(d="row"===d?function(n){return Object(q.getRawValue)(c.getCellValue(Object(x.simpleCellAddress)(p.sheet,p.start.col,n)))}:function(n){return Object(q.getRawValue)(c.getCellValue(Object(x.simpleCellAddress)(p.sheet,n,p.start.row)))},e,k,h);return F(d(f))!==F(e)?-1:f-k}function D(p,e,c,d){for(;c<=d;){var h=Math.floor((c+d)/2),k=A(e,p(h));if(0<k)c=h+1;else if(0>k)d=h-1;else{if(c==h)return h; 1792d=h}}return d}function A(p,e){return F(p)===F(e)?p===q.EmptyValue?0:p<e?-1:p>e?1:0:p===q.EmptyValue?-1:e===q.EmptyValue?1:e instanceof x.CellError||"number"==typeof p&&"string"==typeof e||"number"==typeof p&&"boolean"==typeof e?-1:"string"==typeof p&&"number"==typeof e?1:"string"==typeof p&&"boolean"==typeof e?-1:1}a.r(b);a.d(b,"rangeLowerBound",function(){return B});a.d(b,"lowerBound",function(){return D});a.d(b,"compare",function(){return A});a(8);a(9);a(0);a(10);a(3);a(2);a(4);var x=a(24),q=a(51)}, 1793function(g,b,a){function F(A,x){for(var q=0;q<x.length;q++){var p=x[q];p.enumerable=p.enumerable||!1;p.configurable=!0;"value"in p&&(p.writable=!0);Object.defineProperty(A,p.key,p)}}a.r(b);a.d(b,"AdvancedFind",function(){return D});var B=a(51),D=function(){function A(q){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function");!0;this.dependencyGraph=q}var x;return x=[{key:"advancedFind",value:function(q,p){var e=p.range;p=void 0===e?p.valuesFromTopLeftCorner():this.dependencyGraph.computeListOfValuesInRange(e); 1794for(e=0;e<p.length;e++)if(q(Object(B.getRawValue)(p[e])))return e;return-1}}],F(A.prototype,x),Object.defineProperty(A,"prototype",{writable:!1}),A}()},function(g,b,a){function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(t)}function B(t){var u=Array.isArray(t)?x(t):void 0;u||(u="undefined"!=typeof Symbol&&null!=t[Symbol.iterator]|| 1795null!=t["@@iterator"]?Array.from(t):void 0);if(!(t=u||A(t)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return t}function D(t,u){var w="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!w){if(Array.isArray(t)||(w=A(t))||u&&t&&"number"==typeof t.length){w&&(t=w);var v=0;u=function(){};return{s:u,n:function(){return v>=t.length?{done:!0}:{done:!1,value:t[v++]}},e:function(E){throw E; 1796},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var C,y=!0,z=!1;return{s:function(){w=w.call(t)},n:function(){var E=w.next();return y=E.done,E},e:function(E){z=!0;C=E},f:function(){try{y||null==w.return||w.return()}finally{if(z)throw C;}}}}function A(t,u){if(t){if("string"==typeof t)return x(t,u);var w=Object.prototype.toString.call(t).slice(8,-1);return"Object"===w&&t.constructor&& 1797(w=t.constructor.name),"Map"===w||"Set"===w?Array.from(t):"Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?x(t,u):void 0}}function x(t,u){(null==u||u>t.length)&&(u=t.length);for(var w=0,v=Array(u);w<u;w++)v[w]=t[w];return v}function q(t,u){for(var w=0;w<u.length;w++){var v=u[w];v.enumerable=v.enumerable||!1;v.configurable=!0;"value"in v&&(v.writable=!0);Object.defineProperty(t,v.key,v)}}
1797function p(t,u){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__= 1798v,w})(t,u)}function e(t){var u=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(w){return!1}}();return function(){var w=c(t);if(u){var v=c(this).constructor;w=Reflect.construct(w,arguments,v)}else w=w.apply(this,arguments);if(!w||"object"!==F(w)&&"function"!=typeof w){if(void 0!==w)throw new TypeError("Derived constructors may only return object or undefined"); 1799if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");w=this}return w}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)})(t)}a.r(b);a.d(b,"ArrayPlugin",function(){return m});a(36);a(13);a(68);a(52);a(25);a(0);a(7);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var d=a(132),h=a(24),k=a(46),f=a(74),n=a(113),l=a(198),r=a(82);g=a(37);var m=function(t){function u(){if(!(this instanceof 1800u))throw new TypeError("Cannot call a class as a function");return v.apply(this,arguments)}!function(C,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(y&&y.prototype,{constructor:{value:C,writable:!0,configurable:!0}});Object.defineProperty(C,"prototype",{writable:!1});y&&p(C,y)}(u,t);var w,v=e(u);return w=[{key:"arrayformula",value:function(C,y){return this.runFunction(C.args,y,this.metadata("ARRAYFORMULA"), 1801function(z){return z})}},{key:"arrayformulaArraySize",value:function(C,y){var z=this;if(1!==C.args.length)return d.ArraySize.error();var E=this.metadata("ARRAYFORMULA");return C.args.map(function(H){var G;return z.arraySizeForAst(H,new l.InterpreterState(y.formulaAddress,y.arraysFlag||null!==(G=null==E?void 0:E.arrayFunction)&&void 0!==G&&G))})[0]}},{key:"arrayconstrain",value:function(C,y){return this.runFunction(C.args,y,this.metadata("ARRAY_CONSTRAIN"),function(z,E,H){E=Math.min(E,z.height()); 1802H=Math.min(H,z.width());z=z.data;for(var G=[],I=0;I<E;I++)G.push(z[I].slice(0,H));return r.SimpleRangeValue.onlyValues(G)})}},{key:"arrayconstrainArraySize",value:function(C,y){var z=this;if(3!==C.args.length)return d.ArraySize.error();var E=this.metadata("ARRAY_CONSTRAIN"),H=C.args.map(function(I){var K;return z.arraySizeForAst(I,new l.InterpreterState(y.formulaAddress,y.arraysFlag||null!==(K=null==E?void 0:E.arrayFunction)&&void 0!==K&&K))})[0],G=H.height;H=H.width;return C.args[1].type===f.AstNodeType.NUMBER&& 1803(G=Math.min(G,C.args[1].value)),C.args[2].type===f.AstNodeType.NUMBER&&(H=Math.min(H,C.args[2].value)),1>G||1>H||!Number.isInteger(G)||!Number.isInteger(H)?d.ArraySize.error():new d.ArraySize(H,G)}},{key:"filter",value:function(C,y){return this.runFunction(C.args,y,this.metadata("FILTER"),function(z){for(var E=arguments.length,H=Array(1<E?E-1:0),G=1;G<E;G++)H[G-1]=arguments[G];for(E=0;E<H.length;E++)if(G=H[E],z.width()!==G.width()||z.height()!==G.height())return new h.CellError(h.ErrorType.NA,k.ErrorMessage.EqualLength); 1804if(1<z.width()&&1<z.height())return new h.CellError(h.ErrorType.NA,k.ErrorMessage.WrongDimension);E=z.data;G=[];for(var I=0;I<z.height();I++){for(var K=[],J=0;J<z.width();J++){var P,S=!0,R=D(H);try{for(R.s();!(P=R.n()).done;)if(!0!==Object(n.coerceScalarToBoolean)(P.value.data[I][J])){S=!1;break}}catch(O){R.e(O)}finally{R.f()}S&&K.push(E[I][J])}0<K.length&&G.push(K)}return 0<G.length?r.SimpleRangeValue.onlyValues(G):new h.CellError(h.ErrorType.NA,k.ErrorMessage.EmptyRange)})}},{key:"filterArraySize", 1805value:function(C,y){var z=this;if(1>=C.args.length)return d.ArraySize.error();var E=this.metadata("FILTER"),H=C.args.map(function(G){var I;return z.arraySizeForAst(G,new l.InterpreterState(y.formulaAddress,y.arraysFlag||null!==(I=null==E?void 0:E.arrayFunction)&&void 0!==I&&I))});C=Math.max.apply(Math,B(H.map(function(G){return G.width})));H=Math.max.apply(Math,B(H.map(function(G){return G.height})));return new d.ArraySize(C,H)}}],q(u.prototype,w),Object.defineProperty(u,"prototype",{writable:!1}), 1806u}(g.FunctionPlugin);m.implementedFunctions={ARRAYFORMULA:{method:"arrayformula",arraySizeMethod:"arrayformulaArraySize",arrayFunction:!0,parameters:[{argumentType:g.ArgumentTypes.ANY}]},ARRAY_CONSTRAIN:{method:"arrayconstrain",arraySizeMethod:"arrayconstrainArraySize",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.INTEGER,minValue:1},{argumentType:g.ArgumentTypes.INTEGER,minValue:1}],vectorizationForbidden:!0},FILTER:{method:"filter",arraySizeMethod:"filterArraySize", 1807arrayFunction:!0,parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}],repeatLastArgs:1}}},function(g,b,a){function F(p){return(F="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})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0); 1808Object.defineProperty(p,d.key,d)}}
1808function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments, 1809d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"AbsPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9); 1810a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"abs",value:function(h, 1811k){return this.runFunction(h.args,k,this.metadata("ABS"),Math.abs)}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions={ABS:{method:"abs",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(k){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(k)}function B(k, 1812f){for(var n=0;n<f.length;n++){var l=f[n];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(k,l.key,l)}}function D(k,f){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(k,f)}function A(k){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})), 1813!0}catch(n){return!1}}();return function(){var n=x(k);if(f){var l=x(this).constructor;n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);if(!n||"object"!==F(n)&&"function"!=typeof n){if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");n=this}return n}}function x(k){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__|| 1814Object.getPrototypeOf(f)})(k)}function q(k,f){return 0>f?p(k,-f):e(k*Math.pow(2,f))}function p(k,f){return 0>f?q(k,-f):e(Math.floor(k/Math.pow(2,f)))}function e(k){return 0xffffffffffff<k?new c.CellError(c.ErrorType.NUM,d.ErrorMessage.BitshiftLong):k}a.r(b);a.d(b,"BitShiftPlugin",function(){return h});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var c=a(24),d=a(46);g=a(37);var h=function(k){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");return l.apply(this, 1815arguments)}!function(r,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(m&&m.prototype,{constructor:{value:r,writable:!0,configurable:!0}});Object.defineProperty(r,"prototype",{writable:!1});m&&D(r,m)}(f,k);var n,l=A(f);return n=[{key:"bitlshift",value:function(r,m){return this.runFunction(r.args,m,this.metadata("BITLSHIFT"),q)}},{key:"bitrshift",value:function(r,m){return this.runFunction(r.args,m,this.metadata("BITRSHIFT"), 1816p)}}],B(f.prototype,n),Object.defineProperty(f,"prototype",{writable:!1}),f}(g.FunctionPlugin);h.implementedFunctions={BITLSHIFT:{method:"bitlshift",parameters:[{argumentType:g.ArgumentTypes.INTEGER,minValue:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:-53,maxValue:53}]},BITRSHIFT:{method:"bitrshift",parameters:[{argumentType:g.ArgumentTypes.INTEGER,minValue:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:-53,maxValue:53}]}}},function(g,b,a){function F(p){return(F="function"==typeof Symbol&& 1817"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})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}
1817function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"== 1818typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1819c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"BitwiseLogicOperationsPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function"); 1820h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"bitand",value:function(h,k){return this.runFunction(h.args,k,this.metadata("BITAND"),function(f,n){return f&n})}},{key:"bitor",value:function(h,k){return this.runFunction(h.args,k,this.metadata("BITOR"),function(f,n){return f|n})}},{key:"bitxor",value:function(h,k){return this.runFunction(h.args,k,this.metadata("BITXOR"), 1821function(f,n){return f^n})}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions={BITAND:{method:"bitand",parameters:[{argumentType:g.ArgumentTypes.INTEGER,minValue:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:0}]},BITOR:{method:"bitor",parameters:[{argumentType:g.ArgumentTypes.INTEGER,minValue:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:0}]},BITXOR:{method:"bitxor",parameters:[{argumentType:g.ArgumentTypes.INTEGER,minValue:0}, 1822{argumentType:g.ArgumentTypes.INTEGER,minValue:0}]}}},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}function D(c,d){return(D=Object.setPrototypeOf? 1823Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function A(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=x(c);if(d){var k=x(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!==F(h)&&"function"!=typeof h){if(void 0!== 1824h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=this}return h}}function x(c){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b);a.d(b,"BooleanPlugin",function(){return e});a(0);a(27);a(25);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=a(46);g=a(37);var e=function(c){function d(){if(!(this instanceof 1825d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,writable:!0,configurable:!0}});Object.defineProperty(f,"prototype",{writable:!1});n&&D(f,n)}(d,c);var h,k=A(d);return h=[{key:"literalTrue",value:function(f,n){return this.runFunction(f.args,n,this.metadata("TRUE"),function(){return!0})}}, 1826{key:"literalFalse",value:function(f,n){return this.runFunction(f.args,n,this.metadata("FALSE"),function(){return!1})}},{key:"conditionalIf",value:function(f,n){return this.runFunction(f.args,n,this.metadata("IF"),function(l,r,m){return l?r:m})}},{key:"and",value:function(f,n){return this.runFunction(f.args,n,this.metadata("AND"),function(){for(var l=arguments.length,r=Array(l),m=0;m<l;m++)r[m]=arguments[m];return!r.some(function(t){return!t})})}},{key:"or",value:function(f,n){return this.runFunction(f.args, 1827n,this.metadata("OR"),function(){for(var l=arguments.length,r=Array(l),m=0;m<l;m++)r[m]=arguments[m];return r.some(function(t){return t})})}},{key:"not",value:function(f,n){return this.runFunction(f.args,n,this.metadata("NOT"),function(l){return!l})}},{key:"xor",value:function(f,n){return this.runFunction(f.args,n,this.metadata("XOR"),function(){for(var l=0,r=arguments.length,m=Array(r),t=0;t<r;t++)m[t]=arguments[t];return m.forEach(function(u){u&&l++}),1==l%2})}},{key:"switch",value:function(f,n){var l= 1828this;return this.runFunction(f.args,n,this.metadata("SWITCH"),function(r){for(var m=arguments.length,t=Array(1<m?m-1:0),u=1;u<m;u++)t[u-1]=arguments[u];m=t.length;for(u=0;u+1<m;u+=2)if(!(t[u]instanceof q.CellError)&&l.arithmeticHelper.eq(r,t[u]))return t[u+1];return u<m?t[u]:new q.CellError(q.ErrorType.NA,p.ErrorMessage.NoDefault)})}},{key:"iferror",value:function(f,n){return this.runFunction(f.args,n,this.metadata("IFERROR"),function(l,r){return l instanceof q.CellError?r:l})}},{key:"ifna",value:function(f, 1829n){return this.runFunction(f.args,n,this.metadata("IFNA"),function(l,r){return l instanceof q.CellError&&l.type===q.ErrorType.NA?r:l})}},{key:"choose",value:function(f,n){return this.runFunction(f.args,n,this.metadata("CHOOSE"),function(l){return l>(1>=arguments.length?0:arguments.length-1)?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.Selector):1>l-1+1||arguments.length<=l-1+1?void 0:arguments[l-1+1]})}}],B(d.prototype,h),Object.defineProperty(d,"prototype",{writable:!1}),d}(g.FunctionPlugin);e.implementedFunctions= 1830{TRUE:{method:"literalTrue",parameters:[]},FALSE:{method:"literalFalse",parameters:[]},IF:{method:"conditionalIf",parameters:[{argumentType:g.ArgumentTypes.BOOLEAN},{argumentType:g.ArgumentTypes.SCALAR,passSubtype:!0},{argumentType:g.ArgumentTypes.SCALAR,defaultValue:!1,passSubtype:!0}]},AND:{method:"and",parameters:[{argumentType:g.ArgumentTypes.BOOLEAN}],repeatLastArgs:1,expandRanges:!0},OR:{method:"or",parameters:[{argumentType:g.ArgumentTypes.BOOLEAN}],repeatLastArgs:1,expandRanges:!0},XOR:{method:"xor", 1831parameters:[{argumentType:g.ArgumentTypes.BOOLEAN}],repeatLastArgs:1,expandRanges:!0},NOT:{method:"not",parameters:[{argumentType:g.ArgumentTypes.BOOLEAN}]},SWITCH:{method:"switch",parameters:[{argumentType:g.ArgumentTypes.NOERROR},{argumentType:g.ArgumentTypes.SCALAR,passSubtype:!0},{argumentType:g.ArgumentTypes.SCALAR,passSubtype:!0}],repeatLastArgs:1},IFERROR:{method:"iferror",parameters:[{argumentType:g.ArgumentTypes.SCALAR,passSubtype:!0},{argumentType:g.ArgumentTypes.SCALAR,passSubtype:!0}]}, 1832IFNA:{method:"ifna",parameters:[{argumentType:g.ArgumentTypes.SCALAR,passSubtype:!0},{argumentType:g.ArgumentTypes.SCALAR,passSubtype:!0}]},CHOOSE:{method:"choose",parameters:[{argumentType:g.ArgumentTypes.INTEGER,minValue:1},{argumentType:g.ArgumentTypes.SCALAR,passSubtype:!0}],repeatLastArgs:1}}},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&& 1833d!==Symbol.prototype?"symbol":typeof d})(c)}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}
1833function D(c,d){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function A(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1834[],function(){})),!0}catch(h){return!1}}();return function(){var h=x(c);if(d){var k=x(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!==F(h)&&"function"!=typeof h){if(void 0!==h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=this}return h}}function x(c){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 1835function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b);a.d(b,"CharPlugin",function(){return e});a(147);a(755);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=a(46);g=a(37);var e=function(c){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(n&&n.prototype, 1836{constructor:{value:f,writable:!0,configurable:!0}});Object.defineProperty(f,"prototype",{writable:!1});n&&D(f,n)}(d,c);var h,k=A(d);return h=[{key:"char",value:function(f,n){return this.runFunction(f.args,n,this.metadata("CHAR"),function(l){return 1>l||256<=l?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.CharacterCodeBounds):String.fromCharCode(Math.trunc(l))})}},{key:"unichar",value:function(f,n){return this.runFunction(f.args,n,this.metadata("CHAR"),function(l){return 1>l||1114112<=l?new q.CellError(q.ErrorType.VALUE, 1837p.ErrorMessage.CharacterCodeBounds):String.fromCodePoint(Math.trunc(l))})}}],B(d.prototype,h),Object.defineProperty(d,"prototype",{writable:!1}),d}(g.FunctionPlugin);e.implementedFunctions={CHAR:{method:"char",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},UNICHAR:{method:"unichar",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"== 1838typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}function D(c,d){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function A(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 1839try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=x(c);if(d){var k=x(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!==F(h)&&"function"!=typeof h){if(void 0!==h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=this}return h}}function x(c){return(x= 1840Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b);a.d(b,"CodePlugin",function(){return e});a(302);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=a(46);g=a(37);var e=function(c){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function"); 1841f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,writable:!0,configurable:!0}});Object.defineProperty(f,"prototype",{writable:!1});n&&D(f,n)}(d,c);var h,k=A(d);return h=[{key:"code",value:function(f,n){return this.runFunction(f.args,n,this.metadata("CODE"),function(l){return 0===l.length?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.EmptyString):l.charCodeAt(0)})}},{key:"unicode",value:function(f,n){return this.runFunction(f.args,n,this.metadata("UNICODE"),function(l){var r;return null!== 1842(r=l.codePointAt(0))&&void 0!==r?r:new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.EmptyString)})}}],B(d.prototype,h),Object.defineProperty(d,"prototype",{writable:!1}),d}(g.FunctionPlugin);e.implementedFunctions={CODE:{method:"code",parameters:[{argumentType:g.ArgumentTypes.STRING}]},UNICODE:{method:"unicode",parameters:[{argumentType:g.ArgumentTypes.STRING}]}}},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&& 1843"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}
1843function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"== 1844typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d=x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1845d=this}return d}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)}a.r(b);a.d(b,"CountBlankPlugin",function(){return p});a(0);a(27);a(25);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(51);g=a(37);var p=function(e){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return h.apply(this,arguments)}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function"); 1846k.prototype=Object.create(f&&f.prototype,{constructor:{value:k,writable:!0,configurable:!0}});Object.defineProperty(k,"prototype",{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c);return d=[{key:"countblank",value:function(k,f){return this.runFunction(k.args,f,this.metadata("COUNTBLANK"),function(){for(var n=0,l=arguments.length,r=Array(l),m=0;m<l;m++)r[m]=arguments[m];return r.forEach(function(t){t===q.EmptyValue&&n++}),n})}}],B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(g.FunctionPlugin); 1847p.implementedFunctions={COUNTBLANK:{method:"countblank",parameters:[{argumentType:g.ArgumentTypes.SCALAR}],repeatLastArgs:1,expandRanges:!0}}},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&& 1848(h.writable=!0);Object.defineProperty(e,h.key,h)}}function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d=x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d, 1849arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=this}return d}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)}a.r(b);a.d(b,"CountUniquePlugin",function(){return p});a(3);a(0); 1850a(54);a(2);a(4);a(25);a(7);a(8);a(9);a(10);var q=a(24);g=a(37);var p=function(e){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return h.apply(this,arguments)}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(f&&f.prototype,{constructor:{value:k,writable:!0,configurable:!0}});Object.defineProperty(k,"prototype",{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c); 1851return d=[{key:"countunique",value:function(k,f){return this.runFunction(k.args,f,this.metadata("COUNTUNIQUE"),function(){for(var n=new Set,l=new Set,r=arguments.length,m=Array(r),t=0;t<r;t++)m[t]=arguments[t];for(r=0;r<m.length;r++)t=m[r],t instanceof q.CellError?l.add(t.type):""!==t&&n.add(t);return n.size+l.size})}}],B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(g.FunctionPlugin);p.implementedFunctions={COUNTUNIQUE:{method:"countunique",parameters:[{argumentType:g.ArgumentTypes.SCALAR}], 1852repeatLastArgs:1,expandRanges:!0}}},function(g,b,a){function F(v){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(C){return typeof C}:function(C){return C&&"function"==typeof Symbol&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(v)}
1852function B(v){var C=Array.isArray(v)?q(v):void 0;C||(C="undefined"!=typeof Symbol&&null!=v[Symbol.iterator]||null!=v["@@iterator"]?Array.from(v):void 0);if(!(v=C||x(v)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1853return v}function D(v,C){var y="undefined"!=typeof Symbol&&v[Symbol.iterator]||v["@@iterator"];if(!y){if(Array.isArray(v)||(y=x(v))||C&&v&&"number"==typeof v.length){y&&(v=y);var z=0;C=function(){};return{s:C,n:function(){return z>=v.length?{done:!0}:{done:!1,value:v[z++]}},e:function(I){throw I;},f:C}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var E,H=!0,G=!1;return{s:function(){y=y.call(v)}, 1854n:function(){var I=y.next();return H=I.done,I},e:function(I){G=!0;E=I},f:function(){try{H||null==y.return||y.return()}finally{if(G)throw E;}}}}function A(v,C){if(!(v=function(y){if(Array.isArray(y))return y}(v)||function(y,z){var E=null==y?null:"undefined"!=typeof Symbol&&y[Symbol.iterator]||y["@@iterator"];if(null!=E){var H,G=[],I=!0,K=!1;try{for(E=E.call(y);!(I=(H=E.next()).done)&&(G.push(H.value),!z||G.length!==z);I=!0);}catch(P){K=!0;var J=P}finally{try{I||null==E.return||E.return()}finally{if(K)throw J; 1855}}return G}}(v,C)||x(v,C)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return v}function x(v,C){if(v){if("string"==typeof v)return q(v,C);var y=Object.prototype.toString.call(v).slice(8,-1);return"Object"===y&&v.constructor&&(y=v.constructor.name),"Map"===y||"Set"===y?Array.from(v):"Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?q(v,C):void 0}}function q(v,C){(null== 1856C||C>v.length)&&(C=v.length);for(var y=0,z=Array(C);y<C;y++)z[y]=v[y];return z}function p(v,C){for(var y=0;y<C.length;y++){var z=C[y];z.enumerable=z.enumerable||!1;z.configurable=!0;"value"in z&&(z.writable=!0);Object.defineProperty(v,z.key,z)}}function e(v,C){return(e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,z){return y.__proto__=z,y})(v,C)}function c(v){var C=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 1857try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(y){return!1}}();return function(){var y=d(v);if(C){var z=d(this).constructor;y=Reflect.construct(y,arguments,z)}else y=y.apply(this,arguments);if(!y||"object"!==F(y)&&"function"!=typeof y){if(void 0!==y)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");y=this}return y}}function d(v){return(d= 1858Object.setPrototypeOf?Object.getPrototypeOf.bind():function(C){return C.__proto__||Object.getPrototypeOf(C)})(v)}function h(v,C){if(0===C.length||v<=C[0])return 0;if(C[C.length-1]<v)return C.length;for(var y=0,z=C.length-1;y+1<z;){var E=Math.floor((z+y)/2);C[E]>=v?z=E:y=E}return z}function k(v){var C;return"number"!=typeof v&&"string"!=typeof v?new f.CellError(f.ErrorType.VALUE,l.ErrorMessage.WrongType):"str
1858ing"==typeof v?7===v.length&&/^(0|1)*$/.test(v)&&"1111111"!==v?v:new f.CellError(f.ErrorType.NUM, 1859l.ErrorMessage.WeekendString):null!==(C=w.get(v))&&void 0!==C?C:new f.CellError(f.ErrorType.NUM,l.ErrorMessage.BadMode)}a.r(b);a.d(b,"DateTimePlugin",function(){return t});a(147);a(39);a(0);a(75);a(3);a(54);a(2);a(4);a(12);a(32);a(25);a(7);a(8);a(9);a(10);a(13);a(26);a(22);var f=a(24),n=a(164),l=a(46),r=a(299),m=a(51);g=a(37);var t=function(v){function C(){var E;if(!(this instanceof C))throw new TypeError("Cannot call a class as a function");return(E=z.apply(this,arguments)).isoweeknumCore=function(H){var G= 1860Math.floor(E.dateTimeHelper.relativeNumberToAbsoluteNumber(H)),I=E.dateTimeHelper.numberToSimpleDate(H);I=E.dateTimeHelper.dateToNumber({year:I.year,month:1,day:1});I=E.dateTimeHelper.relativeNumberToAbsoluteNumber(I);G=Math.floor((G-1)/7)-Math.floor((I+((4-I)%7+7)%7-1)/7)+1;return 0===G?E.isoweeknumCore(H-7)+1:G},E.days360Core=function(H,G,I){H=E.dateTimeHelper.numberToSimpleDate(H);G=E.dateTimeHelper.numberToSimpleDate(G);I?(I=Object(n.toBasisEU)(H),G=Object(n.toBasisEU)(G)):(G=A(E.dateTimeHelper.toBasisUS(H, 1861G),2),I=G[0],G=G[1]);return 360*(G.year-I.year)+30*(G.month-I.month)+G.day-I.day},E}!function(E,H){if("function"!=typeof H&&null!==H)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(H&&H.prototype,{constructor:{value:E,writable:!0,configurable:!0}});Object.defineProperty(E,"prototype",{writable:!1});H&&e(E,H)}(C,v);var y,z=c(C);return y=[{key:"date",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("DATE"),function(I,K, 1862J){J=Math.trunc(J);K=Math.trunc(K);I=Math.trunc(I);I<G.dateTimeHelper.getEpochYearZero()&&(I+=G.dateTimeHelper.getEpochYearZero());var P=Math.floor((K-1)/12);I={year:I+P,month:K-12*P,day:1};return G.dateTimeHelper.isValidDate(I)?(J=G.dateTimeHelper.dateToNumber(I)+(J-1),void 0===(J=G.dateTimeHelper.getWithinBounds(J))?new f.CellError(f.ErrorType.NUM,l.ErrorMessage.DateBounds):J):new f.CellError(f.ErrorType.VALUE,l.ErrorMessage.InvalidDate)})}},{key:"time",value:function(E,H){return this.runFunction(E.args, 1863H,this.metadata("TIME"),function(G,I,K){G=Object(n.timeToNumber)({hours:Math.trunc(G),minutes:Math.trunc(I),seconds:Math.trunc(K)});return 0>G?new f.CellError(f.ErrorType.NUM,l.ErrorMessage.NegativeTime):G%1})}},{key:"eomonth",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("EOMONTH"),function(I,K){I=G.dateTimeHelper.numberToSimpleDate(I);K=G.dateTimeHelper.dateToNumber(G.dateTimeHelper.endOfMonth(Object(n.offsetMonth)(I,K)));return void 0===(K=G.dateTimeHelper.getWithinBounds(K))? 1864new f.CellError(f.ErrorType.NUM,l.ErrorMessage.DateBounds):K})}},{key:"day",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("DAY"),function(I){return G.dateTimeHelper.numberToSimpleDate(I).day})}},{key:"days",value:function(E,H){return this.runFunction(E.args,H,this.metadata("DAYS"),function(G,I){return Math.trunc(G)-Math.trunc(I)})}},{key:"month",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("MONTH"),function(I){return G.dateTimeHelper.numberToSimpleDate(I).month})}}, 1865{key:"year",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("YEAR"),function(I){return G.dateTimeHelper.numberToSimpleDate(I).year})}},{key:"hour",value:function(E,H){return this.runFunction(E.args,H,this.metadata("HOUR"),function(G){return Object(n.numberToSimpleTime)(Object(n.roundToNearestSecond)(G)%1).hours})}},{key:"minute",value:function(E,H){return this.runFunction(E.args,H,this.metadata("MINUTE"),function(G){return Object(n.numberToSimpleTime)(Object(n.roundToNearestSecond)(G)% 18661).minutes})}},{key:"second",value:function(E,H){return this.runFunction(E.args,H,this.metadata("SECOND"),function(G){return Object(n.numberToSimpleTime)(Object(n.roundToNearestSecond)(G)%1).seconds})}},{key:"text",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("TEXT"),function(I,K){return Object(r.format)(I,K,G.config,G.dateTimeHelper)})}},{key:"weekday",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("WEEKDAY"),function(I,K){I=Math.floor(G.dateTimeHelper.relativeNumberToAbsoluteNumber(I)); 1867if(3===K)return(I-1)%7;K=u.get(K);return void 0===K?new f.CellError(f.ErrorType.NUM,l.ErrorMessage.BadMode):(I-K)%7+1})}},{key:"weeknum",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("WEEKNUM"),function(I,K){var J=Math.floor(G.dateTimeHelper.relativeNumberToAbsoluteNumber(I)),P=G.dateTimeHelper.numberToSimpleDate(I);P=G.dateTimeHelper.dateToNumber({year:P.year,month:1,day:1});P=G.dateTimeHelper.relativeNumberToAbsoluteNumber(P);if(21===K)return G.isoweeknumCore(I); 1868I=u.get(K);return void 0===I?new f.CellError(f.ErrorType.NUM,l.ErrorMessage.BadMode):Math.floor((J-I)/7)-Math.floor((P-I)/7)+1})}},{key:"isoweeknum",value:function(E,H){return this.runFunction(E.args,H,this.metadata("ISOWEEKNUM"),this.isoweeknumCore)}},{key:"datevalue",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("DATEVALUE"),function(I){I=G.dateTimeHelper.parseDateTimeFromConfigFormats(I).dateTime;return void 0===I?new f.CellError(f.ErrorType.VALUE,l.ErrorMessage.IncorrectDateTime): 1869Object(n.instanceOfSimpleDate)(I)?(Object(n.instanceOfSimpleTime)(I)?Math.trunc(Object(n.timeToNumber)(I)):0)+G.dateTimeHelper.dateToNumber(I):0})}},{key:"timevalue",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("TIMEVALUE"),function(I){I=G.dateTimeHelper.dateStringToDateNumber(I);return void 0===I?new f.CellError(f.ErrorType.VALUE,l.ErrorMessage.IncorrectDateTime):Object(m.getRawValue)(I)%1})}},{key:"now",value:function(E,H){var G=this;return this.runFunction(E.args, 1870H,this.metadata("NOW"),function(){var I=new Date(Date.now());return Object(n.timeToNumber)({hours:I.getHours(),minutes:I.getMinutes(),seconds:I.getSeconds()})+G.dateTimeHelper.dateToNumber({year:I.getFullYear(),month:I.getMonth()+1,day:I.getDate()})})}},{key:"today",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("TODAY"),function(){var I=new Date(Date.now());return G.dateTimeHelper.dateToNumber({year:I.getFullYear(),month:I.getMonth()+1,day:I.getDate()})})}},{key:"edate", 1871value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("EDATE"),function(I,K){I=G.dateTimeHelper.numberToSimpleDate(I);K=Object(n.truncateDayInMonth)(Object(n.offsetMonth)(I,K));K=G.dateTimeHelper.dateToNumber(K);return void 0===(K=G.dateTimeHelper.getWithinBounds(K))?new f.CellError(f.ErrorType.NUM,l.ErrorMessage.DateBounds):K})}},{key:"datedif",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("DATEDIF"),function(I,K,J){if(I>K)return new f.CellError(f.ErrorType.NUM, 1872l.ErrorMessage.StartEndDate);if("D"===J)return Math.floor(K)-Math.floor(I);var P=G.dateTimeHelper.numberToSimpleDate(I),S=G.dateTimeHelper.numberToSimpleDate(K);switch(J){case "M":return 12*(S.year-P.year)+(S.month-P.month)-(S.day<P.day?1:0);case "YM":return(S.month-P.month+12-(S.day<P.day?1:0))%12;case "Y":return S.month>P.month||S.month===P.month&&S.day>=P.day?S.year-P.year:S.year-P.year-1;case "MD":return S.day>=P.day?S.day-P.day:G.dateTimeHelper.daysInMonth(1===S.month?S.year-1:S.year,1===S.month? 187312:S.month-1)+S.day-P.day;case "YD":return S.month>P.month||S.month===P.month&&S.day>=P.day?Math.floor(K)-G.dateTimeHelper.dateToNumber({year:S.year,month:P.month,day:P.day}):Math.floor(K)-Math.floor(I)-365*(S.year-P.year-1)-G.dateTimeHelper.leapYearsCount(S.year-1)+G.dateTimeHelper.leapYearsCount(P.year);default:return new f.CellError(f.ErrorType.NUM,l.ErrorMessage.BadMode)}})}},{key:"days360",value:function(E,H){return this.runFunction(E.args,H,this.metadata("DAYS360"),this.days360Core)}},{key:"yearfrac", 1874value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("YEARFRAC"),function(I,K,J){(I=Math.trunc(I))>(K=Math.trunc(K))&&(K=[K,I],I=K[0],K=K[1]);switch(J){case 0:return G.days360Core(I,K,!1)/360;case 1:return(K-I)/G.dateTimeHelper.yearLengthForBasis(G.dateTimeHelper.numberToSimpleDate(I),G.dateTimeHelper.numberToSimpleDate(K));case 2:return(K-I)/360;case 3:return(K-I)/365;case 4:return G.days360Core(I,K,!0)/360}throw Error("Should not be reachable.");})}},{key:"interval",value:function(E, 1875H){return this.runFunction(E.args,H,this.metadata("INTERVAL"),function(G){var I=(G=Math.trunc(G))%60,K=(G=Math.trunc(G/60))%60,J=(G=Math.trunc(G/60))%24,P=(G=Math.trunc(G/24))%30,S=(G=Math.trunc(G/30))%12;G=Math.trunc(G/12);return"P"+(0<G?G+"Y":"")+(0<S?S+"M":"")+(0<P?P+"D":"")+"T"+(0<J?J+"H":"")+(0<K?K+"M":"")+(0<I?I+"S":"")})}},{key:"networkdays",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("NETWORKDAYS"),function(I,K,J){return G.networkdayscore(I,K,1,J)})}},{key:"networkdaysintl", 1876value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("NETWORKDAYS.INTL"),function(I,K,J,P){return G.networkdayscore(I,K,J,P)})}},{key:"workday",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("WORKDAY"),function(I,K,J){return G.workdaycore(I,K,1,J)})}},{key:"workdayintl",value:function(E,H){var G=this;return this.runFunction(E.args,H,this.metadata("WORKDAY.INTL"),function(I,K,J,P){return G.workdaycore(I,K,J,P)})}},{key:"networkdayscore",value:function(E, 1877H,G,I){var K=1;(E=Math.trunc(E))>
1877(H=Math.trunc(H))&&(H=[H,E],E=H[0],H=H[1],K=-1);G=k(G);if(G instanceof f.CellError)return G;I=this.simpleRangeToFilteredHolidays(G,I);return I instanceof f.CellError?I:K*this.countWorkdays(E,H,G,I)}},{key:"workdaycore",value:function(E,H,G,I){E=Math.trunc(E);H=Math.trunc(H);G=k(G);if(G instanceof f.CellError)return G;I=this.simpleRangeToFilteredHolidays(G,I);if(I instanceof f.CellError)return I;if(0<H){for(var K=1;this.countWorkdays(E+1,E+K,G,I)<H;)K*=2;for(var J= 18781;J+1<K;){var P=Math.trunc((J+K)/2);this.countWorkdays(E+1,E+P,G,I)<H?J=P:K=P}return E+K}if(0>H){H*=-1;for(K=1;this.countWorkdays(E-K,E-1,G,I)<H;)K*=2;for(J=1;J+1<K;)P=Math.trunc((J+K)/2),this.countWorkdays(E-P,E-1,G,I)<H?J=P:K=P;return E-K}return E}},{key:"countWorkdays",value:function(E,H,G,I){for(var K=Math.floor(this.dateTimeHelper.relativeNumberToAbsoluteNumber(H)),J=Math.floor(this.dateTimeHelper.relativeNumberToAbsoluteNumber(E)),P=0,S=0;7>S;S++)"0"===G.charAt(S)&&(P+=Math.floor((K+6-S)/7), 1879P-=Math.floor((J-1+6-S)/7));return P-(h(H+1,I)-h(E,I))}},{key:"simpleRangeToFilteredHolidays",value:function(E,H){var G,I,K=this;H=null!==(G=null==H?void 0:H.valuesFromTopLeftCorner())&&void 0!==G?G:[];G=D(H);try{for(G.s();!(I=G.n()).done;){var J=I.value;if(J instanceof f.CellError)return J}}catch(R){G.e(R)}finally{G.f()}var P;I=[];H=D(H);try{for(H.s();!(P=H.n()).done;){var S=P.value;if(S!==m.EmptyValue){if(!Object(m.isExtendedNumber)(S))return new f.CellError(f.ErrorType.VALUE,l.ErrorMessage.WrongType); 1880I.push(Math.trunc(Object(m.getRawValue)(S)))}}}catch(R){H.e(R)}finally{H.f()}return B(new Set(I)).sort(function(R,O){return R-O}).filter(function(R){R=(K.dateTimeHelper.relativeNumberToAbsoluteNumber(R)-1)%7;return"0"===E.charAt(R)})}}],p(C.prototype,y),Object.defineProperty(C,"prototype",{writable:!1}),C}(g.FunctionPlugin);t.implementedFunctions={DATE:{method:"date",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}],returnNumberType:m.NumberType.NUMBER_DATE}, 1881TIME:{method:"time",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}],returnNumberType:m.NumberType.NUMBER_TIME},MONTH:{method:"month",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},YEAR:{method:"year",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},HOUR:{method:"hour",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},MINUTE:{method:"minute",parameters:[{argumentType:g.ArgumentTypes.NUMBER, 1882minValue:0}]},SECOND:{method:"second",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},TEXT:{method:"text",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.STRING}]},EOMONTH:{method:"eomonth",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER}],returnNumberType:m.NumberType.NUMBER_DATE},DAY:{method:"day",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},DAYS:{method:"days",parameters:[{argumentType:g.ArgumentTypes.NUMBER, 1883minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},WEEKDAY:{method:"weekday",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},WEEKNUM:{method:"weeknum",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},ISOWEEKNUM:{method:"isoweeknum",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},DATEVALUE:{method:"datevalue",parameters:[{argumentType:g.ArgumentTypes.STRING}], 1884returnNumberType:m.NumberType.NUMBER_DATE},TIMEVALUE:{method:"timevalue",parameters:[{argumentType:g.ArgumentTypes.STRING}],returnNumberType:m.NumberType.NUMBER_TIME},NOW:{method:"now",parameters:[],isVolatile:!0,returnNumberType:m.NumberType.NUMBER_DATETIME},TODAY:{method:"today",parameters:[],isVolatile:!0,returnNumberType:m.NumberType.NUMBER_DATE},EDATE:{method:"edate",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER}],returnNumberType:m.NumberType.NUMBER_DATE}, 1885DAYS360:{method:"days360",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.BOOLEAN,defaultValue:!1}]},DATEDIF:{method:"datedif",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.STRING}]},YEARFRAC:{method:"yearfrac",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0}, 1886{argumentType:g.ArgumentTypes.INTEGER,defaultValue:0,minValue:0,maxValue:4}]},INTERVAL:{method:"interval",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},NETWORKDAYS:{method:"networkdays",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.RANGE,optionalArg:!0}]},"NETWORKDAYS.INTL":{method:"networkdaysintl",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER, 1887minValue:0},{argumentType:g.ArgumentTypes.NOERROR,defaultValue:1},{argumentType:g.ArgumentTypes.RANGE,optionalArg:!0}]},WORKDAY:{method:"workday",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.RANGE,optionalArg:!0}]},"WORKDAY.INTL":{method:"workdayintl",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NOERROR,defaultValue:1},{argumentType:g.ArgumentTypes.RANGE, 1888optionalArg:!0}]}};var u=new Map([[1,0],[2,1],[11,1],[12,2],[13,3],[14,4],[15,5],[16,6],[17,0]]),w=new Map([[1,"0000011"],[2,"1000001"],[3,"1100000"],[4,"0110000"],[5,"0011000"],[6,"0001100"],[7,"0000110"],[11,"0000001"],[12,"1000000"],[13,"0100000"],[14,"0010000"],[15,"0001000"],[16,"0000100"],[17,"0000010"]])},function(g,b,a){function F(p){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor=== 1889Symbol&&e!==Symbol.prototype?"symbol":typeof e})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}
1889function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1890[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 1891function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"DegreesPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0, 1892configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"degrees",value:function(h,k){return this.runFunction(h.args,k,this.metadata("DEGREES"),function(f){return 180/Math.PI*f})}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions={DEGREES:{method:"degrees",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(p){return(F="function"==typeof Symbol&&"symbol"== 1893typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"== 1894typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1895c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"DeltaPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function"); 1896h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"delta",value:function(h,k){return this.runFunction(h.args,k,this.metadata("DELTA"),function(f,n){return f===n?1:0})}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions={DELTA:{method:"delta",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER, 1897defaultValue:0}]}}},function(g,b,a){function F(p){return(F="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})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}
1897function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind(): 1898function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined"); 1899if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"ExpPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)} 1900!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"exp",value:function(h,k){return this.runFunction(h.args,k,this.metadata("EXP"),Math.exp)}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions= 1901{EXP:{method:"exp",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(m){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(m)}function B(m,t){var u="undefined"!=typeof Symbol&&m[Symbol.iterator]||m["@@iterator"];if(!u){if(Array.isArray(m)||(u=function(z,E){if(z){if("string"==typeof z)return D(z,E);var H=Object.prototype.toString.call(z).slice(8, 1902-1);"Object"===H&&z.constructor&&(H=z.constructor.name);if("Map"===H||"Set"===H)return Array.from(z);if("Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return D(z,E)}}(m))||t&&m&&"number"==typeof m.length){u&&(m=u);var w=0;t=function(){};return{s:t,n:function(){return w>=m.length?{done:!0}:{done:!1,value:m[w++]}},e:function(z){throw z;},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1903}var v,C=!0,y=!1;return{s:function(){u=u.call(m)},n:function(){var z=u.next();return C=z.done,z},e:function(z){y=!0;v=z},f:function(){try{C||null==u.return||u.return()}finally{if(y)throw v;}}}}function D(m,t){(null==t||t>m.length)&&(t=m.length);for(var u=0,w=Array(t);u<t;u++)w[u]=m[u];return w}function A(m,t){for(var u=0;u<t.length;u++){var w=t[u];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(m,w.key,w)}}function x(m,t){return(x=Object.setPrototypeOf? 1904Object.setPrototypeOf.bind():function(u,w){return u.__proto__=w,u})(m,t)}function q(m){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u=p(m);if(t){var w=p(this).constructor;u=Reflect.construct(u,arguments,w)}else u=u.apply(this,arguments);if(!u||"object"!==F(u)&&"function"!=typeof u){if(void 0!== 1905u)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");u=this}return u}}function p(m){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(m)}function e(m,t,u,w,v){if(0===m)return(-u-w)/t;t=Math.pow(1+m,t);return(w*m+u*m*t)*(v?1/(1+m):1)/(1-t)}
1905function c(m,t,u,w,v,C){u=e(m,u,w,v,C);return 1===t?m*(C?0:-w): 1906m*(C?d(m,t-2,u,w,C)-u:d(m,t-1,u,w,C))}function d(m,t,u,w,v){if(0===m)return-w-u*t;t=Math.pow(1+m,t);return u*(v?1+m:1)*(1-t)/m-w*t}function h(m,t,u,w,v,C){return e(m,u,w,v,C)-c(m,t,u,w,v,C)}function k(m,t){for(var u=0,w=t.length-1;0<=w;w--){if(u+=t[w],-1===m){if(0===u)continue;return new f.CellError(f.ErrorType.DIV_BY_ZERO)}u/=1+m}return u}a.r(b);a.d(b,"FinancialPlugin",function(){return r});a(147);a(25);a(0);a(7);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var f=a(24),n=a(46),l=a(51); 1907g=a(37);var r=function(m){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");return w.apply(this,arguments)}!function(v,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(C&&C.prototype,{constructor:{value:v,writable:!0,configurable:!0}});Object.defineProperty(v,"prototype",{writable:!1});C&&x(v,C)}(t,m);var u,w=q(t);return u=[{key:"pmt",value:function(v,C){return this.runFunction(v.args, 1908C,this.metadata("PMT"),e)}},{key:"ipmt",value:function(v,C){return this.runFunction(v.args,C,this.metadata("IPMT"),c)}},{key:"ppmt",value:function(v,C){return this.runFunction(v.args,C,this.metadata("PPMT"),h)}},{key:"fv",value:function(v,C){return this.runFunction(v.args,C,this.metadata("FV"),d)}},{key:"cumipmt",value:function(v,C){return this.runFunction(v.args,C,this.metadata("CUMIPMT"),function(y,z,E,H,G,I){if(H>G)return new f.CellError(f.ErrorType.NUM,n.ErrorMessage.EndStartPeriod);for(var K= 19090;H<=G;H++)K+=c(y,H,z,E,0,I);return K})}},{key:"cumprinc",value:function(v,C){return this.runFunction(v.args,C,this.metadata("CUMPRINC"),function(y,z,E,H,G,I){if(H>G)return new f.CellError(f.ErrorType.NUM,n.ErrorMessage.EndStartPeriod);for(var K=0;H<=G;H++)K+=h(y,H,z,E,0,I);return K})}},{key:"db",value:function(v,C){return this.runFunction(v.args,C,this.metadata("DB"),function(y,z,E,H,G){if(12===G&&H>E||H>E+1)return new f.CellError(f.ErrorType.NUM,n.ErrorMessage.PeriodLong);if(z>=y)return 0;z=Math.round(1E3* 1910(1-Math.pow(z/y,1/E)))/1E3;var I=y*z*G/12;if(1===H)return I;for(var K=0;K<H-2;K++)I+=(y-I)*z;return H===E+1?(y-I)*z*(12-G)/12:(y-I)*z})}},{key:"ddb",value:function(v,C){return this.runFunction(v.args,C,this.metadata("DDB"),function(y,z,E,H,G){if(H>E)return new f.CellError(f.ErrorType.NUM);var I;E=G/E;1<=E?(E=1,I=1===H?y:0):I=y*Math.pow(1-E,H-1);return Math.max(I-Math.max(z,y*Math.pow(1-E,H)),0)})}},{key:"dollarde",value:function(v,C){return this.runFunction(v.args,C,this.metadata("DOLLARDE"),function(y, 1911z){if(1>z)return new f.CellError(f.ErrorType.DIV_BY_ZERO);for(z=Math.trunc(z);10<z;)z/=10;return Math.trunc(y)+10*(y-Math.trunc(y))/z})}},{key:"dollarfr",value:function(v,C){return this.runFunction(v.args,C,this.metadata("DOLLARFR"),function(y,z){if(1>z)return new f.CellError(f.ErrorType.DIV_BY_ZERO);for(z=Math.trunc(z);10<z;)z/=10;return Math.trunc(y)+(y-Math.trunc(y))*z/10})}},{key:"effect",value:function(v,C){return this.runFunction(v.args,C,this.metadata("EFFECT"),function(y,z){return z=Math.trunc(z), 1912Math.pow(1+y/z,z)-1})}},{key:"ispmt",value:function(v,C){return this.runFunction(v.args,C,this.metadata("ISPMT"),function(y,z,E,H){return 0===E?new f.CellError(f.ErrorType.DIV_BY_ZERO):H*y*(z/E-1)})}},{key:"nominal",value:function(v,C){return this.runFunction(v.args,C,this.metadata("NOMINAL"),function(y,z){return z=Math.trunc(z),(Math.pow(y+1,1/z)-1)*z})}},{key:"nper",value:function(v,C){return this.runFunction(v.args,C,this.metadata("NPER"),function(y,z,E,H,G){return 0===y?0===z?new f.CellError(f.ErrorType.DIV_BY_ZERO): 1913(-E-H)/z:(G&&(z*=1+y),Math.log((z-H*y)/(E*y+z))/Math.log(1+y))})}},{key:"rate",value:function(v,C){return this.runFunction(v.args,C,this.metadata("RATE"),function(y,z,E,H,G,I){if(-1>=I)return new f.CellError(f.ErrorType.VALUE);G=G?1:0;for(var K=0;50>K&&!(-1>=I);K++){if(1E-7>Math.abs(I))var J=E*(1+y*I)+z*(1+I*G)*y+H;else J=Math.pow(1+I,y),J=E*J+z*(1/I+G)*(J-1)+H;if(1E-7>Math.abs(J))return I;if(1E-7>Math.abs(I))var P=E*y+z*G*y;else P=y*Math.pow(1+I,y-1),P=E*P+z*(1/I+G)*P+-1/(I*I)*z*(Math.pow(1+I,y)- 19141);I-=J/P}return new f.CellError(f.ErrorType.NUM)})}},{key:"pv",value:function(v,C){return this.runFunction(v.args,C,this.metadata("PV"),function(y,z,E,H,G){return G=G?1:0,-1===y?0===z?new f.CellError(f.ErrorType.NUM):new f.CellError(f.ErrorType.DIV_BY_ZERO):0===y?-E*z-H:((1-Math.pow(1+y,z))*E*(1+y*G)/y-H)/Math.pow(1+y,z)})}},{key:"rri",value:function(v,C){return this.runFunction(v.args,C,this.metadata("RRI"),function(y,z,E){return 0===z||0>E&&0<z||0<E&&0>z?new f.CellError(f.ErrorType.NUM):Math.pow(E/ 1915z,1/y)-1})}},{key:"sln",value:function(v,C){return this.runFunction(v.args,C,this.metadata("SLN"),function(y,z,E){return 0===E?
1915new f.CellError(f.ErrorType.DIV_BY_ZERO):(y-z)/E})}},{key:"syd",value:function(v,C){return this.runFunction(v.args,C,this.metadata("SYD"),function(y,z,E,H){return H>E?new f.CellError(f.ErrorType.NUM):(y-z)*(E-H+1)*2/(E*(E+1))})}},{key:"tbilleq",value:function(v,C){var y=this;return this.runFunction(v.args,C,this.metadata("TBILLEQ"),function(z,E,H){if((z=Math.round(z))>=(E= 1916Math.round(E)))return new f.CellError(f.ErrorType.NUM);var G=y.dateTimeHelper.numberToSimpleDate(z),I=y.dateTimeHelper.numberToSimpleDate(E);if(I.year>G.year+1||I.year===G.year+1&&(I.month>G.month||I.month===G.month&&I.day>G.day))return new f.CellError(f.ErrorType.NUM);z=360-H*(E-z);return 0===z?0:0>z?new f.CellError(f.ErrorType.NUM):365*H/z})}},{key:"tbillprice",value:function(v,C){var y=this;return this.runFunction(v.args,C,this.metadata("TBILLPRICE"),function(z,E,H){if((z=Math.round(z))>=(E=Math.round(E)))return new f.CellError(f.ErrorType.NUM); 1917var G=y.dateTimeHelper.numberToSimpleDate(z),I=y.dateTimeHelper.numberToSimpleDate(E);if(I.year>G.year+1||I.year===G.year+1&&(I.month>G.month||I.month===G.month&&I.day>G.day))return new f.CellError(f.ErrorType.NUM);G=360-H*(E-z);return 0===G?0:0>G?new f.CellError(f.ErrorType.NUM):100*(1-H*(E-z)/360)})}},{key:"tbillyield",value:function(v,C){var y=this;return this.runFunction(v.args,C,this.metadata("TBILLYIELD"),function(z,E,H){if((z=Math.round(z))>=(E=Math.round(E)))return new f.CellError(f.ErrorType.NUM); 1918var G=y.dateTimeHelper.numberToSimpleDate(z),I=y.dateTimeHelper.numberToSimpleDate(E);return I.year>G.year+1||I.year===G.year+1&&(I.month>G.month||I.month===G.month&&I.day>G.day)?new f.CellError(f.ErrorType.NUM):360*(100-H)/(H*(E-z))})}},{key:"fvschedule",value:function(v,C){return this.runFunction(v.args,C,this.metadata("FVSCHEDULE"),function(y,z){var E;z=z.valuesFromTopLeftCorner();var H=B(z);try{for(H.s();!(E=H.n()).done;){var G=E.value;if(G instanceof f.CellError)return G}}catch(J){H.e(J)}finally{H.f()}var I; 1919E=B(z);try{for(E.s();!(I=E.n()).done;){var K=I.value;if(Object(l.isExtendedNumber)(K))y*=1+Object(l.getRawValue)(K);else if(K!==l.EmptyValue)return new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.NumberExpected)}}catch(J){E.e(J)}finally{E.f()}return y})}},{key:"npv",value:function(v,C){var y=this;return this.runFunction(v.args,C,this.metadata("NPV"),function(z){for(var E=arguments.length,H=Array(1<E?E-1:0),G=1;G<E;G++)H[G-1]=arguments[G];E=y.arithmeticHelper.coerceNumbersExactRanges(H);return E instanceof 1920f.CellError?E:k(z,E)})}},{key:"mirr",value:function(v,C){var y=this;return this.runFunction(v.args,C,this.metadata("MIRR"),function(z,E,H){var G=y.arithmeticHelper.manyToExactNumbers(z.valuesFromTopLeftCorner());if(G instanceof f.CellError)return G;var I,K=!1,J=!1,P=[];z=[];var S=B(G);try{for(S.s();!(I=S.n()).done;){var R=I.value;0<R?(K=!0,P.push(R),z.push(0)):0>R?(J=!0,z.push(R),P.push(0)):(z.push(0),P.push(0))}}catch(O){S.e(O)}finally{S.f()}if(!K||!J)return new f.CellError(f.ErrorType.DIV_BY_ZERO); 1921I=G.length;P=k(H,P);if(P instanceof f.CellError)return P;z=k(E,z);return z instanceof f.CellError?z:Math.pow(-P*Math.pow(1+H,I)/z/(1+E),1/(I-1))-1})}},{key:"pduration",value:function(v,C){return this.runFunction(v.args,C,this.metadata("PDURATION"),function(y,z,E){return(Math.log(E)-Math.log(z))/Math.log(1+y)})}},{key:"xnpv",value:function(v,C){return this.runFunction(v.args,C,this.metadata("XNPV"),function(y,z,E){var H;z=z.valuesFromTopLeftCorner();var G=B(z);try{for(G.s();!(H=G.n()).done;)if("number"!= 1922typeof H.value)return new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.NumberExpected)}catch(K){G.e(K)}finally{G.f()}var I;E=E.valuesFromTopLeftCorner();H=B(E);try{for(H.s();!(I=H.n()).done;)if("number"!=typeof I.value)return new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.NumberExpected)}catch(K){H.e(K)}finally{H.f()}if(E.length!==z.length)return new f.CellError(f.ErrorType.NUM,n.ErrorMessage.EqualLength);I=E.length;H=0;if(0>E[0])return new f.CellError(f.ErrorType.NUM,n.ErrorMessage.ValueSmall); 1923for(G=0;G<I;G++){if(E[G]=Math.floor(E[G]),E[G]<E[0])return new f.CellError(f.ErrorType.NUM,n.ErrorMessage.ValueSmall);H+=z[G]/Math.pow(1+y,(E[G]-E[0])/365)}return H})}}],A(t.prototype,u),Object.defineProperty(t,"prototype",{writable:!1}),t}(g.FunctionPlugin);r.implementedFunctions={PMT:{method:"pmt",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER, 1924defaultValue:0}],returnNumberType:l.NumberType.NUMBER_CURRENCY},IPMT:{method:"ipmt",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:l.NumberType.NUMBER_CURRENCY},PPMT:{method:"ppmt",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}, 1925{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:l.NumberType.NUMBER_CURRENCY},FV:{method:"fv",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:l.NumberType.NUMBER_CURRENCY}, 1926CUMIPMT:{method:"cumipmt",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:1},{argumentType:g.ArgumentTypes.INTEGER,minValue:1},{argumentType:g.ArgumentTypes.INTEGER,minValue:0,maxValue:1}],returnNumberType:l.NumberType.NUMBER_CURRENCY},CUMPRINC:{method:"cumprinc",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER, 1927greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:1},{argumentType:g.ArgumentTypes.INTEGER,minValue:1},{argumentType:g.ArgumentTypes.INTEGER,minValue:0,maxValue:1}],returnNumberType:l.NumberType.NUMBER_CURRENCY},DB:{method:"db",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:0}, 1928{argumentType:g.ArgumentTypes.INTEGER,minValue:1,maxValue:12,defaultValue:12}],returnNumberType:l.NumberType.NUMBER_CURRENCY}
1928,DDB:{method:"ddb",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.INTEGER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0,defaultValue:2}],returnNumberType:l.NumberType.NUMBER_CURRENCY},DOLLARDE:{method:"dollarde",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 1929{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},DOLLARFR:{method:"dollarfr",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},EFFECT:{method:"effect",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}],returnNumberType:l.NumberType.NUMBER_PERCENT},ISPMT:{method:"ispmt",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}, 1930{argumentType:g.ArgumentTypes.NUMBER}]},NOMINAL:{method:"nominal",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}],returnNumberType:l.NumberType.NUMBER_PERCENT},NPER:{method:"nper",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}]},PV:{method:"pv",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 1931{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}],returnNumberType:l.NumberType.NUMBER_CURRENCY},RATE:{method:"rate",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER, 1932defaultValue:.1}],returnNumberType:l.NumberType.NUMBER_PERCENT},RRI:{method:"rri",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}],returnNumberType:l.NumberType.NUMBER_PERCENT},SLN:{method:"sln",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}],returnNumberType:l.NumberType.NUMBER_CURRENCY},SYD:{method:"syd",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 1933{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}],returnNumberType:l.NumberType.NUMBER_CURRENCY},TBILLEQ:{method:"tbilleq",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}],returnNumberType:l.NumberType.NUMBER_PERCENT},TBILLPRICE:{method:"tbillprice",parameters:[{argumentType:g.ArgumentTypes.NUMBER, 1934minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}],returnNumberType:l.NumberType.NUMBER_CURRENCY},TBILLYIELD:{method:"tbillyield",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}],returnNumberType:l.NumberType.NUMBER_PERCENT},FVSCHEDULE:{method:"fvschedule",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.RANGE}], 1935returnNumberType:l.NumberType.NUMBER_CURRENCY},NPV:{method:"npv",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1,returnNumberType:l.NumberType.NUMBER_CURRENCY},MIRR:{method:"mirr",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}],returnNumberType:l.NumberType.NUMBER_PERCENT},PDURATION:{method:"pduration",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}, 1936{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}]},XNPV:{method:"xnpv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:-1},{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]}}},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)} 1937function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}
1937function D(c,d){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function A(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1938[],function(){})),!0}catch(h){return!1}}();return function(){var h=x(c);if(d){var k=x(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!==F(h)&&"function"!=typeof h){if(void 0!==h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=this}return h}}function x(c){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 1939function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b);a.d(b,"FormulaTextPlugin",function(){return e});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=a(46);g=a(306);a=a(37);var e=function(c){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(n&&n.prototype, 1940{constructor:{value:f,writable:!0,configurable:!0}});Object.defineProperty(f,"prototype",{writable:!1});n&&D(f,n)}(d,c);var h,k=A(d);return h=[{key:"formulatext",value:function(f,n){var l=this;return this.runFunctionWithReferenceArgument(f.args,n,this.metadata("FORMULATEXT"),function(){return new q.CellError(q.ErrorType.NA,p.ErrorMessage.WrongArgNumber)},function(r){var m;return null!==(m=l.serialization.getCellFormula(r))&&void 0!==m?m:new q.CellError(q.ErrorType.NA,p.ErrorMessage.Formula)})}}], 1941B(d.prototype,h),Object.defineProperty(d,"prototype",{writable:!1}),d}(g.FunctionPlugin);e.implementedFunctions={FORMULATEXT:{method:"formulatext",parameters:[{argumentType:a.ArgumentTypes.NOERROR}],doesNotNeedArgumentsToBeComputed:!0,isDependentOnSheetStructureChange:!0,vectorizationForbidden:!0}}},function(g,b,a){function F(f){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&& 1942n!==Symbol.prototype?"symbol":typeof n})(f)}function B(f,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}function D(f,n){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,r){return l.__proto__=r,l})(f,n)}function A(f){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1943[],function(){})),!0}catch(l){return!1}}();return function(){var l=x(f);if(n){var r=x(this).constructor;l=Reflect.construct(l,arguments,r)}else l=l.apply(this,arguments);if(!l||"object"!==F(l)&&"function"!=typeof l){if(void 0!==l)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");l=this}return l}}function x(f){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 1944function(n){return n.__proto__||Object.getPrototypeOf(n)})(f)}a.r(b);a.d(b,"InformationPlugin",function(){return k});a(12);a(0);a(25);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=a(123),e=a(46),c=a(74),d=a(51),h=a(82);g=a(37);var k=function(f){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");return r.apply(this,arguments)}!function(m,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");m.prototype= 1945Object.create(t&&t.prototype,{constructor:{value:m,writable:!0,configurable:!0}});Object.defineProperty(m,"prototype",{writable:!1});t&&D(m,t)}(n,f);var l,r=A(n);return l=[{key:"isbinary",value:function(m,t){return this.runFunction(m.args,t,this.metadata("ISBINARY"),function(u){return/^[01]{1,10}$/.test(u)})}},{key:"iserr",value:function(m,t){return this.runFunction(m.args,t,this.metadata("ISERR"),function(u){return u instanceof q.CellError&&u.type!==q.ErrorType.NA})}},{key:"iserror",value:function(m, 1946t){return this.runFunction(m.args,t,this.metadata("ISERROR"),function(u){return u instanceof q.CellError})}},{key:"isformula",value:function(m,t){var u=this;return this.runFunctionWithReferenceArgument(m.args,t,this.metadata("ISFORMULA"),function(){return new q.CellError(q.ErrorType.NA,e.ErrorMessage.WrongArgNumber)},function(w){return u.dependencyGraph.addressMapping.getCell(w)instanceof p.FormulaVertex})}},{key:"isblank",value:function(m,t){return this.runFunction(m.args,t,this.metadata("ISBLANK"), 1947function(u){return u===d.EmptyValue})}},{key:"isna",value:function(m,t){return this.runFunction(m.args,t,this.metadata("ISNA"),function(u){return u instanceof q.CellError&&u.type==q.ErrorType.NA})}},{key:"isnumber",value:function(m,t){return this.runFunction(m.args,t,this.metadata("ISNUMBER"),d.isExtendedNumber)}},{key:"islogical",value:function(m,t){return this.runFunction(m.args,t,this.metadata("ISLOGICAL"),function(u){return"boolean"==typeof u})}},{key:"isref",value:function(m,t){return this.runFunction(m.args, 1948t,this.metadata("ISREF"),function(u){return u instanceof q.CellError&&(u.type==q.ErrorType.REF||u.type==q.ErrorType.CYCLE)})}},{key:"istext",value:function(m,t){return this.runFunction(m.args,t,this.metadata("ISTEXT"),function(u){return"string"==typeof u})}},{key:"isnontext",value:function(m,t){return this.runFunction(m.args,t,this.metadata("ISNONTEXT"),function(u){return"string"!=typeof u})}},{key:"column",value:function(m,t){return this.runFunctionWithReferenceArgument(m.args,t,this.metadata("COLUMN"), 1949function(){return t.formulaAddress.col+1},function(u){return u.col+1})}},{key:"columns",value:function(m,t){if(1!==m.args.length)return new q.CellError(q.ErrorType.NA,e.ErrorMessage.WrongArgNumber);if(m.args.some(function(u){return u.type===c.AstNodeType.EMPTY}))return new q.CellError(q.ErrorType.NUM,e.ErrorMessage.EmptyArg);for(m=m.args[0];m.type===c.AstNodeType.PARENTHESIS;)m=m.expression;if(m.type===c.AstNodeType.CELL_RANGE||m.type===c.AstNodeType.COLUMN_RANGE)return m.end.col-m.start.col+1;if(m.type=== 1950c.AstNodeType.CELL_REFERENCE)return 1;if(m.type===c.AstNodeType.ROW_RANGE)return this.config.maxColumns;t=this.evaluateAst(m,t);return t instanceof h.SimpleRangeValue?t.width():t instanceof q.CellError?t:1}},{key:"row",value:function(m,t){return this.runFunctionWithReferenceArgument(m.args,t,this.metadata("ROW"),function(){return t.formulaAddress.row+1},function(u){return u.row+1})}},{key:"rows",value:function(m,t){if(1!==m.args.length)return new q.CellError(q.ErrorType.NA,e.ErrorMessage.WrongArgNumber); 1951if(m.args.some(function(u){return u.type===c.AstNodeType.EMPTY}))return new q.CellError(q.ErrorType.NUM,e.ErrorMessage.EmptyArg);for(m=m.args[0];m.type===c.AstNodeType.PARENTHESIS;)m=m.expression;if(m.type===c.AstNodeType.CELL_RANGE||m.type===c.AstNodeType.ROW_RANGE)return m.end.row-m.start.row+1;if(m.type===c.AstNodeType.CELL_REFERENCE)return 1;if(m.type===c.AstNodeType.COLUMN_RANGE)return this.config.maxRows;t=this.evaluateAst(m,t);return t instanceof h.SimpleRangeValue?t.height():t instanceof q.CellError? 1952t:1}},{key:"index",value:function(m,t){return this.runFunction(m.args,t,this.metadata("INDEX"),function(u,w,v){var C,y,z,E,H,G;return 1>v||1>w?new q.CellError(q.ErrorType.VALUE,e.ErrorMessage.LessThanOne):v>u.width()||w>u.height()?new q.CellError(q.ErrorType.NUM,e.ErrorMessage.ValueLarge):null!==(G=null!==(z=null===(y=null===(C=null==u?void 0:u.data)||void 0===C?void 0:C[w-1])||void 0===y?void 0:y[v-1])&&void 0!==z?z:null===(H=null===(E=null==u?void 0:u.data)||void 0===E?void 0:E[0])||void 0===H? 1953void 0:H[0])&&void 0!==G?G:new q.CellError(q.ErrorType.VALUE,e.ErrorMessage.CellRangeExpected)})}},{key:"na",value:function(m,t){return new q.CellError(q.ErrorType.NA)}},{key:"sheet",value:function(m,t){var u=this;return this.runFunctionWithReferenceArgument(m.args,t,this.metadata("SHEET"),function(){return t.formulaAddress.sheet+1},function(w){return w.sheet+1}
1953,function(w){w=u.dependencyGraph.sheetMapping.get(w);return void 0!==w?w+1:new q.CellError(q.ErrorType.NA,e.ErrorMessage.SheetRef)})}},{key:"sheets", 1954value:function(m,t){var u=this;return this.runFunctionWithReferenceArgument(m.args,t,this.metadata("SHEETS"),function(){return u.dependencyGraph.sheetMapping.numberOfSheets()},function(){return 1},function(){return new q.CellError(q.ErrorType.VALUE,e.ErrorMessage.CellRefExpected)})}}],B(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),n}(g.FunctionPlugin);k.implementedFunctions={COLUMN:{method:"column",parameters:[{argumentType:g.ArgumentTypes.NOERROR,optional:!0}],isDependentOnSheetStructureChange:!0, 1955doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},COLUMNS:{method:"columns",parameters:[{argumentType:g.ArgumentTypes.RANGE}],isDependentOnSheetStructureChange:!0,doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},ISBINARY:{method:"isbinary",parameters:[{argumentType:g.ArgumentTypes.STRING}]},ISERR:{method:"iserr",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]},ISFORMULA:{method:"isformula",parameters:[{argumentType:g.ArgumentTypes.NOERROR}],doesNotNeedArgumentsToBeComputed:!0, 1956vectorizationForbidden:!0},ISNA:{method:"isna",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]},ISREF:{method:"isref",parameters:[{argumentType:g.ArgumentTypes.SCALAR}],vectorizationForbidden:!0},ISERROR:{method:"iserror",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]},ISBLANK:{method:"isblank",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]},ISNUMBER:{method:"isnumber",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]},ISLOGICAL:{method:"islogical",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]}, 1957ISTEXT:{method:"istext",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]},ISNONTEXT:{method:"isnontext",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]},INDEX:{method:"index",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},NA:{method:"na",parameters:[]},ROW:{method:"row",parameters:[{argumentType:g.ArgumentTypes.NOERROR,optional:!0}],isDependentOnSheetStructureChange:!0,doesNotNeedArgumentsToBeComputed:!0, 1958vectorizationForbidden:!0},ROWS:{method:"rows",parameters:[{argumentType:g.ArgumentTypes.RANGE}],isDependentOnSheetStructureChange:!0,doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},SHEET:{method:"sheet",parameters:[{argumentType:g.ArgumentTypes.STRING}],doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0},SHEETS:{method:"sheets",parameters:[{argumentType:g.ArgumentTypes.STRING}],doesNotNeedArgumentsToBeComputed:!0,vectorizationForbidden:!0}}},function(g,b,a){function F(p){return(F= 1959"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})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e= 1960function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined"); 1961if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"IsEvenPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)} 1962!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"iseven",value:function(h,k){return this.runFunction(h.args,k,this.metadata("ISEVEN"),function(f){return 0==f%2})}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin); 1963q.implementedFunctions={ISEVEN:{method:"iseven",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(p){return(F="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})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p, 1964d.key,d)}}
1964function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this, 1965arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"IsOddPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4); 1966g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"isodd",value:function(h,k){return this.runFunction(h.args, 1967k,this.metadata("ISODD"),function(f){return 1==f%2})}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions={ISODD:{method:"isodd",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(p){return(F="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})(p)}function B(p, 1968e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})), 1969!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__|| 1970Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"LogarithmPlugin",function(){return q});a(397);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}}); 1971Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"log10",value:function(h,k){return this.runFunction(h.args,k,this.metadata("LOG10"),Math.log10)}},{key:"log",value:function(h,k){return this.runFunction(h.args,k,this.metadata("LOG"),function(f,n){return Math.log(f)/Math.log(n)})}},{key:"ln",value:function(h,k){return this.runFunction(h.args,k,this.metadata("LN"),Math.log)}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin); 1972q.implementedFunctions={LOG10:{method:"log10",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},LOG:{method:"log",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:10,greaterThan:0}]},LN:{method:"ln",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(r){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor=== 1973Symbol&&m!==Symbol.prototype?"symbol":typeof m})(r)}function B(r,m){if(!(r=function(t){if(Array.isArray(t))return t}(r)||function(t,u){var w=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=w){var v,C=[],y=!0,z=!1;try{for(w=w.call(t);!(y=(v=w.next()).done)&&(C.push(v.value),!u||C.length!==u);y=!0);}catch(H){z=!0;var E=H}finally{try{y||null==w.return||w.return()}finally{if(z)throw E;}}return C}}(r,m)||function(t,u){if(t){if("string"==typeof t)return D(t,u);var w= 1974Object.prototype.toString.call(t).slice(8,-1);"Object"===w&&t.constructor&&(w=t.constructor.name);if("Map"===w||"Set"===w)return Array.from(t);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return D(t,u)}}
1974(r,m)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return r}function D(r,m){(null==m||m>r.length)&&(m=r.length);for(var t=0,u=Array(m);t<m;t++)u[t]=r[t];return u} 1975function A(r,m){for(var t=0;t<m.length;t++){var u=m[t];u.enumerable=u.enumerable||!1;u.configurable=!0;"value"in u&&(u.writable=!0);Object.defineProperty(r,u.key,u)}}function x(r,m){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,u){return t.__proto__=u,t})(r,m)}function q(r){var m=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1976[],function(){})),!0}catch(t){return!1}}();return function(){var t=p(r);if(m){var u=p(this).constructor;t=Reflect.construct(t,arguments,u)}else t=t.apply(this,arguments);if(!t||"object"!==F(t)&&"function"!=typeof t){if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");t=this}return t}}function p(r){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 1977function(m){return m.__proto__||Object.getPrototypeOf(m)})(r)}function e(r,m,t){return new c.ArraySize(1+(r.width-m)/t,1+(r.height-m)/t)}a.r(b);a.d(b,"MatrixPlugin",function(){return l});a(36);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);a(13);a(26);a(22);a(12);var c=a(132),d=a(24),h=a(46),k=a(74),f=a(198),n=a(82);g=a(37);var l=function(r){function m(){if(!(this instanceof m))throw new TypeError("Cannot call a class as a function");return u.apply(this,arguments)}!function(w,v){if("function"!=typeof v&& 1978null!==v)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(v&&v.prototype,{constructor:{value:w,writable:!0,configurable:!0}});Object.defineProperty(w,"prototype",{writable:!1});v&&x(w,v)}(m,r);var t,u=q(m);return t=[{key:"mmult",value:function(w,v){var C=this;return this.runFunction(w.args,v,this.metadata("MMULT"),function(y,z){if(!y.hasOnlyNumbers()||!z.hasOnlyNumbers())return new d.CellError(d.ErrorType.VALUE,h.ErrorMessage.NumberRange);if(z.height()!== 1979y.width())return new d.CellError(d.ErrorType.VALUE,h.ErrorMessage.ArrayDimensions);var E=new c.ArraySize(z.size.width,y.size.height);y=C.createKernel(function(H,G,I){for(var K=0,J=0;J<I;++J)K+=H[this.thread.y][J]*G[J][this.thread.x];return K},E)(y.rawNumbers(),z.rawNumbers(),y.width());return n.SimpleRangeValue.onlyNumbers(y)})}},{key:"mmultArraySize",value:function(w,v){var C=this;if(2!==w.args.length)return c.ArraySize.error();var y=this.metadata("MMULT");w=B(w.args.map(function(z){var E;return C.arraySizeForAst(z, 1980new f.InterpreterState(v.formulaAddress,v.arraysFlag||null!==(E=null==y?void 0:y.arrayFunction)&&void 0!==E&&E))}),2);return new c.ArraySize(w[1].width,w[0].height)}},{key:"maxpool",value:function(w,v){var C=this;return this.runFunction(w.args,v,this.metadata("MAXPOOL"),function(y,z){var E=2<arguments.length&&void 0!==arguments[2]?arguments[2]:z;if(!y.hasOnlyNumbers())return new d.CellError(d.ErrorType.VALUE,h.ErrorMessage.NumberRange);var H=e(y.size,z,E);E=C.createKernel(function(G,I,K){var J=this.thread.x* 1981K;K*=this.thread.y;for(var P=G[K][J],S=0;S<I;S++)for(var R=0;R<I;R++)P=Math.max(P,G[K+S][J+R]);return P},H)(y.rawNumbers(),z,E);return n.SimpleRangeValue.onlyNumbers(E)})}},{key:"medianpool",value:function(w,v){var C=this;return this.runFunction(w.args,v,this.metadata("MEDIANPOOL"),function(y,z){var E=2<arguments.length&&void 0!==arguments[2]?arguments[2]:z;if(!y.hasOnlyNumbers())return new d.CellError(d.ErrorType.VALUE,h.ErrorMessage.NumberRange);var H=e(y.size,z,E);E=C.createKernel(function(G,I, 1982K){var J=this.thread.x*K;K*=this.thread.y;for(var P=G[K][J],S=0;S<I;S++)for(var R=0;R<I;R++)P=Math.max(P,G[K+S][J+R]);R=G[K][J];for(S=0;S<I;S++)for(var O=0;O<I;O++)R=Math.min(R,G[K+S][J+O]);S=I*I;O=42;for(var N=0;32>N;N++){for(var Q=(R+P)/2,M=0,T=0;T<I;T++)for(var Z=0;Z<I;Z++)G[K+T][J+Z]>Q&&M++;if(0==I%2){if(M===S/2){O=Q;break}M>S/2?R=Q:P=Q}else{if(M===(S-1)/2){O=Q;break}M>(S-1)/2?R=Q:P=Q}}return O},H)(y.rawNumbers(),z,E);return n.SimpleRangeValue.onlyNumbers(E)})}},{key:"maxpoolArraySize",value:function(w, 1983v){var C=this;if(2>w.args.length||3<w.args.length)return c.ArraySize.error();var y=this.metadata("MAXPOOL"),z=w.args.map(function(G){var I;return C.arraySizeForAst(G,new f.InterpreterState(v.formulaAddress,v.arraysFlag||null!==(I=null==y?void 0:y.arrayFunction)&&void 0!==I&&I))})[0];var E=w.args[1];
1983var H=E=E.type===k.AstNodeType.NUMBER?E.value:1;3===w.args.length&&(w=w.args[2],H=w.type===k.AstNodeType.NUMBER?w.value:1);return E>z.width||E>z.height||H>E||0!=(z.width-E)%H||0!=(z.height-E)%H?c.ArraySize.error(): 1984e(z,E,H)}},{key:"medianpoolArraySize",value:function(w,v){return this.maxpoolArraySize(w,v)}},{key:"transpose",value:function(w,v){return this.runFunction(w.args,v,this.metadata("TRANSPOSE"),function(C){var y=C.rawData();C=C.size;for(var z=[],E=0;E<C.width;++E){z[E]=[];for(var H=0;H<C.height;++H)z[E][H]=y[H][E]}return n.SimpleRangeValue.onlyValues(z)})}},{key:"transposeArraySize",value:function(w,v){var C=this;if(1!==w.args.length)return c.ArraySize.error();var y=this.metadata("MMULT");w=B(w.args.map(function(z){var E; 1985return C.arraySizeForAst(z,new f.InterpreterState(v.formulaAddress,v.arraysFlag||null!==(E=null==y?void 0:y.arrayFunction)&&void 0!==E&&E))}),1)[0];return new c.ArraySize(w.height,w.width)}},{key:"createKernel",value:function(w,v){return function(){for(var C=[],y=arguments.length,z=Array(y),E=0;E<y;E++)z[E]=arguments[E];for(y=0;y<v.height;++y)for(C.push([]),E=0;E<v.width;++E)C[y][E]=w.apply({thread:{x:E,y:y}},z);return C}}}],A(m.prototype,t),Object.defineProperty(m,"prototype",{writable:!1}),m}(g.FunctionPlugin); 1986l.implementedFunctions={MMULT:{method:"mmult",arraySizeMethod:"mmultArraySize",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}],vectorizationForbidden:!0},TRANSPOSE:{method:"transpose",arraySizeMethod:"transposeArraySize",parameters:[{argumentType:g.ArgumentTypes.RANGE}],vectorizationForbidden:!0},MAXPOOL:{method:"maxpool",arraySizeMethod:"maxpoolArraySize",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER, 1987optionalArg:!0}],vectorizationForbidden:!0},MEDIANPOOL:{method:"medianpool",arraySizeMethod:"medianpoolArraySize",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0}],vectorizationForbidden:!0}}},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype? 1988"symbol":typeof d})(c)}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}function D(c,d){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function A(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 1989[],function(){})),!0}catch(h){return!1}}();return function(){var h=x(c);if(d){var k=x(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!==F(h)&&"function"!=typeof h){if(void 0!==h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=this}return h}}function x(c){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 1990function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b);a.d(b,"MedianPlugin",function(){return e});a(75);a(147);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=a(46);g=a(37);var e=function(c){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(n&&n.prototype, 1991{constructor:{value:f,writable:!0,configurable:!0}});Object.defineProperty(f,"prototype",{writable:!1});n&&D(f,n)}(d,c);var h,k=A(d);return h=[{key:"median",value:function(f,n){var l=this;return this.runFunction(f.args,n,this.metadata("MEDIAN"),function(){for(var r=arguments.length,m=Array(r),t=0;t<r;t++)m[t]=arguments[t];r=l.arithmeticHelper.coerceNumbersExactRanges(m);return r instanceof q.CellError?r:0===r.length?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.OneValue):(r.sort(function(u,w){return u- 1992w}),0==r.length%2?(r[r.length/2-1]+r[r.length/2])/2:r[Math.floor(r.length/2)])})}},{key:"large",value:function(f,n){var l=this;return this.runFunction(f.args,n,this.metadata("LARGE"),function(r,m){r=l.arithmeticHelper.manyToExactNumbers(r.valuesFromTopLeftCorner());
1992return r instanceof q.CellError?r:(r.sort(function(t,u){return t-u}),(m=Math.trunc(m))>r.length?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.ValueLarge):r[r.length-m])})}},{key:"small",value:function(f,n){var l=this;return this.runFunction(f.args, 1993n,this.metadata("SMALL"),function(r,m){r=l.arithmeticHelper.manyToExactNumbers(r.valuesFromTopLeftCorner());return r instanceof q.CellError?r:(r.sort(function(t,u){return t-u}),(m=Math.trunc(m))>r.length?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.ValueLarge):r[m-1])})}}],B(d.prototype,h),Object.defineProperty(d,"prototype",{writable:!1}),d}(g.FunctionPlugin);e.implementedFunctions={MEDIAN:{method:"median",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},LARGE:{method:"large", 1994parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},SMALL:{method:"small",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]}}},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d=0;d<c.length;d++){var h= 1995c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d= 1996x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=this}return d}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)}a.r(b); 1997a.d(b,"ModuloPlugin",function(){return p});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24);g=a(37);var p=function(e){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return h.apply(this,arguments)}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(f&&f.prototype,{constructor:{value:k,writable:!0,configurable:!0}});Object.defineProperty(k,"prototype", 1998{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c);return d=[{key:"mod",value:function(k,f){return this.runFunction(k.args,f,this.metadata("MOD"),function(n,l){return 0===l?new q.CellError(q.ErrorType.DIV_BY_ZERO):n%l})}}],B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(g.FunctionPlugin);p.implementedFunctions={MOD:{method:"mod",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(z){return(F="function"==typeof Symbol&& 1999"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})(z)}function B(z,E){var H="undefined"!=typeof Symbol&&z[Symbol.iterator]||z["@@iterator"];if(!H){if(Array.isArray(z)||(H=function(P,S){if(P){if("string"==typeof P)return D(P,S);var R=Object.prototype.toString.call(P).slice(8,-1);"Object"===R&&P.constructor&&(R=P.constructor.name);if("Map"===R||"Set"===R)return Array.from(P); 2000if("Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return D(P,S)}}(z))||E&&z&&"number"==typeof z.length){H&&(z=H);var G=0;E=function(){};return{s:E,n:function(){return G>=z.length?{done:!0}:{done:!1,value:z[G++]}},e:function(P){throw P;},f:E}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var I,K=!0,J=!1;return{s:function(){H=H.call(z)},n:function(){var P=H.next();return K= 2001P.done,P},e:function(P){J=!0;I=P},f:function(){try{K||null==H.return||H.return()}finally{if(J)throw I;}}}}function D(z,E){(null==E||E>z.length)&&(E=z.length);for(var H=0,G=Array(E);H<E;H++)G[H]=z[H];return G}function A(z,E){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,G){return H.__proto__=G,H})(z,E)}function x(z){var E=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 2002[],function(){})),!0}catch(H){return!1}}();return function(){var H=q(z);if(E){var G=q(this).constructor;H=Reflect.construct(H,arguments,G)}else H=H.apply(this,arguments);if(!H||"object"!==F(H)&&"function"!=typeof H){if(void 0!==H)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");H=this}return H}}function q(z){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 2003function(E){return E.__proto__||Object.getPrototypeOf(E)})(z)}function p(z,E){if(!(z instanceof E))throw new TypeError("Cannot call a class as a function");}function e(z,E){for(var H=0;H<E.length;H++){var G=E[H];G.enumerable=G.enumerable||!1;G.configurable=!0;"value"in G&&(G.writable=!0);Object.defineProperty(z,G.key,G)}}function c(z,E,H){return E&&e(z.prototype,E),H&&e(z,H),Object.defineProperty(z,"prototype",{writable:!1}),z}function d(z){return Object(u.isExtendedNumber)(z)&&!Number.isFinite(Object(u.getRawValue)(z))? 20040:z}function h(z){return Object(u.isExtendedNumber)(z)||z instanceof n.CellError?z:void 0}function k(z){return"boolean"==typeof z?Object(t.coerceBooleanToNumber)(z):Object(u.isExtendedNumber)(z)||z instanceof n.CellError?z:"string"==typeof z?0:void 0}a.r(b);a.d(b,"NumericAggregationPlugin",function(){return y});a(274);a(52);a(105);a(0);a(13);a(39);a(36);a(22);a(2);a(25);a(7);a(26);a(12);a(8);a(9);a(10);a(3);a(4);var f=a(91),n=a(24),l=a(46),r=a(40),m=a(74),t=a(113),u=a(51),w=a(82),v=a(37),C=function(){function z(E, 2005H,G){p(this,z);this.sumsq=E;this.sum=H;this.count=G}
2005return c(z,[{key:"compose",value:function(E){return new z(this.sumsq+E.sumsq,this.sum+E.sum,this.count+E.count)}},{key:"averageValue",value:function(){return 0<this.count?this.sum/this.count:void 0}},{key:"varSValue",value:function(){return 1<this.count?(this.sumsq-this.sum*this.sum/this.count)/(this.count-1):void 0}},{key:"varPValue",value:function(){return 0<this.count?(this.sumsq-this.sum*this.sum/this.count)/this.count:void 0}}],[{key:"single", 2006value:function(E){return new z(E*E,E,1)}}]),z}();C.empty=new C(0,0,0);var y=function(z){function E(){var G;return p(this,E),(G=H.apply(this,arguments)).addWithEpsilonRaw=function(I,K){return G.arithmeticHelper.addWithEpsilonRaw(I,K)},G}!function(G,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(I&&I.prototype,{constructor:{value:G,writable:!0,configurable:!0}});Object.defineProperty(G,"prototype",{writable:!1}); 2007I&&A(G,I)}(E,z);var H=x(E);return c(E,[{key:"sum",value:function(G,I){return this.doSum(G.args,I)}},{key:"sumsq",value:function(G,I){return this.reduce(G.args,I,0,"SUMSQ",this.addWithEpsilonRaw,function(K){return Math.pow(Object(u.getRawValue)(K),2)},h)}},{key:"max",value:function(G,I){return this.doMax(G.args,I)}},{key:"maxa",value:function(G,I){return d(this.reduce(G.args,I,Number.NEGATIVE_INFINITY,"MAXA",function(K,J){return Math.max(K,J)},u.getRawValue,k))}},{key:"min",value:function(G,I){return this.doMin(G.args, 2008I)}},{key:"mina",value:function(G,I){return d(this.reduce(G.args,I,Number.POSITIVE_INFINITY,"MINA",function(K,J){return Math.min(K,J)},u.getRawValue,k))}},{key:"count",value:function(G,I){return this.doCount(G.args,I)}},{key:"counta",value:function(G,I){return this.doCounta(G.args,I)}},{key:"average",value:function(G,I){return this.doAverage(G.args,I)}},{key:"averagea",value:function(G,I){var K;G=this.reduce(G.args,I,C.empty,"_AGGREGATE_A",function(J,P){return J.compose(P)},function(J){return C.single(Object(u.getRawValue)(J))}, 2009k);return G instanceof n.CellError?G:null!==(K=G.averageValue())&&void 0!==K?K:new n.CellError(n.ErrorType.DIV_BY_ZERO)}},{key:"vars",value:function(G,I){return this.doVarS(G.args,I)}},{key:"varp",value:function(G,I){return this.doVarP(G.args,I)}},{key:"vara",value:function(G,I){var K;G=this.reduceAggregateA(G.args,I);return G instanceof n.CellError?G:null!==(K=G.varSValue())&&void 0!==K?K:new n.CellError(n.ErrorType.DIV_BY_ZERO)}},{key:"varpa",value:function(G,I){var K;G=this.reduceAggregateA(G.args, 2010I);return G instanceof n.CellError?G:null!==(K=G.varPValue())&&void 0!==K?K:new n.CellError(n.ErrorType.DIV_BY_ZERO)}},{key:"stdevs",value:function(G,I){return this.doStdevS(G.args,I)}},{key:"stdevp",value:function(G,I){return this.doStdevP(G.args,I)}},{key:"stdeva",value:function(G,I){G=this.reduceAggregateA(G.args,I);if(G instanceof n.CellError)return G;G=G.varSValue();return void 0===G?new n.CellError(n.ErrorType.DIV_BY_ZERO):Math.sqrt(G)}},{key:"stdevpa",value:function(G,I){G=this.reduceAggregateA(G.args, 2011I);if(G instanceof n.CellError)return G;G=G.varPValue();return void 0===G?new n.CellError(n.ErrorType.DIV_BY_ZERO):Math.sqrt(G)}},{key:"product",value:function(G,I){return this.doProduct(G.args,I)}},{key:"subtotal",value:function(G,I){if(2>G.args.length)return new n.CellError(n.ErrorType.NA,l.ErrorMessage.WrongArgNumber);var K=this.coerceToType(this.evaluateAst(G.args[0],I),{argumentType:v.ArgumentTypes.NUMBER},I);G=G.args.slice(1);switch(K){case 1:case 101:return this.doAverage(G,I);case 2:case 102:return this.doCount(G, 2012I);case 3:case 103:return this.doCounta(G,I);case 4:case 104:return this.doMax(G,I);case 5:case 105:return this.doMin(G,I);case 6:case 106:return this.doProduct(G,I);case 7:case 107:return this.doStdevS(G,I);case 8:case 108:return this.doStdevP(G,I);case 9:case 109:return this.doSum(G,I);case 10:case 110:return this.doVarS(G,I);case 11:case 111:return this.doVarP(G,I);default:return new n.CellError(n.ErrorType.VALUE,l.ErrorMessage.BadMode)}}},{key:"reduceAggregate",value:function(G,I){return this.reduce(G, 2013I,C.empty,"_AGGREGATE",function(K,J){return K.compose(J)},function(K){return C.single(Object(u.getRawValue)(K))},h)}},{key:"reduceAggregateA",value:function(G,I){return this.reduce(G,I,C.empty,"_AGGREGATE_A",function(K,J){return K.compose(J)},function(K){return C.single(Object(u.getRawValue)(K))},k)}},{key:"doAverage",value:function(G,I){var K;G=this.reduceAggregate(G,I);return G instanceof n.CellError?G:null!==(K=G.averageValue())&&void 0!==K?K:new n.CellError(n.ErrorType.DIV_BY_ZERO)}},{key:"doVarS", 2014value:function(G,I){var K;G=this.reduceAggregate(G,I);return G instanceof n.CellError?G:null!==(K=G.varSValue())&&void 0!==K?K:new n.CellError(n.ErrorType.DIV_BY_ZERO)}},{key:"doVarP",value:function(G,I){var K;G=this.reduceAggregate(G,I);return G instanceof n.CellError?G:null!==(K=G.varPValue())&&void 0!==K?K:new n.CellError(n.ErrorType.DIV_BY_ZERO)}},{key:"doStdevS",value:function(G,I){G=this.reduceAggregate(G,I);if(G instanceof n.CellError)return G;G=G.varSValue();return void 0===G?new n.CellError(n.ErrorType.DIV_BY_ZERO): 2015Math.sqrt(G)}},{key:"doStdevP",value:function(G,I){G=this.reduceAggregate(G,I);if(G instanceof n.CellError)return G;G=G.varPValue();return void 0===G?new n.CellError(n.ErrorType.DIV_BY_ZERO):Math.sqrt(G)}},{key:"doCount",value:function(G,I){return this.reduce(G,I,0,"COUNT",function(K,J){return K+J},u.getRawValue,function(K){return Object(u.isExtendedNumber)(K)?1:0})}},{key:"doCounta",value:function(G,I){return this.reduce(G,I,0,"COUNTA",function(K,J){return K+J},u.getRawValue,function(K){return K=== 2016u.EmptyValue?0:1})}},{key:"doMax",value:function(G,I){return d(this.reduce(G,I,Number.NEGATIVE_INFINITY,"MAX",function(K,J){return Math.max(K,J)},u.getRawValue,h))}},{key:"doMin",value:function(G,I){return d(this.reduce(G,I,Number.POSITIVE_INFINITY,"MIN",function(K,J){return Math.min(K,J)},u.getRawValue,h))}},{key:"doSum",value:function(G,I){return this.reduce(G,I,0,"SUM",this.addWithEpsilonRaw,u.getRawValue,h)}},{key:"doProduct",value:function(G,I){return this.reduce(G,I,1,"PRODUCT",function(K,J){return K* 2017J},u.getRawValue,h)}},{key:"reduce",value:function(G,I,K,J,P,S,R){var O=this;return 1>G.length?new n.CellError(n.ErrorType.NA,l.ErrorMessage.WrongArgNumber):G.reduce(function(N,Q){if(N instanceof n.CellError)return N;if(Q.type===m.AstNodeType.CELL_RANGE||Q.type===m.AstNodeType.COLUMN_RANGE||Q.type===m.AstNodeType.ROW_RANGE)return Q=O.evaluateRange(Q,I,K,J,P,S,R),Q instanceof n.CellError?Q:P(Q,N);var M;if((M=O.evaluateAst(Q,I))instanceof w.SimpleRangeValue)return Array.from(M.valuesFromTopLeftCorner()).map(R).filter(function(T){return void 0!== 2018T}).map(function(T){return T instanceof n.CellError?T:S(T)}).reduce(function(T,Z){return T instanceof n.CellError?T:Z instanceof n.CellError?Z:P(T,Z)},N);if(Q.type===m.AstNodeType.CELL_REFERENCE){if(void 0===(M=R(M)))return N}else if(M=O.coerceScalarToNumberOrError(M),void 0===(M=R(M)))return N;return M instanceof n.CellError?M:P(N,S(M))},K)}},{key:"evaluateRange",value:function(G,I,K,J,P,S,R){try{var O=f.AbsoluteCellRange.fromAst(G,I.formulaAddress)}catch(N){if(N instanceof r.SheetsNotEqual)return new n.CellError(n.ErrorType.REF, 2019l.ErrorMessage.RangeManySheets);throw N;}G=this.dependencyGraph.getRange(O.start,O.end);if(void 0===G)throw Error("Range does not exists in graph");I=G.getFunctionValue(J);void 0===I&&(I=this.getRangeValues(J,O,S,R).reduce(function(N,Q){return N instanceof n.CellError?N:Q instanceof n.CellError?Q:P(N,Q)},K),G.setFunctionValue(J,I));return I}},{key:"getRangeValues",value:function(G,I,K,J){var P,S=[],R=this.dependencyGraph.rangeMapping.findSmallerRange(I),O=R.smallerRangeVertex;R=R.restRange;var N= 2020this.dependencyGraph.getRange(I.start,I.end);if(void 0!==O&&this.dependencyGraph.existsEdge(O,N)){G=O.getFunctionValue(G);if(void 0!==G)S.push(G);else{O=B(O.range.addresses(this.dependencyGraph));try{for(O.s();!(P=O.n()).done;){var Q=J(this.dependencyGraph.getScalarValue(P.value));
2020Q instanceof n.CellError?S.push(Q):void 0!==Q&&S.push(K(Q))}}catch(Z){O.e(Z)}finally{O.f()}}P=R}else P=I;var M;P=B(P.addresses(this.dependencyGraph));try{for(P.s();!(M=P.n()).done;){var T=J(this.dependencyGraph.getScalarValue(M.value)); 2021T instanceof n.CellError?S.push(T):void 0!==T&&S.push(K(T))}}catch(Z){P.e(Z)}finally{P.f()}return S}}]),E}(v.FunctionPlugin);y.implementedFunctions={SUM:{method:"sum",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},SUMSQ:{method:"sumsq",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},MAX:{method:"max",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},MIN:{method:"min",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},MAXA:{method:"maxa", 2022parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},MINA:{method:"mina",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},COUNT:{method:"count",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},COUNTA:{method:"counta",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},AVERAGE:{method:"average",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},AVERAGEA:{method:"averagea",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1}, 2023PRODUCT:{method:"product",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},"VAR.S":{method:"vars",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},"VAR.P":{method:"varp",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},VARA:{method:"vara",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},VARPA:{method:"varpa",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},"STDEV.S":{method:"stdevs",parameters:[{argumentType:v.ArgumentTypes.ANY}], 2024repeatLastArgs:1},"STDEV.P":{method:"stdevp",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},STDEVA:{method:"stdeva",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},STDEVPA:{method:"stdevpa",parameters:[{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1},SUBTOTAL:{method:"subtotal",parameters:[{argumentType:v.ArgumentTypes.NUMBER},{argumentType:v.ArgumentTypes.ANY}],repeatLastArgs:1}};y.aliases={VAR:"VAR.S",VARP:"VAR.P",STDEV:"STDEV.S",STDEVP:"STDEV.P",VARS:"VAR.S", 2025STDEVS:"STDEV.S"}},function(g,b,a){function F(p){return(F="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})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind(): 2026function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined"); 2027if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"PowerPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)} 2028!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"power",value:function(h,k){return this.runFunction(h.args,k,this.metadata("POWER"),Math.pow)}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions= 2029{POWER:{method:"power",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(p){return(F="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})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p, 2030d.key,d)}}
2030function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this, 2031arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"RadiansPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4); 2032g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"radians",value:function(h,k){return this.runFunction(h.args, 2033k,this.metadata("RADIANS"),function(f){return Math.PI/180*f})}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions={RADIANS:{method:"radians",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(n){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(n)} 2034function B(n,l){for(var r=0;r<l.length;r++){var m=l[r];m.enumerable=m.enumerable||!1;m.configurable=!0;"value"in m&&(m.writable=!0);Object.defineProperty(n,m.key,m)}}function D(n,l){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,m){return r.__proto__=m,r})(n,l)}function A(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 2035[],function(){})),!0}catch(r){return!1}}();return function(){var r=x(n);if(l){var m=x(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);if(!r||"object"!==F(r)&&"function"!=typeof r){if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");r=this}return r}}function x(n){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 2036function(l){return l.__proto__||Object.getPrototypeOf(l)})(n)}function q(n,l,r){l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".substr(0,l);l=new RegExp("^[".concat(l,"]+$"));if(!(n.length>r)&&l.test(n))return n}function p(n,l,r){if(n>-(-Math.pow(l,10)/2)-1)return new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueBaseLarge);if(n<-Math.pow(l,10)/2)return new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueBaseSmall);l=(n+(0>n?Math.pow(l,10):0)).toString(l).toUpperCase();return void 0===r||0>n?l:l.length> 2037r?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueBaseLong):Object(k.padLeft)(l,r)}function e(n,l,r){n=(n+(0>n?Math.pow(l,10):0)).toString(l).toUpperCase();return void 0!==r&&r>n.length?Object(k.padLeft)(n,r):n}function c(n,l){n=parseInt(n,l);l=Math.pow(l,10);return n>=l/2?n-l:n}a.r(b);a.d(b,"RadixConversionPlugin",function(){return f});a(101);a(12);a(69);a(0);a(25);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var d=a(24),h=a(46),k=a(299);g=a(37);var f=function(n){function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function"); 2038return m.apply(this,arguments)}!function(t,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(u&&u.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});u&&D(t,u)}(l,n);var r,m=A(l);return r=[{key:"dec2bin",value:function(t,u){return this.runFunction(t.args,u,this.metadata("DEC2BIN"),function(w,v){return p(w,2,v)})}},{key:"dec2oct",value:function(t,u){return this.runFunction(t.args, 2039u,this.metadata("DEC2OCT"),function(w,v){return p(w,8,v)})}},{key:"dec2hex",value:function(t,u){return this.runFunction(t.args,u,this.metadata("DEC2HEX"),function(w,v){return p(w,16,v)})}},{key:"bin2dec",value:function(t,u){return this.runFunction(t.args,u,this.metadata("BIN2DEC"),function(w){
2039w=q(w,2,10);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotBinary):c(w,2)})}},{key:"bin2oct",value:function(t,u){return this.runFunction(t.args,u,this.metadata("BIN2OCT"),function(w,v){w= 2040q(w,2,10);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotBinary):p(c(w,2),8,v)})}},{key:"bin2hex",value:function(t,u){return this.runFunction(t.args,u,this.metadata("BIN2HEX"),function(w,v){w=q(w,2,10);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotBinary):p(c(w,2),16,v)})}},{key:"oct2dec",value:function(t,u){return this.runFunction(t.args,u,this.metadata("OCT2DEC"),function(w){w=q(w,8,10);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotOctal): 2041c(w,8)})}},{key:"oct2bin",value:function(t,u){return this.runFunction(t.args,u,this.metadata("OCT2BIN"),function(w,v){w=q(w,8,10);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotOctal):p(c(w,8),2,v)})}},{key:"oct2hex",value:function(t,u){return this.runFunction(t.args,u,this.metadata("OCT2HEX"),function(w,v){w=q(w,8,10);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotOctal):p(c(w,8),16,v)})}},{key:"hex2dec",value:function(t,u){return this.runFunction(t.args, 2042u,this.metadata("HEX2DEC"),function(w){w=q(w,16,10);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotHex):c(w,16)})}},{key:"hex2bin",value:function(t,u){return this.runFunction(t.args,u,this.metadata("HEX2BIN"),function(w,v){w=q(w,16,10);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotHex):p(c(w,16),2,v)})}},{key:"hex2oct",value:function(t,u){return this.runFunction(t.args,u,this.metadata("HEX2OCT"),function(w,v){w=q(w,16,10);return void 0===w?new d.CellError(d.ErrorType.NUM, 2043h.ErrorMessage.NotHex):p(c(w,16),8,v)})}},{key:"base",value:function(t,u){return this.runFunction(t.args,u,this.metadata("BASE"),e)}},{key:"decimal",value:function(t,u){return this.runFunction(t.args,u,this.metadata("DECIMAL"),function(w,v){w=q(w,v,255);return void 0===w?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.NotHex):parseInt(w,v)})}}],B(l.prototype,r),Object.defineProperty(l,"prototype",{writable:!1}),l}(g.FunctionPlugin);f.implementedFunctions={DEC2BIN:{method:"dec2bin",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 2044{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:1,maxValue:10}]},DEC2OCT:{method:"dec2oct",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:1,maxValue:10}]},DEC2HEX:{method:"dec2hex",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:1,maxValue:10}]},BIN2DEC:{method:"bin2dec",parameters:[{argumentType:g.ArgumentTypes.STRING}]},BIN2OCT:{method:"bin2oct",parameters:[{argumentType:g.ArgumentTypes.STRING}, 2045{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},BIN2HEX:{method:"bin2hex",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},OCT2DEC:{method:"oct2dec",parameters:[{argumentType:g.ArgumentTypes.STRING}]},OCT2BIN:{method:"oct2bin",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},OCT2HEX:{method:"oct2hex",parameters:[{argumentType:g.ArgumentTypes.STRING}, 2046{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},HEX2DEC:{method:"hex2dec",parameters:[{argumentType:g.ArgumentTypes.STRING}]},HEX2BIN:{method:"hex2bin",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},HEX2OCT:{method:"hex2oct",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:10}]},DECIMAL:{method:"decimal",parameters:[{argumentType:g.ArgumentTypes.STRING}, 2047{argumentType:g.ArgumentTypes.NUMBER,minValue:2,maxValue:36}]},BASE:{method:"base",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:2,maxValue:36},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0,minValue:0,maxValue:255}]}}},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype? 2048"symbol":typeof d})(c)}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}
2048function D(c,d){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function A(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 2049[],function(){})),!0}catch(h){return!1}}();return function(){var h=x(c);if(d){var k=x(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!==F(h)&&"function"!=typeof h){if(void 0!==h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=this}return h}}function x(c){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 2050function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b);a.d(b,"RandomPlugin",function(){return e});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=a(46);g=a(37);var e=function(c){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(n&&n.prototype,{constructor:{value:f, 2051writable:!0,configurable:!0}});Object.defineProperty(f,"prototype",{writable:!1});n&&D(f,n)}(d,c);var h,k=A(d);return h=[{key:"rand",value:function(f,n){return this.runFunction(f.args,n,this.metadata("RAND"),Math.random)}},{key:"randbetween",value:function(f,n){return this.runFunction(f.args,n,this.metadata("RANDBETWEEN"),function(l,r){return r<l?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.WrongOrder):((l=Math.ceil(l))===(r=Math.floor(r)+1)&&(r+=1),l+Math.floor(Math.random()*(r-l)))})}}],B(d.prototype, 2052h),Object.defineProperty(d,"prototype",{writable:!1}),d}(g.FunctionPlugin);e.implementedFunctions={RAND:{method:"rand",parameters:[],isVolatile:!0},RANDBETWEEN:{method:"randbetween",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}],isVolatile:!0}}},function(g,b,a){function F(h){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype? 2053"symbol":typeof k})(h)}function B(h,k){for(var f=0;f<k.length;f++){var n=k[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(h,n.key,n)}}function D(h,k){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,n){return f.__proto__=n,f})(h,k)}function A(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 2054[],function(){})),!0}catch(f){return!1}}();return function(){var f=x(h);if(k){var n=x(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);if(!f||"object"!==F(f)&&"function"!=typeof f){if(void 0!==f)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=this}return f}}function x(h){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 2055function(k){return k.__proto__||Object.getPrototypeOf(k)})(h)}function q(h){h=Math.ceil(h);return 1==h%2?h:h+1}function p(h){h=Math.ceil(h);return 0==h%2?h:h+1}a.r(b);a.d(b,"findNextOddNumber",function(){return q});a.d(b,"findNextEvenNumber",function(){return p});a.d(b,"RoundingPlugin",function(){return d});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var e=a(24),c=a(46);g=a(37);var d=function(h){function k(){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function");return n.apply(this, 2056arguments)}!function(l,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,writable:!0,configurable:!0}});Object.defineProperty(l,"prototype",{writable:!1});r&&D(l,r)}(k,h);var f,n=A(k);
2056return f=[{key:"roundup",value:function(l,r){return this.runFunction(l.args,r,this.metadata("ROUNDDOWN"),function(m,t){t=Math.pow(10,t);return 0>m?-Math.ceil(-m*t)/t:Math.ceil(m*t)/t})}},{key:"rounddown", 2057value:function(l,r){return this.runFunction(l.args,r,this.metadata("ROUNDDOWN"),function(m,t){t=Math.pow(10,t);return 0>m?-Math.floor(-m*t)/t:Math.floor(m*t)/t})}},{key:"round",value:function(l,r){return this.runFunction(l.args,r,this.metadata("ROUND"),function(m,t){t=Math.pow(10,t);return 0>m?-Math.round(-m*t)/t:Math.round(m*t)/t})}},{key:"intFunc",value:function(l,r){return this.runFunction(l.args,r,this.metadata("INT"),function(m){return 0>m?-Math.floor(-m):Math.floor(m)})}},{key:"even",value:function(l, 2058r){return this.runFunction(l.args,r,this.metadata("EVEN"),function(m){return 0>m?-p(-m):p(m)})}},{key:"odd",value:function(l,r){return this.runFunction(l.args,r,this.metadata("ODD"),function(m){return 0>m?-q(-m):q(m)})}},{key:"ceilingmath",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CEILING.MATH"),function(m,t,u){return 0===t||0===m?0:(t=Math.abs(t),1===u&&0>m&&(t=-t),Math.ceil(m/t)*t)})}},{key:"ceiling",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CEILING"), 2059function(m,t){return 0===m?0:0===t?new e.CellError(e.ErrorType.DIV_BY_ZERO):0<m&&0>t?new e.CellError(e.ErrorType.NUM,c.ErrorMessage.DistinctSigns):Math.ceil(m/t)*t})}},{key:"ceilingprecise",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CEILING.PRECISE"),function(m,t){return 0===t||0===m?0:(t=Math.abs(t),Math.ceil(m/t)*t)})}},{key:"floormath",value:function(l,r){return this.runFunction(l.args,r,this.metadata("FLOOR.MATH"),function(m,t,u){return 0===t||0===m?0:(t=Math.abs(t),1=== 2060u&&0>m&&(t*=-1),Math.floor(m/t)*t)})}},{key:"floor",value:function(l,r){return this.runFunction(l.args,r,this.metadata("FLOOR"),function(m,t){return 0===m?0:0===t?new e.CellError(e.ErrorType.DIV_BY_ZERO):0<m&&0>t?new e.CellError(e.ErrorType.NUM,c.ErrorMessage.DistinctSigns):Math.floor(m/t)*t})}},{key:"floorprecise",value:function(l,r){return this.runFunction(l.args,r,this.metadata("FLOOR.PRECISE"),function(m,t){return 0===t||0===m?0:(t=Math.abs(t),Math.floor(m/t)*t)})}}],B(k.prototype,f),Object.defineProperty(k, 2061"prototype",{writable:!1}),k}(g.FunctionPlugin);d.implementedFunctions={ROUNDUP:{method:"roundup",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}]},ROUNDDOWN:{method:"rounddown",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}]},ROUND:{method:"round",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}]},INT:{method:"intFunc",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}, 2062EVEN:{method:"even",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ODD:{method:"odd",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},"CEILING.MATH":{method:"ceilingmath",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}]},CEILING:{method:"ceiling",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}]},"CEILING.PRECISE":{method:"ceilingprecise",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 2063{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},"FLOOR.MATH":{method:"floormath",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}]},FLOOR:{method:"floor",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}]},"FLOOR.PRECISE":{method:"floorprecise",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]}}; 2064d.aliases={"ISO.CEILING":"CEILING.PRECISE",TRUNC:"ROUNDDOWN"}},function(g,b,a){function F(p){return(F="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})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}
2064function D(p,e){return(D=Object.setPrototypeOf? 2065Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!== 2066c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"SqrtPlugin",function(){return q});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function"); 2067return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"sqrt",value:function(h,k){return this.runFunction(h.args,k,this.metadata("SQRT"),Math.sqrt)}}],B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}), 2068e}(g.FunctionPlugin);q.implementedFunctions={SQRT:{method:"sqrt",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}},function(g,b,a){function F(u){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(u)}function B(u,w){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,C){return v.__proto__=C,v})(u,w)}function D(u){var w= 2069function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(v){return!1}}();return function(){var v=A(u);if(w){var C=A(this).constructor;v=Reflect.construct(v,arguments,C)}else v=v.apply(this,arguments);if(!v||"object"!==F(v)&&"function"!=typeof v){if(void 0!==v)throw new TypeError("Derived constructors may only return object or undefined"); 2070if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");v=this}return v}}function A(u){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)})(u)}function x(u){var w;(w=function(v){if(Array.isArray(v))return q(v)}(u))||(w="undefined"!=typeof Symbol&&null!=u[Symbol.iterator]||null!=u["@@iterator"]?Array.from(u):void 0);if(!(u=w||function(v,C){if(v){if("string"==typeof v)return q(v,C);var y= 2071Object.prototype.toString.call(v).slice(8,-1);"Object"===y&&v.constructor&&(y=v.constructor.name);if("Map"===y||"Set"===y)return Array.from(v);if("Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return q(v,C)}}(u)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return u}function q(u,w){(null==w||w>u.length)&&(w=u.length);for(var v=0,C=Array(w);v<w;v++)C[v]=u[v];return C} 2072function p(u,w){if(!(u instanceof w))throw new TypeError("Cannot call a class as a function");}function e(u,w){for(var v=0;v<w.length;v++){var C=w[v];C.enumerable=C.enumerable||!1;C.configurable=!0;"value"in C&&(C.writable=!0);Object.defineProperty(u,C.key,C)}}function c(u,w,v){return w&&e(u.prototype,w),v&&e(u,v),Object.defineProperty(u,"prototype",{writable:!1}),u}function d(u){u=u.map(function(w){return"".concat(w.conditionRange.range.sheet,",").concat(w.conditionRange.range.start.col,",").concat(w.conditionRange.range.start.row)}); 2073return["SUMIF"].concat(x(u)).join(",")}function h(u){u=u.map(function(w){return"".concat(w.conditionRange.range.sheet,",").concat(w.conditionRange.range.start.col,",").concat(w.conditionRange.range.start.row)});return["AVERAGEIF"].concat(x(u)).join(",")}function k(u){u=u.map(function(w){return"".concat(w.conditionRange.range.sheet,",").concat(w.conditionRange.range.start.col,",").concat(w.conditionRange.range.start.row)});return["COUNTIFS"].concat(x(u)).join(",")}a.r(b);a.d(b,"SumifPlugin",function(){return t}); 2074a(36);a(18);a(76);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(22);a(13);a(26);a(12);a(25);a(7);var f=a(24),n=a(46),l=a(756),r=a(51);g=a(37);var m=function(){function u(w,v){p(this,u);this.sum=w;this.count=v}
2074return c(u,[{key:"compose",value:function(w){return new u(this.sum+w.sum,this.count+w.count)}},{key:"averageValue",value:function(){return 0<this.count?this.sum/this.count:void 0}}],[{key:"single",value:function(w){return new u(w,1)}}]),u}();m.empty=new m(0,0);var t=function(u){function w(){return p(this, 2075w),v.apply(this,arguments)}!function(C,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(y&&y.prototype,{constructor:{value:C,writable:!0,configurable:!0}});Object.defineProperty(C,"prototype",{writable:!1});y&&B(C,y)}(w,u);var v=D(w);return c(w,[{key:"sumif",value:function(C,y){var z=this;return this.runFunction(C.args,y,this.metadata("SUMIF"),function(E,H,G){H=z.interpreter.criterionBuilder.fromCellValue(H,z.arithmeticHelper); 2076return void 0===H?new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.BadCriterion):(G=null!=G?G:E,(new l.CriterionFunctionCompute(z.interpreter,d,0,function(I,K){return z.arithmeticHelper.nonstrictadd(I,K)},function(I){return Object(r.getRawValue)(I)})).compute(G,[new l.Condition(E,H)]))})}},{key:"sumifs",value:function(C,y){var z=this;return this.runFunction(C.args,y,this.metadata("SUMIFS"),function(E){for(var H=[],G=0;G<(1>=arguments.length?0:arguments.length-1);G+=2){var I=1>G+1||arguments.length<= 2077G+1?void 0:arguments[G+1],K=z.interpreter.criterionBuilder.fromCellValue(1>G+1+1||arguments.length<=G+1+1?void 0:arguments[G+1+1],z.arithmeticHelper);if(void 0===K)return new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.BadCriterion);H.push(new l.Condition(I,K))}return(new l.CriterionFunctionCompute(z.interpreter,d,0,function(J,P){return z.arithmeticHelper.nonstrictadd(J,P)},function(J){return Object(r.getRawValue)(J)})).compute(E,H)})}},{key:"averageif",value:function(C,y){var z=this;return this.runFunction(C.args, 2078y,this.metadata("AVERAGEIF"),function(E,H,G){H=z.interpreter.criterionBuilder.fromCellValue(H,z.arithmeticHelper);if(void 0===H)return new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.BadCriterion);G=null!=G?G:E;E=(new l.CriterionFunctionCompute(z.interpreter,h,m.empty,function(I,K){return I.compose(K)},function(I){return Object(r.isExtendedNumber)(I)?m.single(Object(r.getRawValue)(I)):m.empty})).compute(G,[new l.Condition(E,H)]);return E instanceof f.CellError?E:E.averageValue()||new f.CellError(f.ErrorType.DIV_BY_ZERO)})}}, 2079{key:"countif",value:function(C,y){var z=this;return this.runFunction(C.args,y,this.metadata("COUNTIF"),function(E,H){H=z.interpreter.criterionBuilder.fromCellValue(H,z.arithmeticHelper);return void 0===H?new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.BadCriterion):(new l.CriterionFunctionCompute(z.interpreter,function(){return"COUNTIF"},0,function(G,I){return G+I},function(){return 1})).compute(E,[new l.Condition(E,H)])})}},{key:"countifs",value:function(C,y){var z=this;return this.runFunction(C.args, 2080y,this.metadata("COUNTIFS"),function(){for(var E=[],H=0;H<arguments.length;H+=2){var G=0>H||arguments.length<=H?void 0:arguments[H],I=z.interpreter.criterionBuilder.fromCellValue(0>H+1||arguments.length<=H+1?void 0:arguments[H+1],z.arithmeticHelper);if(void 0===I)return new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.BadCriterion);E.push(new l.Condition(G,I))}return(new l.CriterionFunctionCompute(z.interpreter,k,0,function(K,J){return K+J},function(){return 1})).compute(E[0].conditionRange,E)})}}]), 2081w}(g.FunctionPlugin);t.implementedFunctions={SUMIF:{method:"sumif",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NOERROR},{argumentType:g.ArgumentTypes.RANGE,optionalArg:!0}]},COUNTIF:{method:"countif",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NOERROR}]},AVERAGEIF:{method:"averageif",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NOERROR},{argumentType:g.ArgumentTypes.RANGE,optionalArg:!0}]},SUMIFS:{method:"sumifs", 2082parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NOERROR}],repeatLastArgs:2},COUNTIFS:{method:"countifs",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NOERROR}],repeatLastArgs:2}}},function(g,b,a){function F(k){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype? 2083"symbol":typeof f})(k)}function B(k,f){var n="undefined"!=typeof Symbol&&k[Symbol.iterator]||k["@@iterator"];
2083if(!n){if(Array.isArray(k)||(n=function(u,w){if(u){if("string"==typeof u)return D(u,w);var v=Object.prototype.toString.call(u).slice(8,-1);"Object"===v&&u.constructor&&(v=u.constructor.name);if("Map"===v||"Set"===v)return Array.from(u);if("Arguments"===v||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return D(u,w)}}(k))||f&&k&&"number"==typeof k.length){n&&(k=n);var l=0;f=function(){}; 2084return{s:f,n:function(){return l>=k.length?{done:!0}:{done:!1,value:k[l++]}},e:function(u){throw u;},f:f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var r,m=!0,t=!1;return{s:function(){n=n.call(k)},n:function(){var u=n.next();return m=u.done,u},e:function(u){t=!0;r=u},f:function(){try{m||null==n.return||n.return()}finally{if(t)throw r;}}}}function D(k,f){(null==f||f>k.length)&&(f=k.length); 2085for(var n=0,l=Array(f);n<f;n++)l[n]=k[n];return l}function A(k,f){for(var n=0;n<f.length;n++){var l=f[n];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(k,l.key,l)}}function x(k,f){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(k,f)}function q(k){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 2086[],function(){})),!0}catch(n){return!1}}();return function(){var n=p(k);if(f){var l=p(this).constructor;n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);if(!n||"object"!==F(n)&&"function"!=typeof n){if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");n=this}return n}}function p(k){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 2087function(f){return f.__proto__||Object.getPrototypeOf(f)})(k)}a.r(b);a.d(b,"SumprodPlugin",function(){return h});a(36);a(25);a(0);a(7);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var e=a(24),c=a(46),d=a(51);g=a(37);var h=function(k){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");return l.apply(this,arguments)}!function(r,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function");r.prototype= 2088Object.create(m&&m.prototype,{constructor:{value:r,writable:!0,configurable:!0}});Object.defineProperty(r,"prototype",{writable:!1});m&&x(r,m)}(f,k);var n,l=q(f);return n=[{key:"sumproduct",value:function(r,m){var t=this;return this.runFunction(r.args,m,this.metadata("SUMPRODUCT"),function(){for(var u=arguments.length,w=Array(u),v=0;v<u;v++)w[v]=arguments[v];u=w[0].width();v=w[0].height();for(var C=0;C<w.length;C++){var y=w[C];if(y.width()!==u||y.height()!==v)return new e.CellError(e.ErrorType.VALUE, 2089c.ErrorMessage.EqualLength)}C=0;w=w.map(function(K){return K.iterateValuesFromTopLeftCorner()});for(y=0;y<u*v;y++){var z,E=1,H=B(w);try{for(H.s();!(z=H.n()).done;){var G=z.value.next().value;if(G instanceof e.CellError)return G;var I=t.coerceScalarToNumberOrError(G);Object(d.isExtendedNumber)(I)?E*=Object(d.getRawValue)(I):E=0}}catch(K){H.e(K)}finally{H.f()}C+=E}return C})}}],A(f.prototype,n),Object.defineProperty(f,"prototype",{writable:!1}),f}(g.FunctionPlugin);h.implementedFunctions={SUMPRODUCT:{method:"sumproduct", 2090parameters:[{argumentType:g.ArgumentTypes.RANGE}],repeatLastArgs:1}}},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}function D(c,d){return(D= 2091Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function A(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=x(c);if(d){var k=x(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!== 2092F(h)&&"function"!=typeof h){if(void 0!==h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=this}return h}}
2092function x(c){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b);a.d(b,"TextPlugin",function(){return e});a(18);a(12);a(64);a(67);a(433);a(13);a(101);a(69);a(25);a(0);a(7);a(8);a(9); 2093a(10);a(3);a(2);a(4);var q=a(24),p=a(46);g=a(37);var e=function(c){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,writable:!0,configurable:!0}});Object.defineProperty(f,"prototype",{writable:!1});n&&D(f,n)}(d,c);var h,k=A(d);return h=[{key:"concatenate", 2094value:function(f,n){return this.runFunction(f.args,n,this.metadata("CONCATENATE"),function(){return"".concat.apply("",arguments)})}},{key:"split",value:function(f,n){return this.runFunction(f.args,n,this.metadata("SPLIT"),function(l,r){l=l.split(" ");return r>=l.length||0>r?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.IndexBounds):l[r]})}},{key:"len",value:function(f,n){return this.runFunction(f.args,n,this.metadata("LEN"),function(l){return l.length})}},{key:"lower",value:function(f,n){return this.runFunction(f.args, 2095n,this.metadata("LOWER"),function(l){return l.toLowerCase()})}},{key:"trim",value:function(f,n){return this.runFunction(f.args,n,this.metadata("TRIM"),function(l){return l.replace(/^ +| +$/g,"").replace(/ +/g," ")})}},{key:"proper",value:function(f,n){return this.runFunction(f.args,n,this.metadata("PROPER"),function(l){return l.replace(/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
2095D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])+/g, 2096function(r){return r.charAt(0).toUpperCase()+r.substring(1).toLowerCase()})})}},{key:"clean",value:function(f,n){return this.runFunction(f.args,n,this.metadata("CLEAN"),function(l){return l.replace(/[\u0000-\u001F]/g,"")})}},{key:"exact",value:function(f,n){return this.runFunction(f.args,n,this.metadata("EXACT"),function(l,r){return l===r})}},{key:"rept",value:function(f,n){return this.runFunction(f.args,n,this.metadata("REPT"),function(l,r){return 0>r?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.NegativeCount): 2097l.repeat(r)})}},{key:"right",value:function(f,n){return this.runFunction(f.args,n,this.metadata("RIGHT"),function(l,r){return 0>r?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.NegativeLength):0===r?"":l.slice(-r)})}},{key:"left",value:function(f,n){return this.runFunction(f.args,n,this.metadata("LEFT"),function(l,r){return 0>r?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.NegativeLength):l.slice(0,r)})}},{key:"mid",value:function(f,n){return this.runFunction(f.args,n,this.metadata("MID"),function(l, 2098r,m){return 1>r?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.LessThanOne):0>m?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.NegativeLength):l.substring(r-1,r+m-1)})}},{key:"replace",value:function(f,n){return this.runFunction(f.args,n,this.metadata("REPLACE"),function(l,r,m,t){return 1>r?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.LessThanOne):0>m?new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.NegativeLength):l.substring(0,r-1)+t+l.substring(r+m-1)})}},{key:"search",value:function(f, 2099n){var l=this;return this.runFunction(f.args,n,this.metadata("SEARCH"),function(r,m,t){if(1>t||t>m.length)return new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.LengthBounds);var u;m=m.substring(t-1).toLowerCase();return u=l.arithmeticHelper.requiresRegex(r)?l.arithmeticHelper.searchString(r,m):m.indexOf(r.toLowerCase()),0<(u+=t)?u:new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.PatternNotFound)})}},{key:"substitute",value:function(f,n){return this.runFunction(f.args,n,this.metadata("SUBSTITUTE"), 2100function(l,r,m,t){var u=new RegExp(r,"g");if(void 0===t)return l.replace(u,m);if(1>t)return new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.LessThanOne);for(var w=0;null!==(r=u.exec(l));)if(t===++w)return l.substring(0,r.index)+m+l.substring(u.lastIndex);return l})}},{key:"find",value:function(f,n){return this.runFunction(f.args,n,this.metadata("FIND"),function(l,r,m){if(1>m||m>r.length)return new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.IndexBounds);l=r.substring(m-1).indexOf(l)+m;return 0< 2101l?l:new q.CellError(q.ErrorType.VALUE,p.ErrorMessage.PatternNotFound)})}},{key:"t",value:function(f,n){return this.runFunction(f.args,n,this.metadata("T"),function(l){return l instanceof q.CellError||"string"==typeof l?l:""})}},{key:"upper",value:function(f,n){return this.runFunction(f.args,n,this.metadata("UPPER"),function(l){return l.toUpperCase()})}}],B(d.prototype,h),Object.defineProperty(d,"prototype",{writable:!1}),d}(g.FunctionPlugin);e.implementedFunctions={CONCATENATE:{method:"concatenate", 2102parameters:[{argumentType:g.ArgumentTypes.STRING}],repeatLastArgs:1,expandRanges:!0},EXACT:{method:"exact",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.STRING}]},SPLIT:{method:"split",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER}]},LEN:{method:"len",parameters:[{argumentType:g.ArgumentTypes.STRING}]},LOWER:{method:"lower",parameters:[{argumentType:g.ArgumentTypes.STRING}]},MID:{method:"mid",parameters:[{argumentType:g.ArgumentTypes.STRING}, 2103{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}]},TRIM:{method:"trim",parameters:[{argumentType:g.ArgumentTypes.STRING}]},T:{method:"t",parameters:[{argumentType:g.ArgumentTypes.SCALAR}]},PROPER:{method:"proper",parameters:[{argumentType:g.ArgumentTypes.STRING}]},CLEAN:{method:"clean",parameters:[{argumentType:g.ArgumentTypes.STRING}]},REPT:{method:"rept",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER}]},RIGHT:{method:"right",parameters:[{argumentType:g.ArgumentTypes.STRING}, 2104{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},LEFT:{method:"left",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},REPLACE:{method:"replace",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.STRING}]},SEARCH:{method:"search",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER, 2105defaultValue:1}]},SUBSTITUTE:{method:"substitute",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0}]},FIND:{method:"find",parameters:[{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.STRING},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},UPPER:{method:"upper",parameters:[{argumentType:g.ArgumentTypes.STRING}]}}},function(g,b,a){a(28)({target:"String", 2106proto:!0},{repeat:a(301)})},function(g,b,a){function F(d){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}function B(d,h){for(var k=0;k<h.length;k++){var f=h[k];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(d,f.key,f)}}
2106function D(d,h){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind(): 2107function(k,f){return k.__proto__=f,k})(d,h)}function A(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k=x(d);if(h){var f=x(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments);if(!k||"object"!==F(k)&&"function"!=typeof k){if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined"); 2108if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");k=this}return k}}function x(d){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)})(d)}a.r(b);a.d(b,"TrigonometryPlugin",function(){return c});a(435);a(758);a(436);a(759);a(761);a(762);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=a(46);g=a(37);var e=a(307),c=function(d){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function"); 2109return f.apply(this,arguments)}!function(n,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,writable:!0,configurable:!0}});Object.defineProperty(n,"prototype",{writable:!1});l&&D(n,l)}(h,d);var k,f=A(h);return k=[{key:"acos",value:function(n,l){return this.runFunction(n.args,l,this.metadata("ACOS"),Math.acos)}},{key:"asin",value:function(n,l){return this.runFunction(n.args, 2110l,this.metadata("ASIN"),Math.asin)}},{key:"cos",value:function(n,l){return this.runFunction(n.args,l,this.metadata("COS"),Math.cos)}},{key:"sin",value:function(n,l){return this.runFunction(n.args,l,this.metadata("SIN"),Math.sin)}},{key:"tan",value:function(n,l){return this.runFunction(n.args,l,this.metadata("TAN"),Math.tan)}},{key:"atan",value:function(n,l){return this.runFunction(n.args,l,this.metadata("ATAN"),Math.atan)}},{key:"atan2",value:function(n,l){return this.runFunction(n.args,l,this.metadata("ATAN2"), 2111function(r,m){return 0===r&&0===m?new q.CellError(q.ErrorType.DIV_BY_ZERO):Math.atan2(m,r)})}},{key:"cot",value:function(n,l){return this.runFunction(n.args,l,this.metadata("COT"),function(r){return 0===r?new q.CellError(q.ErrorType.DIV_BY_ZERO):1/Math.tan(r)})}},{key:"acot",value:function(n,l){return this.runFunction(n.args,l,this.metadata("ACOT"),function(r){return 0===r?e.PI/2:Math.atan(1/r)})}},{key:"sec",value:function(n,l){return this.runFunction(n.args,l,this.metadata("SEC"),function(r){return 1/ 2112Math.cos(r)})}},{key:"csc",value:function(n,l){return this.runFunction(n.args,l,this.metadata("CSC"),function(r){return 0===r?new q.CellError(q.ErrorType.DIV_BY_ZERO):1/Math.sin(r)})}},{key:"sinh",value:function(n,l){return this.runFunction(n.args,l,this.metadata("SINH"),Math.sinh)}},{key:"asinh",value:function(n,l){return this.runFunction(n.args,l,this.metadata("ASINH"),Math.asinh)}},{key:"cosh",value:function(n,l){return this.runFunction(n.args,l,this.metadata("COSH"),Math.cosh)}},{key:"acosh", 2113value:function(n,l){return this.runFunction(n.args,l,this.metadata("ACOSH"),Math.acosh)}},{key:"tanh",value:function(n,l){return this.runFunction(n.args,l,this.metadata("TANH"),Math.tanh)}},{key:"atanh",value:function(n,l){return this.runFunction(n.args,l,this.metadata("ATANH"),Math.atanh)}},{key:"coth",value:function(n,l){return this.runFunction(n.args,l,this.metadata("COTH"),function(r){return 0===r?new q.CellError(q.ErrorType.DIV_BY_ZERO):1/Math.tanh(r)})}},{key:"acoth",value:function(n,l){return this.runFunction(n.args, 2114l,this.metadata("ACOTH"),function(r){return 0===r?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.NonZero):Math.atanh(1/r)})}},{key:"sech",value:function(n,l){return this.runFunction(n.args,l,this.metadata("SECH"),function(r){return 1/Math.cosh(r)})}},{key:"csch",value:function(n,l){return this.runFunction(n.args,l,this.metadata("CSCH"),function(r){return 0===r?new q.CellError(q.ErrorType.DIV_BY_ZERO):1/Math.sinh(r)})}}],B(h.prototype,k),Object.defineProperty(h,"prototype",{writable:!1}),h}(g.FunctionPlugin); 2115c.implementedFunctions={ACOS:{method:"acos",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ASIN:{method:"asin",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},COS:{method:"cos",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},SIN:{method:"sin",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},TAN:{method:"tan",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ATAN:{method:"atan",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ATAN2:{method:"atan2",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 2116{argumentType:g.ArgumentTypes.NUMBER}]},COT:{method:"cot",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},SEC:{method:"sec",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},CSC:{method:"csc",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},SINH:{method:"sinh",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},COSH:{method:"cosh",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},TANH:{method:"tanh",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},COTH:{method:"coth",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}, 2117SECH:{method:"sech",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},CSCH:{method:"csch",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ACOT:{method:"acot",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ASINH:{method:"asinh",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ACOSH:{method:"acosh",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ATANH:{method:"atanh",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},ACOTH:{method:"acoth",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]}}}, 2118function(g,b,a){g=a(28);b=a(38);var F=a(308),B=Math.abs,D=Math.exp,A=Math.E;g({target:"Math",stat:!0,forced:b(function(){return-2E-17!=Math.sinh(-2E-17)})},{sinh:function(x){x=+x;return 1>B(x)?(F(x)-F(-x))/2:(D(x-1)-D(-x-1))*(A/2)}})},function(g,b,a){g=a(28);var F=a(308);a=Math.cosh;var B=Math.abs,D=Math.E;g({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(A){A=F(B(A)-1)+1;return D/2*(A+1/(A*D*D))}})},function(g,b,a){function F(n){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator? 2119function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(n)}function B(n,l){for(var r=0;r<l.length;r++){var m=l[r];m.enumerable=m.enumerable||!1;m.configurable=!0;"value"in m&&(m.writable=!0);Object.defineProperty(n,m.key,m)}}
2119function D(n,l){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,m){return r.__proto__=m,r})(n,l)}function A(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct|| 2120Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r=x(n);if(l){var m=x(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);if(!r||"object"!==F(r)&&"function"!=typeof r){if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2121r=this}return r}}function x(n){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)})(n)}a.r(b);a.d(b,"LookupPlugin",function(){return f});a(146);a(0);a(36);a(25);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(91),p=a(24),e=a(46),c=a(763),d=a(133),h=a(113),k=a(82);g=a(37);var f=function(n){function l(){var t;if(!(this instanceof l))throw new TypeError("Cannot call a class as a function");return(t=m.apply(this,arguments)).rowSearch=new c.RowSearchStrategy(t.config, 2122t.dependencyGraph),t}!function(t,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(u&&u.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});u&&D(t,u)}(l,n);var r,m=A(l);return r=[{key:"vlookup",value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("VLOOKUP"),function(v,C,y,z){var E=C.range;return void 0===E?new p.CellError(p.ErrorType.VALUE, 2123e.ErrorMessage.WrongType):1>y?new p.CellError(p.ErrorType.VALUE,e.ErrorMessage.LessThanOne):y>E.width()?new p.CellError(p.ErrorType.REF,e.ErrorMessage.IndexLarge):w.doVlookup(Object(h.zeroIfEmpty)(v),C,y-1,z)})}},{key:"hlookup",value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("HLOOKUP"),function(v,C,y,z){var E=C.range;return void 0===E?new p.CellError(p.ErrorType.VALUE,e.ErrorMessage.WrongType):1>y?new p.CellError(p.ErrorType.VALUE,e.ErrorMessage.LessThanOne):y>E.height()? 2124new p.CellError(p.ErrorType.REF,e.ErrorMessage.IndexLarge):w.doHlookup(Object(h.zeroIfEmpty)(v),C,y-1,z)})}},{key:"match",value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("MATCH"),function(v,C,y){return w.doMatch(Object(h.zeroIfEmpty)(v),C,y)})}},{key:"searchInRange",value:function(t,u,w,v){return!w&&"string"==typeof t&&this.arithmeticHelper.requiresRegex(t)?v.advancedFind(this.arithmeticHelper.eqMatcherFunction(t),u):v.find(t,u,w)}},{key:"doVlookup",value:function(t, 2125u,w,v){this.dependencyGraph.stats.start(d.StatType.VLOOKUP);var C=u.range;var y=void 0===C?k.SimpleRangeValue.onlyValues(u.data.map(function(z){return[z[0]]})):k.SimpleRangeValue.onlyRange(q.AbsoluteCellRange.spanFrom(C.start,1,C.height()),this.dependencyGraph);t=this.searchInRange(t,y,v,this.columnSearch);if(this.dependencyGraph.stats.end(d.StatType.VLOOKUP),-1===t)return new p.CellError(p.ErrorType.NA,e.ErrorMessage.ValueNotFound);void 0===C?u=u.data[t][w]:(u=Object(p.simpleCellAddress)(C.sheet, 2126C.start.col+w,C.start.row+t),u=this.dependencyGraph.getCellValue(u));return u instanceof k.SimpleRangeValue?new p.CellError(p.ErrorType.VALUE,e.ErrorMessage.WrongType):u}},{key:"doHlookup",value:function(t,u,w,v){var C=u.range;var y=void 0===C?k.SimpleRangeValue.onlyValues([u.data[0]]):k.SimpleRangeValue.onlyRange(q.AbsoluteCellRange.spanFrom(C.start,C.width(),1),this.dependencyGraph);t=this.searchInRange(t,y,v,this.rowSearch);if(-1===t)return new p.CellError(p.ErrorType.NA,e.ErrorMessage.ValueNotFound); 2127void 0===C?u=u.data[w][t]:(u=Object(p.simpleCellAddress)(C.sheet,C.start.col+t,C.start.row+w),u=this.dependencyGraph.getCellValue(u));return u instanceof k.SimpleRangeValue?new p.CellError(p.ErrorType.VALUE,e.ErrorMessage.WrongType):u}},{key:"doMatch",value:function(t,u,w){if(1<u.width()&&1<u.height())return new p.CellError(p.ErrorType.NA);if(1===u.width())return t=this.columnSearch.find(t,u,0!==w),-1===t?new p.CellError(p.ErrorType.NA,e.ErrorMessage.ValueNotFound):t+1;t=this.rowSearch.find(t,u,0!== 2128w);return-1===t?new p.CellError(p.ErrorType.NA,e.ErrorMessage.ValueNotFound):t+1}}],B(l.prototype,r),Object.defineProperty(l,"prototype",{writable:!1}),l}(g.FunctionPlugin);f.implementedFunctions={VLOOKUP:{method:"vlookup",parameters:[{argumentType:g.ArgumentTypes.NOERROR},{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.BOOLEAN,defaultValue:!0}]},HLOOKUP:{method:"hlookup",parameters:[{argumentType:g.ArgumentTypes.NOERROR},{argumentType:g.ArgumentTypes.RANGE}, 2129{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.BOOLEAN,defaultValue:!0}]},MATCH:{method:"match",parameters:[{argumentType:g.ArgumentTypes.NOERROR},{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]}}},function(g,b,a){function F(k){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(k)} 2130function B(k,f){for(var n=0;n<f.length;n++){var l=f[n];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(k,l.key,l)}}
2130function D(k,f){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n})(k,f)}function A(k){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 2131[],function(){})),!0}catch(n){return!1}}();return function(){var n=x(k);if(f){var l=x(this).constructor;n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);if(!n||"object"!==F(n)&&"function"!=typeof n){if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");n=this}return n}}function x(k){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind(): 2132function(f){return f.__proto__||Object.getPrototypeOf(f)})(k)}function q(k){for(var f=arguments.length,n=Array(1<f?f-1:0),l=1;l<f;l++)n[l-1]=arguments[l];for(f=0;f<n.length;f++)if(l=n[f],k.input.startsWith(l.token)){k.input=k.input.slice(l.token.length);k.acc+=l.val;break}}function p(k,f,n,l){k.val>=n&&k.val<l&&(k.val-=n,k.acc+=f)}a.r(b);a.d(b,"RomanPlugin",function(){return h});a(147);a(118);a(122);a(13);a(433);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var e=a(24),c=a(46),d=a(51);g=a(37);var h= 2133function(k){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");return l.apply(this,arguments)}!function(r,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(m&&m.prototype,{constructor:{value:r,writable:!0,configurable:!0}});Object.defineProperty(r,"prototype",{writable:!1});m&&D(r,m)}(f,k);var n,l=A(f);return n=[{key:"roman",value:function(r,m){var t=this;return this.runFunction(r.args, 2134m,this.metadata("ROMAN"),function(u,w){u=Math.trunc(u);!1===w?w=4:!0===w&&(w=0);(w=Object(d.getRawValue)(t.coerceScalarToNumberOrError(w)))instanceof e.CellError?u=w:0>(w=Math.trunc(w))?u=new e.CellError(e.ErrorType.VALUE,c.ErrorMessage.ValueSmall):4<w?u=new e.CellError(e.ErrorType.VALUE,c.ErrorMessage.ValueLarge):(u={val:u%1E3,acc:"M".repeat(Math.floor(u/1E3))},u=(4===w&&(p(u,"IM",999,1E3),p(u,"ID",499,500)),3<=w&&(p(u,"VM",995,1E3),p(u,"VD",495,500)),2<=w&&(p(u,"XM",990,1E3),p(u,"XD",490,500)), 21351<=w&&(p(u,"LM",950,1E3),p(u,"LD",450,500)),p(u,"CM",900,1E3),p(u,"CD",400,500),p(u,"D",500,900),u.acc+="C".repeat(Math.floor(u.val/100)),u.val%=100,2<=w&&(p(u,"IC",99,100),p(u,"IL",49,50)),1<=w&&(p(u,"VC",95,100),p(u,"VL",45,50)),p(u,"XC",90,100),p(u,"XL",40,50),p(u,"L",50,90),u.acc+="X".repeat(Math.floor(u.val/10)),u.val%=10,p(u,"IX",9,10),p(u,"IV",4,5),p(u,"V",5,9),u.acc+="I".repeat(u.val),u.acc));return u})}},{key:"arabic",value:function(r,m){return this.runFunction(r.args,m,this.metadata("ARABIC"), 2136function(t){var u=!1;if((t=t.trim().toUpperCase()).startsWith("-")&&(u=!0,""===(t=t.slice(1))))return new e.CellError(e.ErrorType.VALUE,c.ErrorMessage.InvalidRoman);t={input:t,acc:0};return q(t,{token:"MMM",val:3E3},{token:"MM",val:2E3},{token:"M",val:1E3}),q(t,{token:"IM",val:999},{token:"VM",val:995},{token:"XM",val:990},{token:"LM",val:950},{token:"CM",val:900}),q(t,{token:"D",val:500},{token:"ID",val:499},{token:"VD",val:495},{token:"XD",val:490},{token:"LD",val:450},{token:"CD",val:400}),q(t, 2137{token:"CCC",val:300},{token:"CC",val:200},{token:"C",val:100}),q(t,{token:"IC",val:99},{token:"VC",val:95},{token:"XC",val:90}),q(t,{token:"L",val:50},{token:"IL",val:49},{token:"VL",val:45},{token:"XL",val:40}),q(t,{token:"XXX",val:30},{token:"XX",val:20},{token:"X",val:10}),q(t,{token:"IX",val:9}),q(t,{token:"V",val:5},{token:"IV",val:4}),q(t,{token:"III",val:3},{token:"II",val:2},{token:"I",val:1}),""!==t.input?new e.CellError(e.ErrorType.VALUE,c.ErrorMessage.InvalidRoman):u?-t.acc:t.acc})}}], 2138B(f.prototype,n),Object.defineProperty(f,"prototype",{writable:!1}),f}(g.FunctionPlugin);h.implementedFunctions={ROMAN:{method:"roman",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:1,lessThan:4E3},{argumentType:g.ArgumentTypes.NOERROR,optionalArg:!0,defaultValue:0}]},ARABIC:{method:"arabic",parameters:[{argumentType:g.ArgumentTypes.STRING}]}}},function(g,b,a){function F(p){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&& 2139"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(p)}function B(p,e){for(var c=0;c<e.length;c++){var d=e[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(p,d.key,d)}}
2139function D(p,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c})(p,e)}function A(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"== 2140typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=x(p);if(e){var d=x(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);if(!c||"object"!==F(c)&&"function"!=typeof c){if(void 0!==c)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2141c=this}return c}}function x(p){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(p)}a.r(b);a.d(b,"SimpleArithmerticPlugin",function(){return q});a(18);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);g=a(37);var q=function(p){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");return d.apply(this,arguments)}!function(h,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function"); 2142h.prototype=Object.create(k&&k.prototype,{constructor:{value:h,writable:!0,configurable:!0}});Object.defineProperty(h,"prototype",{writable:!1});k&&D(h,k)}(e,p);var c,d=A(e);return c=[{key:"add",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.ADD"),this.arithmeticHelper.addWithEpsilon)}},{key:"concat",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.CONCAT"),this.arithmeticHelper.concat)}},{key:"divide",value:function(h,k){return this.runFunction(h.args, 2143k,this.metadata("HF.DIVIDE"),this.arithmeticHelper.divide)}},{key:"eq",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.EQ"),this.arithmeticHelper.eq)}},{key:"gt",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.GT"),this.arithmeticHelper.gt)}},{key:"gte",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.GTE"),this.arithmeticHelper.geq)}},{key:"lt",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.LT"),this.arithmeticHelper.lt)}}, 2144{key:"lte",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.LTE"),this.arithmeticHelper.leq)}},{key:"minus",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.MINUS"),this.arithmeticHelper.subtract)}},{key:"multiply",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.MULTIPLY"),this.arithmeticHelper.multiply)}},{key:"ne",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.NE"),this.arithmeticHelper.neq)}},{key:"pow", 2145value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.POW"),this.arithmeticHelper.pow)}},{key:"uminus",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.UMINUS"),this.arithmeticHelper.unaryMinus)}},{key:"upercent",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.UNARY_PERCENT"),this.arithmeticHelper.unaryPercent)}},{key:"uplus",value:function(h,k){return this.runFunction(h.args,k,this.metadata("HF.UPLUS"),this.arithmeticHelper.unaryPlus)}}], 2146B(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(g.FunctionPlugin);q.implementedFunctions={"HF.ADD":{method:"add",parameters:[{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.CONCAT":{method:"concat",parameters:[{argumentType:g.ArgumentTypes.STRING,passSubtype:!0},{argumentType:g.ArgumentTypes.STRING,passSubtype:!0}]},"HF.DIVIDE":{method:"divide",parameters:[{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:g.ArgumentTypes.NUMBER, 2147passSubtype:!0}]},"HF.EQ":{method:"eq",parameters:[{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.GT":{method:"gt",parameters:[{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.GTE":{method:"gte",parameters:[{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.LT":{method:"lt",parameters:[{argumentType:g.ArgumentTypes.NOERROR, 2148passSubtype:!0},{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.LTE":{method:"lte",parameters:[{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.MINUS":{method:"minus",parameters:[{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.MULTIPLY":{method:"multiply",parameters:[{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0}]}, 2149"HF.NE":{method:"ne",parameters:[{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0},{argumentType:g.ArgumentTypes.NOERROR,passSubtype:!0}]},"HF.POW":{method:"pow",parameters:[{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0},{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.UMINUS":{method:"uminus",parameters:[{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.UNARY_PERCENT":{method:"upercent",parameters:[{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0}]},"HF.UPLUS":{method:"uplus", 2150parameters:[{argumentType:g.ArgumentTypes.NUMBER,passSubtype:!0}]}}},function(g,b,a){function F(h){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(h)}function B(h,k){for(var f=0;f<k.length;f++){var n=k[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(h,n.key,n)}}function D(h,k){return(D=
2151Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,n){return f.__proto__=n,f})(h,k)}function A(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=x(h);if(k){var n=x(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);if(!f||"object"!== 2152F(f)&&"function"!=typeof f){if(void 0!==f)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=this}return f}}function x(h){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)})(h)}a.r(b);a.d(b,"StatisticalPlugin",function(){return d});a(147);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p= 2153a(46),e=a(764),c=a(441);g=a(37);var d=function(h){function k(){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function");return n.apply(this,arguments)}!function(l,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,writable:!0,configurable:!0}});Object.defineProperty(l,"prototype",{writable:!1});r&&D(l,r)}(k,h);var f,n=A(k);return f=[{key:"erf",value:function(l, 2154r){return this.runFunction(l.args,r,this.metadata("ERF"),function(m,t){return void 0===t?Object(c.erf)(m):Object(c.erf)(t)-Object(c.erf)(m)})}},{key:"erfc",value:function(l,r){return this.runFunction(l.args,r,this.metadata("ERFC"),c.erfc)}},{key:"expondist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("EXPON.DIST"),function(m,t,u){return u?c.exponential.cdf(m,t):c.exponential.pdf(m,t)})}},{key:"fisher",value:function(l,r){return this.runFunction(l.args,r,this.metadata("FISHER"), 2155function(m){return Math.log((1+m)/(1-m))/2})}},{key:"fisherinv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("FISHERINV"),function(m){return 1-2/(Math.exp(2*m)+1)})}},{key:"gamma",value:function(l,r){return this.runFunction(l.args,r,this.metadata("GAMMA"),c.gammafn)}},{key:"gammadist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("GAMMA.DIST"),function(m,t,u,w){return w?c.gamma.cdf(m,t,u):c.gamma.pdf(m,t,u)})}},{key:"gammaln",value:function(l,r){return this.runFunction(l.args, 2156r,this.metadata("GAMMALN"),c.gammaln)}},{key:"gammainv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("GAMMA.INV"),c.gamma.inv)}},{key:"gauss",value:function(l,r){return this.runFunction(l.args,r,this.metadata("GAUSS"),function(m){return c.normal.cdf(m,0,1)-.5})}},{key:"betadist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("BETA.DIST"),function(m,t,u,w,v,C){return m<=v?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.ValueSmall):m>=C?new q.CellError(q.ErrorType.NUM, 2157p.ErrorMessage.ValueLarge):(m=(m-v)/(C-v),w?c.beta.cdf(m,t,u):c.beta.pdf(m,t,u))})}},{key:"betainv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("BETA.INV"),function(m,t,u,w,v){return w>=v?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.WrongOrder):c.beta.inv(m,t,u)*(v-w)+w})}},{key:"binomialdist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("BINOM.DIST"),function(m,t,u,w){return m>t?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.WrongOrder):(m=Math.trunc(m), 2158t=Math.trunc(t),w?c.binomial.cdf(m,t,u):c.binomial.pdf(m,t,u))})}},{key:"binomialinv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("BINOM.INV"),function(m,t,u){for(var w=-1,v=m=Math.trunc(m);v>w+1;){var C=Math.trunc((w+v)/2);c.binomial.cdf(C,m,t)>=u?v=C:w=C}return v})}},{key:"besselifn",value:function(l,r){return this.runFunction(l.args,r,this.metadata("BESSELI"),function(m,t){return Object(e.besseli)(m,Math.trunc(t))})}},{key:"besseljfn",value:function(l,r){return this.runFunction(l.args, 2159r,this.metadata("BESSELJ"),function(m,t){return Object(e.besselj)(m,Math.trunc(t))})}},{key:"besselkfn",value:function(l,r){return this.runFunction(l.args,r,this.metadata("BESSELK"),function(m,t){return Object(e.besselk)(m,Math.trunc(t))})}},{key:"besselyfn",value:function(l,r){return this.runFunction(l.args,r,this.metadata("BESSELY"),function(m,t){return Object(e.bessely)(m,Math.trunc(t))})}},{key:"chisqdist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CHISQ.DIST"),function(m, 2160t,u){return t=Math.trunc(t),u?c.chisquare.cdf(m,t):c.chisquare.pdf(m,t)})}},{key:"chisqdistrt",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CHISQ.DIST.RT"),function(m,t){return 1-c.chisquare.cdf(m,Math.trunc(t))})}},{key:"chisqinv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CHISQ.INV"),function(m,t){return c.chisquare.inv(m,Math.trunc(t))})}},{key:"chisqinvrt",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CHISQ.INV.RT"),function(m, 2161t){return c.chisquare.inv(1-m,Math.trunc(t))})}},{key:"fdist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("F.DIST"),function(m,t,u,w){return t=Math.trunc(t),u=Math.trunc(u),w?c.centralF.cdf(m,t,u):c.centralF.pdf(m,t,u)})}},{key:"fdistrt",value:function(l,r){return this.runFunction(l.args,r,this.metadata("F.DIST.RT"),function(m,t,u){return 1-c.centralF.cdf(m,Math.trunc(t),Math.trunc(u))})}},{key:"finv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("F.INV"), 2162function(m,t,u){return c.centralF.inv(m,Math.trunc(t),Math.trunc(u))})}},{key:"finvrt",value:function(l,r){return this.runFunction(l.args,r,this.metadata("F.INV.RT"),function(m,t,u){return c.centralF.inv(1-m,Math.trunc(t),Math.trunc(u))})}},{key:"weibulldist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("WEIBULL.DIST"),function(m,t,u,w){return w?c.weibull.cdf(m,u,t):c.weibull.pdf(m,u,t)})}},{key:"poissondist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("POISSON.DIST"), 2163function(m,t,u){return m=Math.trunc(m),u?c.poisson.cdf(m,t):c.poisson.pdf(m,t)})}},{key:"hypgeomdist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("HYPGEOM.DIST"),function(m,t,u,w,v){return m>t||m>u||t>w||u>w||m+w<u+t?new q.CellError(q.ErrorType.NUM,p.ErrorMessage.ValueLarge):(m=M
2163ath.trunc(m),t=Math.trunc(t),u=Math.trunc(u),w=Math.trunc(w),v?c.hypgeom.cdf(m,w,u,t):c.hypgeom.pdf(m,w,u,t))})}},{key:"tdist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("T.DIST"), 2164function(m,t,u){return t=Math.trunc(t),u?c.studentt.cdf(m,t):c.studentt.pdf(m,t)})}},{key:"tdist2t",value:function(l,r){return this.runFunction(l.args,r,this.metadata("T.DIST.2T"),function(m,t){return 2*(1-c.studentt.cdf(m,Math.trunc(t)))})}},{key:"tdistrt",value:function(l,r){return this.runFunction(l.args,r,this.metadata("T.DIST.RT"),function(m,t){return 1-c.studentt.cdf(m,Math.trunc(t))})}},{key:"tdistold",value:function(l,r){return this.runFunction(l.args,r,this.metadata("TDIST"),function(m,t, 2165u){return u*(1-c.studentt.cdf(m,Math.trunc(t)))})}},{key:"tinv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("T.INV"),function(m,t){return c.studentt.inv(m,Math.trunc(t))})}},{key:"tinv2t",value:function(l,r){return this.runFunction(l.args,r,this.metadata("T.INV.2T"),function(m,t){return c.studentt.inv(1-m/2,Math.trunc(t))})}},{key:"lognormdist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("LOGNORM.DIST"),function(m,t,u,w){return w?c.lognormal.cdf(m,t,u): 2166c.lognormal.pdf(m,t,u)})}},{key:"lognorminv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("LOGNORM.INV"),function(m,t,u){return c.lognormal.inv(m,t,u)})}},{key:"normdist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("NORM.DIST"),function(m,t,u,w){return w?c.normal.cdf(m,t,u):c.normal.pdf(m,t,u)})}},{key:"norminv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("NORM.INV"),function(m,t,u){return c.normal.inv(m,t,u)})}},{key:"normsdist", 2167value:function(l,r){return this.runFunction(l.args,r,this.metadata("NORM.S.DIST"),function(m,t){return t?c.normal.cdf(m,0,1):c.normal.pdf(m,0,1)})}},{key:"normsinv",value:function(l,r){return this.runFunction(l.args,r,this.metadata("NORM.S.INV"),function(m){return c.normal.inv(m,0,1)})}},{key:"phi",value:function(l,r){return this.runFunction(l.args,r,this.metadata("PHI"),function(m){return c.normal.pdf(m,0,1)})}},{key:"negbinomdist",value:function(l,r){return this.runFunction(l.args,r,this.metadata("NEGBINOM.DIST"), 2168function(m,t,u,w){return m=Math.trunc(m),t=Math.trunc(t),w?c.negbin.cdf(m,t,u):c.negbin.pdf(m,t,u)})}},{key:"confidencenorm",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CONFIDENCE.NORM"),function(m,t,u){return Object(c.normalci)(1,m,t,Math.trunc(u))[1]-1})}},{key:"confidencet",value:function(l,r){return this.runFunction(l.args,r,this.metadata("CONFIDENCE.T"),function(m,t,u){return 1===(u=Math.trunc(u))?new q.CellError(q.ErrorType.DIV_BY_ZERO):Object(c.tci)(1,m,t,u)[1]-1})}}, 2169{key:"standardize",value:function(l,r){return this.runFunction(l.args,r,this.metadata("STANDARDIZE"),function(m,t,u){return(m-t)/u})}}],B(k.prototype,f),Object.defineProperty(k,"prototype",{writable:!1}),k}(g.FunctionPlugin);d.implementedFunctions={ERF:{method:"erf",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0}]},ERFC:{method:"erfc",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},"EXPON.DIST":{method:"expondist",parameters:[{argumentType:g.ArgumentTypes.NUMBER, 2170minValue:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.BOOLEAN}]},FISHER:{method:"fisher",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:-1,lessThan:1}]},FISHERINV:{method:"fisherinv",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},GAMMA:{method:"gamma",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},"GAMMA.DIST":{method:"gammadist",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}, 2171{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.BOOLEAN}]},GAMMALN:{method:"gammaln",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}]},"GAMMA.INV":{method:"gammainv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0,lessThan:1},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}]},GAUSS:{method:"gauss",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},"BETA.DIST":{method:"betadist",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 2172{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.BOOLEAN},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},"BETA.INV":{method:"betainv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0,maxValue:1},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,defaultValue:0}, 2173{argumentType:g.ArgumentTypes.NUMBER,defaultValue:1}]},"BINOM.DIST":{method:"binomialdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:g.ArgumentTypes.BOOLEAN}]},"BINOM.INV":{method:"binomialinv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0, 2174lessThan:1}]},BESSELI:{method:"besselifn",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},BESSELJ:{method:"besseljfn",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},BESSELK:{method:"besselkfn",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},BESSELY:{method:"besselyfn",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER, 2175minValue:0}]},"CHISQ.DIST":{method:"chisqdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,minValue:1,maxValue:1E10},{argumentType:g.ArgumentTypes.BOOLEAN}]},"CHISQ.DIST.RT":{method:"chisqdistrt",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,minValue:1,maxValue:1E10}]},"CHISQ.INV":{method:"chisqinv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1, 2176maxValue:1E10}]},"CHISQ.INV.RT":{method:"chisqinvrt",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},"F.DIST":{method:"fdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1},{argumentType:g.ArgumentTypes.BOOLEAN}]},"F.DIST.RT":{method:"fdistrt",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER, 2177minValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},"F.INV":{method:"finv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},"F.INV.RT":{method:"finvrt",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},"WEIBULL.DIST":{method:"weibulldist",parameters:[{argumentType:g.ArgumentTypes.NUMBER, 2178minValue:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.BOOLEAN}]},"POISSON.DIST":{method:"poissondist",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.BOOLEAN}]},"HYPGEOM.DIST":{method:"hypgeomdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER, 2179greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.BOOLEAN}]},"T.DIST":{method:"tdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,minValue:1},{argumentType:g.ArgumentTypes.BOOLEAN}]},"T.DIST.2T":{method:"tdist2t",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},"T.DIST.RT":{method:"tdistrt",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER, 2180minValue:1}]},TDIST:{method:"tdistold",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:1},{argumentType:g.ArgumentTypes.INTEGER,minValue:1,maxValue:2}]},"T.INV":{method:"tinv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},"T.INV.2T":{method:"tinv2t",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0,maxValue:1},{argumentType:g.ArgumentTypes.NUMBER, 2181minValue:1}]},"LOGNORM.DIST":{method:"lognormdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.BOOLEAN}]},"LOGNORM.INV":{method:"lognorminv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}]},"NORM.DIST":{method:"normdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 2182{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.BOOLEAN}]},"NORM.INV":{method:"norminv",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}]},"NORM.S.DIST":{method:"normsdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.BOOLEAN}]},"NORM.S.INV":{method:"normsinv",parameters:[{argumentType:g.ArgumentTypes.NUMBER, 2183greaterThan:0,lessThan:1}]},PHI:{method:"phi",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},"NEGBINOM.DIST":{method:"negbinomdist",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:1},{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:1},{argumentType:g.ArgumentTypes.BOOLEAN}]},"CONFIDENCE.NORM":{method:"confidencenorm",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:g.ArgumentTypes.NUMBER, 2184greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},"CONFIDENCE.T":{method:"confidencet",parameters:[{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0,lessThan:1},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:1}]},STANDARDIZE:{method:"standardize",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,greaterThan:0}]}};d.aliases={NEGBINOMDIST:"NEGBINOM.DIST",EXPONDIST:"EXPON.DIST", 2185BETADIST:"BETA.DIST",NORMDIST:"NORM.DIST",NORMINV:"NORM.INV",NORMSDIST:"NORM.S.DIST",NORMSINV:"NORM.S.INV",LOGNORMDIST:"LOGNORM.DIST",LOGINV:"LOGNORM.INV",TINV:"T.INV.2T",HYPGEOMDIST:"HYPGEOM.DIST",POISSON:"POISSON.DIST",WEIBULL:"WEIBULL.DIST",FINV:"F.INV.RT",FDIST:"F.DIST.RT",CHIDIST:"CHISQ.DIST.RT",CHIINV:"CHISQ.INV.RT",GAMMADIST:"GAMMA.DIST","GAMMALN.PRECISE":"GAMMALN",GAMMAINV:"GAMMA.INV",BETAINV:"BETA.INV",BINOMDIST:"BINOM.DIST",CONFIDENCE:"CONFIDENCE.NORM",CRITBINOM:"BINOM.INV",WEIBULLDIST:"WEIBULL.DIST", 2186TINV2T:"T.INV.2T",TDISTRT:"T.DIST.RT",TDIST2T:"T.DIST.2T",FINVRT:"F.INV.RT",FDISTRT:"F.DIST.RT",CHIDISTRT:"CHISQ.DIST.RT",CHIINVRT:"CHISQ.INV.RT",LOGNORMINV:"LOGNORM.INV",POISSONDIST:"POISSON.DIST"}},function(g,b,a){function F(L){var U,V,Y,aa=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-9.46595344482036E-4,3.66839497852761E-4,4.2523324806907E-5,-2.0278578112534E-5,-1.624290004647E-6,1.30365583558E-6,1.5626441722E-8,
2186-8.5238095915E-8,6.529054439E-9,5.059343495E-9, 2187-9.91364156E-10,-2.27365122E-10,9.6467911E-11,2.394038E-12,-6.886027E-12,8.94487E-13,3.13092E-13,-1.12708E-13,3.81E-16,7.106E-15,-1.523E-15,-9.4E-17,1.21E-16,-2.8E-17],W=aa.length-1,ca=!1,ia=0,ba=0;if(0===L)return 0;0>L&&(L=-L,ca=!0);for(V=4*(U=2/(2+L))-2;0<W;W--){var fa=ia;ia=V*ia-ba+aa[W];ba=fa}return Y=U*Math.exp(-L*L+.5*(aa[0]+V*ia)-ba),ca?Y-1:1-Y}function B(L){return 1-F(L)}function D(L){var U,V,Y,aa=0;if(2<=L)return-100;if(0>=L)return 100;var W=1>L?L:2-L;for(U=-.70711*((2.30753+.27061*(Y=Math.sqrt(-2* 2188Math.log(W/2))))/(1+Y*(.99229+.04481*Y))-Y);2>aa;aa++)U+=(V=B(U)-W)/(1.1283791670955126*Math.exp(-U*U)-U*V);return 1>L?U:-U}function A(L){var U,V=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],Y=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],aa=!1,W=0,ca=0,ia=0,ba=L;if(171.6243769536076<L)return 1/ 21890;if(0>=ba){if(!(U=ba%1))return 1/0;aa=(1&ba?-1:1)*Math.PI/Math.sin(Math.PI*U);ba=1-ba}var fa=ba;U=1>ba?ba++:(ba-=W=(0|ba)-1)-1;for(L=0;8>L;++L)ia=(ia+V[L])*U,ca=ca*U+Y[L];if(U=ia/ca+1,fa<ba)U/=fa;else if(fa>ba)for(L=0;L<W;++L)U*=ba,ba++;return aa&&(U=aa/U),U}function x(L){var U,V=0,Y=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5.395239384953E-6],aa=1.000000000190015;var W=(U=L)+5.5;for(W-=(L+.5)*Math.log(W);6>V;V++)aa+=Y[V]/++U;return Math.log(2.5066282746310007* 2190aa/L)-W}function q(L,U){var V,Y=x(L),aa=L,W=1/L,ca=W,ia=U+1-L,ba=1/1E-30,fa=1/ia,ja=fa,qa=1,ha=-~(8.5*Math.log(1<=L?L:1/L)+.4*L+17);if(0>U||0>=L)return NaN;if(U<L+1){for(;qa<=ha;qa++)W+=ca*=U/++aa;return W*Math.exp(-U+L*Math.log(U)-Y)}for(;qa<=ha;qa++)ja*=(fa=1/(fa=(V=-qa*(qa-L))*fa+(ia+=2)))*(ba=ia+V/ba);return 1-ja*Math.exp(-U+L*Math.log(U)-Y)}function p(L,U){var V,Y,aa,W,ca,ia,ba=0,fa=U-1,ja=x(U);if(1<=L)return Math.max(100,U+100*Math.sqrt(U));if(0>=L)return 0;for(1<U?(ca=Math.log(fa),ia=Math.exp(fa* 2191(ca-1)-ja),W=.5>L?L:1-L,V=(2.30753+.27061*(Y=Math.sqrt(-2*Math.log(W))))/(1+Y*(.99229+.04481*Y))-Y,.5>L&&(V=-V),V=Math.max(.001,U*Math.pow(1-1/(9*U)-V/(3*Math.sqrt(U)),3))):V=L<(Y=1-U*(.253+.12*U))?Math.pow(L/Y,1/U):1-Math.log(1-(L-Y)/(1-Y));12>ba;ba++){if(0>=V)return 0;if(0>=(V-=Y=(aa=(q(U,V)-L)/(Y=1<U?ia*Math.exp(-(V-fa)+fa*(Math.log(V)-ca)):Math.exp(-V+fa*Math.log(V)-ja)))/(1-.5*Math.min(1,aa*((U-1)/V-1))))&&(V=.5*(V+Y)),Math.abs(Y)<1E-8*V)break}return V}function e(L,U){if(!(0>=L||0>=U))return 170< 2192L+U?Math.exp(c(L,U)):A(L)*A(U)/A(L+U)}function c(L,U){return x(L)+x(U)-x(L+U)}function d(L,U,V){var Y,aa,W,ca,ia,ba,fa,ja,qa,ha=U-1,na=V-1,oa=0;if(0>=L)return 0;if(1<=L)return 1;1<=U&&1<=V?(W=.5>L?L:1-L,ba=(2.30753+.27061*(ca=Math.sqrt(-2*Math.log(W))))/(1+ca*(.99229+.04481*ca))-ca,.5>L&&(ba=-ba),fa=(ba*ba-3)/6,ja=2/(1/(2*U-1)+1/(2*V-1)),qa=ba*Math.sqrt(fa+ja)/ja-(1/(2*V-1)-1/(2*U-1))*(fa+5/6-2/(3*ja)),ba=U/(U+V*Math.exp(2*qa))):(Y=Math.log(U/(U+V)),aa=Math.log(V/(U+V)),ba=L<(ca=Math.exp(U*Y)/U)/ 2193(qa=ca+(ia=Math.exp(V*aa)/V))?Math.pow(U*qa*L,1/U):1-Math.pow(V*qa*(1-L),1/V));for(Y=-x(U)-x(V)+x(U+V);10>oa&&0!==ba&&1!==ba&&!(0>=(ba-=ca=(ia=(h(ba,U,V)-L)/(ca=Math.exp(ha*Math.log(ba)+na*Math.log(1-ba)+Y)))/(1-.5*Math.min(1,ia*(ha/ba-na/(1-ba)))))&&(ba=.5*(ba+ca)),1<=ba&&(ba=.5*(ba+ca+1)),Math.abs(ca)<1E-8*ba&&0<oa);oa++);return ba}function h(L,U,V){var Y=0===L||1===L?0:Math.exp(x(U+V)-x(U)-x(V)+U*Math.log(L)+V*
2193Math.log(1-L));return!(0>L||1<L)&&(L<(U+1)/(U+V+2)?Y*k(L,U,V)/U:1-Y*k(1-L,V,U)/V)}function k(L, 2194U,V){var Y,aa,W,ca,ia=1,ba=U+V,fa=U+1,ja=U-1,qa=1,ha=1-ba*L/fa;1E-30>Math.abs(ha)&&(ha=1E-30);for(ca=ha=1/ha;100>=ia&&(ha=1+(aa=ia*(V-ia)*L/((ja+(Y=2*ia))*(U+Y)))*ha,1E-30>Math.abs(ha)&&(ha=1E-30),qa=1+aa/qa,1E-30>Math.abs(qa)&&(qa=1E-30),ca*=(ha=1/ha)*qa,ha=1+(aa=-(U+ia)*(ba+ia)*L/((U+Y)*(fa+Y)))*ha,1E-30>Math.abs(ha)&&(ha=1E-30),qa=1+aa/qa,1E-30>Math.abs(qa)&&(qa=1E-30),ca*=W=(ha=1/ha)*qa,!(3E-7>Math.abs(W-1)));ia++);return ca}function f(L,U,V,Y){for(var aa,W=0,ca=1,ia=1,ba=1,fa=0,ja=0;Math.abs((ia- 2195ja)/ia)>Y;)ja=ia,ca=ba+(aa=-(U+fa)*(U+V+fa)*L/(U+2*fa)/(U+2*fa+1))*ca,ia=(W=ia+aa*W)+(aa=(fa+=1)*(V-fa)*L/(U+2*fa-1)/(U+2*fa))*ia,W/=ba=ca+aa*ba,ca/=ba,ia/=ba,ba=1;return ia/U}function n(L,U){if(170<L||170<U){var V=Math;var Y=V.exp;L=l(L)-l(U)-l(L-U);V=Y.call(V,L)}else V=r(L)/r(U)/r(L-U);return V}function l(L){return 0>L?NaN:x(L+1)}function r(L){return 0>L?NaN:A(L+1)}function m(L){for(var U=0,V=L.length;0<=--V;)U+=L[V];return U}function t(L){return m(L)/L.length}function u(L){for(var U,V=t(L),Y=0, 2196aa=L.length;0<=--aa;)Y+=(U=L[aa]-V)*U;return Y}function w(L,U){return u(L)/(L.length-(U?1:0))}function v(L,U){return Math.sqrt(w(L,U))}function C(){var L,U=[].slice.call(arguments),V=Array(2);return L=4===U.length?Math.abs(K.inv(U[1]/2,0,1)*U[2]/Math.sqrt(U[3])):Math.abs(K.inv(U[1]/2,0,1)*v(U[2])/Math.sqrt(U[2].length)),V[0]=U[0]-L,V[1]=U[0]+L,V}function y(){var L,U=[].slice.call(arguments),V=Array(2);return L=4===U.length?Math.abs(M.inv(U[1]/2,U[3]-1)*U[2]/Math.sqrt(U[3])):Math.abs(M.inv(U[1]/2, 2197U[2].length-1)*v(U[2],!0)/Math.sqrt(U[2].length)),V[0]=U[0]-L,V[1]=U[0]+L,V}function z(L){for(var U=Math,V=U.pow,Y=1,aa=L.length;0<=--aa;)Y*=L[aa];return V.call(U,Y,1/L.length)}function E(L,U){var V,Y=t(L),aa=t(U),W=L.length,ca=Array(W);for(V=0;V<W;V++)ca[V]=(L[V]-Y)*(U[V]-aa);return m(ca)/(W-1)}function H(L,U){return E(L,U)/v(L,1)/v(U,1)}a.r(b);a.d(b,"erf",function(){return F});a.d(b,"erfc",function(){return B});a.d(b,"exponential",function(){return G});a.d(b,"gammafn",function(){return A});a.d(b, 2198"gamma",function(){return I});a.d(b,"gammaln",function(){return x});a.d(b,"normal",function(){return K});a.d(b,"beta",function(){return J});a.d(b,"binomial",function(){return P});a.d(b,"factorialln",function(){return l});a.d(b,"factorial",function(){return r});a.d(b,"chisquare",function(){return S});a.d(b,"centralF",function(){return R});a.d(b,"weibull",function(){return O});a.d(b,"poisson",function(){return N});a.d(b,"hypgeom",function(){return Q});a.d(b,"studentt",function(){return M});a.d(b,"lognormal", 2199function(){return T});a.d(b,"negbin",function(){return Z});a.d(b,"mean",function(){return t});a.d(b,"sumsqerr",function(){return u});a.d(b,"variance",function(){return w});a.d(b,"stdev",function(){return v});a.d(b,"normalci",function(){return C});a.d(b,"tci",function(){return y});a.d(b,"geomean",function(){return z});a.d(b,"covariance",function(){return E});a.d(b,"corrcoeff",function(){return H});a(13);var G={pdf:function(L,U){return 0>L?0:U*Math.exp(-U*L)},cdf:function(L,U){return 0>L?0:1-Math.exp(-U* 2200L)}},I={pdf:function(L,U,V){return 0>L?0:0===L&&1===U?1/V:Math.exp((U-1)*Math.log(L)-L/V-x(U)-U*Math.log(V))},cdf:function(L,U,V){return 0>L?0:q(U,L/V)},inv:function(L,U,V){return p(L,U)*V}},K={pdf:function(L,U,V){return Math.exp(-.5*Math.log(2*Math.PI)-Math.log(V)-Math.pow(L-U,2)/(2*V*V))},cdf:function(L,U,V){return.5*(1+F((L-U)/Math.sqrt(2*V*V)))},inv:function(L,U,V){return-1.4142135623730951*V*D(2*L)+U}},J={pdf:function(L,U,V){return 1<L||0>L?0:1==U&&1==V?1:512>U&&512>V?Math.pow(L,U-1)*Math.pow(1- 2201L,V-1)/e(U,V):Math.exp((U-1)*Math.log(L)+(V-1)*Math.log(1-L)-c(U,V))},cdf:function(L,U,V){return 1<L||0>L?+(1<L):h(L,U,V)},inv:function(L,U,V){return d(L,U,V)}},P={pdf:function(L,U,V){return 0===V||1===V?U*V===L?1:0:n(U,L)*Math.pow(V,L)*Math.pow(1-V,U-L)},cdf:function(L,U,V){var Y;if(0>L)return 0;if(L>=U)return 1;if(0>V||1<V||0>=U)return NaN;var aa=(L=Math.floor(L))+1;L=U-L;U=aa+L;var W=Math.exp(x(U)-x(L)-x(aa)+aa*Math.log(V)+L*Math.log(1-V));return Y=V<(aa+1)/(U+2)?W*f(V,aa,L,1E-10):1-W*f(1-V,L, 2202aa,1E-10),Math.round(1E10*(1-Y))/1E10}},S={pdf:function(L,U){return 0>L?0:0===L&&2===U?.5:Math.exp((U/2-1)*Math.log(L)-L/2-U/2*Math.log(2)-x(U/2))},cdf:function(L,U){return 0>L?0:q(U/2,L/2)},inv:function(L,U){return 2*p(L,.5*U)}},R={pdf:function(L,U,V){var Y;return 0>L?0:2>=U?0===L&&2>U?1/0:0===L&&2===U?1:1/e(U/2,V/2)*Math.pow(U/V,U/2)*Math.pow(L,U/2-1)*Math.pow(1+U/V*L,-(U+V)/2):(Y=U*L/(V+L*U),V/(V+L*U)*U/2*P.pdf((U-2)/2,(U+V-2)/2,Y))},cdf:function(L,U,V){return 0>L?0:h(U*L/(U*L+V),U/2,V/2)},inv:function(L, 2203U,V){return V/(U*(1/d(L,U/2,V/2)-1))}}
2203,O={pdf:function(L,U,V){return 0>L||0>U||0>V?0:V/U*Math.pow(L/U,V-1)*Math.exp(-Math.pow(L/U,V))},cdf:function(L,U,V){return 0>L?0:1-Math.exp(-Math.pow(L/U,V))}},N={pdf:function(L,U){return 0>U||0!=L%1||0>L?0:Math.pow(U,L)*Math.exp(-U)/r(L)},cdf:function(L,U){var V=0;if(0>L)return 0;for(var Y=0;V<=L;V++)Y+=N.pdf(V,U);return Y}},Q={pdf:function(L,U,V,Y){if(0>L||L<V-(U-Y)||L>Y||L>V)return 0;if(2*V>U)return 2*Y>U?Q.pdf(U-V-Y+L,U,U-V,U-Y):Q.pdf(Y-L,U,U-V,Y);if(2*Y> 2204U)return Q.pdf(V-L,U,V,U-Y);if(V<Y)return Q.pdf(L,U,Y,V);for(var aa=1,W=0,ca=0;ca<L;ca++){for(;1<aa&&W<Y;)aa*=1-V/(U-W),W++;aa*=(Y-ca)*(V-ca)/((ca+1)*(U-V-Y+ca+1))}for(;W<Y;W++)aa*=1-V/(U-W);return Math.min(1,Math.max(0,aa))},cdf:function W(U,V,Y,aa){if(0>U||U<Y-(V-aa))return 0;if(U>=aa||U>=Y)return 1;if(2*Y>V)return 2*aa>V?W(V-Y-aa+U,V,V-Y,V-aa):1-Q.cdf(aa-U-1,V,V-Y,aa);if(2*aa>V)return 1-Q.cdf(Y-U-1,V,Y,V-aa);if(Y<aa)return Q.cdf(U,V,aa,Y);for(var ca=1,ia=1,ba=0,fa=0;fa<U;fa++){for(;1<ca&&ba<aa;){var ja= 22051-Y/(V-ba);ia*=ja;ca*=ja;ba++}ca+=ia*=(aa-fa)*(Y-fa)/((fa+1)*(V-Y-aa+fa+1))}for(;ba<aa;ba++)ca*=1-Y/(V-ba);return Math.min(1,Math.max(0,ca))}},M={pdf:function(U,V){return V=1E100<V?1E100:V,1/(Math.sqrt(V)*e(.5,V/2))*Math.pow(1+U*U/V,-(V+1)/2)},cdf:function(U,V){var Y=V/2;return h((U+Math.sqrt(U*U+V))/(2*Math.sqrt(U*U+V)),Y,Y)},inv:function(U,V){var Y=d(2*Math.min(U,1-U),.5*V,.5);return Y=Math.sqrt(V*(1-Y)/Y),.5<U?Y:-Y}},T={pdf:function(U,V,Y){return 0>=U?0:Math.exp(-Math.log(U)-.5*Math.log(2*Math.PI)- 2206Math.log(Y)-Math.pow(Math.log(U)-V,2)/(2*Y*Y))},cdf:function(U,V,Y){return 0>U?0:.5+.5*F((Math.log(U)-V)/Math.sqrt(2*Y*Y))},inv:function(U,V,Y){return Math.exp(-1.4142135623730951*Y*D(2*U)+V)}},Z={pdf:function(U,V,Y){return U===U>>>0&&(0>U?0:n(U+V-1,V-1)*Math.pow(1-Y,U)*Math.pow(Y,V))},cdf:function(U,V,Y){var aa=0,W=0;if(0>U)return 0;for(;W<=U;W++)aa+=Z.pdf(W,V,Y);return aa}}},function(g,b,a){function F(f){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}: 2207function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(f)}function B(f,n){var l="undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(!l){if(Array.isArray(f)||(l=function(w,v){if(w){if("string"==typeof w)return D(w,v);var C=Object.prototype.toString.call(w).slice(8,-1);"Object"===C&&w.constructor&&(C=w.constructor.name);if("Map"===C||"Set"===C)return Array.from(w);if("Arguments"===C||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return D(w, 2208v)}}(f))||n&&f&&"number"==typeof f.length){l&&(f=l);var r=0;n=function(){};return{s:n,n:function(){return r>=f.length?{done:!0}:{done:!1,value:f[r++]}},e:function(w){throw w;},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var m,t=!0,u=!1;return{s:function(){l=l.call(f)},n:function(){var w=l.next();return t=w.done,w},e:function(w){u=!0;m=w},f:function(){try{t||null==l.return||l.return()}finally{if(u)throw m; 2209}}}}function D(f,n){(null==n||n>f.length)&&(n=f.length);for(var l=0,r=Array(n);l<n;l++)r[l]=f[l];return r}function A(f,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}function x(f,n){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,r){return l.__proto__=r,l})(f,n)}function q(f){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1; 2210if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}();return function(){var l=p(f);if(n){var r=p(this).constructor;l=Reflect.construct(l,arguments,r)}else l=l.apply(this,arguments);if(!l||"object"!==F(l)&&"function"!=typeof l){if(void 0!==l)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2211l=this}return l}}
2211function p(f){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(f)}function e(f,n){2*n>f&&(n=f-n);for(var l=1,r=1;r<=n;r++)l*=(f-n+r)/r;return Math.round(l)}function c(f,n){f<n&&(n=[n,f],f=n[0],n=n[1]);for(;0<n;)n=[n,f%n],f=n[0],n=n[1];return f}a.r(b);a.d(b,"MathPlugin",function(){return k});a(147);a(765);a(52);a(62);a(25);a(0);a(7);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var d=a(24),h=a(46);g=a(37); 2212var k=function(f){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");return r.apply(this,arguments)}!function(m,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(t&&t.prototype,{constructor:{value:m,writable:!0,configurable:!0}});Object.defineProperty(m,"prototype",{writable:!1});t&&x(m,t)}(n,f);var l,r=q(n);return l=[{key:"fact",value:function(m,t){return this.runFunction(m.args, 2213t,this.metadata("FACT"),function(u){u=Math.trunc(u);for(var w=1,v=1;v<=u;v++)w*=v;return w})}},{key:"factdouble",value:function(m,t){return this.runFunction(m.args,t,this.metadata("FACTDOUBLE"),function(u){var w=1;for(u=Math.trunc(u);1<=u;u-=2)w*=u;return w})}},{key:"combin",value:function(m,t){return this.runFunction(m.args,t,this.metadata("COMBIN"),function(u,w){return w>u?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.WrongOrder):e(Math.trunc(u),Math.trunc(w))})}},{key:"combina",value:function(m, 2214t){return this.runFunction(m.args,t,this.metadata("COMBINA"),function(u,w){return 1030<=(u=Math.trunc(u))+(w=Math.trunc(w))-1?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueLarge):0===u&&0===w?1:e(u+w-1,w)})}},{key:"gcd",value:function(m,t){var u=this;return this.runFunction(m.args,t,this.metadata("GCD"),function(){for(var w=arguments.length,v=Array(w),C=0;C<w;C++)v[C]=arguments[C];v=u.arithmeticHelper.coerceNumbersCoerceRangesDropNulls(v);if(v instanceof d.CellError)return v;var y;w=0;v=B(v); 2215try{for(v.s();!(y=v.n()).done;){var z=y.value;if(0>z)return new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueSmall);w=c(w,Math.trunc(z))}}catch(E){v.e(E)}finally{v.f()}return w>Number.MAX_SAFE_INTEGER?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueLarge):w})}},{key:"lcm",value:function(m,t){var u=this;return this.runFunction(m.args,t,this.metadata("LCM"),function(){for(var w=arguments.length,v=Array(w),C=0;C<w;C++)v[C]=arguments[C];v=u.arithmeticHelper.coerceNumbersCoerceRangesDropNulls(v); 2216if(v instanceof d.CellError)return v;var y;w=1;v=B(v);try{for(v.s();!(y=v.n()).done;){var z=y.value;if(0>z)return new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueSmall);var E=Math.trunc(z);w=0===w||0===E?0:w*(E/c(w,E))}}catch(H){v.e(H)}finally{v.f()}return w>Number.MAX_SAFE_INTEGER?new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueLarge):w})}},{key:"mround",value:function(m,t){return this.runFunction(m.args,t,this.metadata("MROUND"),function(u,w){return 0===w?0:0<u&&0>w||0>u&&0<w?new d.CellError(d.ErrorType.NUM, 2217h.ErrorMessage.DistinctSigns):Math.round(u/w)*w})}},{key:"multinomial",value:function(m,t){return this.runFunction(m.args,t,this.metadata("MULTINOMIAL"),function(){for(var u=0,w=1,v=arguments.length,C=Array(v),y=0;y<v;y++)C[y]=arguments[y];for(v=0;v<C.length;v++){y=C[v];if(0>y)return new d.CellError(d.ErrorType.NUM,h.ErrorMessage.ValueSmall);y=Math.trunc(y);for(var z=1;z<=y;z++)w*=(u+z)/z;u+=y}return Math.round(w)})}},{key:"quotient",value:function(m,t){return this.runFunction(m.args,t,this.metadata("QUOTIENT"), 2218function(u,w){return 0===w?new d.CellError(d.ErrorType.DIV_BY_ZERO):Math.trunc(u/w)})}},{key:"seriessum",value:function(m,t){var u=this;return this.runFunction(m.args,t,this.metadata("SERIESSUM"),function(w,v,C,y){var z=u.arithmeticHelper.manyToOnlyNumbersDropNulls(y.valuesFromTopLeftCorner());if(z instanceof d.CellError)return z;y=0;z.reverse();var E;z=B(z);try{for(z.s();!(E=z.n()).done;){var H=E.value;y*=Math.pow(w,C);y+=H}}catch(G){z.e(G)}finally{z.f()}return y*Math.pow(w,v)})}},{key:"sign",value:function(m, 2219t){return this.runFunction(m.args,t,this.metadata("SIGN"),function(u){return 0<u?1:0>u?-1:0})}},{key:"sumx2my2",value:function(m,t){return this.runFunction(m.args,t,this.metadata("SUMX2MY2"),function(u,w){u=u.valuesFromTopLeftCorner();w=w.valuesFromTopLeftCorner();if(u.length!==w.length)return new d.CellError(d.ErrorType.NA,h.ErrorMessage.EqualLength);for(var v=u.length,C=0,y=0;y<v;y++){var z=u[y],E=w[y];if(z instanceof d.CellError)return z;if(E instanceof d.CellError)return E;"number"==typeof z&& 2220"number"==typeof E&&(C+=Math.pow(z,2)-Math.pow(E,2))}return C})}},{key:"sumx2py2",value:function(m,t){return this.runFunction(m.args,t,this.metadata("SUMX2PY2"),function(u,w){u=u.valuesFromTopLeftCorner();w=w.valuesFromTopLeftCorner();if(u.length!==w.length)return new d.CellError(d.ErrorType.NA,h.ErrorMessage.EqualLength);for(var v=u.length,C=0,y=0;y<v;y++){var z=u[y],E=w[y];if(z instanceof d.CellError)return z;if(E instanceof d.CellError)return E;"number"==typeof z&&"number"==typeof E&&(C+=Math.pow(z, 22212)+Math.pow(E,2))}return C})}},{key:"sumxmy2",value:function(m,t){return this.runFunction(m.args,t,this.metadata("SUMXMY2"),function(u,w){u=u.valuesFromTopLeftCorner();w=w.valuesFromTopLeftCorner();if(u.length!==w.length)return new d.CellError(d.ErrorType.NA,h.ErrorMessage.EqualLength);for(var v=u.length,C=0,y=0;y<v;y++){var z=u[y],E=w[y];if(z instanceof d.CellError)return z;if(E instanceof d.CellError)return E;"number"==typeof z&&"number"==typeof E&&(C+=Math.pow(z-E,2))}return C})}}],A(n.prototype, 2222l),Object.defineProperty(n,"prototype",{writable:!1}),n}(g.FunctionPlugin);k.implementedFunctions={FACT:{method:"fact",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:170}]},FACTDOUBLE:{method:"factdouble",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0,maxValue:288}]},COMBIN:{method:"combin",parameters:[{argumentType:g.ArgumentTypes.NUMBER,minValue:0,lessThan:1030},{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},COMBINA:{method:"combina",parameters:[{argumentType:g.ArgumentTypes.NUMBER, 2223minValue:0},{argumentType:g.ArgumentTypes.NUMBER,minValue:0}]},GCD:{method:"gcd",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},LCM:{method:"lcm",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1}
2223,MROUND:{method:"mround",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER}]},MULTINOMIAL:{method:"multinomial",parameters:[{argumentType:g.ArgumentTypes.NUMBER}],repeatLastArgs:1,expandRanges:!0},QUOTIENT:{method:"quotient",parameters:[{argumentType:g.ArgumentTypes.NUMBER}, 2224{argumentType:g.ArgumentTypes.NUMBER}]},SERIESSUM:{method:"seriessum",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.RANGE}]},SIGN:{method:"sign",parameters:[{argumentType:g.ArgumentTypes.NUMBER}]},SUMX2MY2:{method:"sumx2my2",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]},SUMX2PY2:{method:"sumx2py2",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]}, 2225SUMXMY2:{method:"sumxmy2",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]}}},function(g,b,a){function F(z){return(F="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})(z)}function B(z,E){var H="undefined"!=typeof Symbol&&z[Symbol.iterator]||z["@@iterator"];if(!H){if(Array.isArray(z)||(H=A(z))||E&&z&&"number"== 2226typeof z.length){H&&(z=H);var G=0;E=function(){};return{s:E,n:function(){return G>=z.length?{done:!0}:{done:!1,value:z[G++]}},e:function(P){throw P;},f:E}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var I,K=!0,J=!1;return{s:function(){H=H.call(z)},n:function(){var P=H.next();return K=P.done,P},e:function(P){J=!0;I=P},f:function(){try{K||null==H.return||H.return()}finally{if(J)throw I; 2227}}}}function D(z,E){if(!(z=function(H){if(Array.isArray(H))return H}(z)||function(H,G){var I=null==H?null:"undefined"!=typeof Symbol&&H[Symbol.iterator]||H["@@iterator"];if(null!=I){var K,J=[],P=!0,S=!1;try{for(I=I.call(H);!(P=(K=I.next()).done)&&(J.push(K.value),!G||J.length!==G);P=!0);}catch(O){S=!0;var R=O}finally{try{P||null==I.return||I.return()}finally{if(S)throw R;}}return J}}(z,E)||A(z,E)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 2228return z}function A(z,E){if(z){if("string"==typeof z)return x(z,E);var H=Object.prototype.toString.call(z).slice(8,-1);return"Object"===H&&z.constructor&&(H=z.constructor.name),"Map"===H||"Set"===H?Array.from(z):"Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?x(z,E):void 0}}function x(z,E){(null==E||E>z.length)&&(E=z.length);for(var H=0,G=Array(E);H<E;H++)G[H]=z[H];return G}function q(z,E){for(var H=0;H<E.length;H++){var G=E[H];G.enumerable=G.enumerable||!1;G.configurable=!0;"value"in 2229G&&(G.writable=!0);Object.defineProperty(z,G.key,G)}}function p(z,E){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,G){return H.__proto__=G,H})(z,E)}function e(z){var E=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}();return function(){var H=c(z);if(E){var G=c(this).constructor;H=Reflect.construct(H, 2230arguments,G)}else H=H.apply(this,arguments);if(!H||"object"!==F(H)&&"function"!=typeof H){if(void 0!==H)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");H=this}return H}}function c(z){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(z)}function d(z,E){var H=D(z,2);z=H[0];H=H[1];var G=D(E,2);E=G[0]; 2231G=G[1];return[z*E-H*G,z*G+E*H]}function h(z,E){var H=D(z,2);z=H[0];H=H[1];var G=D(E,2);E=G[0];var I=G[1];G=Math.pow(E,2)+Math.pow(I,2);z=D(d([z,H],[E,-I]),2);return[z[0]/G,z[1]/G]}function k(z){var E=D(z,2);z=E[0];E=E[1];
2231return[Math.cos(z)*Math.cosh(E),-Math.sin(z)*Math.sinh(E)]}function f(z){var E=D(z,2);z=E[0];E=E[1];return[Math.cosh(z)*Math.cos(E),Math.sinh(z)*Math.sin(E)]}function n(z){var E=D(z,2);z=E[0];E=E[1];return[Math.sin(z)*Math.cosh(E),Math.cos(z)*Math.sinh(E)]}function l(z){var E=D(z, 22322);z=E[0];E=E[1];return[Math.sinh(z)*Math.cos(E),Math.cosh(z)*Math.sin(E)]}function r(z){var E=D(z,2);z=E[0];E=E[1];return[Math.exp(z)*Math.cos(E),Math.exp(z)*Math.sin(E)]}function m(z){var E=D(z,2);z=E[0];E=E[1];return Math.sqrt(z*z+E*E)}function t(z){var E=D(z,2);z=E[0];E=E[1];return[Math.log(m([z,E])),Math.atan2(E,z)]}function u(z,E){z=D(t(z),2);return r([E*z[0],E*z[1]])}a.r(b);a.d(b,"ComplexPlugin",function(){return y});a(436);a(435);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);a(13);a(26); 2233a(22);a(12);var w=a(24),v=a(46),C=a(113);g=a(37);var y=function(z){function E(){if(!(this instanceof E))throw new TypeError("Cannot call a class as a function");return G.apply(this,arguments)}!function(I,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(K&&K.prototype,{constructor:{value:I,writable:!0,configurable:!0}});Object.defineProperty(I,"prototype",{writable:!1});K&&p(I,K)}(E,z);var H,G=e(E);return H=[{key:"complex", 2234value:function(I,K){return this.runFunction(I.args,K,this.metadata("COMPLEX"),function(J,P,S){return"i"!==S&&"j"!==S?new w.CellError(w.ErrorType.VALUE,v.ErrorMessage.ShouldBeIorJ):Object(C.coerceComplexToString)([J,P],S)})}},{key:"imabs",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMABS"),m)}},{key:"imaginary",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMAGINARY"),function(J){J=D(J,2);return J[0],J[1]})}},{key:"imreal",value:function(I,K){return this.runFunction(I.args, 2235K,this.metadata("IMREAL"),function(J){J=D(J,2);var P=J[0];return J[1],P})}},{key:"imargument",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMARGUMENT"),function(J){var P=D(J,2);J=P[0];P=P[1];return 0===J&&0===P?new w.CellError(w.ErrorType.DIV_BY_ZERO):Math.atan2(P,J)})}},{key:"imconjugate",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMCONJUGATE"),function(J){J=D(J,2);return Object(C.coerceComplexToString)([J[0],-J[1]])})}},{key:"imcos",value:function(I, 2236K){return this.runFunction(I.args,K,this.metadata("IMCOS"),function(J){return Object(C.coerceComplexToString)(k(J))})}},{key:"imcosh",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMCOSH"),function(J){return Object(C.coerceComplexToString)(f(J))})}},{key:"imcot",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMCOT"),function(J){return Object(C.coerceComplexToString)(h(k(J),n(J)))})}},{key:"imcsc",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMCSC"), 2237function(J){return Object(C.coerceComplexToString)(h([1,0],n(J)))})}},{key:"imcsch",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMCSCH"),function(J){return Object(C.coerceComplexToString)(h([1,0],l(J)))})}},{key:"imsec",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMSEC"),function(J){return Object(C.coerceComplexToString)(h([1,0],k(J)))})}},{key:"imsech",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMSECH"),function(J){return Object(C.coerceComplexToString)(h([1, 22380],f(J)))})}},{key:"imsin",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMSIN"),function(J){return Object(C.coerceComplexToString)(n(J))})}},{key:"imsinh",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMSINH"),function(J){return Object(C.coerceComplexToString)(l(J))})}},{key:"imtan",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMTAN"),function(J){return Object(C.coerceComplexToString)(h(n(J),k(J)))})}},{key:"imdiv",value:function(I, 2239K){return this.runFunction(I.args,K,this.metadata("IMDIV"),function(J,P){return Object(C.coerceComplexToString)(h(J,P))})}},{key:"improduct",value:function(I,K){var J=this;return this.runFunction(I.args,K,this.metadata("IMPRODUCT"),function(){for(var P=arguments.length,S=Array(P),R=0;R<P;R++)S[R]=arguments[R];S=J.arithmeticHelper.coerceComplexExactRanges(S);if(S instanceof w.CellError)return S;var O;P=[1,0];S=B(S);try{for(S.s();!(O=S.n()).done;)P=d(P,O.value)}catch(N){S.e(N)}finally{S.f()}return Object(C.coerceComplexToString)(P)})}}, 2240{key:"imsum",value:function(I,K){var J=this;return this.runFunction(I.args,K,this.metadata("IMSUM"),function(){for(var P=arguments.length,S=Array(P),R=0;R<P;R++)S[R]=arguments[R];S=J.arithmeticHelper.coerceComplexExactRanges(S);if(S instanceof w.CellError)return S;var O;P=[0,0];S=B(S);try{for(S.s();!(O=S.n()).done;){var N=O.value,Q=D(P,2),M=Q[0],T=Q[1],Z=D(N,2);P=[M+Z[0],T+Z[1]]}}catch(L){S.e(L)}finally{S.f()}return Object(C.coerceComplexToString)(P)})}},{key:"imsub",value:function(I,K){return this.runFunction(I.args, 2241K,this.metadata("IMSUB"),function(J,P){var S,R,O,N,Q,M;return Object(C.coerceComplexToString)((M=D(J,2),Q=M[0],N=M[1],O=D(P,2),R=O[0],S=O[1],[Q-R,N-S]))})}},{key:"imexp",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMEXP"),function(J){return Object(C.coerceComplexToString)(r(J))})}},{key:"imln",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMLN"),function(J){return Object(C.coerceComplexToString)(t(J))})}},{key:"imlog10",value:function(I,K){return this.runFunction(I.args, 2242K,this.metadata("IMLOG10"),function(J){J=D(t(J),2);var P=Math.log(10);return Object(C.coerceComplexToString)([J[0]/P,J[1]/P])})}},{key:"imlog2",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMLOG2"),function(J){J=D(t(J),2);var P=Math.log(2);return Object(C.coerceComplexToString)([J[0]/P,J[1]/P])})}},{key:"impower",value:function(I,K){return this.runFunction(I.args,K,this.metadata("IMPOWER"),function(J,P){return Object(C.coerceComplexToString)(u(J,P))})}},{key:"imsqrt",value:function(I, 2243K){return this.runFunction(I.args,K,this.metadata("IMSQRT"),function(J){return Object(C.coerceComplexToString)(u(J,.5))})}}],q(E.prototype,H),Object.defineProperty(E,"prototype",{writable:!1}),E}(g.FunctionPlugin);y.implementedFunctions={COMPLEX:{method:"complex",parameters:[{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.STRING,defaultValue:"i"}]},IMABS:{method:"imabs",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMAGINARY:{method:"imaginary", 2244parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMREAL:{method:"imreal",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMARGUMENT:{method:"imargument",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMCONJUGATE:{method:"imconjugate",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMCOS:{method:"imcos",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMCOSH:{method:"imcosh",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMCOT:{method:"imcot",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]}, 2245IMCSC:{method:"imcsc",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMCSCH:{method:"imcsch",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMSEC:{method:"imsec",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMSECH:{method:"imsech",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMSIN:{method:"imsin",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMSINH:{method:"imsinh",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMTAN:{method:"imtan",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]}, 2246IMDIV:{method:"imdiv",parameters:[{argumentType:g.ArgumentTypes.COMPLEX},{argumentType:g.ArgumentTypes.COMPLEX}]},IMPRODUCT:{method:"improduct",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},IMSUM:{method:"imsum",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},IMSUB:{method:"imsub",parameters:[{argumentType:g.ArgumentTypes.COMPLEX},{argumentType:g.ArgumentTypes.COMPLEX}]},IMEXP:{method:"imexp",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMLN:{method:"imln", 2247parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMLOG10:{method:"imlog10",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMLOG2:{method:"imlog2",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]},IMPOWER:{method:"impower",parameters:[{argumentType:g.ArgumentTypes.COMPLEX},{argumentType:g.ArgumentTypes.NUMBER}]},IMSQRT:{method:"imsqrt",parameters:[{argumentType:g.ArgumentTypes.COMPLEX}]}}},function(g,b,a){function F(n){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator? 2248function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(n)}function B(n,l){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=function(v,C){if(v){if("string"==typeof v)return D(v,C);var y=Object.prototype.toString.call(v).slice(8,-1);"Object"===y&&v.constructor&&(y=v.constructor.name);if("Map"===y||"Set"===y)return Array.from(v);if("Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return D(v, 2249C)}}(n))||l&&n&&"number"==typeof n.length){r&&(n=r);var m=0;l=function(){};return{s:l,n:function(){return m>=n.length?{done:!0}:{done:!1,value:n[m++]}},e:function(v){throw v;},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var t,u=!0,w=!1;return{s:function(){r=r.call(n)},n:function(){var v=r.next();return u=v.done,v},e:function(v){w=!0;t=v},f:function(){try{u||null==r.return||r.return()}finally{if(w)throw t; 2250}}}}function D(n,l){(null==l||l>n.length)&&(l=n.length);for(var r=0,m=Array(l);r<l;r++)m[r]=n[r];return m}function A(n,l){for(var r=0;r<l.length;r++){var m=l[r];m.enumerable=m.enumerable||!1;m.configurable=!0;"value"in m&&(m.writable=!0);Object.defineProperty(n,m.key,m)}}
2250function x(n,l){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,m){return r.__proto__=m,r})(n,l)}function q(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1; 2251if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r=p(n);if(l){var m=p(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);if(!r||"object"!==F(r)&&"function"!=typeof r){if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2252r=this}return r}}function p(n){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)})(n)}function e(n,l){var r,m;n=n.iterateValuesFromTopLeftCorner();l=l.iterateValuesFromTopLeftCorner();for(var t=[],u=[];r=n.next(),m=l.next(),!r.done&&!m.done;){var w=r.value,v=m.value;if(w instanceof c.CellError)return w;if(v instanceof c.CellError)return v;Object(h.isExtendedNumber)(w)&&Object(h.isExtendedNumber)(v)&&(t.push(Object(h.getRawValue)(w)), 2253u.push(Object(h.getRawValue)(v)))}return[t,u]}a.r(b);a.d(b,"StatisticalAggregationPlugin",function(){return f});a(105);a(0);a(25);a(7);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var c=a(24),d=a(46),h=a(51),k=a(441);g=a(37);var f=function(n){function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function");return m.apply(this,arguments)}!function(t,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function"); 2254t.prototype=Object.create(u&&u.prototype,{constructor:{value:t,writable:!0,configurable:!0}});Object.defineProperty(t,"prototype",{writable:!1});u&&x(t,u)}(l,n);var r,m=q(l);return r=[{key:"avedev",value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("AVEDEV"),function(){for(var v=arguments.length,C=Array(v),y=0;y<v;y++)C[y]=arguments[y];v=w.arithmeticHelper.coerceNumbersExactRanges(C);if(v instanceof c.CellError)return v;if(0===v.length)return new c.CellError(c.ErrorType.DIV_BY_ZERO); 2255var z=Object(k.mean)(v);return v.reduce(function(E,H){return E+Math.abs(H-z)},0)/v.length})}},{key:"devsq",value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("DEVSQ"),function(){for(var v=arguments.length,C=Array(v),y=0;y<v;y++)C[y]=arguments[y];v=w.arithmeticHelper.coerceNumbersExactRanges(C);return v instanceof c.CellError?v:0===v.length?0:Object(k.sumsqerr)(v)})}},{key:"geomean",value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("GEOMEAN"), 2256function(){for(var v=arguments.length,C=Array(v),y=0;y<v;y++)C[y]=arguments[y];v=w.arithmeticHelper.coerceNumbersExactRanges(C);if(v instanceof c.CellError)return v;if(0===v.length)return new c.CellError(c.ErrorType.NUM,d.ErrorMessage.OneValue);var z;C=B(v);try{for(C.s();!(z=C.n()).done;)if(0>=z.value)return new c.CellError(c.ErrorType.NUM,d.ErrorMessage.ValueSmall)}catch(E){C.e(E)}finally{C.f()}return Object(k.geomean)(v)})}},{key:"harmean",value:function(t,u){var w=this;return this.runFunction(t.args, 2257u,this.metadata("HARMEAN"),function(){for(var v=arguments.length,C=Array(v),y=0;y<v;y++)C[y]=arguments[y];v=w.arithmeticHelper.coerceNumbersExactRanges(C);if(v instanceof c.CellError)return v;if(0===v.length)return new c.CellError(c.ErrorType.NUM,d.ErrorMessage.OneValue);var z;C=B(v);try{for(C.s();!(z=C.n()).done;)if(0>=z.value)return new c.CellError(c.ErrorType.NUM,d.ErrorMessage.ValueSmall)}catch(E){C.e(E)}finally{C.f()}return v.length/v.reduce(function(E,H){return E+1/H},0)})}},{key:"correl",value:function(t, 2258u){return this.runFunction(t.args,u,this.metadata("CORREL"),function(w,v){if(w.numberOfElements()!==v.numberOfElements())return new c.CellError(c.ErrorType.NA,d.ErrorMessage.EqualLength);w=e(w,v);return w instanceof c.CellError?w:1>=w[0].length?new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues):Object(k.corrcoeff)(w[0],w[1])})}},{key:"rsq",value:function(t,u){return this.runFunction(t.args,u,this.metadata("RSQ"),function(w,v){if(w.numberOfElements()!==v.numberOfElements())return new c.CellError(c.ErrorType.NA, 2259d.ErrorMessage.EqualLength);w=e(w,v);return w instanceof c.CellError?w:1>=w[0].length?new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues):Math.pow(Object(k.corrcoeff)(w[0],w[1]),2)})}},{key:"covariancep",value:function(t,u){return this.runFunction(t.args,u,this.metadata("COVARIANCE.P"),function(w,v){if(w.numberOfElements()!==v.numberOfElements())return new c.CellError(c.ErrorType.NA,d.ErrorMessage.EqualLength);w=e(w,v);if(w instanceof c.CellError)return w;v=w[0].length;return 1>v?new c.CellError(c.ErrorType.DIV_BY_ZERO, 2260d.ErrorMessage.OneValue):1===v?0:Object(k.covariance)(w[0],w[1])*(v-1)/v})}},{key:"covariances",value:function(t,u){return this.runFunction(t.args,u,this.metadata("COVARIANCE.S"),function(w,v){if(w.numberOfElements()!==v.numberOfElements())return new c.CellError(c.ErrorType.NA,d.ErrorMessage.EqualLength);w=e(w,v);return w instanceof c.CellError?w:1>=w[0].length?new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues):Object(k.covariance)(w[0],w[1])})}},{key:"ztest",value:function(t,u){var w= 2261this;return this.runFunction(t.args,u,this.metadata("Z.TEST"),function(v,C,y){v=w.arithmeticHelper.manyToExactNumbers(v.valuesFromTopLeftCorner());if(v instanceof c.CellError)return v;var z=v.length;if(void 0===y){if(2>z)return new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues);y=Object(k.stdev)(v,!0)}return 1>z?new c.CellError(c.ErrorType.NA,d.ErrorMessage.OneValue):0===y?new c.CellError(c.ErrorType.DIV_BY_ZERO):1-k.normal.cdf((Object(k.mean)(v)-C)/(y/Math.sqrt(z)),0,1)})}},{key:"ftest", 2262value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("F.TEST"),function(v,C){v=w.arithmeticHelper.manyToExactNumbers(v.valuesFromTopLeftCorner());C=w.arithmeticHelper.manyToExactNumbers(C.valuesFromTopLeftCorner());if(v instanceof c.CellError)return v;if(C instanceof c.CellError)return C;if(1>=v.length||1>=C.length)return new c.CellError(c.ErrorType.DIV_BY_ZERO);var y=Object(k.variance)(v,!0),z=Object(k.variance)(C,!0);if(0===y||0===z)return new c.CellError(c.ErrorType.DIV_BY_ZERO); 2263v=k.centralF.cdf(y/z,v.length-1,C.length-1);return 2*Math.min(v,1-v)})}},{key:"steyx",value:function(t,u){return this.runFunction(t.args,u,this.metadata("STEYX"),function(w,v){if(w.numberOfElements()!==v.numberOfElements())return new c.CellError(c.ErrorType.NA,d.ErrorMessage.EqualLength);w=e(w,v);if(w instanceof c.CellError)return w;v=w[0].length;return 2>=v?new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.ThreeValues):Math.sqrt((Object(k.sumsqerr)(w[0])-Math.pow(Object(k.covariance)(w[0],w[1])* 2264(v-1),2)/Object(k.sumsqerr)(w[1]))/(v-2))})}},{key:"slope",value:function(t,u){return this.runFunction(t.args,u,this.metadata("SLOPE"),function(w,v){if(w.numberOfElements()!==v.numberOfElements())return new c.CellError(c.ErrorType.NA,d.ErrorMessage.EqualLength);w=e(w,v);if(w instanceof c.CellError)return w;v=w[0].length;return 1>=v?new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues):Object(k.covariance)(w[0],w[1])*(v-1)/Object(k.sumsqerr)(w[1])})}},{key:"chisqtest",value:function(t, 2265u){return this.runFunction(t.args,u,this.metadata("CHISQ.TEST"),function(w,v){var C=w.height(),y=w.width();if(v.height()!==C||v.width()!==y)return new c.CellError(c.ErrorType.NA,d.ErrorMessage.EqualLength);w=e(w,v);if(w instanceof c.CellError)return w;if(1>=w[0].length)return new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues);for(var z=v=0;z<w[0].length;z++){if(0===w[1][z])return new c.CellError(c.ErrorType.DIV_BY_ZERO);v+=Math.pow(w[0][z]-w[1][z],2)/w[1][z]}return 0>v?new c.CellError(c.ErrorType.NUM,
2266d.ErrorMessage.NaN):1-k.chisquare.cdf(v,1<C&&1<y?(C-1)*(y-1):C*y-1)})}},{key:"ttest",value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("T.TEST"),function(v,C,y,z){v=w.arithmeticHelper.manyToExactNumbers(v.valuesFromTopLeftCorner());var E=w.arithmeticHelper.manyToExactNumbers(C.valuesFromTopLeftCorner());if(v instanceof c.CellError)return v;if(E instanceof c.CellError)return E;C=v.length;var H=E.length;if(1===z){if(H!==C)return new c.CellError(c.ErrorType.NA,d.ErrorMessage.EqualLength); 2267if(1>=C)return new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues);H=Array(C);for(z=0;z<C;z++)H[z]=v[z]-E[z];v=Object(k.stdev)(H,!0);if(0===v)return new c.CellError(c.ErrorType.DIV_BY_ZERO);v=Math.abs(Math.sqrt(C)*Object(k.mean)(H)/v);return y*(1-k.studentt.cdf(v,C-1))}if(2===z){if(1>=C||1>=H)return new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues);z=(Object(k.sumsqerr)(v)+Object(k.sumsqerr)(E))/(C+H-2);if(0===z)return new c.CellError(c.ErrorType.DIV_BY_ZERO);v=Math.abs((Object(k.mean)(v)- 2268Object(k.mean)(E))/Math.sqrt(z*(1/C+1/H)));return y*(1-k.studentt.cdf(v,C+H-2))}if(1>=C||1>=H)return new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.TwoValues);z=Object(k.variance)(v,!0);var G=Object(k.variance)(E,!0);if(0===z&&0===G)return new c.CellError(c.ErrorType.DIV_BY_ZERO);v=Math.abs((Object(k.mean)(v)-Object(k.mean)(E))/Math.sqrt(z/C+G/H));return y*(1-k.studentt.cdf(v,Math.pow(z/C+G/H,2)/(Math.pow(z/C,2)/(C-1)+Math.pow(G/H,2)/(H-1))))})}},{key:"skew",value:function(t,u){var w=this; 2269return this.runFunction(t.args,u,this.metadata("SKEW"),function(){for(var v=arguments.length,C=Array(v),y=0;y<v;y++)C[y]=arguments[y];v=w.arithmeticHelper.coerceNumbersExactRanges(C);if(v instanceof c.CellError)return v;C=v.length;if(3>C)return new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.ThreeValues);var z=Object(k.mean)(v),E=Object(k.stdev)(v,!0);return 0===E?new c.CellError(c.ErrorType.DIV_BY_ZERO):v.reduce(function(H,G){return H+Math.pow((G-z)/E,3)},0)*C/(C-1)/(C-2)})}},{key:"skewp", 2270value:function(t,u){var w=this;return this.runFunction(t.args,u,this.metadata("SKEW.P"),function(){for(var v=arguments.length,C=Array(v),y=0;y<v;y++)C[y]=arguments[y];v=w.arithmeticHelper.coerceNumbersExactRanges(C);if(v instanceof c.CellError)return v;C=v.length;if(3>C)return new c.CellError(c.ErrorType.DIV_BY_ZERO,d.ErrorMessage.ThreeValues);var z=Object(k.mean)(v),E=Object(k.stdev)(v,!1);return 0===E?new c.CellError(c.ErrorType.DIV_BY_ZERO):v.reduce(function(H,G){return H+Math.pow((G-z)/E,3)}, 22710)/C})}}],A(l.prototype,r),Object.defineProperty(l,"prototype",{writable:!1}),l}(g.FunctionPlugin);f.implementedFunctions={AVEDEV:{method:"avedev",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},DEVSQ:{method:"devsq",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},GEOMEAN:{method:"geomean",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},HARMEAN:{method:"harmean",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},CORREL:{method:"correl", 2272parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]},RSQ:{method:"rsq",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]},"COVARIANCE.P":{method:"covariancep",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]},"COVARIANCE.S":{method:"covariances",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]},"Z.TEST":{method:"ztest",parameters:[{argumentType:g.ArgumentTypes.RANGE}, 2273{argumentType:g.ArgumentTypes.NUMBER},{argumentType:g.ArgumentTypes.NUMBER,optionalArg:!0}]},"F.TEST":{method:"ftest",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]},STEYX:{method:"steyx",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]},SLOPE:{method:"slope",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE}]},"CHISQ.TEST":{method:"chisqtest",parameters:[{argumentType:g.ArgumentTypes.RANGE}, 2274{argumentType:g.ArgumentTypes.RANGE}]},"T.TEST":{method:"ttest",parameters:[{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.RANGE},{argumentType:g.ArgumentTypes.INTEGER,minValue:1,maxValue:2},{argumentType:g.ArgumentTypes.INTEGER,minValue:1,maxValue:3}]},SKEW:{method:"skew",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1},"SKEW.P":{method:"skewp",parameters:[{argumentType:g.ArgumentTypes.ANY}],repeatLastArgs:1}};f.aliases={COVAR:"COVARIANCE.P",FTEST:"F.TEST",PEARSON:"CORREL", 2275ZTEST:"Z.TEST",CHITEST:"CHISQ.TEST",TTEST:"T.TEST",COVARIANCEP:"COVARIANCE.P",COVARIANCES:"COVARIANCE.S",SKEWP:"SKEW.P"}},function(g,b,a){g=a(1);b.__esModule=!0;b.default=function(S,R){function O(ea){var la=(0,H.normalizeLanguageCode)(ea);(0,E.hasLanguageDictionary)(la)?(ba.runHooks("beforeLanguageChange",la),oa.language=la,ba.runHooks("afterLanguageChange",la)):(0,H.warnUserAboutLanguageRegistration)(ea)}function N(ea,la){var ta="className"===ea?ba.rootElement:ba.table;if(ja)(0,A.addClass)(ta,la); 2276else{var ua=[],xa=[];oa[ea]&&(ua=Array.isArray(oa[ea])?oa[ea]:(0,h.stringToArray)(oa[ea]));
2276la&&(xa=Array.isArray(la)?la:(0,h.stringToArray)(la));var Da=(0,h.getDifferenceOfArrays)(ua,xa);ua=(0,h.getDifferenceOfArrays)(xa,ua);Da.length&&(0,A.removeClass)(ta,Da);ua.length&&(0,A.addClass)(ta,ua)}oa[ea]=la}function Q(){var ea=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1;ea=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=0>this.validatorsInQueue- 22771?0:this.validatorsInQueue-1;this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===ea&&(ea=!0,this.onQueueEmpty(this.valid))}}}function M(ea){var la=ea.replace(",",".");return!1===isNaN(parseFloat(la))?parseFloat(la):ea}function T(ea,la,ta){if(ea.length){var ua=ba.getActiveEditor(),xa=!0;if(!1!==ba.runHooks("beforeChange",ea,la||"edit")){var Da=new Q;Da.onQueueEmpty=function(Na){ua&&xa&&ua.cancelChanges();ta(Na)};for(var Ga=ea.length- 22781;0<=Ga;Ga--)if(null===ea[Ga])ea.splice(Ga,1);else{var Ha=(0,B.default)(ea[Ga],4),Ja=Ha[0],Oa=Ha[3];Ha=Y.propToCol(Ha[1]);Ja=ba.getCellMeta(Ja,Ha);"numeric"===Ja.type&&"string"==typeof Oa&&(0,m.isNumericLike)(Oa)&&(ea[Ga][3]=M(Oa));ba.getCellValidator(Ja)&&(Da.addValidatorToQueue(),ba.validateCell(ea[Ga][3],Ja,function(Na,Pa){return function(Ra){if("boolean"!=typeof Ra)throw Error("Validation error: result is not boolean");!1===Ra&&!1===Pa.allowInvalid&&(xa=!1,ea.splice(Na,1),Pa.valid=!0,Ra=ba.getCell(Pa.visualRow, 2279Pa.visualCol),null!==Ra&&(0,A.removeClass)(Ra,na.invalidCellClassName));Da.removeValidatorFormQueue()}}(Ga,Ja),la))}Da.checkIfQueueIsEmpty()}else ua&&ua.cancelChanges()}}function Z(ea,la){var ta=ea.length-1;if(!(0>ta)){for(;0<=ta;ta--){var ua=!1;if(null!==ea[ta]){if(null!==ea[ta][2]&&void 0!==ea[ta][2]||null!==ea[ta][3]&&void 0!==ea[ta][3]){if(na.allowInsertRow)for(;ea[ta][0]>ba.countRows()-1;){var xa=Y.createRow(void 0,void 0,la);if(!(1<=xa)){ua=!0;break}ha.createRow(null,xa)}if("array"===ba.dataType&& 2280(!na.columns||0===na.columns.length)&&na.allowInsertColumn)for(;Y.propToCol(ea[ta][1])>ba.countCols()-1;){xa=Y.createCol(void 0,void 0,la);if(!(1<=xa)){ua=!0;break}ha.createColumn(null,xa)}ua||Y.set(ea[ta][0],ea[ta][1],ea[ta][3])}}else ea.splice(ta,1)}ba.forceFullRender=!0;Aa.adjustRowsAndCols();ba.runHooks("beforeChangeRender",ea,la);aa.lockEditor();ba._refreshBorders(null);aa.unlockEditor();ba.view.adjustElementsSize();ba.runHooks("afterChange",ea,la||"edit");(ea=ba.getActiveEditor())&&(0,q.isDefined)(ea.refreshValue)&& 2281ea.refreshValue()}}function L(ea,la,ta){return Array.isArray(ea)?ea:[[ea,la,ta]]}function U(ea){return function(){throw Error('The "'.concat(ea,'" method cannot be called because this Handsontable instance has been destroyed'));}}var V,Y,aa,W=this,ca=2<arguments.length&&void 0!==arguments[2]&&arguments[2],ia=!1,ba=this,fa=new c.default(ba),ja=!0;(0,C.hasValidParameter)(ca)&&(0,C.registerAsRootInstance)(this);this.rootElement=S;this.rootDocument=S.ownerDocument;this.rootWindow=this.rootDocument.defaultView; 2282this.isDestroyed=!1;this.executionSuspendedCounter=this.renderSuspendedCounter=0;ca=null!==(V=null==R?void 0:R.layoutDirection)&&void 0!==V?V:"inherit";var qa=["rtl","ltr"].includes(ca)?ca:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",qa);this.isRtl=function(){return"rtl"===qa};this.isLtr=function(){return!ba.isRtl()};this.getDirectionFactor=function(){return ba.isLtr()?1:-1};R.language=(0,E.getValidLanguageCode)(R.language);var ha=new I.MetaManager(ba, 2283R,[I.DynamicCellMetaMod,I.ExtendMetaPropertiesMod]),na=ha.getTableMeta(),oa=ha.getGlobalMeta(),ma=(0,K.createUniqueMap)();this.container=this.rootDocument.createElement("div");this.renderCall=!1;S.insertBefore(this.container,S.firstChild);(0,C.isRootInstance)(this)&&(0,q._injectProductInfo)(R.licenseKey,S);this.guid="ht_".concat((0,r.randomString)());this.columnIndexMapper=new v.IndexMapper;this.rowIndexMapper=new v.IndexMapper;var pa=new u.default(ba);this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0, 22843)||(this.rootElement.id=this.guid);var sa=function(ea){var la=ea.row;ea=ea.col;return ba._createCellCoords(0<=la?ba.rowIndexMapper.getRenderableFromVisualIndex(la):la,0<=ea?ba.columnIndexMapper.getRenderableFromVisualIndex(ea):ea)},va=new G.Selection(na,{rowIndexMapper:function(){return ba.rowIndexMapper},columnIndexMapper:function(){return ba.columnIndexMapper},countCols:function(){return ba.countCols()},countRows:function(){return ba.countRows()},propToCol:function(ea){return Y.propToCol(ea)}, 2285isEditorOpened:function(){return!!ba.getActiveEditor()&&ba.getActiveEditor().isOpened()},countColsTranslated:function(){return W.view.countRenderableColumns()},countRowsTranslated:function(){return W.view.countRenderableRows()},getShortcutManager:function(){return ba.getShortcutManager()},createCellCoords:function(ea,la){return ba._createCellCoords(ea,la)},createCellRange:function(ea,la,ta){return ba._createCellRange(ea,la,ta)},visualToRenderableCoords:sa,renderableToVisualCoords:function(ea){var la= 2286ea.row;ea=ea.col;return ba._createCellCoords(0<=la?ba.rowIndexMapper.getVisualFromRenderableIndex(la):la,0<=ea?ba.columnIndexMapper.getVisualFromRenderableIndex(ea):ea)},isDisabledCellSelection:function(ea,la){return ba.getCellMeta(ea,la).disableVisualSelection}});this.selection=va;V=function(ea){ea.hiddenIndexesChanged&&W.selection.refresh()};this.columnIndexMapper.addLocalHook("cacheUpdated",V);this.rowIndexMapper.addLocalHook("cacheUpdated",V);this.selection.addLocalHook("beforeSetRangeStart", 2287function(ea){W.runHooks("beforeSetRangeStart",ea)});this.selection.addLocalHook("beforeSetRangeStartOnly",function(ea){W.runHooks("beforeSetRangeStartOnly",ea)});this.selection.addLocalHook("beforeSetRangeEnd",function(ea){W.runHooks("beforeSetRangeEnd",ea);0>ea.row&&(ea.row=W.view._wt.wtTable.getFirstVisibleRow());0>ea.col&&(ea.col=W.view._wt.wtTable.getFirstVisibleColumn())});this.selection.addLocalHook("afterSetRangeEnd",function(ea){var la=(0,d.createObjectPropListener)(!1),ta=W.selection.getSelectedRange(), 2288ua=ta.current(),xa=ua.from;ua=ua.to;ta=ta.size()-1;W.runHooks("afterSelection",xa.row,xa.col,ua.row,ua.col,la,ta);W.runHooks("afterSelectionByProp",xa.row,ba.colToProp(xa.col),ua.row,ba.colToProp(ua.col),la,ta);xa=W.selection.isSelectedByAnyHeader();ta=W.selection.selectedRange.current();ua=!0;ia&&(ua=!1);la.isTouched()&&(ua=!la.value);la=W.selection.isSelectedByRowHeader();var Da=W.selection.isSelectedByColumnHeader();!1!==ua&&(xa?la?W.view.scrollViewportVertically(ba.rowIndexMapper.getRenderableFromVisualIndex(ea.row)): 2289Da&&W.view.scrollViewportHorizontally(ba.columnIndexMapper.getRenderableFromVisualIndex(ea.col)):ta&&!W.selection.isMultiple()?W.view.scrollViewport(sa(ta.from)):W.view.scrollViewport(sa(ea)));la&&Da?(0,A.addClass)(W.rootElement,["ht__selection--rows","ht__selection--columns"]):la?((0,A.removeClass)(W.rootElement,"ht__selection--columns"),(0,A.addClass)(W.rootElement,"ht__selection--rows")):Da?((0,A.removeClass)(W.rootElement,"ht__selection--rows"),(0,A.addClass)(W.rootElement,"ht__selection--columns")): 2290(0,A.removeClass)(W.rootElement,["ht__selection--rows","ht__selection--columns"]);W._refreshBorders(null)});this.selection.addLocalHook("afterSelectionFinished",function(ea){var la=ea.length-1,ta=ea[la];ea=ta.from;ta=ta.to;
2290W.runHooks("afterSelectionEnd",ea.row,ea.col,ta.row,ta.col,la);W.runHooks("afterSelectionEndByProp",ea.row,ba.colToProp(ea.col),ta.row,ba.colToProp(ta.col),la)});this.selection.addLocalHook("afterIsMultipleSelection",function(ea){var la=W.runHooks("afterIsMultipleSelection",ea.value); 2291ea.value&&(ea.value=la)});this.selection.addLocalHook("beforeModifyTransformStart",function(ea){W.runHooks("modifyTransformStart",ea)});this.selection.addLocalHook("afterModifyTransformStart",function(ea,la,ta){W.runHooks("afterModifyTransformStart",ea,la,ta)});this.selection.addLocalHook("beforeModifyTransformEnd",function(ea){W.runHooks("modifyTransformEnd",ea)});this.selection.addLocalHook("afterModifyTransformEnd",function(ea,la,ta){W.runHooks("afterModifyTransformEnd",ea,la,ta)});this.selection.addLocalHook("afterDeselect", 2292function(){aa.destroyEditor();W._refreshBorders();(0,A.removeClass)(W.rootElement,["ht__selection--rows","ht__selection--columns"]);W.runHooks("afterDeselect")});this.selection.addLocalHook("insertRowRequire",function(ea){W.alter("insert_row",ea,1,"auto")});this.selection.addLocalHook("insertColRequire",function(ea){W.alter("insert_col",ea,1,"auto")});var Aa={alter:function(ea,la){var ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,ua=3<arguments.length?arguments[3]:void 0,xa=4<arguments.length? 2293arguments[4]:void 0;var Da=function(Oa){if(0===Oa.length)return[];Oa=(0,D.default)(Oa);return Oa.sort(function(Na,Pa){Na=(0,B.default)(Na,1)[0];Pa=(0,B.default)(Pa,1)[0];return Na===Pa?0:Na>Pa?1:-1}),(0,h.arrayReduce)(Oa,function(Na,Pa){var Ra=(0,B.default)(Pa,2);Pa=Ra[0];Ra=Ra[1];var ab=Na[Na.length-1],Va=(0,B.default)(ab,2);Va=Va[0]+Va[1];Pa<=Va?ab[1]+=Math.max(Ra-(Va-Pa),0):Na.push([Pa,Ra]);return Na},[Oa[0]])};switch(ea){case "insert_row":Da=ba.countSourceRows();if(na.maxRows===Da)return;if(la= 2294(0,q.isDefined)(la)?la:Da,Da=Y.createRow(la,ta,ua)){ha.createRow(ba.toPhysicalRow(la),ta);var Ga=va.selectedRange.current(),Ha=null==Ga?void 0:Ga.from;ta=null==Ha?void 0:Ha.row;if((0,q.isDefined)(ta)&&ta>=la){var Ja=Ga.to;Ga=Ja.row;Ja=Ja.col;Ha=Ha.col;va.isSelectedByRowHeader()&&(Ha=-1);va.getSelectedRange().pop();va.setRangeStartOnly(ba._createCellCoords(ta+Da,Ha),!0);va.setRangeEnd(ba._createCellCoords(Ga+Da,Ja))}else ba._refreshBorders()}break;case "insert_col":if(Da=Y.createCol(la,ta,ua)){if(ha.createColumn(ba.toPhysicalColumn(la), 2295ta),Array.isArray(na.colHeaders))ta=[la,0],ta.length+=Da,Array.prototype.splice.apply(na.colHeaders,ta);Ga=va.selectedRange.current();Ha=null==Ga?void 0:Ga.from;ta=null==Ha?void 0:Ha.col;(0,q.isDefined)(ta)&&ta>=la?(Ja=Ga.to,Ga=Ja.row,Ja=Ja.col,Ha=Ha.row,va.isSelectedByColumnHeader()&&(Ha=-1),va.getSelectedRange().pop(),va.setRangeStartOnly(ba._createCellCoords(Ha,ta+Da),!0),va.setRangeEnd(ba._createCellCoords(Ga,Ja+Da))):ba._refreshBorders()}break;case "remove_row":Ha=function(Oa){var Na=0;(0,h.arrayEach)(Oa, 2296function(Pa){Pa=(0,B.default)(Pa,2);var Ra=Pa[0];Pa=Pa[1];var ab=(0,q.isEmpty)(Ra)?ba.countRows()-1:Math.max(Ra-Na,0);if(Number.isInteger(Ra)&&(Ra=Math.max(Ra-Na,0)),Y.removeRow(Ra,Pa,ua)){ha.removeRow(ba.toPhysicalRow(ab),Pa);Ra=ba.countRows();var Va=na.fixedRowsTop;Va>=ab+1&&(na.fixedRowsTop-=Math.min(Pa,Va-ab));(Va=na.fixedRowsBottom)&&ab>=Ra-Va&&(na.fixedRowsBottom-=Math.min(Pa,Va));Na+=Pa}})};Array.isArray(la)?Ha(Da(la)):Ha([[la,ta]]);Aa.adjustRowsAndCols();ba._refreshBorders();break;case "remove_col":Ha= 2297function(Oa){var Na=0;(0,h.arrayEach)(Oa,function(Pa){var Ra=(0,B.default)(Pa,2);Pa=Ra[0];Ra=Ra[1];var ab=(0,q.isEmpty)(Pa)?ba.countCols()-1:Math.max(Pa-Na,0),Va=ba.toPhysicalColumn(ab);if(Number.isInteger(Pa)&&(Pa=Math.max(Pa-Na,0)),Y.removeCol(Pa,Ra,ua))ha.removeColumn(Va,Ra),Pa=na.fixedColumnsStart,Pa>=ab+1&&(na.fixedColumnsStart-=Math.min(Ra,Pa-ab)),Array.isArray(na.colHeaders)&&(void 0===Va&&(Va=-1),na.colHeaders.splice(Va,Ra)),Na+=Ra})};Array.isArray(la)?Ha(Da(la)):Ha([[la,ta]]);Aa.adjustRowsAndCols(); 2298ba._refreshBorders();break;default:throw Error('There is no such action "'.concat(ea,'"'));}xa||Aa.adjustRowsAndCols()},adjustRowsAndCols:function(){var ea,la=na.minRows,ta=na.minSpareRows,ua=na.minCols,xa=na.minSpareCols;if(la){var Da=ba.countRows();Da<la&&Y.createRow(Da,la-Da,"auto")}ta&&(la=ba.countEmptyRows(!0),la<ta&&(ta=Math.min(ta-la,na.maxRows-ba.countSourceRows()),Y.createRow(ba.countRows(),ta,"auto")));(ua||xa)&&(ea=ba.countEmptyCols(!0));ta=ba.countCols();ua&&!na.columns&&ta<ua&&(ua-=ta, 2299ea+=ua,Y.createCol(ta,ua,"auto"));xa&&!na.columns&&"array"===ba.dataType&&ea<xa&&(ta=ba.countCols(),Y.createCol(ta,Math.min(xa-ea,na.maxCols-ta),"auto"));var Ga=ba.countRows(),Ha=ba.countCols();0!==Ga&&0!==Ha||va.deselect();va.isSelected()&&(0,h.arrayEach)(va.selectedRange,function(Ja){var Oa=!1,Na=Ja.from.row,Pa=Ja.from.col,Ra=Ja.to.row;
2299Ja=Ja.to.col;Na>Ga-1?(Oa=!0,Ra>(Na=Ga-1)&&(Ra=Na)):Ra>Ga-1&&(Oa=!0,Na>(Ra=Ga-1)&&(Na=Ra));Pa>Ha-1?(Oa=!0,Ja>(Pa=Ha-1)&&(Ja=Pa)):Ja>Ha-1&&(Oa=!0,Pa>(Ja=Ha-1)&&(Pa= 2300Ja));Oa&&ba.selectCell(Na,Pa,Ra,Ja)});ba.view&&ba.view.adjustElementsSize()},populateFromArray:function(ea,la,ta,ua,xa,Da,Ga){var Ha,Ja,Oa=[],Na,Pa=[];var Ra=ea.row;var ab=ea.col;if(0===(Ha=la.length))return!1;var Va=Na=0;switch((0,d.isObject)(ta)&&(Na=ta.col-ab+1,Va=ta.row-Ra+1),xa){case "shift_down":ea=(0,h.pivot)(la);ta=ea.length;ua=Math.max(ta,Na);Da=ba.getData().slice(Ra);Ga=(0,h.pivot)(Da).slice(ab,ab+ua);for(Ja=0;Ja<ua;Ja+=1)if(Ja<ta){xa=0;for(Ha=ea[Ja].length;xa<Va-Ha;xa+=1)ea[Ja].push(ea[Ja][xa% 2301Ha]);Ja<Ga.length?Pa.push(ea[Ja].concat(Ga[Ja])):Pa.push(ea[Ja].concat(Array(Da.length).fill(null)))}else Pa.push(ea[Ja%ta].concat(Ga[Ja]));ba.populateFromArray(Ra,ab,(0,h.pivot)(Pa));break;case "shift_right":ea=la.length;ta=Math.max(ea,Va);ua=ba.getData().slice(Ra).map(function(Bb){return Bb.slice(ab)});for(xa=0;xa<ta;xa+=1)if(xa<ea){Ja=0;for(Va=la[xa].length;Ja<Na-Va;Ja+=1)la[xa].push(la[xa][Ja%Va]);var sb;if(xa<ua.length)for(Ja=0;Ja<ua[xa].length;Ja+=1)la[xa].push(ua[xa][Ja]);else(sb=la[xa]).push.apply(sb, 2302(0,D.default)(Array(ua[0].length).fill(null)))}else la.push(la[xa%Ha].slice(0,ta).concat(ua[xa]));ba.populateFromArray(Ra,ab,la);break;default:Ra=ea.row;Na=ea.col;var tb;Pa={row:ta&&ea?ta.row-ea.row+1:1,col:ta&&ea?ta.col-ea.col+1:1};var lb=sb=0,fb=!0,kb=function(Bb){var Cb=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,vb=la[Bb%la.length];return null!==Cb?vb[Cb%vb.length]:vb},zb=la.length,db=ta?ta.row-ea.row+1:0;Ha=ta?db:Math.max(zb,db);for(xa=0;xa<Ha&&!(ta&&Ra>ta.row&&db>zb||!na.allowInsertRow&& 2303Ra>ba.countRows()-1||Ra>=na.maxRows);xa++){var Ab=xa-sb,hb=kb(Ab).length,ub=ta?ta.col-ea.col+1:0;if(Va=ta?ub:Math.max(hb,ub),Na=ea.col,tb=ba.getCellMeta(Ra,Na),"CopyPaste.paste"!==ua&&"Autofill.fill"!==ua||!tb.skipRowOnPaste){for(Ja=lb=0;Ja<Va&&!(ta&&Na>ta.col&&ub>hb||!na.allowInsertColumn&&Na>ba.countCols()-1||Na>=na.maxCols);Ja++)if(tb=ba.getCellMeta(Ra,Na),"CopyPaste.paste"!==ua&&"Autofill.fill"!==ua||!tb.skipColumnOnPaste){if(!tb.readOnly||"UndoRedo.undo"===ua){var Ya=Ja-lb,ib=kb(Ab,Ya),gb=ba.getDataAtCell(Ra, 2304Na);Ya={row:Ab,col:Ya};"Autofill.fill"===ua&&(Ya=ba.runHooks("beforeAutofillInsidePopulate",Ya,Da,la,Ga,{},Pa))&&(ib=(0,q.isUndefined)(Ya.value)?ib:Ya.value);null!==ib&&"object"===(0,F.default)(ib)?(Array.isArray(ib)&&null===gb&&(gb=[]),null===gb||"object"!==(0,F.default)(gb))?fb=!1:(gb=(0,d.duckSchema)(Array.isArray(gb)?gb:gb[0]||gb),Ya=(0,d.duckSchema)(Array.isArray(ib)?ib:ib[0]||ib),(0,d.isObjectEqual)(gb,Ya)?ib=(0,d.deepClone)(ib):fb=!1):null!==gb&&"object"===(0,F.default)(gb)&&(fb=!1);fb&&Oa.push([Ra, 2305Na,ib]);fb=!0}Na+=1}else lb+=1,Na+=1,Va+=1;Ra+=1}else sb+=1,Ra+=1,Ha+=1}ba.setDataAtCell(Oa,null,null,ua||"populateFromArray")}}};this.init=function(){pa.setData(na.data);ba.runHooks("beforeInit");((0,p.isMobileBrowser)()||(0,p.isIpadOS)())&&(0,A.addClass)(ba.rootElement,"mobile");this.updateSettings(na,!0);this.view=new t.default(this);aa=e.default.getInstance(ba,na,va);ba.runHooks("init");this.forceFullRender=!0;this.view.render();"object"===(0,F.default)(ja)&&(ba.runHooks("afterChange",ja[0],ja[1]), 2306ja=!1);ba.runHooks("afterInit")};this._createCellCoords=function(ea,la){return ba.view._wt.createCellCoords(ea,la)};this._createCellRange=function(ea,la,ta){return ba.view._wt.createCellRange(ea,la,ta)};this.validateCell=function(ea,la,ta,ua){function xa(Ha){if(!(1<arguments.length&&void 0!==arguments[1]&&
2306!arguments[1]||!0===la.hidden)){var Ja=la.visualCol,Oa=la.visualRow,Na=ba.getCell(Oa,Ja,!0);Na&&"TH"!==Na.nodeName&&(Oa=ba.rowIndexMapper.getRenderableFromVisualIndex(Oa),Ja=ba.columnIndexMapper.getRenderableFromVisualIndex(Ja), 2307ba.view._wt.getSetting("cellRenderer",Oa,Ja,Na))}ta(Ha)}var Da,Ga=ba.getCellValidator(la);(0,q.isRegExp)(Ga)&&(Da=Ga,Ga=function(Ha,Ja){Ja(Da.test(Ha))});(0,x.isFunction)(Ga)?(ea=ba.runHooks("beforeValidate",ea,la.visualRow,la.prop,ua),ba._registerImmediate(function(){Ga.call(la,ea,function(Ha){ba&&(Ha=ba.runHooks("afterValidate",Ha,ea,la.visualRow,la.prop,ua),la.valid=Ha,xa(Ha),ba.runHooks("postAfterValidate",Ha,ea,la.visualRow,la.prop,ua))})})):ba._registerImmediate(function(){la.valid=!0;xa(la.valid, 2308!1)})};this.setDataAtCell=function(ea,la,ta,ua){var xa;ta=L(ea,la,ta);var Da=[],Ga=ua;ua=0;for(xa=ta.length;ua<xa;ua++){if("object"!==(0,F.default)(ta[ua]))throw Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof ta[ua][1])throw Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");var Ha=ta[ua][1]>=this.countCols()?ta[ua][1]:Y.colToProp(ta[ua][1]); 2309Da.push([ta[ua][0],Ha,pa.getAtCell(this.toPhysicalRow(ta[ua][0]),ta[ua][1]),ta[ua][2]])}Ga||"object"!==(0,F.default)(ea)||(Ga=la);ba.runHooks("afterSetDataAtCell",Da,Ga);T(Da,Ga,function(){Z(Da,Ga)})};this.setDataAtRowProp=function(ea,la,ta,ua){var xa;ta=L(ea,la,ta);var Da=[],Ga=ua;ua=0;for(xa=ta.length;ua<xa;ua++)Da.push([ta[ua][0],ta[ua][1],pa.getAtCell(this.toPhysicalRow(ta[ua][0]),ta[ua][1]),ta[ua][2]]);Ga||"object"!==(0,F.default)(ea)||(Ga=la);ba.runHooks("afterSetDataAtRowProp",Da,Ga);T(Da, 2310Ga,function(){Z(Da,Ga)})};this.listen=function(){ba&&!ba.isListening()&&(P=ba.guid,ba.runHooks("afterListen"))};this.unlisten=function(){this.isListening()&&(P=null,ba.runHooks("afterUnlisten"))};this.isListening=function(){return P===ba.guid};this.destroyEditor=function(){ba._refreshBorders(0<arguments.length&&void 0!==arguments[0]&&arguments[0],!(1<arguments.length&&void 0!==arguments[1])||arguments[1])};this.populateFromArray=function(ea,la,ta,ua,xa,Da,Ga,Ha,Ja){if("object"!==(0,F.default)(ta)|| 2311"object"!==(0,F.default)(ta[0]))throw Error("populateFromArray parameter `input` must be an array of arrays");ua="number"==typeof ua?ba._createCellCoords(ua,xa):null;return Aa.populateFromArray(ba._createCellCoords(ea,la),ta,ua,Da,Ga,Ha,Ja)};this.spliceCol=function(ea,la,ta){for(var ua,xa=arguments.length,Da=Array(3<xa?xa-3:0),Ga=3;Ga<xa;Ga++)Da[Ga-3]=arguments[Ga];return(ua=Y).spliceCol.apply(ua,[ea,la,ta].concat(Da))};this.spliceRow=function(ea,la,ta){for(var ua,xa=arguments.length,Da=Array(3<xa? 2312xa-3:0),Ga=3;Ga<xa;Ga++)Da[Ga-3]=arguments[Ga];return(ua=Y).spliceRow.apply(ua,[ea,la,ta].concat(Da))};this.getSelected=function(){if(va.isSelected())return(0,h.arrayMap)(va.getSelectedRange(),function(ea){var la=ea.from;ea=ea.to;return[la.row,la.col,ea.row,ea.col]})};this.getSelectedLast=function(){var ea,la=this.getSelected();return la&&0<la.length&&(ea=la[la.length-1]),ea};this.getSelectedRange=function(){if(va.isSelected())return Array.from(va.getSelectedRange())};this.getSelectedRangeLast=function(){var ea, 2313la=this.getSelectedRange();return la&&0<la.length&&(ea=la[la.length-1]),ea};this.emptySelectedCells=function(ea){var la=this;if(va.isSelected()&&0!==this.countRows()&&0!==this.countCols()){var ta=[];(0,h.arrayEach)(va.getSelectedRange(),function(ua){var xa=ua.getTopStartCorner(),Da=ua.getBottomEndCorner();(0,m.rangeEach)(xa.row,Da.row,function(Ga){(0,m.rangeEach)(xa.col,Da.col,function(Ha){la.getCellMeta(Ga,Ha).readOnly||ta.push([Ga,Ha,null])})})});0<ta.length&&this.setDataAtCell(ta,ea)}};this.isRenderSuspended= 2314function(){return 0<this.renderSuspendedCounter};this.suspendRender=function(){this.renderSuspendedCounter+=1};this.resumeRender=function(){var ea=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(ea,0);this.isRenderSuspended()||ea!==this.renderSuspendedCounter||(this.renderCall?this.render():this._refreshBorders(null))};this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||(aa.lockEditor(),this._refreshBorders(null),aa.unlockEditor()))}; 2315this.batchRender=function(ea){this.suspendRender();ea=ea();return this.resumeRender(),ea};this.isExecutionSuspended=function(){return 0<this.executionSuspendedCounter};this.suspendExecution=function(){this.executionSuspendedCounter+=1;this.columnIndexMapper.suspendOperations();this.rowIndexMapper.suspendOperations()};this.resumeExecution=function(){var ea=0<arguments.length&&void 0!==arguments[0]&&arguments[0],la=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(la,0);(!this.isExecutionSuspended()&& 2316la===this.executionSuspendedCounter||ea)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())};this.batchExecution=function(ea){var la=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();var ta=ea();return this.resumeExecution(la),ta};this.batch=function(ea){this.suspendRender();this.suspendExecution();ea=ea();return this.resumeExecution(),this.resumeRender(),ea};this.refreshDimensions=function(){if(ba.view){var ea=ba.view.getLastSize(),la= 2317ea.width;ea=ea.height;var ta=ba.rootElement.getBoundingClientRect(),ua=ta.width;ta=ta.height;var xa=ua!==la||ta!==ea;!1===ba.runHooks("beforeRefreshDimensions",{width:la,height:ea},{width:ua,height:ta},xa)||((xa||ba.view._wt.wtOverlays.scrollableElement===ba.rootWindow)&&(ba.view.setLastSize(ua,ta),ba.render()),ba.runHooks("afterRefreshDimensions",{width:la,height:ea},{width:ua,height:ta},xa))}};this.updateData=function(ea,la){var ta=this;(0,I.replaceData)(ea,function(ua){Y=ua},function(ua){Y=ua; 2318ba.columnIndexMapper.fitToLength(ta.getInitialColumnCount());ba.rowIndexMapper.fitToLength(ta.countSourceRows());Aa.adjustRowsAndCols()},{hotInstance:ba,dataMap:Y,dataSource:pa,internalSource:"updateData",source:la,firstRun:ja})};this.loadData=function(ea,la){(0,I.replaceData)(ea,function(ta){Y=ta},function(){ha.clearCellsCache();ba.initIndexMappers();Aa.adjustRowsAndCols();ja&&(ja=[null,"loadData"])},{hotInstance:ba,dataMap:Y,dataSource:pa,internalSource:"loadData",source:la,firstRun:ja})};this.getInitialColumnCount= 2319function(){var ea=na.columns,la=0;if(Array.isArray(ea))la=ea.length;else if((0,x.isFunction)(ea))if("array"===ba.dataType)for(var ta=this.countSourceCols(),ua=0;ua<ta;ua+=1)ea(ua)&&(la+=1);else"object"!==ba.dataType&&"function"!==ba.dataType||(la=Y.colToPropCache.length);else(0,q.isDefined)(na.dataSchema)?(ea=Y.getSchema(),la=Array.isArray(ea)?ea.length:(0,d.deepObjectSize)(ea)):la=this.countSourceCols();return la};this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()); 2320this.rowIndexMapper.initToLength(this.countSourceRows())};this.getData=function(ea,la,ta,ua){return(0,q.isUndefined)(ea)?Y.getAll():Y.getRange(ba._createCellCoords(ea,la),ba._createCellCoords(ta,ua),Y.DESTINATION_RENDERER)};this.getCopyableText=function(ea,la,ta,ua){return Y.getCopyableText(ba._createCellCoords(ea,la),ba._createCellCoords(ta,ua))};this.getCopyableData=function(ea,la){return Y.getCopyable(ea,Y.colToProp(la))};
2320this.getSchema=function(){return Y.getSchema()};this.updateSettings=function(ea){var la, 2321ta=1<arguments.length&&void 0!==arguments[1]&&arguments[1];var ua=(ja?ba.loadData:ba.updateData).bind(this);var xa=!1;if((0,q.isDefined)(ea.rows))throw Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,q.isDefined)(ea.cols))throw Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,q.isDefined)(ea.ganttChart))throw Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(la in ea)"data"=== 2322la||("language"===la?O(ea.language):"className"===la?N("className",ea.className):"tableClassName"===la&&ba.table?(N("tableClassName",ea.tableClassName),ba.view._wt.wtOverlays.syncOverlayTableClassNames()):z.default.getSingleton().isRegistered(la)||z.default.getSingleton().isDeprecated(la)?((0,x.isFunction)(ea[la])||Array.isArray(ea[la]))&&(ea[la].initialHook=!0,ba.addHook(la,ea[la])):!ta&&(0,d.hasOwnProperty)(ea,la)&&(oa[la]=ea[la]));void 0===ea.data&&void 0===na.data?ua(null,"updateSettings"):void 0!== 2323ea.data?ua(ea.data,"updateSettings"):void 0!==ea.columns&&(Y.createMap(),ba.initIndexMappers());var Da=ba.countCols(),Ga=na.columns;if(Ga&&(0,x.isFunction)(Ga)&&(xa=!0),void 0===ea.cell&&void 0===ea.cells&&void 0===ea.columns||ha.clearCache(),0<Da)for(ua=la=0;la<Da;la++){if(Ga){var Ha=xa?Ga(la):Ga[ua];Ha&&ha.updateColumnMeta(ua,Ha)}ua+=1}(0,q.isDefined)(ea.cell)&&(0,d.objectEach)(ea.cell,function(Ja){ba.setCellMetaObject(Ja.row,Ja.col,Ja)});ba.runHooks("afterCellMetaReset");la=ba.rootElement.style.height; 2324""!==la&&(la=parseInt(ba.rootElement.style.height,10));xa=ea.height;((0,x.isFunction)(xa)&&(xa=xa()),ta)&&ba.rootElement.getAttribute("style")&&ba.rootElement.setAttribute("data-initialstyle",ba.rootElement.getAttribute("style"));null===xa?(ua=ba.rootElement.getAttribute("data-initialstyle"))&&(-1<ua.indexOf("height")||-1<ua.indexOf("overflow"))?ba.rootElement.setAttribute("style",ua):(ba.rootElement.style.height="",ba.rootElement.style.overflow=""):void 0!==xa&&(ba.rootElement.style.height=isNaN(xa)? 2325"".concat(xa):"".concat(xa,"px"),ba.rootElement.style.overflow="hidden");void 0!==ea.width&&(ua=ea.width,(0,x.isFunction)(ua)&&(ua=ua()),ba.rootElement.style.width=isNaN(ua)?"".concat(ua):"".concat(ua,"px"));ta||(ba.view&&(ba.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),ba.view._wt.exportSettingsAsClassNames()),ba.runHooks("afterUpdateSettings",ea));Aa.adjustRowsAndCols();ba.view&&!ja&&(ba.forceFullRender=!0,aa.lockEditor(),ba._refreshBorders(null),ba.view._wt.wtOverlays.adjustElementsSize(), 2326aa.unlockEditor());ta||!ba.view||""!==la&&""!==xa&&void 0!==xa||la===xa||ba.view._wt.wtOverlays.updateMainScrollableElements()};this.getValue=function(){var ea=ba.getSelectedLast();if(na.getValue){if((0,x.isFunction)(na.getValue))return na.getValue.call(ba);if(ea)return ba.getData()[ea[0][0]][na.getValue]}else if(ea)return ba.getDataAtCell(ea[0],ea[1])};this.getSettings=function(){return na};this.clear=function(){this.selectAll();this.emptySelectedCells()};this.alter=function(ea,la,ta,ua,xa){Aa.alter(ea, 2327la,ta,ua,xa)};this.getCell=function(ea,la){var ta=2<arguments.length&&void 0!==arguments[2]&&arguments[2],ua=la,xa=ea;if(0<=la){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(la)))return null;ua=this.columnIndexMapper.getRenderableFromVisualIndex(la)}if(0<=ea){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(ea)))return null;xa=this.rowIndexMapper.getRenderableFromVisualIndex(ea)}return null===xa||null===ua?null:ba.view.getCellAtCoords(ba._createCellCoords(xa,ua),ta)};this.getCoords=function(ea){var la= 2328this.view._wt.wtTable.getCoords(ea);if(null===la)return null;ea=la.row;la=la.col;var ta=ea,ua=la;return 0<=ea&&(ta=this.rowIndexMapper.getVisualFromRenderableIndex(ea)),0<=la&&(ua=this.columnIndexMapper.getVisualFromRenderableIndex(la)),ba._createCellCoords(ta,ua)};this.colToProp=function(ea){return Y.colToProp(ea)};this.propToCol=function(ea){return Y.propToCol(ea)};this.toVisualRow=function(ea){return W.rowIndexMapper.getVisualFromPhysicalIndex(ea)};this.toVisualColumn=function(ea){return W.columnIndexMapper.getVisualFromPhysicalIndex(ea)}; 2329this.toPhysicalRow=function(ea){return W.rowIndexMapper.getPhysicalFromVisualIndex(ea)};this.toPhysicalColumn=function(ea){return W.columnIndexMapper.getPhysicalFromVisualIndex(ea)};this.getDataAtCell=function(ea,la){return Y.get(ea,Y.colToProp(la))};this.getDataAtRowProp=function(ea,la){return Y.get(ea,la)};this.getDataAtCol=function(ea){var la;return(la=[]).concat.apply(la,(0,D.default)(Y.getRange(ba._createCellCoords(0,ea),ba._createCellCoords(na.data.length-1,ea),Y.DESTINATION_RENDERER)))};this.getDataAtProp= 2330function(ea){var la;ea=Y.getRange(ba._createCellCoords(0,Y.propToCol(ea)),ba._createCellCoords(na.data.length-1,Y.propToCol(ea)),Y.DESTINATION_RENDERER);return(la=[]).concat.apply(la,(0,D.default)(ea))};
2330this.getSourceData=function(ea,la,ta,ua){return void 0===ea?pa.getData():pa.getByRange(ba._createCellCoords(ea,la),ba._createCellCoords(ta,ua))};this.getSourceDataArray=function(ea,la,ta,ua){return void 0===ea?pa.getData(!0):pa.getByRange(ba._createCellCoords(ea,la),ba._createCellCoords(ta,ua),!0)}; 2331this.getSourceDataAtCol=function(ea){return pa.getAtColumn(ea)};this.setSourceDataAtCell=function(ea,la,ta,ua){ea=L(ea,la,ta);la=this.hasHook("afterSetSourceDataAtCell");var xa=[];la&&(0,h.arrayEach)(ea,function(Da){var Ga=(0,B.default)(Da,3);Da=Ga[0];var Ha=Ga[1];Ga=Ga[2];xa.push([Da,Ha,pa.getAtCell(Da,Ha),Ga])});(0,h.arrayEach)(ea,function(Da){Da=(0,B.default)(Da,3);pa.setAtCell(Da[0],Da[1],Da[2])});la&&this.runHooks("afterSetSourceDataAtCell",xa,ua);this.render();(ua=ba.getActiveEditor())&&(0,q.isDefined)(ua.refreshValue)&& 2332ua.refreshValue()};this.getSourceDataAtRow=function(ea){return pa.getAtRow(ea)};this.getSourceDataAtCell=function(ea,la){return pa.getAtCell(ea,la)};this.getDataAtRow=function(ea){return Y.getRange(ba._createCellCoords(ea,0),ba._createCellCoords(ea,this.countCols()-1),Y.DESTINATION_RENDERER)[0]||[]};this.getDataType=function(ea,la,ta,ua){var xa=this;ea=void 0===ea?[0,0,this.countRows(),this.countCols()]:[ea,la,ta,ua];la=ea[0];var Da=ea[1];ta=ea[2];var Ga=ea[3],Ha=null,Ja=null;void 0===ta&&(ta=la); 2333void 0===Ga&&(Ga=Da);var Oa="mixed";return(0,m.rangeEach)(Math.max(Math.min(la,ta),0),Math.max(la,ta),function(Na){var Pa=!0;return(0,m.rangeEach)(Math.max(Math.min(Da,Ga),0),Math.max(Da,Ga),function(Ra){return Ja=xa.getCellMeta(Na,Ra).type,Ha?Pa=Ha===Ja:Ha=Ja,Pa}),Oa=Pa?Ja:"mixed",Pa}),Oa};this.removeCellMeta=function(ea,la,ta){var ua=[this.toPhysicalRow(ea),this.toPhysicalColumn(la)],xa=ua[0];ua=ua[1];var Da=ha.getCellMetaKeyValue(xa,ua,ta);!1!==ba.runHooks("beforeRemoveCellMeta",ea,la,ta,Da)&& 2334(ha.removeCellMeta(xa,ua,ta),ba.runHooks("afterRemoveCellMeta",ea,la,ta,Da))};this.spliceCellsMeta=function(ea){for(var la=this,ta=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ua=arguments.length,xa=Array(2<ua?ua-2:0),Da=2;Da<ua;Da++)xa[Da-2]=arguments[Da];if(0<xa.length&&!Array.isArray(xa[0]))throw Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");0<ta&&ha.removeRow(this.toPhysicalRow(ea),ta);0<xa.length&&(0,h.arrayEach)(xa.reverse(),function(Ga){ha.createRow(la.toPhysicalRow(ea)); 2335(0,h.arrayEach)(Ga,function(Ha,Ja){return la.setCellMetaObject(ea,Ja,Ha)})});ba.render()};this.setCellMetaObject=function(ea,la,ta){var ua=this;"object"===(0,F.default)(ta)&&(0,d.objectEach)(ta,function(xa,Da){ua.setCellMeta(ea,la,Da,xa)})};this.setCellMeta=function(ea,la,ta,ua){if(!1!==ba.runHooks("beforeSetCellMeta",ea,la,ta,ua)){var xa=ea,Da=la;ea<this.countRows()&&(xa=this.toPhysicalRow(ea));la<this.countCols()&&(Da=this.toPhysicalColumn(la));ha.setCellMeta(xa,Da,ta,ua);ba.runHooks("afterSetCellMeta", 2336ea,la,ta,ua)}};this.getCellsMeta=function(){return ha.getCellsMeta()};this.getCellMeta=function(ea,la){var ta=this.toPhysicalRow(ea),ua=this.toPhysicalColumn(la);return null===ta&&(ta=ea),null===ua&&(ua=la),ha.getCellMeta(ta,ua,{visualRow:ea,visualColumn:la})};this.getCellMetaAtRow=function(ea){return ha.getCellsMetaAtRow(ea)};this.isColumnModificationAllowed=function(){return!("object"===ba.dataType||na.columns)};var Fa=(0,w.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(ea,la){return(0,n.getRenderer)(Fa.call(this, 2337ea,la))};this.getCellEditor=(0,w.cellMethodLookupFactory)("editor");var Ea=(0,w.cellMethodLookupFactory)("validator");this.getCellValidator=function(ea,la){ea=Ea.call(this,ea,la);return"string"==typeof ea&&(ea=(0,l.getValidator)(ea)),ea};this.validateCells=function(ea){this._validateCells(ea)};this.validateRows=function(ea,la){if(!Array.isArray(ea))throw Error("validateRows parameter `rows` must be an array");this._validateCells(la,ea)};this.validateColumns=function(ea,la){if(!Array.isArray(ea))throw Error("validateColumns parameter `columns` must be an array");
2338this._validateCells(la,void 0,ea)};this._validateCells=function(ea,la,ta){var ua=new Q;ea&&(ua.onQueueEmpty=ea);for(ea=ba.countRows()-1;0<=ea;){if(void 0===la||-1!==la.indexOf(ea))for(var xa=ba.countCols()-1;0<=xa;)void 0===ta||-1!==ta.indexOf(xa)?(ua.addValidatorToQueue(),ba.validateCell(ba.getDataAtCell(ea,xa),ba.getCellMeta(ea,xa),function(Da){if("boolean"!=typeof Da)throw Error("Validation error: result is not boolean");!1===Da&&(ua.valid=!1);ua.removeValidatorFormQueue()},"validateCells"),--xa): 2339--xa;--ea}ua.checkIfQueueIsEmpty()};this.getRowHeader=function(ea){var la=na.rowHeaders;return void 0!==ea&&(ea=ba.runHooks("modifyRowHeader",ea)),void 0===ea?(la=[],(0,m.rangeEach)(ba.countRows()-1,function(ta){la.push(ba.getRowHeader(ta))})):Array.isArray(la)&&void 0!==la[ea]?la=la[ea]:(0,x.isFunction)(la)?la=la(ea):la&&"string"!=typeof la&&"number"!=typeof la&&(la=ea+1),la};this.hasRowHeaders=function(){return!!na.rowHeaders};this.hasColHeaders=function(){if(void 0!==na.colHeaders&&null!==na.colHeaders)return!!na.colHeaders; 2340for(var ea=0,la=ba.countCols();ea<la;ea++)if(ba.getColHeader(ea))return!0;return!1};this.getColHeader=function(ea){ea=ba.runHooks("modifyColHeader",ea);var la=na.colHeaders;if(void 0===ea){ea=[];la=ba.countCols();for(var ta=0;ta<la;ta++)ea.push(ba.getColHeader(ta));la=ea}else{ta=ba.toPhysicalColumn(ea);var ua=[];for(var xa=ba.countCols(),Da=0;Da<xa;Da++)(0,x.isFunction)(na.columns)&&na.columns(Da)&&ua.push(Da);ua=ua[ta];!1===na.colHeaders?la=null:na.columns&&(0,x.isFunction)(na.columns)&&na.columns(ua)&& 2341na.columns(ua).title?la=na.columns(ua).title:na.columns&&na.columns[ta]&&na.columns[ta].title?la=na.columns[ta].title:Array.isArray(na.colHeaders)&&void 0!==na.colHeaders[ta]?la=na.colHeaders[ta]:(0,x.isFunction)(na.colHeaders)?la=na.colHeaders(ta):na.colHeaders&&"string"!=typeof na.colHeaders&&"number"!=typeof na.colHeaders&&(la=(0,w.spreadsheetColumnLabel)(ea))}return la};this._getColWidthFromSettings=function(ea){var la;0<=ea&&(la=ba.getCellMeta(0,ea).width);if(void 0!==la&&la!==na.width||(la= 2342na.colWidths),null!=la){switch((0,F.default)(la)){case "object":la=la[ea];break;case "function":la=la(ea)}"string"==typeof la&&(la=parseInt(la,10))}return la};this.getColWidth=function(ea){var la=ba._getColWidthFromSettings(ea);return void 0===(la=ba.runHooks("modifyColWidth",la,ea))&&(la=y.ViewportColumnsCalculator.DEFAULT_WIDTH),la};this._getRowHeightFromSettings=function(ea){var la=na.rowHeights;if(null!=la){switch((0,F.default)(la)){case "object":la=la[ea];break;case "function":la=la(ea)}"string"== 2343typeof la&&(la=parseInt(la,10))}return la};this.getRowHeight=function(ea){var la=ba._getRowHeightFromSettings(ea);return ba.runHooks("modifyRowHeight",la,ea)};this.countSourceRows=function(){return pa.countRows()};this.countSourceCols=function(){return pa.countFirstRowKeys()};this.countRows=function(){return Y.getLength()};this.countCols=function(){var ea=na.maxCols,la=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(ea,la)};this.countRenderedRows=function(){return ba.view._wt.drawn? 2344ba.view._wt.wtTable.getRenderedRowsCount():-1};this.countVisibleRows=function(){return ba.view._wt.drawn?ba.view._wt.wtTable.getVisibleRowsCount():-1};this.countRenderedCols=function(){return ba.view._wt.drawn?ba.view._wt.wtTable.getRenderedColumnsCount():-1};this.countVisibleCols=function(){return ba.view._wt.drawn?ba.view._wt.wtTable.getVisibleColumnsCount():-1};this.countEmptyRows=function(){var ea=0<arguments.length&&void 0!==arguments[0]&&arguments[0],la=0;return(0,m.rangeEachReverse)(ba.countRows()- 23451,function(ta){if(ba.isEmptyRow(ta))la+=1;else if(!0===ea)return!1}),la};this.countEmptyCols=function(){var ea=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(1>ba.countRows())return 0;var la=0;return(0,m.rangeEachReverse)(ba.countCols()-1,function(ta){if(ba.isEmptyCol(ta))la+=1;else if(!0===ea)return!1}),la};this.isEmptyRow=function(ea){return na.isEmptyRow.call(ba,ea)};this.isEmptyCol=function(ea){return na.isEmptyCol.call(ba,ea)};this.selectCell=function(ea,la,ta,ua){var xa=!(4<arguments.length&& 2346void 0!==arguments[4])||arguments[4],Da=!(5<arguments.length&&void 0!==arguments[5])||arguments[5];return!(0,q.isUndefined)(ea)&&!(0,q.isUndefined)(la)&&this.selectCells([[ea,la,ta,ua]],xa,Da)};this.selectCells=function(){var ea=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[[]],la=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];!1===(!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(ia=!0);ea=va.selectCells(ea);return ea&&la&&ba.listen(),ia=!1,ea};this.selectColumns= 2347function(ea){return va.selectColumns(ea,1<arguments.length&&void 0!==arguments[1]?arguments[1]:ea)};this.selectRows=function(ea){return va.selectRows(ea,1<arguments.length&&void 0!==arguments[1]?arguments[1]:ea)};this.deselectCell=function(){va.deselect()};this.selectAll=function(){var ea=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],la=ea&&this.hasRowHeaders();ea=ea&&this.hasColHeaders();ia=!0;va.selectAll(la,ea);ia=!1};this.scrollViewportTo=function(ea,la){var ta=2<arguments.length&& 2348void 0!==arguments[2]&&arguments[2],ua=3<arguments.length&&void 0!==arguments[3]&&arguments[3],xa=!ta,Da=!ua,Ga=ea,Ha=la;if(!(4<arguments.length&&void 0!==arguments[4])||arguments[4]){Ga=Number.isInteger(ea);Ha=Number.isInteger(la);var Ja=Ga?this.rowIndexMapper.getNearestNotHiddenIndex(ea,1,!0):void 0,Oa=Ha?this.columnIndexMapper.getNearestNotHiddenIndex(la,1,!0):void 0;if(null===Ja||null===Oa)return!1;Ga=Ga?ba.rowIndexMapper.getRenderableFromVisualIndex(Ja):void 0;Ha=Ha?ba.columnIndexMapper.getRenderableFromVisualIndex(Oa): 2349void 0}Oa=Number.isInteger(Ga);Ja=Number.isInteger(Ha);return Oa&&Ja?ba.view.scrollViewport(ba._createCellCoords(Ga,Ha),xa,ua,ta,Da):Oa&&!1===Ja?ba.view.scrollViewportVertically(Ga,xa,ta):!(!Ja||!1!==Oa)&&ba.view.scrollViewportHorizontally(Ha,ua,Da)};this.destroy=function(){if(ba._clearTimeouts(),ba._clearImmediates(),ba.view&&ba.view.destroy(),pa&&pa.destroy(),pa=null,this.get
2349ShortcutManager().destroy(),ha.clearCache(),(0,C.isRootInstance)(ba)){var ea=this.rootDocument.querySelector("#hot-display-license-info"); 2350ea&&ea.parentNode.removeChild(ea)}(0,A.empty)(ba.rootElement);fa.destroy();aa&&aa.destroy();ba.batchExecution(function(){ba.rowIndexMapper.unregisterAll();ba.columnIndexMapper.unregisterAll();ma.getItems().forEach(function(la){(0,B.default)(la,2)[1].destroy()});ma.clear();ba.runHooks("afterDestroy")},!0);z.default.getSingleton().destroy(ba);(0,d.objectEach)(ba,function(la,ta,ua){(0,x.isFunction)(la)?ua[ta]=U(ta):"guid"!==ta&&(ua[ta]=null)});ba.isDestroyed=!0;Y&&Y.destroy();ba.rowIndexMapper=null; 2351ba=aa=va=Aa=Y=ba.columnIndexMapper=null};this.getActiveEditor=function(){return aa.getActiveEditor()};this.getPlugin=function(ea){ea=(0,r.toUpperCaseFirst)(ea);return"UndoRedo"===ea?this.undoRedo:ma.getItem(ea)};this.getPluginName=function(ea){return ea===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:ma.getId(ea)};this.getInstance=function(){return ba};this.addHook=function(ea,la){z.default.getSingleton().add(ea,la,ba)};this.hasHook=function(ea){return z.default.getSingleton().has(ea,ba)||z.default.getSingleton().has(ea)}; 2352this.addHookOnce=function(ea,la){z.default.getSingleton().once(ea,la,ba)};this.removeHook=function(ea,la){z.default.getSingleton().remove(ea,la,ba)};this.runHooks=function(ea,la,ta,ua,xa,Da,Ga){return z.default.getSingleton().run(ba,ea,la,ta,ua,xa,Da,Ga)};this.getTranslatedPhrase=function(ea,la){return(0,E.getTranslatedPhrase)(na.language,ea,la)};this.toHTML=function(){return(0,k.instanceToHTML)(W)};this.toTableElement=function(){var ea=W.rootDocument.createElement("div");return ea.insertAdjacentHTML("afterbegin", 2353(0,k.instanceToHTML)(W)),ea.firstElementChild};this.timeouts=[];this._registerTimeout=function(ea){var la=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ta=ea;"function"==typeof ta&&(ta=setTimeout(ta,la));this.timeouts.push(ta)};this._clearTimeouts=function(){(0,h.arrayEach)(this.timeouts,function(ea){clearTimeout(ea)})};this.immediates=[];this._registerImmediate=function(ea){this.immediates.push(setImmediate(ea))};this._clearImmediates=function(){(0,h.arrayEach)(this.immediates,function(ea){clearImmediate(ea)})}; 2354this._refreshBorders=function(){var ea=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];aa.destroyEditor(0<arguments.length&&void 0!==arguments[0]&&arguments[0]);ba.view.render();ea&&va.isSelected()&&aa.prepareEditor()};this.isRtl=function(){return"rtl"===ba.rootWindow.getComputedStyle(ba.rootElement).direction};this.isLtr=function(){return!ba.isRtl()};this.getDirectionFactor=function(){return ba.isLtr()?1:-1};var za=(0,J.createShortcutManager)({handleEvent:function(ea){var la=ba.isListening(); 2355ea=void 0!==(null==ea?void 0:ea.key);return la&&ea},beforeKeyDown:function(ea){return W.runHooks("beforeKeyDown",ea)},afterKeyDown:function(ea){W.isDestroyed||ba.runHooks("afterDocumentKeyDown",ea)},ownerWindow:this.rootWindow});this.getShortcutManager=function(){return za};V=za.addContext("grid");za.setActiveContextName("grid");V.addShortcuts([{keys:[["Control/Meta","A"]],callback:function(){ba.selectAll()}},{keys:[["Control/Meta","Enter"]],callback:function(){var ea=ba.getSelectedRange(),la=ea[ea.length- 23561].highlight,ta=la.row,ua=la.col,xa=ba.getDataAtCell(ta,ua),Da=new Map;for(la=0;la<ea.length;la++)ea[la].forAll(function(Ga,Ha){0<=Ga&&0<=Ha&&(Ga!==ta||Ha!==ua)&&(ba.getCellMeta(Ga,Ha).readOnly||Da.set("".concat(Ga,"x").concat(Ha),[Ga,Ha,xa]))});ba.setDataAtCell(Array.from(Da.values()))},runOnlyIf:function(){return 1<ba.getSelectedRangeLast().getCellsCount()}},{keys:[["ArrowUp"]],callback:function(){va.transformStart(-1,0)}},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:function(){va.setRangeStart(ba._createCellCoords(ba.rowIndexMapper.getNearestNotHiddenIndex(0, 23571),ba.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowUp","Shift"]],callback:function(){va.transformEnd(-1,0)}},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var ea=ba.getSelectedRangeLast(),la=ea.from;ea=ea.to;var ta=ba.rowIndexMapper.getNearestNotHiddenIndex(0,1);va.setRangeStart(la.clone());va.setRangeEnd(ba._createCellCoords(ta,ea.col))},runOnlyIf:function(){return!(ba.selection.isSelectedByCorner()||ba.selection.isSelectedByColumnHeader())}},{keys:[["ArrowDown"]], 2358callback:function(){va.transformStart(1,0)}}
2358,{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:function(){va.setRangeStart(ba._createCellCoords(ba.rowIndexMapper.getNearestNotHiddenIndex(ba.countRows()-1,-1),ba.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowDown","Shift"]],callback:function(){va.transformEnd(1,0)}},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var ea=ba.getSelectedRangeLast(),la=ea.from;ea=ea.to;var ta=ba.rowIndexMapper.getNearestNotHiddenIndex(ba.countRows()- 23591,-1);va.setRangeStart(la.clone());va.setRangeEnd(ba._createCellCoords(ta,ea.col))},runOnlyIf:function(){return!(ba.selection.isSelectedByCorner()||ba.selection.isSelectedByColumnHeader())}},{keys:[["ArrowLeft"]],callback:function(){va.transformStart(0,-1*ba.getDirectionFactor())}},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:function(){var ea,la=ba.getSelectedRangeLast().highlight.row,ta=(ea=ba.columnIndexMapper).getNearestNotHiddenIndex.apply(ea,(0,D.default)(ba.isRtl()?[ba.countCols()- 23601,-1]:[0,1]));va.setRangeStart(ba._createCellCoords(la,ta))}},{keys:[["ArrowLeft","Shift"]],callback:function(){va.transformEnd(0,-1*ba.getDirectionFactor())}},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var ea,la=ba.getSelectedRangeLast(),ta=la.from;la=la.to;var ua=(ea=ba.columnIndexMapper).getNearestNotHiddenIndex.apply(ea,(0,D.default)(ba.isRtl()?[ba.countCols()-1,-1]:[0,1]));va.setRangeStart(ta.clone());va.setRangeEnd(ba._createCellCoords(la.row,ua))},runOnlyIf:function(){return!(ba.selection.isSelectedByCorner()|| 2361ba.selection.isSelectedByRowHeader())}},{keys:[["ArrowRight"]],callback:function(){va.transformStart(0,ba.getDirectionFactor())}},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:function(){var ea,la=ba.getSelectedRangeLast().highlight.row,ta=(ea=ba.columnIndexMapper).getNearestNotHiddenIndex.apply(ea,(0,D.default)(ba.isRtl()?[0,1]:[ba.countCols()-1,-1]));va.setRangeStart(ba._createCellCoords(la,ta))}},{keys:[["ArrowRight","Shift"]],callback:function(){va.transformEnd(0,ba.getDirectionFactor())}}, 2362{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var ea,la=ba.getSelectedRangeLast(),ta=la.from;la=la.to;var ua=(ea=ba.columnIndexMapper).getNearestNotHiddenIndex.apply(ea,(0,D.default)(ba.isRtl()?[0,1]:[ba.countCols()-1,-1]));va.setRangeStart(ta.clone());va.setRangeEnd(ba._createCellCoords(la.row,ua))},runOnlyIf:function(){return!(ba.selection.isSelectedByCorner()||ba.selection.isSelectedByRowHeader())}},{keys:[["Home"]],captureCtrl:!0,callback:function(){var ea=parseInt(ba.getSettings().fixedColumnsStart, 236310),la=ba.getSelectedRangeLast().highlight.row;ea=ba.columnIndexMapper.getNearestNotHiddenIndex(ea,1);va.setRangeStart(ba._createCellCoords(la,ea))},runOnlyIf:function(){return ba.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["Home","Shift"]],callback:function(){va.setRangeEnd(ba._createCellCoords(va.selectedRange.current().from.row,ba.columnIndexMapper.getNearestNotHiddenIndex(0,1)))}},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:function(){var ea=parseInt(ba.getSettings().fixedRowsTop, 236410),la=parseInt(ba.getSettings().fixedColumnsStart,10);ea=ba.rowIndexMapper.getNearestNotHiddenIndex(ea,1);la=ba.columnIndexMapper.getNearestNotHiddenIndex(la,1);va.setRangeStart(ba._createCellCoords(ea,la))},runOnlyIf:function(){return ba.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End"]],captureCtrl:!0,callback:function(){va.setRangeStart(ba._createCellCoords(ba.getSelectedRangeLast().highlight.row,ba.columnIndexMapper.getNearestNotHiddenIndex(ba.countCols()-1,-1)))},runOnlyIf:function(){return ba.view.isMainTableNotFullyCoveredByOverlays()}}, 2365{keys:[["End","Shift"]],callback:function(){va.setRangeEnd(ba._createCellCoords(va.selectedRange.current().from.row,ba.columnIndexMapper.getNearestNotHiddenIndex(ba.countCols()-1,-1)))}},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:function(){var ea=parseInt(ba.getSettings().fixedRowsBottom,10);ea=ba.rowIndexMapper.getNearestNotHiddenIndex(ba.countRows()-ea-1,-1);var la=ba.columnIndexMapper.getNearestNotHiddenIndex(ba.countCols()-1,-1);va.setRangeStart(ba._createCellCoords(ea,la))},runOnlyIf:function(){return ba.view.isMainTableNotFullyCoveredByOverlays()}}, 2366{keys:[["PageUp"]],callback:function(){va.transformStart(-ba.countVisibleRows(),0)}},{keys:[["PageUp","Shift"]],callback:function(){var ea=ba.getSelectedRangeLast().to,la=Math.max(ea.row-ba.countVisibleRows(),0);la=ba.rowIndexMapper.getNearestNotHiddenIndex(la,1);null!==la&&(la=ba._createCellCoords(la,ea.col),ea=ea.row-ba.view.getFirstFullyVisibleRow(),ea=Math.max(la.row-ea,0),va.setRangeEnd(la),ba.scrollViewportTo(ea))}},{keys:[["PageDown"]],callback:function(){va.transformStart(ba.countVisibleRows(), 23670)}},{keys:[["PageDown","Shift"]],callback:function(){var ea=ba.getSelectedRangeLast().to,la=Math.min(ea.row+ba.countVisibleRows(),ba.countRows()-1);la=ba.rowIndexMapper.getNearestNotHiddenIndex(la,-1);null!==la&&(la=ba._createCellCoords(la,ea.col),ea=ea.row-ba.view.getFirstFullyVisibleRow(),ea=Math.min(la.row-ea,ba.countRows()-1),va.setRangeEnd(la),ba.scrollViewportTo(ea))}},{keys:[["Tab"]],callback:function(ea){ea="function"==typeof na.tabMoves?na.tabMoves(ea):na.tabMoves;va.transformStart(ea.row, 2368ea.col,!0)}},{keys:[["Shift","Tab"]],callback:function(ea){ea="function"==typeof na.tabMoves?na.tabMoves(ea):na.tabMoves;va.transformStart(-ea.row,-ea.col)}}],{runOnlyIf:function(){return(0,q.isDefined)(ba.getSelected())&&0<ba.countRenderedRows()&&0<ba.countRenderedCols()},group:"gridDefault"});
2368(0,f.getPluginsNames)().forEach(function(ea){var la=(0,f.getPlugin)(ea);ma.addItem(ea,new la(W))});z.default.getSingleton().run(ba,"construct")};var F=g(a(21)),B=g(a(34)),D=g(a(43));a(42);a(75);a(55);a(68); 2369a(52);a(13);a(18);a(144);a(36);a(12);a(67);a(22);a(2);a(33);a(62);a(0);a(27);a(77);a(777);a(3);a(32);a(4);var A=a(23),x=a(70),q=a(31),p=a(107),e=g(a(202)),c=g(a(60)),d=a(17),h=a(20),k=a(310),f=a(243),n=a(203),l=a(204),r=a(97),m=a(47),t=g(a(786)),u=g(a(825)),w=a(150),v=a(84),C=a(316),y=a(167),z=g(a(71)),E=a(605),H=a(606),G=a(320),I=a(608),K=a(244),J=a(860),P=null},function(g,b){g.exports=function(a){if(Array.isArray(a))return a};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b){g.exports= 2370function(a,F){(null==F||F>a.length)&&(F=a.length);for(var B=0,D=Array(F);B<F;B++)D[B]=a[B];return D};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b){g.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b){g.exports=function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!= 2371a["@@iterator"])return Array.from(a)};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){b=a(45);var F=a(139),B=a(56),D=a(121),A=a(181),x=a(365),q=/MSIE .\./.test(D),p=b.Function;a=function(e){return q?function(c,d){var h=2<x(arguments.length,1),k=B(c)?c:p(c),f=h?A(arguments,2):void 0;return e(h?function(){F(k,this,f)}:k,d)}:e};g.exports={setTimeout:a(b.setTimeout),setInterval:a(b.setInterval)}},function(g,b,a){g.exports=function(){function F(na){return(F="function"==typeof Symbol&& 2372"symbol"==typeof Symbol.iterator?function(oa){return typeof oa}:function(oa){return oa&&"function"==typeof Symbol&&oa.constructor===Symbol&&oa!==Symbol.prototype?"symbol":typeof oa})(na)}function B(na,oa){return(B=Object.setPrototypeOf||function(ma,pa){return ma.__proto__=pa,ma})(na,oa)}function D(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})), 2373!0}catch(na){return!1}}function A(na,oa,ma){return(A=D()?Reflect.construct:function(pa,sa,va){var Aa=[null];Aa.push.apply(Aa,sa);pa=new (Function.bind.apply(pa,Aa));return va&&B(pa,va.prototype),pa}).apply(null,arguments)}function x(na){var oa;(oa=function(ma){if(Array.isArray(ma))return q(ma)}(na))||(oa="undefined"!=typeof Symbol&&null!=na[Symbol.iterator]||null!=na["@@iterator"]?Array.from(na):void 0);if(!(na=oa||function(ma,pa){if(ma){if("string"==typeof ma)return q(ma,pa);var sa=Object.prototype.toString.call(ma).slice(8, 2374-1);return"Object"===sa&&ma.constructor&&(sa=ma.constructor.name),"Map"===sa||"Set"===sa?Array.from(ma):"Arguments"===sa||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(sa)?q(ma,pa):void 0}}(na)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return na}function q(na,oa){(null==oa||oa>na.length)&&(oa=na.length);for(var ma=0,pa=Array(oa);ma<oa;ma++)pa[ma]=na[ma];return pa}function p(na){return function(oa){for(var ma= 2375arguments.length,pa=Array(1<ma?ma-1:0),sa=1;sa<ma;sa++)pa[sa-1]=arguments[sa];return w(na,oa,pa)}}function e(na,oa){k&&k(na,null);for(var ma=oa.length;ma--;){var pa=oa[ma];if("string"==typeof pa){var sa=H(pa);sa!==pa&&(f(oa)||(oa[ma]=sa),pa=sa)}na[pa]=!0}return na}function c(na){var oa,ma=t(null);for(oa in na)w(h,na,[oa])&&(ma[oa]=na[oa]);return ma}function d(na,oa){for(;null!==na;){var ma=l(na,oa);if(ma){if(ma.get)return p(ma.get);if("function"==typeof ma.value)return p(ma.value)}na=n(na)}return function(pa){return console.warn("fallback value for", 2376pa),null}}var h=Object.hasOwnProperty,k=Object.setPrototypeOf,f=Object.isFrozen,n=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,r=Object.freeze,m=Object.seal,t=Object.create,u="undefined"!=typeof Reflect&&Reflect,w=u.apply,v=u.construct;w||(w=function(na,oa,ma){return na.apply(oa,ma)});r||(r=function(na){return na});m||(m=function(na){return na});v||(v=function(na,oa){return A(na,x(oa))});var C,y=p(Array.prototype.forEach),z=p(Array.prototype.pop),E=p(Array.prototype.push),H=p(String.prototype.toLowerCase), 2377G=p(String.prototype.match),I=p(String.prototype.replace),K=p(String.prototype.indexOf),J=p(String.prototype.trim),P=p(RegExp.prototype.test),S=(C=TypeError,function(){for(var na=arguments.length,oa=Array(na),ma=0;ma<na;ma++)oa[ma]=arguments[ma];return v(C,oa)}),R=r("a abbr acronym address area article aside audio b bdi bdo big blink blockquote body br button canvas caption center cite code col colgroup content data datalist dd decorator del details dfn dialog dir div dl dt element em fieldset figcaption figure font footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i img input ins kbd label legend li main map mark marquee menu menuitem meter nav nobr ol optgroup option output p picture pre progress q rp rt ruby s samp section select shadow small source spacer span strike strong style sub summary sup table tbody td template textarea tfoot th thead time tr track tt u ul var video wbr".split(" ")), 2378O=r("svg a altglyph altglyphdef altglyphitem animatecolor animatemotion animatetransform circle clippath defs desc ellipse filter font g glyph glyphref hkern image line lineargradient marker mask metadata mpath path pattern polygon polyline radialgradient rect stop style switch symbol text textpath title tref tspan view vkern".split(" ")),N=r("feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence".split(" ")), 2379Q=r("animate color-profile cursor discard fedropshadow font-face font-face-format font-face-name font-face-src font-face-uri foreignobject hatch hatchpath mesh meshgradient meshpatch meshrow missing-glyph script set solidcolor unknown use".split(" ")),M=r("math menclose merror mfenced mfrac mglyph mi mlabeledtr mmultiscripts mn mo mover mpadded mphantom mroot mrow ms mspace msqrt mstyle msub msup msubsup mtable mtd mtext mtr munder munderover".split(" ")),T=r("maction maligngroup malignmark mlongdiv mscarries mscarry msgroup mstack msline msrow semantics annotation annotation-xml mprescripts none".split(" ")), 2380Z=r(["#text"]),L=r("accept action align alt autocapitalize autocomplete autopictureinpicture autoplay background bgcolor border capture cellpadding cellspacing checked cite class clear color cols colspan controls controlslist coords crossorigin datetime decoding default dir disabled disablepictureinpicture disableremoteplayback download draggable enctype enterkeyhint face for headers height hidden high href hreflang id inputmode integrity ismap kind label lang list loading loop low max maxlength media method min minlength multiple muted name nonce noshade novalidate nowrap open optimum pattern placeholder playsinline poster preload pubdate radiogroup readonly rel required rev reversed role rows rowspan spellcheck scope selected shape size sizes span srclang start src srcset step style summary tabindex title translate type usemap valign value width xmlns slot".split(" ")), 2381U=r("accent-height accumulate additive alignment-baseline ascent attributename attributetype azimuth basefrequency baseline-shift begin bias by class clip clippathunits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering cx cy d dx dy diffuseconstant direction display divisor dur edgemode elevation end fill fill-opacity fill-rule filter filterunits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight fx fy g1 g2 glyph-name glyphref gradientunits gradienttransform height href id image-rendering in in2 k k1 k2 k3 k4 kerning keypoints keysplines keytimes lang lengthadjust letter-spacing kernelmatrix kernelunitlength lighting-color local marker-end marker-mid marker-start markerheight markerunits markerwidth maskcontentunits maskunits max mask media method mode min name numoctaves offset operator opacity order orient orientation origin overflow paint-order path pathlength patterncontentunits patterntransform patternunits points preservealpha preserveaspectratio primitiveunits r rx ry radiu
2381s refx refy repeatcount repeatdur restart result rotate scale seed shape-rendering specularconstant specularexponent spreadmethod startoffset stddeviation stitchtiles stop-color stop-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke stroke-width style surfacescale systemlanguage tabindex targetx targety transform transform-origin text-anchor text-decoration text-rendering textlength type u1 u2 unicode values viewbox visibility version vert-adv-y vert-origin-x vert-origin-y width word-spacing wrap writing-mode xchannelselector ychannelselector x x1 x2 xmlns y y1 y2 z zoomandpan".split(" ")), 2382V=r("accent accentunder align bevelled close columnsalign columnlines columnspan denomalign depth dir display displaystyle encoding fence frame height href id largeop length linethickness lspace lquote mathbackground mathcolor mathsize mathvariant maxsize minsize movablelimits notation numalign open rowalign rowlines rowspacing rowspan rspace rquote scriptlevel scriptminsize scriptsizemultiplier selection separator separators stretchy subscriptshift supscriptshift symmetric voffset width xmlns".split(" ")), 2383Y=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),aa=m(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=m(/<%[\w\W]*|[\w\W]*%>/gm),ca=m(/^data-[\-\w.\u00B7-\uFFFF]/),ia=m(/^aria-[\-\w]+$/),ba=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fa=m(/^(?:\w+script|data):/i),ja=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qa=m(/^html$/i),ha=function(na,oa){if("object"!==F(na)||"function"!=typeof na.createPolicy)return null;var ma=null;oa.currentScript&& 2384oa.currentScript.hasAttribute("data-tt-policy-suffix")&&(ma=oa.currentScript.getAttribute("data-tt-policy-suffix"));oa="dompurify"+(ma?"#"+ma:"");try{return na.createPolicy(oa,{createHTML:function(pa){return pa}})}catch(pa){return console.warn("TrustedTypes policy "+oa+" could not be created."),null}};return function oa(){var ma=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,pa=function(Ba){return oa(Ba)};if(pa.version="2.5.7",pa.removed=[],!ma||!ma.document|| 23859!==ma.document.nodeType)return pa.isSupported=!1,pa;var sa=ma.document,va=ma.document,Aa=ma.DocumentFragment,Fa=ma.HTMLTemplateElement,Ea=ma.Node,za=ma.Element,ea=ma.NodeFilter,la=ma.NamedNodeMap,ta=void 0===la?ma.NamedNodeMap||ma.MozNamedAttrMap:la,ua=ma.HTMLFormElement,xa=ma.DOMParser;la=ma.trustedTypes;var Da=za.prototype,Ga=d(Da,"cloneNode"),Ha=d(Da,"nextSibling"),Ja=d(Da,"childNodes"),Oa=d(Da,"parentNode");"function"==typeof Fa&&(Fa=va.createElement("template"),Fa.content&&Fa.content.ownerDocument&& 2386(va=Fa.content.ownerDocument));var Na=ha(la,sa),Pa=Na?Na.createHTML(""):"";Fa=va;var Ra=Fa.implementation,ab=Fa.createNodeIterator,Va=Fa.createDocumentFragment,sb=Fa.getElementsByTagName,tb=sa.importNode;Fa={};try{Fa=c(va).documentMode?va.documentMode:{}}catch(Ba){}var lb={};pa.isSupported="function"==typeof Oa&&Ra&&void 0!==Ra.createHTMLDocument&&9!==Fa;var fb,kb,zb=ba,db=null,Ab=e({},[].concat(x(R),x(O),x(N),x(M),x(Z))),hb=null,ub=e({},[].concat(x(L),x(U),x(V),x(Y))),Ya=Object.seal(Object.create(null, 2387{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ib=null,gb=null,Bb=!0,Cb=!0,vb=!1,wb=!1,qb=!1,cc=!1,mc=!1,Db=!1,Eb=!1,Vb=!1,dc=!0,ec=!0,Mb=!1,ob={},pb=null,qc=e({},"annotation-xml audio colgroup desc foreignobject head iframe math mi mn mo ms mtext noembed noframes noscript plaintext script style svg template thead title video xmp".split(" ")), 2388Fb=null,Wb=e({},"audio video img source image track".split(" ")),ac=null,nc=e({},"alt class for id label name pattern placeholder role summary title value style xmlns".split(" ")),Rb="http://www.w3.org/1999/xhtml",bc=!1,oc=["application/xhtml+xml","text/html"],Nb=null,ic=va.createElement("form"),Tb=function(Ba){return Ba instanceof RegExp||Ba instanceof Function},Sb=function(Ba){Nb&&Nb===Ba||(Ba&&"object"===F(Ba)||(Ba={}),Ba=c(Ba),db="ALLOWED_TAGS"in Ba?e({},Ba.ALLOWED_TAGS):Ab,hb="ALLOWED_ATTR"in 2389Ba?e({},Ba.ALLOWED_ATTR):ub,ac="ADD_URI_SAFE_ATTR"in Ba?e(c(nc),Ba.ADD_URI_SAFE_ATTR):nc,Fb="ADD_DATA_URI_TAGS"in Ba?e(c(Wb),Ba.ADD_DATA_URI_TAGS):Wb,pb="FORBID_CONTENTS"in Ba?e({},Ba.FORBID_CONTENTS):qc,ib="FORBID_TAGS"in Ba?e({},Ba.FORBID_TAGS):{},gb="FORBID_ATTR"in Ba?e({},Ba.FORBID_ATTR):{},ob="USE_PROFILES"in Ba&&Ba.USE_PROFILES,Bb=!1!==Ba.ALLOW_ARIA_ATTR,Cb=!1!==Ba.ALLOW_DATA_ATTR,vb=Ba.ALLOW_UNKNOWN_PROTOCOLS||!1,wb=Ba.SAFE_FOR_TEMPLATES||!1,qb=Ba.WHOLE_DOCUMENT||!1,Db=Ba.RETURN_DOM||!1,Eb= 2390Ba.RETURN_DOM_FRAGMENT||!1,Vb=Ba.RETURN_TRUSTED_TYPE||!1,mc=Ba.FORCE_BODY||!1,dc=!1!==Ba.SANITIZE_DOM,ec=!1!==Ba.KEEP_CONTENT,Mb=Ba.IN_PLACE||!1,zb=Ba.ALLOWED_URI_REGEXP||zb,Rb=Ba.NAMESPACE||"http://www.w3.org/1999/xhtml",Ba.CUSTOM_ELEMENT_HANDLING&&Tb(Ba.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ya.tagNameCheck=Ba.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ba.CUSTOM_ELEMENT_HANDLING&&Tb(Ba.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ya.attributeNameCheck=Ba.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), 2391Ba.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof Ba.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ya.allowCustomizedBuiltInElements=Ba.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fb=fb=-1===oc.indexOf(Ba.PARSER_MEDIA_TYPE
2391)?"text/html":Ba.PARSER_MEDIA_TYPE,kb="application/xhtml+xml"===fb?function(Ia){return Ia}:H,wb&&(Cb=!1),Eb&&(Db=!0),ob&&(db=e({},x(Z)),hb=[],!0===ob.html&&(e(db,R),e(hb,L)),!0===ob.svg&&(e(db,O),e(hb,U),e(hb,Y)),!0===ob.svgFilters&&(e(db,N),e(hb,U),e(hb,Y)),!0=== 2392ob.mathMl&&(e(db,M),e(hb,V),e(hb,Y))),Ba.ADD_TAGS&&(db===Ab&&(db=c(db)),e(db,Ba.ADD_TAGS)),Ba.ADD_ATTR&&(hb===ub&&(hb=c(hb)),e(hb,Ba.ADD_ATTR)),Ba.ADD_URI_SAFE_ATTR&&e(ac,Ba.ADD_URI_SAFE_ATTR),Ba.FORBID_CONTENTS&&(pb===qc&&(pb=c(pb)),e(pb,Ba.FORBID_CONTENTS)),ec&&(db["#text"]=!0),qb&&e(db,["html","head","body"]),db.table&&(e(db,["tbody"]),delete ib.tbody),r&&r(Ba),Nb=Ba)},yb=e({},["mi","mo","mn","ms","mtext"]),Jb=e({},["foreignobject","desc","title","annotation-xml"]),jb=e({},["title","style","font", 2393"a","script"]),Xb=e({},O);e(Xb,N);e(Xb,Q);var mb=e({},M);e(mb,T);var xb=function(Ba){E(pa.removed,{element:Ba});try{Ba.parentNode.removeChild(Ba)}catch(Ia){try{Ba.outerHTML=Pa}catch(Qa){Ba.remove()}}},fc=function(Ba,Ia){try{E(pa.removed,{attribute:Ia.getAttributeNode(Ba),from:Ia})}catch(Qa){E(pa.removed,{attribute:null,from:Ia})}if(Ia.removeAttribute(Ba),"is"===Ba&&!hb[Ba])if(Db||Eb)try{xb(Ia)}catch(Qa){}else try{Ia.setAttribute(Ba,"")}catch(Qa){}},Yb=function(Ba){if(mc)Ba="\x3cremove\x3e\x3c/remove\x3e"+ 2394Ba;else var Ia=(Ia=G(Ba,/^[\r\n\t ]+/))&&Ia[0];"application/xhtml+xml"===fb&&(Ba='\x3chtml xmlns\x3d"http://www.w3.org/1999/xhtml"\x3e\x3chead\x3e\x3c/head\x3e\x3cbody\x3e'+Ba+"\x3c/body\x3e\x3c/html\x3e");var Qa=Na?Na.createHTML(Ba):Ba;if("http://www.w3.org/1999/xhtml"===Rb)try{var Sa=(new xa).parseFromString(Qa,fb)}catch($a){}if(!Sa||!Sa.documentElement){Sa=Ra.createDocument(Rb,"template",null);try{Sa.documentElement.innerHTML=bc?"":Qa}catch($a){}}Qa=Sa.body||Sa.documentElement;return Ba&&Ia&&Qa.insertBefore(va.createTextNode(Ia), 2395Qa.childNodes[0]||null),"http://www.w3.org/1999/xhtml"===Rb?sb.call(Sa,qb?"html":"body")[0]:qb?Sa.documentElement:Qa},cb=function(Ba){return ab.call(Ba.ownerDocument||Ba,Ba,ea.SHOW_ELEMENT|ea.SHOW_COMMENT|ea.SHOW_TEXT,null,!1)},Ob=function(Ba){return"object"===F(Ea)?Ba instanceof Ea:Ba&&"object"===F(Ba)&&"number"==typeof Ba.nodeType&&"string"==typeof Ba.nodeName},rb=function(Ba,Ia,Qa){lb[Ba]&&y(lb[Ba],function(Sa){Sa.call(pa,Ia,Qa,Nb)})},Zb=function(Ba){if((rb("beforeSanitizeElements",Ba,null),Ba instanceof 2396ua&&("string"!=typeof Ba.nodeName||"string"!=typeof Ba.textContent||"function"!=typeof Ba.removeChild||!(Ba.attributes instanceof ta)||"function"!=typeof Ba.removeAttribute||"function"!=typeof Ba.setAttribute||"string"!=typeof Ba.namespaceURI||"function"!=typeof Ba.insertBefore))||P(/[\u0080-\uFFFF]/,Ba.nodeName))return xb(Ba),!0;var Ia=kb(Ba.nodeName);if((rb("uponSanitizeElement",Ba,{tagName:Ia,allowedTags:db}),!(!Ba.hasChildNodes()||Ob(Ba.firstElementChild)||Ob(Ba.content)&&Ob(Ba.content.firstElementChild))&& 2397P(/<[/\w]/g,Ba.innerHTML)&&P(/<[/\w]/g,Ba.textContent))||"select"===Ia&&P(/<template/i,Ba.innerHTML))return xb(Ba),!0;if(!db[Ia]||ib[Ia]){if(!ib[Ia]&&0<Ia.indexOf("-")&&(Ya.tagNameCheck instanceof RegExp&&P(Ya.tagNameCheck,Ia)||Ya.tagNameCheck instanceof Function&&Ya.tagNameCheck(Ia)))return!1;if(ec&&!pb[Ia]){var Qa=Oa(Ba)||Ba.parentNode;if((Ia=Ja(Ba)||Ba.childNodes)&&Qa)for(var Sa=Ia.length-1;0<=Sa;--Sa)Qa.insertBefore(Ga(Ia[Sa],!0),Ha(Ba))}return xb(Ba),!0}if(Sa=Ba instanceof za){(Sa=Oa(Ba))&&Sa.tagName|| 2398(Sa={namespaceURI:"http://www.w3.org/1999/xhtml",tagName:"template"});var $a=H(Ba.tagName),nb=H(Sa.tagName);Sa=!("http://www.w3.org/2000/svg"===Ba.namespaceURI?"http://www.w3.org/1999/xhtml"===Sa.namespaceURI?"svg"===$a:"http://www.w3.org/1998/Math/MathML"===Sa.namespaceURI?"svg"===$a&&("annotation-xml"===nb||yb[nb]):Xb[$a]:"http://www.w3.org/1998/Math/MathML"===Ba.namespaceURI?"http://www.w3.org/1999/xhtml"===Sa.namespaceURI?"math"===$a:"http://www.w3.org/2000/svg"===Sa.namespaceURI?"math"===$a&& 2399Jb[nb]:mb[$a]:!("http://www.w3.org/1999/xhtml"!==Ba.namespaceURI||"http://www.w3.org/2000/svg"===Sa.namespaceURI&&!Jb[nb]||"http://www.w3.org/1998/Math/MathML"===Sa.namespaceURI&&!yb[nb]||mb[$a]||!jb[$a]&&Xb[$a]))}return Sa?(xb(Ba),!0):"noscript"!==Ia&&"noembed"!==Ia||!P(/<\/no(script|embed)/i,Ba.innerHTML)?(wb&&3===Ba.nodeType&&(Qa=Ba.textContent,Qa=I(Qa,aa," "),Qa=I(Qa,W," "),Ba.textContent!==Qa&&(E(pa.removed,{element:Ba.cloneNode()}),Ba.textContent=Qa)),rb("afterSanitizeElements",Ba,null),!1): 2400(xb(Ba),!0)},gc=function(Ba,Ia,Qa){if(dc&&("id"===Ia||"name"===Ia)&&(Qa in va||Qa in ic))return!1;if(!Cb||gb[Ia]||!P(ca,Ia))if(!Bb||!P(ia,Ia))if(!hb[Ia]||gb[Ia]){if(!(0<Ba.indexOf("-")&&(Ya.tagNameCheck instanceof RegExp&&P(Ya.tagNameCheck,Ba)||Ya.tagNameCheck instanceof Function&&Ya.tagNameCheck(Ba))&&
2400(Ya.attributeNameCheck instanceof RegExp&&P(Ya.attributeNameCheck,Ia)||Ya.attributeNameCheck instanceof Function&&Ya.attributeNameCheck(Ia))||"is"===Ia&&Ya.allowCustomizedBuiltInElements&&(Ya.tagNameCheck instanceof 2401RegExp&&P(Ya.tagNameCheck,Qa)||Ya.tagNameCheck instanceof Function&&Ya.tagNameCheck(Qa))))return!1}else if(!(ac[Ia]||P(zb,I(Qa,ja,""))||("src"===Ia||"xlink:href"===Ia||"href"===Ia)&&"script"!==Ba&&0===K(Qa,"data:")&&Fb[Ba]||vb&&!P(fa,I(Qa,ja,"")))&&Qa)return!1;return!0},$b=function(Ba){var Ia,Qa,Sa,$a;rb("beforeSanitizeAttributes",Ba,null);var nb=Ba.attributes;if(nb){var bb={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:hb};for($a=nb.length;$a--;){var Kb=Ia=nb[$a],Gb=Kb.name;Kb=Kb.namespaceURI; 2402if(Qa="value"===Gb?Ia.value:J(Ia.value),Sa=kb(Gb),bb.attrName=Sa,bb.attrValue=Qa,bb.keepAttr=!0,bb.forceKeepAttr=void 0,rb("uponSanitizeAttribute",Ba,bb),Qa=bb.attrValue,!bb.forceKeepAttr&&(fc(Gb,Ba),bb.keepAttr))if(P(/\/>/i,Qa))fc(Gb,Ba);else if(wb&&(Qa=I(Qa,aa," "),Qa=I(Qa,W," ")),Ia=kb(Ba.nodeName),gc(Ia,Sa,Qa))try{Kb?Ba.setAttributeNS(Kb,Gb,Qa):Ba.setAttribute(Gb,Qa),z(pa.removed)}catch(uc){}}rb("afterSanitizeAttributes",Ba,null)}},Pb=function Qa(Ia){var Sa,$a=cb(Ia);for(rb("beforeSanitizeShadowDOM", 2403Ia,null);Sa=$a.nextNode();)rb("uponSanitizeShadowNode",Sa,null),Zb(Sa)||(Sa.content instanceof Aa&&Qa(Sa.content),$b(Sa));rb("afterSanitizeShadowDOM",Ia,null)};return pa.sanitize=function(Ia,Qa){var Sa,$a,nb;if((bc=!Ia)&&(Ia="\x3c!--\x3e"),"string"!=typeof Ia&&!Ob(Ia)){if("function"!=typeof Ia.toString)throw S("toString is not a function");if("string"!=typeof(Ia=Ia.toString()))throw S("dirty is not a string, aborting");}if(!pa.isSupported){if("object"===F(ma.toStaticHTML)||"function"==typeof ma.toStaticHTML){if("string"== 2404typeof Ia)return ma.toStaticHTML(Ia);if(Ob(Ia))return ma.toStaticHTML(Ia.outerHTML)}return Ia}if(cc||Sb(Qa),pa.removed=[],"string"==typeof Ia&&(Mb=!1),Mb){if(Ia.nodeName&&(Qa=kb(Ia.nodeName),!db[Qa]||ib[Qa]))throw S("root node is forbidden and cannot be sanitized in-place");}else if(Ia instanceof Ea)1===($a=(Sa=Yb("\x3c!----\x3e")).ownerDocument.importNode(Ia,!0)).nodeType&&"BODY"===$a.nodeName||"HTML"===$a.nodeName?Sa=$a:Sa.appendChild($a);else{if(!Db&&!wb&&!qb&&-1===Ia.indexOf("\x3c"))return Na&& 2405Vb?Na.createHTML(Ia):Ia;if(!(Sa=Yb(Ia)))return Db?null:Vb?Pa:""}Sa&&mc&&xb(Sa.firstChild);for($a=cb(Mb?Ia:Sa);Qa=$a.nextNode();)3===Qa.nodeType&&Qa===nb||Zb(Qa)||(Qa.content instanceof Aa&&Pb(Qa.content),$b(Qa),nb=Qa);if(Mb)return Ia;if(Db){if(Eb)for(Ia=Va.call(Sa.ownerDocument);Sa.firstChild;)Ia.appendChild(Sa.firstChild);else Ia=Sa;return hb.shadowroot&&(Ia=tb.call(sa,Ia,!0)),Ia}Ia=qb?Sa.outerHTML:Sa.innerHTML;return qb&&db["!doctype"]&&Sa.ownerDocument&&Sa.ownerDocument.doctype&&Sa.ownerDocument.doctype.name&& 2406P(qa,Sa.ownerDocument.doctype.name)&&(Ia="\x3c!DOCTYPE "+Sa.ownerDocument.doctype.name+"\x3e\n"+Ia),wb&&(Ia=I(Ia,aa," "),Ia=I(Ia,W," ")),Na&&Vb?Na.createHTML(Ia):Ia},pa.setConfig=function(Ia){Sb(Ia);cc=!0},pa.clearConfig=function(){Nb=null;cc=!1},pa.isValidAttribute=function(Ia,Qa,Sa){Nb||Sb({});Ia=kb(Ia);Qa=kb(Qa);return gc(Ia,Qa,Sa)},pa.addHook=function(Ia,Qa){"function"==typeof Qa&&(lb[Ia]=lb[Ia]||[],E(lb[Ia],Qa))},pa.removeHook=function(Ia){if(lb[Ia])return z(lb[Ia])},pa.removeHooks=function(Ia){lb[Ia]&& 2407(lb[Ia]=[])},pa.removeAllHooks=function(){lb={}},pa}()}();window.DOMPurify=a(451)},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g, 2408b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){}, 2409function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g, 2410b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){}, 2411function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b){},function(g,b,a){var F=a(61);g=a(228);var B=a(66),D=a(138),A=a(73),x=a(94),q=a(136),p=a(275),e=a(229);g("match",function(c,d,h){return[function(k){var f=x(this),n=null==k?void 0:q(k,c);return n?F(n,k,f):(new RegExp(k))[c](A(f))},function(k){var f=B(this);k=A(k);var n=h(d,f,k);if(n.done)return n.value; 2412if(!f.global)return e(f,k);n=f.unicode;f.lastIndex=0;for(var l,r=[],m=0;null!==(l=e(f,k));
2412)l=A(l[0]),r[m]=l,""===l&&(f.lastIndex=p(k,D(f.lastIndex),n)),m++;return 0===m?null:r}]})},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a(3);a(0);a(2);a(11);a(4);var D=a(311),A=new WeakMap;a=function(){function x(){var q=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},p=q.viewportSize,e=q.scrollOffset,c=q.totalItems,d=q.itemSizeFn,h=q.overrideFn,k=q.calculationType, 2413f=q.stretchMode;q=q.stretchingItemWidthFn;q=void 0===q?function(n){return n}:q;(0,F.default)(this,x);A.set(this,{viewportWidth:p,scrollOffset:e,totalColumns:c,columnWidthFn:d,overrideFn:h,calculationType:k,stretchingColumnWidthFn:q});this.count=0;this.startPosition=this.endColumn=this.startColumn=null;this.stretchLastWidth=this.stretchAllRatio=0;this.stretch=f;this.totalTargetWidth=0;this.needVerifyLastColumnWidth=!0;this.stretchAllColumnsWidth=[];this.calculate()}return(0,B.default)(x,[{key:"calculate", 2414value:function(){var q=0,p=!0,e=[],c=A.get(this),d=c.calculationType,h=c.overrideFn,k=c.scrollOffset,f=c.totalColumns;c=c.viewportWidth;for(var n=0;n<f;n++){var l=this._getColumnWidth(n);q<=k&&d!==D.FULLY_VISIBLE_TYPE&&(this.startColumn=n);var r=0<k?c+1:c;if(q>=k&&q+(d===D.FULLY_VISIBLE_TYPE?l:0)<=k+r&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=n),this.endColumn=n),e.push(q),q+=l,d!==D.FULLY_VISIBLE_TYPE&&(this.endColumn=n),q>=k+c){p=!1;break}}if(this.endColumn===f-1&& 2415p)for(this.startColumn=this.endColumn;0<this.startColumn&&!(q=e[this.endColumn]+l-e[this.startColumn-1],(q<=c||d!==D.FULLY_VISIBLE_TYPE)&&--this.startColumn,q>c););d===D.RENDER_TYPE&&null!==this.startColumn&&h&&h(this);this.startPosition=e[this.startColumn];void 0===this.startPosition&&(this.startPosition=null);f<this.endColumn&&(this.endColumn=f-1);null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(q){if("none"!==this.stretch){this.totalTargetWidth= 2416q;for(var p=A.get(this),e=p.totalColumns,c=0,d=0;d<e;d++){var h=this._getColumnWidth(d),k=p.stretchingColumnWidthFn(void 0,d);"number"==typeof k?q-=k:c+=h}p=q-c;"all"===this.stretch&&0<p?(this.stretchAllRatio=q/c,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0):"last"===this.stretch&&q!==1/0&&(q=this._getColumnWidth(e-1),e=p+q,this.stretchLastWidth=0<=e?e:q)}}},{key:"getStretchedColumnWidth",value:function(q,p){var e=null;return"all"===this.stretch&&0!==this.stretchAllRatio?e=this._getStretchedAllColumnWidth(q, 2417p):"last"===this.stretch&&0!==this.stretchLastWidth&&(e=this._getStretchedLastColumnWidth(q)),e}},{key:"_getStretchedAllColumnWidth",value:function(q,p){var e=0,c=A.get(this),d=c.totalColumns;this.stretchAllColumnsWidth[q]||(p=Math.round(p*this.stretchAllRatio),c=c.stretchingColumnWidthFn(p,q),this.stretchAllColumnsWidth[q]=void 0===c?p:isNaN(c)?this._getColumnWidth(q):c);if(this.stretchAllColumnsWidth.length===d&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(d=0;d<this.stretchAllColumnsWidth.length;d++)e+= 2418this.stretchAllColumnsWidth[d];e!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-e)}return this.stretchAllColumnsWidth[q]}},{key:"_getStretchedLastColumnWidth",value:function(q){return q===A.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(q){q=A.get(this).columnWidthFn(q);return isNaN(q)&&(q=x.DEFAULT_WIDTH),q}}],[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),x}();b.default=a},function(g, 2419b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a(3);a(0);a(2);a(11);a(4);var D=a(311),A=new WeakMap;a=function(){function x(){var q=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},p=q.viewportSize,e=q.scrollOffset,c=q.totalItems,d=q.itemSizeFn,h=q.overrideFn,k=q.calculationType;q=q.scrollbarHeight;(0,F.default)(this,x);A.set(this,{viewportHeight:p,scrollOffset:e,totalRows:c,rowHeightFn:d,overrideFn:h,calculationType:k,horizontalScrollbarHeight:q});this.count=0;this.startPosition= 2420this.endRow=this.startRow=null;this.calculate()}return(0,B.default)(x,[{key:"calculate",value:function(){var q,p=0,e=!0,c=[],d=A.get(this),h=d.calculationType,k=d.overrideFn,f=d.rowHeightFn,n=d.scrollOffset,l=d.totalRows,r=d.viewportHe
2420ight;d=d.horizontalScrollbarHeight||0;for(var m=0;m<l;m++)if(q=f(m),isNaN(q)&&(q=x.DEFAULT_HEIGHT),p<=n&&h!==D.FULLY_VISIBLE_TYPE&&(this.startRow=m),p>=n&&p+(h===D.FULLY_VISIBLE_TYPE?q:0)<=n+r-d&&(null===this.startRow&&(this.startRow=m),this.endRow=m),c.push(p),p+=q, 2421h!==D.FULLY_VISIBLE_TYPE&&(this.endRow=m),p>=n+r-d){e=!1;break}if(this.endRow===l-1&&e)for(this.startRow=this.endRow;0<this.startRow&&!(p=c[this.endRow]+q-c[this.startRow-1],(p<=r-d||h!==D.FULLY_VISIBLE_TYPE)&&--this.startRow,p>=r-d););h===D.RENDER_TYPE&&null!==this.startRow&&k&&k(this);this.startPosition=c[this.startRow];void 0===this.startPosition&&(this.startPosition=null);l<this.endRow&&(this.endRow=l-1);null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT", 2422get:function(){return 23}}]),x}();b.default=a},function(g,b){g.exports=function(a,F,B){if(!F.has(a))throw new TypeError("attempted to "+B+" private field on non-instance");return F.get(a)};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(42);a(49);a(33);a(3);a(0);a(2);a(11);a(4);var F=g(a(5)),B=g(a(6)),D=g(a(41)),A=g(a(109)),x=g(a(110)),q=g(a(312)),p=new WeakMap;a=function(){function e(c){var d=1<arguments.length&&void 0!==arguments[1]? 2423arguments[1]:c,h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:c,k=3<arguments.length&&void 0!==arguments[3]&&arguments[3];(0,F.default)(this,e);(0,D.default)(this,"highlight",null);(0,D.default)(this,"from",null);(0,D.default)(this,"to",null);if(p.has(this))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;p.set(this,{writable:!0,value:!1});this.highlight=c.clone().normalize();this.from=d.clone();this.to=h.clone();(0,x.default)(this,p,k)}return(0,B.default)(e, 2424[{key:"setHighlight",value:function(c){return this.highlight=c.clone().normalize(),this}},{key:"setFrom",value:function(c){return this.from=c.clone(),this}},{key:"setTo",value:function(c){return this.to=c.clone(),this}},{key:"isValid",value:function(c){return this.from.isValid(c)&&this.to.isValid(c)}},{key:"isSingle",value:function(){return 0<=this.from.row&&this.from.row===this.to.row&&0<=this.from.col&&this.from.col===this.to.col}},{key:"getOuterHeight",value:function(){return Math.max(this.from.row, 2425this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getOuterWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"getHeight",value:function(){var c=Math.max(this.from.row,0),d=Math.max(this.to.row,0);return Math.max(c,d)-Math.min(c,d)+1}},{key:"getWidth",value:function(){var c=Math.max(this.from.col,0),d=Math.max(this.to.col,0);return Math.max(c,d)-Math.min(c,d)+1}},{key:"getCellsCount",value:function(){return this.getWidth()*this.getHeight()}}, 2426{key:"includes",value:function(c){var d=c.row;c=c.col;var h=this.getOuterTopStartCorner(),k=this.getOuterBottomEndCorner();return h.row<=d&&k.row>=d&&h.col<=c&&k.col>=c}},{key:"includesRange",value:function(c){return this.includes(c.getOuterTopStartCorner())&&this.includes(c.getOuterBottomEndCorner())}},{key:"isEqual",value:function(c){return Math.min(this.from.row,this.to.row)===Math.min(c.from.row,c.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(c.from.row,c.to.row)&&Math.min(this.from.col, 2427this.to.col)===Math.min(c.from.col,c.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(c.from.col,c.to.col)}},{key:"overlaps",value:function(c){return c.isSouthEastOf(this.getOuterTopLeftCorner())&&c.isNorthWestOf(this.getOuterBottomRightCorner())}},{key:"isSouthEastOf",value:function(c){return this.getOuterTopLeftCorner().isSouthEastOf(c)||this.getOuterBottomRightCorner().isSouthEastOf(c)}},{key:"isNorthWestOf",value:function(c){return this.getOuterTopLeftCorner().isNorthWestOf(c)||this.getOuterBottomRightCorner().isNorthWestOf(c)}}, 2428{key:"isOverlappingHorizontally",value:function(c){return this.getOuterTopRightCorner().col>=c.getOuterTopLeftCorner().col&&this.getOuterTopRightCorner().col<=c.getOuterTopRightCorner().col||this.getOuterTopLeftCorner().col<=c.getOuterTopRightCorner().col&&this.getOuterTopLeftCorner().col>=c.getOuterTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(c){return this.getOuterBottomRightCorner().row>=c.getOuterTopRightCorner().row&&this.getOuterBottomRightCorner().row<=c.getOuterBottomRightCorner().row|| 2429this.getOuterTopRightCorner().row<=c.getOuterBottomRightCorner().row&&this.getOuterTopRightCorner().row>=c.getOuterTopRightCorner().row}},{key:"expand",value:function(c){var d=this.getOuterTopStartCorner(),h=this.getOuterBottomEndCorner();return(c.row<d.row||c.col<d.col||c.row>h.row||c.col>h.col)&&(this.from=this._createCellCoords(Math.min(d.row,c.row),Math.min(d.col,c.col)),this.to=this._createCellCoords(Math.max(h.row,c.row),Math.max(h.col,c.col)),!0)}},{key:"expandByRange",value:function(c){if(this.includesRange(c)|| 2430!this.overlaps(c))return!1;var d=this.getOuterTopStartCorner(),h=this.getOuterBottomEndCorner(),k=this.getDirection(),f=c.getOuterTopStartCorner(),n=c.getOuterBottomEndCorner();c=Math.max(h.row,n.row);h=Math.max(h.col,n.col);d=this._createCellCoords(Math.min(d.row,f.row),Math.min(d.col,f.col));f=this._createCellCoords(c,h);return this.from=d,this.to=f,this.setDirection(k),this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(), 2431this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally(),!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(c){switch(c){case "NW-SE":c=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];this.from=c[0];this.to=c[1]; 2432break;case "NE-SW":c=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];this.from=c[0];this.to=c[1];break;case "SE-NW":c=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];this.from=c[0];this.to=c[1];break;case "SW-NE":c=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()],this.from=c[0],this.to=c[1]}}},{key:"getVerticalDirection",value:function(){return-1<["NE-SW","NW-SE"].indexOf(this.getDirection())?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return-1< 2433["NW-SE","SW-NE"].indexOf(this.getDirection())?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){switch(this.getDirection()){case "NW-SE":this.setDirection("SW-NE");break;case "NE-SW":this.setDirection("SE-NW");break;case "SE-NW":this.setDirection("NE-SW");break;case "SW-NE":this.setDirection("NW-SE")}}},{key:"flipDirectionHorizontally",value:function(){switch(this.getDirection()){case "NW-SE":this.setDirection("NE-SW");break;case "NE-SW":this.setDirection("NW-SE");break;case "SE-NW":this.setDirection("SW-NE"); 2434break;case "SW-NE":this.setDirection("SE-NW")}}},{key:"getTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getTopLeftCorner",value:function(){return(0,A.default)(this,p)?this.getTopEndCorner():this.getTopStartCorner()}},{key:"getBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getBottomRightCorner", 2435value:function(){return(0,A.default)(this,p)?this.getBottomStartCorner():this.getBottomEndCorner()}},{key:"getTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getTopRightCorner",value:function(){return(0,A.default)(this,p)?this.getTopStartCorner():this.getTopEndCorner()}},{key:"getBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,
2436this.to.col)).normalize()}},{key:"getBottomLeftCorner",value:function(){return(0,A.default)(this,p)?this.getBottomEndCorner():this.getBottomStartCorner()}},{key:"getOuterTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterTopLeftCorner",value:function(){return(0,A.default)(this,p)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}},{key:"getOuterBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row, 2437this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterBottomRightCorner",value:function(){return(0,A.default)(this,p)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}},{key:"getOuterTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterTopRightCorner",value:function(){return(0,A.default)(this,p)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}},{key:"getOuterBottomStartCorner", 2438value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterBottomLeftCorner",value:function(){return(0,A.default)(this,p)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}},{key:"isCorner",value:function(c,d){return!!(d&&d.includes(c)&&(this.getOuterTopLeftCorner().isEqual(this._createCellCoords(d.from.row,d.from.col))||this.getOuterTopRightCorner().isEqual(this._createCellCoords(d.from.row,d.to.col))||this.getOuterBottomLeftCorner().isEqual(this._createCellCoords(d.to.row, 2439d.from.col))||this.getOuterBottomRightCorner().isEqual(this._createCellCoords(d.to.row,d.to.col))))||c.isEqual(this.getOuterTopLeftCorner())||c.isEqual(this.getOuterTopRightCorner())||c.isEqual(this.getOuterBottomLeftCorner())||c.isEqual(this.getOuterBottomRightCorner())}},{key:"getOppositeCorner",value:function(c,d){if(!(c instanceof q.default))return!1;if(d){var h=d.from,k=d.to;
2439if(d.includes(c)){if(this.getOuterTopStartCorner().isEqual(this._createCellCoords(h.row,h.col)))return this.getOuterBottomEndCorner(); 2440if(this.getOuterTopEndCorner().isEqual(this._createCellCoords(h.row,k.col)))return this.getOuterBottomStartCorner();if(this.getOuterBottomStartCorner().isEqual(this._createCellCoords(k.row,h.col)))return this.getOuterTopEndCorner();if(this.getOuterBottomEndCorner().isEqual(this._createCellCoords(k.row,k.col)))return this.getOuterTopStartCorner()}}return c.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():c.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():c.isEqual(this.getOuterTopEndCorner())? 2441this.getOuterBottomStartCorner():c.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0}},{key:"getBordersSharedWith",value:function(c){if(!this.includesRange(c))return[];var d=Math.max(this.from.row,this.to.row),h=Math.min(this.from.col,this.to.col),k=Math.max(this.from.col,this.to.col),f=Math.max(c.from.row,c.to.row),n=Math.min(c.from.col,c.to.col),l=Math.max(c.from.col,c.to.col),r=[];return Math.min(this.from.row,this.to.row)===Math.min(c.from.row,c.to.row)&&r.push("top"), 2442k===l&&r.push("right"),d===f&&r.push("bottom"),h===n&&r.push("left"),r}},{key:"getInner",value:function(){for(var c=this.getOuterTopStartCorner(),d=this.getOuterBottomEndCorner(),h=[],k=c.row;k<=d.row;k++)for(var f=c.col;f<=d.col;f++)this.from.row===k&&this.from.col===f||this.to.row===k&&this.to.col===f||h.push(this._createCellCoords(k,f));return h}},{key:"getAll",value:function(){for(var c=this.getOuterTopStartCorner(),d=this.getOuterBottomEndCorner(),h=[],k=c.row;k<=d.row;k++)for(var f=c.col;f<= 2443d.col;f++)c.row===k&&c.col===f?h.push(c):d.row===k&&d.col===f?h.push(d):h.push(this._createCellCoords(k,f));return h}},{key:"forAll",value:function(c){for(var d=this.getOuterTopStartCorner(),h=this.getOuterBottomEndCorner(),k=d.row;k<=h.row;k++)for(var f=d.col;f<=h.col;f++)if(!1===c(k,f))return}},{key:"clone",value:function(){return new e(this.highlight,this.from,this.to,(0,A.default)(this,p))}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}},{key:"_createCellCoords", 2444value:function(c,d){return new q.default(c,d,(0,A.default)(this,p))}}]),e}();b.default=a},function(g,b){function a(F,B){return g.exports=a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,A){return D.__proto__=A,D},g.exports.__esModule=!0,g.exports.default=g.exports,a(F,B)}g.exports=a;g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a(3);a(0);a(2);a(11);a(4);a(77);a(42);var D=a(23),A=a(70),x=a(134),q= 2445a(107),p=a(31),e=new WeakMap;a=function(){function c(d,h,k,f,n,l){var r=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null;(0,F.default)(this,c);this.wtSettings=k;this.domBindings=h;this.wtTable=n;this.selections=l;this.parent=r;this.eventManager=f;this.facadeGetter=d;e.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,
2445null],dblClickOrigin:[null,null]});this.registerEvents()}return(0,B.default)(c,[{key:"registerEvents",value:function(){var d=this;this.eventManager.addEventListener(this.wtTable.holder, 2446"contextmenu",function(k){return d.onContextMenu(k)});this.eventManager.addEventListener(this.wtTable.TABLE,"mouseover",function(k){return d.onMouseOver(k)});this.eventManager.addEventListener(this.wtTable.TABLE,"mouseout",function(k){return d.onMouseOut(k)});var h=function(){d.eventManager.addEventListener(d.wtTable.holder,"touchstart",function(k){return d.onTouchStart(k)});d.eventManager.addEventListener(d.wtTable.holder,"touchend",function(k){return d.onTouchEnd(k)});d.momentumScrolling||(d.momentumScrolling= 2447{});d.eventManager.addEventListener(d.wtTable.holder,"scroll",function(){clearTimeout(d.momentumScrolling._timeout);d.momentumScrolling.ongoing||d.wtSettings.getSetting("onBeforeTouchScroll");d.momentumScrolling.ongoing=!0;d.momentumScrolling._timeout=setTimeout(function(){d.touchApplied||(d.momentumScrolling.ongoing=!1,d.wtSettings.getSetting("onAfterMomentumScroll"))},200)})};(0,q.isMobileBrowser)()?h():((0,x.isTouchSupported)()&&h(),d.eventManager.addEventListener(d.wtTable.holder,"mouseup",function(k){return d.onMouseUp(k)}), 2448d.eventManager.addEventListener(d.wtTable.holder,"mousedown",function(k){return d.onMouseDown(k)}))}},{key:"selectedCellWasTouched",value:function(d){var h=e.get(this),k=this.parentCell(d).coords;return h.selectedCellBeforeTouchEnd&&k?(d=[k.row,h.selectedCellBeforeTouchEnd.from.row],h=[k.col,h.selectedCellBeforeTouchEnd.from.col],d[0]===d[1]&&h[0]===h[1]):!1}},{key:"parentCell",value:function(d){var h={},k=(0,D.closestDown)(d,["TD","TH"],this.wtTable.TABLE);return k?(h.coords=this.wtTable.getCoords(k), 2449h.TD=k):(0,D.hasClass)(d,"wtBorder")&&(0,D.hasClass)(d,"current")?(h.coords=this.selections.getCell().cellRange.highlight,h.TD=this.wtTable.getCell(h.coords)):(0,D.hasClass)(d,"wtBorder")&&(0,D.hasClass)(d,"area")&&this.selections.createOrGetArea().cellRange&&(h.coords=this.selections.createOrGetArea().cellRange.to,h.TD=this.wtTable.getCell(h.coords)),h}},{key:"onMouseDown",value:function(d){var h=e.get(this),k=this.domBindings.rootDocument.activeElement,f=(0,A.partial)(D.getParent,d.target),n=d.target; 2450n!==k&&f(0)!==k&&f(1)!==k&&(k=this.parentCell(n),(0,D.hasClass)(n,"corner")?this.wtSettings.getSetting("onCellCornerMouseDown",d,n):k.TD&&this.wtSettings.has("onCellMouseDown")&&this.callListener("onCellMouseDown",d,k.coords,k.TD),(0===d.button||this.touchApplied)&&k.TD&&(h.dblClickOrigin[0]=k.TD,clearTimeout(h.dblClickTimeout[0]),h.dblClickTimeout[0]=setTimeout(function(){h.dblClickOrigin[0]=null},1E3)))}},{key:"onContextMenu",value:function(d){if(this.wtSettings.has("onCellContextMenu")){var h= 2451this.parentCell(d.target);h.TD&&this.callListener("onCellContextMenu",d,h.coords,h.TD)}}},{key:"onMouseOver",value:function(d){if(this.wtSettings.has("onCellMouseOver")){var h=this.wtTable.TABLE,k=(0,D.closestDown)(d.target,["TD","TH"],h),f=this.parent||this;k&&k!==f.lastMouseOver&&(0,D.isChildOf)(k,h)&&(f.lastMouseOver=k,this.callListener("onCellMouseOver",d,this.wtTable.getCoords(k),k))}}},{key:"onMouseOut",value:function(d){if(this.wtSettings.has("onCellMouseOut")){var h=this.wtTable.TABLE,k=(0,D.closestDown)(d.target, 2452["TD","TH"],h),f=(0,D.closestDown)(d.relatedTarget,["TD","TH"],h);k&&k!==f&&(0,D.isChildOf)(k,h)&&this.callListener("onCellMouseOut",d,this.wtTable.getCoords(k),k)}}},{key:"onMouseUp",value:function(d){var h=e.get(this),k=this.parentCell(d.target);k.TD&&this.wtSettings.has("onCellMouseUp")&&this.callListener("onCellMouseUp",d,k.coords,k.TD);(0===d.button||this.touchApplied)&&(k.TD===h.dblClickOrigin[0]&&k.TD===h.dblClickOrigin[1]?((0,D.hasClass)(d.target,"corner")?this.callListener("onCellCornerDblClick", 2453d,k.coords,k.TD):this.callListener("onCellDblClick",d,k.coords,k.TD),h.dblClickOrigin[0]=null,h.dblClickOrigin[1]=null):k.TD===h.dblClickOrigin[0]&&(h.dblClickOrigin[1]=k.TD,clearTimeout(h.dblClickTimeout[1]),h.dblClickTimeout[1]=setTimeout(function(){h.dblClickOrigin[1]=null},500)))}},{key:"onTouchStart",value:function(d){e.get(this).selectedCellBeforeTouchEnd=this.selections.getCell().cellRange;this.touchApplied=!0;this.onMouseDown(d)}},{key:"onTouchEnd",value:function(d){var h,k=d.target,f=null=== 2454(h=this.parentCell(k))||void 0===h?void 0:h.coords;h=(0,p.isDefined)(f)&&0<=f.row&&0<=f.col;d.cancelable&&h&&this.wtSettings.getSetting("isDataViewInstance")&&((0,q.isIOS)()&&((0,q.isChromeWebKit)()||(0,q.isFirefoxWebKit)())&&this.selectedCellWasTouched(k)&&!["A","BUTTON","INPUT"].includes(k.tagName)?d.preventDefault():this.selectedCellWasTouched(k)||d.preventDefault());this.onMouseUp(d);this.touchApplied=!1}},{key:"callListener",value:function(d,h,k,f){(d=this.wtSettings.getSettingPure(d))&&d(h, 2455k,f,this.facadeGetter())}},{key:"destroy",value:function(){var d=e.get(this);clearTimeout(d.dblClickTimeout[0]);clearTimeout(d.dblClickTimeout[1]);this.eventManager.destroy()}}]),c}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.Renderer=void 0;var F=g(a(5)),B=g(a(6)),D=g(a(797));b.RowHeadersRenderer=D.default;var A=g(a(802));b.ColumnHeadersRenderer=A.default;var x=g(a(803));b.ColGroupRenderer=x.default;var q=g(a(804));b.RowsRenderer=q.default;var p=g(a(805));b.CellsRenderer=p.default;var e= 2456g(a(806));b.TableRenderer=e.default;a=function(){function c(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},h=d.TABLE,k=d.THEAD,f=d.COLGROUP,n=d.TBODY,l=d.rowUtils,r=d.columnUtils;d=d.cellRenderer;(0,F.default)(this,c);
2456this.renderer=new e.default(h,{cellRenderer:d});this.renderer.setRenderers({rowHeaders:new D.default,columnHeaders:new A.default(k),colGroup:new x.default(f),rows:new q.default(n),cells:new p.default});this.renderer.setAxisUtils(l,r)}return(0,B.default)(c,[{key:"setFilters", 2457value:function(d,h){return this.renderer.setFilters(d,h),this}},{key:"setViewportSize",value:function(d,h){return this.renderer.setViewportSize(d,h),this}},{key:"setHeaderContentRenderers",value:function(d,h){return this.renderer.setHeaderContentRenderers(d,h),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}]),c}();b.Renderer=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=a(596),A=g(a(798)); 2458a=function(){function x(q,p,e){(0,F.default)(this,x);this.rootNode=q;this.nodesPool=p;this.sizeSet=new A.default;this.childNodeType=e.toUpperCase();this.visualIndex=0;this.collectedNodes=[]}return(0,B.default)(x,[{key:"setSize",value:function(q){return this.sizeSet.setSize(q),this}},{key:"setOffset",value:function(q){return this.sizeSet.setOffset(q),this}},{key:"isSharedViewSet",value:function(){return this.sizeSet.isShared()}},{key:"getNode",value:function(q){return q<this.collectedNodes.length? 2459this.collectedNodes[q]:null}},{key:"getCurrentNode",value:function(){var q=this.collectedNodes.length;return 0<q?this.collectedNodes[q-1]:null}},{key:"getRenderedChildCount",value:function(){var q=this.rootNode,p=this.sizeSet,e=0;if(this.isSharedViewSet())for(q=q.firstElementChild;q;){if(q.tagName===this.childNodeType)e+=1;else if(p.isPlaceOn(D.WORKING_SPACE_TOP))break;q=q.nextElementSibling}else e=q.childElementCount;return e}},{key:"start",value:function(){this.visualIndex=this.collectedNodes.length= 24600;for(var q=this.rootNode,p=this.sizeSet,e=this.isSharedViewSet(),c=p.getViewSize().nextSize,d=this.getRenderedChildCount();d<c;){var h=this.nodesPool();
2460!e||e&&p.isPlaceOn(D.WORKING_SPACE_BOTTOM)?q.appendChild(h):q.insertBefore(h,q.firstChild);d+=1}for(p=e&&p.isPlaceOn(D.WORKING_SPACE_TOP);d>c;)q.removeChild(p?q.firstChild:q.lastChild),--d}},{key:"render",value:function(){var q=this.rootNode,p=this.sizeSet,e=this.visualIndex;this.isSharedViewSet()&&p.isPlaceOn(D.WORKING_SPACE_BOTTOM)&&(e+=p.sharedSize.nextSize); 2461p=q.childNodes[e];p.tagName!==this.childNodeType&&(e=this.nodesPool(),q.replaceChild(e,p),p=e);this.collectedNodes.push(p);this.visualIndex+=1}},{key:"end",value:function(){}}]),x}();b.default=a},function(g,b,a){b.__esModule=!0;b.WORKING_SPACE_ALL=0;b.WORKING_SPACE_TOP=1;b.WORKING_SPACE_BOTTOM=2},function(g,b,a){b.__esModule=!0;b.default=void 0;g={getFirstRenderedRow:function(){var F=this.wtSettings.getSetting("totalRows"),B=this.wtSettings.getSetting("fixedRowsBottom"),D=F-B;return 0===F||0===B? 2462-1:0>D?0:D},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var F=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsBottom"),F)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,a(17).defineGetter)(g,"MIXIN_NAME","stickyRowsBottom",{writable:!1, 2463enumerable:!1});b.default=g},function(g,b,a){b.__esModule=!0;b.default=void 0;g={getFirstRenderedRow:function(){var F=this.dataAccessObject.startRowRendered;return null===F?-1:F},getFirstVisibleRow:function(){var F=this.dataAccessObject.startRowVisible;return null===F?-1:F},getLastRenderedRow:function(){var F=this.dataAccessObject.endRowRendered;return null===F?-1:F},getLastVisibleRow:function(){var F=this.dataAccessObject.endRowVisible;return null===F?-1:F},getRenderedRowsCount:function(){return this.dataAccessObject.countRowsRendered}, 2464getVisibleRowsCount:function(){return this.dataAccessObject.countRowsVisible}};(0,a(17).defineGetter)(g,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});b.default=g},function(g,b,a){b.__esModule=!0;b.default=void 0;g={getFirstRenderedRow:function(){return 0===this.wtSettings.getSetting("totalRows")?-1:0},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.getRenderedRowsCount()-1},getLastVisibleRow:function(){return this.getLastRenderedRow()}, 2465getRenderedRowsCount:function(){var F=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsTop"),F)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,a(17).defineGetter)(g,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});b.default=g},function(g,b,a){g=a(28);b=a(362);var F=a(38),B=a(63),D=a(187).onFreeze,A=Object.freeze;g({target:"Object",stat:!0,forced:F(function(){A(1)}),sham:!b},{freeze:function(x){return A&&B(x)?A(D(x)):x}})}, 2466function(g,b,a){function F(x){var q=x.isShiftKey,p=x.isLeftClick,e=x.isRightClick,c=x.coords,d=x.selection,h=x.controller;x=x.cellCoordsFactory;var k=d.isSelected()?d.getSelectedRange().current():null,f=d.isSelectedByCorner(),n=d.isSelectedByRowHeader();q&&k?0<=c.row&&0<=c.col&&!h.cell?d.setRangeEnd(c):(f||n)&&0<=c.row&&0<=c.col&&!h.cell?d.setRangeEnd(x(c.row,c.col)):f&&0>c.row&&!h.column?d.setRangeEnd(x(k.to.row,c.col)):n&&0>c.col&&!h.row?d.setRangeEnd(x(c.row,k.to.col)):(!f&&!n&&0>c.col||f&&0>c.col)&& 2467!h.row?d.selectRows(Math.max(k.from.row,0),c.row,c.col):(!f&&!n&&0>c.row||n&&0>c.row)&&!h.column&&d.selectColumns(Math.max(k.from.col,0),c.col,c.row):(q=!d.inInSelection(c),p=p||e&&q,0>c.row&&0<=c.col&&!h.column?p&&d.selectColumns(c.col,c.col,c.row):0>c.col&&0<=c.row&&!h.row?p&&d.selectRows(c.row,c.row,c.col):0<=c.col&&0<=c.row&&!h.cell?p&&d.setRangeStart(c):0>c.col&&0>c.row&&d.selectAll(!0,!0))}function B(x){var q=x.coords,p=x.selection,e=x.controller,c=x.cellCoordsFactory;if(x.isLeftClick){x=p.isSelectedByRowHeader(); 2468var d=p.isSelectedByColumnHeader(),h=p.tableProps.countCols(),k=p.tableProps.countRows();d&&!e.column?p.setRangeEnd(c(k-1,q.col)):x&&!e.row?p.setRangeEnd(c(q.row,h-1)):e.cell||p.setRangeEnd(q)}}
2468b.__esModule=!0;b.handleMouseEvent=function(x,q){var p=q.coords,e=q.selection,c=q.controller;q=q.cellCoordsFactory;A.get(x.type)({coords:p,selection:e,controller:c,cellCoordsFactory:q,isShiftKey:x.shiftKey,isLeftClick:(0,D.isLeftClick)(x)||"touchstart"===x.type,isRightClick:(0,D.isRightClick)(x)})};b.mouseDown= 2469F;b.mouseOver=B;a(3);a(32);a(0);a(2);a(4);var D=a(83),A=new Map([["mousedown",F],["mouseover",B],["touchstart",F]])},function(g,b,a){a(27);a(53);b.__esModule=!0;var F={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};b.createIndexMap=function(c){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if(!e.has(c))throw Error('The provided map type ("'.concat(c,'") does not exist.'));return new (e.get(c))(d)};a(3);a(32); 2470a(0);a(2);a(4);g=a(827);b.HidingMap=g.HidingMap;var B=a(246);b.IndexMap=B.IndexMap;var D=a(829);b.LinkedPhysicalIndexToValueMap=D.LinkedPhysicalIndexToValueMap;var A=a(317);b.PhysicalIndexToValueMap=A.PhysicalIndexToValueMap;var x=a(830);b.TrimmingMap=x.TrimmingMap;var q=a(831);Object.keys(q).forEach(function(c){"default"!==c&&"__esModule"!==c&&(Object.prototype.hasOwnProperty.call(F,c)||c in b&&b[c]===q[c]||(b[c]=q[c]))});var p=a(247);Object.keys(p).forEach(function(c){"default"!==c&&"__esModule"!== 2471c&&(Object.prototype.hasOwnProperty.call(F,c)||c in b&&b[c]===p[c]||(b[c]=p[c]))});var e=new Map([["hiding",g.HidingMap],["index",B.IndexMap],["linkedPhysicalIndexToValue",D.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",A.PhysicalIndexToValueMap],["trimming",x.TrimmingMap]])},function(g,b,a){b.__esModule=!0;b.getDecreasedIndexes=function(B,D){return(0,F.arrayMap)(B,function(A){return A-D.filter(function(x){return x<A}).length})};b.getIncreasedIndexes=function(B,D){var A=D[0],x=D.length;return(0,F.arrayMap)(B, 2472function(q){return q>=A?q+x:q})};a(39);a(0);var F=a(20)},function(g,b,a){b.__esModule=!0;b.alterUtilsFactory=void 0;a(3);a(32);a(0);a(2);a(4);g=a(603);b.getDecreasedIndexes=g.getDecreasedIndexes;b.getIncreasedIndexes=g.getIncreasedIndexes;g=a(247);a=a(318);var F=new Map([["indexesSequence",{getListWithInsertedItems:g.getListWithInsertedItems,getListWithRemovedItems:g.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:a.getListWithInsertedItems,getListWithRemovedItems:a.getListWithRemovedItems}]]); 2473b.alterUtilsFactory=function(B){if(!1===F.has(B))throw Error("Alter strategy with ID '".concat(B,"' does not exist."));return F.get(B)}},function(g,b,a){function F(m){if("function"!=typeof WeakMap)return null;var t=new WeakMap,u=new WeakMap;return(F=function(w){return w?u:t})(m)}function B(m,t){var u=m;(0,q.isObject)(m)&&(u=(t=m).languageCode);u!==k&&(0,c.extendNotExistingKeys)(t,n(k));return f(u,(0,q.deepClone)(t)),(0,q.deepClone)(t)}function D(m){return l(m)?(0,q.deepClone)(n(m)):null}a(3);a(0); 2474a(2);a(11);a(4);a(19);var A=a(1),x=a(21);b.__esModule=!0;b.dictionaryKeys=b.DEFAULT_LANGUAGE_CODE=void 0;b.getDefaultLanguageDictionary=function(){return h.default};b.getLanguageDictionary=D;b.getLanguagesDictionaries=function(){return r()};b.getTranslatedPhrase=function(m,t,u){m=D(m);if(null===m)return null;t=m[t];if((0,e.isUndefined)(t))return null;u=function(w,v){var C=w;return(0,p.arrayEach)((0,d.getPhraseFormatters)(),function(y){C=y(w,v)}),C}(t,u);return Array.isArray(u)?u[0]:u};b.getValidLanguageCode= 2475function(m){var t=(0,c.normalizeLanguageCode)(m);l(t)||(t=k,(0,c.warnUserAboutLanguageRegistration)(m));return t};b.hasLanguageDictionary=function(m){return l(m)};b.registerLanguageDictionary=B;var q=a(17),p=a(20),e=a(31),c=a(606);g=A(a(119));var d=a(837),h=A(a(839));a=function(m,t){if(!t&&m&&m.__esModule)return m;if(null===m||"object"!==x(m)&&"function"!=typeof m)return{default:m};if((t=F(t))&&t.has(m))return t.get(m);var u={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor,v;for(v in m)if("default"!== 2476v&&Object.prototype.hasOwnProperty.call(m,v)){var C=w?Object.getOwnPropertyDescriptor(m,v):null;C&&(C.get||C.set)?Object.defineProperty(u,v,C):u[v]=m[v]}u.default=m;t&&t.set(m,u);return u}(a(29));b.dictionaryKeys=a;var k=h.default.languageCode;b.DEFAULT_LANGUAGE_CODE=k;b=(0,g.default)("languagesDictionaries");var f=b.register,n=b.getItem,l=b.hasItem,r=b.getValues;B(h.default)},function(g,b,a){g=a(1);b.__esModule=!0;b.createCellHeadersRange=function(p,e){var c=2<arguments.length&&void 0!==arguments[2]? 2477arguments[2]:p,d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:e;p>e&&(d=[d,c],c=d[0],d=d[1]);return"".concat(c,"-").concat(d)};b.extendNotExistingKeys=function(p,e){return(0,A.objectEach)(e,function(c,d){(0,D.isUndefined)(p[d])&&(p[d]=c)}),p};b.normalizeLanguageCode=function(p){var e=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(p);return e?"".concat(e[1].toLowerCase(),"-").concat(e[2].toUpperCase()):p};b.warnUserAboutLanguageRegistration=function(p){(0,D.isDefined)(p)&&(0,x.error)((0,q.toSingleLine)(B|| 2478(B=(0,F.default)(['Language with code "','" was not found. You should register particular language \n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'],['Language with code "','" was not found. You should register particular language\\x20\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'])),p))};
2478var F=g(a(78));a(18);a(12);var B,D=a(31),A=a(17),x=a(92),q=a(79)},function(g,b,a){function F(d, 2479h){var k=Object.keys(d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(d);h&&(f=f.filter(function(n){return Object.getOwnPropertyDescriptor(d,n).enumerable}));k.push.apply(k,f)}return k}function B(d){for(var h=1;h<arguments.length;h++){var k=null!=arguments[h]?arguments[h]:{};h%2?F(Object(k),!0).forEach(function(f){(0,A.default)(d,f,k[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(k)):F(Object(k)).forEach(function(f){Object.defineProperty(d, 2480f,Object.getOwnPropertyDescriptor(k,f))})}return d}a(53);a(39);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;a(144);a(3);a(32);a(0);a(2);a(4);a(42);a(49);a(18);a(10);a(8);a(9);var D=g(a(43)),A=g(a(41)),x=g(a(5)),q=g(a(6)),p=a(840),e=a(120),c=a(20);a=function(d){function h(k){(0,x.default)(this,h);this.options=k;this.layerLevel=0;this.cell=(0,p.createHighlight)(e.CELL_TYPE,k);this.fill=(0,p.createHighlight)(e.FILL_TYPE,k);this.areas=new Map;this.headers=new Map;this.activeHeaders=new Map; 2481this.customSelections=[]}return(0,q.default)(h,[{key:"isEnabledFor",value:function(k,f){var n=k;k===e.CELL_TYPE&&(n="current");k=this.options.disabledCellSelection(f.row,f.col);return"string"==typeof k&&(k=[k]),!1===k||Array.isArray(k)&&!k.includes(n)}},{key:"useLayerLevel",value:function(){return this.layerLevel=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea", 2482value:function(){var k,f=this.layerLevel;return this.areas.has(f)?k=this.areas.get(f):(k=(0,p.createHighlight)(e.AREA_TYPE,B({layerLevel:f},this.options)),this.areas.set(f,k)),k}},{key:"getAreas",value:function(){return(0,D.default)(this.areas.values())}},{key:"createOrGetHeader",value:function(){var k,f=this.layerLevel;return this.headers.has(f)?k=this.headers.get(f):(k=(0,p.createHighlight)(e.HEADER_TYPE,B({},this.options)),this.headers.set(f,k)),k}},{key:"getHeaders",value:function(){return(0,D.default)(this.headers.values())}}, 2483{key:"createOrGetActiveHeader",value:function(){var k,f=this.layerLevel;return this.activeHeaders.has(f)?k=this.activeHeaders.get(f):(k=(0,p.createHighlight)(e.ACTIVE_HEADER_TYPE,B({},this.options)),this.activeHeaders.set(f,k)),k}},{key:"getActiveHeaders",value:function(){return(0,D.default)(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return(0,D.default)(this.customSelections.values())}},{key:"addCustomSelection",value:function(k){this.customSelections.push((0,p.createHighlight)(e.CUSTOM_SELECTION_TYPE, 2484B(B({},this.options),k)))}},{key:"clear",value:function(){this.cell.clear();this.fill.clear();(0,c.arrayEach)(this.areas.values(),function(k){k.clear()});(0,c.arrayEach)(this.headers.values(),function(k){k.clear()});(0,c.arrayEach)(this.activeHeaders.values(),function(k){k.clear()})}},{key:d,value:function(){return[this.cell,this.fill].concat((0,D.default)(this.areas.values()),(0,D.default)(this.headers.values()),(0,D.default)(this.activeHeaders.values()),(0,D.default)(this.customSelections))[Symbol.iterator]()}}]), 2485h}(Symbol.iterator);b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;var F=g(a(609));b.DataMap=F.default;F=g(a(852));b.MetaManager=F.default;g=g(a(611));b.metaSchemaFactory=g.default;g=a(857);b.replaceData=g.replaceData;g=a(858);b.DynamicCellMetaMod=g.DynamicCellMetaMod;a=a(859);b.ExtendMetaPropertiesMod=a.ExtendMetaPropertiesMod},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(32);a(0);a(2);a(4);a(68);a(52);a(18);a(55);a(75);a(13);a(39);a(33);a(12);a(64);var F=g(a(21)),B=g(a(5)), 2486D=g(a(6)),A=a(610),x=a(150),q=a(17),p=a(20),e=a(47),c=a(31),d=(0,x.cellMethodLookupFactory)("copyable",!1);a=function(){function h(k,f,n){(0,B.default)(this,h);this.instance=k;this.tableMeta=n;this.duckSchema=(this.dataSource=f)&&this.dataSource[0]?(0,q.duckSchema)(this.dataSource[0]):{};this.propToColCache=this.colToPropCache=void 0;this.createMap()}return(0,D.default)(h,[{key:"createMap",value:function(){var k=this.getSchema();if(void 0===k)throw Error("trying to create `columns` definition but you didn't provide `schema` nor `data`"); 2487var f=this.tableMeta.columns;if(this.colToPropCache=[],this.propToColCache=new Map,f){var n=0,l=!1;if("function"==typeof f){l=(0,q.deepObjectSize)(k);var r=0<l?l:this.countFirstRowKeys();l=!0}else r=Math.min(this.tableMeta.maxCols,f.length);for(k=0;k<r;k++){var m=l?f(k):f[k];if((0,q.isObject)(m)){if(void 0!==m.data){var t=l?n:k;this.colToPropCache[t]=m.data;this.propToColCache.set(m.data,t)}n+=1}}}else this.recursiveDuckColumns(k)}},{key:"countFirstRowKeys",value:function(){return(0,x.countFirstRowKeys)(this.dataSource)}}, 2488{key:"recursiveDuckColumns",value:function(k,f,n){var l,r=this,m=f,t=n;return void 0===m&&(m=0,t=""),"object"!==(0,F.default)(k)||Array.isArray(k)||(0,q.objectEach)(k,function(u,w){null===u?(l=t+w,r.colToPropCache.push(l),r.propToColCache.set(l,m),m+=1):m=r.recursiveDuckColumns(u,m,"".concat(w,"."))}),m}},{key:"colToProp",value:function(k){if(!1===Number.isInteger(k))return k;var f=this.instance.toPhysicalColumn(k);return null===f?k:this.colToPropCache&&(0,c.isDefined)(this.colToPropCache[f])?this.colToPropCache[f]: 2489f}},{key:"propToCol",value:function(k){var f=this.propToColCache.get(k);if((0,c.isDefined)(f))return this.instance.toVisualColumn(f);f=this.instance.toVisualColumn(k);return null===f?k:f}},{key:"getSchema",value:function(){var k=this.tableMeta.dataSchema;return k?"function"==typeof k?k():k:this.duckSchema}},{key:"createRow",value:function(k){var f=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,l=2<arguments.length?arguments[2]:void 0,r=this.instance.countSourceRows(),m=r,t=0,u=k; 2490("number"!=typeof u||u>=r)&&(u=r);u<this.instance.countRows()&&(m=this.instance.toPhysicalRow(u));if(!1===this.instance.runHooks("beforeCreateRow",u,n,l)||null===m)return 0;for(var w=this.tableMeta.maxRows,v=this.instance.countCols(),C=[],y=function(){var z=null;"array"===f.instance.dataType?f.tableMeta.dataSchema?z=(0,q.deepClone)(f.getSchema()):(z=[],(0,e.rangeEach)(v-1,function(){return z.push(null)})):"function"===f.instance.dataType?z=f.tableMeta.dataSchema(u+t):(z={},(0,q.deepExtend)(z,f.getSchema())); 2491C.push(z);t+=1};t<n&&r+t<w;)y();
2491return this.instance.rowIndexMapper.insertIndexes(u,t),this.spliceData.apply(this,[m,0].concat(C)),this.instance.runHooks("afterCreateRow",u,t,l),this.instance.forceFullRender=!0,t}},{key:"createCol",value:function(k){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=2<arguments.length?arguments[2]:void 0;if(!this.instance.isColumnModificationAllowed())throw Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource."); 2492var l=this.dataSource,r=this.tableMeta.maxCols,m=k;("number"!=typeof m||m>=this.instance.countSourceCols())&&(m=this.instance.countSourceCols());if(!1===this.instance.runHooks("beforeCreateCol",m,f,n))return 0;var t=this.instance.countSourceCols();m<this.instance.countCols()&&(t=this.instance.toPhysicalColumn(m));for(var u=this.instance.countSourceRows(),w=this.instance.countCols(),v=0;v<f&&w<r;){if("number"!=typeof m||m>=w)if(0<u)for(var C=0;C<u;C+=1)void 0===l[C]&&(l[C]=[]),l[C].push(null);else l.push([null]); 2493else for(C=0;C<u;C++)l[C].splice(t,0,null);v+=1;t+=1;w+=1}return this.instance.columnIndexMapper.insertIndexes(m,v),this.instance.runHooks("afterCreateCol",m,v,n),this.instance.forceFullRender=!0,v}},{key:"removeRow",value:function(k){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=2<arguments.length?arguments[2]:void 0,l=Number.isInteger(k)?k:-f;f=this.visualRowsToPhysical(l,f);var r=this.instance.countSourceRows();l=(r+l)%r;if(!1===this.instance.runHooks("beforeRemoveRow",l,f.length, 2494f,n))return!1;r=f.length;if(this.filterData(l,r,f),l<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(f);var m=(0,c.isDefined)(this.tableMeta.columns)||(0,c.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===m&&this.instance.columnIndexMapper.setIndexesSequence([])}return this.instance.runHooks("afterRemoveRow",l,r,f,n),this.instance.forceFullRender=!0,!0}},{key:"removeCol",value:function(k){var f=1<arguments.length&&void 0!== 2495arguments[1]?arguments[1]:1,n=2<arguments.length?arguments[2]:void 0;if("object"===this.instance.dataType||this.tableMeta.columns)throw Error("cannot remove column with object data source or columns option specified");var l="number"!=typeof k?-f:k;l=(this.instance.countCols()+l)%this.instance.countCols();var r=this.visualColumnsToPhysical(l,f),m=r.slice(0).sort(function(y,z){return z-y});if(!1===this.instance.runHooks("beforeRemoveCol",l,f,r,n))return!1;for(var t=!0,u=m.length,w=this.dataSource,v= 24960;v<u;v++)t&&r[0]!==r[v]-v&&(t=!1);if(t)for(m=0,u=this.instance.countSourceRows();m<u;m++)w[m].splice(r[0],f);else for(t=0,v=this.instance.countSourceRows();t<v;t++)for(var C=0;C<u;C++)w[t].splice(m[C],1);return l<this.instance.countCols()&&(this.instance.columnIndexMapper.removeIndexes(r),0===this.instance.columnIndexMapper.getNotTrimmedIndexesLength()&&this.instance.rowIndexMapper.setIndexesSequence([])),this.instance.runHooks("afterRemoveCol",l,f,r,n),this.instance.forceFullRender=!0,!0}},{key:"spliceCol", 2497value:function(k,f,n){var l=this.instance.getDataAtCol(k),r=l.slice(f,f+n),m=l.slice(f+n),t=arguments.length;l=Array(3<t?t-3:0);for(var u=3;u<t;u++)l[u-3]=arguments[u];(0,p.extendArray)(l,m);for(m=0;m<n;)l.push(null),m+=1;return(0,p.to2dArray)(l),this.instance.populateFromArray(f,k,l,null,null,"spliceCol"),r}},{key:"spliceRow",value:function(k,f,n){var l=this.instance.getSourceDataAtRow(k),r=l.slice(f,f+n),m=l.slice(f+n),t=arguments.length;l=Array(3<t?t-3:0);for(var u=3;u<t;u++)l[u-3]=arguments[u]; 2498(0,p.extendArray)(l,m);for(m=0;m<n;)l.push(null),m+=1;return this.instance.populateFromArray(k,f,[l],null,null,"spliceRow"),r}},{key:"spliceData",value:function(k,f){for(var n=arguments.length,l=Array(2<n?n-2:0),r=2;r<n;r++)l[r-2]=arguments[r];var m;!1!==this.instance.runHooks("beforeDataSplice",k,f,l)&&(m=this.dataSource).splice.apply(m,[k,f].concat(l))}},{key:"filterData",value:function(k,f,n){k=this.instance.runHooks("filterData",k,f,n);!1===Array.isArray(k)&&(k=this.dataSource.filter(function(l, 2499r){return-1===n.indexOf(r)}));this.dataSource.length=0;Array.prototype.push.apply(this.dataSource,k)}},{key:"get",value:function(k,f){k=this.instance.toPhysicalRow(k);var n=this.dataSource[k],l=this.instance.runHooks("modifyRowData",k),r=null;if((n=isNaN(l)?l:n)&&n.hasOwnProperty&&(0,q.hasOwnProperty)(n,f))r=n[f];else if("string"==typeof f&&-1<f.indexOf(".")){r=f.split(".");if(!n)return null;l=0;for(var m=r.length;l<m;l++)if(void 0===(n=n[r[l]]))return null;r=n}else"function"==typeof f&&(r=f(this.dataSource.slice(k, 2500k+1)[0]));this.instance.hasHook("modifyData")&&(n=(0,q.createObjectPropListener)(r),this.instance.runHooks("modifyData",k,this.propToCol(f),n,"get"),n.isTouched()&&(r=n.value));return r}},{key:"getCopyable",value:function(k,f){return d.call(this.instance,k,this.propToCol(f))?this.get(k,f):""}},{key:"set",value:function(k,f,n){k=this.instance.toPhysicalRow(k);var l=this.dataSource[k],r=this.instance.runHooks("modifyRowData",k);if(l=isNaN(r)?r:l,this.instance.hasHook("modifyData"))r=(0,q.createObjectPropListener)(n), 2501this.instance.runHooks("modifyData",k,this.propToCol(f),r,"set"),r.isTouched()&&(n=r.value);if(l&&l.hasOwnProperty&&(0,q.hasOwnProperty)(l,f))l[f]=n;else if("string"==typeof f&&-1<f.indexOf(".")){f=f.split(".");r=0;for(k=f.length-1;r<k;r++)void 0===l[f[r]]&&(l[f[r]]={}),l=l[f[r]];l[f[r]]=n}else"function"==typeof f?f(this.dataSource.slice(k,k+1)[0],n):l[f]=n}},{key:"visualRowsToPhysical",value:function(k,f){var n=this.instance.countSourceRows(),l=[];k=(n+k)%n;for(var r=f;k<n&&r;)f=this.instance.toPhysicalRow(k), 2502l.push(f),--r,k+=1;return l}},{key:"visualColumnsToPhysical",value:function(k,f){var n=this.instance.countCols(),l=[];for(k=(n+k)%n;k<n&&f;){var r=this.instance.toPhysicalColumn(k);l.push(r);--f;k+=1}return l}},{key:"clear",value:function(){for(var k=0;k<this.instance.countSourceRows();k++)for(var f=0;f<this.instance.countCols();f++)this.set(k,this.colToProp(f),"")}},{key:"getLength",value:function(){var k=this.tableMeta.maxRows;k=0>k||0===k?0:k||1/0;var f=this.instance.rowIndexMapper.getNotTrimmedIndexesLength(); 2503return Math.min(f,k)}},{key:"getAll",value:function(){var k={row:0,col:0}
2503,f={row:Math.max(this.instance.countRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return 0!=k.row-f.row||this.instance.countSourceRows()?this.getRange(k,f,h.DESTINATION_RENDERER):[]}},{key:"countCachedColumns",value:function(){return this.colToPropCache.length}},{key:"getRange",value:function(k,f,n){var l,r=[],m=this.tableMeta.maxRows;var t=this.tableMeta.maxCols;if(0===m||0===t)return[];n=n===h.DESTINATION_CLIPBOARD_GENERATOR? 2504this.getCopyable:this.get;m=Math.min(Math.max(m-1,0),Math.max(k.row,f.row));var u=Math.min(Math.max(t-1,0),Math.max(k.col,f.col));for(t=Math.min(k.row,f.row);t<=m;t++){var w=[];var v=0<=t?this.instance.toPhysicalRow(t):t;for(l=Math.min(k.col,f.col);l<=u&&null!==v;l++)w.push(n.call(this,t,this.colToProp(l)));null!==v&&r.push(w)}return r}},{key:"getText",value:function(k,f){return(0,A.stringify)(this.getRange(k,f,h.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(k,f){return(0,A.stringify)(this.getRange(k, 2505f,h.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"destroy",value:function(){this.duckSchema=this.dataSource=this.tableMeta=this.instance=null;this.colToPropCache.length=0;this.propToColCache.clear();this.propToColCache=void 0}}],[{key:"DESTINATION_RENDERER",get:function(){return 1}},{key:"DESTINATION_CLIPBOARD_GENERATOR",get:function(){return 2}}]),h}();b.default=a},function(g,b,a){b.__esModule=!0;b.stringify=b.parse=void 0;g=a(851);b.parse=g.parse;b.stringify=g.stringify},function(g,b,a){g=a(1);b.__esModule= 2506!0;b.default=void 0;var F=g(a(21)),B=a(31),D=a(17);b.default=function(){return{activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0, 2507columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1}, 2508filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",isEmptyCol:function(A){var x,q;var p=0;for(x=this.countRows();p<x;p++)if(q=this.getDataAtCell(p,A),!1===(0,B.isEmpty)(q))return!1;return!0},isEmptyRow:function(A){var x,q,p;var e=0;for(x=this.countCols();e<x;e++)if(q=this.getDataAtCell(A,e),!1===(0,B.isEmpty)(q))return"object"=== 2509(0,F.default)(q)&&(p=this.getCellMeta(A,e),(0,D.isObjectEqual)(this.getSchema()[p.prop],q));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0, 2510observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:void 0,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0, 2511tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:void 0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",visibleRows:10,width:void 0,wordWrap:!0}}},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(0);a(54);a(2);a(4);a(55);a(18);a(10);a(8);a(9);a(33);var F=g(a(5)),B=g(a(6)),D=a(20),A=a(206);a=function(x){function q(p){(0,F.default)(this,q);this.valueFactory=p;this.data= 2512[];this.index=[];this.holes=new Set}return(0,B.default)(q,[{key:"obtain",value:function(p){(0,A.assert)(function(){return(0,A.isUnsignedNumber)(p)},"Expecting an unsigned number.");var e,c=this._getStorageIndexByKey(p);0<=c?void 0===(e=this.data[c])&&(e=this.valueFactory(p),this.data[c]=e):(e=this.valueFactory(p),0<this.holes.size)?(c=this.holes.values().next().value,this.holes.delete(c),this.data[c]=e,this.index[p]=c):(this.data.push(e),this.index[p]=this.data.length-1);return e}},{key:"insert", 2513value:function(p){var e,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;(0,A.assert)(function(){return(0,A.isUnsignedNumber)(p)||(0,A.isNullish)(
2513p)},"Expecting an unsigned number or null/undefined argument.");for(var d=[],h=this.data.length,k=0;k<c;k++)d.push(h+k),this.data.push(void 0);(e=this.index).splice.apply(e,[(0,A.isNullish)(p)?this.index.length:p,0].concat(d))}},{key:"remove",value:function(p){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;(0,A.assert)(function(){return(0,A.isUnsignedNumber)(p)|| 2514(0,A.isNullish)(p)},"Expecting an unsigned number or null/undefined argument.");e=this.index.splice((0,A.isNullish)(p)?this.index.length-e:p,e);for(var c=0;c<e.length;c++){var d=e[c];"number"==typeof d&&this.holes.add(d)}}},{key:"size",value:function(){return this.data.length-this.holes.size}},{key:"values",value:function(){var p=this;return(0,D.arrayFilter)(this.data,function(e,c){return!p.holes.has(c)})[Symbol.iterator]()}},{key:"entries",value:function(){for(var p=[],e=0;e<this.data.length;e++){var c= 2515this._getKeyByStorageIndex(e);-1!==c&&p.push([c,this.data[e]])}var d=0;return{next:function(){if(d<p.length){var h=p[d];return d+=1,{value:h,done:!1}}return{done:!0}}}}},{key:"clear",value:function(){this.data=[];this.index=[];this.holes.clear()}},{key:"_getStorageIndexByKey",value:function(p){return this.index.length>p?this.index[p]:-1}},{key:"_getKeyByStorageIndex",value:function(p){return this.index.indexOf(p)}},{key:x,value:function(){return this.entries()}}]),q}(Symbol.iterator);b.default=a}, 2516function(g,b,a){b.__esModule=!0;b.normalizeKeys=b.normalizeEventKey=b.getKeysList=void 0;a(3);a(32);a(0);a(2);a(4);a(76);a(75);a(36);a(12);a(64);var F=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"], 2517["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);b.normalizeKeys=function(B){return B.map(function(D){D=D.toLowerCase();return F.has(D)?F.get(D):D}).sort().join("+")};b.getKeysList=function(B){return B.split("+")};b.normalizeEventKey=function(B){return B.toLowerCase()}},function(g,b,a){b.__esModule=!0;b.TextCellType=b.CELL_TYPE=void 0;g=a(865);b.CELL_TYPE=g.CELL_TYPE;b.TextCellType=g.TextCellType},function(g,b,a){function F(f){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct|| 2518Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}();return function(){var l=(0,q.default)(f);if(n){var r=(0,q.default)(this).constructor;l=Reflect.construct(l,arguments,r)}else l=l.apply(this,arguments);return(0,x.default)(this,l)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.SHORTCUTS_GROUP_EDITOR=b.EDITOR_TYPE=b.EDITOR_STATE=b.BaseEditor=void 0;var D=B(a(34)),A=B(a(15)),x=B(a(16)), 2519q=B(a(14)),p=B(a(5)),e=B(a(6));a(600);a(118);a(26);a(42);var c=a(31);g=a(17);var d=a(202);B=B(a(867));var h=a(23);b.EDITOR_TYPE="base";var k=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});b.EDITOR_STATE=k;b.SHORTCUTS_GROUP_EDITOR="baseEditor";a=function(){function f(n){(0,p.default)(this,f);this.instance=this.hot=n;this.state=k.VIRGIN;this._fullEditMode=this._opened=!1;this.cellProperties=this.originalValue=this.prop=this.col=this.row= 2520this.TD=this._closeCallback=null;this.init()}return(0,e.default)(f,[{key:"_fireCallbacks",value:function(n){this._closeCallback&&(this._closeCallback(n),this._closeCallback=null)}},{key:"init",value:function(){}},{key:"getValue",value:function(){throw Error("Editor getValue() method unimplemented");}},{key:"setValue",value:function(){throw Error("Editor setValue() method unimplemented");}},{key:"open",value:function(){throw Error("Editor open() method unimplemented");}},{key:"close",value:function(){throw Error("Editor close() method unimplemented"); 2521}},{key:"prepare",value:function(n,l,r,m,t,u){this.TD=m;this.row=n;this.col=l;this.prop=r;this.originalValue=t;this.cellProperties=u;this.state=k.VIRGIN}},{key:"extend",value:function(){return function(n){function l(){return(0,p.default)(this,l),r.apply(this,arguments)}(0,A.default)(l,n);var r=F(l);return(0,e.default)(l)}(this.constructor)}},{key:"saveValue",value:function(n,l){var r=this;if(l){var m=this.hot.getSelectedLast();l=Math.max(Math.min(m[0],m[2]),0);var t=Math.max(Math.min(m[1],m[3]),0); 2522var u=Math.max(m[0],m[2]);m=Math.max(m[1],m[3])}else m=[this.row,this.col,null,null],l=m[0],t=m[1],u=m[2],m=m[3];var w=this.hot.runHooks("modifyGetCellCoords",l,t);Array.isArray(w)&&(t=(0,D.default)(w,2),l=t[0],t=t[1]);w=this.hot.getShortcutManager().getContext("editor");var v={runOnlyIf:function(){return(0,c.isDefined)(r.hot.getSelected())},group:"baseEditor"};this.isInFullEditMode()&&w.addShortcuts([{keys:[["ArrowUp"]],callback:function(){r.hot.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]], 2523callback:function(){r.hot.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){r.hot.selection.transformStart(0,-1*r.hot.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){r.hot.selection.transformStart(0,r.hot.getDirectionFactor())}}],v);this.hot.populateFromArray(l,t,n,u,m,"edit")}},{key:"beginEditing",value:function(n,l){if(this.state===k.VIRGIN){var r=this.hot,m=r.rowIndexMapper.getRenderableFromVisualIndex(this.row),t=r.columnIndexMapper.getRenderableFromVisualIndex(this.col); 2524if(r.view.scrollViewport(r._createCellCoords(m,t)),this.state=k.EDITING,this.isInFullEditMode())n="string"==typeof n?n:(0,c.str
2524ingify)(this.originalValue),this.setValue(n);this.open(l);this._opened=!0;this.focus();r.view.render();r.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(n,l,r){var m=this;if(r){var t=this._closeCallback;this._closeCallback=function(w){t&&t(w);r(w);m.hot.view.render()}}if(!this.isWaiting()){var u=this.hot.getShortcutManager().getContext("editor"); 2525if(u.removeShortcutsByGroup("baseEditor"),u.removeShortcutsByGroup(d.SHORTCUTS_GROUP_NAVIGATION),this.state!==k.VIRGIN){if(this.state===k.EDITING){if(n)return this.cancelChanges(),void this.hot.view.render();n=this.getValue();n=this.hot.getSettings().trimWhitespace?[["string"==typeof n?String.prototype.trim.call(n||""):n]]:[[n]];this.state=k.WAITING;this.saveValue(n,l);this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",function(w){m.state=k.FINISHED;m.discardEditor(w)}): 2526(this.state=k.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout(function(){m._fireCallbacks(!0)})}}},{key:"cancelChanges",value:function(){this.state=k.FINISHED;this.discardEditor()}},{key:"discardEditor",value:function(n){this.state===k.FINISHED&&(!1===n&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=k.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=k.VIRGIN,this._fireCallbacks(!0), 2527this.hot.getShortcutManager().setActiveContextName("grid")))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===k.WAITING}},{key:"getEditedCellRect",value:function(){var n,l=this.getEditedCell();if(l){var r=this.hot.view._wt,m=r.wtOverlays,t=r.wtViewport,u=this.hot.rootWindow,w=(0,h.offset)(l),v=(0,h.outerWidth)(l), 2528C=(0,h.offset)(this.hot.rootElement),y=(0,h.outerWidth)(this.hot.rootElement),z=m.topOverlay.holder;r=m.inlineStartOverlay.holder;var E=z!==u?z.scrollTop:0,H=r!==u?r.scrollLeft:0,G=u.innerWidth-C.left-y;y=(null!==(n=m.getParentOverlay(l))&&void 0!==n?n:this.hot.view._wt).wtTable;n=y.name;E=["master","inline_start"].includes(n)?E:0;var I=["master","top","bottom"].includes(n)?H:0;H=w.top-C.top-(w.top===C.top?0:1)-E;u=this.hot.isRtl()?u.innerWidth-w.left-v-G-1+I:w.left-C.left-1-I;["top","top_inline_start_corner"].includes(n)&& 2529(H+=m.topOverlay.getOverlayOffset());["inline_start","top_inline_start_corner"].includes(n)&&(u+=Math.abs(m.inlineStartOverlay.getOverlayOffset()));w=this.hot.hasColHeaders();C=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row);G=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col);n=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(w&&0>=C||C===n)&&(H+=1);0>=G&&(u+=1);G=t.rowsRenderCalculator.startPosition;w=t.columnsRenderCalculator.startPosition; 2530C=Math.abs(m.inlineStartOverlay.getScrollPosition());t=m.topOverlay.getScrollPosition();m=(0,h.getScrollbarWidth)(this.hot.rootDocument);t=l.offsetTop+G-t;this.hot.isRtl()?(G=l.offsetLeft,y=0<=G?y.getWidth()-l.offsetLeft:Math.abs(G),y+=w-C-v):y=l.offsetLeft+w-C;w=(0,h.getComputedStyle)(this.TD,this.hot.rootWindow);v=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth";v=0<parseInt(w[v],10)?0:1;w=0<parseInt(w.borderTopWidth,10)?0:1;C=(0,h.outerWidth)(l)+v;l=(0,h.outerHeight)(l)+w;z=(0,h.hasVerticalScrollbar)(z)? 2531m:0;r=(0,h.hasHorizontalScrollbar)(r)?m:0;z=this.hot.view.maximumVisibleElementWidth(y)-z+v;return{top:H,start:u,height:l,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(t)-r+w,23),width:C,maxWidth:z}}}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case "inline-start":return"ht_clone_left ht_clone_inline_start";case "bottom":return"ht_clone_bottom";case "bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner"; 2532case "top":return"ht_clone_top";case "top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var n=this.hot.countRows(),l="";return this.row<this.hot.getSettings().fixedRowsTop?l=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&& 2533this.row>=n-this.hot.getSettings().fixedRowsBottom?l=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(l="inline-start"),l}}],[{key:"EDITOR_TYPE",get:function(){return"base"}}]),f}();b.BaseEditor=a;(0,g.mixin)(a,B.default)},function(g,b,a){b.__esModule=!0;b.EDITOR_TYPE=b.CheckboxEditor=void 0;g=a(877);b.EDITOR_TYPE=g.EDITOR_TYPE;b.CheckboxEditor=g.CheckboxEditor},function(g,b,a){b.__esModule=!0;b.EDITOR_TYPE= 2534b.DropdownEditor=void 0;g=a(881);b.EDITOR_TYPE=g.EDITOR_TYPE;b.DropdownEditor=g.DropdownEditor},function(g,b,a){b.__esModule=!0;b.NumericEditor=b.EDITOR_TYPE=void 0;g=a(882);b.EDITOR_TYPE=g.EDITOR_TYPE;b.NumericEditor=g.NumericEditor},function(g,b,a){b.__esModule=!0;b.PasswordEditor=b.EDITOR_TYPE=void 0;g=a(883);b.EDITOR_TYPE=g.EDITOR_TYPE;b.PasswordEditor=g.PasswordEditor},function(g,b,a){b.__esModule=!0;b.TimeEditor=b.EDITOR_TYPE=void 0;g=a(886);b.EDITOR_TYPE=g.EDITOR_TYPE;b.TimeEditor=g.TimeEditor}, 2535function(g,b,a){b.__esModule=!0;b.htmlRenderer=b.RENDERER_TYPE=void 0;g=a(889);b.RENDERER_TYPE=g.RENDERER_TYPE;b.htmlRenderer=g.htmlRenderer},function(g,b,a){b.__esModule=!0;b.checkboxRenderer=b.RENDERER_TYPE=void 0;g=a(891);b.RENDERER_TYPE=g.RENDERER_TYPE;b.checkboxRenderer=g.checkboxRenderer},function(g,b,a){b.__esModule=!0;b.numericRenderer=b.RENDERER_TYPE=void 0;g=a(893);b.RENDERER_TYPE=g.RENDERER_TYPE;b.numericRenderer=g.numericRenderer},function(g,b,a){g.exports=function x(B,D,A){function q(c,
2536d){if(!D[c]){if(!B[c]){if(p)return p(c,!0);d=Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d;}d=D[c]={exports:{}};B[c][0].call(d.exports,function(h){return q(B[c][1][h]||h)},d,d.exports,x,B,D,A)}return D[c].exports}for(var p=!1,e=0;e<A.length;e++)q(A[e]);return q}({1:[function(B,D,A){!function(x){function q(t){var u=0|t;return 0<t||t===u?u:u-1}function p(t){for(var u,w,v=1,C=t.length,y=t[0]+"";v<C;){u=t[v++]+"";for(w=14-u.length;w--;u="0"+u);y+=u}for(C=y.length;48===y.charCodeAt(--C);); 2537return y.slice(0,C+1||1)}function e(t,u){var w,v,C=t.c,y=u.c,z=t.s,E=u.s;t=t.e;u=u.e;if(!z||!E)return null;if(w=C&&!C[0],v=y&&!y[0],w||v)return w?v?0:-E:z;if(z!=E)return z;if(w=0>z,v=t==u,!C||!y)return v?0:!C^w?1:-1;if(!v)return u<t^w?1:-1;E=(t=C.length)<(u=y.length)?t:u;for(z=0;z<E;z++)if(C[z]!=y[z])return C[z]>y[z]^w?1:-1;return t==u?0:u<t^w?1:-1}function c(t,u,w,v){if(t<u||w<t||t!==(0>t?l(t):r(t)))throw Error("[BigNumber Error] "+(v||"Argument")+("number"==typeof t?t<u||w<t?" out of range: ":" not an integer: ": 2538" not a primitive number: ")+String(t));}function d(t){var u=t.c.length-1;return q(t.e/14)==u&&0!=t.c[u]%2}function h(t,u){return(1<t.length?t.charAt(0)+"."+t.slice(1):t)+(0>u?"e":"e+")+u}function k(t,u,w){var v,C;if(0>u){for(C=w+".";++u;C+=w);t=C+t}else if(++u>(v=t.length)){C=w;for(u-=v;--u;C+=w);t+=C}else u<v&&(t=t.slice(0,u)+"."+t.slice(u));return t}var f,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,l=Math.ceil,r=Math.floor,m=[1,10,100,1E3,1E4,1E5,1E6,1E7,1E8,1E9,1E10,1E11,1E12,1E13];(f=function w(u){function v(fa, 2539ja){var qa,ha,na,oa,ma=this;if(!(ma instanceof v))return new v(fa,ja);if(null==ja){if(fa instanceof v)return ma.s=fa.s,ma.e=fa.e,void(ma.c=(fa=fa.c)?fa.slice():fa);if((na="number"==typeof fa)&&0==0*fa){if(ma.s=0>1/fa?(fa=-fa,-1):1,fa===~~fa){var pa=0;for(ha=fa;10<=ha;ha/=10,pa++);return ma.e=pa,void(ma.c=[fa])}var sa=String(fa)}else{if(sa=String(fa),!n.test(sa))return K(ma,sa,na);ma.s=45==sa.charCodeAt(0)?(sa=sa.slice(1),-1):1}-1<(pa=sa.indexOf("."))&&(sa=sa.replace(".",""));0<(ha=sa.search(/e/i))? 2540(0>pa&&(pa=ha),pa+=+sa.slice(ha+1),sa=sa.substring(0,ha)):0>pa&&(pa=sa.length)}else{if(c(ja,2,ba.length,"Base"),sa=String(fa),10==ja)return E(ma=new v(fa instanceof v?fa:sa),T+ma.e+1,Z);if(na="number"==typeof fa){if(0!=0*fa)return K(ma,sa,na,ja);if(ma.s=0>1/fa?(sa=sa.slice(1),-1):1,v.DEBUG&&15<sa.replace(/^0\.0*|\./,"").length)throw Error("[BigNumber Error] Number primitive has more than 15 significant digits: "+fa);na=!1}else ma.s=45===sa.charCodeAt(0)?(sa=sa.slice(1),-1):1;var va=ba.slice(0,ja); 2541pa=ha=0;for(oa=sa.length;ha<oa;ha++)if(0>va.indexOf(qa=sa.charAt(ha))){if("."==qa){if(pa<ha){pa=oa;continue}}else if(!Aa&&(sa==sa.toUpperCase()&&(sa=sa.toLowerCase())||sa==sa.toLowerCase()&&(sa=sa.toUpperCase()))){var Aa=!0;ha=-1;pa=0;continue}return K(ma,String(fa),na,ja)}-1<(pa=(sa=I(sa,ja,10,ma.s)).indexOf("."))?sa=sa.replace(".",""):pa=sa.length}for(ha=0;48===sa.charCodeAt(ha);ha++);for(oa=sa.length;48===sa.charCodeAt(--oa););if(sa=sa.slice(ha,++oa)){if(oa-=ha,na&&v.DEBUG&&15<oa&&(9007199254740991< 2542fa||fa!==r(fa)))throw Error("[BigNumber Error] Number primitive has more than 15 significant digits: "+ma.s*fa);if(Y<(pa=pa-ha-1))ma.c=ma.e=null;else if(pa<V)ma.c=[ma.e=0];else{if(ma.e=pa,ma.c=[],ha=(pa+1)%14,0>pa&&(ha+=14),ha<oa){ha&&ma.c.push(+sa.slice(0,ha));for(oa-=14;ha<oa;)ma.c.push(+sa.slice(ha,ha+=14));sa=sa.slice(ha);ha=14-sa.length}else ha-=oa;for(;ha--;sa+="0");ma.c.push(+sa)}}else ma.c=[ma.e=0]}function C(fa,ja,qa,ha){var na,oa,ma;if(null==qa?qa=Z:c(qa,0,8),!fa.c)return fa.toString(); 2543if(na=fa.c[0],ma=fa.e,null==ja){var pa=p(fa.c);pa=1==ha||2==ha&&(ma<=L||U<=ma)?h(pa,ma):k(pa,ma,"0")}else if(oa=(fa=E(new v(fa),ja,qa)).e,qa=(pa=p(fa.c)).length,1==ha||2==ha&&(ja<=oa||oa<=L)){for(;qa<ja;pa+="0",qa++);pa=h(pa,oa)}else if(ja-=ma,pa=k(pa,oa,"0"),qa<oa+1){if(0<--ja)for(pa+=".";ja--;pa+="0");}else if(0<(ja+=oa-qa))for(oa+1==qa&&(pa+=".");ja--;pa+="0");return 0>fa.s&&na?"-"+pa:pa}function y(fa,ja){for(var qa,ha=1,na=new v(fa[0]);ha<fa.length;ha++){if(!(qa=new v(fa[ha])).s){na=qa;break}ja.call(na, 2544qa)&&(na=qa)}return na}function z(fa,ja,qa){for(var ha=1,na=ja.length;!ja[--na];ja.pop());for(na=ja[0];10<=na;na/=10,ha++);return(qa=ha+14*qa-1)>Y?fa.c=fa.e=null:fa.c=qa<V?[fa.e=0]:(fa.e=qa,ja),fa}function E(fa,ja,qa,ha){var na,oa,ma,pa,sa=fa.c;if(sa){a:{var va=1;for(oa=sa[0];10<=oa;oa/=10,va++);if(0>(na=ja-va)){na+=14;var Aa=ja;var Fa=(ma=sa[pa=0])/m[va-Aa-1]%10|0}else if((pa=l((na+1)/14))>=sa.length){if(!ha)break a;for(;sa.length<=pa;sa.push(0));ma=Fa=0;Aa=(na%=14)-14+(va=1)}else{ma=oa=sa[pa];for(va= 25451;10<=oa;oa/=10,va++);Fa=0>(Aa=(na%=14)-14+va)?0:ma/m[va-Aa-1]%10|0}if(ha=ha||0>ja||null!=sa[pa+1]||(0>Aa?ma:ma%m[va-Aa-1]),ha=4>qa?(Fa||ha)&&(0==qa||qa==(0>fa.s?3:2)):5<Fa||5==Fa&&(4==qa||ha||6==qa&&(0<na?0<Aa?ma/m[va-Aa]:0:sa[pa-1])%10&1||qa==(0>fa.s?8:7)),1>ja||!sa[0])return sa.length=0,ha?(ja-=fa.e+1,sa[0]=m[(14-ja%14)%14],fa.e=-ja||0):sa[0]=fa.e=0,fa;
2545if(0==na?(sa.length=pa,oa=1,pa--):(sa.length=pa+1,oa=m[14-na],sa[pa]=0<Aa?r(ma/m[va-Aa]%m[Aa])*oa:0),ha)for(;;){if(0==pa){na=1;for(Aa=sa[0];10<= 2546Aa;Aa/=10,na++);Aa=sa[0]+=oa;for(oa=1;10<=Aa;Aa/=10,oa++);na!=oa&&(fa.e++,1E14==sa[0]&&(sa[0]=1));break}if(sa[pa]+=oa,1E14!=sa[pa])break;sa[pa--]=0;oa=1}for(na=sa.length;0===sa[--na];sa.pop());}fa.e>Y?fa.c=fa.e=null:fa.e<V&&(fa.c=[fa.e=0])}return fa}function H(fa){var ja,qa=fa.e;return null===qa?fa.toString():(ja=p(fa.c),ja=qa<=L||U<=qa?h(ja,qa):k(ja,qa,"0"),0>fa.s?"-"+ja:ja)}var G,I,K,J,P,S,R,O,N,Q=v.prototype={constructor:v,toString:null,valueOf:null},M=new v(1),T=20,Z=4,L=-7,U=21,V=-1E7,Y=1E7, 2547aa=!1,W=1,ca=0,ia={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},ba="0123456789abcdefghijklmnopqrstuvwxyz";return v.clone=w,v.ROUND_UP=0,v.ROUND_DOWN=1,v.ROUND_CEIL=2,v.ROUND_FLOOR=3,v.ROUND_HALF_UP=4,v.ROUND_HALF_DOWN=5,v.ROUND_HALF_EVEN=6,v.ROUND_HALF_CEIL=7,v.ROUND_HALF_FLOOR=8,v.EUCLID=9,v.config=v.set=function(fa){var ja,qa;if(null!=fa){if("object"!=typeof fa)throw Error("[BigNumber Error] Object expected: "+ 2548fa);if(fa.hasOwnProperty(ja="DECIMAL_PLACES")&&(c(qa=fa[ja],0,1E9,ja),T=qa),fa.hasOwnProperty(ja="ROUNDING_MODE")&&(c(qa=fa[ja],0,8,ja),Z=qa),fa.hasOwnProperty(ja="EXPONENTIAL_AT")&&((qa=fa[ja])&&qa.pop?(c(qa[0],-1E9,0,ja),c(qa[1],0,1E9,ja),L=qa[0],U=qa[1]):(c(qa,-1E9,1E9,ja),L=-(U=0>qa?-qa:qa))),fa.hasOwnProperty(ja="RANGE"))if((qa=fa[ja])&&qa.pop)c(qa[0],-1E9,-1,ja),c(qa[1],1,1E9,ja),V=qa[0],Y=qa[1];else{if(c(qa,-1E9,1E9,ja),!qa)throw Error("[BigNumber Error] "+ja+" cannot be zero: "+qa);V=-(Y= 25490>qa?-qa:qa)}if(fa.hasOwnProperty(ja="CRYPTO")){if((qa=fa[ja])!==!!qa)throw Error("[BigNumber Error] "+ja+" not true or false: "+qa);if(qa&&("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes))throw aa=!qa,Error("[BigNumber Error] crypto unavailable");aa=qa}if(fa.hasOwnProperty(ja="MODULO_MODE")&&(c(qa=fa[ja],0,9,ja),W=qa),fa.hasOwnProperty(ja="POW_PRECISION")&&(c(qa=fa[ja],0,1E9,ja),ca=qa),fa.hasOwnProperty(ja="FORMAT")){if("object"!=typeof(qa=fa[ja]))throw Error("[BigNumber Error] "+ 2550ja+" not an object: "+qa);ia=qa}if(fa.hasOwnProperty(ja="ALPHABET")){if("string"!=typeof(qa=fa[ja])||/^.$|[+-.\s]|(.).*\1/.test(qa))throw Error("[BigNumber Error] "+ja+" invalid: "+qa);ba=qa}}return{DECIMAL_PLACES:T,ROUNDING_MODE:Z,EXPONENTIAL_AT:[L,U],RANGE:[V,Y],CRYPTO:aa,MODULO_MODE:W,POW_PRECISION:ca,FORMAT:ia,ALPHABET:ba}},v.isBigNumber=function(fa){return fa instanceof v||fa&&!0===fa._isBigNumber||!1},v.maximum=v.max=function(){return y(arguments,Q.lt)},v.minimum=v.min=function(){return y(arguments, 2551Q.gt)},v.random=(J=9007199254740992*Math.random()&2097151?function(){return r(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(fa){var ja,qa,ha,na,oa=0,ma=[],pa=new v(M);if(null==fa?fa=T:c(fa,0,1E9),ha=l(fa/14),aa)if(crypto.getRandomValues){for(ja=crypto.getRandomValues(new Uint32Array(ha*=2));oa<ha;)9E15<=(na=131072*ja[oa]+(ja[oa+1]>>>11))?(qa=crypto.getRandomValues(new Uint32Array(2)),ja[oa]=qa[0],ja[oa+1]=qa[1]):(ma.push(na% 25521E14),oa+=2);oa=ha/2}else{if(!crypto.randomBytes)throw aa=!1,Error("[BigNumber Error] crypto unavailable");for(ja=crypto.randomBytes(ha*=7);oa<ha;)9E15<=(na=281474976710656*(31&ja[oa])+1099511627776*ja[oa+1]+4294967296*ja[oa+2]+16777216*ja[oa+3]+(ja[oa+4]<<16)+(ja[oa+5]<<8)+ja[oa+6])?crypto.randomBytes(7).copy(ja,oa):(ma.push(na%1E14),oa+=7);oa=ha/7}if(!aa)for(;oa<ha;)9E15>(na=J())&&(ma[oa++]=na%1E14);ha=ma[--oa];fa%=14;for(ha&&fa&&(na=m[14-fa],ma[oa]=r(ha/na)*na);0===ma[oa];ma.pop(),oa--);if(0>oa)ma= 2553[fa=0];else{for(fa=-1;0===ma[0];ma.splice(0,1),fa-=14);oa=1;for(na=ma[0];10<=na;na/=10,oa++);14>oa&&(fa-=14-oa)}return pa.e=fa,pa.c=ma,pa}),v.sum=function(){for(var fa=1,ja=arguments,qa=new v(ja[0]);fa<ja.length;)qa=qa.plus(ja[fa++]);return qa},I=function(){function fa(ja,qa,ha,na){for(var oa,ma=[0],pa=0,sa=ja.length;pa<sa;){for(oa=ma.length;oa--;ma[oa]*=qa);ma[0]+=na.indexOf(ja.charAt(pa++));for(oa=0;oa<ma.length;oa++)ma[oa]>ha-1&&(null==ma[oa+1]&&(ma[oa+1]=0),ma[oa+1]+=ma[oa]/ha|0,ma[oa]%=ha)}return ma.reverse()} 2554return function(ja,qa,ha,na,oa){var ma,pa,sa,va,Aa,Fa,Ea=ja.indexOf("."),za=T,ea=Z;0<=Ea&&(sa=ca,ca=0,ja=ja.replace(".",""),Aa=(Fa=new v(qa)).pow(ja.length-Ea),ca=sa,Fa.c=fa(k(p(Aa.c),Aa.e,"0"),10,ha,"0123456789"),Fa.e=Fa.c.length);for(qa=sa=(oa=fa(ja,qa,ha,oa?(ma=ba,"0123456789"):(ma="0123456789",ba))).length;0==oa[--sa];oa.pop());if(!oa[0])return ma.charAt(0);if(0>
2554Ea?--qa:(Aa.c=oa,Aa.e=qa,Aa.s=na,oa=(Aa=G(Aa,Fa,za,ea,ha)).c,va=Aa.r,qa=Aa.e),Ea=oa[pa=qa+za+1],sa=ha/2,va=va||0>pa||null!=oa[pa+1], 2555va=4>ea?(null!=Ea||va)&&(0==ea||ea==(0>Aa.s?3:2)):sa<Ea||Ea==sa&&(4==ea||va||6==ea&&1&oa[pa-1]||ea==(0>Aa.s?8:7)),1>pa||!oa[0])ja=va?k(ma.charAt(1),-za,ma.charAt(0)):ma.charAt(0);else{if(oa.length=pa,va)for(--ha;++oa[--pa]>ha;)oa[pa]=0,pa||(++qa,oa=[1].concat(oa));for(sa=oa.length;!oa[--sa];);Ea=0;for(ja="";Ea<=sa;ja+=ma.charAt(oa[Ea++]));ja=k(ja,qa,ma.charAt(0))}return ja}}(),G=function(){function fa(ha,na,oa){var ma,pa,sa,va=0,Aa=ha.length,Fa=na%1E7,Ea=na/1E7|0;for(ha=ha.slice();Aa--;)va=((na=Fa* 2556(pa=ha[Aa]%1E7)+(ma=Ea*pa+(sa=ha[Aa]/1E7|0)*Fa)%1E7*1E7+va)/oa|0)+(ma/1E7|0)+Ea*sa,ha[Aa]=na%oa;return va&&(ha=[va].concat(ha)),ha}function ja(ha,na,oa,ma){if(oa!=ma)var pa=ma<oa?1:-1;else for(ma=pa=0;ma<oa;ma++)if(ha[ma]!=na[ma]){pa=ha[ma]>na[ma]?1:-1;break}return pa}function qa(ha,na,oa,ma){for(var pa=0;oa--;)ha[oa]-=pa,pa=ha[oa]<na[oa]?1:0,ha[oa]=pa*ma+ha[oa]-na[oa];for(;!ha[0]&&1<ha.length;ha.splice(0,1));}return function(ha,na,oa,ma,pa){var sa,va,Aa,Fa,Ea,za,ea=ha.s==na.s?1:-1,la=ha.c,ta=na.c; 2557if(!(la&&la[0]&&ta&&ta[0]))return new v(ha.s&&na.s&&(la?!ta||la[0]!=ta[0]:ta)?la&&0==la[0]||!ta?0*ea:ea/0:NaN);var ua=(Aa=new v(ea)).c=[];ea=oa+(sa=ha.e-na.e)+1;pa||(pa=1E14,sa=q(ha.e/14)-q(na.e/14),ea=ea/14|0);for(ha=0;ta[ha]==(la[ha]||0);ha++);if(ta[ha]>(la[ha]||0)&&sa--,0>ea){ua.push(1);var xa=!0}else{var Da=la.length;var Ga=ta.length;ea+=2;1<(xa=r(pa/(ta[ha=0]+1)))&&(ta=fa(ta,xa,pa),la=fa(la,xa,pa),Ga=ta.length,Da=la.length);var Ha=Ga;for(Ea=(Fa=la.slice(0,Ga)).length;Ea<Ga;Fa[Ea++]=0);var Ja= 2558ta.slice();Ja=[0].concat(Ja);var Oa=ta[0];ta[1]>=pa/2&&Oa++;do{if(xa=0,0>(na=ja(ta,Fa,Ga,Ea))){if(za=Fa[0],Ga!=Ea&&(za=za*pa+(Fa[1]||0)),1<(xa=r(za/Oa))){pa<=xa&&(xa=pa-1);var Na=(va=fa(ta,xa,pa)).length;for(Ea=Fa.length;1==ja(va,Fa,Na,Ea);)xa--,qa(va,Ga<Na?Ja:ta,Na,pa),Na=va.length,na=1}else 0==xa&&(na=xa=1),Na=(va=ta.slice()).length;if(Na<Ea&&(va=[0].concat(va)),qa(Fa,va,Ea,pa),Ea=Fa.length,-1==na)for(;1>ja(ta,Fa,Ga,Ea);)xa++,qa(Fa,Ga<Ea?Ja:ta,Ea,pa),Ea=Fa.length}else 0===na&&(xa++,Fa=[0]);ua[ha++]= 2559xa;Fa[0]?Fa[Ea++]=la[Ha]||0:(Fa=[la[Ha]],Ea=1)}while((Ha++<Da||null!=Fa[0])&&ea--);xa=null!=Fa[0];ua[0]||ua.splice(0,1)}if(1E14==pa){ha=1;for(ea=ua[0];10<=ea;ea/=10,ha++);E(Aa,oa+(Aa.e=ha+14*sa-1)+1,ma,xa)}else Aa.e=sa,Aa.r=+xa;return Aa}}(),P=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,R=/^\.([^.]+)$/,O=/^-?(Infinity|NaN)$/,N=/^\s*\+(?=[\w.])|^\s+|\s+$/g,K=function(fa,ja,qa,ha){var na,oa=qa?ja:ja.replace(N,"");if(O.test(oa))fa.s=isNaN(oa)?null:0>oa?-1:1,fa.c=fa.e=null;else{if(!qa&&(oa=oa.replace(P, 2560function(ma,pa,sa){return na="x"==(sa=sa.toLowerCase())?16:"b"==sa?2:8,ha&&ha!=na?ma:pa}),ha&&(na=ha,oa=oa.replace(S,"$1").replace(R,"0.$1")),ja!=oa))return new v(oa,na);if(v.DEBUG)throw Error("[BigNumber Error] Not a"+(ha?" base "+ha:"")+" number: "+ja);fa.c=fa.e=fa.s=null}},Q.absoluteValue=Q.abs=function(){var fa=new v(this);return 0>fa.s&&(fa.s=1),fa},Q.comparedTo=function(fa,ja){return e(this,new v(fa,ja))},Q.decimalPlaces=Q.dp=function(fa,ja){var qa;if(null!=fa)return c(fa,0,1E9),null==ja?ja= 2561Z:c(ja,0,8),E(new v(this),fa+this.e+1,ja);if(!(fa=this.c))return null;if(ja=14*((qa=fa.length-1)-q(this.e/14)),qa=fa[qa])for(;0==qa%10;qa/=10,ja--);return 0>ja&&(ja=0),ja},Q.dividedBy=Q.div=function(fa,ja){return G(this,new v(fa,ja),T,Z)},Q.dividedToIntegerBy=Q.idiv=function(fa,ja){return G(this,new v(fa,ja),0,1)},Q.exponentiatedBy=Q.pow=function(fa,ja){var qa,ha,na,oa,ma,pa,sa,va=this;if((fa=new v(fa)).c&&!fa.isInteger())throw Error("[BigNumber Error] Exponent not an integer: "+H(fa));if(null!=ja&& 2562(ja=new v(ja)),ma=14<fa.e,!va.c||!va.c[0]||1==va.c[0]&&!va.e&&1==va.c.length||!fa.c||!fa.c[0])return sa=new v(Math.pow(+H(va),ma?2-d(fa):+H(fa))),ja?sa.mod(ja):sa;if(pa=0>fa.s,ja){if(ja.c?!ja.c[0]:!ja.s)return new v(NaN);(ha=!pa&&va.isInteger()&&ja.isInteger())&&(va=va.mod(ja))}else{if(9<fa.e&&(0<va.e||-1>va.e||(0==va.e?1<va.c[0]||ma&&24E7<=va.c[1]:8E13>va.c[0]||ma&&9999975E7>=va.c[0])))return oa=0>va.s&&d(fa)?-0:0,-1<va.e&&(oa=1/oa),new v(pa?1/oa:oa);ca&&(oa=l(ca/14+2))}ma=ma?(qa=new v(.5),pa&&(fa.s= 25631),d(fa)):(na=Math.abs(+H(fa)))%2;for(sa=new v(M);;){if(ma){if(!(sa=sa.times(va)).c)break;oa?sa.c.length>
2563oa&&(sa.c.length=oa):ha&&(sa=sa.mod(ja))}if(na){if(0===(na=r(na/2)))break;ma=na%2}else if(E(fa=fa.times(qa),fa.e+1,1),14<fa.e)ma=d(fa);else{if(0==(na=+H(fa)))break;ma=na%2}va=va.times(va);oa?va.c&&va.c.length>oa&&(va.c.length=oa):ha&&(va=va.mod(ja))}return ha?sa:(pa&&(sa=M.div(sa)),ja?sa.mod(ja):oa?E(sa,ca,Z,void 0):sa)},Q.integerValue=function(fa){var ja=new v(this);return null==fa?fa=Z:c(fa, 25640,8),E(ja,ja.e+1,fa)},Q.isEqualTo=Q.eq=function(fa,ja){return 0===e(this,new v(fa,ja))},Q.isFinite=function(){return!!this.c},Q.isGreaterThan=Q.gt=function(fa,ja){return 0<e(this,new v(fa,ja))},Q.isGreaterThanOrEqualTo=Q.gte=function(fa,ja){return 1===(ja=e(this,new v(fa,ja)))||0===ja},Q.isInteger=function(){return!!this.c&&q(this.e/14)>this.c.length-2},Q.isLessThan=Q.lt=function(fa,ja){return 0>e(this,new v(fa,ja))},Q.isLessThanOrEqualTo=Q.lte=function(fa,ja){return-1===(ja=e(this,new v(fa,ja)))|| 25650===ja},Q.isNaN=function(){return!this.s},Q.isNegative=function(){return 0>this.s},Q.isPositive=function(){return 0<this.s},Q.isZero=function(){return!!this.c&&0==this.c[0]},Q.minus=function(fa,ja){var qa,ha,na=this.s;if(ja=(fa=new v(fa,ja)).s,!na||!ja)return new v(NaN);if(na!=ja)return fa.s=-ja,this.plus(fa);var oa=this.e/14;var ma=fa.e/14,pa=this.c,sa=fa.c;if(!oa||!ma){if(!pa||!sa)return pa?(fa.s=-ja,fa):new v(sa?this:NaN);if(!pa[0]||!sa[0])return sa[0]?(fa.s=-ja,fa):new v(pa[0]?this:3==Z?-0:0)}if(oa= 2566q(oa),ma=q(ma),pa=pa.slice(),na=oa-ma){(ha=(qa=0>na)?(na=-na,pa):(ma=oa,sa)).reverse();for(ja=na;ja--;ha.push(0));ha.reverse()}else for(oa=(qa=(na=pa.length)<(ja=sa.length))?na:ja,na=ja=0;ja<oa;ja++)if(pa[ja]!=sa[ja]){qa=pa[ja]<sa[ja];break}if(qa&&(ha=pa,pa=sa,sa=ha,fa.s=-fa.s),0<(ja=(oa=sa.length)-(qa=pa.length)))for(;ja--;pa[qa++]=0);for(ja=1E14-1;na<oa;){if(pa[--oa]<sa[oa]){for(qa=oa;qa&&!pa[--qa];pa[qa]=ja);--pa[qa];pa[oa]+=1E14}pa[oa]-=sa[oa]}for(;0==pa[0];pa.splice(0,1),--ma);return pa[0]?z(fa, 2567pa,ma):(fa.s=3==Z?-1:1,fa.c=[fa.e=0],fa)},Q.modulo=Q.mod=function(fa,ja){var qa,ha;return fa=new v(fa,ja),!this.c||!fa.s||fa.c&&!fa.c[0]?new v(NaN):!fa.c||this.c&&!this.c[0]?new v(this):(9==W?(ha=fa.s,fa.s=1,qa=G(this,fa,0,3),fa.s=ha,qa.s*=ha):qa=G(this,fa,0,W),(fa=this.minus(qa.times(fa))).c[0]||1!=W||(fa.s=this.s),fa)},Q.multipliedBy=Q.times=function(fa,ja){var qa,ha,na,oa,ma,pa,sa,va,Aa=this.c,Fa=(fa=new v(fa,ja)).c;if(!(Aa&&Fa&&Aa[0]&&Fa[0]))return!this.s||!fa.s||Aa&&!Aa[0]&&!Fa||Fa&&!Fa[0]&& 2568!Aa?fa.c=fa.e=fa.s=null:(fa.s*=this.s,Aa&&Fa?(fa.c=[0],fa.e=0):fa.c=fa.e=null),fa;ja=q(this.e/14)+q(fa.e/14);fa.s*=this.s;(ma=Aa.length)<(ha=Fa.length)&&(va=Aa,Aa=Fa,Fa=va,qa=ma,ma=ha,ha=qa);qa=ma+ha;for(va=[];qa--;va.push(0));for(qa=ha;0<=--qa;){var Ea=0;var za=Fa[qa]%1E7;var ea=Fa[qa]/1E7|0;for(ha=qa+(na=ma);qa<ha;)Ea=((pa=za*(pa=Aa[--na]%1E7)+(oa=ea*pa+(sa=Aa[na]/1E7|0)*za)%1E7*1E7+va[ha]+Ea)/1E14|0)+(oa/1E7|0)+ea*sa,va[ha--]=pa%1E14;va[ha]=Ea}return Ea?++ja:va.splice(0,1),z(fa,va,ja)},Q.negated= 2569function(){var fa=new v(this);return fa.s=-fa.s||null,fa},Q.plus=function(fa,ja){var qa,ha=this.s;if(ja=(fa=new v(fa,ja)).s,!ha||!ja)return new v(NaN);if(ha!=ja)return fa.s=-ja,this.minus(fa);ja=this.e/14;var na=fa.e/14,oa=this.c,ma=fa.c;if(!ja||!na){if(!oa||!ma)return new v(ha/0);if(!oa[0]||!ma[0])return ma[0]?fa:new v(oa[0]?this:0*ha)}if(ja=q(ja),na=q(na),oa=oa.slice(),ha=ja-na){for((qa=0<ha?(na=ja,ma):(ha=-ha,oa)).reverse();ha--;qa.push(0));qa.reverse()}0>(ha=oa.length)-(ja=ma.length)&&(qa=ma, 2570ma=oa,oa=qa,ja=ha);for(ha=0;ja;)ha=(oa[--ja]=oa[ja]+ma[ja]+ha)/1E14|0,oa[ja]=1E14===oa[ja]?0:oa[ja]%1E14;return ha&&(oa=[ha].concat(oa),++na),z(fa,oa,na)},Q.precision=Q.sd=function(fa,ja){var qa,ha;if(null!=fa&&fa!==!!fa)return c(fa,1,1E9),null==ja?ja=Z:c(ja,0,8),E(new v(this),fa,ja);if(!(ja=this.c))return null;if(qa=14*(ha=ja.length-1)+1,ha=ja[ha]){for(;0==ha%10;ha/=10,qa--);for(ha=ja[0];10<=ha;ha/=10,qa++);}return fa&&this.e+1>qa&&(qa=this.e+1),qa},Q.shiftedBy=function(fa){return c(fa,-9007199254740991, 25719007199254740991),this.times("1e"+fa)},Q.squareRoot=Q.sqrt=function(){var fa,ja,qa,ha,na=this.c,oa=this.s,ma=this.e,pa=T+4,sa=new v("0.5");if(1!==oa||!na||!na[0])return new v(!oa||0>oa&&(!na||na[0])?NaN:na?this:1/0);if((qa=0==(oa=Math.sqrt(+H(this)))||oa==1/0?(0==((ja=p(na)).length+ma)%2&&(ja+="0"),oa=Math.sqrt(+ja),ma=q((ma+1)/2)-(0>ma||ma%2),new v(oa==1/0?"1e"+ma:(ja=oa.toExponential()).slice(0,ja.indexOf("e")+1)+ma)):new v(oa+"")).c[0])for(3>(oa=(ma=qa.e)+pa)&&(oa=0);;)if(ha=qa,qa=sa.times(ha.plus(G(this, 2572ha,pa,1))),p(ha.c).slice(0,oa)===(ja=p(qa.c)).slice(0,oa)){if(qa.e<ma&&--oa,"9999"!=(ja=ja.slice(oa-3,oa+1))&&(va||"4999"!=ja)){+ja&&(+ja.slice(1)||"5"!=ja.charAt(0))||(E(qa,qa.e+T+2,1),fa=!qa.times(qa).eq(this));break}if(!va&&(E(ha,ha.e+T+2,0),ha.times(ha).eq(this))){qa=ha;break}pa+=4;oa+=4;var va=1}return E(qa,qa.e+T+1,Z,fa)},Q.toExponential=function(fa,ja){return null!=fa&&(c(fa,0,1E9),fa++),C(this,fa,ja,1)},Q.toFixed=function(fa,ja){return null!=fa&&(c(fa,0,1E9),fa=fa+this.e+1),C(this,fa,ja)}, 2573Q.toFormat=function(fa,ja,qa){var ha;if(null==qa)null!=fa&&ja&&"object"==typeof ja?(qa=ja,ja=null):fa&&"object"==typeof fa?(qa=fa,fa=ja=null):qa=ia;else if("object"!=typeof qa)throw Error("[BigNumber Error] Argument not an object: "+qa);if(ha=this.toFixed(fa,ja),this.c){var na,oa=ha.split(".");ha=+qa.groupSize;fa=+qa.secondaryGroupSize;var ma=qa.groupSeparator||"";ja=oa[0];oa=oa[1];var pa=0>this.s,sa=pa?ja.slice(1):ja,va=sa.length;
2573if(fa&&(na=ha,ha=fa,va-=fa=na),0<ha&&0<va){na=va%ha||ha;for(ja=sa.substr(0, 2574na);na<va;na+=ha)ja+=ma+sa.substr(na,ha);0<fa&&(ja+=ma+sa.slice(na));pa&&(ja="-"+ja)}ha=oa?ja+(qa.decimalSeparator||"")+((fa=+qa.fractionGroupSize)?oa.replace(new RegExp("\\d{"+fa+"}\\B","g"),"$\x26"+(qa.fractionGroupSeparator||"")):oa):ja}return(qa.prefix||"")+ha+(qa.suffix||"")},Q.toFraction=function(fa){var ja,qa,ha,na,oa,ma;var pa=this.c;if(null!=fa&&(!(ha=new v(fa)).isInteger()&&(ha.c||1!==ha.s)||ha.lt(M)))throw Error("[BigNumber Error] Argument "+(ha.isInteger()?"out of range: ":"not an integer: ")+ 2575H(ha));if(!pa)return new v(this);var sa=new v(M);var va=ja=new v(M);var Aa=na=new v(M);var Fa=p(pa);pa=sa.e=Fa.length-this.e-1;sa.c[0]=m[0>(qa=pa%14)?14+qa:qa];fa=!fa||0<ha.comparedTo(sa)?0<pa?sa:va:ha;qa=Y;Y=1/0;ha=new v(Fa);for(na.c[0]=0;oa=G(ha,sa,0,1),1!=(Fa=ja.plus(oa.times(Aa))).comparedTo(fa);)ja=Aa,Aa=Fa,va=na.plus(oa.times(Fa=va)),na=Fa,sa=ha.minus(oa.times(Fa=sa)),ha=Fa;return Fa=G(fa.minus(ja),Aa,0,1),na=na.plus(Fa.times(va)),ja=ja.plus(Fa.times(Aa)),na.s=va.s=this.s,ma=1>G(va,Aa,pa*=2, 2576Z).minus(this).abs().comparedTo(G(na,ja,pa,Z).minus(this).abs())?[va,Aa]:[na,ja],Y=qa,ma},Q.toNumber=function(){return+H(this)},Q.toPrecision=function(fa,ja){return null!=fa&&c(fa,1,1E9),C(this,fa,ja,2)},Q.toString=function(fa){var ja,qa=this,ha=qa.s,na=qa.e;return null===na?ha?(ja="Infinity",0>ha&&(ja="-"+ja)):ja="NaN":(ja=null==fa?na<=L||U<=na?h(p(qa.c),na):k(p(qa.c),na,"0"):10===fa?k(p((qa=E(new v(qa),T+na+1,Z)).c),qa.e,"0"):(c(fa,2,ba.length,"Base"),I(k(p(qa.c),na,"0"),10,fa,ha,!0)),0>ha&&qa.c[0]&& 2577(ja="-"+ja)),ja},Q.valueOf=Q.toJSON=function(){return H(this)},Q._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(Q[Symbol.toStringTag]="BigNumber",Q[Symbol.for("nodejs.util.inspect.custom")]=Q.valueOf),null!=u&&v.set(u),v}()).default=f.BigNumber=f;void 0!==D&&D.exports?D.exports=f:(x||(x="undefined"!=typeof self&&self?self:window),x.BigNumber=f)}(this)},{}],2:[function(B,D,A){D.exports={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k", 2578million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(x){var q=x%10;return 1==~~(x%100/10)?"th":1===q?"st":2===q?"nd":3===q?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency", 2579thousandSeparated:!0,mantissa:0}}}},{}],3:[function(B,D,A){function x(r,m){if(!(r=function(t){if(Array.isArray(t))return t}(r)||function(t,u){var w=[],v=!0,C=!1,y=void 0;try{for(var z,E=t[Symbol.iterator]();!(v=(z=E.next()).done)&&(w.push(z.value),!u||w.length!==u);v=!0);}catch(H){C=!0,y=H}finally{try{v||null==E.return||E.return()}finally{if(C)throw y;}}return w}(r,m)))throw new TypeError("Invalid attempt to destructure non-iterable instance");return r}function q(r){var m=1<arguments.length&&void 0!== 2580arguments[1]?arguments[1]:{},t=2<arguments.length?arguments[2]:void 0;if("string"==typeof m&&(m=f.parseFormat(m)),!k.validateFormat(m))return"ERROR: invalid format";var u=m.prefix||"",w=m.postfix||"";m=function(v,C,y){var z,E,H,G,I,K,J,P,S,R,O,N,Q,M,T,Z,L,U;switch(C.output){case "currency":return function(V,Y,aa){var W=aa.currentCurrency(),ca=Object.assign({},l,Y),ia=void 0,ba="",fa=!!ca.totalLength||!!ca.forceAverage||ca.average,ja=Y.currencyPosition||W.position;W=Y.currencySymbol||W.symbol;ca.spaceSeparated&& 2581(ba=" ");"infix"===ja&&(ia=ba+W+ba);Y=c({instance:V,providedFormat:Y,state:aa,decimalSeparator:ia});return"prefix"===ja&&(Y=0>V._value&&"sign"===ca.negative?"-".concat(ba).concat(W).concat(Y.slice(1)):W+ba+Y),ja&&"postfix"!==ja||(Y=Y+(fa?"":ba)+W),Y}(v,C=d(C,h.currentCurrencyDefaultFormat()),h);case "percent":return function(V,Y,aa,W){var ca=Y.prefixSymbol;V=c({instance:W(100*V._value),providedFormat:Y,state:aa});Y=Object.assign({},l,Y);return ca?"%".concat(Y.spaceSeparated?" ":"").concat(V):"".concat(V).concat(Y.spaceSeparated? 2582" ":"","%")}(v,C=d(C,h.currentPercentageDefaultFormat()),h,y);case "byte":return C=d(C,h.currentByteDefaultFormat()),P=h,J=(S=C).base||"binary",K=n[J],G=(I=p(v._value,K.suffixes,K.scale)).value,H=I.suffix,E=c({instance:y(G),providedFormat:S,state:P,defaults:P.currentByteDefaultFormat()}),z=P.currentAbbreviations(),"".concat(E).concat(z.spaced?" ":"").concat(H);case "time":return C=d(C,h.currentTimeDefaultFormat()),N=Math.floor(v._value/60/60),O=Math.floor((v._value-3600*N)/60),R=Math.round(v._value- 25833600*N-60*O),"".concat(N,":").concat(10>O?"0":"").concat(O,":").concat(10>R?"0":"").concat(R);case "ordinal":return U=C=d(C,h.currentOrdinalDefaultFormat()),Z=(L=h).currentOrdinal(),T=Object.assign({},l,U),M=c({instance:v,providedFormat:U,state:L}),Q=Z(v._value),"".concat(M).concat(T.spaceSeparated?" ":"").concat(Q);default:return c({instance:v,providedFormat:C,numbro:y})}}(r,m,t);return(m=u+m)+w}function p(r,m,t){var u=m[0],w=Math.abs(r);if(t<=w){for(var v=1;v<m.length;
2583++v){var C=Math.pow(t,v),y= 2584Math.pow(t,v+1);if(C<=w&&w<y){u=m[v];r/=C;break}}u===m[0]&&(r/=Math.pow(t,m.length-1),u=m[m.length-1])}return{value:r,suffix:u}}function e(r){for(var m="",t=0;t<r;t++)m+="0";return m}function c(r){var m=r.instance,t=r.providedFormat,u=r.state;u=void 0===u?h:u;var w=r.decimalSeparator;r=r.defaults;r=void 0===r?u.currentDefaults():r;m=m._value;if(0===m&&u.hasZeroFormat())return u.getZeroFormat();if(!isFinite(m))return m.toString();var v,C,y,z,E,H,G,I,K=Object.assign({},l,r,t),J=K.totalLength;r=J?0: 2585K.characteristic;var P=K.optionalCharacteristic,S=K.forceAverage,R=!!J||!!S||K.average,O=J?-1:R&&void 0===t.mantissa?0:K.mantissa,N=!J&&(void 0===t.optionalMantissa?-1===O:K.optionalMantissa),Q=K.trimMantissa;t=K.thousandSeparated;var M=K.spaceSeparated,T=K.negative,Z=K.forceSign;K=K.exponential;var L="";R&&(S=function(Y){var aa=Y.value,W=Y.forceAverage,ca=Y.abbreviations,ia=Y.spaceSeparated;Y=Y.totalLength;Y=void 0===Y?0:Y;var ba="",fa=Math.abs(aa),ja=-1;if(fa>=Math.pow(10,12)&&!W||"trillion"=== 2586W?(ba=ca.trillion,aa/=Math.pow(10,12)):fa<Math.pow(10,12)&&fa>
2586=Math.pow(10,9)&&!W||"billion"===W?(ba=ca.billion,aa/=Math.pow(10,9)):fa<Math.pow(10,9)&&fa>=Math.pow(10,6)&&!W||"million"===W?(ba=ca.million,aa/=Math.pow(10,6)):(fa<Math.pow(10,6)&&fa>=Math.pow(10,3)&&!W||"thousand"===W)&&(ba=ca.thousand,aa/=Math.pow(10,3)),ba&&(ba=(void 0!==ia&&ia?" ":"")+ba),Y)W=aa.toString().split(".")[0],ja=Math.max(Y-W.length,0);return{value:aa,abbreviation:ba,mantissaPrecision:ja}}({value:m,forceAverage:S,abbreviations:u.currentAbbreviations(), 2587spaceSeparated:M,totalLength:J}),m=S.value,L+=S.abbreviation,J&&(O=S.mantissaPrecision));K&&(J=(C=(v={value:m,characteristicPrecision:r}).value,z=void 0===(y=v.characteristicPrecision)?0:y,H=(E=x(C.toExponential().split("e"),2))[0],G=E[1],I=+H,z&&1<z&&(I*=Math.pow(10,z-1),G=0<=(G=+G-(z-1))?"+".concat(G):G),{value:I,abbreviation:"e".concat(G)}),m=J.value,L=J.abbreviation+L);var U,V;v=function(Y,aa,W,ca,ia){if(-1===ca)return Y;if(-1!==aa.toString().indexOf("e")){aa=aa.toString();aa=x(aa.split("e"), 25882);Y=aa[1];var ba=x(aa[0].split("."),2);aa=ba[0];ba=ba[1];var fa=void 0===ba?"":ba;0<+Y?aa=aa+fa+e(Y-fa.length):(ba=".",ba=0>+aa?"-0".concat(ba):"0".concat(ba),aa=(e(-Y-1)+Math.abs(aa)+fa).substr(0,ca),aa.length<ca&&(aa+=e(ca-aa.length)),aa=ba+aa);ca=(0<+Y&&0<ca&&(aa+=".".concat(e(ca))),aa)}else ca=(Math.round(+"".concat(aa,"e+").concat(ca))/Math.pow(10,ca)).toFixed(ca);aa=x(ca.toString().split("."),2);Y=aa[0];aa=aa[1];aa=void 0===aa?"":aa;if(aa.match(/^0+$/)&&(W||ia))return Y;W=aa.match(/0+$/);return ia&& 2589W?"".concat(Y,".").concat(aa.toString().slice(0,W.index)):ca.toString()}(m.toString(),m,N,O,Q);return v=function(Y,aa,W,ca,ia){ca=ca.currentDelimiters();var ba=ca.thousands;ia=ia||ca.decimal;ca=ca.thousandsSize||3;Y=Y.toString();var fa=Y.split(".")[0];Y=Y.split(".")[1];return W&&(0>aa&&(fa=fa.slice(1)),function(ja,qa){for(var ha=[],na=0;0<ja;ja--)na===qa&&(ha.unshift(ja),na=0),na++;return ha}(fa.length,ca).forEach(function(ja,qa){fa=fa.slice(0,ja+qa)+ba+fa.slice(ja+qa)}),0>aa&&(fa="-".concat(fa))), 2590Y?fa+ia+Y:fa}(v=function(Y,aa,W,ca){var ia=x(Y.toString().split("."),2);aa=ia[0];ia=ia[1];if(aa.match(/^-?0$/)&&W)return ia?"".concat(aa.replace("0",""),".").concat(ia):aa.replace("0","");if(aa.length<ca)for(W=ca-aa.length,ca=0;ca<W;ca++)Y="0".concat(Y);return Y.toString()}(v,0,P,r),m,t,u,w),(R||K)&&(v+=L),(Z||0>m)&&(U=v,v=0===(V=m)?U:0==+U?U.replace("-",""):0<V?"+".concat(U):"sign"===T?U:"(".concat(U.replace("-",""),")")),v}function d(r,m){if(!r)return m;var t=Object.keys(r);return 1===t.length&& 2591"output"===t[0]?m:r}var h=B("./globalState"),k=B("./validating"),f=B("./parsing");B="B KB MB GB TB PB EB ZB YB".split(" ");var n={general:{scale:1024,suffixes:B,marker:"bd"},binary:{scale:1024,suffixes:"B KiB MiB GiB TiB PiB EiB ZiB YiB".split(" "),marker:"b"},decimal:{scale:1E3,suffixes:B,marker:"d"}},l={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1};D.exports=function(r){return{format:function(){for(var m= 2592arguments.length,t=Array(m),u=0;u<m;u++)t[u]=arguments[u];return q.apply(void 0,t.concat([r]))},getByteUnit:function(){for(var m=arguments.length,t=Array(m),u=0;u<m;u++)t[u]=arguments[u];return function(w){var v=n.general;return p(w._value,v.suffixes,v.scale).suffix}.apply(void 0,t.concat([r]))},getBinaryByteUnit:function(){for(var m=arguments.length,t=Array(m),u=0;u<m;u++)t[u]=arguments[u];return function(w){var v=n.binary;return p(w._value,v.suffixes,v.scale).suffix}.apply(void 0,t.concat([r]))}, 2593getDecimalByteUnit:function(){for(var m=arguments.length,t=Array(m),u=0;u<m;u++)t[u]=arguments[u];return function(w){var v=n.decimal;return p(w._value,v.suffixes,v.scale).suffix}.apply(void 0,t.concat([r]))},formatOrDefault:d}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(B,D,A){var x=B("./en-US"),q=B("./validating"),p=B("./parsing"),e={},c=void 0,d={},h=null,k={};e.languages=function(){return Object.assign({},d)};e.currentLanguage=function(){return c};e.currentCurrency=function(){return d[c].currency}; 2594e.currentAbbreviations=function(){return d[c].abbreviations};e.currentDelimiters=function(){return d[c].delimiters};e.currentOrdinal=function(){return d[c].ordinal};e.currentDefaults=function(){return Object.assign({},d[c].defaults,k)};e.currentOrdinalDefaultFormat=function(){return Object.assign({},e.currentDefaults(),d[c].ordinalFormat)};e.currentByteDefaultFormat=function(){return Object.assign({},e.currentDefaults(),d[c].byteFormat)};e.currentPercentageDefaultFormat=function(){return Object.assign({}, 2595e.currentDefaults(),d[c].percentageFormat)};e.currentCurrencyDefaultFormat=function(){return Object.assign({},e.currentDefaults(),d[c].currencyFormat)};e.currentTimeDefaultFormat=function(){return Object.assign({},e.currentDefaults(),d[c].timeFormat)};e.setDefaults=function(f){f=p.parseFormat(f);q.validateFormat(f)&&(k=f)};e.getZeroFormat=function(){return h};e.setZeroFormat=function(f){return h="string"==typeof f?f:null};e.hasZeroFormat=function(){return null!==h};e.languageData=function(f){if(f){if(d[f])return d[f]; 2596throw Error('Unknown tag "'.concat(f,'"'));}return d[c]};e.registerLanguage=function(f){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!q.validateLanguage(f))throw Error("Invalid language data");d[f.languageTag]=f;n&&(c=f.languageTag)};e.setLanguage=function(f){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:x.languageTag;if(d[f])c=f;else{var l=f.split("-")[0],r=Object.keys(d).find(function(m){return m.split("-")[0]===l});c=d[r]?r:n}};e.registerLanguage(x);c=x.languageTag; 2597D.exports=e},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(B,D,A){D.exports=function(x){return{loadLanguagesInNode:function(q){return void q.forEach(function(p){var e=void 0;try{e=B("../languages/".concat(p))}catch(c){console.error('Unable to load "'.concat(p,'". No matching language file found.'))}e&&x.registerLanguage(e)}
2597)}}}},{}],6:[function(B,D,A){function x(p,e,c){var d=new q(p._value),h=e;return c.isNumbro(e)&&(h=e._value),h=new q(h),p._value=d.minus(h).toNumber(),p}var q=B("bignumber.js"); 2598D.exports=function(p){return{add:function(e,c){var d,h;return h=new q(e._value),d=c,p.isNumbro(c)&&(d=c._value),d=new q(d),e._value=h.plus(d).toNumber(),e},subtract:function(e,c){return x(e,c,p)},multiply:function(e,c){var d,h;return h=new q(e._value),d=c,p.isNumbro(c)&&(d=c._value),d=new q(d),e._value=h.times(d).toNumber(),e},divide:function(e,c){var d,h;return h=new q(e._value),d=c,p.isNumbro(c)&&(d=c._value),d=new q(d),e._value=h.dividedBy(d).toNumber(),e},set:function(e,c){var d;return d=c,p.isNumbro(c)&& 2599(d=c._value),e._value=d,e},difference:function(e,c){var d;return x(d=p(e._value),c,p),Math.abs(d._value)}}}},{"bignumber.js":1}],7:[function(B,D,A){function x(l,r){for(var m=0;m<r.length;m++){var t=r[m];t.enumerable=t.enumerable||!1;t.configurable=!0;"value"in t&&(t.writable=!0);Object.defineProperty(l,t.key,t)}}function q(l){var r=l;return p.isNumbro(l)?r=l._value:"string"==typeof l?r=p.unformat(l):isNaN(l)&&(r=NaN),r}function p(l){return new n(q(l))}var e=B("./globalState");A=B("./validating"); 2600var c=B("./loading")(p),d=B("./unformatting"),h=B("./formatting")(p),k=B("./manipulating")(p),f=B("./parsing"),n=function(){function l(m){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function");!0;this._value=m}var r;return r=[{key:"clone",value:function(){return p(this._value)}},{key:"format",value:function(){return h.format(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:{})}},{key:"formatCurrency",value:function(m){return"string"==typeof m&&(m=f.parseFormat(m)), 2601(m=h.formatOrDefault(m,e.currentCurrencyDefaultFormat())).output="currency",h.format(this,m)}},{key:"formatTime",value:function(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return m.output="time",h.format(this,m)}},{key:"binaryByteUnits",value:function(){return h.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return h.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return h.getByteUnit(this)}},{key:"difference",value:function(m){return k.difference(this, 2602m)}},{key:"add",value:function(m){return k.add(this,m)}},{key:"subtract",value:function(m){return k.subtract(this,m)}},{key:"multiply",value:function(m){return k.multiply(this,m)}},{key:"divide",value:function(m){return k.divide(this,m)}},{key:"set",value:function(m){return k.set(this,q(m))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}],x(l.prototype,r),l}();p.version="2.1.2";p.isNumbro=function(l){return l instanceof n};p.language=e.currentLanguage; 2603p.registerLanguage=e.registerLanguage;p.setLanguage=e.setLanguage;p.languages=e.languages;p.languageData=e.languageData;p.zeroFormat=e.setZeroFormat;p.defaultFormat=e.currentDefaults;p.setDefaults=e.setDefaults;p.defaultCurrencyFormat=e.currentCurrencyDefaultFormat;p.validate=A.validate;p.loadLanguagesInNode=c.loadLanguagesInNode;p.unformat=d.unformat;D.exports=p},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(B, 2604D,A){D.exports={parseFormat:function(x){var q,p,e,c,d,h,k,f,n,l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof x?x:(function(r,m){if(-1===r.indexOf("$")){if(-1===r.indexOf("%"))return-1!==r.indexOf("bd")?(m.output="byte",m.base="general"):-1!==r.indexOf("b")?(m.output="byte",m.base="binary"):-1!==r.indexOf("d")?(m.output="byte",m.base="decimal"):-1===r.indexOf(":")?-1!==r.indexOf("o")&&(m.output="ordinal"):m.output="time";m.output="percent"}else m.output="currency"}(x= 2605(c=(e=x=(p=(q=x).match(/^{([^}]*)}/))?(l.prefix=p[1],q.slice(p[0].length)):q).match(/{([^}]*)}$/))?(l.postfix=c[1],e.slice(0,-c[0].length)):e,l),(d=x.match(/[1-9]+[0-9]*/))&&(l.totalLength=+d[0]),(h=x.split(".")[0].match(/0+/))&&(l.characteristic=h[0].length),function(r,m){-1!==r.indexOf(".")&&(r=r.split(".")[0],m.optionalCharacteristic=-1===r.indexOf("0"))}(x,l),-1!==x.indexOf("a")&&(l.average=!0),-1!==(k=x).indexOf("K")?l.forceAverage="thousand":-1!==k.indexOf("M")?l.forceAverage="million":-1!== 2606k.indexOf("B")?l.forceAverage="billion":-1!==k.indexOf("T")&&(l.forceAverage="trillion"),function(r,m){(r=r.split(".")[1])&&(r=r.match(/0+/))&&(m.mantissa=r[0].length)}(x,l),(f=x).match(/\[\.]/)?l.optionalMantissa=!0:f.match(/\./)&&(l.optionalMantissa=!1),-1!==x.indexOf(",")&&(l.thousandSeparated=!0),-1!==x.indexOf(" ")&&(l.spaceSeparated=!0),(n=x).match(/^\+?\([^)]*\)$/)&&(l.negative="parenthesis"),n.match(/^\+?-/)&&(l.negative="sign"),x.match(/^\+/)&&(l.forceSign=!0),l)}}},{}],9:[function(B,D,A){function x(p){return p.replace(/[-/\\^$*+?.()|[\]{}]/g, 2607"\\$\x26")}var q=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1E3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1E3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1E3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1E3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1E3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1E3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1E3, 26083)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1E3,6)},{key:"B",factor:1}];D.exports={unformat:function(p,e){var c,d,h,k=B("./globalState"),f=k.currentDelimiters(),n=k.currentCurrency().symbol,l=k.currentOrdinal(),r=k.getZeroFormat();k=k.currentAbbreviations();var m=void 0;if("string"==typeof p)m=function(t,u){if(!t.indexOf(":")||":"===u.thousands)return!1;t=t.split(":");if(3!==t.length)return!1;u=+t[1];var w=+t[2];return!isNaN(+t[0])&&!isNaN(u)&&!isNaN(w)}(p,f)?(d=+(c=p.split(":"))[0], 2609h=+c[1],+c[2]+60*h+3600*d):function(t,u){var w=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",v=3<arguments.length?arguments[3]:void 0,C=4<arguments.length?arguments[4]:void 0,y=5<arguments.length?arguments[5]:void 0,z=6<arguments.length?arguments[6]:void 0;if(""!==t)return t===C?0:function I(H,G){var K=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",J=3<arguments.length?arguments[3]:void 0,P=4<arguments.length?arguments[4]:void 0,S=5<arguments.length?arguments[5]:void 0,R=6< 2610arguments.length?arguments[6]:void 0;if(!isNaN(+H))return+H;var O="";O=H.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");
2610if(O!==H)return-1*I(O,G,K,J,P,S,R);for(var N=0;N<q.length;N++){var Q=q[N];if((O=H.replace(Q.key,""))!==H)return I(O,G,K,J,P,S,R)*Q.factor}if((O=H.replace("%",""))!==H)return I(O,G,K,J,P,S,R)/100;N=parseFloat(H);if(!isNaN(N)){if((N=J(N))&&"."!==N&&(O=H.replace(new RegExp("".concat(x(N),"$")),""))!==H)return I(O,G,K,J,P,S,R);var M={};Object.keys(S).forEach(function(L){M[S[L]]=L});Q= 2611Object.keys(M).sort().reverse();for(var T=Q.length,Z=0;Z<T;Z++)if(O=Q[Z],N=M[O],(O=H.replace(O,""))!==H){Q=void 0;switch(N){case "thousand":Q=Math.pow(10,3);break;case "million":Q=Math.pow(10,6);break;case "billion":Q=Math.pow(10,9);break;case "trillion":Q=Math.pow(10,12)}return I(O,G,K,J,P,S,R)*Q}}}(function(H,G){return H.replace(2<arguments.length&&void 0!==arguments[2]?arguments[2]:"","").replace(new RegExp("([0-9])".concat(x(G.thousands),"([0-9])"),"g"),"$1$2").replace(G.decimal,".")}(t,u,w), 2612u,w,v,C,y,z)}(p,f,n,l,r,k,e);else{if("number"!=typeof p)return;m=p}if(void 0!==m)return m}}},{"./globalState":4}],10:[function(B,D,A){function x(n){if(!(n=function(l){if(Array.isArray(l)){for(var r=0,m=Array(l.length);r<l.length;r++)m[r]=l[r];return m}}(n)||function(l){if(Symbol.iterator in Object(l)||"[object Arguments]"===Object.prototype.toString.call(l))return Array.from(l)}(n)))throw new TypeError("Invalid attempt to spread non-iterable instance");return n}function q(n){return(q="function"== 2613typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(n)}function p(n){return!!d.unformat(n)}function e(n,l,r){var m=3<arguments.length&&void 0!==arguments[3]&&arguments[3],t=Object.keys(n).map(function(u){if(!l[u])return console.error("".concat(r," Invalid key: ").concat(u)),!1;var w=n[u],v=l[u];if("string"==typeof v&&(v={type:v}),"format"===v.type){if(!e(w,k,"[Validate ".concat(u, 2614"]"),!0))return!1}else if(q(w)!==v.type)return console.error("".concat(r," ").concat(u,' type mismatched: "').concat(v.type,'" expected, "').concat(q(w),'" provided')),!1;if(v.restrictions&&v.restrictions.length)for(var C=v.restrictions.length,y=0;y<C;y++){var z=v.restrictions[y],E=z.restriction;z=z.message;if(!E(w,n))return console.error("".concat(r," ").concat(u," invalid value: ").concat(z)),!1}return v.restriction&&!v.restriction(w,n)?(console.error("".concat(r," ").concat(u," invalid value: ").concat(v.message)), 2615!1):v.validValues&&-1===v.validValues.indexOf(w)?(console.error("".concat(r," ").concat(u," invalid value: must be among ").concat(JSON.stringify(v.validValues),', "').concat(w,'" provided')),!1):!(v.children&&!e(w,v.children,"[Validate ".concat(u,"]")))});return m||t.push.apply(t,x(Object.keys(l).map(function(u){var w=l[u];if("string"==typeof w&&(w={type:w}),w.mandatory)if(w=w.mandatory,"function"==typeof w&&(w=w(n)),w&&void 0===n[u])return console.error("".concat(r,' Missing mandatory key "').concat(u, 2616'"')),!1;return!0}))),t.reduce(function(u,w){return u&&w},!0)}function c(n){return e(n,k,"[Validate format]")}var d=B("./unformatting"),h=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,k={output:{type:"string",validValues:"currency percent byte time ordinal number".split(" ")},base:{type:"string",validValues:["decimal","binary","general"],restriction:function(n,l){return"byte"===l.output},message:"`base` must be provided only when the output is `byte`",mandatory:function(n){return"byte"===n.output}}, 2617characteristic:{type:"number",restriction:function(n){return 0<=n},message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:function(n){return 0<=n},message:"value must be positive"},{restriction:function(n,l){return!l.exponential},message:"`totalLength` is incompatible with `exponential`"}]}, 2618mantissa:{type:"number",restriction:function(n){return 0<=n},message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:function(n, 2619l){return"percent"===l.output},message:"`prefixSymbol` can be provided only when the output is `percent`"}},f={languageTag:{type:"string",mandatory:!0,restriction:function(n){return n.match(h)},message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string", 2620mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",ordinal:{type:"function",mandatory:!0}
2620,currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format", 2621mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};D.exports={validate:function(n,l){n=p(n);l=c(l);return n&&l},validateFormat:c,validateInput:p,validateLanguage:function(n){return e(n,f,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7);window.numbro=a(624)},function(g,b,a){b.__esModule=!0;b.passwordRenderer=b.RENDERER_TYPE=void 0;g=a(894);b.RENDERER_TYPE=g.RENDERER_TYPE;b.passwordRenderer=g.passwordRenderer},function(g, 2622b,a){b.__esModule=!0;b.timeRenderer=b.RENDERER_TYPE=void 0;g=a(895);b.RENDERER_TYPE=g.RENDERER_TYPE;b.timeRenderer=g.timeRenderer},function(g,b,a){b.__esModule=!0;b.dateValidator=b.correctFormat=b.VALIDATOR_TYPE=void 0;g=a(898);b.VALIDATOR_TYPE=g.VALIDATOR_TYPE;b.correctFormat=g.correctFormat;b.dateValidator=g.dateValidator},function(g,b,a){var F=a(61);g=a(228);var B=a(66),D=a(94),A=a(899),x=a(73),q=a(136),p=a(229);g("search",function(e,c,d){return[function(h){var k=D(this),f=null==h?void 0:q(h,e); 2623return f?F(f,h,k):(new RegExp(h))[e](x(k))},function(h){var k=B(this);h=x(h);var f=d(c,k,h);if(f.done)return f.value;f=k.lastIndex;A(f,0)||(k.lastIndex=0);h=p(k,h);return A(k.lastIndex,f)||(k.lastIndex=f),null===h?-1:h.index}]})},function(g,b,a){b.__esModule=!0;b.getNormalizedDate=function(F){var B=new Date(F);return isNaN((new Date("".concat(F,"T00:00"))).getDate())?B:new Date(B.getTime()+6E4*B.getTimezoneOffset())}},function(g,b,a){b.__esModule=!0;b.numericValidator=b.VALIDATOR_TYPE=void 0;g=a(900); 2624b.VALIDATOR_TYPE=g.VALIDATOR_TYPE;b.numericValidator=g.numericValidator},function(g,b,a){b.__esModule=!0;b.timeValidator=b.VALIDATOR_TYPE=void 0;g=a(901);b.VALIDATOR_TYPE=g.VALIDATOR_TYPE;b.timeValidator=g.timeValidator},function(g,b,a){a(923)},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(32);a(0);a(2);a(4);a(53);a(33);var F=g(a(41)),B=g(a(5)),D=g(a(6)),A=a(17),x=a(47),q=a(31);a=function(){function p(e){(0,B.default)(this,p);this.samples=null;this.dataFactory=e;this.customSampleCount= 2625null;this.allowDuplicates=!1}return(0,D.default)(p,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:p.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,c){return this.generateSamples("row",c,e)}},{key:"generateColumnSamples",value:function(e,c){return this.generateSamples("col",c,e)}},{key:"generateSamples",value:function(e, 2626c,d){var h=this,k=new Map;d="number"==typeof d?{from:d,to:d}:d;return(0,x.rangeEach)(d.from,d.to,function(f){var n=h.generateSample(e,c,f);k.set(f,n)}),k}},{key:"generateSample",value:function(e,c,d){var h=this;if("row"!==e&&"col"!==e)throw Error("Unsupported sample type");var k=new Map,f="row"===e?"col":"row",n=[];return(0,x.rangeEach)(c.from,c.to,function(l){var r="row"===e?h.dataFactory(d,l):h.dataFactory(l,d),m=r.value;var t=r.bundleSeed;t=(r="string"==typeof t&&0<t.length)?t:(0,A.isObject)(m)? 2627"".concat(Object.keys(m).length):Array.isArray(m)?"".concat(m.length):"".concat((0,q.stringify)(m).length);k.has(t)||k.set(t,{needed:h.getSampleCount(),strings:[]});t=k.get(t);!t.needed||-1<n.indexOf(m)&&!h.allowDuplicates&&!r||(t.strings.push((0,F.default)({value:m},f,l)),n.push(m),--t.needed)}),k}}],[{key:"SAMPLE_COUNT",get:function(){return 3}}]),p}();b.default=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ColumnSorting=void 0;g=a(935);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY= 2628g.PLUGIN_PRIORITY;b.ColumnSorting=g.ColumnSorting},function(g,b,a){var F=a(446),B=a(449),D=a(309),A=a(448);g.exports=function(x){return F(x)||B(x)||D(x)||A()};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){var F=a(1);b.__esModule=!0;b.getCompareFunctionFactory=function(e){return p(e)?q(e):q(B.COLUMN_DATA_TYPE)};b.registerRootComparator=b.getRootComparator=void 0;var B=a(637);g=a(939);var D=a(940),A=a(941);F=F(a(119));var x=(0,F.default)("sorting.compareFunctionFactory");a=x.register; 2629var q=x.getItem,p=x.hasItem;F=(0,F.default)("sorting.mainSortComparator");x=F.register;b.getRootComparator=F.getItem;b.registerRootComparator=x;a(g.COLUMN_DATA_TYPE,g.compareFunctionFactory);a(D.COLUMN_DATA_TYPE,D.compareFunctionFactory);a(A.COLUMN_DATA_TYPE,A.compareFunctionFactory);
2629a(B.COLUMN_DATA_TYPE,B.compareFunctionFactory)},function(g,b,a){b.__esModule=!0;b.COLUMN_DATA_TYPE=void 0;b.compareFunctionFactory=function(D,A,x){var q=A.locale;return function(p,e){var c=x.sortEmptyCells;return"string"== 2630typeof p&&(p=p.toLocaleLowerCase(q)),"string"==typeof e&&(e=e.toLocaleLowerCase(q)),p===e?B.DO_NOT_SWAP:(0,F.isEmpty)(p)?(0,F.isEmpty)(e)?B.DO_NOT_SWAP:c&&"asc"===D?B.FIRST_BEFORE_SECOND:B.FIRST_AFTER_SECOND:(0,F.isEmpty)(e)?c&&"asc"===D?B.FIRST_AFTER_SECOND:B.FIRST_BEFORE_SECOND:isNaN(p)&&!isNaN(e)?"asc"===D?B.FIRST_AFTER_SECOND:B.FIRST_BEFORE_SECOND:!isNaN(p)&&isNaN(e)?"asc"===D?B.FIRST_BEFORE_SECOND:B.FIRST_AFTER_SECOND:(isNaN(p)||isNaN(e)||(p=parseFloat(p),e=parseFloat(e)),p<e?"asc"===D?B.FIRST_BEFORE_SECOND: 2631B.FIRST_AFTER_SECOND:p>e?"asc"===D?B.FIRST_AFTER_SECOND:B.FIRST_BEFORE_SECOND:B.DO_NOT_SWAP)}};var F=a(31),B=a(135);b.COLUMN_DATA_TYPE="default"},function(g,b,a){function F(q,p){var e;return(0,A.arrayEach)(p,function(c){var d=c.key?c.key.split(":"):null;if(Array.isArray(d)&&d[1]===q)return e=c,!1}),e}g=a(1);b.__esModule=!0;b.default=void 0;a(12);a(64);a(76);var B=g(a(5)),D=g(a(6)),A=a(20),x=a(17);a=function(){function q(p){(0,B.default)(this,q);this.hot=p;this.commands={};this.commonCallback=null} 2632return(0,D.default)(q,[{key:"registerCommand",value:function(p,e){this.commands[p]=e}},{key:"setCommonCallback",value:function(p){this.commonCallback=p}},{key:"execute",value:function(p){for(var e=this,c=arguments.length,d=Array(1<c?c-1:0),h=1;h<c;h++)d[h-1]=arguments[h];c=p.split(":");var k=c[0],f=2===c.length?c[1]:null;h=this.commands[k];if(!h)throw Error("Menu command '".concat(k,"' not exists."));(f&&h.submenu&&(h=F(f,h.submenu.items)),!0===h.disabled||"function"==typeof h.disabled&&!0===h.disabled.call(this.hot)|| 2633(0,x.hasOwnProperty)(h,"submenu"))||(k=[],"function"==typeof h.callback&&k.push(h.callback),"function"==typeof this.commonCallback&&k.push(this.commonCallback),d.unshift(c.join(":")),(0,A.arrayEach)(k,function(n){return n.apply(e.hot,d)}))}}]),q}();b.default=a},function(g,b,a){function F(){var p=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},c=[],d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return d&&d.items?d= 2634d.items:Array.isArray(d)||(d=p),(0,A.isObject)(d)?(0,A.objectEach)(d,function(h,k){var f=e["string"==typeof h?h:k];f||(f=h);(0,A.isObject)(h)?(0,A.extend)(f,h):"string"==typeof f&&(f={name:f});void 0===f.key&&(f.key=k);c.push(f)}):(0,x.arrayEach)(d,function(h,k){var f=e[h];!f&&0<=q.ITEMS.indexOf(h)||(f||(f={name:h,key:"".concat(k)}),(0,A.isObject)(h)&&(0,A.extend)(f,h),void 0===f.key&&(f.key=k),c.push(f))}),c}g=a(1);b.__esModule=!0;b.default=void 0;a(26);a(33);var B=g(a(5)),D=g(a(6)),A=a(17),x=a(20), 2635q=a(126);a=function(){function p(e){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;(0,B.default)(this,p);this.hot=e;this.predefinedItems=(0,q.predefinedItems)();this.defaultOrderPattern=c}return(0,D.default)(p,[{key:"setPredefinedItems",value:function(e){var c=this,d={};this.defaultOrderPattern.length=0;(0,A.objectEach)(e,function(h,k){var f="";h.name===q.SEPARATOR?(d[q.SEPARATOR]=h,f=q.SEPARATOR):isNaN(parseInt(k,10))?(h.key=void 0===h.key?k:h.key,d[
2635k]=h,f=h.key):(d[h.key]=h,f= 2636h.key);c.defaultOrderPattern.push(f)});this.predefinedItems=d}},{key:"getItems",value:function(){return F(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}]),p}();b.default=a},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q){return(0,x.isEmpty)(q.value)}a(3);a(0);a(2);a(11);a(4);a(19);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0; 2637b.condition=B;g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var A=a(58),x=a(31);b.CONDITION_NAME="empty"; 2638(0,A.registerCondition)("empty",B,{name:g.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){p=(0,A.default)(p,1)[0];return(0,x.stringify)(q.value).toLocaleLowerCase(q.meta.locale)===(0,x.stringify)(p)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(34));g=function(q, 2639p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var x=a(31);a=a(58);b.CONDITION_NAME="eq";(0,a.registerCondition)("eq", 2640B,{name:g.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(g,b,a){function F(e){if("function"!=typeof WeakMap)return null;var c=new WeakMap,d=new WeakMap;return(F=function(h){return h?d:c})(e)}function B(e,c){var d=(0,A.default)(c,2);c=d[0];var h=d[1];if("numeric"===e.meta.type)d=parseFloat(c,10),h=parseFloat(h,10),c=Math.min(d,h),h=Math.max(d,h);else if("date"===e.meta.type)return d=(0,x.getCondition)(p.CONDITION_NAME,[h]),c=(0,x.getCondition)(q.CONDITION_NAME,[c]),d(e)&&c(e); 2641return e.value>=c&&e.value<=h}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(34));g=function(e,c){if(!c&&e&&e.__esModule)return e;if(null===e||"object"!==D(e)&&"function"!=typeof e)return{default:e};if((c=F(c))&&c.has(e))return c.get(e);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor,k;for(k in e)if("default"!==k&&Object.prototype.hasOwnProperty.call(e,k)){var f=h?Object.getOwnPropertyDescriptor(e,k):null;f&&(f.get|| 2642f.set)?Object.defineProperty(d,k,f):d[k]=e[k]}d.default=e;c&&c.set(e,d);return d}(a(29));var x=a(58),q=a(643),p=a(644);b.CONDITION_NAME="between";(0,x.registerCondition)("between",B,{name:g.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){var e=(0,A.default)(p,1)[0];p=(0,x.default)(q.value,q.meta.dateFormat);q=(0,x.default)(e,q.meta.dateFormat); 2643return!(!p.isValid()||!q.isValid())&&0<=p.diff(q)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(34)),x=g(a(108));g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q, 2644d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));a=a(58);b.CONDITION_NAME="date_after";(0,a.registerCondition)("date_after",B,{name:g.FILTERS_CONDITIONS_AFT
2644ER,inputsCount:1,showOperators:!0})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){var e=(0,A.default)(p,1)[0];p=(0,x.default)(q.value,q.meta.dateFormat);q=(0,x.default)(e,q.meta.dateFormat); 2645return!(!p.isValid()||!q.isValid())&&0>=p.diff(q)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(34)),x=g(a(108));g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q, 2646d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));a=a(58);b.CONDITION_NAME="date_before";(0,a.registerCondition)("date_before",B,{name:g.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){p=(0,A.default)(p,1)[0];return 0<=(0,x.stringify)(q.value).toLocaleLowerCase(q.meta.locale).indexOf((0,x.stringify)(p))} 2647a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;a(33);var A=g(a(34));g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e, 2648d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var x=a(31);a=a(58);b.CONDITION_NAME="contains";(0,a.registerCondition)("contains",B,{name:g.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap;return(F=function(p){return p?q:x})(A)}function B(A,x){return A.some(function(q){return q.func(x)})}a(3);a(2);a(11);a(4);a(19);var D=a(21);b.__esModule=!0;b.SHORT_NAME_FOR_COMPONENT=b.OPERATION_ID= 2649void 0;b.operationResult=B;a(0);g=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==D(A)&&"function"!=typeof A)return{default:A};if((x=F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]=A[e]}q.default=A;x&&x.set(A,q);return q}(a(29));a=a(210);b.OPERATION_ID= 2650"disjunction";g=g.FILTERS_LABELS_DISJUNCTION;b.SHORT_NAME_FOR_COMPONENT=g;(0,a.registerOperation)("disjunction",g,B)},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap;return(F=function(p){return p?q:x})(A)}function B(A,x){if(3>A.length)throw Error("Operation doesn't work on less then three conditions.");return A.slice(0,A.length-1).some(function(q){return q.func(x)})&&A[A.length-1].func(x)}a(3);a(2);a(11);a(4);a(19);var D=a(21);b.__esModule=!0; 2651b.SHORT_NAME_FOR_COMPONENT=b.OPERATION_ID=void 0;b.operationResult=B;a(0);a(13);g=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==D(A)&&"function"!=typeof A)return{default:A};if((x=F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]=A[e]}q.default=A;x&&x.set(A, 2652q);return q}(a(29));a=a(210);b.OPERATION_ID="disjunctionWithExtraCondition";g=g.FILTERS_LABELS_DISJUNCTION;b.SHORT_NAME_FOR_COMPONENT=g;(0,a.registerOperation)("disjunctionWithExtraCondition",g,B)},function(g,b,a){var F=a(1);b.__esModule=!0;b.default=void 0;var B=F(a(34)),D=F(a(78));a(26);a(36);a(33);a(0);var A,x,q=F(a(5)),p=F(a(6)),e=a(20);g=a(17);var c=a(79);F=F(a(98));var d=a(58),h=a(330),k=a(210),f=a(31),n=a(84);a=function(){function l(r){var m=!(1<arguments.length&&void 0!==arguments[1])||arguments[1]; 2653(0,q.default)(this,l);this.hot=r;this.isMapRegistrable=m;this.filteringStates=new n.LinkedPhysicalIndexToValueMap;!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap("ConditionCollection.filteringStates",this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexe
2653s())}return(0,p.default)(l,[{key:"isEmpty",value:function(){return 0===this.getFilteredColumns().length}},{key:"isMatch",value:function(r,m){var t;m=this.filteringStates.getValueAtIndex(m);var u= 2654null!==(t=null==m?void 0:m.conditions)&&void 0!==t?t:[];return this.isMatchInConditions(u,r,null==m?void 0:m.operation)}},{key:"isMatchInConditions",value:function(r,m){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID;return!r.length||(0,k.getOperationFunc)(t)(r,m)}},{key:"addCondition",value:function(r,m){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID,u=3<arguments.length?arguments[3]:void 0,w=this.hot.getCellMeta(0,r).locale,v=(0,e.arrayMap)(m.args, 2655function(z){return"string"==typeof z?z.toLocaleLowerCase(w):z}),C=m.name||m.command.key;this.runLocalHooks("beforeAdd",r);var y=this.getOperation(r);if(y){if(y!==t)throw Error((0,c.toSingleLine)(A||(A=(0,D.default)(["The column of index "," has been already applied with a `","` \n filter operation. Use `removeConditions` to clear the current conditions and then add new ones. \n Mind that you cannot mix different types of operations (for instance, if you use `conjunction`, \n use it consequently for a particular column)."], 2656["The column of index "," has been already applied with a \\`","\\`\\x20\n filter operation. Use \\`removeConditions\\` to clear the current conditions and then add new ones.\\x20\n Mind that you cannot mix different types of operations (for instance, if you use \\`conjunction\\`,\\x20\n use it consequently for a particular column)."])),r,y));}else if((0,f.isUndefined)(k.operations[t]))throw Error((0,c.toSingleLine)(x||(x=(0,D.default)(["Unexpected operation named `","`. Possible ones are \n `disjunction` and `conjunction`."], 2657["Unexpected operation named \\`","\\`. Possible ones are\\x20\n \\`disjunction\\` and \\`conjunction\\`."])),t));y=this.getConditions(r);0===y.length?this.filteringStates.setValueAtIndex(r,{operation:t,conditions:[{name:C,args:v,func:(0,d.getCondition)(C,v)}]},u):y.push({name:C,args:v,func:(0,d.getCondition)(C,v)});this.runLocalHooks("afterAdd",r)}},{key:"getConditions",value:function(r){var m,t;return null!==(m=null===(t=this.filteringStates.getValueAtIndex(r))||void 0===t?void 0:t.conditions)&& 2658void 0!==m?m:[]}},{key:"getOperation",value:function(r){var m;return null===(m=this.filteringStates.getValueAtIndex(r))||void 0===m?void 0:m.operation}},{key:"getFilteredColumns",value:function(){return this.filteringStates.getEntries().map(function(r){return(0,B.default)(r,1)[0]})}},{key:"getColumnStackPosition",value:function(r){return this.getFilteredColumns().indexOf(r)}},{key:"exportAllConditions",value:function(){return(0,e.arrayReduce)(this.filteringStates.getEntries(),function(r,m){m=(0,B.default)(m, 26592);var t=m[1];return r.push({column:m[0],operation:t.operation,conditions:(0,e.arrayMap)(t.conditions,function(u){return{name:u.name,args:u.args}})}),r},[])}},{key:"importAllConditions",value:function(r){var m=this;this.clean();(0,e.arrayEach)(r,function(t){(0,e.arrayEach)(t.conditions,function(u){return m.addCondition(t.column,u)})})}},{key:"removeConditions",value:function(r){this.runLocalHooks("beforeRemove",r);this.filteringStates.clearValue(r);this.runLocalHooks("afterRemove",r)}},{key:"clean", 2660value:function(){this.runLocalHooks("beforeClean");this.filteringStates.clear();this.runLocalHooks("afterClean")}},{key:"hasConditions",value:function(r,m){r=this.getConditions(r);return m?r.some(function(t){return t.name===m}):0<r.length}},{key:"destroy",value:function(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap("ConditionCollection.filteringStates");this.filteringStates=null;this.clearLocalHooks()}}]),l}();(0,g.mixin)(a,F.default);b.default=a},function(g,b,a){g=a(1);b.__esModule= 2661!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=a(20);a=function(){function A(x){var q=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){return[]};(0,F.default)(this,A);this.conditionCollection=x;this.columnDataFactory=q}return(0,B.default)(A,[{key:"filter",value:function(){var x=this,q=[];return(0,D.arrayEach)(this.conditionCollection.getFilteredColumns(),function(p,e){var c=x.columnDataFactory(p);e&&(c=x._getIntersectData(c,q));q=x.filterByColumn(p,c)}),q}},{key:"filterByColumn",value:function(x){var q= 2662this,p=[];return(0,D.arrayEach)(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],function(e){void 0!==e&&q.conditionCollection.isMatch(e,x)&&p.push(e)}),p}},{key:"_getIntersectData",value:function(x,q){var p=[];return(0,D.arrayEach)(q,function(e){e=e.meta.visualRow;void 0!==x[e]&&(p[e]=x[e])}),p}}]),A}();b.default=a},function(g,b,a){function F(e,c){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(e);c&&(h=h.filter(function(k){return Object.getOwnPropertyDescriptor(e, 2663k).enumerable}));d.push.apply(d,h)}return d}function B(e){for(var c=1;c<arguments.length;c++){var d=null!=arguments[c]?arguments[c]:{};
2663c%2?F(Object(d),!0).forEach(function(h){(0,x.default)(e,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):F(Object(d)).forEach(function(h){Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(d,h))})}return e}function D(e){var c,d;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(c=e[q.PLUGIN_KEY])|| 2664void 0===c||null===(d=c.language)||void 0===d?void 0:d.langCode}}function A(e){return Object.keys(e).reduce(function(c,d){return"hyperformula"!==d&&(c[d]=e[d]),c},{})}a(8);a(39);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.DEFAULT_LICENSE_KEY=void 0;b.getEngineSettingsOverrides=D;b.getEngineSettingsWithDefaultsAndOverrides=function(e){var c,d=e[q.PLUGIN_KEY],h=A(null!=d&&null!==(c=d.engine)&&void 0!==c&&c.hyperformula?d.engine:{});e=D(e);return B(B(B({},p),h),e)};b.getEngineSettingsWithOverrides=function(e){var c, 2665d=e[q.PLUGIN_KEY],h=A(null!=d&&null!==(c=d.engine)&&void 0!==c&&c.hyperformula?d.engine:{});e=D(e);return B(B({},h),e)};var x=g(a(41));a(105);a(0);a(53);var q=a(332);b.DEFAULT_LICENSE_KEY="internal-use-in-handsontable";var p={licenseKey:"internal-use-in-handsontable",useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1E-13,precisionRounding:14,smartRounding:!0,leapYear1900:!0,nullDate:{year:1899,month:12,day:31},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"], 2666timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"}},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=a(47),A=a(97);a=function(){function x(q){(0,F.default)(this,x);this.hot=q;this._element=null;this.state=0;this.inlineProperty=q.isRtl()?"right":"left"}return(0,B.default)(x,[{key:"appendTo",value:function(q){q.appendChild(this._element);this.state= 26672}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element);this._element=null;this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return 1<=this.state}},{key:"setPosition",value:function(q,p){(0,D.isNumeric)(q)&&(this._element.style.top=q+"px");(0,D.isNumeric)(p)&&(this._element.style[this.inlineProperty]= 2668p+"px")}},{key:"getPosition",value:function(){var q=this._element.style;return{top:q.top?parseInt(q.top,10):0,start:q[this.inlineProperty]?parseInt(q[this.inlineProperty],10):0}}},{key:"setSize",value:function(q,p){(0,D.isNumeric)(q)&&(this._element.style.width=q+"px");(0,D.isNumeric)(p)&&(this._element.style.height=p+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height, 266910):0}}},{key:"setOffset",value:function(q,p){(0,D.isNumeric)(q)&&(this._element.style.marginTop=q+"px");(0,D.isNumeric)(p)&&(this._element.style["margin".concat((0,A.toUpperCaseFirst)(this.inlineProperty))]=p+"px")}},{key:"getOffset",value:function(){var q=this._element.style,p="margin".concat((0,A.toUpperCaseFirst)(this.inlineProperty));return{top:q.marginTop?parseInt(q.marginTop,10):0,start:q[p]?parseInt(q[p],10):0}}}]),x}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0; 2670var F=g(a(5)),B=g(a(6));a=function(){function D(A){(0,F.default)(this,D);this.hot=A;this._element=null;this.state=0}return(0,B.default)(D,[{key:"appendTo",value:function(A){A.appendChild(this._element);this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element);this._element=null;this.state=0}},{key:"isAppended",value:function(){return 2=== 2671this.state}},{key:"isBuilt",value:function(){return 1<=this.state}},{key:"setPosition",value:function(A,x){void 0!==A&&(this._element.style.top=A+"px");void 0!==x&&(this._element.style.left=x+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(A,x){A&&(this._element.style.width=A+"px");x&&(this._element.style.height=x+"px")}},{key:"getSize", 2672value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(A,x){A&&(this._element.style.marginTop=A+"px");x&&(this._element.style.marginLeft=x+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]), 2673D}();b.default=a},function(g,b,a){b.__esModule=!0;b.applySpanProperties=function(F,B,D,A){B?B.row===D&&B.col===A?(F.setAttribute("rowspan",B.rowspan.toString()),F.setAttribute("colspan",B.colspan.toString())):(F.removeAttribute("rowspan"),F.removeAttribute("colspan"),F.style.display="none"):(F.removeAttribute("rowspan"),F.removeAttribute("colspan"),F.style.display="")};a(0);a(69)},function(g,b,a){b.__esModule=!0;b.createDefaultHeaderSettings=function(){var F=0<arguments.length&&void 0!==arguments[0]? 2674arguments[0]:{},B=F.label,D=F.colspan,A=F.origColspan,x=F.collapsible,q=F.crossHiddenColumns,p=F.isCollapsed,e=F.isHidden,c=F.isRoot;F=F.isPlaceholder;
2674return{label:void 0===B?"":B,colspan:void 0===D?1:D,origColspan:void 0===A?1:A,collapsible:void 0!==x&&x,isCollapsed:void 0!==p&&p,crossHiddenColumns:void 0===q?[]:q,isHidden:void 0!==e&&e,isRoot:void 0!==c&&c,isPlaceholder:void 0!==F&&F}};b.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},function(g,b,a){b.__esModule= 2675!0;b.collapseNode=function q(x){var p,e=x.data,c=x.childs;if(e.isCollapsed||e.isHidden||1>=e.origColspan)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,D.isNodeReflectsFirstChildColspan)(x))return q(c[0]);e.isCollapsed=!0;c=c.slice(1);var d=new Set;if(0<c.length)(0,F.arrayEach)(c,function(n){(0,D.traverseHiddenNodeColumnIndexes)(n,function(l){d.add(l)});n.data.clonedTree=n.cloneTree();n.walkDown(function(l){l.data.isHidden=!0})});else{c=e.origColspan;for(var h= 2676e.columnIndex,k=1;k<c;k++)d.add(h+k)}var f=e.colspan-(null!==(p=(0,D.getFirstChildProperty)(x,"colspan"))&&void 0!==p?p:1);return x.walkUp(function(n){var l=n.data;l.colspan-=f;1>=l.colspan?(l.colspan=1,l.isCollapsed=!0):(0,D.isNodeReflectsFirstChildColspan)(n)&&(l.isCollapsed=(0,D.getFirstChildProperty)(n,"isCollapsed"))}),{rollbackModification:function(){return(0,B.expandNode)(x)},affectedColumns:Array.from(d),colspanCompensation:f}};a(13);a(3);a(0);a(54);a(2);a(4);a(22);var F=a(20),B=a(656),D= 2677a(657)},function(g,b,a){b.__esModule=!0;b.expandNode=function q(x){var p=x.data,e=x.childs;if(!p.isCollapsed||p.isHidden||1>=p.origColspan)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,D.isNodeReflectsFirstChildColspan)(x))return q(e[0]);p.isCollapsed=!1;e=e.slice(1);var c=new Set,d=0;if(0<e.length)(0,F.arrayEach)(e,function(k){k.replaceTreeWith(k.data.clonedTree);k.data.clonedTree=null;d+=k.data.colspan;(0,D.traverseHiddenNodeColumnIndexes)(k,function(f){c.add(f)})}); 2678else{e=p.origColspan;var h=p.columnIndex;d=e-p.colspan;for(p=1;p<e;p++)c.add(h+p)}return x.walkUp(function(k){var f=k.data;f.colspan+=d;f.colspan>=f.origColspan?(f.colspan=f.origColspan,f.isCollapsed=!1):(0,D.isNodeReflectsFirstChildColspan)(k)&&(f.isCollapsed=(0,D.getFirstChildProperty)(k,"isCollapsed"))}),{rollbackModification:function(){return(0,B.collapseNode)(x)},affectedColumns:Array.from(c),colspanCompensation:d}};a(13);a(3);a(0);a(54);a(2);a(4);a(22);var F=a(20),B=a(655),D=a(657)},function(g, 2679b,a){function F(B,D){B=B.childs;if(0!==B.length)return B[0].data[D]}b.__esModule=!0;b.getFirstChildProperty=F;b.isNodeReflectsFirstChildColspan=function(B){return F(B,"origColspan")===B.data.origColspan};b.traverseHiddenNodeColumnIndexes=function(B,D){B.walkDown(function(A){var x=A.data;A=A.childs;if(!x.isHidden&&(D(x.columnIndex),0===A.length))for(A=1;A<x.colspan;A++)D(x.columnIndex+A)})}},function(g,b,a){function F(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1; 2680if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k=(0,q.default)(d);if(h){var f=(0,q.default)(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments);return(0,x.default)(this,k)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;a(18);var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14)),p=a(20),e=a(47),c=a(23);a=function(d){function h(f,n){var l; 2681return(0,B.default)(this,h),(l=k.call(this,f,n)).dataManager=l.plugin.dataManager,l.collapsingUI=l.plugin.collapsingUI,l.rowHeaderWidthCache=null,l}(0,A.default)(h,d);var k=F(h);return(0,D.default)(h,[{key:"appendLevelIndicators",value:function(f,n){f=this.hot.toPhysicalRow(f);var l=this.dataManager.getRowLevel(f),r=this.dataManager.getDataObject(f),m=n.getElementsByTagName("DIV")[0],t=m.querySelector("span.rowHeader"),u=m.querySelectorAll('[class^\x3d"ht_nesting"]');if((0,p.arrayEach)(u,function(v){v&& 2682m.removeChild(v)}),(0,c.addClass)(n,h.CSS_CLASSES.indicatorContainer),l){var w=this.hot.rootDocument;t=t.cloneNode(!0);m.innerHTML="";(0,e.rangeEach)(0,l-1,function(){var v=w.createElement("SPAN");(0,c.addClass)(v,h.CSS_CLASSES.emptyIndicator);m.appendChild(v)});m.appendChild(t)}this.dataManager.hasChildren(r)&&(l=this.hot.rootDocument.createElement("DIV"),(0,c.addClass)(n,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(f)?(0,c.addClass)(l,"".concat(h.CSS_CLASSES.button," ").concat(h.CSS_CLASSES.expandButton)): 2683(0,c.addClass)(l,"".concat(h.CSS_CLASSES.button," ").concat(h.CSS_CLASSES.collapseButton)),m.appendChild(l))}},{key:"updateRowHeaderWidth",value:function(f){f||(f=this.dataManager.cache.levelCount);this.rowHeaderWidthCache=Math.max(50,10*f+36);this.hot.render()}}],[{key:"CSS_CLASSES",get:function(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}}]), 2684h}(g(a(334)).default);b.default=a},function(g,b,a){a(251);g.exports=a(766)},function(g,b,a){var F=a(61),B=a(56),D=a(63),A=TypeError;g.exports=function(x,q){var p,e;if("string"===q&&B(p=x.toString)&&!D(e=F(p,x))||B(p=x.valueOf)&&!D(e=F(p,x))||"string"!==q&&B(p=x.toString)&&!D(e=F(p,x)))return e;throw A("Can't convert object to primitive value");}},function(g,b,a){b=a(38);var F=a(56),B=a(65),D=a(72),A=a(178).CONFIGURABLE,x=a(216);a=a(116);var q=a.enforce,p=a.get,e=Object.defineProperty,c=D&&!b(function(){return 8!== 2685e(function(){},"length",{value:8}).length}),d=String(String).split("String");g=g.exports=function(h,k,f){"Symbol("===String(k).slice(0,7)&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");f&&f.getter&&(k="get "+k);f&&f.setter&&(k="set "+k);(!B(h,"name")||A&&h.name!==k)&&(D?e(h,"name",{value:k,configurable:!0}):h.name=k);c&&f&&B(f,"arity")&&h.length!==f.arity&&e(h,"length",{value:f.arity});try{f&&B(f,"constructor")&&f.constructor?D&&e(h,"prototype",{writable:!1}):h.prototype&&(h.prototype= 2686void 0)}catch(n){}f=q(h);return B(f,"source")||(f.source=d.join("string"==typeof k?k:"")),h};Function.prototype.toString=g(function(){return F(this)&&p(this).source||x(this)},"toString")},function(g,b,a){b=a(259);var F=a(220);g.exports=b?{}.toString:function(){return"[object "+F(this)+"]"}},function(g,b,a){b=a(35);var F=a(115),B=a(63),D=a(65),A=a(181);a=a(174);var x=Function,q=b([].concat),p=b([].join),e={};g.exports=a?x.bind:function(c){var d=F(this),h=d.prototype,k=A(arguments,1
2686),f=function(){var n= 2687q(k,A(arguments));if(this instanceof f){var l=n.length;if(!D(e,l)){for(var r=[],m=0;m<l;m++)r[m]="a["+m+"]";e[l]=x("C,a","return new C("+p(r,",")+")")}n=e[l](d,n)}else n=d.apply(c,n);return n};return B(h)&&(f.prototype=h),f}},function(g,b,a){var F=a(160),B=a(61),D=a(95),A=a(665),x=a(349),q=a(221),p=a(103),e=a(159),c=a(350),d=a(263),h=Array;g.exports=function(k){var f=D(k),n=q(this),l=arguments.length,r=1<l?arguments[1]:void 0,m=void 0!==r;m&&(r=F(r,2<l?arguments[2]:void 0));var t=d(f);l=0;if(!t|| 2688this===h&&x(t))for(t=p(f),n=n?new this(t):h(t);t>l;l++){var u=m?r(f[l],l):f[l];e(n,l,u)}else for(t=(f=c(f,t)).next,n=n?new this:[];!(u=B(t,f)).done;l++)u=m?A(f,r,[u.value,l],!0):u.value,e(n,l,u);return n.length=l,n}},function(g,b,a){var F=a(66),B=a(348);g.exports=function(D,A,x,q){try{return q?A(F(x)[0],x[1]):A(x)}catch(p){B(D,"throw",p)}}},function(g,b,a){var F=a(351).IteratorPrototype,B=a(140),D=a(175),A=a(130),x=a(185),q=function(){return this};g.exports=function(p,e,c,d){e+=" Iterator";return p.prototype= 2689B(F,{next:D(+!d,c)}),A(p,e,!1,!0),x[e]=q,p}},function(g,b,a){var F=a(56),B=String,D=TypeError;g.exports=function(A){if("object"==typeof A||F(A))return A;throw D("Can't set "+B(A)+" as a prototype");}},function(g,b,a){g=a(28);var F=a(45),B=a(61),D=a(35);b=a(112);var A=a(72),x=a(153),q=a(38),p=a(65),e=a(128),c=a(66),d=a(99),h=a(213),k=a(73),f=a(175),n=a(140),l=a(182),r=a(157),m=a(257),t=a(218),u=a(114),w=a(80),v=a(346),C=a(212),y=a(96),z=a(156),E=a(217),H=a(179),G=a(214),I=a(59),K=a(355),J=a(223),P= 2690a(670),S=a(130),R=a(116),O=a(141).forEach,N=E("hidden"),Q=R.set,M=R.getterFor("Symbol"),T=Object.prototype,Z=(a=F.Symbol)&&a.prototype,L=F.TypeError;F=F.QObject;var U=u.f,V=w.f,Y=m.f,aa=C.f,W=D([].push),ca=z("symbols"),ia=z("op-symbol
2690s");D=z("wks");var ba=!F||!F.prototype||!F.prototype.findChild,fa=A&&q(function(){return 7!=n(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a})?function(ma,pa,sa){var va=U(T,pa);va&&delete T[pa];V(ma,pa,sa);va&&ma!==T&&V(T,pa,va)}:V,ja=function(ma,pa){var sa= 2691ca[ma]=n(Z);return Q(sa,{type:"Symbol",tag:ma,description:pa}),A||(sa.description=pa),sa},qa=function(ma,pa,sa){ma===T&&qa(ia,pa,sa);c(ma);pa=h(pa);return c(sa),p(ca,pa)?(sa.enumerable?(p(ma,N)&&ma[N][pa]&&(ma[N][pa]=!1),sa=n(sa,{enumerable:f(0,!1)})):(p(ma,N)||V(ma,N,f(1,{})),ma[N][pa]=!0),fa(ma,pa,sa)):V(ma,pa,sa)},ha=function(ma,pa){c(ma);var sa=d(pa);pa=l(sa).concat(oa(sa));return O(pa,function(va){A&&!B(na,sa,va)||qa(ma,va,sa[va])}),ma},na=function(ma){ma=h(ma);var pa=B(aa,this,ma);return!(this=== 2692T&&p(ca,ma)&&!p(ia,ma))&&(!(pa||!p(this,ma)||!p(ca,ma)||p(this,N)&&this[N][ma])||pa)};q=function(ma,pa){ma=d(ma);pa=h(pa);if(ma!==T||!p(ca,pa)||p(ia,pa)){var sa=U(ma,pa);return!sa||!p(ca,pa)||p(ma,N)&&ma[N][pa]||(sa.enumerable=!0),sa}};z=function(ma){ma=Y(d(ma));var pa=[];return O(ma,function(sa){p(ca,sa)||p(H,sa)||W(pa,sa)}),pa};var oa=function(ma){var pa=ma===T;ma=Y(pa?ia:d(ma));var sa=[];return O(ma,function(va){!p(ca,va)||pa&&!p(T,va)||W(sa,ca[va])}),sa};x||(y(Z=(a=function(){if(e(Z,this))throw L("Symbol is not a constructor"); 2693var ma=arguments.length&&void 0!==arguments[0]?k(arguments[0]):void 0,pa=G(ma),sa=function(va){this===T&&B(sa,ia,va);p(this,N)&&p(this[N],pa)&&(this[N][pa]=!1);fa(this,pa,f(1,va))};return A&&ba&&fa(T,pa,{configurable:!0,set:sa}),ja(pa,ma)}).prototype,"toString",function(){return M(this).tag}),y(a,"withoutSetter",function(ma){return ja(G(ma),ma)}),C.f=na,w.f=qa,v.f=ha,u.f=q,r.f=m.f=z,t.f=oa,K.f=function(ma){return ja(I(ma),ma)},A&&(V(Z,"description",{configurable:!0,get:function(){return M(this).description}}), 2694b||y(T,"propertyIsEnumerable",na,{unsafe:!0})));g({global:!0,constructor:!0,wrap:!0,forced:!x,sham:!x},{Symbol:a});O(l(D),function(ma){J(ma)});g({target:"Symbol",stat:!0,forced:!x},{useSetter:function(){ba=!0},useSimple:function(){ba=!1}});g({target:"Object",stat:!0,forced:!x,sham:!A},{create:function(ma,pa){return void 0===pa?n(ma):ha(n(ma),pa)},defineProperty:qa,defineProperties:ha,getOwnPropertyDescriptor:q});g({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:z});P();S(a,"Symbol");H[N]= 2695!0},function(g,b,a){b=a(45);g.exports=b},function(g,b,a){var F=a(61),B=a(100),D=a(59),A=a(96);g.exports=function(){var x=B("Symbol"),q=(x=x&&x.prototype)&&x.valueOf,p=D("toPrimitive");x&&!x[p]&&A(x,p,function(e){return F(q,this)},{arity:1})}},function(g,b,a){var F=a(183),B=a(221),D=a(63),A=a(59)("species"),x=Array;g.exports=function(q){var p;return F(q)&&(p=q.constructor,(B(p)&&(p===x||F(p.prototype))||D(p)&&null===(p=p[A]))&&(p=void 0)),void 0===p?x:p}},function(g,b,a){g=a(28);var F=a(100),B=a(65), 2696D=a(73);b=a(156);a=a(356);var A=b("string-to-symbol-registry"),x=b("symbol-to-string-registry");g({target:"Symbol",stat:!0,forced:!a},{for:function(q){q=D(q);if(B(A,q))return A[q];var p=F("Symbol")(q);return A[q]=p,x[p]=q,p}})},function(g,b,a){g=a(28);var F=a(65),B=a(177),D=a(155);b=a(156);a=a(356);var A=b("symbol-to-string-registry");g({target:"Symbol",stat:!0,forced:!a},{keyFor:function(x){if(!B(x))throw TypeError(D(x)+" is not a symbol");if(F(A,x))return A[x]}})},function(g,b,a){g=a(28);var F= 2697a(100),B=a(139),D=a(61);b=a(35);var A=a(38),x=a(183),q=a(56),p=a(63),e=a(177),c=a(181);a=a(153);var d=F("JSON","stringify"),h=b(/./.exec),k=b("".charAt),f=b("".charCodeAt),n=b("".replace),l=b((1).toString),r=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,t=/^[\uDC00-\uDFFF]$/,u=!a||A(function(){var y=F("Symbol")();return"[null]"!=d([y])||"{}"!=d({a:y})||"{}"!=d(Object(y))}),w=A(function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")}),v=function(y,z){var E=c(arguments),H=z;if((p(z)|| 2698void 0!==y)&&!e(y))return x(z)||(z=function(G,I){if(q(H)&&(I=D(H,this,G,I)),!e(I))return I}),E[1]=z,B(d,null,E)},C=function(y,z,E){var H=k(E,z-1);z=k(E,z+1);return h(m,y)&&!h(t,z)||h(t,y)&&!h(m,H)?"\\u"+l(f(y,0),16):y};d&&g({target:"JSON",stat:!0,arity:3,forced:u||w},{stringify:function(y,z,E){var H=c(arguments);H=B(u?v:d,null,H);return w&&"string"==typeof H?n(H,r,C):H}})},function(g,b,a){g=a(28);b=a(153);var F=a(38),B=a(218),D=a(95);g({target:"Object",stat:!0,forced:!b||F(function(){B.f(1)})},{getOwnPropertySymbols:function(A){var x= 2699B.f;return x?x(D(A)):[]}})},function(g,b,a){var F=a(72);b=a(35);var B=a(61),D=a(38),A=a(182),x=a(218),q=a(212),p=a(95),e=a(176),c=Object.assign,d=Object.defineProperty,h=b([].concat);g.exports=!c||D(function(){if(F&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var k={},f={},n=Symbol();return k[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(l){f[l]=l}),7!=c({},k)[n]||"abcdefghijklmnopqrst"!=A(c({},f)).join("")})?function(k,f){for(var n= 2700p(k),l=arguments.length,r=1,m=x.f,t=q.f;l>r;)for(var u,w=e(arguments[r++]),v=m?h(A(w),m(w)):A(w),C=v.length,y=0;C>y;)u=v[y++],F&&!B(t,w,u)||(n[u]=w[u]);return n}:c},function(g,b,a){a(224)("Set",function(F){return function(){return F(this,arguments.length?arguments[0]:void 0)}},a(363))},function(g,b,a){b=a(38);g.exports=b(function(){if("function"==typeof ArrayBuffer){var F=new ArrayBuffer(8);Object.isExtensible(F)&&Object.defineProperty(F,"a",{value:8})}})}
2700,function(g,b,a){var F=a(141).forEach;b=a(161)("forEach"); 2701g.exports=b?[].forEach:function(B){return F(this,B,1<arguments.length?arguments[1]:void 0)}},function(g,b,a){var F,B;g=a(28);b=a(112);var D=a(226),A=a(45),x=a(61),q=a(96),p=a(267),e=a(130),c=a(272),d=a(115),h=a(56),k=a(63),f=a(225),n=a(364),l=a(227).set,r=a(681),m=a(684),t=a(273),u=a(685),w=a(116),v=a(189),C=a(190);a=a(191);var y=C.CONSTRUCTOR,z=C.REJECTION_EVENT;C=C.SUBCLASSING;var E=w.getterFor("Promise"),H=w.set;w=v&&v.prototype;var G=v,I=w,K=A.TypeError,J=A.document,P=A.process,S=a.f,R=S,O=!!(J&& 2702J.createEvent&&A.dispatchEvent),N=function(W){var ca;return!(!k(W)||!h(ca=W.then))&&ca},Q=function(W,ca){var ia,ba,fa,ja=ca.value,qa=1==ca.state,ha=qa?W.ok:W.fail,na=W.resolve,oa=W.reject,ma=W.domain;try{ha?(qa||(2===ca.rejection&&L(ca),ca.rejection=1),!0===ha?ia=ja:(ma&&ma.enter(),ia=ha(ja),ma&&(ma.exit(),fa=!0)),ia===W.promise?oa(K("Promise-chain cycle")):(ba=N(ia))?x(ba,ia,na,oa):na(ia)):oa(ja)}catch(pa){ma&&!fa&&ma.exit(),oa(pa)}},M=function(W,ca){W.notified||(W.notified=!0,r(function(){for(var ia, 2703ba=W.reactions;ia=ba.get();)Q(ia,W);W.notified=!1;ca&&!W.rejection&&Z(W)}))},T=function(W,ca,ia){var ba,fa;O?((ba=J.createEvent("Event")).promise=ca,ba.reason=ia,ba.initEvent(W,!1,!0),A.dispatchEvent(ba)):ba={promise:ca,reason:ia};!z&&(fa=A["on"+W])?fa(ba):"unhandledrejection"===W&&m("Unhandled promise rejection",ia)},Z=function(W){x(l,A,function(){var ca,ia=W.facade,ba=W.value;if(1!==W.rejection&&!W.parent&&(ca=t(function(){D?P.emit("unhandledRejection",ba,ia):T("unhandledrejection",ia,ba)}),W.rejection= 2704D||1!==W.rejection&&!W.parent?2:1,ca.error))throw ca.value;})},L=function(W){x(l,A,function(){var ca=W.facade;D?P.emit("rejectionHandled",ca):T("rejectionhandled",ca,W.value)})},U=function(W,ca,ia){return function(ba){W(ca,ba,ia)}},V=function(W,ca,ia){W.done||(W.done=!0,ia&&(W=ia),W.value=ca,W.state=2,M(W,!0))},Y=function(W,ca,ia){if(!W.done){W.done=!0;ia&&(W=ia);try{if(W.facade===ca)throw K("Promise can't be resolved itself");var ba=N(ca);ba?r(function(){var fa={done:!1};try{x(ba,ca,U(Y,fa,W),U(V, 2705fa,W))}catch(ja){V(fa,ja,W)}}):(W.value=ca,W.state=1,M(W,!1))}catch(fa){V({done:!1},fa,W)}}};if(y&&(I=(G=function(W){f(this,I);d(W);x(F,this);var ca=E(this);try{W(U(Y,ca),U(V,ca))}catch(ia){V(ca,ia)}}).prototype,(F=function(W){H(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new u,rejection:!1,state:0,value:void 0})}).prototype=q(I,"then",function(W,ca){var ia=E(this),ba=S(n(this,G));return ia.parent=!0,ba.ok=!h(W)||W,ba.fail=h(ca)&&ca,ba.domain=D?P.domain:void 0,0==ia.state?ia.reactions.add(ba): 2706r(function(){Q(ba,ia)}),ba.promise}),B=function(){var W=new F,ca=E(W);this.promise=W;this.resolve=U(Y,ca);this.reject=U(V,ca)},a.f=S=function(W){return W===G||void 0===W?new B(W):R(W)},!b&&h(v)&&w!==Object.prototype)){var aa=w.then;C||q(w,"then",function(W,ca){var ia=this;return(new G(function(ba,fa){x(aa,ia,ba,fa)})).then(W,ca)},{unsafe:!0});try{delete w.constructor}catch(W){}p&&p(w,I)}g({global:!0,constructor:!0,wrap:!0,forced:y},{Promise:G});e(G,"Promise",!1,!0);c("Promise")},function(g,b,a){var F, 2707B,D,A,x,q,p,e;b=a(45);var c=a(160),d=a(114).f,h=a(227).set,k=a(366),f=a(682),n=a(683),l=a(226);a=b.MutationObserver||b.WebKitMutationObserver;var r=b.document,m=b.process,t=b.Promise;(d=(d=d(b,"queueMicrotask"))&&d.value)||(F=function(){var u;for(l&&(u=m.domain)&&u.exit();B;){var w=B.fn;B=B.next;try{w()}catch(v){throw B?A():D=void 0,v;}}D=void 0;u&&u.enter()},k||l||n||!a||!r?!f&&t&&t.resolve?((p=t.resolve(void 0)).constructor=t,e=c(p.then,p),A=function(){e(F)}):l?A=function(){m.nextTick(F)}:(h=c(h, 2708b),A=function(){h(F)}):(x=!0,q=r.createTextNode(""),(new a(F)).observe(q,{characterData:!0}),A=function(){q.data=x=!x}));g.exports=d||function(u){u={fn:u,next:void 0};D&&(D.next=u);B||(B=u,A());D=u}},function(g,b,a){b=a(121);a=a(45);g.exports=/ipad|iphone|ipod/i.test(b)&&void 0!==a.Pebble},function(g,b,a){b=a(121);g.exports=/web0s(?!.*chrome)/i.test(b)},function(g,b,a){var F=a(45);g.exports=function(B,D){var A=F.console;A&&A.error&&(1==arguments.length?A.error(B):A.error(B,D))}},function(g,b){b=function(){this.tail= 2709this.head=null};b.prototype={add:function(a){a={item:a,next:null};this.head?this.tail.next=a:this.head=a;this.tail=a},get:function(){var a=this.head;if(a)return this.head=a.next,this.tail===a&&(this.tail=null),a.item}};g.exports=b},function(g,b){g.exports="object"==typeof window&&"object"!=typeof Deno},function(g,b,a){g=a(28);var F=a(61),B=a(115),D=a(191),A=a(273),x=a(188);g({target:"Promise",stat:!0,forced:a(367)},{all:function(q){var p=this,e=D.f(p),c=e.resolve,d=e.reject,h=A(function(){var k=B(p.resolve), 2710f=[],n=0,l=1;x(q,function(r){var m=n++,t=!1;l++;F(k,p,r).then(function(u){t||(t=!0,f[m]=u,--l||c(f))},d)});--l||c(f)});return h.error&&d(h.value),e.promise}})},function(g,b,a){g=a(28);b=a(112);var F=a(190).CONSTRUCTOR,B=a(189),D=a(100),A=a(56);a=a(96);var x=B&&B.prototype;if(g({target:"Promise",proto:!0,forced:F,real:!0},{catch:function(q){return this.then(void 0,q)}}),!b&&A(B))g=D("Promise").prototype.catch,x.catch!==g&&a(x,"catch",g,{unsafe:!0})},function(g,b,a){g=a(28);var F=a(61),B=a(115),D=a(191), 2711A=a(273),x=a(188);g({target:"Promise",stat:!0,forced:a(367)},{race:function(q){var p=this,e=D.f(p),c=e.reject,d=A(function(){var h=B(p.resolve);x(q,function(k){F(h,p,k).then(e.resolve,c)})});return d.error&&c(d.value),e.promise}})},function(g,b,a){g=a(28);var F=a(61),B=a(191);g({target:"Promise",stat:!0,forced:a(190).CONSTRUCTOR},{reject:function(D){var A=B.f(this);return F(A.reject,void 0,D),A.promise}})},function(g,b,a){g=a(28);b=a(100);var F=a(112),B=a(189),D=a(190).CONSTRUCTOR,A=a(692),x=b("Promise"), 2712q=F&&!D;g({target:"Promise",stat:!0,forced:F||D},{resolve:function(p){return A(q&&this===x?B:this,p)}})},function(g,b,a){var F=a(66),B=a(63),D=a(191);g.exports=function(A,x){if(F(A),B(x)&&x.constructor===A)return x;A=D.f(A);return(0,A.resolve)(x),A.promise}},function(g,b,a){var F=a(45).isFinite;
2712g.exports=Number.isFinite||function(B){return"number"==typeof B&&F(B)}},function(g,b,a){var F=a(80).f;g.exports=function(B,D,A){A in B||F(B,A,{configurable:!0,get:function(){return D[A]},set:function(x){D[A]= 2713x}})}},function(g,b,a){a(224)("Map",function(F){return function(){return F(this,arguments.length?arguments[0]:void 0)}},a(363))},function(g,b,a){var F=a(115),B=a(95),D=a(176),A=a(103),x=TypeError;b=function(q){return function(p,e,c,d){F(e);p=B(p);var h=D(p),k=A(p),f=q?k-1:0,n=q?-1:1;if(2>c)for(;;){if(f in h){d=h[f];f+=n;break}if(f+=n,q?0>f:k<=f)throw x("Reduce of empty array with no initial value");}for(;q?0<=f:k>f;f+=n)f in h&&(d=e(d,h[f],f,p));return d}};g.exports={left:b(!1),right:b(!0)}},function(g, 2714b,a){b=a(35);var F=a(95),B=Math.floor,D=b("".charAt),A=b("".replace),x=b("".slice),q=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,p=/\$([$&'`]|\d{1,2})/g;g.exports=function(e,c,d,h,k,f){var n=d+e.length,l=h.length,r=p;return void 0!==k&&(k=F(k),r=q),A(f,r,function(m,t){switch(D(t,0)){case "$":return"$";case "\x26":return e;case "`":return x(c,0,d);case "'":return x(c,n);case "\x3c":m=k[x(t,1,-1)];break;default:var u=+t;if(0===u)return m;if(u>l)return u=B(u/10),0===u?m:u<=l?void 0===h[u-1]?D(t,1):h[u-1]+D(t,1):m; 2715m=h[u-1]}return void 0===m?"":m})}},function(g,b,a){function F(h){var k={};return Object(q.forEach)(h,function(f){f=(new d(f)).startWalking();Object(q.assign)(k,f)}),k}function B(h,k){return h.name+k+p.IN}function D(h){return h.terminalType.name+h.idx+p.IN}a.r(b);a.d(b,"ResyncFollowsWalker",function(){return d});a.d(b,"computeAllProdsFollows",function(){return F});a.d(b,"buildBetweenProdsFollowPrefix",function(){return B});a.d(b,"buildInProdFollowPrefix",function(){return D});var A;g=a(277);var x= 2716a(373),q=a(48),p=a(374),e=a(57),c=(A=function(h,k){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,n){f.__proto__=n}||function(f,n){for(var l in n)n.hasOwnProperty(l)&&(f[l]=n[l])})(h,k)},function(h,k){function f(){this.constructor=h}A(h,k);h.prototype=null===k?Object.create(k):(f.prototype=k.prototype,new f)}),d=function(h){function k(f){var n=h.call(this)||this;return n.topProd=f,n.follows={},n}return c(k,h),k.prototype.startWalking=function(){return this.walk(this.topProd), 2717this.follows},k.prototype.walkTerminal=function(f,n,l){},k.prototype.walkProdRef=function(f,n,l){f=B(f.referencedRule,f.idx)+this.topProd.name;n=n.concat(l);n=new e.Flat({definition:n});n=Object(x.first)(n);this.follows[f]=n},k}(g.RestWalker)},function(g,b,a){function F(l,r){void 0===r&&(r=!1);try{var m=Object(d.getRegExpAst)(l);return B(m.value,{},m.flags.ignoreCase)}catch(t){"Complement Sets are not supported for first char optimization"===t.message?r&&Object(c.PRINT_WARNING)(f+"\tUnable to optimize: \x3c "+ 2718l.toString()+" \x3e\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details."):(m="",r&&(m="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),Object(c.PRINT_ERROR)(f+"\n\tFailed parsing: \x3c "+l.toString()+" \x3e\n\tUsing the regexp-to-ast library version: "+ 2719e.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+m))}return[]}function B(l,r,m){switch(l.type){case "Disjunction":for(var t=0;t<l.value.length;t++)B(l.value[t],r,m);break;case "Alternative":l=l.value;for(t=0;t<l.length;t++){var u=l[t];switch(u.type){case "EndAnchor":case "GroupBackReference":case "Lookahead":case "NegativeLookahead":case "StartAnchor":case "WordBoundary":case "NonWordBoundary":continue}switch(u.type){case "Character":D(u.value,r,m);break;case "Set":if(!0=== 2720u.complement)throw Error("Complement Sets are not supported for first char optimization");Object(c.forEach)(u.value,function(v){if("number"==typeof v)D(v,r,m);else if(!0===m)for(var C=v.from;C<=v.to;C++)D(C,r,m);else{for(C=v.from;C<=v.to&&C<h.minOptimizationVal;C++)D(C,r,m);if(v.to>
2720=h.minOptimizationVal)for(C=v.to,v=Object(h.charCodeToOptimizedIndex)(v.from>=h.minOptimizationVal?v.from:h.minOptimizationVal),C=Object(h.charCodeToOptimizedIndex)(C);v<=C;v++)r[v]=v}});break;case "Group":B(u.value,r, 2721m);break;default:throw Error("Non Exhaustive Match");}var w=void 0!==u.quantifier&&0===u.quantifier.atLeast;if("Group"===u.type&&!1===x(u)||"Group"!==u.type&&!1===w)break}break;default:throw Error("non exhaustive match!");}return Object(c.values)(r)}function D(l,r,m){var t=Object(h.charCodeToOptimizedIndex)(l);r[t]=t;!0===m&&(l=String.fromCharCode(l),m=l.toUpperCase(),m!==l?(l=Object(h.charCodeToOptimizedIndex)(m.charCodeAt(0)),r[l]=l):(m=l.toLowerCase(),m!==l&&(l=Object(h.charCodeToOptimizedIndex)(m.charCodeAt(0)), 2722r[l]=l)))}function A(l,r){return Object(c.find)(l.value,function(m){return"number"==typeof m?Object(c.contains)(r,m):void 0!==Object(c.find)(r,function(t){return m.from<=t&&t<=m.to})})}function x(l){return!(!l.quantifier||0!==l.quantifier.atLeast)||!!l.value&&(Object(c.isArray)(l.value)?Object(c.every)(l.value,x):x(l.value))}function q(l,r){if(r instanceof RegExp){r=Object(d.getRegExpAst)(r);var m=new n(l);return m.visit(r),m.found}return void 0!==Object(c.find)(r,function(t){return Object(c.contains)(l, 2723t.charCodeAt(0))})}a.r(b);a.d(b,"failedOptimizationPrefixMsg",function(){return f});a.d(b,"getOptimizedStartCodesIndices",function(){return F});a.d(b,"firstCharOptimizedIndices",function(){return B});a.d(b,"canMatchCharCode",function(){return q});var p,e=a(278),c=a(48),d=a(279),h=a(372),k=(p=function(l,r){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,t){m.__proto__=t}||function(m,t){for(var u in t)t.hasOwnProperty(u)&&(m[u]=t[u])})(l,r)},function(l,r){function m(){this.constructor= 2724l}p(l,r);l.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}),f='Unable to use "first char" lexer optimizations:\n',n=function(l){function r(m){var t=l.call(this)||this;return t.targetCharCodes=m,t.found=!1,t}return k(r,l),r.prototype.visitChildren=function(m){if(!0!==this.found){switch(m.type){case "Lookahead":return void this.visitLookahead(m);case "NegativeLookahead":return void this.visitNegativeLookahead(m)}l.prototype.visitChildren.call(this,m)}},r.prototype.visitCharacter= 2725function(m){Object(c.contains)(this.targetCharCodes,m.value)&&(this.found=!0)},r.prototype.visitSet=function(m){m.complement?void 0===A(m,this.targetCharCodes)&&(this.found=!0):void 0!==A(m,this.targetCharCodes)&&(this.found=!0)},r}(e.BaseRegExpVisitor)},function(g,b,a){function F(p,e){p=new q(p,e);return p.resolveRefs(),p.errors}a.r(b);a.d(b,"resolveGrammar",function(){return F});a.d(b,"GastRefResolverVisitor",function(){return q});var B,D=a(81),A=a(48);g=a(142);var x=(B=function(p,e){return(B=Object.setPrototypeOf|| 2726{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var h in d)d.hasOwnProperty(h)&&(c[h]=d[h])})(p,e)},function(p,e){function c(){this.constructor=p}B(p,e);p.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}),q=function(p){function e(c,d){var h=p.call(this)||this;return h.nameToTopRule=c,h.errMsgProvider=d,h.errors=[],h}return x(e,p),e.prototype.resolveRefs=function(){var c=this;Object(A.forEach)(Object(A.values)(this.nameToTopRule),function(d){c.currTopLevel= 2727d;d.accept(c)})},e.prototype.visitNonTerminal=function(c){var d=this.nameToTopRule[c.nonTerminalName];d?c.referencedRule=d:(d=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,c),this.errors.push({message:d,type:D.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:c.nonTerminalName}))},e}(g.GAstVisitor)},function(g,b,a){a.r(b);a.d(b,"LooksAhead",function(){return q});var F=a(235),B=a(48),D=a(81),A=a(195),x=a(194),q=function(){function p(){} 2728return p.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=Object(B.has)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:D.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled;this.maxLookahead=Object(B.has)(e,"maxLookahead")?e.maxLookahead:D.DEFAULT_PARSER_CONFIG.maxLookahead;this.lookAheadFuncsCache=Object(B.isES2015MapSupported)()?new Map:[];
2728Object(B.isES2015MapSupported)()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache= 2729this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},p.prototype.preComputeLookaheadFunctions=function(e){var c=this;Object(B.forEach)(e,function(d){c.TRACE_INIT(d.name+" Rule Lookahead",function(){var h=Object(x.collectMethods)(d),k=h.repetition,f=h.option,n=h.repetitionMandatory,l=h.repetitionMandatoryWithSeparator,r=h.repetitionWithSeparator;Object(B.forEach)(h.alternation,function(m){var t=0===m.idx?"":m.idx;c.TRACE_INIT(""+Object(x.getProductionDslName)(m)+t,function(){var u=Object(F.buildLookaheadFuncForOr)(m.idx, 2730d,m.maxLookahead||c.maxLookahead,m.hasPredicates,c.dynamicTokensEnabled,c.lookAheadBuilderForAlternatives),w=Object(A.getKeyForAutomaticLookahead)(c.fullRuleNameToShort[d.name],A.OR_IDX,m.idx);c.setLaFuncCache(w,u)})});Object(B.forEach)(k,function(m){c.computeLookaheadFunc(d,m.idx,A.MANY_IDX,F.PROD_TYPE.REPETITION,m.maxLookahead,Object(x.getProductionDslName)(m))});Object(B.forEach)(f,function(m){c.computeLookaheadFunc(d,m.idx,A.OPTION_IDX,F.PROD_TYPE.OPTION,m.maxLookahead,Object(x.getProductionDslName)(m))}); 2731Object(B.forEach)(n,function(m){c.computeLookaheadFunc(d,m.idx,A.AT_LEAST_ONE_IDX,F.PROD_TYPE.REPETITION_MANDATORY,m.maxLookahead,Object(x.getProductionDslName)(m))});Object(B.forEach)(l,function(m){c.computeLookaheadFunc(d,m.idx,A.AT_LEAST_ONE_SEP_IDX,F.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Object(x.getProductionDslName)(m))});Object(B.forEach)(r,function(m){c.computeLookaheadFunc(d,m.idx,A.MANY_SEP_IDX,F.PROD_TYPE.REPETITION_WITH_SEPARATOR,m.maxLookahead,Object(x.getProductionDslName)(m))})})})}, 2732p.prototype.computeLookaheadFunc=function(e,c,d,h,k,f){var n=this;this.TRACE_INIT(""+f+(0===c?"":c),function(){var l=Object(F.buildLookaheadFuncForOptionalProd)(c,e,k||n.maxLookahead,n.dynamicTokensEnabled,h,n.lookAheadBuilderForOptional),r=Object(A.getKeyForAutomaticLookahead)(n.fullRuleNameToShort[e.name],d,c);n.setLaFuncCache(r,l)})},p.prototype.lookAheadBuilderForOptional=function(e,c,d){return Object(F.buildSingleAlternativeLookaheadFunction)(e,c,d)},p.prototype.lookAheadBuilderForAlternatives= 2733function(e,c,d,h){return Object(F.buildAlternativesLookAheadFunc)(e,c,d,h)},p.prototype.getKeyForAutomaticLookahead=function(e,c){var d=this.getLastExplicitRuleShortName();return Object(A.getKeyForAutomaticLookahead)(d,e,c)},p.prototype.getLaFuncFromCache=function(e){},p.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},p.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},p.prototype.setLaFuncCache=function(e,c){},p.prototype.setLaFuncCacheUsingMap= 2734function(e,c){this.lookAheadFuncsCache.set(e,c)},p.prototype.setLaFuncUsingObj=function(e,c){this.lookAheadFuncsCache[e]=c},p}()},function(g,b,a){a.r(b);a.d(b,"TreeBuilder",function(){return q});var F=a(281),B=a(48),D=a(703),A=a(195),x=a(81),q=function(){function p(){}return p.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=Object(B.has)(e,"outputCst")?e.outputCst:x.DEFAULT_PARSER_CONFIG.outputCst,this.nodeLocationTracking=Object(B.has)(e, 2735"nodeLocationTracking")?e.nodeLocationTracking:x.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=F.setNodeLocationFull,this.setNodeLocationFromNode=F.setNodeLocationFull,this.cstPostRule=B.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=B.NOOP,this.setNodeLocationFromNode=B.NOOP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation= 2736this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=F.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=F.setNodeLocationOnlyOffset,this.cstPostRule=B.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=B.NOOP,this.setNodeLocationFromNode=B.NOOP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular); 2737else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid \x3cnodeLocationTracking\x3e config option: "'+e.nodeLocationTracking+'"');this.setInitialNodeLocation=this.cstPostRule=this.setNodeLocationFromNode=this.setNodeLocationFromToken=B.NOOP}else this.cstPostRule=this.cstPostNonTerminal=this.cstPostTerminal=this.cstFinallyStateUpdate=this.cstInvocationStateUpdate=B.NOOP,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst, 2738this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},p.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},p.prototype.setInitialNodeLocationOnlyOffsetRegular= 2739function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},p.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},p.prototype.setInitialNodeLocationFullRegular=function(e){var c=this.LA(1);e.location={startOffset:c.startOffset,startLine:c.startLine,startColumn:c.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},p.prototype.cstNestedInvocationStateUpdate=function(e,c){e={name:e, 2740fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(e);this.CST_STACK.push(e)},p.prototype.cstInvocationStateUpdate=function(e,c){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);e={name:e,children:{}};this.setInitialNodeLocation(e);this.CST_STACK.push(e)},p.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop();this.CST_STACK.pop()},p.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop(); 2741this.cstPostRule(e)},p.prototype.cstPostRuleFull=function(e){var c=this.LA(0);e=e.location;1==e.startOffset<=c.startOffset?(e.endOffset=c.endOffset,e.endLine=c.endLine,e.endColumn=c.endColumn):(e.startOffset=NaN,e.startLine=NaN,e.startColumn=NaN)},p.prototype.cstPostRuleOnlyOffset=function(e){var c=this.LA(0);e=e.location;1==e.startOffset<=c.startOffset?e.endOffset=c.endOffset:e.startOffset=NaN},p.prototype.cstPostTerminal=function(e,c){var d=this.CST_STACK[this.CST_STACK.length-1];Object(F.addTerminalToCst)(d, 2742c,e);this.setNodeLocationFromToken(d.location,c)}
2742,p.prototype.cstPostNonTerminal=function(e,c){if(!0!==this.isBackTracking()){var d=this.CST_STACK[this.CST_STACK.length-1];Object(F.addNoneTerminalToCst)(d,c,e);this.setNodeLocationFromNode(d.location,e.location)}},p.prototype.getBaseCstVisitorConstructor=function(){if(Object(B.isUndefined)(this.baseCstVisitorConstructor)){var e=Object(D.createBaseSemanticVisitorConstructor)(this.className,this.allRuleNames);return this.baseCstVisitorConstructor=e, 2743e}return this.baseCstVisitorConstructor},p.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Object(B.isUndefined)(this.baseCstVisitorWithDefaultsConstructor)){var e=Object(D.createBaseVisitorConstructorWithDefaults)(this.className,this.allRuleNames,this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor},p.prototype.nestedRuleBeforeClause=function(e,c){var d;return void 0!==e.NAME?(d=e.NAME,this.nestedRuleInvocationStateUpdate(d, 2744c),d):void 0},p.prototype.nestedAltBeforeClause=function(e,c,d,h){var k,f=this.getLastExplicitRuleShortName();c=Object(A.getKeyForAltIndex)(f,d,c,h);return void 0!==e.NAME?(k=e.NAME,this.nestedRuleInvocationStateUpdate(k,c),{shortName:c,nestedName:k}):void 0},p.prototype.nestedRuleFinallyClause=function(e,c){var d=this.CST_STACK;e=d[d.length-1];this.nestedRuleFinallyStateUpdate();d=d[d.length-1];Object(F.addNoneTerminalToCst)(d,c,e);this.setNodeLocationFromNode(d.location,e.location)},p.prototype.getLastExplicitRuleShortName= 2745function(){return this.RULE_STACK[this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1]]},p.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},p.prototype.getPreviousExplicitRuleShortName=function(){return this.RULE_STACK[this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2]]},p.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},p.prototype.getLastExplicitRuleOccurrenceIndex= 2746function(){return this.RULE_OCCURRENCE_STACK[this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1]]},p.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},p.prototype.nestedRuleInvocationStateUpdate=function(e,c){this.RULE_OCCURRENCE_STACK.push(1);this.RULE_STACK.push(c);this.cstNestedInvocationStateUpdate(e,c)},p.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop();this.RULE_OCCURRENCE_STACK.pop(); 2747this.cstNestedFinallyStateUpdate()},p}()},function(g,b,a){function F(k,f){for(var n=Object(e.keys)(k),l=n.length,r=0;r<l;r++)for(var m=k[n[r]],t=m.length,u=0;u<t;u++){var w=m[u];void 0===w.tokenTypeIdx&&(void 0!==w.fullName?this[w.fullName](w.children,f):this[w.name](w.children,f))}}function B(k,f){var n=function(){};return Object(c.defineNameProp)(n,k+"BaseSemantics"),(n.prototype={visit:function(l,r){if(Object(e.isArray)(l)&&(l=l[0]),!Object(e.isUndefined)(l))return void 0!==l.fullName?this[l.fullName](l.children, 2748r):this[l.name](l.children,r)},validateVisitor:function(){var l=A(this,f);if(!Object(e.isEmpty)(l))throw l=Object(e.map)(l,function(r){return r.msg}),Error("Errors Detected in CST Visitor \x3c"+Object(c.functionName)(this.constructor)+"\x3e:\n\t"+l.join("\n\n").replace(/\n/g,"\n\t"));}}).constructor=n,n._RULE_NAMES=f,n}function D(k,f,n){var l=function(){};Object(c.defineNameProp)(l,k+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return Object(e.forEach)(f,function(m){r[m]=F}),(l.prototype= 2749r).constructor=l,l}function A(k,f){var n=x(k,f);k=q(k,f);return n.concat(k)}function x(k,f){f=Object(e.map)(f,function(n){if(!Object(e.isFunction)(k[n]))return{msg:"Missing visitor method: \x3c"+n+"\x3e on "+Object(c.functionName)(k.constructor)+" CST Visitor.",type:p.MISSING_METHOD,methodName:n}});return Object(e.compact)(f)}function q(k,f){var n=[],l;for(l in k)d.validTermsPattern.test(l)&&Object(e.isFunction)(k[l])&&!Object(e.contains)(h,l)&&!Object(e.contains)(f,l)&&n.push({msg:"Redundant visitor method: \x3c"+
2750l+"\x3e on "+Object(c.functionName)(k.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+d.validTermsPattern.source+"/.",type:p.REDUNDANT_METHOD,methodName:l});return n}a.r(b);a.d(b,"defaultVisit",function(){return F});a.d(b,"createBaseSemanticVisitorConstructor",function(){return B});a.d(b,"createBaseVisitorConstructorWithDefaults",function(){return D});a.d(b,"CstVisitorDefinitionError", 2751function(){return p});a.d(b,"validateVisitor",function(){return A});a.d(b,"validateMissingCstMethods",function(){return x});a.d(b,"validateRedundantMethods",function(){return q});var p,e=a(48),c=a(376),d=a(234);!function(k){k[k.REDUNDANT_METHOD=0]="REDUNDANT_METHOD";k[k.MISSING_METHOD=1]="MISSING_METHOD"}(p||(p={}));var h=["constructor","visit","validateVisitor"]},function(g,b,a){a.r(b);a.d(b,"LexerAdapter",function(){return B});var F=a(81),B=function(){function D(){}return D.prototype.initLexerAdapter= 2752function(){this.tokVector=[];this.tokVectorLength=0;this.currIdx=-1},Object.defineProperty(D.prototype,"input",{get:function(){return this.tokVector},set:function(A){if(!0!==this.selfAnalysisDone)throw Error("Missing \x3cperformSelfAnalysis\x3e invocation at the end of the Parser's constructor.");this.reset();this.tokVector=A;this.tokVectorLength=A.length},enumerable:!0,configurable:!0}),D.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)): 2753F.END_OF_FILE},D.prototype.LA=function(A){A=this.currIdx+A;return 0>A||this.tokVectorLength<=A?F.END_OF_FILE:this.tokVector[A]},D.prototype.consumeToken=function(){this.currIdx++},D.prototype.exportLexerState=function(){return this.currIdx},D.prototype.importLexerState=function(A){this.currIdx=A},D.prototype.resetLexerState=function(){this.currIdx=-1},D.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},D.prototype.getLexerPosition=function(){return this.exportLexerState()}, 2754D}()},function(g,b,a){a.r(b);a.d(b,"RecognizerApi",function(){return p});var F=a(48),B=a(117),D=a(81),A=a(143),x=a(234),q=a(57),p=function(){function e(){}return e.prototype.ACTION=function(c){return c.call(this)},e.prototype.consume=function(c,d,h){return this.consumeInternal(d,c,h)},e.prototype.subrule=function(c,d,h){return this.subruleInternal(d,c,h)},e.prototype.option=function(c,d){return this.optionInternal(d,c)},e.prototype.or=function(c,d){return this.orInternal(d,c)},e.prototype.many=function(c, 2755d){return this.manyInternal(c,d)},e.prototype.atLeastOne=function(c,d){return this.atLeastOneInternal(c,d)},e.prototype.CONSUME=function(c,d){return this.consumeInternal(c,0,d)},e.prototype.CONSUME1=function(c,d){return this.consumeInternal(c,1,d)},e.prototype.CONSUME2=function(c,d){return this.consumeInternal(c,2,d)},e.prototype.CONSUME3=function(c,d){return this.consumeInternal(c,3,d)},e.prototype.CONSUME4=function(c,d){return this.consumeInternal(c,4,d)},e.prototype.CONSUME5=function(c,d){return this.consumeInternal(c, 27565,d)},e.prototype.CONSUME6=function(c,d){return this.consumeInternal(c,6,d)},e.prototype.CONSUME7=function(c,d){return this.consumeInternal(c,7,d)},e.prototype.CONSUME8=function(c,d){return this.consumeInternal(c,8,d)},e.prototype.CONSUME9=function(c,d){return this.consumeInternal(c,9,d)},e.prototype.SUBRULE=function(c,d){return this.subruleInternal(c,0,d)},e.prototype.SUBRULE1=function(c,d){return this.subruleInternal(c,1,d)},e.prototype.SUBRULE2=function(c,d){return this.subruleInternal(c,2,d)}, 2757e.prototype.SUBRULE3=function(c,d){return this.subruleInternal(c,3,d)},e.prototype.SUBRULE4=function(c,d){return this.subruleInternal(c,4,d)},e.prototype.SUBRULE5=function(c,d){return this.subruleInternal(c,5,d)},e.prototype.SUBRULE6=function(c,d){return this.subruleInternal(c,6,d)},e.prototype.SUBRULE7=function(c,d){return this.subruleInternal(c,7,d)},e.prototype.SUBRULE8=function(c,d){return this.subruleInternal(c,8,d)},e.prototype.SUBRULE9=function(c,d){return this.subruleInternal(c,9,d)},e.prototype.OPTION= 2758function(c){return this.optionInternal(c,0)},e.prototype.OPTION1=function(c){return this.optionInternal(c,1)},e.prototype.OPTION2=function(c){return this.optionInternal(c,2)},e.prototype.OPTION3=function(c){return this.optionInternal(c,3)},e.prototype.OPTION4=function(c){return this.optionInternal(c,4)},e.prototype.OPTION5=function(c){return this.optionInternal(c,5)},e.prototype.OPTION6=function(c){return this.optionInternal(c,6)},e.prototype.OPTION7=function(c){return this.optionInternal(c,7)},e.prototype.OPTION8= 2759function(c){return this.optionInternal(c,8)},e.prototype.OPTION9=function(c){return this.optionInternal(c,9)},e.prototype.OR=function(c){return this.orInternal(c,0)},e.prototype.OR1=function(c){return this.orInternal(c,1)},e.prototype.OR2=function(c){return this.orInternal(c,2)},e.prototype.OR3=function(c){return this.orInternal(c,3)},e.prototype.OR4=function(c){return this.orInternal(c,4)},e.prototype.OR5=function(c){return this.orInternal(c,5)},e.prototype.OR6=function(c){return this.orInternal(c, 27606)},e.prototype.OR7=function(c){return this.orInternal(c,7)},e.prototype.OR8=function(c){return this.orInternal(c,8)},e.prototype.OR9=function(c){return this.orInternal(c,9)},e.prototype.MANY=function(c){this.manyInternal(0,c)},e.prototype.MANY1=function(c){this.manyInternal(1,c)},e.prototype.MANY2=function(c){this.manyInternal(2,c)},e.prototype.MANY3=function(c){this.manyInternal(3,c)},e.prototype.MANY4=function(c){this.manyInternal(4,c)}
2760,e.prototype.MANY5=function(c){this.manyInternal(5,c)},e.prototype.MANY6= 2761function(c){this.manyInternal(6,c)},e.prototype.MANY7=function(c){this.manyInternal(7,c)},e.prototype.MANY8=function(c){this.manyInternal(8,c)},e.prototype.MANY9=function(c){this.manyInternal(9,c)},e.prototype.MANY_SEP=function(c){this.manySepFirstInternal(0,c)},e.prototype.MANY_SEP1=function(c){this.manySepFirstInternal(1,c)},e.prototype.MANY_SEP2=function(c){this.manySepFirstInternal(2,c)},e.prototype.MANY_SEP3=function(c){this.manySepFirstInternal(3,c)},e.prototype.MANY_SEP4=function(c){this.manySepFirstInternal(4, 2762c)},e.prototype.MANY_SEP5=function(c){this.manySepFirstInternal(5,c)},e.prototype.MANY_SEP6=function(c){this.manySepFirstInternal(6,c)},e.prototype.MANY_SEP7=function(c){this.manySepFirstInternal(7,c)},e.prototype.MANY_SEP8=function(c){this.manySepFirstInternal(8,c)},e.prototype.MANY_SEP9=function(c){this.manySepFirstInternal(9,c)},e.prototype.AT_LEAST_ONE=function(c){this.atLeastOneInternal(0,c)},e.prototype.AT_LEAST_ONE1=function(c){return this.atLeastOneInternal(1,c)},e.prototype.AT_LEAST_ONE2= 2763function(c){this.atLeastOneInternal(2,c)},e.prototype.AT_LEAST_ONE3=function(c){this.atLeastOneInternal(3,c)},e.prototype.AT_LEAST_ONE4=function(c){this.atLeastOneInternal(4,c)},e.prototype.AT_LEAST_ONE5=function(c){this.atLeastOneInternal(5,c)},e.prototype.AT_LEAST_ONE6=function(c){this.atLeastOneInternal(6,c)},e.prototype.AT_LEAST_ONE7=function(c){this.atLeastOneInternal(7,c)},e.prototype.AT_LEAST_ONE8=function(c){this.atLeastOneInternal(8,c)},e.prototype.AT_LEAST_ONE9=function(c){this.atLeastOneInternal(9, 2764c)},e.prototype.AT_LEAST_ONE_SEP=function(c){this.atLeastOneSepFirstInternal(0,c)},e.prototype.AT_LEAST_ONE_SEP1=function(c){this.atLeastOneSepFirstInternal(1,c)},e.prototype.AT_LEAST_ONE_SEP2=function(c){this.atLeastOneSepFirstInternal(2,c)},e.prototype.AT_LEAST_ONE_SEP3=function(c){this.atLeastOneSepFirstInternal(3,c)},e.prototype.AT_LEAST_ONE_SEP4=function(c){this.atLeastOneSepFirstInternal(4,c)},e.prototype.AT_LEAST_ONE_SEP5=function(c){this.atLeastOneSepFirstInternal(5,c)},e.prototype.AT_LEAST_ONE_SEP6= 2765function(c){this.atLeastOneSepFirstInternal(6,c)},e.prototype.AT_LEAST_ONE_SEP7=function(c){this.atLeastOneSepFirstInternal(7,c)},e.prototype.AT_LEAST_ONE_SEP8=function(c){this.atLeastOneSepFirstInternal(8,c)},e.prototype.AT_LEAST_ONE_SEP9=function(c){this.atLeastOneSepFirstInternal(9,c)},e.prototype.RULE=function(c,d,h){if(void 0===h&&(h=D.DEFAULT_RULE_CONFIG),Object(F.contains)(this.definedRulesNames,c)){var k={message:A.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:c, 2766grammarName:this.className}),type:D.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:c};this.definitionErrors.push(k)}this.definedRulesNames.push(c);d=this.defineRule(c,d,h);return this[c]=d,d},e.prototype.OVERRIDE_RULE=function(c,d,h){void 0===h&&(h=D.DEFAULT_RULE_CONFIG);var k=[];
2766k=k.concat(Object(x.validateRuleIsOverridden)(c,this.definedRulesNames,this.className));this.definitionErrors.push.apply(this.definitionErrors,k);d=this.defineRule(c,d,h);return this[c]=d,d},e.prototype.BACKTRACK= 2767function(c,d){return function(){this.isBackTrackingStack.push(1);var h=this.saveRecogState();try{return c.apply(this,d),!0}catch(k){if(Object(B.isRecognitionException)(k))return!1;throw k;}finally{this.reloadRecogState(h),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Object(q.serializeGrammar)(Object(F.values)(this.gastProductionsCache))},e}()},function(g,b,a){a.r(b);a.d(b,"RecognizerEngine", 2768function(){return h});var F=a(48),B=a(195),D=a(117),A=a(235),x=a(236),q=a(81),p=a(375),e=a(102),c=a(193),d=a(376),h=function(){function k(){}return k.prototype.initRecognizerEngine=function(f,n){if(this.className=Object(d.classNameFromInstance)(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=c.tokenStructuredMatcherNoCategories,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK= 2769[],this.gastProductionsCache={},Object(F.has)(n,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a \x3cserializedGrammar\x3e property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(Object(F.isArray)(f)){if(Object(F.isEmpty)(f))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof f[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details."); 2770}if(Object(F.isArray)(f))this.tokensMap=Object(F.reduce)(f,function(l,r){return l[r.name]=r,l},{});else if(Object(F.has)(f,"modes")&&Object(F.every)(Object(F.flatten)(Object(F.values)(f.modes)),c.isTokenType))n=Object(F.flatten)(Object(F.values)(f.modes)),n=Object(F.uniq)(n),this.tokensMap=Object(F.reduce)(n,function(l,r){return l[r.name]=r,l},{});else{if(!Object(F.isObject)(f))throw Error("\x3ctokensDictionary\x3e argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition"); 2771this.tokensMap=Object(F.cloneObj)(f)}this.tokensMap.EOF=e.EOF;this.tokenMatcher=Object(F.every)(Object(F.values)(f),function(l){return Object(F.isEmpty)(l.categoryMatches)})?c.tokenStructuredMatcherNoCategories:c.tokenStructuredMatcher;Object(c.augmentTokenTypes)(Object(F.values)(this.tokensMap))},k.prototype.defineRule=function(f,n,l){if(this.selfAnalysisDone)throw Error("Grammar rule \x3c"+f+"\x3e may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called."); 2772var r,m=Object(F.has)(l,"resyncEnabled")?l.resyncEnabled:q.DEFAULT_RULE_CONFIG.resyncEnabled,t=Object(F.has)(l,"recoveryValueFunc")?l.recoveryValueFunc:q.DEFAULT_RULE_CONFIG.recoveryValueFunc,u=this.ruleShortNameIdx<<B.BITS_FOR_METHOD_TYPE+B.BITS_FOR_OCCURRENCE_IDX;this.ruleShortNameIdx++;this.shortRuleNameToFull[u]=f;this.fullRuleNameToShort[f]=u;return(r=function(w,v){void 0===w&&(w=0);this.ruleInvocationStateUpdate(u,f,w);a:{try{if(!0===this.outputCst){n.apply(this,v);var C=this.CST_STACK[this.CST_STACK.length- 27731];var y=(this.cstPostRule(C),C);break a}y=n.apply(this,v);break a}catch(z){y=this.invokeRuleCatch(z,m,t);break a}finally{this.ruleFinallyStateUpdate()}y=void 0}return y}).ruleName=f,r.originalGrammarAction=n,r},k.prototype.invokeRuleCatch=function(f,n,l){var r=1===this.RULE_STACK.length;n=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Object(D.isRecognitionException)(f)){if(n){var m;r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r))return f.resyncedTokens=this.reSyncTo(r),this.outputCst? 2774((m=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,m):l();throw this.outputCst&&((m=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,f.partialCstResult=m),f;}if(r)return this.moveToTerminatedState(),l()}throw f;},k.prototype.optionInternal=function(f,n){var l=this.getKeyForAutomaticLookahead(B.OPTION_IDX,n),r=this.nestedRuleBeforeClause(f,l);try{return this.optionInternalLogic(f,n,l)}finally{void 0!==r&&this.nestedRuleFinallyClause(l,r)}},k.prototype.optionInternalNoCst=function(f, 2775n){var l=this.getKeyForAutomaticLookahead(B.OPTION_IDX,n);return this.optionInternalLogic(f,n,l)},k.prototype.optionInternalLogic=function(f,n,l){var r,m=this;
vendor: 4,312 bytes, lines 2775-2783
2775l=this.getLaFuncFromCache(l);if(void 0!==f.DEF){if(n=f.DEF,void 0!==(r=f.GATE)){var t=l;l=function(){return r.call(m)&&t.call(m)}}}else n=f;if(!0===l.call(this))return n.call(this)},k.prototype.atLeastOneInternal=function(f,n){var l=this.getKeyForAutomaticLookahead(B.AT_LEAST_ONE_IDX,f),r=this.nestedRuleBeforeClause(n,l);try{return this.atLeastOneInternalLogic(f, 2776n,l)}finally{void 0!==r&&this.nestedRuleFinallyClause(l,r)}},k.prototype.atLeastOneInternalNoCst=function(f,n){var l=this.getKeyForAutomaticLookahead(B.AT_LEAST_ONE_IDX,f);this.atLeastOneInternalLogic(f,n,l)},k.prototype.atLeastOneInternalLogic=function(f,n,l){var r,m=this,t=this.getLaFuncFromCache(l);if(void 0!==n.DEF){if(l=n.DEF,void 0!==(r=n.GATE)){var u=t;t=function(){return r.call(m)&&u.call(m)}}}else l=n;if(!0!==t.call(this))throw this.raiseEarlyExitException(f,A.PROD_TYPE.REPETITION_MANDATORY, 2777n.ERR_MSG);for(var w=this.doSingleRepetition(l);!0===t.call(this)&&!0===w;)w=this.doSingleRepetition(l);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[f,n],t,B.AT_LEAST_ONE_IDX,f,x.NextTerminalAfterAtLeastOneWalker)},k.prototype.atLeastOneSepFirstInternal=function(f,n){var l=this.getKeyForAutomaticLookahead(B.AT_LEAST_ONE_SEP_IDX,f),r=this.nestedRuleBeforeClause(n,l);try{this.atLeastOneSepFirstInternalLogic(f,n,l)}finally{void 0!==r&&this.nestedRuleFinallyClause(l,r)}},k.prototype.atLeastOneSepFirstInternalNoCst= 2778function(f,n){var l=this.getKeyForAutomaticLookahead(B.AT_LEAST_ONE_SEP_IDX,f);this.atLeastOneSepFirstInternalLogic(f,n,l)},k.prototype.atLeastOneSepFirstInternalLogic=function(f,n,l){var r=this,m=n.DEF,t=n.SEP;if(!0!==this.getLaFuncFromCache(l).call(this))throw this.raiseEarlyExitException(f,A.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG);m.call(this);for(n=function(){return r.tokenMatcher(r.LA(1),t)};!0===this.tokenMatcher(this.LA(1),t);)this.CONSUME(t),m.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, 2779[f,t,n,m,x.NextTerminalAfterAtLeastOneSepWalker],n,B.AT_LEAST_ONE_SEP_IDX,f,x.NextTerminalAfterAtLeastOneSepWalker)},k.prototype.manyInternal=function(f,n){var l=this.getKeyForAutomaticLookahead(B.MANY_IDX,f),r=this.nestedRuleBeforeClause(n,l);try{return this.manyInternalLogic(f,n,l)}finally{void 0!==r&&this.nestedRuleFinallyClause(l,r)}},k.prototype.manyInternalNoCst=function(f,n){var l=this.getKeyForAutomaticLookahead(B.MANY_IDX,f);return this.manyInternalLogic(f,n,l)},k.prototype.manyInternalLogic= 2780function(f,n,l){var r,m=this,t=this.getLaFuncFromCache(l);if(void 0!==n.DEF){if(l=n.DEF,void 0!==(r=n.GATE)){var u=t;t=function(){return r.call(m)&&u.call(m)}}}else l=n;for(var w=!0;!0===t.call(this)&&!0===w;)w=this.doSingleRepetition(l);this.attemptInRepetitionRecovery(this.manyInternal,[f,n],t,B.MANY_IDX,f,x.NextTerminalAfterManyWalker,w)},k.prototype.manySepFirstInternal=function(f,n){var l=this.getKeyForAutomaticLookahead(B.MANY_SEP_IDX,f),r=this.nestedRuleBeforeClause(n,l);try{this.manySepFirstInternalLogic(f, 2781n,l)}finally{void 0!==r&&this.nestedRuleFinallyClause(l,r)}},k.prototype.manySepFirstInternalNoCst=function(f,n){var l=this.getKeyForAutomaticLookahead(B.MANY_SEP_IDX,f);this.manySepFirstInternalLogic(f,n,l)},k.prototype.manySepFirstInternalLogic=function(f,n,l){var r=this,m=n.DEF,t=n.SEP;if(!0===this.getLaFuncFromCache(l).call(this)){m.call(this);for(n=function(){return r.tokenMatcher(r.LA(1),t)};!0===this.tokenMatcher(this.LA(1),t);)this.CONSUME(t),m.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, 2782[f,t,n,m,x.NextTerminalAfterManySepWalker],n,B.MANY_SEP_IDX,f,x.NextTerminalAfterManySepWalker)}},k.prototype.repetitionSepSecondInternal=function(f,n,l,r,m){for(;l();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[f,n,l,r,m],l,B.AT_LEAST_ONE_SEP_IDX,f,m)},k.prototype.doSingleRepetition=function(f){var n=this.getLexerPosition();return f.call(this),this.getLexerPosition()>n},k.prototype.orInternalNoCst=function(f,n){var l=Object(F.isArray)(f)?f:f.DEF, 2783r=this.getKeyForAutomaticLookahead(B.OR_IDX,n);r=this.getLaFuncFromCache(r).call(this,l);if(void 0!==r)return l[r].ALT.call(this);this.raiseNoAltException(n,f.ERR_MSG)},k.prototype.orInternal=function(f,n){var l=this.getKeyForAutomaticLookahead(B.OR_IDX,n),r=this.nestedRuleBeforeClause(f,l);
2783try{var m=Object(F.isArray)(f)?f:f.DEF,t=this.getLaFuncFromCache(l).call(this,m);if(void 0!==t){var u=m[t],w=this.nestedAltBeforeClause(u,n,B.OR_IDX,t);try{return u.ALT.call(this)}finally{void 0!==w&&this.nestedRuleFinallyClause(w.shortName, 2784w.nestedName)}}this.raiseNoAltException(n,f.ERR_MSG)}finally{void 0!==r&&this.nestedRuleFinallyClause(l,r)}},k.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var f=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:f,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new D.NotAllInputParsedException(n,f))}},k.prototype.subruleInternal= 2785function(f,n,l){var r;try{return r=f.call(this,n,void 0!==l?l.ARGS:void 0),this.cstPostNonTerminal(r,void 0!==l&&void 0!==l.LABEL?l.LABEL:f.ruleName),r}catch(m){this.subruleInternalError(m,l,f.ruleName)}},k.prototype.subruleInternalError=function(f,n,l){throw Object(D.isRecognitionException)(f)&&void 0!==f.partialCstResult&&(this.cstPostNonTerminal(f.partialCstResult,void 0!==n&&void 0!==n.LABEL?n.LABEL:l),delete f.partialCstResult),f;},k.prototype.consumeInternal=function(f,n,l){var r;try{var m= 2786this.LA(1);!0===this.tokenMatcher(m,f)?(this.consumeToken(),r=m):this.consumeInternalError(f,m,l)}catch(t){r=this.consumeInternalRecovery(f,n,t)}return this.cstPostTerminal(void 0!==l&&void 0!==l.LABEL?l.LABEL:f.name,r),r},k.prototype.consumeInternalError=function(f,n,l){var r,m=this.LA(0);throw r=void 0!==l&&l.ERR_MSG?l.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:f,actual:n,previous:m,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new D.MismatchedTokenException(r, 2787n,m));},k.prototype.consumeInternalRecovery=function(f,n,l){if(!this.recoveryEnabled||"MismatchedTokenException"!==l.name||this.isBackTracking())throw l;n=this.getFollowsForInRuleRecovery(f,n);try{return this.tryInRuleRecovery(f,n)}catch(r){throw r.name===p.IN_RULE_RECOVERY_EXCEPTION?l:r;}},k.prototype.saveRecogState=function(){var f=this.errors,n=Object(F.cloneArr)(this.RULE_STACK);return{errors:f,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}}, 2788k.prototype.reloadRecogState=function(f){this.errors=f.errors;this.importLexerState(f.lexerState);this.RULE_STACK=f.RULE_STACK},k.prototype.ruleInvocationStateUpdate=function(f,n,l){this.RULE_OCCURRENCE_STACK.push(l);this.RULE_STACK.push(f);this.cstInvocationStateUpdate(n,f)},k.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},k.prototype.getCurrRuleFullName=function(){var f=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[f]},k.prototype.shortRuleNameToFullName= 2789function(f){return this.shortRuleNameToFull[f]},k.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),e.EOF)},k.prototype.reset=function(){this.resetLexerState();this.isBackTrackingStack=[];this.errors=[];this.RULE_STACK=[];this.LAST_EXPLICIT_RULE_STACK=[];this.CST_STACK=[];this.RULE_OCCURRENCE_STACK=[]},k}()},function(g,b,a){a.r(b);a.d(b,"ErrorHandler",function(){return x});var F=a(117),B=a(48),D=a(235),A=a(81),x=function(){function q(){}return q.prototype.initErrorHandler=function(p){this._errors= 2790[];this.errorMessageProvider=Object(B.defaults)(p.errorMessageProvider,A.DEFAULT_PARSER_CONFIG.errorMessageProvider)},q.prototype.SAVE_ERROR=function(p){if(Object(F.isRecognitionException)(p))return p.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Object(B.cloneArr)(this.RULE_OCCURRENCE_STACK)},this._errors.push(p),p;throw Error("Trying to save an Error which is not a RecognitionException");},Object.defineProperty(q.prototype,"errors",{get:function(){return Object(B.cloneArr)(this._errors)}, 2791set:function(p){this._errors=p},enumerable:!0,configurable:!0}),q.prototype.raiseEarlyExitException=function(p,e,c){var d=this.getCurrRuleFullName(),h=this.getGAstProductions()[d];p=Object(D.getLookaheadPathsForOptionalProd)(p,h,e,this.maxLookahead)[0];e=[];for(h=1;h<=this.maxLookahead;
2791h++)e.push(this.LA(h));c=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:p,actual:e,previous:this.LA(0),customUserDescription:c,ruleName:d});throw this.SAVE_ERROR(new F.EarlyExitException(c, 2792this.LA(1),this.LA(0)));},q.prototype.raiseNoAltException=function(p,e){var c=this.getCurrRuleFullName();c=this.getGAstProductions()[c];p=Object(D.getLookaheadPathsForOr)(p,c,this.maxLookahead);c=[];for(var d=1;d<=this.maxLookahead;d++)c.push(this.LA(d));d=this.LA(0);e=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:p,actual:c,previous:d,customUserDescription:e,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new F.NoViableAltException(e,this.LA(1),d));},q}()},function(g, 2793b,a){a.r(b);a.d(b,"ContentAssist",function(){return D});var F=a(236),B=a(48),D=function(){function A(){}return A.prototype.initContentAssist=function(){},A.prototype.computeContentAssist=function(x,q){var p=this.gastProductionsCache[x];if(Object(B.isUndefined)(p))throw Error("Rule -\x3e"+x+"\x3c- does not exist in this grammar.");return Object(F.nextPossibleTokensAfter)([p],q,this.tokenMatcher,this.maxLookahead)},A.prototype.getNextPossibleTokenTypes=function(x){var q=Object(B.first)(x.ruleStack); 2794q=this.getGAstProductions()[q];return(new F.NextAfterTokenWalker(q,x)).startWalking()},A}()},function(g,b,a){function F(f,n,l,r){void 0===r&&(r=!1);D(l);var m=Object(A.peek)(this.recordingProdStack),t=Object(A.isFunction)(n)?n:n.DEF;f=new f({definition:[],idx:l});return Object(A.has)(n,"NAME")&&(f.name=n.NAME),r&&(f.separator=n.SEP),Object(A.has)(n,"MAX_LOOKAHEAD")&&(f.maxLookahead=n.MAX_LOOKAHEAD),this.recordingProdStack.push(f),t.call(this),m.definition.push(f),this.recordingProdStack.pop(),e}function B(f, 2795n){var l=this;D(n);var r=Object(A.peek)(this.recordingProdStack),m=!1===Object(A.isArray)(f),t=!1===m?f:f.DEF,u=new x.Alternation({definition:[],idx:n,ignoreAmbiguities:m&&!0===f.IGNORE_AMBIGUITIES});Object(A.has)(f,"NAME")&&(u.name=f.NAME);Object(A.has)(f,"MAX_LOOKAHEAD")&&(u.maxLookahead=f.MAX_LOOKAHEAD);f=Object(A.some)(t,function(w){return Object(A.isFunction)(w.GATE)});return u.hasPredicates=f,r.definition.push(u),Object(A.forEach)(t,function(w){var v=new x.Flat({definition:[]});u.definition.push(v); 2796Object(A.has)(w,"NAME")&&(v.name=w.NAME);Object(A.has)(w,"IGNORE_AMBIGUITIES")?v.ignoreAmbiguities=w.IGNORE_AMBIGUITIES:Object(A.has)(w,"GATE")&&(v.ignoreAmbiguities=!0);l.recordingProdStack.push(v);w.ALT.call(l);l.recordingProdStack.pop()}),e}function D(f){if(0>f||f>c)throw f=Error("Invalid DSL Method idx value: \x3c"+f+"\x3e\n\tIdx value must be a none negative value smaller than "+(c+1)),f.KNOWN_RECORDER_ERROR=!0,f;}a.r(b);a.d(b,"GastRecorder",function(){return k});var A=a(48),x=a(57);b=a(162); 2797var q=a(193);g=a(102);var p=a(81);a=a(195);var e={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(e);var c=Math.pow(2,a.BITS_FOR_OCCURRENCE_IDX)-1;a=Object(g.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:b.Lexer.NA});Object(q.augmentTokenTypes)([a]);var d=Object(g.createTokenInstance)(a,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1, 2798-1);Object.freeze(d);var h={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},k=function(){function f(){}return f.prototype.initGastRecorder=function(n){this.recordingProdStack=[];this.RECORDING_PHASE=!1},f.prototype.enableRecording=function(){var n=this;this.RECORDING_PHASE=!0;this.TRACE_INIT("Enable Recording",function(){for(var l=function(m){var t=0<m?m:"";n["CONSUME"+t]=function(u, 2799w){return this.consumeInternalRecord(u,m,w)};n["SUBRULE"+t]=function(u,w){return this.subruleInternalRecord(u,m,w)};n["OPTION"+t]=function(u){return this.optionInternalRecord(u,m)};n["OR"+t]=function(u){return this.orInternalRecord(u,m)};n["MANY"+t]=function(u){this.manyInternalRecord(m,u)};n["MANY_SEP"+t]=function(u){this.manySepFirstInternalRecord(m,u)};n["AT_LEAST_ONE"+t]=function(u){this.atLeastOneInternalRecord(m,u)};n["AT_LEAST_ONE_SEP"+t]=function(u){this.atLeastOneSepFirstInternalRecord(m, 2800u)}},r=0;10>r;r++)l(r);n.consume=function(m,t,u){return this.consumeInternalRecord(t,m,u)};n.subrule=function(m,t,u){return this.subruleInternalRecord(t,m,u)};n.option=function(m,t){return this.optionInternalRecord(t,m)}
2800;n.or=function(m,t){return this.orInternalRecord(t,m)};n.many=function(m,t){this.manyInternalRecord(m,t)};n.atLeastOne=function(m,t){this.atLeastOneInternalRecord(m,t)};n.ACTION=n.ACTION_RECORD;n.BACKTRACK=n.BACKTRACK_RECORD;n.LA=n.LA_RECORD})},f.prototype.disableRecording=function(){var n= 2801this;this.RECORDING_PHASE=!1;this.TRACE_INIT("Deleting Recording methods",function(){for(var l=0;10>l;l++){var r=0<l?l:"";delete n["CONSUME"+r];delete n["SUBRULE"+r];delete n["OPTION"+r];delete n["OR"+r];delete n["MANY"+r];delete n["MANY_SEP"+r];delete n["AT_LEAST_ONE"+r];delete n["AT_LEAST_ONE_SEP"+r]}delete n.consume;delete n.subrule;delete n.option;delete n.or;delete n.many;delete n.atLeastOne;delete n.ACTION;delete n.BACKTRACK;delete n.LA})},f.prototype.ACTION_RECORD=function(n){},f.prototype.BACKTRACK_RECORD= 2802function(n,l){return function(){return!0}},f.prototype.LA_RECORD=function(n){return p.END_OF_FILE},f.prototype.topLevelRuleRecord=function(n,l){try{var r=new x.Rule({definition:[],name:n});return r.name=n,this.recordingProdStack.push(r),l.call(this),this.recordingProdStack.pop(),r}catch(m){if(!0!==m.KNOWN_RECORDER_ERROR)try{m.message+='\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(t){}throw m; 2803}},f.prototype.optionInternalRecord=function(n,l){return F.call(this,x.Option,n,l)},f.prototype.atLeastOneInternalRecord=function(n,l){F.call(this,x.RepetitionMandatory,l,n)},f.prototype.atLeastOneSepFirstInternalRecord=function(n,l){F.call(this,x.RepetitionMandatoryWithSeparator,l,n,!0)},f.prototype.manyInternalRecord=function(n,l){F.call(this,x.Repetition,l,n)},f.prototype.manySepFirstInternalRecord=function(n,l){F.call(this,x.RepetitionWithSeparator,l,n,!0)},f.prototype.orInternalRecord=function(n, 2804l){return B.call(this,n,l)},f.prototype.subruleInternalRecord=function(n,l,r){if(D(l),!n||!1===Object(A.has)(n,"ruleName"))throw n=Error("\x3cSUBRULE"+(0===l?"":""+l)+"\x3e argument is invalid expecting a Parser method reference but got: \x3c"+JSON.stringify(n)+"\x3e\n inside top level rule: \x3c"+this.recordingProdStack[0].name+"\x3e"),n.KNOWN_RECORDER_ERROR=!0,n;r=Object(A.peek)(this.recordingProdStack);n=new x.NonTerminal({idx:l,nonTerminalName:n.ruleName,referencedRule:void 0});return r.definition.push(n), 2805this.outputCst?h:e},f.prototype.consumeInternalRecord=function(n,l,r){if(D(l),!Object(q.hasShortKeyProperty)(n))throw n=Error("\x3cCONSUME"+(0===l?"":""+l)+"\x3e argument is invalid expecting a TokenType reference but got: \x3c"+JSON.stringify(n)+"\x3e\n inside top level rule: \x3c"+this.recordingProdStack[0].name+"\x3e"),n.KNOWN_RECORDER_ERROR=!0,n;r=Object(A.peek)(this.recordingProdStack);n=new x.Terminal({idx:l,terminalType:n});return r.definition.push(n),d},f}()},function(g,b,a){a.r(b);a.d(b, 2806"PerformanceTracer",function(){return D});var F=a(48),B=a(81),D=function(){function A(){}return A.prototype.initPerformanceTracer=function(x){if(Object(F.has)(x,"traceInitPerf")){x=x.traceInitPerf;var q="number"==typeof x;this.traceInitMaxIdent=q?x:1/0;this.traceInitPerf=q?0<x:x}else this.traceInitMaxIdent=0,this.traceInitPerf=B.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},A.prototype.TRACE_INIT=function(x,q){if(!0===this.traceInitPerf){this.traceInitIndent++;var p=Array(this.traceInitIndent+ 28071).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(p+"--\x3e \x3c"+x+"\x3e");var e=Object(F.timer)(q);q=e.time;e=e.value;var c=10<q?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&c(p+"\x3c-- \x3c"+x+"\x3e time: "+q+"ms"),this.traceInitIndent--,e}return q()},A}()},function(g,b,a){function F(m){return"\n(function (root, factory) {\n if (typeof define \x3d\x3d\x3d 'function' \x26\x26 define.amd) {\n // AMD. Register as an anonymous module.\n define(['chevrotain'], factory);\n } else if (typeof module \x3d\x3d\x3d 'object' \x26\x26 module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports \x3d factory(require('chevrotain'));\n } else {\n // Browser globals (root is window)\n root.returnExports \x3d factory(root.b);\n }\n}(typeof self !\x3d\x3d 'undefined' ? self : this, function (chevrotain) {\n\n"+ 2808D(m)+"\n \nreturn {\n "+m.name+": "+m.name+" \n}\n}));\n"}function B(m){return" \n"+D(m)+"\nreturn new "+m.name+"(tokenVocabulary, config) \n"}function D(m){return"\nfunction "+m.name+"(tokenVocabulary, config) {\n // invoke super constructor\n // No support for embedded actions currently, so we can 'hardcode'\n // The use of CstParser.\n chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n const $ \x3d this\n\n "+A(m.rules)+"\n\n // very important to call this after all the rules have been defined.\n // otherwise the parser may
2808not work correctly as it will lack information\n // derived during the self analysis phase.\n this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n"+ 2809m.name+".prototype \x3d Object.create(chevrotain.CstParser.prototype)\n"+m.name+".prototype.constructor \x3d "+m.name+" \n "}function A(m){return Object(n.map)(m,function(t){return x(t,1)}).join("\n")}function x(m,t){var u=f(t,'$.RULE("'+m.name+'", function() {')+r;return u+=k(m.definition,t+1),u+(f(t+1,"})")+r)}function q(m,t){return f(t,"$.CONSUME"+m.idx+"(this.tokensMap."+m.terminalType.name+")"+r)}function p(m,t){return f(t,"$.SUBRULE"+m.idx+"($."+m.nonTerminalName+")"+r)}function e(m,t){var u= 2810f(t,"$.OR"+m.idx+"([")+r;return u+=Object(n.map)(m.definition,function(w){return c(w,t+1)}).join(",\n"),u+=r+f(t,"])\n")}function c(m,t){var u=f(t,"{")+r;return m.name&&(u+=f(t+1,'NAME: "'+m.name+'",')+r),u+=f(t+1,"ALT: function() {")+r,u+=k(m.definition,t+1),u+=f(t+1,"}")+r,u+f(t,"}")}function d(m,t,u){m=f(u,"$."+(m+t.idx)+"(");return t.name||t.separator?(m+="{\n",t.name&&(m+=f(u+1,'NAME: "'+t.name+'"')+","+r),t.separator&&(m+=f(u+1,"SEP: this.tokensMap."+t.separator.name)+","+r),m+="DEF: "+h(t.definition, 2811u+2)+r,m+=f(u,"}")+r):m+=h(t.definition,u+1),m+(f(u,")")+r)}function h(m,t){var u="function() {\n";return u+=k(m,t),u+(f(t,"}")+r)}function k(m,t){var u="";return Object(n.forEach)(m,function(w){u+=function(v,C){if(v instanceof l.NonTerminal)return p(v,C);if(v instanceof l.Option)return d("OPTION",v,C);if(v instanceof l.RepetitionMandatory)return d("AT_LEAST_ONE",v,C);if(v instanceof l.RepetitionMandatoryWithSeparator)return d("AT_LEAST_ONE_SEP",v,C);if(v instanceof l.RepetitionWithSeparator)return d("MANY_SEP", 2812v,C);if(v instanceof l.Repetition)return d("MANY",v,C);if(v instanceof l.Alternation)return e(v,C);if(v instanceof l.Terminal)return q(v,C);if(v instanceof l.Flat)return k(v.definition,C);throw Error("non exhaustive match");}(w,t+1)}),u}function f(m,t){return Array(4*m+1).join(" ")+t}a.r(b);a.d(b,"genUmdModule",function(){return F});a.d(b,"genWrapperFunction",function(){return B});a.d(b,"genClass",function(){return D});a.d(b,"genAllRules",function(){return A});a.d(b,"genRule",function(){return x}); 2813a.d(b,"genTerminal",function(){return q});a.d(b,"genNonTerminal",function(){return p});a.d(b,"genAlternation",function(){return e});a.d(b,"genSingleAlt",function(){return c});var n=a(48),l=a(57),r="\n"},function(g,b,a){function F(x,q){for(var p=0;p<q.length;p++){var e=q[p];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(x,e.key,e)}}a.r(b);a.d(b,"Cache",function(){return D});a.d(b,"doesContainFunctions",function(){return A});a(3);a(32);a(0);a(2);a(4); 2814var B=a(74),D=function(){function x(p){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");!0;this.functionRegistry=p;this.cache=new Map}var q;return q=[{key:"set",value:function(p,e){var c=Object(B.collectDependencies)(e,this.functionRegistry),d=A(e,this.functionRegistry.isFunctionVolatile),h=A(e,this.functionRegistry.isFunctionDependentOnSheetStructureChange);e={ast:e,relativeDependencies:c,hasVolatileFunction:d,hasStructuralChangeFunction:h};return this.cache.set(p, 2815e),e}},{key:"get",value:function(p){return this.cache.get(p)}},{key:"maybeSetAndThenGet",value:function(p,e){var c=this.cache.get(p);return void 0!==c?c.ast:(this.set(p,e),e)}}],F(x.prototype,q),Object.defineProperty(x,"prototype",{writable:!1}),x}(),A=function e(q,p){switch(q.type){case B.AstNodeType.EMPTY:case B.AstNodeType.NUMBER:case B.AstNodeType.STRING:case B.AstNodeType.ERROR:case B.AstNodeType.ERROR_WITH_RAW_INPUT:case B.AstNodeType.CELL_REFERENCE:case B.AstNodeType.CELL_RANGE:case B.AstNodeType.COLUMN_RANGE:case B.AstNodeType.ROW_RANGE:case B.AstNodeType.NAMED_EXPRESSION:return!1; 2816case B.AstNodeType.PERCENT_OP:case B.AstNodeType.PLUS_UNARY_OP:case B.AstNodeType.MINUS_UNARY_OP:return e(q.value,p);case B.AstNodeType.CONCATENATE_OP:case B.AstNodeType.EQUALS_OP:case B.AstNodeType.NOT_EQUAL_OP:case B.AstNodeType.LESS_THAN_OP:case B.AstNodeType.GREATER_THAN_OP:case B.AstNodeType.LESS_THAN_OR_EQUAL_OP:case B.AstNodeType.GREATER_THAN_OR_EQUAL_OP:case B.AstNodeType.MINUS_OP:case B.AstNodeType.PLUS_OP:case B.AstNodeType.TIMES_OP:case B.AstNodeType.DIV_OP:case B.AstNodeType.POWER_OP:return e(q.left, 2817p)||e(q.right,p);case B.AstNodeType.PARENTHESIS:return e(q.expression,p);case B.AstNodeType.FUNCTION_CALL:return!!p(q.procedureName)||q.args.some(function(c){return e(c,p)});case B.AstNodeType.ARRAY:return q.args.some(function(c){return c.some(function(d){return e(d,p)})})}}},function(g,b,a){var F=a(258),B=Math.floor,D=function(A,x){var q=A.length,p=B(q/2);if(8>q)for(var e=A.length,c=1;c<e;){p=c;for(q=A[c];p&&0<x(A[p-1],q);)A[p]=A[--p];p!==c++&&(A[p]=q)}else{q=D(F(A,0,p),x);p=D(F(A,p),x);e=q.length; 2818c=p.length;for(var d=0,h=0;d<e||h<c;)A[d+h]=d<e&&h<c?0>=x(q[d],p[h])?q[d++]:p[h++]:d<e?q[d++]:p[h++]}return A};g.exports=D},function(g,b,a){b=a(121).match(/firefox\/(\d+)/i);g.exports=!!b&&+b[1]},function(g,b,a){b=a(121);g.exports=/MSIE|Trident/.test(b)}
2818,function(g,b,a){b=a(121).match(/AppleWebKit\/(\d+)\./);g.exports=!!b&&+b[1]},function(g,b,a){var F=a(63),B=Math.floor;g.exports=Number.isInteger||function(D){return!F(D)&&isFinite(D)&&B(D)===D}},function(g,b,a){var F=a(65);g.exports=function(B){return void 0!== 2819B&&(F(B,"value")||F(B,"writable"))}},function(g,b,a){var F=a(178).PROPER,B=a(38),D=a(370);g.exports=function(A){return B(function(){return!!D[A]()||"\u200b\u0085\u180e"!=="\u200b\u0085\u180e"[A]()||F&&D[A].name!==A})}},function(g,b,a){!function(F){var B=[null,0,{}],D=function(k,f){this.codepoint=k;this.feature=f},A={},x=[];for(F=0;255>=F;++F)x[F]=0;D.fromCharCode=[function(k,f,n){return 60>f||13311<f&&42607>f?new D(f,B):k(f,n)},function(k,f,n){var l=A[f];return l||(l=k(f,n)).feature&&10<++x[f>>8& 2820255]&&(A[f]=l),l},function(k,f,n){return n?k(f,n):new D(f,null)},function(k,f,n){if(4352>f||4371<=f&&44032>f||55204<f)return k(f,n);if(4352<=f&&4371>f){n={};var l=21*(f-4352);for(k=0;21>k;++k)n[4449+k]=44032+28*(k+l);return new D(f,[,,n])}k=f-44032;l=k%28;n=[];if(0!==l)n[0]=[44032+k-l,4519+l];else for(n[0]=[4352+Math.floor(k/588),4449+Math.floor(k%588/28)],n[2]={},k=1;28>k;++k)n[2][4519+k]=f+k;return new D(f,n)},function(k,f,n){return new D(f,(D.udata[65280&f]||{})[f]||B)}].reduceRight(function(k, 2821f){return function(n,l){return f(k,n,l)}},null);D.isHighSurrogate=function(k){return 55296<=k&&56319>=k};D.isLowSurrogate=function(k){return 56320<=k&&57343>=k};D.prototype.prepFeature=function(){this.feature||(this.feature=D.fromCharCode(this.codepoint,!0).feature)};D.prototype.toString=function(){if(65536>this.codepoint)return String.fromCharCode(this.codepoint);var k=this.codepoint-65536;return String.fromCharCode(Math.floor(k/1024)+55296,k%1024+56320)};D.prototype.getDecomp=function(){return this.prepFeature(), 2822this.feature[0]||null};D.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]};D.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]};D.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0};D.prototype.getComposite=function(k){return(this.prepFeature(),this.feature[2])?(k=this.feature[2][k.codepoint])?D.fromCharCode(k):null:null};var q=function(k){this.str= 2823k;this.cursor=0};q.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var k,f=this.str.charCodeAt(this.cursor++);return D.isHighSurrogate(f)&&this.cursor<this.str.length&&D.isLowSurrogate(k=this.str.charCodeAt(this.cursor))&&(f=1024*(f-55296)+(k-56320)+65536,++this.cursor),D.fromCharCode(f)}return this.str=null,null};var p=function(k,f){this.it=k;this.canonical=f;this.resBuf=[]};p.prototype.next=function(){if(0===this.resBuf.length){var k=this.it.next();if(!k)return null;this.resBuf= 2824function r(n,l){var m=l.getDecomp();if(!m||n&&l.isCompatibility())return[l];l=[];for(var t=0;t<m.length;++t){var u=r(n,D.fromCharCode(m[t]));l=l.concat(u)}return l}(this.canonical,k)}return this.resBuf.shift()};var e=function(k){this.it=k;this.resBuf=[]};e.prototype.next=function(){if(0===this.resBuf.length){do{var k=this.it.next();if(!k)break;var f=k.getCanonicalClass();var n=this.resBuf.length;if(0!==f)for(;0<n&&!(this.resBuf[n-1].getCanonicalClass()<=f);--n);this.resBuf.splice(n,0,k)}while(0!== 2825f)}return this.resBuf.shift()};var c=function(k){this.it=k;this.procBuf=[];this.resBuf=[];this.lastClass=null};c.prototype.next=function(){for(;0===this.resBuf.length;){var k=this.it.next();if(!k){this.resBuf=this.procBuf;this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=k.getCanonicalClass(),this.procBuf.push(k);else{var f=this.procBuf[0].getComposite(k),n=k.getCanonicalClass();f&&(this.lastClass<n||0===this.lastClass)?this.procBuf[0]=f:(0===n&&(this.resBuf=this.procBuf,this.procBuf= 2826[]),this.lastClass=n,this.procBuf.push(k))}}return this.resBuf.shift()};var d=function(k,f){f=function(l,r){switch(l){case "NFD":return new e(new p(new q(r),!0));case "NFKD":return new e(new p(new q(r),!1));case "NFC":return new c(new e(new p(new q(r),!0)));case "NFKC":return new c(new e(new p(new q(r),!1)))}
2826throw l+" is invalid";}(k,f);for(var n="";k=f.next();)n+=k.toString();return n};D.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256, 2827774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718, 2828780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336, 2829780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810, 2830770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[, 2831,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311, 2832817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}
vendor: 22,406 bytes, lines 2832-2876
2832],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}], 2833116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380, 2834780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}], 2835200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97, 2836770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111, 2837776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772], 2838,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105, 2839106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114, 2840807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]], 2841372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382], 2842256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]], 2843487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]], 2844518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246, 2845772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661], 2846256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[, 2847220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230], 2848856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902, 2849772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}], 2850943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8E3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182, 2851837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]], 28521027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}], 28531077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]], 28541143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[, 2855,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[, 2856220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[, 285731],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735, 28581652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[, 2859220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230], 28602086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[, 2861,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610, 28622620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}], 28633015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,, 2864{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023], 2865512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512], 28664012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[, 28679],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[, 28689],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[, 2869220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975, 28706965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220], 28717412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601], 2872256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256], 28737529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427], 2874256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[, 2875230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199, 2876769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],
28777719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109, 2878803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83, 2879775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118, 2880771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383, 2881775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],, 2882{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244, 2883777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121, 2884768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951, 2885837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787], 2886,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}], 28877982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8E3:[[959,787],,{768:8002,769:8004}], 28888001:[[959,788],,{768:8003,769:8005}],8002:[[8E3,768]],8003:[[8001,768]],8004:[[8E3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}
vendor: 11,719 bytes, lines 2888-2911
2888],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}], 28898027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768], 2890,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]], 28918071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]], 28928099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141, 2893769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]], 28948160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]], 28958193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32], 2896256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101], 2897256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[, 2898230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84, 289977],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49, 29008260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73], 2901256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[, 2902,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750, 29038750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]], 29048825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[, 2905,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49, 290654],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41], 2907256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98, 290841],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40, 2909120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98], 2910256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61, 291161],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763
2911:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230], 291211769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992], 2913256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256], 291412075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020], 2915256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256], 291612126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3E4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992], 2917256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256], 291812177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582], 2919256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256], 292012228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],
vendor: 7,140 bytes, lines 2920-2934
292012342:[[12306],256],12344:[[21313],256], 292112345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}], 292212382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,, 2923{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465, 292412441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488, 292512441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}], 292612532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358], 2927256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462], 2928256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393], 2929256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256], 293012693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256], 293112811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40, 29324364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40, 293322303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41], 2934256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],
2935256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449], 2936256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377], 2937256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256], 293812972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53, 293926376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13E3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471], 2940256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256], 294113045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456, 294212540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488, 294312523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480, 294412540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488], 2945256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256], 294613123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483, 294712488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49, 294850,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178], 2949256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109, 2950103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99, 2951109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77, 295286],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[7
vendor: 7,254 bytes, lines 2952-2967
29525,77],256],13263:[[107,116],256],13264:[[108,109], 2953256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55, 295426085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50, 295555,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[, 2956230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43E3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[, 2957230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216], 2958119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230], 2959119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256], 2960119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65], 2961256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99], 2962256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69], 2963256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103], 2964256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79], 2965256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12E4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256], 2966120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86], 2967256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044
2967:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119], 2968256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100], 2969256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70], 2970256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256], 2971120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79], 2972256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256], 2973120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82], 2974256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115], 2975256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85], 2976256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118], 2977256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88], 2978256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121], 2979256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97], 2980256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422
2980:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66], 2981256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100], 2982256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915], 2983256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256], 2984120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981], 2985256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256], 2986120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256], 2987120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931], 2988256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964], 2989256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256], 2990120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959], 2991256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256], 2992120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954], 2993256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256], 2994120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256], 2995120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576], 2996256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256], 2997126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581], 2998256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256], 2999126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593], 3000256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256], 3001126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256], 3002127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256], 3003127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81], 3004256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256], 3005127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513
3005:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256], 3006127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256], 3007127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]], 3008194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]], 3009194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]], 3010194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23E3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]], 3011194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]], 3012194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]], 3013194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]], 3014194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]
3014],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]], 3015194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]], 301663746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]], 301763778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]], 301863810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]], 301963842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]], 302063874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]], 302163906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]], 302263938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],
302363970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]], 3024194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]], 3025194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149E3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]], 3026194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]], 3027194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32E3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]], 3028194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]], 3029194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]], 3030194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195E3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]], 3031195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]], 3032195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64E3:{64E3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]], 303364012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]], 303464056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361
3034]],64086:[[31680]],64087:[[32244]], 303564088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]], 303664122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]], 303764154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]], 303864186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]], 303964217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4E4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]], 3040195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],
304064286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256], 304164295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502, 30421468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662], 3043256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668], 3044256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705], 3045256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729], 3046256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744], 3047256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574, 30481609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256], 304964529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256], 305064550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256], 305164571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256], 305264592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574, 30531585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],6462
30531:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579, 30541606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606, 30551609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578, 30561582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591, 30571581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604, 30581607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576, 30591607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610], 3060256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588, 30611582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582, 30621610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587, 30631581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581, 30641605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582], 3065256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601, 30661582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580], 3067256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578, 30681582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610], 3069256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589, 30701605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580, 30711604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211
3071],256], 307265075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256], 307365104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256], 307465138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256], 307565164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582], 3076256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591], 3077256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603], 3078256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570], 3079256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53], 3080256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83], 3081256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112], 3082256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457], 3083256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256], 308465413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441], 3085256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256], 308665464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641], 3087256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var h={nfc:function(k){return d("NFC",k)},nfd:function(k){return d("NFD",k)},nfkc:function(k){return d("NFKC",k)},nfkd:function(k){return d("NFKD",k)}};g.exports=h;h.shimApplied=!1;String.prototype.normalize|| 3088(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,
3088configurable:!0,writable:!0,value:function(k){var f=""+this;k=void 0===k?"NFC":k;if(null==this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===k)return h.nfc(f);if("NFD"===k)return h.nfd(f);if("NFKC"===k)return h.nfkc(f);if("NFKD"===k)return h.nfkd(f);throw new RangeError("Invalid normalization form: "+k);}}),h.shimApplied=!0)}()},function(g,b,a){function F(B){return new Intl.Collator(B.localeLang, 3089{sensitivity:B.caseSensitive?B.accentSensitive?"variant":"case":B.accentSensitive?"accent":"base",caseFirst:B.caseFirst,ignorePunctuation:B.ignorePunctuation})}a.r(b);a.d(b,"collatorFromConfig",function(){return F})},function(g,b,a){var F=a(95),B=a(158),D=a(103);g.exports=function(A){var x=F(this),q=D(x),p=arguments.length,e=B(1<p?arguments[1]:void 0,q);p=2<p?arguments[2]:void 0;for(q=void 0===p?q:B(p,q);q>e;)x[e++]=A;return x}},function(g,b,a){a.r(b);a.d(b,"collectAddressesDependentToRange",function(){return A}); 3090a(22);a(2);a(39);a(0);a(36);var F=a(74),B=a(123),D=a(290),A=function(x,q,p,e,c){if(q instanceof D.RangeVertex)return x=q.range.intersectionWith(p),void 0!==x?Array.from(x.addresses(c)):[];var d,h;return q instanceof B.FormulaVertex?(d=q.getFormula(e),h=q.getAddress(e),Object(F.collectDependencies)(d,x).filter(function(k){return k instanceof F.AddressDependency}).map(function(k){return k.dependency.toSimpleCellAddress(h)}).filter(function(k){return p.addressInRange(k)})):[]}},function(g,b,a){var F= 3091a(45);g=a(35);b=a(271);var B=a(187),D=a(224),A=a(390),x=a(63),q=a(361),p=a(116).enforce;a=a(339);F=!F.ActiveXObject&&"ActiveXObject"in F;var e=function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}};D=D("WeakMap",e,A);if(a&&F){var c=A.getConstructor(e,"WeakMap",!0);B.enable();B=D.prototype;var d=g(B.delete),h=g(B.has),k=g(B.get),f=g(B.set);b(B,{delete:function(n){if(x(n)&&!q(n)){var l=p(this);return l.frozen||(l.frozen=new c),d(this,n)||l.frozen.delete(n)}return d(this, 3092n)},has:function(n){if(x(n)&&!q(n)){var l=p(this);return l.frozen||(l.frozen=new c),h(this,n)||l.frozen.has(n)}return h(this,n)},get:function(n){if(x(n)&&!q(n)){var l=p(this);return l.frozen||(l.frozen=new c),h(this,n)?k(this,n):l.frozen.get(n)}return k(this,n)},set:function(n,l){if(x(n)&&!q(n)){var r=p(this);r.frozen||(r.frozen=new c);h(this,n)?f(this,n,l):r.frozen.set(n,l)}else f(this,n,l);return this}})}},function(g,b,a){function F(h,k){return{type:h,value:k}}function B(h,k){for(var f=[],n=0,l= 30930;l<h.length;++l){var r=h[l];r.index!==n&&(n=k.substr(n,r.index-n),f.push(F(p.FREE_TEXT,n)));r[0].startsWith("\\")?f.push(F(p.FREE_TEXT,r[0])):f.push(F(p.FORMAT,r[0]));n=r.index+r[0].length}h=h[h.length-1];h.index+h[0].length<k.length&&(k=k.substr(h.index+h[0].length,k.length),f.push(F(p.FREE_TEXT,k)));return f}function D(h){var k=function(f){c.lastIndex=0;var n,l=[];do null!==(n=c.exec(f))&&l.push(n);while(n);return l}(h);return k.every(function(f){return q(f)})?void 0:{type:e.DATE,tokens:B(k,h)}} 3094function A(h){var k=function(f){d.lastIndex=0;f=d.exec(f);return null!==f?[f]:[]}(h);return k.every(function(f){return q(f)})?void 0:{type:e.NUMBER,tokens:B(k,h)}}function x(h){var k,f;return null!==(f=null!==(k=D(h))&&void 0!==k?k:A(h))&&void 0!==f?f:{type:e.STRING,tokens:[{type:p.FREE_TEXT,value:h}]}}function q(h){return h[0].startsWith("\\")}a.r(b);a.d(b,"TokenType",function(){return p});a.d(b,"formatToken",function(){return F});a.d(b,"FormatExpressionType",function(){return e});a.d(b,"parseForDateTimeFormat", 3095function(){return D});a.d(b,"parseForNumberFormat",function(){return A});a.d(b,"parse",function(){return x});a.d(b,"isEscapeToken",function(){return q});a(12);a(122);a(0);var p,e,c=/(\\.|dd|DD|d|D|mm|MM|m|M|YYYY|YY|yyyy|yy|HH|hh|H|h|ss(\.(0+|s+))?|s|AM\/PM|am\/pm|A\/P|a\/p|\[mm]|\[MM]|\[hh]|\[HH])/g,d=/(\\.|[#0]+(\.[#0]*)?)/g;!function(h){h.FORMAT="FORMAT";h.FREE_TEXT="FREE_TEXT"}(p||(p={}));(function(h){h.DATE="DATE";h.NUMBER="NUMBER";h.STRING="STRING"})(e||(e={}))},function(g,b,a){function F(p, 3096e){if(!(p=function(c){if(Array.isArray(c))return c}(p)||function(c,d){var h=null==c?null:"undefined"!=typeof Symbol&&c[Symbol.iterator]||c["@@iterator"];if(null!=h){var k,f=[],n=!0,l=!1;try{for(h=h.call(c);!(n=(k=h.next()).done)&&(f.push(k.value),!d||f.length!==d);n=!0);}catch(m){l=!0;var r=m}finally{try{n||null==h.return||h.return()}finally{if(l)throw r;}}return f}}(p,e)||function(c,d){if(c){if("string"==typeof c)return B(c,d);var h=Object.prototype.toString.call(c).slice(8,-1);"Object"===h&&c.constructor&& 3097(h=c.constructor.name);if("Map"===h||"Set"===h)return Array.from(c);if("Arguments"===h||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return B(c,d)}}
3097(p,e)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return p}function B(p,e){(null==e||e>p.length)&&(e=p.length);for(var c=0,d=Array(e);c<e;c++)d[c]=p[c];return d}function D(p){var e="missing",c={};if("gpl-v3"===p||"internal-use-in-handsontable"=== 3098p)e="valid";else if("string"==typeof p&&Object(A.checkKeySchema)(p)){e=F(["14","06","2022"],3);var d=e[0],h=e[2];e=Math.floor((new Date("".concat(e[1],"/").concat(d,"/").concat(h))).getTime()/864E5);p=Object(A.extractTime)(p);var k=new Date(864E5*(p+1));d="January February March April May June July August September October November December".split(" ")[k.getMonth()];h=k.getDate();k=k.getFullYear();d="".concat(d," ").concat(h,", ").concat(k);c.keyValidityDate=d;e=e>p?"expired":"valid"}else""!==p&& 3099(e="invalid");return q||"valid"===e||(console.warn(x[e](c)),q=!0),e}a.r(b);a.d(b,"checkLicenseKeyValidity",function(){return D});a(12);a(64);a(18);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(13);a(26);a(22);var A=a(727),x={invalid:function(){return"The license key for HyperFormula is invalid."},expired:function(p){return"The license key for HyperFormula expired"+" on ".concat(p.keyValidityDate,", and is not valid for the installed version.")},missing:function(){return"The license key for HyperFormula is missing."}}, 3100q=!1},function(g,b,a){function F(e,c){if(!(e=function(d){if(Array.isArray(d))return d}(e)||function(d,h){var k=null==d?null:"undefined"!=typeof Symbol&&d[Symbol.iterator]||d["@@iterator"];if(null!=k){var f,n=[],l=!0,r=!1;try{for(k=k.call(d);!(l=(f=k.next()).done)&&(n.push(f.value),!h||n.length!==h);l=!0);}catch(t){r=!0;var m=t}finally{try{l||null==k.return||k.return()}finally{if(r)throw m;}}return n}}(e,c)||function(d,h){if(d){if("string"==typeof d)return B(d,h);var k=Object.prototype.toString.call(d).slice(8, 3101-1);"Object"===k&&d.constructor&&(k=d.constructor.name);if("Map"===k||"Set"===k)return Array.from(d);if("Arguments"===k||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return B(d,h)}}(e,c)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return e}function B(e,c){(null==c||c>e.length)&&(c=e.length);for(var d=0,h=Array(c);d<c;d++)h[d]=e[d];return h}function D(e){return 25===(e+"").replace(/\-/g, 3102"")[x]?parseInt(q((e+"").replace(/\-/g,""),18,p("F")),16)/(parseInt(q((e+"").replace(/\-/g,""),p("C"),p("Y")>>4),16)||1+(~~![][x]<<3)):0}function A(e){if((e=(e+"").replace(/\-/g,""))[x]!==p("Z"))return!1;var c=0;return 0===[[0,p("G")+1],[p("H"),p("H")-1],[p("G")+p("H"),p("G")]].reduce(function(d,h,k){var f=F(h,2);h=f[0];f=f[1];return d|=(parseInt("".concat(parseInt(parseInt(q.apply(void 0,[e].concat([c+h-(0===k?0:2),f+(k?2:0)])),16)+(parseInt(q.apply(void 0,[e].concat([c+h+f,2])),16)+[]).padStart(2, 3103"0"),10)),10)%97||2)>>1,c+=2,d},p("A"))}a.r(b);a.d(b,"extractTime",function(){return D});a.d(b,"checkKeySchema",function(){return A});a(12);a(67);a(302);a(105);a(0);a(18);a(303);a(8);a(9);a(10);a(3);a(2);a(4);a(13);a(26);a(22);var x="length",q=function(e,c,d){return e.substr(c,d)},p=function(e){return e.codePointAt(0)-65}},function(g,b,a){b=a(35);var F=a(138),B=a(73),D=a(301),A=a(94),x=b(D),q=b("".slice),p=Math.ceil;a=function(e){return function(c,d,h){var k,f;c=B(A(c));d=F(d);var n=c.length;h=void 0=== 3104h?" ":B(h);return d<=n||""==h?c:((f=x(h,p((k=d-n)/h.length))).length>k&&(f=q(f,0,k)),e?c+f:f+c)}};g.exports={start:a(!1),end:a(!0)}},function(g,b,a){b=a(121);g.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(b)},function(g,b,a){function F(I,K){for(var J=0;J<K.length;J++){var P=K[J];P.enumerable=P.enumerable||!1;P.configurable=!0;"value"in P&&(P.writable=!0);Object.defineProperty(I,P.key,P)}}a.r(b);a.d(b,"BuildEngineFactory",function(){return G});a(0);a(27);a(26);var B= 3105a(132),D=a(201),A=a(393),x=a(239),q=a(731),p=a(164),e=a(131),c=a(40),d=a(737),h=a(242),k=a(739),f=a(238),n=a(113),l=a(305),r=a(741),m=a(743),t=a(745),u=a(240),w=a(747),v=a(241),C=a(74),y=a(748),z=a(304),E=a(133),H=a(396),G=function(){function I(){if(!(this instanceof I))throw new TypeError("Cannot call a class as a function");!0}var K;return K=[{key:"buildFromSheets",value:function(J){var P=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],S=new x.Config(1<arguments.length&&void 0!==arguments[1]? 3106arguments[1]:{});return this.buildEngine(S,J,P)}},{key:"buildFromSheet",value:function(J){var P=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],S=new x.Config(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),R=S.translationPackage.getUITranslation(f.UIElement.NEW_SHEET_PREFIX)+"1",O=this.buildEngine,N={};R=(R in N?Object.defineProperty(N,R,{value:J,enumerable:!0,configurable:!0,writable:!0}):N[R]=J,N);return O.call(this,S,R,P)}},{key:"buildEmpty",value:function(){var J=1<arguments.length&& 3107void 0!==arguments[1]?arguments[1]:[];return this.buildEngine(new x.Config(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),{},J)}},{key:"rebuildWithConfig",value:function(J,P,S,R){return this.buildEngine(J,P,S,R)}},{key:"buildEngine",value:function(J){var P=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},S=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],R=3<arguments.length&&void 0!==arguments[3]?arguments[3]:J.useStats?new E.Statistics:new E.EmptyStatistics;R.start(E.StatType.BUILD_ENGINE_TOTAL); 3108var O=new u.NamedExpressions,N=new l.FunctionRegistry(J),Q=new m.LazilyTransformingAstService(R),M=e.DependencyGraph.buildEmpty(Q,J,N,O,R),T=Object(t.buildColumnSearchStrategy)(M,J,R),Z=M.sheetMapping,L=M.addressMapping;
3108for(W in P)if(Object.prototype.hasOwnProperty.call(P,W)){var U=P[W];Object(z.validateAsSheet)(U);var V=Object(z.findBoundaries)(U);if(V.height>J.maxRows||V.width>J.maxColumns)throw new c.SheetSizeLimitExceededError;var Y=Z.addSheet(W);L.autoAddSheet(Y,U,V)}var aa=new C.ParserWithCaching(J, 3109N,Z.get);Q.parser=aa;L=new C.Unparser(J,Object(C.buildLexerConfig)(J),Z.fetchDisplayName,O);var W=new p.DateTimeHelper(J);V=new w.NumberLiteralHelper(J);U=new n.ArithmeticHelper(J,W,V);var ca=new D.CellContentParser(J,W,V),ia=new B.ArraySizePredictor(J,N);V=new v.Operations(J,M,T,ca,aa,R,Q,O,ia);Y=new H.UndoRedo(J,V);Q.undoRedo=Y;var ba=new A.ClipboardOperations(J,M,V),fa=new q.CrudOperations(J,V,Y,ba,M,T,aa,ca,Q,O);S.forEach(function(ja){fa.ensureItIsPossibleToAddNamedExpression(ja.name,ja.expression, 3110ja.scope);fa.operations.addNamedExpression(ja.name,ja.expression,ja.scope,ja.options)});S=new h.Exporter(J,O,Z.fetchDisplayName,Q);Z=new y.Serialization(M,L,S);W=new r.Interpreter(J,M,T,R,U,N,O,Z,ia,W);R.measure(E.StatType.GRAPH_BUILD,function(){(new k.GraphBuilder(M,T,aa,ca,R,ia)).buildGraph(P,R)});W=new d.Evaluator(J,R,W,Q,M,T);return W.run(),R.end(E.StatType.BUILD_ENGINE_TOTAL),{config:J,stats:R,dependencyGraph:M,columnSearch:T,parser:aa,unparser:L,cellContentParser:ca,evaluator:W,lazilyTransformingAstService:Q, 3111crudOperations:fa,exporter:S,namedExpressions:O,serialization:Z,functionRegistry:N}}}],K&&F(I,K),Object.defineProperty(I,"prototype",{writable:!1}),I}()},function(g,b,a){function F(t,u){if(!(t=function(w){if(Array.isArray(w))return w}(t)||function(w,v){var C=null==w?null:"undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(null!=C){var y,z=[],E=!0,H=!1;try{for(C=C.call(w);!(E=(y=C.next()).done)&&(z.push(y.value),!v||z.length!==v);E=!0);}catch(I){H=!0;var G=I}finally{try{E||null==C.return|| 3112C.return()}finally{if(H)throw G;}}return z}}(t,u)||D(t,u)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return t}function B(t,u){var w="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!w){if(Array.isArray(t)||(w=D(t))||u&&t&&"number"==typeof t.length){w&&(t=w);var v=0;u=function(){};return{s:u,n:function(){return v>=t.length?{done:!0}:{done:!1,value:t[v++]}},e:function(E){throw E; 3113},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var C,y=!0,z=!1;return{s:function(){w=w.call(t)},n:function(){var E=w.next();return y=E.done,E},e:function(E){z=!0;C=E},f:function(){try{y||null==w.return||w.return()}finally{if(z)throw C;}}}}function D(t,u){if(t){if("string"==typeof t)return A(t,u);var w=Object.prototype.toString.call(t).slice(8,-1);return"Object"===w&&t.constructor&& 3114(w=t.constructor.name),"Map"===w||"Set"===w?Array.from(t):"Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?A(t,u):void 0}}function A(t,u){(null==u||u>t.length)&&(u=t.length);for(var w=0,v=Array(u);w<u;w++)v[w]=t[w];return v}function x(t,u){for(var w=0;w<u.length;w++){var v=u[w];v.enumerable=v.enumerable||!1;v.configurable=!0;"value"in v&&(v.writable=!0);Object.defineProperty(t,v.key,v)}}function q(t){return Number.isInteger(t)&&0<t}function p(t){return Number.isInteger(t)&&0<=t} 3115a.r(b);a.d(b,"CrudOperations",function(){return m});a(18);a(105);a(0);a(36);a(75);a(68);a(52);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var e=a(91),c=a(24),d=a(201),h=a(40),k=a(240),f=a(241),n=a(304),l=a(197),r=a(396),m=function(){function t(w,v,C,y,z,E,H,G,I,K){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");!0;this.operations=v;this.undoRedo=C;this.clipboardOperations=y;this.dependencyGraph=z;this.columnSearch=E;this.parser=H;this.cellContentParser= 3116G;this.lazilyTransformingAstService=I;this.namedExpressions=K;this.maxRows=w.maxRows;this.maxColumns=w.maxColumns}var u;return u=[{key:"sheetMapping",get:function(){return this.dependencyGraph.sheetMapping}},{key:"addRows",value:function(w){for(var v=arguments.length,C=Array(1<v?v-1:0),y=1;y<v;y++)C[y-1]=arguments[y];v=new f.AddRowsCommand(w,C);this.ensureItIsPossibleToAddRows.apply(this,[w].concat(C));this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();this.operations.addRows(v);this.undoRedo.saveOperation(new r.AddRowsUndoEntry(v))}}, 3117{key:"removeRows",value:function(w){for(var v=arguments.length,C=Array(1<v?v-1:0),y=1;y<v;y++)C[y-1]=arguments[y];v=new f.RemoveRowsCommand(w,C);this.ensureItIsPossibleToRemoveRows.apply(this,[w].concat(C));this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();C=this.operations.removeRows(v);this.undoRedo.saveOperation(new r.RemoveRowsUndoEntry(v,C))}},{key:"addColumns",value:function(w){for(var v=arguments.length,C=Array(1<v?v-1:0),y=1;y<v;y++)C[y-1]=arguments[y];v=new f.AddColumnsCommand(w, 3118C);this.ensureItIsPossibleToAddColumns.apply(this,[w].concat(C));this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();this.operations.addColumns(v);this.undoRedo.saveOperation(new r.AddColumnsUndoEntry(v))}},{key:"removeColumns",value:function(w){for(var v=arguments.length,C=Array(1<v?v-1:0),y=1;y<v;y++)C[y-1]=arguments[y];v=new f.RemoveColumnsCommand(w,C);this.ensureItIsPossibleToRemoveColumns.apply(this,[w].concat(C));this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut(); 3119C=this.operations.removeColumns(v);this.undoRedo.saveOperation(new r.RemoveColumnsUndoEntry(v,C))}},{key:"moveCells",value:function(w,v,C,y){this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();var z=this.operations.moveCells(w,v,C,y);this.undoRedo.saveOperation(new r.MoveCellsUndoEntry(w,v,C,y,z.overwrittenCellsData,z.addedGlobalNamedExpressions,z.version))}},{key:"moveRows",value:function(w,v,C,y){this.ensureItIsPossibleToMoveRows(w,v,C,y);this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut(); 3120var z=this.operations.moveRows(w,v,C,y);this.undoRedo.saveOperation(new r.MoveRowsUndoEntry(w,v,C,y,z))}},{key:"moveColumns",value:function(w,v,C,y){this.ensureItIsPossibleToMoveColumns(w,v,C,y);this.undoRedo.clearRedoStack();var z=this.operations.moveColumns(w,v,C,y);this.undoRedo.saveOperation(new r.MoveColumnsUndoEntry(w,v,C,y,z))}},{key:"cut",value:function(w,v,C){this.clipboardOperations.cut(w,v,C)}}
3120,{key:"ensureItIsPossibleToCopy",value:function(w,v,C){if(!q(v))throw new h.InvalidArgumentsError("width to be positive integer."); 3121if(!q(C))throw new h.InvalidArgumentsError("height to be positive integer.");}},{key:"copy",value:function(w,v,C){this.ensureItIsPossibleToCopy(w,v,C);this.clipboardOperations.copy(w,v,C)}},{key:"paste",value:function(w){var v=this.clipboardOperations.clipboard;if(void 0===v)throw new h.NothingToPasteError;if(this.clipboardOperations.isCutClipboard())this.moveCells(v.sourceLeftCorner,v.width,v.height,w);else if(this.clipboardOperations.isCopyClipboard()){this.clipboardOperations.ensureItIsPossibleToCopyPaste(w); 3122var C=e.AbsoluteCellRange.spanFrom(w,v.width,v.height);C=this.operations.getRangeClipboardCells(C);this.undoRedo.clearRedoStack();var y=this.operations.restoreClipboardCells(v.sourceLeftCorner.sheet,v.getContent(w));this.undoRedo.saveOperation(new r.PasteUndoEntry(w,C,v.content,y))}}},{key:"beginUndoRedoBatchMode",value:function(){this.undoRedo.beginBatchMode()}},{key:"commitUndoRedoBatchMode",value:function(){this.undoRedo.commitBatchMode()}},{key:"isClipboardEmpty",value:function(){return void 0=== 3123this.clipboardOperations.clipboard}},{key:"clearClipboard",value:function(){this.clipboardOperations.clear()}},{key:"addSheet",value:function(w){void 0!==w&&this.ensureItIsPossibleToAddSheet(w);this.undoRedo.clearRedoStack();w=this.operations.addSheet(w);return this.undoRedo.saveOperation(new r.AddSheetUndoEntry(w)),w}},{key:"removeSheet",value:function(w){this.ensureScopeIdIsValid(w);this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();var v=this.sheetMapping.fetchDisplayName(w),C= 3124this.operations.getSheetClipboardCells(w),y=this.operations.removeSheet(w);this.undoRedo.saveOperation(new r.RemoveSheetUndoEntry(v,w,C,y.scopedNamedExpressions,y.version))}},{key:"renameSheet",value:function(w,v){this.ensureItIsPossibleToRenameSheet(w,v);var C=this.operations.renameSheet(w,v);return void 0!==C&&(this.undoRedo.clearRedoStack(),this.undoRedo.saveOperation(new r.RenameSheetUndoEntry(w,C,v))),C}},{key:"clearSheet",value:function(w){this.ensureScopeIdIsValid(w);this.undoRedo.clearRedoStack(); 3125this.clipboardOperations.abortCut();var v=this.operations.getSheetClipboardCells(w);this.operations.clearSheet(w);this.undoRedo.saveOperation(new r.ClearSheetUndoEntry(w,v))}},{key:"setCellContents",value:function(w,v){if(v instanceof Array)for(var C=0;C<v.length;C++){if(!(v[C]instanceof Array))throw new h.InvalidArgumentsError("an array of arrays or a raw cell value.");}else v=[[v]];this.ensureItIsPossibleToChangeCellContents(w,v);this.undoRedo.clearRedoStack();C=[];for(var y=0;y<v.length;y++)for(var z= 31260;z<v[y].length;z++){var E={sheet:w.sheet,row:w.row+y,col:w.col+z},H=v[y][z];this.clipboardOperations.abortCut();var G=this.operations.setCellContent(E,H);C.push({address:E,newContent:H,oldContent:G})}this.undoRedo.saveOperation(new r.SetCellContentsUndoEntry(C))}},{key:"setSheetContent",value:function(w,v){this.ensureScopeIdIsValid(w);this.ensureItIsPossibleToChangeSheetContents(w,v);Object(n.validateAsSheet)(v);this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();var C=this.operations.getSheetClipboardCells(w); 3127this.operations.setSheetContent(w,v);this.undoRedo.saveOperation(new r.SetSheetContentUndoEntry(w,C,v))}},{key:"setRowOrder",value:function(w,v){this.validateSwapRowIndexes(w,v);this.testRowOrderForArrays(w,v);this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();var C=this.operations.setRowOrder(w,v);this.undoRedo.saveOperation(new r.SetRowOrderUndoEntry(w,v,C))}},{key:"validateSwapRowIndexes",value:function(w,v){if(!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w); 3128this.validateRowOrColumnMapping(w,v,"row")}},{key:"testColumnOrderForArrays",value:function(w,v){var C;v=B(v);try{for(v.s();!(C=v.n()).done;){var y=F(C.value,2),z=y[0];if(z!==y[1]){var E=e.AbsoluteCellRange.spanFrom({sheet:w,col:z,row:0},1,1/0);if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(E))throw new h.SourceLocationHasArrayError;}}}catch(H){v.e(H)}finally{v.f()}}},{key:"setColumnOrder",value:function(w,v){this.validateSwapColumnIndexes(w,v);this.testColumnOrderForArrays(w,v);this.undoRedo.clearRedoStack(); 3129this.clipboardOperations.abortCut();var C=this.operations.setColumnOrder(w,v);this.undoRedo.saveOperation(new r.SetColumnOrderUndoEntry(w,v,C))}},{key:"validateSwapColumnIndexes",value:function(w,v){if(!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w);this.validateRowOrColumnMapping(w,v,"column")}},{key:"testRowOrderForArrays",value:function(w,v){var C;v=B(v);try{for(v.s();!(C=v.n()).done;){var y=F(C.value,2),z=y[0];if(z!==y[1]){var E=e.AbsoluteCellRange.spanFrom({sheet:w,col:0, 3130row:z},1/0,1);if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(E))throw new h.SourceLocationHasArrayError;}}}catch(H){v.e(H)}finally{v.f()}}}
3130,{key:"mappingFromOrder",value:function(w,v,C){if(!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w);w="row"===C?this.dependencyGraph.getSheetHeight(w):this.dependencyGraph.getSheetWidth(w);if(v.length!==w)throw new h.InvalidArgumentsError("number of ".concat(C,"s provided to be sheet ").concat("row"===C?"height":"width","."));C= 3131[];for(var y=0;y<w;y++)v[y]!==y&&C.push([y,v[y]]);return C}},{key:"undo",value:function(){if(this.undoRedo.isUndoStackEmpty())throw new h.NoOperationToUndoError;this.clipboardOperations.abortCut();this.undoRedo.undo()}},{key:"redo",value:function(){if(this.undoRedo.isRedoStackEmpty())throw new h.NoOperationToRedoError;this.clipboardOperations.abortCut();this.undoRedo.redo()}},{key:"addNamedExpression",value:function(w,v,C,y){this.ensureItIsPossibleToAddNamedExpression(w,v,C);this.operations.addNamedExpression(w, 3132v,C,y);this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();this.undoRedo.saveOperation(new r.AddNamedExpressionUndoEntry(w,v,C,y))}},{key:"changeNamedExpressionExpression",value:function(w,v,C,y){this.ensureItIsPossibleToChangeNamedExpression(w,C,v);var z=F(this.operations.changeNamedExpressionExpression(w,C,v,y),2);w=z[0];z=z[1];this.undoRedo.clearRedoStack();this.clipboardOperations.abortCut();this.undoRedo.saveOperation(new r.ChangeNamedExpressionUndoEntry(w,C,z,v,y))}},{key:"removeNamedExpression", 3133value:function(w,v){this.ensureScopeIdIsValid(v);var C=F(this.operations.removeNamedExpression(w,v),2);w=C[0];C=C[1];return this.undoRedo.clearRedoStack(),this.clipboardOperations.abortCut(),this.undoRedo.saveOperation(new r.RemoveNamedExpressionUndoEntry(w,C,v)),w}},{key:"ensureItIsPossibleToAddNamedExpression",value:function(w,v,C){this.ensureScopeIdIsValid(C);this.ensureNamedExpressionNameIsValid(w,C);this.ensureNamedExpressionIsValid(v)}},{key:"ensureItIsPossibleToChangeNamedExpression",value:function(w, 3134v,C){if(this.ensureScopeIdIsValid(C),void 0===this.namedExpressions.namedExpressionForScope(w,C))throw new h.NamedExpressionDoesNotExistError(w);this.ensureNamedExpressionIsValid(v)}},{key:"isItPossibleToRemoveNamedExpression",value:function(w,v){if(this.ensureScopeIdIsValid(v),void 0===this.namedExpressions.namedExpressionForScope(w,v))throw new h.NamedExpressionDoesNotExistError(w);}},{key:"ensureItIsPossibleToAddRows",value:function(w){if(!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w); 3135for(var v=this.dependencyGraph.getSheetHeight(w),C=arguments.length,y=Array(1<C?C-1:0),z=1;z<C;z++)y[z-1]=arguments[z];C=y.map(function(E){return E[1]}).reduce(function(E,H){return E+H},0);if(v+C>this.maxRows)throw new h.SheetSizeLimitExceededError;for(v=0;v<y.length;v++)if(C=F(y[v],2),z=C[1],!p(C[0])||!q(z))throw new h.InvalidArgumentsError("row number to be nonnegative and number of rows to add to be positive.");}},{key:"ensureItIsPossibleToRemoveRows",value:function(w){for(var v=arguments.length, 3136C=Array(1<v?v-1:0),y=1;y<v;y++)C[y-1]=arguments[y];for(v=0;v<C.length;v++){var z=F(C[v],2);y=z[0];z=y+z[1]-1;if(!p(y)||!p(z))throw new h.InvalidArgumentsError("starting and ending row to be nonnegative.");if(z<y)throw new h.InvalidArgumentsError("starting row to be smaller than the ending row.");if(!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w);}}},{key:"ensureItIsPossibleToAddColumns",value:function(w){if(!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w); 3137for(var v=this.dependencyGraph.getSheetWidth(w),C=arguments.length,y=Array(1<C?C-1:0),z=1;z<C;z++)y[z-1]=arguments[z];C=y.map(function(E){return E[1]}).reduce(function(E,H){return E+H},0);if(v+C>this.maxColumns)throw new h.SheetSizeLimitExceededError;for(v=0;v<y.length;v++)if(C=F(y[v],2),z=C[1],!p(C[0])||!q(z))throw new h.InvalidArgumentsError("column number to be nonnegative and number of columns to add to be positive.");}},{key:"ensureItIsPossibleToRemoveColumns",value:function(w){for(var v=arguments.length, 3138C=Array(1<v?v-1:0),y=1;y<v;y++)C[y-1]=arguments[y];for(v=0;v<C.length;v++){var z=F(C[v],2);y=z[0];z=y+z[1]-1;if(!p(y)||!p(z))throw new h.InvalidArgumentsError("starting and ending column to be nonnegative.");if(z<y)throw new h.InvalidArgumentsError("starting column to be smaller than the ending column.");if(!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w);}}},{key:"ensureItIsPossibleToMoveRows",value:function(w,v,C,y){this.ensureItIsPossibleToAddRows(w,[y,C]);var z=Object(c.simpleCellAddress)(w, 31390,v),E=Object(c.simpleCellAddress)(w,0,y);if(!this.sheetMapping.hasSheetWithId(w)||Object(c.invalidSimpleCellAddress)(z)||Object(c.invalidSimpleCellAddress)(E)||!q(C)||y<=v+C&&y>=v)throw new h.InvalidArgumentsError("a valid range of rows to move.");v=this.dependencyGraph.getSheetWidth(w);C=e.AbsoluteCellRange.spanFrom(z,v,C);if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(C))throw new h.SourceLocationHasArrayError;if(0<y&&this.dependencyGraph.arrayMapping.isFormulaArrayInAllRows(l.RowsSpan.fromNumberOfRows(w, 3140y-1,2)))throw new h.TargetLocationHasArrayError;}},{key:"ensureItIsPossibleToMoveColumns",value:function(w,v,C,y){this.ensureItIsPossibleToAddColumns(w,[y,C]);var z=Object(c.simpleCellAddress)(w,v,0),E=Object(c.simpleCellAddress)(w,y,0);if(!this.sheetMapping.hasSheetWithId(w)||Object(c.invalidSimpleCellAddress)(z)||Object(c.invalidSimpleCellAddress)(E)||!q(C)||y<=v+C&&y>=v)throw new h.InvalidArgumentsError("a valid range of columns to move.");v=this.dependencyGraph.getSheetHeight(w);C=e.AbsoluteCellRange.spanFrom(z, 3141C,v);if(this.dependencyGraph.arrayMapping.isFormulaArrayInRange(C))throw new h.SourceLocationHasArrayError;if(0<y&&this.dependencyGraph.arrayMapping.isFormulaArrayInAllColumns(l.ColumnsSpan.fromNumberOfColumns(w,y-1,2)))throw new h.TargetLocationHasArrayError;}},{key:"ensureItIsPossibleToAddSheet",value:function(w){if(this.sheetMapping.hasSheetWithName(w))throw new h.SheetNameAlreadyTakenError(w);}},{key:"ensureItIsPossibleToRenameSheet",value:function(w,v){if(!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w); 3142var C=this.sheetMapping.get(v);if(void 0!==C&&C!==w)throw new h.SheetNameAlreadyTakenError(v);}},{key:"ensureItIsPossibleToChangeContent",value:function(w){if(Object(c.invalidSimpleCellAddress)(w))throw new h.InvalidAddressError(w);if(!this.sheetMapping.hasSheetWithId(w.sheet))throw new h.NoSheetWithIdError(w.sheet);}},{key:"ensureItIsPossibleToChangeCellContents",value:function(w,v){v=Object(n.findBoundaries)(v);w=e.AbsoluteCellRange.spanFrom(w,v.width,v.height);this.ensureRangeInSizeLimits(w);
3142var C; 3143w=B(w.addresses(this.dependencyGraph));try{for(w.s();!(C=w.n()).done;)this.ensureItIsPossibleToChangeContent(C.value)}catch(y){w.e(y)}finally{w.f()}}},{key:"ensureItIsPossibleToChangeSheetContents",value:function(w,v){v=Object(n.findBoundaries)(v);w=e.AbsoluteCellRange.spanFrom(Object(c.simpleCellAddress)(w,0,0),v.width,v.height);this.ensureRangeInSizeLimits(w)}},{key:"ensureRangeInSizeLimits",value:function(w){if(w.exceedsSheetSizeLimits(this.maxColumns,this.maxRows))throw new h.SheetSizeLimitExceededError; 3144}},{key:"isThereSomethingToUndo",value:function(){return!this.undoRedo.isUndoStackEmpty()}},{key:"isThereSomethingToRedo",value:function(){return!this.undoRedo.isRedoStackEmpty()}},{key:"getAndClearContentChanges",value:function(){return this.operations.getAndClearContentChanges()}},{key:"ensureScopeIdIsValid",value:function(w){if(void 0!==w&&!this.sheetMapping.hasSheetWithId(w))throw new h.NoSheetWithIdError(w);}},{key:"validateRowOrColumnMapping",value:function(w,v,C){w="row"===C?this.dependencyGraph.getSheetHeight(w): 3145this.dependencyGraph.getSheetWidth(w);var y=v.map(function(E){E=F(E,2);var H=E[0];return E[1],H}).sort(function(E,H){return E-H});v=v.map(function(E){E=F(E,2);return E[0],E[1]}).sort(function(E,H){return E-H});for(var z=0;z<y.length;z++){if(!p(y[z])||y[z]>=w)throw new h.InvalidArgumentsError("".concat(C," numbers to be nonnegative integers and less than sheet ").concat("row"===C?"height":"width","."));if(y[z]===y[z+1])throw new h.InvalidArgumentsError("source ".concat(C," numbers to be unique.")); 3146if(y[z]!==v[z])throw new h.InvalidArgumentsError("target ".concat(C," numbers to be permutation of source ").concat(C," numbers."));}}},{key:"ensureNamedExpressionNameIsValid",value:function(w,v){if(!this.namedExpressions.isNameValid(w))throw new h.NamedExpressionNameIsInvalidError(w);if(!this.namedExpressions.isNameAvailable(w,v))throw new h.NamedExpressionNameIsAlreadyTakenError(w);}},{key:"ensureNamedExpressionIsValid",value:function(w){w=this.cellContentParser.parse(w);if(w instanceof d.CellContent.Formula&& 3147(w=this.parser.parse(w.formula,Object(c.simpleCellAddress)(-1,0,0)),Object(k.doesContainRelativeReferences)(w.ast)))throw new h.NoRelativeAddressesAllowedError;}}],x(t.prototype,u),Object.defineProperty(t,"prototype",{writable:!1}),t}()},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d= 31480;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}(); 3149return function(){var d=x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=this}return d}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)} 3150a.r(b);a.d(b,"AddColumnsTransformer",function(){return p});a(93);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=function(e){function c(k){var f;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return(f=h.call(this)).columnsSpan=k,f}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(f&&f.prototype,{constructor:{value:k,writable:!0,configurable:!0}});Object.defineProperty(k, 3151"prototype",{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c);return d=[{key:"sheet",get:function(){return this.columnsSpan.sheet}},{key:"isIrreversible",value:function(){return!1}},{key:"transformRowRangeAst",value:function(k,f){return k}},{key:"transformCellRange",value:function(k,f,n){return this.transformRange(k,f,n)}},{key:"transformRowRange",value:function(k,f,n){throw Error("Not implemented");}},{key:"transformColumnRange",value:function(k,f,n){return this.transformRange(k,f,n)}},{key:"transformCellAddress", 3152value:function(k,f){var n=Object(q.absoluteSheetReference)(k,f);if(n!==this.columnsSpan.sheet&&f.sheet!==this.columnsSpan.sheet)return!1;var l=k.toSimpleColumnAddress(f);return n===this.columnsSpan.sheet&&f.sheet!==this.columnsSpan.sheet?this.columnsSpan.columnStart<=l.col&&k.shiftedByColumns(this.columnsSpan.numberOfColumns):f.sheet===this.columnsSpan.sheet&&n!==this.columnsSpan.sheet?!k.isColumnAbsolute()&&!(f.col<this.columnsSpan.columnStart)&&k.shiftedByColumns(-this.columnsSpan.numberOfColumns): 3153k.isColumnAbsolute()?!(k.col<this.columnsSpan.columnStart)&&k.shiftedByColumns(this.columnsSpan.numberOfColumns):k.toSimpleColumnAddress(f).col<this.columnsSpan.columnStart?!(f.col<this.columnsSpan.columnStart)&&k.shiftedByColumns(-this.columnsSpan.numberOfColumns):f.col<this.columnsSpan.columnStart&&k.shiftedByColumns(this.columnsSpan.numberOfColumns)}},{key:"fixNodeAddress",value:function(k){return this.columnsSpan.sheet===k.sheet&&this.columnsSpan.columnStart<=k.col?Object.assign(Object.assign({}, 3154k),{col:k.col+this.columnsSpan.numberOfColumns}):k}},{key:"transformRange",value:function(k,f,n){var l=this.transformCellAddress(k,n);n=this.transformCellAddress(f,n);return l===q.ErrorType.REF||n===q.ErrorType.REF?q.ErrorType.REF:!(!l&&!n)&&[l||k,n||f]}}],B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(a(145).Transformer)},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"== 3155typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}
3155function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 3156try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d=x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=this}return d}}function x(e){return(x= 3157Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)}a.r(b);a.d(b,"CleanOutOfScopeDependenciesTransformer",function(){return p});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=function(e){function c(k){var f;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return(f=h.call(this)).sheet=k,f}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function"); 3158k.prototype=Object.create(f&&f.prototype,{constructor:{value:k,writable:!0,configurable:!0}});Object.defineProperty(k,"prototype",{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c);return d=[{key:"isIrreversible",value:function(){return!0}},{key:"fixNodeAddress",value:function(k){return k}},{key:"transformCellAddress",value:function(k,f){return!!k.isInvalid(f)&&q.ErrorType.REF}},{key:"transformCellRange",value:function(k,f,n){return!(!k.isInvalid(n)&&!f.isInvalid(n))&&q.ErrorType.REF}},{key:"transformColumnRange", 3159value:function(k,f,n){return!(!k.isInvalid(n)&&!f.isInvalid(n))&&q.ErrorType.REF}},{key:"transformRowRange",value:function(k,f,n){return!(!k.isInvalid(n)&&!f.isInvalid(n))&&q.ErrorType.REF}}],B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(a(145).Transformer)},function(g,b,a){function F(n){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype? 3160"symbol":typeof l})(n)}function B(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function");}function D(n,l){for(var r=0;r<l.length;r++){var m=l[r];m.enumerable=m.enumerable||!1;m.configurable=!0;"value"in m&&(m.writable=!0);Object.defineProperty(n,m.key,m)}}function A(n,l,r){return l&&D(n.prototype,l),r&&D(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function x(n,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function"); 3161n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,writable:!0,configurable:!0}});Object.defineProperty(n,"prototype",{writable:!1});l&&q(n,l)}function q(n,l){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,m){return r.__proto__=m,r})(n,l)}function p(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})), 3162!0}catch(r){return!1}}();return function(){var r=e(n);if(l){var m=e(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);if(!r||"object"!==F(r)&&"function"!=typeof r){if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");r=this}return r}}function e(n){return(e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__|| 3163Object.getPrototypeOf(l)})(n)}a.r(b);a.d(b,"MoveCellsTransformer",function(){return k});a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var c=a(24),d=a(74),h=a(232);g=a(145);var k=function(n){function l(m,t,u,w){var v;return B(this,l),(v=r.call(this)).sourceRange=m,v.toRight=t,v.toBottom=u,v.toSheet=w,v.dependentFormulaTransformer=new f(m,t,u,w),v}x(l,n);var r=p(l);return A(l,[{key:"sheet",get:function(){return this.sourceRange.sheet}},{key:"isIrreversible",value:function(){return!0}},{key:"transformSingleAst", 3164value:function(m,t){return this.sourceRange.addressInRange(t)?[this.transformAst(m,t),this.fixNodeAddress(t)]:this.dependentFormulaTransformer.transformSingleAst(m,t)}},{key:"fixNodeAddress",value:function(m){return Object(c.simpleCellAddress)(this.toSheet,m.col+this.toRight,m.row+this.toBottom)}},{key:"transformCellAddress",value:function(m,t){return this.transformAddress(m,t)}},{key:"transformCellRange",value:function(m,t,u){return this.transformRange(m,t,u)}},{key:"transformColumnRange",value:function(m, 3165t,u){return this.transformRange(m,t,u)}},{key:"transformRowRange",value:function(m,t,u){return this.transformRange(m,t,u)}},{key:"transformAddress",value:function(m,t){var u=this.sourceRange;return m instanceof d.CellAddress&&(t=m.toSimpleCellAddress(t),u.addressInRange(t))?m.shiftAbsoluteDimensions(this.toRight,this.toBottom):m.shiftRelativeDimensions(-this.toRight,-this.toBottom)}},{key:"transformRange",value:function(m,t,u){var w=this.sourceRange;if(m instanceof d.CellAddress&&t instanceof d.CellAddress){var v= 3166m.toSimpleCellAddress(u);u=t.toSimpleCellAddress(u);if(w.addressInRange(v)&&w.addressInRange(u))return[m.shiftAbsoluteDimensions(this.toRight,this.toBottom),t.shiftAbsoluteDimensions(this.toRight,this.toBottom)]}return[m.shiftRelativeDimensions(-this.toRight,-this.toBottom),t.shiftRelativeDimensions(-this.toRight,-this.toBottom)]}}]),l}(g.Transformer),f=function(n){function l(m,t,u,w){var v;return B(this,l),(v=r.call(this)).sourceRange=m,v.toRight=t,v.toBottom=u,v.toSheet=w,v}x(l,n);var r=p(l);return A(l, 3167[{key:"sheet",get:function(){return this.sourceRange.sheet}},{key:"isIrreversible",value:function(){return!0}},{key:"fixNodeAddress",value:function(m){return m}},{key:"transformCellAddress",value:function(m,t){return!!this.shouldMove(m,t)&&m.moved(this.toSheet,this.toRight,this.toBottom)}},{key:"transformCellRange",value:function(m,t,u){return this.transformRange(m,t,u)}},{key:"transformColumnRange",value:function(m,t,u){return this.transformRange(m,t,u)}},{key:"transformRowRange",value:function(m, 3168t,u){return this.transformRange(m,t,u)}},{key:"shouldMove",value:function(m,t){return m instanceof d.CellAddress?this.sourceRange.addressInRange(m.toSimpleCellAddress(t)):m instanceof h.RowAddress?this.sourceRange.rowInRange(m.toSimpleRowAddress(t))&&!this.sourceRange.isFinite():this.sourceRange.columnInRange(m.toSimpleColumnAddress(t))&&!this.sourceRange.isFinite()}},{key:"transformRange",value:function(m,t,u){m=this.transformCellAddress(m,u);t=this.transformCellAddress(t,u);return!(!m||!t)&&[m, 3169t]}}]),l}(g.Transformer)},function(g,b,a){function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(e)}function B(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}
3169function D(e,c){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind(): 3170function(d,h){return d.__proto__=h,d})(e,c)}function A(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d=x(e);if(c){var h=x(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);if(!d||"object"!==F(d)&&"function"!=typeof d){if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined"); 3171if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=this}return d}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)})(e)}a.r(b);a.d(b,"RemoveColumnsTransformer",function(){return p});a(93);a(25);a(0);a(7);a(8);a(9);a(10);a(3);a(2);a(4);var q=a(24),p=function(e){function c(k){var f;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");return(f= 3172h.call(this)).columnsSpan=k,f}!function(k,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(f&&f.prototype,{constructor:{value:k,writable:!0,configurable:!0}});Object.defineProperty(k,"prototype",{writable:!1});f&&D(k,f)}(c,e);var d,h=A(c);return d=[{key:"sheet",get:function(){return this.columnsSpan.sheet}},{key:"isIrreversible",value:function(){return!0}},{key:"transformRowRangeAst",value:function(k,f){return k}}, 3173{key:"transformCellRange",value:function(k,f,n){return this.transformRange(k,f,n)}},{key:"transformRowRange",value:function(k,f,n){throw Error("Not implemented");}},{key:"transformColumnRange",value:function(k,f,n){return this.transformRange(k,f,n)}},{key:"transformCellAddress",value:function(k,f){var n=Object(q.absoluteSheetReference)(k,f);if(this.columnsSpan.sheet!==f.sheet&&this.columnsSpan.sheet!==n)return!1;if(this.columnsSpan.sheet!==f.sheet&&this.columnsSpan.sheet===n){var l=k.toSimpleColumnAddress(f); 3174if(l.col<this.columnsSpan.columnStart)return!1;if(l.col>this.columnsSpan.columnEnd)return k.shiftedByColumns(-this.columnsSpan.numberOfColumns)}if(this.columnsSpan.sheet===f.sheet&&this.columnsSpan.sheet!==n){if(k.isColumnAbsolute()||f.col<this.columnsSpan.columnStart)return!1;if(f.col>this.columnsSpan.columnEnd)return k.shiftedByColumns(this.columnsSpan.numberOfColumns)}if(this.columnsSpan.sheet===f.sheet&&this.columnsSpan.sheet===n)if(k.isColumnAbsolute()){if(k.col<this.columnsSpan.columnStart)return!1; 3175if(k.col>this.columnsSpan.columnEnd)return k.shiftedByColumns(-this.columnsSpan.numberOfColumns)}else if(n=k.toSimpleColumnAddress(f),n.col<this.columnsSpan.columnStart){if(f.col<this.columnsSpan.columnStart)return!1;if(f.col>this.columnsSpan.columnEnd)return k.shiftedByColumns(this.columnsSpan.numberOfColumns)}else if(n.col>this.columnsSpan.columnEnd){if(f.col<this.columnsSpan.columnStart)return k.shiftedByColumns(-this.columnsSpan.numberOfColumns);if(f.col>this.columnsSpan.columnEnd)return!1}return q.ErrorType.REF}}, 3176{key:"fixNodeAddress",value:function(k){return this.columnsSpan.sheet===k.sheet&&this.columnsSpan.columnStart<=k.col?Object.assign(Object.assign({},k),{col:k.col-this.columnsSpan.numberOfColumns}):k}},{key:"transformRange",value:function(k,f,n){var l=Object(q.absoluteSheetReference)(k,n),r=k,m=f;if(this.columnsSpan.sheet===l){l=k.toSimpleColumnAddress(n);var t=f.toSimpleColumnAddress(n);if(this.columnsSpan.columnStart<=l.col&&this.columnsSpan.columnEnd>=t.col)return q.ErrorType.REF;l.col>=this.columnsSpan.columnStart&& 3177l.col<=this.columnsSpan.columnEnd&&(r=k.shiftedByColumns(this.columnsSpan.columnEnd-l.col+1));t.col>=this.columnsSpan.columnStart&&t.col<=this.columnsSpan.columnEnd&&(m=f.shiftedByColumns(-(t.col-this.columnsSpan.columnStart+1)))}k=this.transformCellAddress(r,n);n=this.transformCellAddress(m,n);if(!1===k&&!1===n)return[r,m];if(k===q.ErrorType.REF||n===q.ErrorType.REF)throw Error("Cannot happen");return[k||r,n||m]}}],B(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}(a(145).Transformer)}, 3178function(g,b,a){function F(h){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(h)}function B(h,k){if(!(h=function(f){if(Array.isArray(f))return f}(h)||function(f,n){var l=null==f?null:"undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(null!=l){var r,m=[],t=!0,u=!1;try{for(l=l.call(f);!(t=(r=l.next()).done)&&(m.push(r.value), 3179!n||m.length!==n);t=!0);}catch(v){u=!0;var w=v}finally{try{t||null==l.return||l.return()}finally{if(u)throw w;}}return m}}
3179(h,k)||D(h,k)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return h}function D(h,k){if(h){if("string"==typeof h)return A(h,k);var f=Object.prototype.toString.call(h).slice(8,-1);return"Object"===f&&h.constructor&&(f=h.constructor.name),"Map"===f||"Set"===f?Array.from(h): 3180"Arguments"===f||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?A(h,k):void 0}}function A(h,k){(null==k||k>h.length)&&(k=h.length);for(var f=0,n=Array(k);f<k;f++)n[f]=h[f];return n}function x(h,k){for(var f=0;f<k.length;f++){var n=k[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(h,n.key,n)}}function q(h,k){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,n){return f.__proto__=n,f})(h,k)}function p(h){var k=function(){if("undefined"== 3181typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=e(h);if(k){var n=e(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);if(!f||"object"!==F(f)&&"function"!=typeof f){if(void 0!==f)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3182f=this}return f}}function e(h){return(e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)})(h)}a.r(b);a.d(b,"RemoveSheetTransformer",function(){return d});a(25);a(0);a(7);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var c=a(24),d=function(h){function k(l){var r;if(!(this instanceof k))throw new TypeError("Cannot call a class as a function");return(r=n.call(this)).sheet=l,r}!function(l,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function"); 3183l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,writable:!0,configurable:!0}});Object.defineProperty(l,"prototype",{writable:!1});r&&q(l,r)}(k,h);var f,n=p(k);return f=[{key:"isIrreversible",value:function(){return!0}},{key:"performEagerTransformations",value:function(l,r){var m;r=function(w,v){var C="undefined"!=typeof Symbol&&w[Symbol.iterator]||w["@@iterator"];if(!C){if(Array.isArray(w)||(C=D(w))||v&&w&&"number"==typeof w.length){C&&(w=C);var y=0;v=function(){};return{s:v,n:function(){return y>= 3184w.length?{done:!0}:{done:!1,value:w[y++]}},e:function(G){throw G;},f:v}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var z,E=!0,H=!1;return{s:function(){C=C.call(w)},n:function(){var G=C.next();return E=G.done,G},e:function(G){H=!0;z=G},f:function(){try{E||null==C.return||C.return()}finally{if(H)throw z;}}}}(l.arrayFormulaNodes());try{for(r.s();!(m=r.n()).done;){var t=m.value,u=B(this.transformSingleAst(t.getFormula(l.lazilyTransformingAstService), 3185t.getAddress(l.lazilyTransformingAstService)),1)[0];t.setFormula(u)}}catch(w){r.e(w)}finally{r.f()}}},{key:"fixNodeAddress",value:function(l){return l}},{key:"transformCellAddress",value:function(l,r){return this.transformAddress(l)}},{key:"transformCellRange",value:function(l,r,m){return this.transformAddress(l)}},{key:"transformColumnRange",value:function(l,r,m){return this.transformAddress(l)}},{key:"transformRowRange",value:function(l,r,m){return this.transformAddress(l)}},{key:"transformAddress", 3186value:function(l){return l.sheet===this.sheet&&c.ErrorType.REF}}],x(k.prototype,f),Object.defineProperty(k,"prototype",{writable:!1}),k}(a(145).Transformer)},function(g,b,a){function F(l,r){var m="undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"];if(!m){if(Array.isArray(l)||(m=function(C,y){if(C){if("string"==typeof C)return B(C,y);var z=Object.prototype.toString.call(C).slice(8,-1);"Object"===z&&C.constructor&&(z=C.constructor.name);if("Map"===z||"Set"===z)return Array.from(C);if("Arguments"=== 3187z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return B(C,y)}}(l))||r&&l&&"number"==typeof l.length){m&&(l=m);var t=0;r=function(){};return{s:r,n:function(){return t>=l.length?{done:!0}:{done:!1,value:l[t++]}},e:function(C){throw C;},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var u,w=!0,v=!1;return{s:function(){m=m.call(l)},n:function(){var C=m.next();return w=C.done,C},e:function(C){v= 3188!0;u=C},f:function(){try{w||null==m.return||m.return()}finally{if(v)throw u;}}}}function B(l,r){(null==r||r>l.length)&&(r=l.length);for(var m=0,t=Array(r);m<r;m++)t[m]=l[m];return t}function D(l,r){for(var m=0;m<r.length;m++){var t=r[m];t.enumerable=t.enumerable||!1;t.configurable=!0;"value"in t&&(t.writable=!0);Object.defineProperty(l,t.key,t)}}a.r(b);a.d(b,"Evaluator",function(){return n});a(0);a(27);a(13);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var A=a(91),x=a(237),q=a(24),p=a(285),e= 3189a(131),c=a(123),d=a(198),h=a(51),k=a(82),f=a(133),n=function(){function l(m,t,u,w,v,C){if
3189(!(this instanceof l))throw new TypeError("Cannot call a class as a function");!0;this.config=m;this.stats=t;this.interpreter=u;this.lazilyTransformingAstService=w;this.dependencyGraph=v;this.columnSearch=C}var r;return r=[{key:"run",value:function(){var m=this;this.stats.start(f.StatType.TOP_SORT);var t=this.dependencyGraph.topSortWithScc(),u=t.sorted,w=t.cycled;this.stats.end(f.StatType.TOP_SORT);this.stats.measure(f.StatType.EVALUATION, 3190function(){m.recomputeFormulas(w,u)})}},{key:"partialRun",value:function(m){var t=this,u=p.ContentChanges.empty();return this.stats.measure(f.StatType.EVALUATION,function(){t.dependencyGraph.graph.getTopSortedWithSccSubgraphFrom(m,function(w){if(w instanceof c.FormulaVertex){var v=w.isComputed()?w.getCellValue():void 0,C=t.recomputeFormulaVertexValue(w);return C!==v?(w=w.getAddress(t.lazilyTransformingAstService),u.addChange(C,w),t.columnSearch.change(Object(h.getRawValue)(v),Object(h.getRawValue)(C), 3191w),!0):!1}return!(w instanceof e.RangeVertex&&(w.clearCache(),0))},function(w){if(w instanceof e.RangeVertex)w.clearCache();else if(w instanceof c.FormulaVertex){var v=w.getAddress(t.lazilyTransformingAstService);t.columnSearch.remove(Object(h.getRawValue)(w.valueOrUndef()),v);var C=new q.CellError(q.ErrorType.CYCLE,void 0,w);w.setCellValue(C);u.addChange(C,v)}})}),u}},{key:"runAndForget",value:function(m,t,u){var w,v=this,C=[];u=F(Object(x.absolutizeDependencies)(u,t));try{for(u.s();!(w=u.n()).done;){var y= 3192w.value;if(y instanceof A.AbsoluteCellRange){var z=y;if(void 0===this.dependencyGraph.getRange(z.start,z.end)){var E=new e.RangeVertex(z);this.dependencyGraph.rangeMapping.setRange(E);C.push(E)}}}}catch(H){u.e(H)}finally{u.f()}m=this.evaluateAstToCellValue(m,new d.InterpreterState(t,this.config.useArrayArithmetic));
3192return C.forEach(function(H){v.dependencyGraph.rangeMapping.removeRange(H)}),m}},{key:"recomputeFormulas",value:function(m,t){var u=this;m.forEach(function(w){w instanceof c.FormulaVertex&& 3193w.setCellValue(new q.CellError(q.ErrorType.CYCLE,void 0,w))});t.forEach(function(w){if(w instanceof c.FormulaVertex){var v=u.recomputeFormulaVertexValue(w);w=w.getAddress(u.lazilyTransformingAstService);u.columnSearch.add(Object(h.getRawValue)(v),w)}else w instanceof e.RangeVertex&&w.clearCache()})}},{key:"recomputeFormulaVertexValue",value:function(m){var t=m.getAddress(this.lazilyTransformingAstService);if(m instanceof e.ArrayVertex&&(m.array.size.isRef||!this.dependencyGraph.isThereSpaceForArray(m)))return m.setNoSpace(); 3194var u=m.getFormula(this.lazilyTransformingAstService);t=this.evaluateAstToCellValue(u,new d.InterpreterState(t,this.config.useArrayArithmetic,m));return m.setCellValue(t)}},{key:"evaluateAstToCellValue",value:function(m,t){m=this.interpreter.evaluateAst(m,t);return m instanceof k.SimpleRangeValue?m:m===h.EmptyValue&&this.config.evaluateNullToZero?0:m}}],D(l.prototype,r),Object.defineProperty(l,"prototype",{writable:!1}),l}()},function(g,b){var a=Math.log,F=Math.LOG10E;g.exports=Math.log10||function(B){return a(B)* 3195F}},function(g,b,a){function F(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function");}function B(f,n){for(var l=0;l<n.length;l++){var r=n[l];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}function D(f,n,l){return n&&B(f.prototype,n),l&&B(f,l),Object.defineProperty(f,"prototype",{writable:!1}),f}a.r(b);a.d(b,"GraphBuilder",function(){return h});a.d(b,"SimpleStrategy",function(){return k});a(0);a(27);a(3);a(32); 3196a(2);a(4);var A=a(237),x=a(132),q=a(24),p=a(201),e=a(131),c=a(51),d=a(133),h=function(){function f(n,l,r,m,t,u){F(this,f);this.dependencyGraph=n;this.columnSearch=l;this.parser=r;this.cellContentParser=m;this.stats=t;this.arraySizePredictor=u;this.buildStrategy=new k(n,l,r,t,m,u)}return D(f,[{key:"buildGraph",value:function(n,l){var r=this,m=l.measure(d.StatType.COLLECT_DEPENDENCIES,function(){return r.buildStrategy.run(n)});this.dependencyGraph.getAndClearContentChanges();l.measure(d.StatType.PROCESS_DEPENDENCIES, 3197function(){return r.processDependencies(m)})}},{key:"processDependencies",value:function(n){var l=this;n.forEach(function(r,m){l.dependencyGraph.processCellDependencies(r,m)})}}]),f}(),k=function(){function f(n,l,r,m,t,u){F(this,f);this.dependencyGraph=n;this.columnIndex=l;this.parser=r;this.stats=m;this.cellContentParser=t;this.arraySizePredictor=u}return D(f,[{key:"run",value:function(n){var l=this,r=new Map,m;for(m in n)for(var t=this.dependencyGraph.getSheetId(m),u=n[m],w=0;w<u.length;++w)for(var v= 3198u[w],C=function(z){var E=v[z],H=Object(q.simpleCellAddress)(t,z,w),G=l.cellContentParser.parse(E);G instanceof p.CellContent.Formula?(z=l.stats.measure(d.StatType.PARSER,function(){return l.parser.parse(G.formula,H)}),0<z.errors.length?(l.shrinkArrayIfNeeded(H),z=new e.ParsingErrorVertex(z.errors,G.formula),l.dependencyGraph.addVertex(H,z)):(l.shrinkArrayIfNeeded(H),E=l.arraySizePredictor.checkArraySize(z.ast,H),E.isScalar()?(E=new e.FormulaCellVertex(z.ast,H,0),r.set(E,Object(A.absolutizeDependencies)(z.dependencies, 3199H)),l.dependencyGraph.addVertex(H,E),z.hasVolatileFunction&&l.dependencyGraph.markAsVolatile(E),z.hasStructuralChangeFunction&&l.dependencyGraph.markAsDependentOnStructureChange(E)):(E=new e.ArrayVertex(z.ast,H,new x.ArraySize(E.width,E.height)),r.set(E,Object(A.absolutizeDependencies)(z.dependencies,H)),l.dependencyGraph.addArrayVertex(H,E)))):G instanceof p.CellContent.Empty||(l.shrinkArrayIfNeeded(H),z=new e.ValueCellVertex(G.value,E),l.columnIndex.add(Object(c.getRawValue)(G.value),H),l.dependencyGraph.addVertex(H, 3200z))},y=0;y<v.length;++y)C(y);return r}},{key:"shrinkArrayIfNeeded",value:function(n){n=this.dependencyGraph.getCell(n);n instanceof e.ArrayVertex&&this.dependencyGraph.shrinkArrayToCorner(n)}}]),f}()},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h]; 3201k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}
3201function D(c,d){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function A(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h= 3202x(c);if(d){var k=x(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!==F(h)&&"function"!=typeof h){if(void 0!==h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=this}return h}}function x(c){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b); 3203a.d(b,"VersionPlugin",function(){return e});a(3);a(32);a(0);a(2);a(4);a(13);a(18);a(25);a(7);a(8);a(9);a(10);var q=a(200);g=a(37);var p=new Map([["gpl-v3",1],["missing",2],["invalid",3],["expired",4]]),e=function(c){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(n&&n.prototype, 3204{constructor:{value:f,writable:!0,configurable:!0}});Object.defineProperty(f,"prototype",{writable:!1});n&&D(f,n)}(d,c);var h,k=A(d);return h=[{key:"version",value:function(f,n){var l=this;return this.runFunction(f.args,n,this.metadata("VERSION"),function(){var r,m=l.config,t=m.licenseKeyValidityState;m=m.licenseKey;return p.has(m)?r=p.get(m):p.has(t)?r=p.get(t):"valid"===t&&(r=m.slice(-5)),"HyperFormula v".concat(q.HyperFormula.version,", ").concat(r)})}}],B(d.prototype,h),Object.defineProperty(d, 3205"prototype",{writable:!1}),d}(g.FunctionPlugin);e.implementedFunctions={VERSION:{method:"version",parameters:[]}}},function(g,b,a){function F(v){var C=Array.isArray(v)?x(v):void 0;C||(C="undefined"!=typeof Symbol&&null!=v[Symbol.iterator]||null!=v["@@iterator"]?Array.from(v):void 0);if(!(v=C||A(v)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return v}function B(v,C){var y="undefined"!=typeof Symbol&& 3206v[Symbol.iterator]||v["@@iterator"];if(!y){if(Array.isArray(v)||(y=A(v))||C&&v&&"number"==typeof v.length){y&&(v=y);var z=0;C=function(){};return{s:C,n:function(){return z>=v.length?{done:!0}:{done:!1,value:v[z++]}},e:function(I){throw I;},f:C}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var E,H=!0,G=!1;return{s:function(){y=y.call(v)},n:function(){var I=y.next();return H=I.done,I},e:function(I){G= 3207!0;E=I},f:function(){try{H||null==y.return||y.return()}finally{if(G)throw E;}}}}function D(v,C){if(!(v=function(y){if(Array.isArray(y))return y}(v)||function(y,z){var E=null==y?null:"undefined"!=typeof Symbol&&y[Symbol.iterator]||y["@@iterator"];if(null!=E){var H,G=[],I=!0,K=!1;try{for(E=E.call(y);!(I=(H=E.next()).done)&&(G.push(H.value),!z||G.length!==z);I=!0);}catch(P){K=!0;var J=P}finally{try{I||null==E.return||E.return()}finally{if(K)throw J;}}return G}}(v,C)||A(v,C)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 3208return v}function A(v,C){if(v){if("string"==typeof v)return x(v,C);var y=Object.prototype.toString.call(v).slice(8,-1);return"Object"===y&&v.constructor&&(y=v.constructor.name),"Map"===y||"Set"===y?Array.from(v):"Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?x(v,C):void 0}}function x(v,C){(null==C||C>v.length)&&(C=v.length);for(var y=0,z=Array(C);y<C;y++)z[y]=v[y];return z}function q(v,C){for(var y=0;y<C.length;y++){var z=C[y];z.enumerable=z.enumerable||!1;z.configurable=!0;"value"in 3209z&&(z.writable=!0);Object.defineProperty(v,z.key,z)}}function p(v,C){return C instanceof h.CellError?C:v(C)}function e(v,C,y){return C instanceof h.CellError?C:y instanceof h.CellError?y:v(C,y)}a.r(b);a.d(b,"Interpreter",function(){return w});a(18);a(36);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(13);a(26);a(22);a(12);var c=a(91),d=a(384),h=a(24),k=a(46),f=a(106),n=a(113),l=a(742),r=a(305),m=a(198),t=a(51),u=a(82),w=function(){function v(y,z,E,H,G,I,K,J,P,S){var R=this;if(!(this instanceof v))throw new TypeError("Cannot call a class as a function"); 3210!0;this.config=y;this.dependencyGraph=z;this.columnSearch=E;this.stats=H;this.arithmeticHelper=G;this.functionRegistry=I;this.namedExpressions=K;this.serialization=J;this.arraySizePredictor=P;this.dateTimeHelper=S;this.equalOp=function(O,N){return e(R.arithmeticHelper.eq,O,N)};this.notEqualOp=function(O,N){return e(R.arithmeticHelper.neq,O,N)};this.greaterThanOp=function(O,N){return e(R.arithmeticHelper.gt,O,N)};this.lessThanOp=function(O,N){return e(R.arithmeticHelper.lt,O,N)};this.greaterThanOrEqualOp= 3211function(O,N){return e(R.arithmeticHelper.geq,O,N)};this.lessThanOrEqualOp=function(O,N){return e(R.arithmeticHelper.leq,O,N)};this.concatOp=function(O,N){return e(R.arithmeticHelper.concat,Object(n.coerceScalarToString)(O),Object(n.coerceScalarToString)(N))};this.plusOp=function(O,N){return e(R.arithmeticHelper.addWithEpsilon,R.arithmeticHelper.coerceScalarToNumberOrError(O),R.arithmeticHelper.coerceScalarToNumberOrError(N))};this.minusOp=function(O,N){return e(R.arithmeticHelper.subtract,R.arithmeticHelper.coerceScalarToNumberOrError(O), 3212R.arithmeticHelper.coerceScalarToNumberOrError(N))};this.timesOp=function(O,N){return e(R.arithmeticHelper.multiply,R.arithmeticHelper.coerceScalarToNumberOrError(O),R.arithmeticHelper.coerceScalarToNumberOrError(N))};this.powerOp=function(O,N){return e(R.arithmeticHelper.pow,R.arithmeticHelper.coerceScalarToNumberOrError(O),R.arithmeticHelper.coerceScalarToNumberOrError(N))};this.divOp=function(O,N){return e(R.arithmeticHelper.divide,R.arithmeticHelper.coerceScalarToNumberOrError(O),R.arithmeticHelper.coerceScalarToNumberOrError(N))}; 3213this.unaryMinusOp=function(O){return p(R.arithmeticHelper.unaryMinus,R.arithmeticHelper.coerceScalarToNumberOrError(O))};this.percentOp=function(O){return p(R.arithmeticHelper.unaryPercent,R.arithmeticHelper.coerceScalarToNumberOrError(O))};this.unaryPlusOp=function(O){return R.arithmeticHelper.unaryPlus(O)};this.functionRegistry.initializePlugins(this);this.criterionBuilder=new l.CriterionBuilder(y)}var C;return C=[{key:"evaluateAst",value:function(y,z){y=this.evaluateAstWithoutPostprocessing(y, 3214z);if(Object(t.isExtendedNumber)(y)){if(Object(n.isNumberOverflow)(Object(t.getRawValue)(y)))return new h.CellError(h.ErrorType.NUM,k.ErrorMessage.NaN);y=Object(t.cloneNumber)(y,Object(n.fixNegativeZero)(Object(t.getRawValue)(y)))}y instanceof u.SimpleRangeValue&&1===y.height()&&1===y.width()&&(y=D(y.data,1),y=D(y[0],1)[0]);z=z.formulaVertex;return y instanceof h.CellError&&void 0!==z?y.attachRootVertex(z):y}},{key:"evaluateAstWithoutPostprocessing",value:function(y,z){switch(y.type){case f.AstNodeType.EMPTY:return t.EmptyValue; 3215case f.AstNodeType.CELL_REFERENCE:return z=y.reference.toSimpleCellAddress(z.formulaAddress),Object(h.invalidSimpleCellAddress)(z)?new h.CellError(h.ErrorType.REF,k.ErrorMessage.BadRef):this.dependencyGraph.getCellValue(z);
3215case f.AstNodeType.NUMBER:case f.AstNodeType.STRING:return y.value;case f.AstNodeType.CONCATENATE_OP:var E=this.evaluateAst(y.left,z);y=this.evaluateAst(y.right,z);return this.binaryRangeWrapper(this.concatOp,E,y,z);case f.AstNodeType.EQUALS_OP:return E=this.evaluateAst(y.left, 3216z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.equalOp,E,y,z);case f.AstNodeType.NOT_EQUAL_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.notEqualOp,E,y,z);case f.AstNodeType.GREATER_THAN_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.greaterThanOp,E,y,z);case f.AstNodeType.LESS_THAN_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.lessThanOp, 3217E,y,z);case f.AstNodeType.GREATER_THAN_OR_EQUAL_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.greaterThanOrEqualOp,E,y,z);case f.AstNodeType.LESS_THAN_OR_EQUAL_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.lessThanOrEqualOp,E,y,z);case f.AstNodeType.PLUS_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.plusOp,E,y,z);case f.AstNodeType.MINUS_OP:return E= 3218this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.minusOp,E,y,z);case f.AstNodeType.TIMES_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.timesOp,E,y,z);case f.AstNodeType.POWER_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.powerOp,E,y,z);case f.AstNodeType.DIV_OP:return E=this.evaluateAst(y.left,z),y=this.evaluateAst(y.right,z),this.binaryRangeWrapper(this.divOp, 3219E,y,z);case f.AstNodeType.PLUS_UNARY_OP:return y=this.evaluateAst(y.value,z),this.unaryRangeWrapper(this.unaryPlusOp,y,z);case f.AstNodeType.MINUS_UNARY_OP:return y=this.evaluateAst(y.value,z),this.unaryRangeWrapper(this.unaryMinusOp,y,z);case f.AstNodeType.PERCENT_OP:return y=this.evaluateAst(y.value,z),this.unaryRangeWrapper(this.percentOp,y,z);case f.AstNodeType.FUNCTION_CALL:if("valid"!==this.config.licenseKeyValidityState&&!r.FunctionRegistry.functionIsProtected(y.procedureName))return new h.CellError(h.ErrorType.LIC, 3220k.ErrorMessage.LicenseKey(this.config.licenseKeyValidityState));E=this.functionRegistry.getFunction(y.procedureName);return void 0!==E?E(y,new m.InterpreterState(z.formulaAddress,z.arraysFlag||this.functionRegistry.isArrayFunction(y.procedureName),z.formulaVertex)):new h.CellError(h.ErrorType.NAME,k.ErrorMessage.FunctionName(y.procedureName));case f.AstNodeType.NAMED_EXPRESSION:return(z=this.namedExpressions.nearestNamedExpression(y.expressionName,z.formulaAddress.sheet))?this.dependencyGraph.getCellValue(z.address): 3221new h.CellError(h.ErrorType.NAME,k.ErrorMessage.NamedExpressionName(y.expressionName));case f.AstNodeType.CELL_RANGE:if(!this.rangeSpansOneSheet(y))return new h.CellError(h.ErrorType.REF,k.ErrorMessage.RangeManySheets);z=c.AbsoluteCellRange.fromCellRange(y,z.formulaAddress);if(y=this.dependencyGraph.getArray(z)){y=y.array;if(y instanceof d.NotComputedArray)throw Error("Array should be already computed");if(y instanceof h.CellError)return y;if(y instanceof d.ArrayValue)return u.SimpleRangeValue.fromRange(y.raw(), 3222z,this.dependencyGraph);throw Error("Unknown array");}return u.SimpleRangeValue.onlyRange(z,this.dependencyGraph);case f.AstNodeType.COLUMN_RANGE:if(!this.rangeSpansOneSheet(y))return new h.CellError(h.ErrorType.REF,k.ErrorMessage.RangeManySheets);z=c.AbsoluteColumnRange.fromColumnRange(y,z.formulaAddress);return u.SimpleRangeValue.onlyRange(z,this.dependencyGraph);case f.AstNodeType.ROW_RANGE:if(!this.rangeSpansOneSheet(y))return new h.CellError(h.ErrorType.REF,k.ErrorMessage.RangeManySheets);z= 3223c.AbsoluteRowRange.fromRowRangeAst(y,z.formulaAddress);return u.SimpleRangeValue.onlyRange(z,this.dependencyGraph);case f.AstNodeType.PARENTHESIS:return this.evaluateAst(y.expression,z);case f.AstNodeType.ARRAY:var H=void 0,G=[];y=B(y.args);try{for(y.s();!(E=y.n()).done;){var I,K=void 0,J=[],P=B(E.value);try{for(P.s();!(I=P.n()).done;){var S=Object(n.coerceToRange)(this.evaluateAst(I.value,z)),R=S.height();if(void 0===K)K=R,J.push.apply(J,F(S.data));else{if(K!==R)return new h.CellError(h.ErrorType.REF, 3224k.ErrorMessage.SizeMismatch);for(var O=0;O<R;O++){var N;(N=J[O]).push.apply(N,F(S.data[O]))}}}}catch(M){P.e(M)}finally{P.f()}var Q=J[0].length;if(void 0===H)H=Q;else if(H!==Q)return new h.CellError(h.ErrorType.REF,k.ErrorMessage.SizeMismatch);G.push.apply(G,J)}}catch(M){y.e(M)}finally{y.f()}return u.SimpleRangeValue.onlyValues(G);case f.AstNodeType.ERROR_WITH_RAW_INPUT:case f.AstNodeType.ERROR:return y.error}}},{key:"rangeSpansOneSheet",value:function(y){return y.start.sheet===y.end.sheet}},{key:"unaryRangeWrapper", 3225value:function(y,z,E){var H;return(z instanceof u.SimpleRangeValue&&!E.arraysFlag&&(z=null!==(H=Object(n.coerceRangeToScalar)(z,E))&&void 0!==H?H:new h.CellError(h.ErrorType.VALUE,k.ErrorMessage.ScalarExpected)),z instanceof h.CellError)?z:z instanceof u.SimpleRangeValue?(z=z.data.map(function(G){return G.map(y)}),u.SimpleRangeValue.onlyValues(z)):y(z)}},{key:"binaryRangeWrapper",value:function(y,z,E,H){var G,I;if(z instanceof u.SimpleRangeValue&&!H.arraysFlag&&(z=null!==(G=Object(n.coerceRangeToScalar)(z, 3226H))&&void 0!==G?G:new h.CellError(h.ErrorType.VALUE,k.ErrorMessage.ScalarExpected)),z instanceof h.CellError)return z;if(E instanceof u.SimpleRangeValue&&!H.arraysFlag&&(E=null!==(I=Object(n.coerceRangeToScalar)(E,H))&&void 0!==I?I:new h.CellError(h.ErrorType.VALUE,k.ErrorMessage.ScalarExpected)),E instanceof h.CellError)return E;if(z instanceof u.SimpleRangeValue||E instanceof u.SimpleRangeValue){if(!(z instanceof u.SimpleRangeValue)){if(E.isAdHoc()){E=E.data;for(H=0;H<E.length;H++)for(G=0;G<E[0].length;G++)E[H][G]= 3227y(z,E[H][G]);return u.SimpleRangeValue.onlyValues(E)}z=u.SimpleRangeValue.fromScalar(z)}if(!(E instanceof u.SimpleRangeValue)){if(z.isAdHoc()){z=z.data;for(H=0;H<z.length;H++)for(G=0;G<z[0].length;G++)z[H][G]=y(z[H][G],E);return u.SimpleRangeValue.onlyValues(z)}E=u.SimpleRangeValue.fromScalar(E)}if(z.width()===E.width()&&z.height()===E.height()){if(z.isAdHoc()){z=z.data;E=E.data;for(H=0;H<z.length;H++)for(G=0;G<z[0].length;G++)z[H][G]=y(z[H][G],E[H][G]);return u.SimpleRangeValue.onlyValues(z)}if(E.isAdHoc()){z= 3228z.data;
3228E=E.data;for(H=0;H<z.length;H++)for(G=0;G<z[0].length;G++)E[H][G]=y(z[H][G],E[H][G]);return u.SimpleRangeValue.onlyValues(E)}}H=Math.max(z.width(),E.width());G=Math.max(z.height(),E.height());I=Array(G);for(var K=0;K<G;K++)I[K]=Array(H);for(K=0;K<G;K++)for(var J=1!==z.height()?K:0,P=1!==E.height()?K:0,S=0;S<H;S++){var R=1!==z.width()?S:0,O=1!==E.width()?S:0;J<z.height()&&P<E.height()&&R<z.width()&&O<E.width()?I[K][S]=y(z.data[J][R],E.data[P][O]):I[K][S]=new h.CellError(h.ErrorType.NA)}return u.SimpleRangeValue.onlyValues(I)}return y(z, 3229E)}}],q(v.prototype,C),Object.defineProperty(v,"prototype",{writable:!1}),v}()},function(g,b,a){function F(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}a.r(b);a.d(b,"CriterionType",function(){return B});a.d(b,"buildCriterion",function(){return A});a.d(b,"CriterionBuilder",function(){return x});a.d(b,"buildCriterionLambda",function(){return p});a(12);var B,D=a(51);!function(e){e.GREATER_THAN= 3230"GREATER_THAN";e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL";e.LESS_THAN="LESS_THAN";e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL";e.NOT_EQUAL="NOT_EQUAL";e.EQUAL="EQUAL"}(B||(B={}));var A=function(e,c){return{operator:e,value:c}},x=function(){function e(d){var h,k,f,n;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");!0;this.trueString=null!==(k=null===(h=d.translationPackage.getMaybeFunctionTranslation("TRUE"))||void 0===h?void 0:h.toLowerCase())&&void 0!==k?k:"true"; 3231this.falseString=null!==(n=null===(f=d.translationPackage.getMaybeFunctionTranslation("FALSE"))||void 0===f?void 0:f.toLowerCase())&&void 0!==n?n:"false"}var c;return c=[{key:"fromCellValue",value:function(d,h){if("string"==typeof d||"boolean"==typeof d||"number"==typeof d){var k=this.parseCriterion(d,h);if(void 0!==k)return{raw:d,lambda:p(k,h)}}}},{key:"parseCriterion",value:function(d,h){if("number"==typeof d||"boolean"==typeof d)return A(B.EQUAL,d);if("string"==typeof d){var k,f,n=q.exec(d);n? 3232(f=function(l){switch(l){case "\x3e":return B.GREATER_THAN;case "\x3e\x3d":return B.GREATER_THAN_OR_EQUAL;case "\x3c":return B.LESS_THAN;case "\x3c\x3d":return B.LESS_THAN_OR_EQUAL;case "\x3c\x3e":return B.NOT_EQUAL;case "\x3d":return B.EQUAL}}(n[1]),k=n[2]):(f=B.EQUAL,k=d);d=h.coerceToMaybeNumber(k);h=k.toLowerCase()===this.trueString||k.toLowerCase()!==this.falseString&&void 0;if(void 0!==f){if(""===k)return A(f,null);if(void 0!==d)return A(f,Object(D.getRawValue)(d));if(f===B.EQUAL||f===B.NOT_EQUAL)return A(f, 3233null!=h?h:k)}}}}],F(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}(),q=/([<>=]+)(.*)/,p=function(e,c){switch(e.operator){case B.GREATER_THAN:return"number"==typeof e.value?function(d){return"number"==typeof d&&0<c.floatCmp(d,e.value)}:function(d){return!1};case B.GREATER_THAN_OR_EQUAL:return"number"==typeof e.value?function(d){return"number"==typeof d&&0<=c.floatCmp(d,e.value)}:function(d){return!1};case B.LESS_THAN:return"number"==typeof e.value?function(d){return"number"== 3234typeof d&&0>c.floatCmp(d,e.value)}:function(d){return!1};case B.LESS_THAN_OR_EQUAL:return"number"==typeof e.value?function(d){return"number"==typeof d&&0>=c.floatCmp(d,e.value)}:function(d){return!1};case B.EQUAL:return"number"==typeof e.value?function(d){if("number"==typeof d)return 0===c.floatCmp(d,e.value);if("string"==typeof d){if(""===d)return!1;d=c.coerceToMaybeNumber(d);return void 0!==d&&0===c.floatCmp(d,e.value)}return!1}:"string"==typeof e.value?c.eqMatcherFunction(e.value):"boolean"==typeof e.value? 3235function(d){return"boolean"==typeof d&&d===e.value}:function(d){return d===D.EmptyValue};case B.NOT_EQUAL:return"number"==typeof e.value?function(d){if("number"==typeof d)return 0!==c.floatCmp(d,e.value);if("string"==typeof d){if(""===d)return!0;d=c.coerceToMaybeNumber(d);return void 0===d||0!==c.floatCmp(d,e.value)}return!0}:"string"==typeof e.value?c.neqMatcherFunction(e.value):"boolean"==typeof e.value?function(d){return"boolean"!=typeof d||d!==e.value}:function(d){return d!==D.EmptyValue}}}}, 3236function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function B(){function c(R,O,N){return Object.defineProperty(R,O,{value:N,enumerable:!0,configurable:!0,writable:!0}),R[O]}function d(R,O,N,Q){O=Object.create((O&&O.prototype instanceof k?O:k).prototype);Q=new w(Q||[]);return O._invoke=function(M,T,Z){var L= 3237"suspendedStart";return function(U,V){if("executing"===L)throw Error("Generator is already running");if("completed"===L){if("throw"===U)throw V;return C()}Z.method=U;for(Z.arg=V;;){if(U=Z.delegate)if(U=m(U,Z)){if(U===J)continue;return U}if("next"===Z.method)Z.sent=Z._sent=Z.arg;else if("throw"===Z.method){if("suspendedStart"===L)throw L="completed",Z.arg;Z.dispatchException(Z.arg)}else"return"===Z.method&&Z.abrupt("return",Z.arg);L="executing";U=h(M,T,Z);if("normal"===U.type){if(L=Z.done?"completed": 3238"suspendedYield",U.arg===J)continue;return{value:U.arg,done:Z.done}}"throw"===U.type&&(L="completed",Z.method="throw",Z.arg=U.arg)}}}(R,N,Q),O}function h(R,O,N){try{return{type:"normal",arg:R.call(O,N)}}catch(Q){return{type:"throw",arg:Q}}}function k(){}function f(){}function n(){}function l(R){["next","throw","return"].forEach(function(O){c(R,O,function(N){return this._invoke(O,N)})})}function r(R,O){var N;this._invoke=function(Q,M){function T(){return new O(function(Z,L){!function ca(V,Y,aa,W){V= 3239h(R[V],R,Y);if("throw"!==V.type){var ia=V.arg;return(V=ia.value)&&"object"==F(V)&&E.call(V,"__await")?O.resolve(V.__await).then(function(ba){ca("next",ba,aa,W)},function(ba){ca("throw",ba,aa,W)}):O.resolve(V).then(function(ba){ia.value=ba;aa(ia)},function(ba){return ca("throw",ba,aa,W)})}W(V.arg)}(Q,M,Z,L)})}return N=N?N.then(T,T):T()}}function m(R,O){var N=R.iterator[O.method];if(void 0===N){if(O.delegate=null,"throw"===O.method){if(R.iterator.return&&
3239(O.method="return",O.arg=void 0,m(R,O),"throw"=== 3240O.method))return J;O.method="throw";O.arg=new TypeError("The iterator does not provide a 'throw' method")}return J}N=h(N,R.iterator,O.arg);return"throw"===N.type?(O.method="throw",O.arg=N.arg,O.delegate=null,J):(N=N.arg)?N.done?(O[R.resultName]=N.value,O.next=R.nextLoc,"return"!==O.method&&(O.method="next",O.arg=void 0),O.delegate=null,J):N:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,J)}function t(R){var O={tryLoc:R[0]};1 in R&&(O.catchLoc=R[1]);2 in R&& 3241(O.finallyLoc=R[2],O.afterLoc=R[3]);this.tryEntries.push(O)}function u(R){var O=R.completion||{};O.type="normal";delete O.arg;R.completion=O}function w(R){this.tryEntries=[{tryLoc:"root"}];R.forEach(t,this);this.reset(!0)}function v(R){if(R){var O=R[G];if(O)return O.call(R);if("function"==typeof R.next)return R;if(!isNaN(R.length)){var N=-1;O=function M(){for(;++N<R.length;)if(E.call(R,N))return M.value=R[N],M.done=!1,M;return M.value=void 0,M.done=!0,M};return O.next=O}}return{next:C}}function C(){return{value:void 0, 3242done:!0}}B=function(){return y};var y={},z=Object.prototype,E=z.hasOwnProperty,H="function"==typeof Symbol?Symbol:{},G=H.iterator||"@@iterator",I=H.asyncIterator||"@@asyncIterator",K=H.toStringTag||"@@toStringTag";try{c({},"")}catch(R){c=function(O,N,Q){return O[N]=Q}}y.wrap=d;var J={};H={};c(H,G,function(){return this});var P=Object.getPrototypeOf;(P=P&&P(P(v([]))))&&P!==z&&E.call(P,G)&&(H=P);var S=n.prototype=k.prototype=Object.create(H);return f.prototype=n,c(S,"constructor",n),c(n,"constructor", 3243f),f.displayName=c(n,K,"GeneratorFunction"),y.isGeneratorFunction=function(R){R="function"==typeof R&&R.constructor;return!!R&&(R===f||"GeneratorFunction"===(R.displayName||R.name))},y.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,n):(R.__proto__=n,c(R,K,"GeneratorFunction")),R.prototype=Object.create(S),R},y.awrap=function(R){return{__await:R}},l(r.prototype),c(r.prototype,I,function(){return this}),y.AsyncIterator=r,y.async=function(R,O,N,Q,M){void 0===M&&(M=Promise);var T= 3244new r(d(R,O,N,Q),M);return y.isGeneratorFunction(O)?T:T.next().then(function(Z){return Z.done?Z.value:T.next()})},l(S),c(S,K,"Generator"),c(S,G,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),y.keys=function(R){var O=[],N;for(N in R)O.push(N);return O.reverse(),function M(){for(;O.length;){var T=O.pop();if(T in R)return M.value=T,M.done=!1,M}return M.done=!0,M}},y.values=v,w.prototype={constructor:w,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent= 3245void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(u),!R)for(var O in this)"t"===O.charAt(0)&&E.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if("throw"===R.type)throw R.arg;return this.rval},dispatchException:function(R){function O(U,V){return T.type="throw",T.arg=R,N.next=U,V&&(N.method="next",N.arg=void 0),!!V}if(this.done)throw R;for(var N=this,Q=this.tryEntries.length-1;0<=Q;--Q){var M= 3246this.tryEntries[Q],T=M.completion;if("root"===M.tryLoc)return O("end");if(M.tryLoc<=this.prev){var Z=E.call(M,"catchLoc"),L=E.call(M,"finallyLoc");if(Z&&L){if(this.prev<M.catchLoc)return O(M.catchLoc,!0);if(this.prev<M.finallyLoc)return O(M.finallyLoc)}else if(Z){if(this.prev<M.catchLoc)return O(M.catchLoc,!0)}else{if(!L)throw Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return O(M.finallyLoc)}}}},abrupt:function(R,O){for(var N=this.tryEntries.length-1;0<=N;--N){var Q= 3247this.tryEntries[N];if(Q.tryLoc<=this.prev&&E.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var M=Q;break}}M&&("break"===R||"continue"===R)&&M.tryLoc<=O&&O<=M.finallyLoc&&(M=null);N=M?M.completion:{};return N.type=R,N.arg=O,M?(this.method="next",this.next=M.finallyLoc,J):this.complete(N)},complete:function(R,O){if("throw"===R.type)throw R.arg;return"break"===R.type||"continue"===R.type?this.next=R.arg:"return"===R.type?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):"normal"===R.type&& 3248O&&(this.next=O),J},finish:function(R){for(var O=this.tryEntries.length-1;0<=O;--O){var N=this.tryEntries[O];if(N.finallyLoc===R)return this.complete(N.completion,N.afterLoc),u(N),J}},catch:function(R){for(var O=this.tryEntries.length-1;0<=O;--O){var N=this.tryEntries[O];if(N.tryLoc===R){R=N.completion;if("throw"===R.type){var Q=R.arg;u(N)}return Q}}throw Error("illegal catch attempt");},delegateYield:function(R,O,N){return this.delegate={iterator:v(R),resultName:O,nextLoc:N},"next"===this.method&& 3249(this.arg=void 0),J}},y}function D(c,d){if(!(c=function(h){if(Array.isArray(h))return h}(c)||function(h,k){var f=null==h?null:"undefined"!=typeof Symbol&&h[Symbol.iterator]||h["@@iterator"];if(null!=f){var n,l=[],r=!0,m=!1;try{for(f=f.call(h);!(r=(n=f.next()).done)&&(l.push(n.value),!k||l.length!==k);r=!0);}catch(u){m=!0;var t=u}finally{try{r||null==f.return||f.return()}finally{if(m)throw t;}}return l}}(c,d)||function(h,k){if(h){if("string"==typeof h)return A(h,k);var f=Object.prototype.toString.call(h).slice(8, 3250-1);"Object"===f&&h.constructor&&(f=h.constructor.name);if("Map"===f||"Set"===f)return Array.from(h);if("Arguments"===f||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return A(h,k)}}
3250(c,d)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return c}function A(c,d){(null==d||d>c.length)&&(d=c.length);for(var h=0,k=Array(d);h<d;h++)k[h]=c[h];return k}function x(c,d){for(var h=0;h<d.length;h++){var k= 3251d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c,k.key,k)}}a.r(b);a.d(b,"LazilyTransformingAstService",function(){return e});a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(13);a(26);a(22);a(12);a(86);a(87);a(88);a(89);a(25);a(27);a(90);a(62);var q=a(744),p=a(133),e=function(){function c(h){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");!0;this.stats=h;this.transformations=[]}var d;return d=[{key:"version",value:function(){return this.transformations.length}}, 3252{key:"addTransformation",value:function(h){return void 0!==this.combinedTransformer?this.combinedTransformer.add(h):this.transformations.push(h),this.version()}},{key:"beginCombinedMode",value:function(h){this.combinedTransformer=new q.CombinedTransformer(h)}},{key:"commitCombinedMode",value:function(){if(void 0===this.combinedTransformer)throw"Combined mode wasn't started";return this.transformations.push(this.combinedTransformer),this.combinedTransformer=void 0,this.version()}},{key:"applyTransformations", 3253value:function(h,k,f){for(this.stats.start(p.StatType.TRANSFORM_ASTS_POSTPONED);f<this.transformations.length;f++){var n=this.transformations[f];n.isIrreversible()&&(this.undoRedo.storeDataForVersion(f,k,this.parser.computeHashFromAst(h)),this.parser.rememberNewAst(h));k=D(n.transformSingleAst(h,k),2);h=k[0];k=k[1]}h=this.parser.rememberNewAst(h);return this.stats.end(p.StatType.TRANSFORM_ASTS_POSTPONED),[h,k,this.transformations.length]}},{key:"getTransformationsFrom",value:B().mark(function n(k, 3254f){var l,r;return B().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:l=k;case 1:if(!(l<this.transformations.length)){m.next=9;break}if(r=this.transformations[l],f&&!f(r)){m.next=6;break}return m.next=6,r;case 6:l++;m.next=1;break;case 9:case "end":return m.stop()}},n,this)})}],x(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}()},function(g,b,a){function F(x,q){if(!(x=function(p){if(Array.isArray(p))return p}(x)||function(p,e){var c=null==p?null:"undefined"!=typeof Symbol&& 3255p[Symbol.iterator]||p["@@iterator"];if(null!=c){var d,h=[],k=!0,f=!1;try{for(c=c.call(p);!(k=(d=c.next()).done)&&(h.push(d.value),!e||h.length!==e);k=!0);}catch(l){f=!0;var n=l}finally{try{k||null==c.return||c.return()}finally{if(f)throw n;}}return h}}(x,q)||function(p,e){if(p){if("string"==typeof p)return B(p,e);var c=Object.prototype.toString.call(p).slice(8,-1);"Object"===c&&p.constructor&&(c=p.constructor.name);if("Map"===c||"Set"===c)return Array.from(p);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return B(p, 3256e)}}(x,q)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return x}function B(x,q){(null==q||q>x.length)&&(q=x.length);for(var p=0,e=Array(q);p<q;p++)e[p]=x[p];return e}function D(x,q){for(var p=0;p<q.length;p++){var e=q[p];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(x,e.key,e)}}a.r(b);a.d(b,"CombinedTransformer",function(){return A}); 3257a(0);a(27);a(8);a(9);a(10);a(3);a(2);a(4);a(13);a(26);a(22);a(12);var A=function(){function x(p){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");!0;this.sheet=p;this.transformations=[]}var q;return q=[{key:"add",value:function(p){this.transformations.push(p)}},{key:"performEagerTransformations",value:function(p,e){this.transformations.forEach(function(c){return c.performEagerTransformations(p,e)})}},{key:"transformSingleAst",value:function(p,e){var c=p,d=e;return this.transformations.forEach(function(h){h= 3258F(h.transformSingleAst(c,d),2);c=h[0];d=h[1]}),[c,d]}},{key:"isIrreversible",value:function(){return!0}}],D(x.prototype,q),Object.defineProperty(x,"prototype",{writable:!1}),x}()},function(g,b,a){function F(A,x,q){return x.useColumnIndex?new D.ColumnIndex(A,x,q):new B.ColumnBinarySearch(A,x)}a.r(b);a.d(b,"buildColumnSearchStrategy",function(){return F});var B=a(398),D=a(746)},function(g,b,a){function F(m,t){if(!(m=function(u){if(Array.isArray(u))return u}(m)||function(u,w){var v=null==u?null:"undefined"!= 3259typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];
3259if(null!=v){var C,y=[],z=!0,E=!1;try{for(v=v.call(u);!(z=(C=v.next()).done)&&(y.push(C.value),!w||y.length!==w);z=!0);}catch(G){E=!0;var H=G}finally{try{z||null==v.return||v.return()}finally{if(E)throw H;}}return y}}(m,t)||D(m,t)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return m}function B(m,t){var u="undefined"!=typeof Symbol&& 3260m[Symbol.iterator]||m["@@iterator"];if(!u){if(Array.isArray(m)||(u=D(m))||t&&m&&"number"==typeof m.length){u&&(m=u);var w=0;t=function(){};return{s:t,n:function(){return w>=m.length?{done:!0}:{done:!1,value:m[w++]}},e:function(z){throw z;},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var v,C=!0,y=!1;return{s:function(){u=u.call(m)},n:function(){var z=u.next();return C=z.done,z},e:function(z){y= 3261!0;v=z},f:function(){try{C||null==u.return||u.return()}finally{if(y)throw v;}}}}function D(m,t){if(m){if("string"==typeof m)return A(m,t);var u=Object.prototype.toString.call(m).slice(8,-1);return"Object"===u&&m.constructor&&(u=m.constructor.name),"Map"===u||"Set"===u?Array.from(m):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?A(m,t):void 0}}function A(m,t){(null==t||t>m.length)&&(t=m.length);for(var u=0,w=Array(t);u<t;u++)w[u]=m[u];return w}function x(m,t){for(var u=0;u<t.length;u++){var w= 3262t[u];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(m,w.key,w)}}function q(m,t){for(var u=0,w=m.length-1;u<=w;){var v=Math.floor((u+w)/2);if(t>m[v])u=v+1;else{if(!(t<m[v]))return v;w=v-1}}return u}function p(m,t){for(var u=0,w=m.length-1;u<=w;){var v=Math.floor((u+w)/2);if(t>m[v])u=v+1;else{if(!(t<m[v]))return v;w=v-1}}return w}a.r(b);a.d(b,"ColumnIndex",function(){return r});a.d(b,"upperBound",function(){return q});a.d(b,"lowerBound",function(){return p}); 3263a(3);a(32);a(0);a(2);a(4);a(146);a(55);a(18);a(13);a(26);a(22);a(12);a(8);a(9);a(10);var e=a(24),c=a(394),d=a(395),h=a(113),k=a(51),f=a(82),n=a(133),l=a(398),r=function(){function m(u,w,v){if(!(this instanceof m))throw new TypeError("Cannot call a class as a function");!0;this.dependencyGraph=u;this.config=w;this.stats=v;this.index=new Map;this.transformingService=this.dependencyGraph.lazilyTransformingAstService;this.binarySearchStrategy=new l.ColumnBinarySearch(u,w)}var t;return t=[{key:"add",value:function(u, 3264w){if(!(u===k.EmptyValue||u instanceof e.CellError))if(u instanceof f.SimpleRangeValue){var v;u=B(u.entriesFromTopLeftCorner(w));try{for(u.s();!(v=u.n()).done;){var C=F(v.value,2),y=C[1];this.addSingleCellValue(Object(k.getRawValue)(C[0]),y)}}catch(z){u.e(z)}finally{u.f()}}else this.addSingleCellValue(u,w)}},{key:"remove",value:function(u,w){if(void 0!==u)if(u instanceof f.SimpleRangeValue){var v;u=B(u.entriesFromTopLeftCorner(w));try{for(u.s();!(v=u.n()).done;){var C=F(v.value,2),y=C[1];this.removeSingleValue(Object(k.getRawValue)(C[0]), 3265y)}}catch(z){u.e(z)}finally{u.f()}}else this.removeSingleValue(u,w)}},{key:"change",value:function(u,w,v){u!==w&&(this.remove(u,v),this.add(w,v))}},{key:"applyChanges",value:function(u){var w;u=B(u);try{for(u.s();!(w=u.n()).done;){var v=w.value;void 0!==v.oldValue&&this.change(Object(k.getRawValue)(v.oldValue),Object(k.getRawValue)(v.value),v.address)}}catch(C){u.e(C)}finally{u.f()}}},{key:"moveValues",value:function(u,w,v,C){var y;u=B(u);try{for(u.s();!(y=u.n()).done;){var z=F(y.value,2),E=z[0], 3266H=z[1],G=Object(e.movedSimpleCellAddress)(H,C,w,v);this.remove(E,H);this.add(E,G)}}catch(I){u.e(I)}finally{u.f()}}},{key:"removeValues",value:function(u){var w;u=B(u);try{for(u.s();!(w=u.n()).done;){var v=F(w.value,2);this.remove(v[0],v[1])}}catch(C){u.e(C)}finally{u.f()}}},{key:"find",value:function(u,w,v){var C=w.range;if(void 0===C)return this.binarySearchStrategy.find(u,w,v);this.ensureRecentData(C.sheet,C.start.col,u);var y=this.getColumnMap(C.sheet,C.start.col);if(!y)return-1;"string"==typeof u&& 3267(u=Object(h.forceNormalizeString)(u));y=y.get(u);if(!y)return this.binarySearchStrategy.find(u,w,v);var z=q(y.index,C.start.row);y=y.index[z];return y<=C.end.row?y-C.start.row:this.binarySearchStrategy.find(u,w,v)}},{key:"advancedFind",value:function(u,w){return this.binarySearchStrategy.advancedFind(u,w)}},{key:"addColumns",value:function(u){var w=this.index.get(u.sheet);if(w){var v=w.splice,C=v.apply,y=[u.columnStart,0],z=y.concat;u=Array(u.numberOfColumns);var E=Array.isArray(u)?A(u):void 0;E|| 3268(E="undefined"!=typeof Symbol&&null!=u[Symbol.iterator]||null!=u["@@iterator"]?Array.from(u):void 0);if(!(u=E||D(u)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");C.call(v,w,z.call(y,u))}}},{key:"removeColumns",value:function(u){var w=this.index.get(u.sheet);w&&w.splice(u.columnStart,u.numberOfColumns)}},{key:"removeSheet",value:function(u){this.index.delete(u)}},{key:"getColumnMap",value:function(u, 3269w){this.index.has(u)||this.index.set(u,[]);u=this.index.get(u);var v=u[w];return v||(v=new Map,u[w]=v),v}},{key:"getValueIndex",value:function(u,w,v){var C=this.getColumnMap(u,w);u=this.getColumnMap(u,w).get(v);return u||(u={version:this.transformingService.version(),index:[]},C.set(v,u)),u}},{key:"ensureRecentData",value:function(u,w,v){var C=this.getValueIndex(u,w,v),y=this.transformingService.version();if(C.version!==y){var z,E=B(this.transformingService.getTransformationsFrom(C.version,function(G){return G.sheet=== 3270u&&(G instanceof c.AddRowsTransformer||G instanceof d.RemoveRowsTransformer)}));try{for(E.s();!(z=E.n()).done;){var H=z.value;H instanceof c.AddRowsTransformer?this.addRows(w,H.rowsSpan,v):H instanceof d.RemoveRowsTransformer&&this.removeRows(w,H.rowsSpan,v)}}catch(G){E.e(G)}finally{E.f()}C.version=y}}},{key:"addSingleCellValue",value:function(u,w){var v=this;this.stats.measure(n.StatType.BUILD_COLUMN_INDEX,function(){v.ensureRecentData(w.sheet,w.col,u);"string"==typeof u&&(u=Object(h.forceNormalizeString)(u)); 3271var C=v.getValueIndex(w.sheet,w.col,u);v.addValue(C,w.row)})}},{key:"removeSingleValue",value:function(u,w){var v=this;this.stats.measure(n.StatType.BUILD_COLUMN_INDEX,function(){v.ensureRecentData(w.sheet,w.col,u);var C=v.getColumnMap(w.sheet,w.col);"string"==typeof u&&(u=Object(h.forceNormalizeString)(u));var y=C.get(u);if(y){var z=q(y.index,w.row);y.index.splice(z,1);0===y.index.length&&C.delete(u);
32710===C.size&&delete v.index.get(w.sheet)[w.col]}})}},{key:"addRows",value:function(u,w,v){u=this.getValueIndex(w.sheet, 3272u,v);this.shiftRows(u,w.rowStart,w.numberOfRows)}},{key:"removeRows",value:function(u,w,v){u=this.getValueIndex(w.sheet,u,v);this.removeRowsFromValues(u,w);this.shiftRows(u,w.rowEnd+1,-w.numberOfRows)}},{key:"addValue",value:function(u,w){var v=p(u.index,w);u.index[v]!==w&&(v===u.index.length-1?u.index.push(w):u.index.splice(v+1,0,w))}},{key:"removeRowsFromValues",value:function(u,w){var v=q(u.index,w.rowStart),C=p(u.index,w.rowEnd);u.index[v]<=w.rowEnd&&u.index.splice(v,C-v+1)}},{key:"shiftRows", 3273value:function(u,w,v){for(w=q(u.index,w);w<u.index.length;++w)u.index[w]+=v}}],x(m.prototype,t),Object.defineProperty(m,"prototype",{writable:!1}),m}()},function(g,b,a){function F(D,A){for(var x=0;x<A.length;x++){var q=A[x];q.enumerable=q.enumerable||!1;q.configurable=!0;"value"in q&&(q.writable=!0);Object.defineProperty(D,q.key,q)}}a.r(b);a.d(b,"NumberLiteralHelper",function(){return B});a(101);a(12);a(69);a(18);a(67);a(52);var B=function(){function D(x){if(!(this instanceof D))throw new TypeError("Cannot call a class as a function"); 3274!0;this.config=x;x="."===this.config.thousandSeparator?"\\".concat(this.config.thousandSeparator):this.config.thousandSeparator;var q="."===this.config.decimalSeparator?"\\".concat(this.config.decimalSeparator):this.config.decimalSeparator;this.numberPattern=new RegExp("^([+-]?((".concat(q,"\\d+)|(\\d+(").concat(x,"\\d{3,})*(").concat(q,"\\d*)?)))(e[+-]?\\d+)?$"));this.allThousandSeparatorsRegex=new RegExp("".concat(x),"g")}var A;return A=[{key:"numericStringToMaybeNumber",value:function(x){if(this.numberPattern.test(x))return x= 3275this.numericStringToNumber(x),isNaN(x)?void 0:x}},{key:"numericStringToNumber",value:function(x){x=x.replace(this.allThousandSeparatorsRegex,"").replace(this.config.decimalSeparator,".");return Number(x)}}],F(D.prototype,A),Object.defineProperty(D,"prototype",{writable:!1}),D}()},function(g,b,a){function F(e,c){var d="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!d){if(Array.isArray(e)||(d=function(l,r){if(l){if("string"==typeof l)return B(l,r);var m=Object.prototype.toString.call(l).slice(8, 3276-1);"Object"===m&&l.constructor&&(m=l.constructor.name);if("Map"===m||"Set"===m)return Array.from(l);if("Arguments"===m||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return B(l,r)}}(e))||c&&e&&"number"==typeof e.length){d&&(e=d);var h=0;c=function(){};return{s:c,n:function(){return h>=e.length?{done:!0}:{done:!1,value:e[h++]}},e:function(l){throw l;},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 3277}var k,f=!0,n=!1;return{s:function(){d=d.call(e)},n:function(){var l=d.next();return f=l.done,l},e:function(l){n=!0;k=l},f:function(){try{f||null==d.return||d.return()}finally{if(n)throw k;}}}}function B(e,c){(null==c||c>e.length)&&(c=e.length);for(var d=0,h=Array(c);d<c;d++)h[d]=e[d];return h}function D(e,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}a.r(b);a.d(b,"Serialization",function(){return p}); 3278a(36);a(13);a(0);a(26);a(22);a(2);a(12);a(8);a(9);a(10);a(3);a(4);var A=a(24),x=a(131),q=a(74),p=function(){function e(d,h,k){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");!0;this.dependencyGraph=d;this.unparser=h;this.exporter=k}var c;return c=[{key:"getCellFormula",value:function(d,h){var k=this.dependencyGraph.getCell(d);if(k instanceof x.FormulaCellVertex)return k=k.getFormula(this.dependencyGraph.lazilyTransformingAstService),h=null!=h?h:d,this.unparser.unparse(k, 3279h);if(k instanceof x.ArrayVertex){var f=k.getAddress(this.dependencyGraph.lazilyTransformingAstService);if(f.row===d.row&&f.col===d.col&&f.sheet===d.sheet&&(h=null!=h?h:d,d=k.getFormula(this.dependencyGraph.lazilyTransformingAstService),void 0!==d))return this.unparser.unparse(d,h)}else if(k instanceof x.ParsingErrorVertex)return k.getFormula()}},{key:"getCellSerialized",value:function(d,h){var k;return null!==(k=this.getCellFormula(d,h))&&void 0!==k?k:this.getRawValue(d)}},{key:"getCellValue",value:function(d){return this.exporter.exportValue(this.dependencyGraph.getScalarValue(d))}}, 3280{key:"getRawValue",value:function(d){return this.dependencyGraph.getRawValue(d)}},{key:"getSheetValues",value:function(d){var h=this;return this.genericSheetGetter(d,function(k){return h.getCellValue(k)})}},{key:"getSheetFormulas",value:function(d){var h=this;return this.genericSheetGetter(d,function(k){return h.getCellFormula(k)})}},{key:"genericSheetGetter",value:function(d,h){for(var k=this.dependencyGraph.getSheetHeight(d),f=this.dependencyGraph.getSheetWidth(d),n=Array(k),l=0;l<k;l++){n[l]=Array(f); 3281for(var r=0;r<f;r++){var m=Object(A.simpleCellAddress)(d,r,l);n[l][r]=h(m)}for(r=f-1;0<=r&&(null===n[l][r]||void 0===n[l][r]);r--)n[l].pop()}for(d=k-1;0<=d&&0===n[d].length;d--)n.pop();return n}},{key:"genericAllSheetsGetter",value:function(d){var h,k={},f=F(this.dependencyGraph.sheetMapping.displayNames());try{for(f.s();!(h=f.n()).done;){var n=h.value,l=this.dependencyGraph.sheetMapping.fetch(n);k[n]=d(l)}}catch(r){f.e(r)}finally{f.f()}return k}},{key:"getSheetSerialized",value:function(d){var h= 3282this;return this.genericSheetGetter(d,function(k){return h.getCellSerialized(k)})}},{key:"getAllSheetsValues",value:function(){var d=this;return this.genericAllSheetsGetter(function(h){return d.getSheetValues(h)})}},{key:"getAllSheetsFormulas",value:function(){var d=this;return this.genericAllSheetsGetter(function(h){return d.getSheetFormulas(h)})}},{key:"getAllSheetsSerialized",value:function(){var d=this;return this.genericAllSheetsGetter(function(h){return d.getSheetSerialized(h
3282)})}},{key:"getAllNamedExpressionsSerialized", 3283value:function(){var d,h=this,k=[],f=0,n=F(this.dependencyGraph.sheetMapping.displayNames());try{for(n.s();!(d=n.n()).done;){var l=this.dependencyGraph.sheetMapping.fetch(d.value);k[l]=f;f++}}catch(r){n.e(r)}finally{n.f()}return this.dependencyGraph.namedExpressions.getAllNamedExpressions().map(function(r){return{name:r.expression.displayName,expression:h.getCellSerialized(r.expression.address),scope:void 0!==r.scope?k[r.scope]:void 0,options:r.expression.options}})}},{key:"withNewConfig",value:function(d, 3284h){d=new q.Unparser(d,Object(q.buildLexerConfig)(d),this.dependencyGraph.sheetMapping.fetchDisplayName,h);return new e(this.dependencyGraph,d,this.exporter)}}],D(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}()},function(g,b,a){function F(x,q){if(!(x=function(p){if(Array.isArray(p))return p}(x)||function(p,e){var c=null==p?null:"undefined"!=typeof Symbol&&p[Symbol.iterator]||p["@@iterator"];if(null!=c){var d,h=[],k=!0,f=!1;try{for(c=c.call(p);!(k=(d=c.next()).done)&&(h.push(d.value), 3285!e||h.length!==e);k=!0);}catch(l){f=!0;var n=l}finally{try{k||null==c.return||c.return()}finally{if(f)throw n;}}return h}}(x,q)||function(p,e){if(p){if("string"==typeof p)return B(p,e);var c=Object.prototype.toString.call(p).slice(8,-1);"Object"===c&&p.constructor&&(c=p.constructor.name);if("Map"===c||"Set"===c)return Array.from(p);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return B(p,e)}}(x,q)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 3286return x}function B(x,q){(null==q||q>x.length)&&(q=x.length);for(var p=0,e=Array(q);p<q;p++)e[p]=x[p];return e}function D(x){for(var q=0,p=Object.entries(x);q<p.length;q++){var e=F(p[q],2),c=e[0];e=e[1];e instanceof Function?x[c]=A(e):delete x[c]}}function A(x){return function(){throw Error('The "'.concat(x,'" method cannot be called because this HyperFormula instance has been destroyed'));}}a.r(b);a.d(b,"objectDestroy",function(){return D});a(750);a(8);a(9);a(0);a(10);a(3);a(2);a(4);a(13);a(26); 3287a(22);a(12)},function(g,b,a){g=a(28);var F=a(386).entries;g({target:"Object",stat:!0},{entries:function(B){return F(B)}})},function(g,b,a){function F(c){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(c)}function B(c,d){for(var h=0;h<d.length;h++){var k=d[h];k.enumerable=k.enumerable||!1;k.configurable=!0;"value"in k&&(k.writable=!0);Object.defineProperty(c, 3288k.key,k)}}function D(){return(D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(c,d,h){var k;for(k=c;!Object.prototype.hasOwnProperty.call(k,d)&&null!==(k=q(k)););if(k)return k=Object.getOwnPropertyDescriptor(k,d),k.get?k.get.call(3>arguments.length?c:h):k.value}).apply(this,arguments)}function A(c,d){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,k){return h.__proto__=k,h})(c,d)}function x(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct|| 3289Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=q(c);if(d){var k=q(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);if(!h||"object"!==F(h)&&"function"!=typeof h){if(void 0!==h)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3290h=this}return h}}function q(c){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)})(c)}a.r(b);a.d(b,"Events",function(){return p});a.d(b,"Emitter",function(){return e});a(18);a(25);a(0);a(7);a(381);a(19);a(8);a(9);a(10);a(3);a(2);a(4);var p;g=a(752);!function(c){c.SheetAdded="sheetAdded";c.SheetRemoved="sheetRemoved";c.SheetRenamed="sheetRenamed";c.NamedExpressionAdded="namedExpressionAdded";c.NamedExpressionRemoved="namedExpressionRemoved"; 3291c.ValuesUpdated="valuesUpdated";c.EvaluationSuspended="evaluationSuspended";c.EvaluationResumed="evaluationResumed"}
3291(p||(p={}));var e=function(c){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");return k.apply(this,arguments)}!function(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,writable:!0,configurable:!0}});Object.defineProperty(f, 3292"prototype",{writable:!1});n&&A(f,n)}(d,c);var h,k=x(d);return h=[{key:"emit",value:function(f){for(var n,l=arguments.length,r=Array(1<l?l-1:0),m=1;m<l;m++)r[m-1]=arguments[m];return(n=D(q(d.prototype),"emit",this)).call.apply(n,[this,f].concat(r)),this}}],B(d.prototype,h),Object.defineProperty(d,"prototype",{writable:!1}),d}(g.TinyEmitter)},function(g,b){function a(){}a.prototype={on:function(F,B,D){var A=this.e||(this.e={});return(A[F]||(A[F]=[])).push({fn:B,ctx:D}),this},once:function(F,B,D){function A(){x.off(F, 3293A);B.apply(D,arguments)}var x=this;return A._=B,this.on(F,A,D)},emit:function(F){for(var B=[].slice.call(arguments,1),D=((this.e||(this.e={}))[F]||[]).slice(),A=0,x=D.length;A<x;A++)D[A].fn.apply(D[A].ctx,B);return this},off:function(F,B){var D=this.e||(this.e={}),A=D[F],x=[];if(A&&B)for(var q=0,p=A.length;q<p;q++)A[q].fn!==B&&A[q].fn._!==B&&x.push(A[q]);return x.length?D[F]=x:delete D[F],this}};g.exports=a;g.exports.TinyEmitter=a},function(g,b,a){a.r(b);b.default={errors:{CYCLE:"#CYCLE!",DIV_BY_ZERO:"#DIV/0!", 3294ERROR:"#ERROR!",NA:"#N/A",NAME:"#NAME?",NUM:"#NUM!",REF:"#REF!",SPILL:"#SPILL!",VALUE:"#VALUE!"},functions:{FILTER:"FILTER",ARRAY_CONSTRAIN:"ARRAY_CONSTRAIN",ARRAYFORMULA:"ARRAYFORMULA",ABS:"ABS",ACOS:"ACOS",ACOSH:"ACOSH",ACOT:"ACOT",ACOTH:"ACOTH",AND:"AND",ARABIC:"ARABIC",ASIN:"ASIN",ASINH:"ASINH",ATAN2:"ATAN2",ATAN:"ATAN",ATANH:"ATANH",AVERAGE:"AVERAGE",AVERAGEA:"AVERAGEA",AVERAGEIF:"AVERAGEIF",BASE:"BASE",BIN2DEC:"BIN2DEC",BIN2HEX:"BIN2HEX",BIN2OCT:"BIN2OCT",BITAND:"BITAND",BITLSHIFT:"BITLSHIFT", 3295BITOR:"BITOR",BITRSHIFT:"BITRSHIFT",BITXOR:"BITXOR",CEILING:"CEILING",CHAR:"CHAR",CHOOSE:"CHOOSE",CLEAN:"CLEAN",CODE:"CODE",COLUMN:"COLUMN",COLUMNS:"COLUMNS",CONCATENATE:"CONCATENATE",CORREL:"CORREL",COS:"COS",COSH:"COSH",COT:"COT",COTH:"COTH",COUNT:"COUNT",COUNTA:"COUNTA",COUNTBLANK:"COUNTBLANK",COUNTIF:"COUNTIF",COUNTIFS:"COUNTIFS",COUNTUNIQUE:"COUNTUNIQUE",CSC:"CSC",CSCH:"CSCH",CUMIPMT:"CUMIPMT",CUMPRINC:"CUMPRINC",DATE:"DATE",DATEDIF:"DATEDIF",DATEVALUE:"DATEVALUE",DAY:"DAY",DAYS360:"DAYS360", 3296DAYS:"DAYS",DB:"DB",DDB:"DDB",DEC2BIN:"DEC2BIN",DEC2HEX:"DEC2HEX",DEC2OCT:"DEC2OCT",DECIMAL:"DECIMAL",DEGREES:"DEGREES",DELTA:"DELTA",DOLLARDE:"DOLLARDE",DOLLARFR:"DOLLARFR",EDATE:"EDATE",EFFECT:"EFFECT",EOMONTH:"EOMONTH",ERF:"ERF",ERFC:"ERFC",EVEN:"EVEN",EXACT:"EXACT",EXP:"EXP",FALSE:"FALSE",FIND:"FIND",FORMULATEXT:"FORMULATEXT",FV:"FV",FVSCHEDULE:"FVSCHEDULE",HEX2BIN:"HEX2BIN",HEX2DEC:"HEX2DEC",HEX2OCT:"HEX2OCT",HLOOKUP:"HLOOKUP",HOUR:"HOUR",IF:"IF",IFERROR:"IFERROR",IFNA:"IFNA",INDEX:"INDEX",INT:"INT", 3297INTERVAL:"INTERVAL",IPMT:"IPMT",ISBINARY:"ISBINARY",ISBLANK:"ISBLANK",ISERR:"ISERR",ISERROR:"ISERROR",ISEVEN:"ISEVEN",ISFORMULA:"ISFORMULA",ISLOGICAL:"ISLOGICAL",ISNA:"ISNA",ISNONTEXT:"ISNONTEXT",ISNUMBER:"ISNUMBER",ISODD:"ISODD",ISOWEEKNUM:"ISOWEEKNUM",ISPMT:"ISPMT",ISREF:"ISREF",ISTEXT:"ISTEXT",LEFT:"LEFT",LEN:"LEN",LN:"LN",LOG10:"LOG10",LOG:"LOG",LOWER:"LOWER",MATCH:"MATCH",MAX:"MAX",MAXA:"MAXA",MAXPOOL:"MAXPOOL",MEDIAN:"MEDIAN",MEDIANPOOL:"MEDIANPOOL",MID:"MID",MIN:"MIN",MINA:"MINA",MINUTE:"MINUTE", 3298MIRR:"MIRR",MMULT:"MMULT",MOD:"MOD",MONTH:"MONTH",NA:"NA",NETWORKDAYS:"NETWORKDAYS","NETWORKDAYS.INTL":"NETWORKDAYS.INTL",NOMINAL:"NOMINAL",NOT:"NOT",NOW:"NOW",NPER:"NPER",NPV:"NPV",OCT2BIN:"OCT2BIN",OCT2DEC:"OCT2DEC",OCT2HEX:"OCT2HEX",ODD:"ODD",OFFSET:"OFFSET",OR:"OR",PI:"PI",PMT:"PMT",PDURATION:"PDURATION",PRODUCT:"PRODUCT",POWER:"POWER",PPMT:"PPMT",PROPER:"PROPER",PV:"PV",RADIANS:"RADIANS",RAND:"RAND",RATE:"RATE",REPLACE:"REPLACE",REPT:"REPT",RIGHT:"RIGHT",ROMAN:"ROMAN",ROUND:"ROUND",ROUNDDOWN:"ROUNDDOWN", 3299ROUNDUP:"ROUNDUP",ROW:"ROW",ROWS:"ROWS",RRI:"RRI",SEARCH:"SEARCH",SEC:"SEC",SECH:"SECH",SECOND:"SECOND",SHEET:"SHEET",SHEETS:"SHEETS",SIN:"SIN",SINH:"SINH",SLN:"SLN",SPLIT:"SPLIT",SQRT:"SQRT",STDEVA:"STDEVA","STDEV.P":"STDEV.P",STDEVPA:"STDEVPA","STDEV.S":"STDEV.S",SUBSTITUTE:"SUBSTITUTE",SUBTOTAL:"SUBTOTAL",SUM:"SUM",SUMIF:"SUMIF",SUMIFS:"SUMIFS",SUMPRODUCT:"SUMPRODUCT",SUMSQ:"SUMSQ",SWITCH:"SWITCH",SYD:"SYD",T:"T",TAN:"TAN",TANH:"TANH",TBILLEQ:"TBILLEQ",TBILLPRICE:"TBILLPRICE",TBILLYIELD:"TBILLYIELD", 3300TEXT:"TEXT",TIME:"TIME",TIMEVALUE:"TIMEVALUE",TODAY:"TODAY",TRANSPOSE:"TRANSPOSE",TRIM:"TRIM",TRUE:"TRUE",TRUNC:"TRUNC",UNICHAR:"UNICHAR",UNICODE:"UNICODE",UPPER:"UPPER",VARA:"VARA","VAR.P":"VAR.P",VARPA:"VARPA","VAR.S":"VAR.S",VLOOKUP:"VLOOKUP",WEEKDAY:"WEEKDAY",WEEKNUM:"WEEKNUM",WORKDAY:"WORKDAY","WORKDAY.INTL":"WORKDAY.INTL",XNPV:"XNPV",XOR:"XOR",YEAR:"YEAR",YEARFRAC:"YEARFRAC","HF.ADD":"HF.ADD","HF.CONCAT":"HF.CONCAT","HF.DIVIDE":"HF.DIVI
3300DE","HF.EQ":"HF.EQ","HF.GT":"HF.GT","HF.GTE":"HF.GTE","HF.LT":"HF.LT", 3301"HF.LTE":"HF.LTE","HF.MINUS":"HF.MINUS","HF.MULTIPLY":"HF.MULTIPLY","HF.NE":"HF.NE","HF.POW":"HF.POW","HF.UMINUS":"HF.UMINUS","HF.UNARY_PERCENT":"HF.UNARY_PERCENT","HF.UPLUS":"HF.UPLUS",VARP:"VARP",VAR:"VAR",STDEVP:"STDEVP",STDEV:"STDEV","EXPON.DIST":"EXPON.DIST",FISHER:"FISHER",FISHERINV:"FISHERINV",GAMMA:"GAMMA","GAMMA.DIST":"GAMMA.DIST",GAMMALN:"GAMMALN","GAMMALN.PRECISE":"GAMMALN.PRECISE","GAMMA.INV":"GAMMA.INV",GAUSS:"GAUSS",FACT:"FACT",FACTDOUBLE:"FACTDOUBLE",COMBIN:"COMBIN",COMBINA:"COMBINA", 3302GCD:"GCD",LCM:"LCM",MROUND:"MROUND",MULTINOMIAL:"MULTINOMIAL",QUOTIENT:"QUOTIENT",RANDBETWEEN:"RANDBETWEEN",SERIESSUM:"SERIESSUM",SIGN:"SIGN",SQRTPI:"SQRTPI",SUMX2MY2:"SUMX2MY2",SUMX2PY2:"SUMX2PY2",SUMXMY2:"SUMXMY2",EXPONDIST:"EXPONDIST",GAMMADIST:"GAMMADIST",GAMMAINV:"GAMMAINV","BETA.DIST":"BETA.DIST",BETADIST:"BETADIST","BETA.INV":"BETA.INV",BETAINV:"BETAINV","BINOM.DIST":"BINOM.DIST",BINOMDIST:"BINOMDIST","BINOM.INV":"BINOM.INV",BESSELI:"BESSELI",BESSELJ:"BESSELJ",BESSELK:"BESSELK",BESSELY:"BESSELY", 3303"CHISQ.DIST":"CHISQ.DIST","CHISQ.DIST.RT":"CHISQ.DIST.RT","CHISQ.INV":"CHISQ.INV","CHISQ.INV.RT":"CHISQ.INV.RT",CHIDIST:"CHIDIST",CHIINV:"CHIINV","F.DIST":"F.DIST","F.DIST.RT":"F.DIST.RT","F.INV":"F.INV","F.INV.RT":"F.INV.RT",FDIST:"FDIST",FINV:"FINV",WEIBULL:"WEIBULL","WEIBULL.DIST":"WEIBULL.DIST",POISSON:"POISSON","POISSON.DIST":"POISSON.DIST","HYPGEOM.DIST":"HYPGEOM.DIST",HYPGEOMDIST:"HYPGEOMDIST","T.DIST":"T.DIST","T.DIST.2T":"T.DIST.2T","T.DIST.RT":"T.DIST.RT","T.INV":"T.INV","T.INV.2T":"T.INV.2T", 3304TDIST:"TDIST",TINV:"TINV",LOGINV:"LOGINV","LOGNORM.DIST":"LOGNORM.DIST","LOGNORM.INV":"LOGNORM.INV",LOGNORMDIST:"LOGNORMDIST","NORM.DIST":"NORM.DIST","NORM.INV":"NORM.INV","NORM.S.DIST":"NORM.S.DIST","NORM.S.INV":"NORM.S.INV",NORMDIST:"NORMDIST",NORMINV:"NORMINV",NORMSDIST:"NORMSDIST",NORMSINV:"NORMSINV",PHI:"PHI","NEGBINOM.DIST":"NEGBINOM.DIST",NEGBINOMDIST:"NEGBINOMDIST",COMPLEX:"COMPLEX",IMABS:"IMABS",IMAGINARY:"IMAGINARY",IMARGUMENT:"IMARGUMENT",IMCONJUGATE:"IMCONJUGATE",IMCOS:"IMCOS",IMCOSH:"IMCOSH", 3305IMCOT:"IMCOT",IMCSC:"IMCSC",IMCSCH:"IMCSCH",IMDIV:"IMDIV",IMEXP:"IMEXP",IMLN:"IMLN",IMLOG10:"IMLOG10",IMLOG2:"IMLOG2",IMPOWER:"IMPOWER",IMPRODUCT:"IMPRODUCT",IMREAL:"IMREAL",IMSEC:"IMSEC",IMSECH:"IMSECH",IMSIN:"IMSIN",IMSINH:"IMSINH",IMSQRT:"IMSQRT",IMSUB:"IMSUB",IMSUM:"IMSUM",IMTAN:"IMTAN",LARGE:"LARGE",SMALL:"SMALL",AVEDEV:"AVEDEV",CONFIDENCE:"CONFIDENCE","CONFIDENCE.NORM":"CONFIDENCE.NORM","CONFIDENCE.T":"CONFIDENCE.T",DEVSQ:"DEVSQ",GEOMEAN:"GEOMEAN",HARMEAN:"HARMEAN",CRITBINOM:"CRITBINOM","COVARIANCE.P":"COVARIANCE.P", 3306"COVARIANCE.S":"COVARIANCE.S",COVAR:"COVAR",PEARSON:"PEARSON",RSQ:"RSQ",STANDARDIZE:"STANDARDIZE","Z.TEST":"Z.TEST",ZTEST:"ZTEST","F.TEST":"F.TEST",FTEST:"FTEST",STEYX:"STEYX",SLOPE:"SLOPE","CHISQ.TEST":"CHISQ.TEST",CHITEST:"CHITEST","T.TEST":"T.TEST",TTEST:"TTEST",SKEW:"SKEW","SKEW.P":"SKEW.P",WEIBULLDIST:"WEIBULLDIST",VARS:"VARS",TINV2T:"TINV2T",TDISTRT:"TDISTRT",TDIST2T:"TDIST2T",STDEVS:"STDEVS",FINVRT:"FINVRT",FDISTRT:"FDISTRT",CHIDISTRT:"CHIDISTRT",CHIINVRT:"CHIINVRT",COVARIANCEP:"COVARIANCEP", 3307COVARIANCES:"COVARIANCES",LOGNORMINV:"LOGNORMINV",POISSONDIST:"POISSONDIST",SKEWP:"SKEWP","CEILING.MATH":"CEILING.MATH",FLOOR:"FLOOR","FLOOR.MATH":"FLOOR.MATH","CEILING.PRECISE":"CEILING.PRECISE","FLOOR.PRECISE":"FLOOR.PRECISE","ISO.CEILING":"ISO.CEILING"},langCode:"enGB",ui:{NEW_SHEET_PREFIX:"Sheet"}}},function(g,b,a){a.r(b);var F=a(401);a.d(b,"ArrayPlugin",function(){return F.ArrayPlugin});var B=a(402);a.d(b,"AbsPlugin",function(){return B.AbsPlugin});var D=a(403);a.d(b,"BitShiftPlugin",function(){return D.BitShiftPlugin}); 3308var A=a(404);a.d(b,"BitwiseLogicOperationsPlugin",function(){return A.BitwiseLogicOperationsPlugin});var x=a(405);a.d(b,"BooleanPlugin",function(){return x.BooleanPlugin});var q=a(406);a.d(b,"CharPlugin",function(){return q.CharPlugin});var p=a(407);a.d(b,"CodePlugin",function(){return p.CodePlugin});var e=a(408);a.d(b,"CountBlankPlugin",function(){return e.CountBlankPlugin});var c=a(409);a.d(b,"CountUniquePlugin",function(){return c.CountUniquePlugin});var d=a(410);a.d(b,"DateTimePlugin",function(){return d.DateTimePlugin}); 3309var h=a(411);a.d(b,"DegreesPlugin",function(){return h.DegreesPlugin});var k=a(412);a.d(b,"DeltaPlugin",function(){return k.DeltaPlugin});var f=a(413);a.d(b,"ExpPlugin",function(){return f.ExpPlugin});var n=a(414);a.d(b,"FinancialPlugin",function(){return n.FinancialPlugin});var l=a(415);a.d(b,"FormulaTextPlugin",function(){return l.FormulaTextPlugin});var r=a(416);a.d(b,"InformationPlugin",function(){return r.InformationPlugin});var m=a(417);a.d(b,"IsEvenPlugin",function(){return m.IsEvenPlugin}); 3310var t=a(418);a.d(b,"IsOddPlugin",function(){return t.IsOddPlugin});var u=a(419);
3310a.d(b,"LogarithmPlugin",function(){return u.LogarithmPlugin});var w=a(307);a.d(b,"MathConstantsPlugin",function(){return w.MathConstantsPlugin});var v=a(420);a.d(b,"MatrixPlugin",function(){return v.MatrixPlugin});var C=a(421);a.d(b,"MedianPlugin",function(){return C.MedianPlugin});var y=a(422);a.d(b,"ModuloPlugin",function(){return y.ModuloPlugin});var z=a(423);a.d(b,"NumericAggregationPlugin",function(){return z.NumericAggregationPlugin}); 3311var E=a(424);a.d(b,"PowerPlugin",function(){return E.PowerPlugin});var H=a(425);a.d(b,"RadiansPlugin",function(){return H.RadiansPlugin});var G=a(426);a.d(b,"RadixConversionPlugin",function(){return G.RadixConversionPlugin});var I=a(427);a.d(b,"RandomPlugin",function(){return I.RandomPlugin});var K=a(428);a.d(b,"RoundingPlugin",function(){return K.RoundingPlugin});var J=a(429);a.d(b,"SqrtPlugin",function(){return J.SqrtPlugin});var P=a(430);a.d(b,"SumifPlugin",function(){return P.SumifPlugin});var S= 3312a(431);a.d(b,"SumprodPlugin",function(){return S.SumprodPlugin});var R=a(432);a.d(b,"TextPlugin",function(){return R.TextPlugin});var O=a(434);a.d(b,"TrigonometryPlugin",function(){return O.TrigonometryPlugin});var N=a(437);a.d(b,"LookupPlugin",function(){return N.LookupPlugin});var Q=a(438);a.d(b,"RomanPlugin",function(){return Q.RomanPlugin});var M=a(439);a.d(b,"SimpleArithmerticPlugin",function(){return M.SimpleArithmerticPlugin});var T=a(440);a.d(b,"StatisticalPlugin",function(){return T.StatisticalPlugin}); 3313var Z=a(442);a.d(b,"MathPlugin",function(){return Z.MathPlugin});var L=a(443);a.d(b,"ComplexPlugin",function(){return L.ComplexPlugin});var U=a(444);a.d(b,"StatisticalAggregationPlugin",function(){return U.StatisticalAggregationPlugin})},function(g,b,a){g=a(28);b=a(35);var F=a(158),B=RangeError,D=String.fromCharCode;a=String.fromCodePoint;var A=b([].join);g({target:"String",stat:!0,arity:1,forced:!!a&&1!=a.length},{fromCodePoint:function(x){for(var q,p=[],e=arguments.length,c=0;e>c;){if(q=+arguments[c++], 3314F(q,1114111)!==q)throw B(q+" is not a valid code point");p[c]=65536>q?D(q):D(55296+((q-=65536)>>10),q%1024+56320)}return A(p,"")}})},function(g,b,a){function F(v){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(C){return typeof C}:function(C){return C&&"function"==typeof Symbol&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(v)}function B(){function v(W,ca,ia){return Object.defineProperty(W,ca,{value:ia,enumerable:!0,configurable:!0,writable:!0}),W[ca]} 3315function C(W,ca,ia,ba){ca=Object.create((ca&&ca.prototype instanceof z?ca:z).prototype);ba=new S(ba||[]);return ca._invoke=function(fa,ja,qa){var ha="suspendedStart";return function(na,oa){if("executing"===ha)throw Error("Generator is already running");if("completed"===ha){if("throw"===na)throw oa;return O()}qa.method=na;for(qa.arg=oa;;
3315){if(na=qa.delegate)if(na=K(na,qa)){if(na===V)continue;return na}if("next"===qa.method)qa.sent=qa._sent=qa.arg;else if("throw"===qa.method){if("suspendedStart"===ha)throw ha= 3316"completed",qa.arg;qa.dispatchException(qa.arg)}else"return"===qa.method&&qa.abrupt("return",qa.arg);ha="executing";na=y(fa,ja,qa);if("normal"===na.type){if(ha=qa.done?"completed":"suspendedYield",na.arg===V)continue;return{value:na.arg,done:qa.done}}"throw"===na.type&&(ha="completed",qa.method="throw",qa.arg=na.arg)}}}(W,ia,ba),ca}function y(W,ca,ia){try{return{type:"normal",arg:W.call(ca,ia)}}catch(ba){return{type:"throw",arg:ba}}}function z(){}function E(){}function H(){}function G(W){["next", 3317"throw","return"].forEach(function(ca){v(W,ca,function(ia){return this._invoke(ca,ia)})})}function I(W,ca){var ia;this._invoke=function(ba,fa){function ja(){return new ca(function(qa,ha){!function va(oa,ma,pa,sa){oa=y(W[oa],W,ma);if("throw"!==oa.type){var Aa=oa.arg;return(oa=Aa.value)&&"object"==F(oa)&&M.call(oa,"__await")?ca.resolve(oa.__await).then(function(Fa){va("next",Fa,pa,sa)},function(Fa){va("throw",Fa,pa,sa)}):ca.resolve(oa).then(function(Fa){Aa.value=Fa;pa(Aa)},function(Fa){return va("throw", 3318Fa,pa,sa)})}sa(oa.arg)}(ba,fa,qa,ha)})}return ia=ia?ia.then(ja,ja):ja()}}function K(W,ca){var ia=W.iterator[ca.method];if(void 0===ia){if(ca.delegate=null,"throw"===ca.method){if(W.iterator.return&&(ca.method="return",ca.arg=void 0,K(W,ca),"throw"===ca.method))return V;ca.method="throw";ca.arg=new TypeError("The iterator does not provide a 'throw' method")}return V}ia=y(ia,W.iterator,ca.arg);return"throw"===ia.type?(ca.method="throw",ca.arg=ia.arg,ca.delegate=null,V):(ia=ia.arg)?ia.done?(ca[W.resultName]= 3319ia.value,ca.next=W.nextLoc,"return"!==ca.method&&(ca.method="next",ca.arg=void 0),ca.delegate=null,V):ia:(ca.method="throw",ca.arg=new TypeError("iterator result is not an object"),ca.delegate=null,V)}function J(W){var ca={tryLoc:W[0]};1 in W&&(ca.catchLoc=W[1]);2 in W&&(ca.finallyLoc=W[2],ca.afterLoc=W[3]);this.tryEntries.push(ca)}function P(W){var ca=W.completion||{};ca.type="normal";delete ca.arg;W.completion=ca}function S(W){this.tryEntries=[{tryLoc:"root"}];W.forEach(J,this);this.reset(!0)}function R(W){if(W){var ca= 3320W[Z];if(ca)return ca.call(W);if("function"==typeof W.next)return W;if(!isNaN(W.length)){var ia=-1;ca=function fa(){for(;++ia<W.length;)if(M.call(W,ia))return fa.value=W[ia],fa.done=!1,fa;return fa.value=void 0,fa.done=!0,fa};return ca.next=ca}}return{next:O}}function O(){return{value:void 0,done:!0}}B=function(){return N};var N={},Q=Object.prototype,M=Q.hasOwnProperty,T="function"==typeof Symbol?Symbol:{},Z=T.iterator||"@@iterator",L=T.asyncIterator||"@@asyncIterator",U=T.toStringTag||"@@toStringTag"; 3321try{v({},"")}catch(W){v=function(ca,ia,ba){return ca[ia]=ba}}N.wrap=C;var V={};T={};v(T,Z,function(){return this});var Y=Object.getPrototypeOf;(Y=Y&&Y(Y(R([]))))&&Y!==Q&&M.call(Y,Z)&&(T=Y);var aa=H.prototype=z.prototype=Object.create(T);return E.prototype=H,v(aa,"constructor",H),v(H,"constructor",E),E.displayName=v(H,U,"GeneratorFunction"),N.isGeneratorFunction=function(W){W="function"==typeof W&&W.constructor;return!!W&&(W===E||"GeneratorFunction"===(W.displayName||W.name))},N.mark=function(W){return Object.setPrototypeOf? 3322Object.setPrototypeOf(W,H):(W.__proto__=H,v(W,U,"GeneratorFunction")),W.prototype=Object.create(aa),W},N.awrap=function(W){return{__await:W}},G(I.prototype),v(I.prototype,L,function(){return this}),N.AsyncIterator=I,N.async=function(W,ca,ia,ba,fa){void 0===fa&&(fa=Promise);var ja=new I(C(W,ca,ia,ba),fa);return N.isGeneratorFunction(ca)?ja:ja.next().then(function(qa){return qa.done?qa.value:ja.next()})},G(aa),v(aa,U,"Generator"),v(aa,Z,function(){return this}),v(aa,"toString",function(){return"[object Generator]"}), 3323N.keys=function(W){var ca=[],ia;for(ia in W)ca.push(ia);return ca.reverse(),function fa(){for(;ca.length;){var ja=ca.pop();if(ja in W)return fa.value=ja,fa.done=!1,fa}return fa.done=!0,fa}},N.values=R,S.prototype={constructor:S,reset:function(W){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
3323h(P),!W)for(var ca in this)"t"===ca.charAt(0)&&M.call(this,ca)&&!isNaN(+ca.slice(1))&&(this[ca]=void 0)},stop:function(){this.done= 3324!0;var W=this.tryEntries[0].completion;if("throw"===W.type)throw W.arg;return this.rval},dispatchException:function(W){function ca(na,oa){return ja.type="throw",ja.arg=W,ia.next=na,oa&&(ia.method="next",ia.arg=void 0),!!oa}if(this.done)throw W;for(var ia=this,ba=this.tryEntries.length-1;0<=ba;--ba){var fa=this.tryEntries[ba],ja=fa.completion;if("root"===fa.tryLoc)return ca("end");if(fa.tryLoc<=this.prev){var qa=M.call(fa,"catchLoc"),ha=M.call(fa,"finallyLoc");if(qa&&ha){if(this.prev<fa.catchLoc)return ca(fa.catchLoc, 3325!0);if(this.prev<fa.finallyLoc)return ca(fa.finallyLoc)}else if(qa){if(this.prev<fa.catchLoc)return ca(fa.catchLoc,!0)}else{if(!ha)throw Error("try statement without catch or finally");if(this.prev<fa.finallyLoc)return ca(fa.finallyLoc)}}}},abrupt:function(W,ca){for(var ia=this.tryEntries.length-1;0<=ia;--ia){var ba=this.tryEntries[ia];if(ba.tryLoc<=this.prev&&M.call(ba,"finallyLoc")&&this.prev<ba.finallyLoc){var fa=ba;break}}fa&&("break"===W||"continue"===W)&&fa.tryLoc<=ca&&ca<=fa.finallyLoc&&(fa= 3326null);ia=fa?fa.completion:{};return ia.type=W,ia.arg=ca,fa?(this.method="next",this.next=fa.finallyLoc,V):this.complete(ia)},complete:function(W,ca){if("throw"===W.type)throw W.arg;return"break"===W.type||"continue"===W.type?this.next=W.arg:"return"===W.type?(this.rval=this.arg=W.arg,this.method="return",this.next="end"):"normal"===W.type&&ca&&(this.next=ca),V},finish:function(W){for(var ca=this.tryEntries.length-1;0<=ca;--ca){var ia=this.tryEntries[ca];if(ia.finallyLoc===W)return this.complete(ia.completion, 3327ia.afterLoc),P(ia),V}},catch:function(W){for(var ca=this.tryEntries.length-1;0<=ca;--ca){var ia=this.tryEntries[ca];if(ia.tryLoc===W){W=ia.completion;if("throw"===W.type){var ba=W.arg;P(ia)}return ba}}throw Error("illegal catch attempt");},delegateYield:function(W,ca,ia){return this.delegate={iterator:R(W),resultName:ca,nextLoc:ia},"next"===this.method&&(this.arg=void 0),V}},N}function D(v,C){if(!(v=function(y){if(Array.isArray(y))return y}(v)||function(y,z){var E=null==y?null:"undefined"!=typeof Symbol&& 3328y[Symbol.iterator]||y["@@iterator"];if(null!=E){var H,G=[],I=!0,K=!1;try{for(E=E.call(y);!(I=(H=E.next()).done)&&(G.push(H.value),!z||G.length!==z);I=!0);}catch(P){K=!0;var J=P}finally{try{I||null==E.return||E.return()}finally{if(K)throw J;}}return G}}(v,C)||x(v,C)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return v}function A(v,C){var y="undefined"!=typeof Symbol&&v[Symbol.iterator]|| 3329v["@@iterator"];if(!y){if(Array.isArray(v)||(y=x(v))||C&&v&&"number"==typeof v.length){y&&(v=y);var z=0;C=function(){};return{s:C,n:function(){return z>=v.length?{done:!0}:{done:!1,value:v[z++]}},e:function(I){throw I;},f:C}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var E,H=!0,G=!1;return{s:function(){y=y.call(v)},n:function(){var I=y.next();return H=I.done,I},e:function(I){G=!0;E=I}, 3330f:function(){try{H||null==y.return||y.return()}finally{if(G)throw E;}}}}function x(v,C){if(v){if("string"==typeof v)return q(v,C);var y=Object.prototype.toString.call(v).slice(8,-1);return"Object"===y&&v.constructor&&(y=v.constructor.name),"Map"===y||"Set"===y?Array.from(v):"Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?q(v,C):void 0}}function q(v,C){(null==C||C>v.length)&&(C=v.length);for(var y=0,z=Array(C);y<C;y++)z[y]=v[y];return z}function p(v,C){if(!(v instanceof C))throw new TypeError("Cannot call a class as a function"); 3331}function e(v,C){for(var y=0;y<C.length;y++){var z=C[y];z.enumerable=z.enumerable||!1;z.configurable=!0;"value"in z&&(z.writable=!0);Object.defineProperty(v,z.key,z)}}function c(v,C,y){return C&&e(v.prototype,C),y&&e(v,y),Object.defineProperty(v,"prototype",{writable:!1}),v}function d(v,C){var y,z,E;return B().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:y=A(C.addresses(v)),H.prev=1,y.s();case 3:if((z=y.n()).done){H.next=9;break}return E=z.value,H.next=7,Object(r.getRawValue)(v.getScalarValue(E)); 3332case 7:H.next=3;break;case 9:H.next=14;break;case 11:H.prev=11,H.t0=H.catch(1),y.e(H.t0);case 14:return H.prev=14,y.f(),H.finish(14);case 17:case "end":return H.stop()}},m,null,[[1,11,14,17]])}function h(v,C,y){var z,E,H,G;return B().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:z=A(y),I.prev=1,z.s();case 3:if((E=z.n()).done){I.next=15;break}if(H=E.value,(G=C.map(function(K){return Object(l.split)(K)})).every(function(K){return Object.prototype.hasOwnProperty.call(K,"value")})){I.next=8;break}return I.abrupt("return"); 3333case 8:if(!k(G.map(function(K){return K.value}),v).every(function(K){K=D(K,2);return(0,K[1])(K[0])})){I.next=12;break}return I.next=12,H;case 12:C=G.map(function(K){return K.rest});case 13:I.next=3;break;case 15:I.next=20;break;case 17:I.prev=17,I.t0=I.catch(1),z.e(I.t0);case 20:return I.prev=20,z.f(),I.finish(20);case 23:case "end":return I.stop()}},t,null,[[1,17,20,23]])}function k(v,C){for(var y=[],z=0;z<Math.min(v.length,C.length);z++)y.push([v[z],C[z]]);return y}a.r(b);
3333a.d(b,"CriterionFunctionCompute", 3334function(){return u});a.d(b,"Condition",function(){return w});a(36);a(0);a(76);a(27);a(22);a(2);a(10);a(3);a(4);a(8);a(9);a(32);a(13);a(26);a(12);a(86);a(87);a(88);a(89);a(25);a(90);a(62);var f=a(24),n=a(46),l=a(757),r=a(51),m=B().mark(d),t=B().mark(h),u=function(){function v(C,y,z,E,H){p(this,v);this.interpreter=C;this.cacheKey=y;this.reduceInitialValue=z;this.composeFunction=E;this.mapFunction=H;this.dependencyGraph=this.interpreter.dependencyGraph}return c(v,[{key:"compute",value:function(C,y){var z, 3335E=this,H=A(y);try{for(H.s();!(z=H.n()).done;)if(!z.value.conditionRange.sameDimensionsAs(C))return new f.CellError(f.ErrorType.VALUE,n.ErrorMessage.EqualLength)}catch(K){H.e(K)}finally{H.f()}var G=this.tryToGetRangeVertexForRangeValue(C);z=y.map(function(K){return E.tryToGetRangeVertexForRangeValue(K.conditionRange)});if(G&&z.every(function(K){return void 0!==K})){H=y.map(function(K){return K.criterionPackage.raw}).join(",");var I=this.findAlreadyComputedValueInCache(G,this.cacheKey(y),H);if(void 0!== 3336I)return this.interpreter.stats.incrementCriterionFunctionFullCacheUsed(),I;I=this.buildNewCriterionCache(this.cacheKey(y),y.map(function(K){return K.conditionRange.range}),C.range);return I.has(H)||I.set(H,[this.evaluateRangeValue(C,y),y.map(function(K){return K.criterionPackage.lambda})]),G.setCriterionFunctionValues(this.cacheKey(y),I),z.forEach(function(K){void 0!==K&&K.addDependentCacheRange(G)}),I.get(H)[0]}return this.evaluateRangeValue(C,y)}},{key:"tryToGetRangeVertexForRangeValue",value:function(C){C= 3337C.range;return void 0===C?void 0:this.dependencyGraph.getRange(C.start,C.end)}},{key:"reduceFunction",value:function(C){var y,z=this.reduceInitialValue;C=A(C);try{for(C.s();!(y=C.n()).done;)z=this.composeFunction(z,y.value)}catch(E){C.e(E)}finally{C.f()}return z}},{key:"findAlreadyComputedValueInCache",value:function(C,y,z){return C.getCriterionFunctionValue(y,z)}},{key:"evaluateRangeValue",value:function(C,y){var z=y.map(function(E){return E.criterionPackage.lambda});C=Array.from(C.valuesFromTopLeftCorner()).map(this.mapFunction)[Symbol.iterator](); 3338y=h(z,y.map(function(E){return E.conditionRange.iterateValuesFromTopLeftCorner()}),C);return this.reduceFunction(y)}},{key:"buildNewCriterionCache",value:function(C,y,z){var E=this,H=this.dependencyGraph.getRange(z.start,z.end);y=function(J,P,S){if(S.end.row>S.start.row){var R=Object(f.simpleCellAddress)(S.end.sheet,S.end.col,S.end.row-1);J=J.getRange(S.start,R);if(void 0!==J)return{smallerRangeVertex:J,restValuesRange:S.withStart(Object(f.simpleCellAddress)(S.start.sheet,S.start.col,S.end.row)), 3339restConditionRanges:P.map(function(O){return O.withStart(Object(f.simpleCellAddress)(O.start.sheet,O.start.col,O.end.row))})}}return{restValuesRange:S,restConditionRanges:P}}(this.dependencyGraph,y,z);z=y.smallerRangeVertex;var G=y.restConditionRanges,I=y.restValuesRange;C=void 0!==z&&this.dependencyGraph.existsEdge(z,H)?z.getCriterionFunctionValues(C):new Map;var K=new Map;
3339return C.forEach(function(J,P){var S=D(J,2);J=S[0];S=S[1];var R=h(S,G.map(function(O){return d(E.dependencyGraph,O)}),Array.from(d(E.dependencyGraph, 3340I)).map(E.mapFunction)[Symbol.iterator]());J=E.composeFunction(J,E.reduceFunction(R));E.interpreter.stats.incrementCriterionFunctionPartialCacheUsed();K.set(P,[J,S])}),K}}]),v}(),w=c(function z(C,y){p(this,z);this.conditionRange=C;this.criterionPackage=y})},function(g,b,a){function F(p){return(F="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})(p)} 3341function B(){function p(P,S,R){return Object.defineProperty(P,S,{value:R,enumerable:!0,configurable:!0,writable:!0}),P[S]}function e(P,S,R,O){S=Object.create((S&&S.prototype instanceof d?S:d).prototype);O=new t(O||[]);return S._invoke=function(N,Q,M){var T="suspendedStart";return function(Z,L){if("executing"===T)throw Error("Generator is already running");if("completed"===T){if("throw"===Z)throw L;return w()}M.method=Z;for(M.arg=L;;){if(Z=M.delegate)if(Z=l(Z,M)){if(Z===I)continue;return Z}if("next"=== 3342M.method)M.sent=M._sent=M.arg;else if("throw"===M.method){if("suspendedStart"===T)throw T="completed",M.arg;M.dispatchException(M.arg)}else"return"===M.method&&M.abrupt("return",M.arg);T="executing";Z=c(N,Q,M);if("normal"===Z.type){if(T=M.done?"completed":"suspendedYield",Z.arg===I)continue;return{value:Z.arg,done:M.done}}"throw"===Z.type&&(T="completed",M.method="throw",M.arg=Z.arg)}}}(P,R,O),S}function c(P,S,R){try{return{type:"normal",arg:P.call(S,R)}}catch(O){return{type:"throw",arg:O}}}function d(){} 3343function h(){}function k(){}function f(P){["next","throw","return"].forEach(function(S){p(P,S,function(R){return this._invoke(S,R)})})}function n(P,S){var R;this._invoke=function(O,N){function Q(){return new S(function(M,T){!function aa(L,U,V,Y){L=c(P[L],P,U);if("throw"!==L.type){var W=L.arg;return(L=W.value)&&"object"==F(L)&&y.call(L,"__await")?S.resolve(L.__await).then(function(ca){aa("next",ca,V,Y)},function(ca){aa("throw",ca,V,Y)}):S.resolve(L).then(function(ca){W.value=ca;V(W)},function(ca){return aa("throw", 3344ca,V,Y)})}Y(L.arg)}(O,N,M,T)})}return R=R?R.then(Q,Q):Q()}}function l(P,S){var R=P.iterator[S.method];if(void 0===R){if(S.delegate=null,"throw"===S.method){if(P.iterator.return&&(S.method="return",S.arg=void 0,l(P,S),"throw"===S.method))return I;S.method="throw";S.arg=new TypeError("The iterator does not provide a 'throw' method")}return I}R=c(R,P.iterator,S.arg);return"throw"===R.type?(S.method="throw",S.arg=R.arg,S.delegate=null,I):(R=R.arg)?R.done?(S[P.resultName]=R.value,S.next=P.nextLoc,"return"!== 3345S.method&&(S.method="next",S.arg=void 0),S.delegate=null,I):R:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,I)}function r(P){var S={tryLoc:P[0]};1 in P&&(S.catchLoc=P[1]);2 in P&&(S.finallyLoc=P[2],S.afterLoc=P[3]);this.tryEntries.push(S)}function m(P){var S=P.completion||{};S.type="normal";delete S.arg;P.completion=S}function t(P){this.tryEntries=[{tryLoc:"root"}];P.forEach(r,this);this.reset(!0)}function u(P){if(P){var S=P[E];if(S)return S.call(P);if("function"== 3346typeof P.next)return P;if(!isNaN(P.length)){var R=-1;S=function N(){for(;++R<P.length;)if(y.call(P,R))return N.value=P[R],N.done=!1,N;return N.value=void 0,N.done=!0,N};return S.next=S}}return{next:w}}function w(){return{value:void 0,done:!0}}B=function(){return v};var v={},C=Object.prototype,y=C.hasOwnProperty,z="function"==typeof Symbol?Symbol:{},E=z.iterator||"@@iterator",H=z.asyncIterator||"@@asyncIterator",G=z.toStringTag||"@@toStringTag";try{p({},"")}catch(P){p=function(S,R,O){return S[R]=O}}v.wrap= 3347e;var I={};z={};p(z,E,function(){return this});var K=Object.getPrototypeOf;(K=K&&K(K(u([]))))&&K!==C&&y.call(K,E)&&(z=K);var J=k.prototype=d.prototype=Object.create(z);return h.prototype=k,p(J,"constructor",k),p(k,"constructor",h),h.displayName=p(k,G,"GeneratorFunction"),v.isGeneratorFunction=function(P){P="function"==typeof P&&P.constructor;return!!P&&(P===h||"GeneratorFunction"===(P.displayName||P.name))},v.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,k):(P.__proto__=k, 3348p(P,G,"GeneratorFunction")),P.prototype=Object.create(J),P},v.awrap=function(P){return{__await:P}},f(n.prototype),p(n.prototype,H,function(){return this}),v.AsyncIterator=n,v.async=function(P,S,R,O,N){void 0===N&&(N=Promise);var Q=new n(e(P,S,R,O),N);return v.isGeneratorFunction(S)?Q:Q.next().then(function(M){return M.done?M.value:Q.next()})},f(J),p(J,G,"Generator"),p(J,E,function(){return this}),p(J,"toString",function(){return"[object Generator]"}),v.keys=function(P){var S=[],R;for(R in P)S.push(R); 3349return S.reverse(),function N(){for(;S.length;){var Q=S.pop();if(Q in P)return N.value=Q,N.done=!1,N}return N.done=!0,N}},v.values=u,t.prototype={constructor:t,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
3349h(m),!P)for(var S in this)"t"===S.charAt(0)&&y.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=void 0)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if("throw"===P.type)throw P.arg; 3350return this.rval},dispatchException:function(P){function S(Z,L){return Q.type="throw",Q.arg=P,R.next=Z,L&&(R.method="next",R.arg=void 0),!!L}if(this.done)throw P;for(var R=this,O=this.tryEntries.length-1;0<=O;--O){var N=this.tryEntries[O],Q=N.completion;if("root"===N.tryLoc)return S("end");if(N.tryLoc<=this.prev){var M=y.call(N,"catchLoc"),T=y.call(N,"finallyLoc");if(M&&T){if(this.prev<N.catchLoc)return S(N.catchLoc,!0);if(this.prev<N.finallyLoc)return S(N.finallyLoc)}else if(M){if(this.prev<N.catchLoc)return S(N.catchLoc, 3351!0)}else{if(!T)throw Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return S(N.finallyLoc)}}}},abrupt:function(P,S){for(var R=this.tryEntries.length-1;0<=R;--R){var O=this.tryEntries[R];if(O.tryLoc<=this.prev&&y.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var N=O;break}}N&&("break"===P||"continue"===P)&&N.tryLoc<=S&&S<=N.finallyLoc&&(N=null);R=N?N.completion:{};return R.type=P,R.arg=S,N?(this.method="next",this.next=N.finallyLoc,I):this.complete(R)},complete:function(P, 3352S){if("throw"===P.type)throw P.arg;return"break"===P.type||"continue"===P.type?this.next=P.arg:"return"===P.type?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):"normal"===P.type&&S&&(this.next=S),I},finish:function(P){for(var S=this.tryEntries.length-1;0<=S;--S){var R=this.tryEntries[S];if(R.finallyLoc===P)return this.complete(R.completion,R.afterLoc),m(R),I}},catch:function(P){for(var S=this.tryEntries.length-1;0<=S;--S){var R=this.tryEntries[S];if(R.tryLoc===P){P=R.completion;if("throw"=== 3353P.type){var O=P.arg;m(R)}return O}}throw Error("illegal catch attempt");},delegateYield:function(P,S,R){return this.delegate={iterator:u(P),resultName:S,nextLoc:R},"next"===this.method&&(this.arg=void 0),I}},v}function D(){return B().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:case "end":return p.stop()}},q)}function A(p){p=p[Symbol.iterator]();var e=p.next(),c=e.value;return e.done?{rest:D()}:{value:c,rest:p}}function x(p){p=p[Symbol.iterator]().next();var e=p.value;if(!p.done)return e} 3354a.r(b);a.d(b,"empty",function(){return D});a.d(b,"split",function(){return A});a.d(b,"first",function(){return x});a(10);a(3);a(0);a(2);a(4);a(8);a(9);a(86);a(87);a(88);a(89);a(25);a(27);a(26);a(90);a(62);a(13);var q=B().mark(D)},function(g,b,a){g=a(28);b=Math.asinh;var F=Math.log,B=Math.sqrt;g({target:"Math",stat:!0,forced:!(b&&0<1/b(0))},{asinh:function x(A){A=+A;return isFinite(A)&&0!=A?0>A?-x(-A):F(A+B(A*A+1)):A}})},function(g,b,a){g=a(28);var F=a(760);a=Math.acosh;var B=Math.log,D=Math.sqrt, 3355A=Math.LN2;g({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(x){x=+x;return 1>x?NaN:9.490626562425156E7<x?B(x)+A:F(x-1+D(x-1)*D(x+1))}})},function(g,b){var a=Math.log;g.exports=Math.log1p||function(F){F=+F;return-1E-8<F&&1E-8>F?F-F*F/2:a(1+F)}},function(g,b,a){g=a(28);var F=a(308),B=Math.exp;g({target:"Math",stat:!0},{tanh:function(D){D=+D;var A=F(D),x=F(-D);return A==1/0?1:x==1/0?-1:(A-x)/(B(D)+B(-D))}})},function(g,b,a){g=a(28);b=Math.atanh;var F= 3356Math.log;g({target:"Math",stat:!0,forced:!(b&&0>1/b(-0))},{atanh:function(B){B=+B;return 0==B?B:F((1+B)/(1-B))/2}})},function(g,b,a){function F(d){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}function B(d,h){for(var k=0;k<h.length;k++){var f=h[k];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(d, 3357f.key,f)}}function D(d,h){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,f){return k.__proto__=f,k})(d,h)}function A(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k=x(d);if(h){var f=x(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this, 3358arguments);if(!k||"object"!==F(k)&&"function"!=typeof k){if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");k=this}return k}}
3358function x(d){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)})(d)}a.r(b);a.d(b,"RowSearchStrategy",function(){return c});a(36);a(165);a(25);a(0);a(7);a(8);a(9); 3359a(10);a(3);a(2);a(4);var q=a(113),p=a(399),e=a(51),c=function(d){function h(n,l){var r;if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");return(r=f.call(this,l)).config=n,r.dependencyGraph=l,r}!function(n,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,writable:!0,configurable:!0}});Object.defineProperty(n,"prototype",{writable:!1});l&&D(n,l)}(h, 3360d);var k,f=A(h);return k=[{key:"find",value:function(n,l,r){"string"==typeof n&&(n=Object(q.forceNormalizeString)(n));var m=l.range;return void 0===m?l.valuesFromTopLeftCorner().map(e.getRawValue).indexOf(n):r?Object(p.rangeLowerBound)(m,n,this.dependencyGraph,"col"):this.dependencyGraph.computeListOfValuesInRange(m).findIndex(function(t){return("string"==typeof(t=Object(e.getRawValue)(t))?Object(q.forceNormalizeString)(t):t)===n})}}],B(h.prototype,k),Object.defineProperty(h,"prototype",{writable:!1}), 3361h}(a(400).AdvancedFind)},function(g,b,a){function F(v,C){for(var y=0,z=0;y<v.length;++y)z=C*z+v[y];return z}function B(v,C,y,z,E){if(0===C)return y;if(1===C)return z;v=2/v;for(var H=z,G=1;G<C;++G)H=z*G*v+E*y,y=z,z=H;return H}function D(v,C,y,z,E){return function(H,G){if(z){if(0===H)return 1==z?-1/0:1/0;if(0>H)return NaN}return 0===G?v(H):1===G?C(H):0>G?NaN:B(H,G|0,v(H),C(H),E)}}a.r(b);a.d(b,"besselj",function(){return m});a.d(b,"bessely",function(){return t});a.d(b,"besseli",function(){return u}); 3362a.d(b,"besselk",function(){return w});a(62);var A=Math,x,q,p,e,c,d,h,k,f,n,l,r,m=function(){function v(P){var S=P*P;if(8>P)P=F(y,S)/F(z,S);else{var R=P-.785398164;var O=F(E,S=64/S);S=F(H,S);P=A.sqrt(.636619772/P)*(A.cos(R)*O-A.sin(R)*S*8/P)}return P}function C(P){var S=0,R=0,O=0,N=P*P,Q=A.abs(P)-2.356194491;return 8>Math.abs(P)?S=P*F(G,N)/F(I,N):(R=F(K,N=64/N),O=F(J,N),S=A.sqrt(.636619772/A.abs(P))*(A.cos(Q)*R-A.sin(Q)*O*8/A.abs(P)),0>P&&(S=-S)),S}var y=[57568490574,-13362590354,6.516196407E8,-1.121442418E7, 336377392.33017,-184.9052456].reverse(),z=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),E=[1,-.001098628627,2.734510407E-5,-2.073370639E-6,2.093887211E-7].reverse(),H=[-.01562499995,1.430488765E-4,-6.911147651E-6,7.621095161E-7,-9.34935152E-8].reverse(),G=[72362614232,-7895059235,2.423968531E8,-2972611.439,15704.4826,-30.16036606].reverse(),I=[144725228442,2300535178,1.858330474E7,99447.43394,376.9991397,1].reverse(),K=[1,.00183105,-3.516396496E-5,2.457520174E-6,-2.40337019E-7].reverse(), 3364J=[.04687499995,-2.002690873E-4,8.449199096E-6,-8.8228987E-7,1.05787412E-7].reverse();return function O(S,R){if(R=Math.round(R),!isFinite(S))return isNaN(S)?S:0;if(0>R)return(R%2?-1:1)*O(S,-R);if(0>S)return(R%2?-1:1)*O(-S,R);if(0===R)return v(S);if(1===R)return C(S);if(0===S)return 0;var N=0;if(S>R)N=B(S,R,v(S),C(S),-1);else{for(var Q=!1,M=0,T=0,Z=1,L=2/S,U=2*A.floor((R+A.floor(A.sqrt(40*R)))/2);0<U;U--)S=U*L*Z-M,M=Z,Z=S,1E10<A.abs(Z)&&(Z*=1E-10,M*=1E-10,N*=1E-10,T*=1E-10),Q&&(T+=Z),Q=!Q,U==R&&(N= 3365M);N/=2*T-Z}return N}}(),t=(x=[-2957821389,7062834065,-5.123598036E8,1.087988129E7,-86327.92757,228.4622733].reverse(),q=[40076544269,7.452499648E8,7189466.438,47447.2647,226.1030244,1].reverse(),p=[1,-.001098628627,2.734510407E-5,-2.073370639E-6,2.093887211E-7].reverse(),e=[-.01562499995,1.430488765E-4,-6.911147651E-6,7.621095161E-7,-9.34945152E-8].reverse(),c=[-4900604943E3,127527439E4,-51534381390,7.349264551E8,-4237922.726,8511.937935].reverse(),d=[249958057E5,424441966400,3733650367,2.245904002E7, 3366102042.605,354.9632885,1].reverse(),h=[1,.00183105,-3.516396496E-5,2.457520174E-6,-2.40337019E-7].reverse(),k=[.04687499995,-2.002690873E-4,8.449199096E-6,-8.8228987E-7,1.05787412E-7].reverse(),D(function(v){var C=0,y=0,z=0,E=v*v,H=v-.785398164;return 8>v?C=F(x,E)/F(q,E)+.636619772*m(v,0)*A.log(v):(y=F(p,E=64/E),z=F(e,E),C=A.sqrt(.636619772/v)*(A.sin(H)*y+A.cos(H)*z*8/v)),C}
3366,function(v){var C=0,y=0,z=0,E=v*v,H=v-2.356194491;return 8>v?C=v*F(c,E)/F(d,E)+.636619772*(m(v,1)*A.log(v)-1/v):(y=F(h,E=64/ 3367E),z=F(k,E),C=A.sqrt(.636619772/v)*(A.sin(H)*y+A.cos(H)*z*8/v)),C},0,1,-1)),u=(f=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),n=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),l=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,3.2411E-4].reverse(),r=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function z(C,y){if(0===(y=Math.round(y)))return function(P){return 3.75>= 3368P?F(f,P*P/14.0625):A.exp(A.abs(P))/A.sqrt(A.abs(P))*F(n,3.75/A.abs(P))}(C);if(1===y)return function(P){return 3.75>P?P*F(l,P*P/14.0625):(0>P?-1:1)*A.exp(A.abs(P))/A.sqrt(A.abs(P))*F(r,3.75/A.abs(P))}(C);if(0>y)return NaN;if(0===A.abs(C))return 0;if(C==1/0)return 1/0;var E,H=0,G=2/A.abs(C),I=0,K=1,J=0;for(E=2*A.round((y+A.round(A.sqrt(40*y)))/2);0<E;E--)J=E*G*K+I,I=K,K=J,1E10<A.abs(K)&&(K*=1E-10,I*=1E-10,H*=1E-10),E==y&&(H=I);return H*=z(C,0)/K,0>C&&y%2?-H:H}),w=function(){var C=[-.57721566,.4227842, 3369.23069756,.0348859,.00262698,1.075E-4,7.4E-6].reverse(),y=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,5.3208E-4].reverse(),z=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4.686E-5].reverse(),E=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-6.8245E-4].reverse();return D(function(H){return 2>=H?-A.log(H/2)*u(H,0)+F(C,H*H/4):A.exp(-H)/A.sqrt(H)*F(y,2/H)},function(H){return 2>=H?A.log(H/2)*u(H,1)+1/H*F(z,H*H/4):A.exp(-H)/A.sqrt(H)*F(E,2/H)},0,2,1)}()}, 3370function(g,b,a){a(28)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(g,b,a){function F(R){if("function"!=typeof WeakMap)return null;var O=new WeakMap,N=new WeakMap;return(F=function(Q){return Q?N:O})(R)}function B(R,O){if(!O&&R&&R.__esModule)return R;if(null===R||"object"!==A(R)&&"function"!=typeof R)return{default:R};if((O=F(O))&&O.has(R))return O.get(R);var N={},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor,M;for(M in R)if("default"!== 3371M&&Object.prototype.hasOwnProperty.call(R,M)){var T=Q?Object.getOwnPropertyDescriptor(R,M):null;T&&(T.get||T.set)?Object.defineProperty(N,M,T):N[M]=R[M]}return N.default=R,O&&O.set(R,N),N}a(3);a(0);a(2);a(11);a(4);a(19);var D=a(1),A=a(21);b.__esModule=!0;b.default=void 0;a(256);var x,q,p,e,c,d=D(a(767));g=a(873);var h=B(a(60)),k=a(84),f=D(a(1106)),n=D(a(325)),l=B(a(310)),r=B(a(20)),m=B(a(107)),t=B(a(150)),u=B(a(629)),w=B(a(134)),v=B(a(70)),C=B(a(31)),y=B(a(47)),z=B(a(17)),E=B(a(97)),H=B(a(124));D= 3372B(a(23));var G=B(a(83)),I=a(166),K=a(203),J=a(204),P=a(171),S=a(243);a=a(50);(0,g.registerAllModules)();(0,f.default)(d.default);d.default.__GhostTable=n.default;d.default._getListenersCounter=h.getListenersCounter;d.default._getRegisteredMapsCounter=k.getRegisteredMapsCounter;d.default.EventManager=h.default;g=[r,m,t,u,w,v,C,y,z,E,H,l];h=[D,G];d.default.helper={};d.default.dom={};r.arrayEach(g,function(R){r.arrayEach(Object.getOwnPropertyNames(R),function(O){"_"!==O.charAt(0)&&(d.default.helper[O]= 3373R[O])})});r.arrayEach(h,function(R){r.arrayEach(Object.getOwnPropertyNames(R),function(O){"_"!==O.charAt(0)&&(d.default.dom[O]=R[O])})});d.default.cellTypes=null!==(x=d.default.cellTypes)&&void 0!==x?x:{};r.arrayEach((0,P.getRegisteredCellTypeNames)(),function(R){d.default.cellTypes[R]=(0,P.getCellType)(R)});d.default.cellTypes.registerCellType=P.registerCellType;d.default.cellTypes.getCellType=P.getCellType;d.default.editors=null!==(q=d.default.editors)&&void 0!==q?q:{};r.arrayEach((0,I.getRegisteredEditorNames)(), 3374function(R){d.default.editors["".concat(E.toUpperCaseFirst(R),"Editor")]=(0,I.getEditor)(R)});d.default.editors.registerEditor=I.registerEditor;d.default.editors.getEditor=I.getEditor;d.default.renderers=null!==(p=d.default.renderers)&&void 0!==p?p:{};r.arrayEach((0,K.getRegisteredRendererNames)(),function(R){var O=(0,K.getRenderer)(R);"base"===R&&(d.default.renderers.cellDecorator=O);d.default.renderers["".concat(E.toUpperCaseFirst(R),"Renderer")]=O});d.default.renderers.registerRenderer=K.registerRenderer; 3375d.default.renderers.getRenderer=K.getRenderer;d.default.validators=null!==(e=d.default.validators)&&void 0!==e?e:{};r.arrayEach((0,J.getRegisteredValidatorNames)(),function(R){d.default.validators["".concat(E.toUpperCaseFirst(R),"Validator")]=(0,J.getValidator)(R)});d.default.validators.registerValidator=J.registerValidator;d.default.validators.getValidator=J.getValidator;d.default.plugins=null!==(c=d.default.plugins)&&void 0!==c?c:{};r.arrayEach((0,S.getPluginsNames)(),function(R){d.default.plugins[R]= 3376(0,S.getPlugin)(R)});d.default.plugins["".concat(E.toUpperCaseFirst(a.BasePlugin.PLUGIN_KEY),"Plugin")]=a.BasePlugin;d.default.plugins.registerPlugin=S.registerPlugin;d.default.plugins.getPlugin=S.getPlugin;b.default=d.default},function(g,b,a){function F(e,c){e=new D.default(e,c||{},A.rootInstanceSymbol);return e.init(),e}var B=a(1);b.__esModule=!0;b.default=void 0;a(768);a(769);a(770);a(771);var D=B(a(445)),A=a(316);g=a(608);B=B(a(71));var x=a(605),q=a(171),p=a(614);a=a(207);(0,q.registerCellType)(p.TextCellType); 3377F.editors={BaseEditor:a.BaseEditor};F.Core=function(e){return new D.default(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},A.rootInstanceSymbol)};F.DefaultSettings=(0,g.metaSchemaFactory)();F.hooks=B.default.getSingleton();F.packageName="handsontable";F.buildDate="08/07/2022 15:22:12";F.version="12.1.2";F.languages={dictionaryKeys:x.dictionaryKeys,getLanguageDictionary:x.getLanguageDictionary,getLanguagesDictionaries:x.getLanguagesDictionaries,registerLanguageDictionary:x.registerLanguageDictionary, 3378getTranslatedPhrase:x.getTranslatedPhrase};b.default=F},function(g,b,a){},function(g,b,a){},function(g,b,a){},function(g,b,a){},function(g,b){g.exports=function(a,F){var B=null==a?null:"undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null!=B){var D,A=[],x=!0,q=!1;try{for(B=B.call(a);
3378!(x=(D=B.next()).done)&&(A.push(D.value),!F||A.length!==F);x=!0);}catch(e){q=!0;var p=e}finally{try{x||null==B.return||B.return()}finally{if(q)throw p;}}return A}};g.exports.__esModule=!0;g.exports.default= 3379g.exports},function(g,b,a){var F=a(447);g.exports=function(B){if(Array.isArray(B))return F(B)};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b){g.exports=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.");};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){g=a(28);b=a(45);a=a(450).setInterval;g({global:!0,bind:!0,forced:b.setInterval!==a},{setInterval:a})}, 3380function(g,b,a){g=a(28);b=a(45);a=a(450).setTimeout;g({global:!0,bind:!0,forced:b.setTimeout!==a},{setTimeout:a})},function(g,b,a){a(778);a(779)},function(g,b,a){g=a(28);b=a(45);a=a(227).clear;g({global:!0,bind:!0,enumerable:!0,forced:b.clearImmediate!==a},{clearImmediate:a})},function(g,b,a){g=a(28);b=a(45);a=a(227).set;g({global:!0,bind:!0,enumerable:!0,forced:b.setImmediate!==a},{setImmediate:a})},function(g,b){g.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[], 3381a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(g,b,a){function F(A){A=B(A);return a(A)}function B(A){if(!a.o(D,A))throw A=Error("Cannot find module '"+A+"'"),A.code="MODULE_NOT_FOUND",A;return D[A]}var D={"./af":452,"./af.js":452,"./ar":453,"./ar-dz":454,"./ar-dz.js":454,"./ar-kw":455,"./ar-kw.js":455,"./ar-ly":456,"./ar-ly.js":456,"./ar-ma":457, 3382"./ar-ma.js":457,"./ar-sa":458,"./ar-sa.js":458,"./ar-tn":459,"./ar-tn.js":459,"./ar.js":453,"./az":460,"./az.js":460,"./be":461,"./be.js":461,"./bg":462,"./bg.js":462,"./bm":463,"./bm.js":463,"./bn":464,"./bn-bd":465,"./bn-bd.js":465,"./bn.js":464,"./bo":466,"./bo.js":466,"./br":467,"./br.js":467,"./bs":468,"./bs.js":468,"./ca":469,"./ca.js":469,"./cs":470,"./cs.js":470,"./cv":471,"./cv.js":471,"./cy":472,"./cy.js":472,"./da":473,"./da.js":473,"./de":474,"./de-at":475,"./de-at.js":475,"./de-ch":476, 3383"./de-ch.js":476,"./de.js":474,"./dv":477,"./dv.js":477,"./el":478,"./el.js":478,"./en-au":479,"./en-au.js":479,"./en-ca":480,"./en-ca.js":480,"./en-gb":481,"./en-gb.js":481,"./en-ie":482,"./en-ie.js":482,"./en-il":483,"./en-il.js":483,"./en-in":484,"./en-in.js":484,"./en-nz":485,"./en-nz.js":485,"./en-sg":486,"./en-sg.js":486,"./eo":487,"./eo.js":487,"./es":488,"./es-do":489,"./es-do.js":489,"./es-mx":490,"./es-mx.js":490,"./es-us":491,"./es-us.js":491,"./es.js":488,"./et":492,"./et.js":492,"./eu":493, 3384"./eu.js":493,"./fa":494,"./fa.js":494,"./fi":495,"./fi.js":495,"./fil":496,"./fil.js":496,"./fo":497,"./fo.js":497,"./fr":498,"./fr-ca":499,"./fr-ca.js":499,"./fr-ch":500,"./fr-ch.js":500,"./fr.js":498,"./fy":501,"./fy.js":501,"./ga":502,"./ga.js":502,"./gd":503,"./gd.js":503,"./gl":504,"./gl.js":504,"./gom-deva":505,"./gom-deva.js":505,"./gom-latn":506,"./gom-latn.js":506,"./gu":507,"./gu.js":507,"./he":508,"./he.js":508,"./hi":509,"./hi.js":509,"./hr":510,"./hr.js":510,"./hu":511,"./hu.js":511, 3385"./hy-am":512,"./hy-am.js":512,"./id":513,"./id.js":513,"./is":514,"./is.js":514,"./it":515,"./it-ch":516,"./it-ch.js":516,"./it.js":515,"./ja":517,"./ja.js":517,"./jv":518,"./jv.js":518,"./ka":519,"./ka.js":519,"./kk":520,"./kk.js":520,"./km":521,"./km.js":521,"./kn":522,"./kn.js":522,"./ko":523,"./ko.js":523,"./ku":524,"./ku.js":524,"./ky":525,"./ky.js":525,"./lb":526,"./lb.js":526,"./lo":527,"./lo.js":527,"./lt":528,"./lt.js":528,"./lv":529,"./lv.js":529,"./me":530,"./me.js":530,"./mi":531,"./mi.js":531, 3386"./mk":532,"./mk.js":532,"./ml":533,"./ml.js":533,"./mn":534,"./mn.js":534,"./mr":535,"./mr.js":535,"./ms":536,"./ms-my":537,"./ms-my.js":537,"./ms.js":536,"./mt":538,"./mt.js":538,"./my":539,"./my.js":539,"./nb":540,"./nb.js":540,"./ne":541,"./ne.js":541,"./nl":542,"./nl-be":543,"./nl-be.js":543,"./nl.js":542,"./nn":544,"./nn.js":544,"./oc-lnc":545,"./oc-lnc.js":545,"./pa-in":546,"./pa-in.js":546,"./pl":547,"./pl.js":547,"./pt":548,"./pt-br":549,"./pt-br.js":549,"./pt.js":548,"./ro":550,"./ro.js":550, 3387"./ru":551,"./ru.js":551,"./sd":552,"./sd.js":552,"./se":553,"./se.js":553,"./si":554,"./si.js":554,"./sk":555,"./sk.js":555,"./sl":556,"./sl.js":556,"./sq":557,"./sq.js":557,"./sr":558,"./sr-cyrl":559,"./sr-cyrl.js":559,"./sr.js":558,"./ss":560,"./ss.js":560,"./sv":561,"./sv.js":561,"./sw":562,"./sw.js":562,"./ta":563,"./ta.js":563,"./te":564,"./te.js":564,"./tet":565,"./tet.js":565,"./tg":566,"./tg.js":566,"./th":567,"./th.js":567,"./tk":568,"./tk.js":568,"./tl-ph":569,"./tl-ph.js":569,"./tlh":570, 3388"./tlh.js":570,"./tr":571,"./tr.js":571,"./tzl":572,"./tzl.js":572,"./tzm":573,"./tzm-latn":574,"./tzm-latn.js":574,"./tzm.js":573,"./ug-cn":575,"./ug-cn.js":575,"./uk":576,"./uk.js":576,"./ur":577,"./ur.js":577,"./uz":578,"./uz-latn":579,"./uz-latn.js":579,"./uz.js":578,"./vi":580,"./vi.js":580,"./x-pseudo":581,"./x-pseudo.js":581,"./yo":582,"./yo.js":582,"./zh-cn":583,"./zh-cn.js":583,"./zh-hk":584,"./zh-hk.js":584,"./zh-mo":585,"./zh-mo.js":585,"./zh-tw":586,"./zh-tw.js":586};F.keys=function(){return Object.keys(D)}; 3389F.resolve=B;g.exports=F;F.id=781},function(g,b,a){g=a(28);a=a(783);g({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},function(g,b,a){var F=a(139),B=a(99),D=a(129),A=a(103);b=a(161);var x=Math.min,q=[].lastIndexOf,p=!!q&&0>1/[1].lastIndexOf(1,-0);b=b("lastIndexOf");g.exports=p||!b?function(e){if(p)return F(q,this,arguments)||0;var c=B(this),d=A(c),h=d-1;1<arguments.length&&(h=x(h,D(arguments[1])));for(0>h&&(h=d+h);0<=h;h--)if(h in c&&c[h]===e)return h||0;return-1}:q},function(g, 3390b,a){g=a(1);b.__esModule=!0;b.DESC=b.ASC=void 0;b.createPriorityMap=function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},d=c.errorPriorityExists,h=c.errorPriorityNaN,k=new Map;return d=(0,A.isFunction)(d)?d:p,h=(0,A.isFunction)(h)?h:e,{addItem:function(f,n){if(!(0,D.isNumeric)(f))throw Error(h(f));if(k.has(f))throw Error(d(f));k.set(f,n)},getItems:function(){var f=q.get(0<arguments.length&&void 0!==arguments[0]?arguments[0]:x)||q.get(x);f=(0,B.default)(f,2);var n=f[0],l=f[1]; 3391return(0,F.default)(k).sort(function(r,m){return r[0]<m[0]?n:l}).map(function(r){return r[1]})}}};var F=g(a(43)),B=g(a(34));a(3);a(32);a(0);a(2);a(4);a(36);a(75);var D=a(47),A=a(70),x="asc";b.ASC=x;b.DESC="desc";var q=new Map([[x,[-1,1]],["desc",[1,-1]]]),p=function(c){return"The priority '".concat(c,"' is already declared in a map.")},e=function(c){return"The priority '".concat(c,"' is not a number.")}},function(g,b,a){g=a(1);b.__esModule=!0;b.createUniqueSet=function(){var A=(0<arguments.length&& 3392void 0!==arguments[0]?arguments[0]:{}).errorItemExists,x=new Set;return A=(0,B.isFunction)(A)?A:D,{addItem:function(q){if(x.has(q))throw Error(A(q));x.add(q)},clear:function(){x.clear()},getItems:function(){return(0,F.default)(x)}}};var F=g(a(43));a(3);a(0);a(54);a(2);a(4);var B=a(70),D=function(A){return"'".concat(A,"' value is already declared in a unique set.")}},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(34)),B=g(a(43)),D=g(a(5)),A=g(a(6));a(3);a(0);a(2);a(11);a(4);a(68); 3393a(52);
3393var x=a(23),q=g(a(60)),p=a(83),e=g(a(167)),c=a(601),d=a(316),h=new WeakMap;a=function(){function k(f){(0,D.default)(this,k);this.instance=f;this.eventManager=new q.default(f);this.settings=f.getSettings();this.activeWt=this._wt=this.TBODY=this.THEAD=void 0;this.postponedAdjustElementsSize=!1;h.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0});this.createElements();this.registerEvents();this.initializeWalkontable()}return(0,A.default)(k,[{key:"render",value:function(){this.instance.isRenderSuspended()|| 3394(this.instance.runHooks("beforeRender",this.instance.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this._wt.draw(!this.instance.forceFullRender),this.instance.runHooks("afterRender",this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1)}},{key:"adjustElementsSize",value:function(){var f=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.instance.isRenderSuspended()?this.postponedAdjustElementsSize= 3395!0:this._wt.wtOverlays.adjustElementsSize(f)}},{key:"getCellAtCoords",value:function(f,n){f=this._wt.getCell(f,n);return 0>f?null:f}},{key:"scrollViewport",value:function(f,n,l,r,m){return this._wt.scrollViewport(f,n,l,r,m)}},{key:"scrollViewportHorizontally",value:function(f,n,l){return this._wt.scrollViewportHorizontally(f,n,l)}},{key:"scrollViewportVertically",value:function(f,n,l){return this._wt.scrollViewportVertically(f,n,l)}},{key:"createElements",value:function(){var f=h.get(this),n=this.instance, 3396l=n.rootElement;n=n.rootDocument;var r=l.getAttribute("style");r&&l.setAttribute("data-originalstyle",r);(0,x.addClass)(l,"handsontable");f.table=n.createElement("TABLE");(0,x.addClass)(f.table,"htCore");this.instance.getSettings().tableClassName&&(0,x.addClass)(f.table,this.instance.getSettings().tableClassName);this.THEAD=n.createElement("THEAD");f.table.appendChild(this.THEAD);this.TBODY=n.createElement("TBODY");f.table.appendChild(this.TBODY);this.instance.table=f.table;this.instance.container.insertBefore(f.table, 3397this.instance.container.firstChild)}},{key:"registerEvents",value:function(){var f=this,n=h.get(this),l=this.instance,r=l.rootElement,m=l.rootDocument,t=l.selection,u=m.documentElement;this.eventManager.addEventListener(r,"mousedown",function(w){if(n.selectionMouseDown=!0,!f.isTextSelectionAllowed(w.target)){var v=f.instance.rootWindow;(0,x.clearTextSelection)(v);w.preventDefault();v.focus()}});this.eventManager.addEventListener(r,"mouseup",function(){n.selectionMouseDown=!1});this.eventManager.addEventListener(r, 3398"mousemove",function(w){n.selectionMouseDown&&!f.isTextSelectionAllowed(w.target)&&(f.settings.fragmentSelection&&(0,x.clearTextSelection)(f.instance.rootWindow),w.preventDefault())});this.eventManager.addEventListener(u,"keyup",function(w){t.isInProgress()&&!w.shiftKey&&t.finish()});this.eventManager.addEventListener(u,"mouseup",function(w){t.isInProgress()&&(0,p.isLeftClick)(w)&&t.finish();n.mouseDown=!1;!(0,x.isOutsideInput)(m.activeElement)&&(t.isSelected()||t.isSelectedByAnyHeader()||r.contains(w.target)|| 3399(0,p.isRightClick)(w))||f.instance.unlisten()});this.eventManager.addEventListener(u,"contextmenu",function(w){t.isInProgress()&&(0,p.isRightClick)(w)&&(t.finish(),n.mouseDown=!1)});this.eventManager.addEventListener(u,"touchend",function(){t.isInProgress()&&t.finish();n.mouseDown=!1});this.eventManager.addEventListener(u,"mousedown",function(w){var v=w.target,C=w.x||w.clientX,y=w.y||w.clientY,z=w.target;if(!n.mouseDown&&r&&f.instance.view){var E=f.instance.view._wt.wtTable.holder;if(z===E){if(w= 3400(0,x.getScrollbarWidth)(m),m.elementFromPoint(C+w,y)!==E||m.elementFromPoint(C,y+w)!==E)return}else for(;z!==u;){if(null===z){if(w.isTargetWebComponent)break;return}if(z===r)return;z=z.parentNode}("function"==typeof f.settings.outsideClickDeselects?f.settings.outsideClickDeselects(v):f.settings.outsideClickDeselects)?f.instance.deselectCell():f.instance.destroyEditor(!1,!1)}});this.eventManager.addEventListener(n.table,"selectstart",function(w){f.settings.fragmentSelection||(0,x.isInput)(w.target)|| 3401w.preventDefault()})}},{key:"translateFromRenderableToVisualCoords",value:function(f){var n,l=f.row;f=f.col;return(n=this.instance)._createCellCoords.apply(n,(0,B.default)(this.translateFromRenderableToVisualIndex(l,f)))}},{key:"translateFromRenderableToVisualIndex",value:function(f,n){var l=0<=f?this.instance.rowIndexMapper.getVisualFromRenderableIndex(f):f,r=0<=n?this.instance.columnIndexMapper.getVisualFromRenderableIndex(n):n;return null===l&&(l=f),null===r&&(r=n),[l,r]}},{key:"countRenderableIndexes", 3402value:function(f,n){n=Math.min(f.getNotTrimmedIndexesLength(),n);n=f.getNearestNotHiddenIndex(n-1,-1);return null===n?0:f.getRenderableFromVisualIndex(n)+1}},{key:"countRenderableColumns",value:function(){return this.countRenderableIndexes(this.instance.columnIndexMapper,this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return this.countRenderableIndexes(this.instance.rowIndexMapper,this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(f,n){return this.countNotHiddenIndexes(f, 3403n,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(f,n){return this.countNotHiddenIndexes(f,n,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(f,n,l,r){if(isNaN(f)||0>f)return 0;f=l.getNearestNotHiddenIndex(f,n);l=l.getRenderableFromVisualIndex(f);if(!Number.isInteger(l))return 0;f=0;return 0>n?f=l+1:0<n&&(f=r-l),f}},{key:"countNotHiddenFixedColumnsStart",value:function(){var f= 3404this.instance.countCols();f=Math.min(parseInt(this.settings.fixedColumnsStart,10),f)-1;return this.countNotHiddenColumnIndexes(f,-1)}},{key:"countNotHiddenFixedRowsTop",value:function(){var f=this.instance.countRows();f=Math.min(parseInt(this.settings.fixedRowsTop,10),f)-1;return this.countNotHiddenRowIndexes(f,-1)}},{key:"countNotHiddenFixedRowsBottom",value:function(){var f=this.instance.countRows();f=Math.max(f-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(f, 34051)}},{key:"isMainTableNotFullyCoveredByOverlays",value:function(){var f=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),n=this.countNotHiddenFixedColumnsStart();return this.instance.countRenderedRows()>f&&this.instance.countRenderedCols()>n}},{key:"initializeWalkontable",value:function(){var f=this,n=h.get(this),l={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:n.table,isDataViewInstance:function(){return(0,d.isRootInstance)(f.instance)}, 3406preventOverflow:function(){return f.settings.preventOverflow},preventWheel:function(){return f.settings.preventWheel},stretchH:function(){return f.settings.stretchH},data:function(t,u){var w;return(w=f.instance).getDataAtCell.apply(w,(0,B.default)(f.translateFromRenderableToVisualIndex(t,u)))},totalRows:function(){return f.countRenderableRows()},totalColumns:function(){return f.countRenderableColumns()},fixedColumnsStart:function(){return f.countNotHiddenFixedColumnsStart()},fixedRowsTop:function(){return f.countNotHiddenFixedRowsTop()}, 3407fixedRowsBottom:function(){return f.countNotHiddenFixedRowsBottom()},shouldRenderInlineStartOverlay:function(){return 0<f.settings.fixedColumnsStart||0<l.rowHeaders().length},shouldRenderTopOverlay:function(){return 0<f.settings.fixedRowsTop||0<l.columnHeaders().length},shouldRenderBottomOverlay:function(){return 0<f.settings.fixedRowsBottom},minSpareRows:function(){return f.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return f.instance.hasRowHeaders()&& 3408t.push(function(u,w){u=0<=u?f.instance.rowIndexMapper.getVisualFromRenderableIndex(u):u;f.appendRowHeader(u,w)}),f.instance.runHooks("afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return f.instance.hasColHeaders()&&t.push(function(u,w){u=0<=u?f.instance.columnIndexMapper.getVisualFromRenderableIndex(u):u;f.appendColHeader(u,w)}),f.instance.runHooks("afterGetColumnHeaderRenderers",t),t},columnWidth:function(t){var u=f.instance.columnIndexMapper.getVisualFromRenderableIndex(t); 3409return f.instance.getColWidth(null===u?t:u)},rowHeight:function(t){var u=f.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return f.instance.getRowHeight(null===u?t:u)},cellRenderer:function(t,u,w){t=f.translateFromRenderableToVisualIndex(t,u);u=(0,F.default)(t,2);t=u[0];u=u[1];var v=f.instance.runHooks("modifyGetCellCoords",t,u),C=t,y=u;Array.isArray(v)&&(v=(0,F.default)(v,2),C=v[0],y=v[1]);v=f.instance.getCellMeta(C,y);y=f.instance.colToProp(y);C=f.instance.getDataAtRowProp(C,y);f.instance.hasHook("beforeValueRender")&& 3410(C=f.instance.runHooks("beforeValueRender",C,v));f.instance.runHooks("beforeRenderer",w,t,u,y,C,v);f.instance.getCellRenderer(v)(f.instance,w,t,u,y,C,v);f.instance.runHooks("afterRenderer",w,t,u,y,C,v)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return f.settings.fragmentSelection},onWindowResize:function(){f.instance&&!f.instance.isDestroyed&&f.instance.refreshDimensions()},onCellMouseDown:function(t,u,w,v){u=f.translateFromRenderableToVisualCoords(u);var C= 3411{row:!1,column:!1,cell:!1};f.instance.listen();f.activeWt=v;n.mouseDown=!0;f.instance.runHooks("beforeOnCellMouseDown",t,u,w,C);(0,p.isImmediatePropagationStopped)(t)||((0,c.handleMouseEvent)(t,{coords:u,selection:f.instance.selection,controller:C,cellCoordsFactory:function(y,z){return f.instance._createCellCoords(y,z)}}),f.instance.runHooks("afterOnCellMouseDown",t,u,w),f.activeWt=f._wt)},onCellContextMenu:function(t,u,w,v){u=f.translateFromRenderableToVisualCoords(u);f.activeWt=v;n.mouseDown=!1; 3412f.instance.selection.isInProgress()&&f.instance.selection.finish();
3412f.instance.runHooks("beforeOnCellContextMenu",t,u,w);(0,p.isImmediatePropagationStopped)(t)||(f.instance.runHooks("afterOnCellContextMenu",t,u,w),f.activeWt=f._wt)},onCellMouseOut:function(t,u,w,v){u=f.translateFromRenderableToVisualCoords(u);f.activeWt=v;f.instance.runHooks("beforeOnCellMouseOut",t,u,w);(0,p.isImmediatePropagationStopped)(t)||(f.instance.runHooks("afterOnCellMouseOut",t,u,w),f.activeWt=f._wt)},onCellMouseOver:function(t, 3413u,w,v){u=f.translateFromRenderableToVisualCoords(u);var C={row:!1,column:!1,cell:!1};f.activeWt=v;f.instance.runHooks("beforeOnCellMouseOver",t,u,w,C);(0,p.isImmediatePropagationStopped)(t)||(n.mouseDown&&(0,c.handleMouseEvent)(t,{coords:u,selection:f.instance.selection,controller:C,cellCoordsFactory:function(y,z){return f.instance._createCellCoords(y,z)}}),f.instance.runHooks("afterOnCellMouseOver",t,u,w),f.activeWt=f._wt)},onCellMouseUp:function(t,u,w,v){u=f.translateFromRenderableToVisualCoords(u); 3414f.activeWt=v;f.instance.runHooks("beforeOnCellMouseUp",t,u,w);(0,p.isImmediatePropagationStopped)(t)||f.instance.isDestroyed||(f.instance.runHooks("afterOnCellMouseUp",t,u,w),f.activeWt=f._wt)},onCellCornerMouseDown:function(t){t.preventDefault();f.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault();f.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,u){return f.beforeRender(t,u)},onDraw:function(t){return f.afterRender(t)}, 3415onScrollVertically:function(){return f.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return f.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return f.instance.runHooks("beforeRemoveCellClassNames")},onBeforeHighlightingRowHeader:function(t,u,w){var v=f.instance.rowIndexMapper;t=v.getVisualFromRenderableIndex(t);
3415u=f.instance.runHooks("beforeHighlightingRowHeader",t,u,w);return v.getRenderableFromVisualIndex(v.getNearestNotHiddenIndex(u, 34161))},onBeforeHighlightingColumnHeader:function(t,u,w){var v=f.instance.columnIndexMapper;t=v.getVisualFromRenderableIndex(t);u=f.instance.runHooks("beforeHighlightingColumnHeader",t,u,w);return v.getRenderableFromVisualIndex(v.getNearestNotHiddenIndex(u,1))},onAfterDrawSelection:function(t,u,w){t=f.translateFromRenderableToVisualIndex(t,u);u=(0,F.default)(t,2);t=u[0];u=u[1];var v=f.instance.selection.getSelectedRange(),C=v.size();if(0<C){var y=v.peekByIndex((null!=w?w:0)+1-C);y=[y.from.row,y.from.col, 3417y.to.row,y.to.col]}return f.instance.runHooks("afterDrawSelection",t,u,y,w)},onBeforeDrawBorders:function(t,u){t=(0,F.default)(t,4);var w=t[1],v=t[2],C=t[3];t=[f.instance.rowIndexMapper.getVisualFromRenderableIndex(t[0]),f.instance.columnIndexMapper.getVisualFromRenderableIndex(w),f.instance.rowIndexMapper.getVisualFromRenderableIndex(v),f.instance.columnIndexMapper.getVisualFromRenderableIndex(C)];return f.instance.runHooks("beforeDrawBorders",t,u)},onBeforeTouchScroll:function(){return f.instance.runHooks("beforeTouchScroll")}, 3418onAfterMomentumScroll:function(){return f.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,u){u=f.instance.columnIndexMapper.getVisualFromRenderableIndex(u);return f.instance.runHooks("beforeStretchingColumnWidth",t,u)},onModifyRowHeaderWidth:function(t){return f.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,u,w){var v=f.instance.rowIndexMapper,C=f.instance.columnIndexMapper;u=0<=u?C.getVisualFromRenderableIndex(u):u;t=0<=t?v.getVisualFromRenderableIndex(t): 3419t;w=f.instance.runHooks("modifyGetCellCoords",t,u,w);if(Array.isArray(w)){var y=(0,F.default)(w,4);w=y[0];t=y[1];u=y[2];y=y[3];return[0<=w?v.getRenderableFromVisualIndex(v.getNearestNotHiddenIndex(w,1)):w,0<=t?C.getRenderableFromVisualIndex(C.getNearestNotHiddenIndex(t,1)):t,0<=u?v.getRenderableFromVisualIndex(v.getNearestNotHiddenIndex(u,-1)):u,0<=y?C.getRenderableFromVisualIndex(C.getNearestNotHiddenIndex(y,-1)):y]}},viewportRowCalculatorOverride:function(t){var u=f.settings.viewportRowRenderingOffset; 3420if("auto"===u&&f.settings.fixedRowsTop&&(u=10),0<u||"auto"===u){var w=f.countRenderableRows(),v=t.startRow,C=t.endRow;"number"==typeof u?(t.startRow=Math.max(v-u,0),t.endRow=Math.min(C+u,w-1)):"auto"===u&&(u=Math.ceil(C/w*12),t.startRow=Math.max(v-u,0),t.endRow=Math.min(C+u,w-1))}f.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var u=f.settings.viewportColumnRenderingOffset;if("auto"===u&&f.settings.fixedColumnsStart&&(u=10),0<u||"auto"===u){var w= 3421f.countRenderableColumns(),v=t.startColumn,C=t.endColumn;if("number"==typeof u&&(t.startColumn=Math.max(v-u,0),t.endColumn=Math.min(C+u,w-1)),"auto"===u)u=Math.ceil(C/w*6),t.startColumn=Math.max(v-u,0),t.endColumn=Math.min(C+u,w-1)}f.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return f.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=f.instance.runHooks("modifyColumnHeaderHeight");return f.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable", 3422l);this.activeWt=this._wt=new e.default(l);var r=this._wt.wtTable.spreader,m=this.instance.rootElement.getBoundingClientRect();this.setLastSize(m.width,m.height);this.eventManager.addEventListener(r,"mousedown",function(t){t.target===r&&3===t.which&&t.stopPropagation()});this.eventManager.addEventListener(r,"contextmenu",function(t){t.target===r&&3===t.which&&t.stopPropagation()});this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",function(){f.settings.observeDOMVisibility&& 3423f._wt.drawInterrupted&&(f.instance.forceFullRender=!0,f.render())})}},{key:"isTextSelectionAllowed",value:function(f){if((0,x.isInput)(f))return!0;f=(0,x.isChildOf)(f,this.instance.view._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!f)||!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!f)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell())}},{key:"isMouseDown",value:function(){return h.get(this).mouseDown}},{key:"isSelectedOnlyCell", 3424value:function(){var f,n;return null!==(f=null===(n=this.instance.getSelectedRangeLast())||void 0===n?void 0:n.isSingle())&&void 0!==f&&f}},{key:"isCellEdited",value:function(){var f=this.instance.getActiveEditor();return f&&f.isOpened()}},{key:"beforeRender",value:function(f,n){f&&this.instance.runHooks("beforeViewRender",this.instance.forceFullRender,n)}},{key:"afterRender",value:function(f){f&&this.instance.runHooks("afterViewRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(f, 3425n){if(n.firstChild){var l=n.firstChild;if(!(0,x.hasClass)(l,"relative"))return(0,x.empty)(n),void this.appendRowHeader(f,n);this.updateCellHeader(l.querySelector(".rowHeader"),f,this.instance.getRowHeader)}else{var r=this.instance;l=r.rootDocument;r=r.getRowHeader;var m=l.createElement("div");l=l.createElement("span");m.className="relative";l.className="rowHeader";this.updateCellHeader(l,f,r);m.appendChild(l);n.appendChild(m)}this.instance.runHooks("afterGetRowHeader",f,n)}},{key:"appendColHeader", 3426value:function(f,n){if(n.firstChild){var l=n.firstChild;(0,x.hasClass)(l,"relative")?this.updateCellHeader(l.querySelector(".colHeader"),f,this.instance.getColHeader):((0,x.empty)(n),this.appendColHeader(f,n))}else{var r=this.instance.rootDocument;l=r.createElement("div");r=r.createElement("span");l.className="relative";
3426r.className="colHeader";this.updateCellHeader(r,f,this.instance.getColHeader);l.appendChild(r);n.appendChild(l)}this.instance.runHooks("afterGetColHeader",f,n)}},{key:"updateCellHeader", 3427value:function(f,n,l){var r=n,m=this._wt.wtOverlays.getParentOverlay(f)||this._wt;f.parentNode&&((0,x.hasClass)(f,"colHeader")?r=m.wtTable.columnFilter.sourceToRendered(n):(0,x.hasClass)(f,"rowHeader")&&(r=m.wtTable.rowFilter.sourceToRendered(n)));-1<r?(0,x.fastInnerHTML)(f,l(n)):((0,x.fastInnerText)(f,String.fromCharCode(160)),(0,x.addClass)(f,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(f){f=this._wt.wtViewport.getWorkspaceWidth()-f;return 0<f?f:0}},{key:"maximumVisibleElementHeight", 3428value:function(f){f=this._wt.wtViewport.getWorkspaceHeight()-f;return 0<f?f:0}},{key:"setLastSize",value:function(f,n){var l=h.get(this);f=[f,n];l.lastWidth=f[0];l.lastHeight=f[1]}},{key:"getLastSize",value:function(){var f=h.get(this);return{width:f.lastWidth,height:f.lastHeight}}},{key:"getFirstFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleRow())}},{key:"getLastFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleRow())}}, 3429{key:"getFirstFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleColumn())}},{key:"getLastFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleColumn())}},{key:"destroy",value:function(){this._wt.destroy();this.eventManager.destroy()}}]),k}();b.default=a},function(g,b){g.exports=function(a,F){return F.get? 3430F.get.call(a):F.value};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b){g.exports=function(a,F,B){if(F.set)F.set.call(a,B);else{if(!F.writable)throw new TypeError("attempted to set read only private field");F.value=B}};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=g(a(790)),A=g(a(314));a=function(){function x(q){(0,F.default)(this,x);q instanceof A.default?this._wot=q:this._initFromSettings(q)} 3431return(0,B.default)(x,[{key:"_initFromSettings",value:function(q){q.facade=function(p){var e=new x(p);return function(){return e}};this._wot=new D.default(q.table,q)}},{key:"guid",get:function(){return this._wot.guid}},{key:"rootDocument",get:function(){return this._wot.domBindings.rootDocument}},{key:"rootWindow",get:function(){return this._wot.domBindings.rootWindow}},{key:"wtSettings",get:function(){return this._wot.wtSettings}},{key:"cloneSource",get:function(){return this._wot.cloneSource}}, 3432{key:"cloneOverlay",get:function(){return this._wot.cloneOverlay}},{key:"selections",get:function(){return this._wot.selections}},{key:"wtViewport",get:function(){return this._wot.wtViewport}},{key:"wtOverlays",get:function(){return this._wot.wtOverlays}},{key:"wtTable",get:function(){return this._wot.wtTable}},{key:"wtEvent",get:function(){return this._wot.wtEvent}},{key:"wtScroll",get:function(){return this._wot.wtScroll}},{key:"drawn",get:function(){return this._wot.drawn},set:function(q){this._wot.drawn= 3433q}},{key:"drawInterrupted",get:function(){return this._wot.drawInterrupted},set:function(q){this._wot.drawInterrupted=q}},{key:"lastMouseOver",get:function(){return this._wot.lastMouseOver},set:function(q){this._wot.lastMouseOver=q}},{key:"momentumScrolling",get:function(){return this._wot.momentumScrolling},set:function(q){this._wot.momentumScrolling=q}},{key:"touchApplied",get:function(){return this._wot.touchApplied},set:function(q){this._wot.touchApplied=q}},{key:"domBindings",get:function(){return this._wot.domBindings}}, 3434{key:"eventListeners",get:function(){return this._wot.eventListeners},set:function(q){this._wot.eventListeners=q}},{key:"eventManager",get:function(){return this._wot.eventManager}},{key:"createCellCoords",value:function(q,p){return this._wot.createCellCoords(q,p)}},{key:"createCellRange",value:function(q,p,e){return this._wot.createCellRange(q,p,e)}},{key:"draw",value:function(){return this._wot.draw(0<arguments.length&&void 0!==arguments[0]&&arguments[0]),this}},{key:"getCell",value:function(q){return this._wot.getCell(q, 34351<arguments.length&&void 0!==arguments[1]&&arguments[1])}},{key:"scrollViewport",value:function(q,p,e,c,d){return this._wot.scrollViewport(q,p,e,c,d)}},{key:"scrollViewportHorizontally",value:function(q,p,e){return this._wot.scrollViewportHorizontally(q,p,e)}},{key:"scrollViewportVertically",value:function(q,p,e){return this._wot.scrollViewportVertically(q,p,e)}},{key:"getViewport",value:function(){return this._wot.getViewport()}},{key:"getOverlayName",value:function(){return this._wot.cloneOverlay? 3436this._wot.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){return this._wot.exportSettingsAsClassNames()}},{key:"update",value:function(q,p){return this._wot.wtSettings.update(q,p),this}},{key:"getSetting",value:function(q,p,e,c,d){return this._wot.wtSettings.getSetting(q,p,e,c,d)}},{key:"hasSetting",value:function(q){return this._wot.wtSettings.hasSetting(q)}}
3436,{key:"destroy",value:function(){this._wot.destroy()}}]),x}();b.default=a},function(g,b,a){function F(l){var r= 3437function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(m){return!1}}();return function(){var m=(0,p.default)(l);if(r){var t=(0,p.default)(this).constructor;m=Reflect.construct(m,arguments,t)}else m=m.apply(this,arguments);return(0,q.default)(this,m)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)), 3438x=g(a(15)),q=g(a(16)),p=g(a(14)),e=g(a(593)),c=g(a(791)),d=g(a(819)),h=g(a(820)),k=g(a(821));g=g(a(314));var f=a(17),n=a(23);a=function(l){function r(t,u){var w;(0,B.default)(this,r);t=(w=m.call(this,t,new d.default(u))).wtSettings.getSetting("facade",(0,A.default)(w));return w.wtTable=new h.default(w.getTableDao(),t,w.domBindings,w.wtSettings),w.wtViewport=new k.default(w.getViewportDao(),w.domBindings,w.wtSettings,w.eventManager,w.wtTable),w.selections=w.wtSettings.getSetting("selections"),w.wtEvent= 3439new e.default(t,w.domBindings,w.wtSettings,w.eventManager,w.wtTable,w.selections),w.wtOverlays=new c.default((0,A.default)(w),t,w.domBindings,w.wtSettings,w.eventManager,w.wtTable),w.exportSettingsAsClassNames(),w.findOriginalHeaders(),w}(0,x.default)(r,l);var m=F(r);return(0,D.default)(r,[{key:"exportSettingsAsClassNames",value:function(){var t=this,u=[],w=[];(0,f.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},function(v,C){t.wtSettings.getSetting(C).length&&w.push(v);u.push(v)}); 3440(0,n.removeClass)(this.wtTable.wtRootElement.parentNode,u);(0,n.addClass)(this.wtTable.wtRootElement.parentNode,w)}},{key:"getViewportDao",value:function(){var t=this;return{get wot(){return t},get topOverlayTrimmingContainer(){return t.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return t.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return t.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return t.wtOverlays.topOverlay.getTableParentOffset()}, 3441get inlineStartScrollPosition(){return t.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return t.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return t.wtOverlays.topOverlay},get inlineStartOverlay(){return t.wtOverlays.inlineStartOverlay},get bottomOverlay(){return t.wtOverlays.bottomOverlay}}}}]),r}(g.default);b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(18);a(0);a(27);a(77);var F=g(a(168)),B=g(a(5)),D=g(a(6)), 3442A=g(a(41)),x=a(23),q=a(20),p=a(124),e=a(107),c=a(148);a=function(){function d(h,k,f,n,l,r){(0,B.default)(this,d);(0,A.default)(this,"wot",null);(0,A.default)(this,"topOverlay",null);(0,A.default)(this,"bottomOverlay",null);(0,A.default)(this,"inlineStartOverlay",null);(0,A.default)(this,"topInlineStartCornerOverlay",null);(0,A.default)(this,"bottomInlineStartCornerOverlay",null);(0,A.default)(this,"browserLineHeight",void 0);(0,A.default)(this,"wtSettings",null);this.wot=h;this.wtSettings=n;this.domBindings= 3443f;this.facadeGetter=k;this.wtTable=r;k=this.domBindings;h=k.rootDocument;k=k.rootWindow;this.instance=this.wot;this.eventManager=l;this.scrollbarSize=(0,x.getScrollbarWidth)(h);this.scrollableElement="hidden"===k.getComputedStyle(r.wtRootElement.parentNode).getPropertyValue("overflow")?r.holder:(0,x.getScrollableElement)(r.TABLE);this.initOverlays();this.keyPressed=this.destroyed=this.hasScrollbarRight=this.hasScrollbarBottom=!1;this.spreaderLastSize={width:null,height:null};this.horizontalScrolling= 3444this.verticalScrolling=!1;this.initBrowserLineHeight();this.registerListeners();this.lastScrollX=k.scrollX;this.lastScrollY=k.scrollY}return(0,D.default)(d,[{key:"initBrowserLineHeight",value:function(){var h=this.domBindings,k=h.rootWindow.getComputedStyle(h.rootDocument.body);h=parseInt(k.lineHeight,10);k=1.2*parseInt(k.fontSize,10);this.browserLineHeight=h||k}},{key:"initOverlays",value:function(){var h=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=(0,F.default)(c.TopOverlay, 3445h);this.bottomOverlay=(0,F.default)(c.BottomOverlay,h);this.inlineStartOverlay=(0,F.default)(c.InlineStartOverlay,h);this.topInlineStartCornerOverlay=(0,F.default)(c.TopInlineStartCornerOverlay,h.concat([this.topOverlay,this.inlineStartOverlay]));this.bottomInlineStartCornerOverlay=(0,F.default)(c.BottomInlineStartCornerOverlay,h.concat([this.bottomOverlay,this.inlineStartOverlay]))}},{key:"updateStateOfRendering",value:function(){var h=this.topOverlay.updateStateOfRendering();return h=this.bottomOverlay.updateStateOfRendering()||
3446h,h=this.inlineStartOverlay.updateStateOfRendering()||h,this.inlineStartOverlay.needFullRender&&(this.topOverlay.needFullRender&&(h=this.topInlineStartCornerOverlay.updateStateOfRendering()||h),this.bottomOverlay.needFullRender&&(h=this.bottomInlineStartCornerOverlay.updateStateOfRendering()||h)),h}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(), 3447this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var h=this,k=this.domBindings,f=k.rootDocument;k=k.rootWindow;var n=this.topOverlay.mainTableScrollableElement,l=this.inlineStartOverlay.mainTableScrollableElement;this.eventManager.addEventListener(f.documentElement,"keydown",function(u){return h.onKeyDown(u)});this.eventManager.addEventListener(f.documentElement,"keyup",function(){return h.onKeyUp()});this.eventManager.addEventListener(f, 3448"visibilitychange",function(){return h.onKeyUp()});this.eventManager.addEventListener(n,"scroll",function(u){return h.onTableScroll(u)},{passive:!0});n!==l&&this.eventManager.addEventListener(l,"scroll",function(u){return h.onTableScroll(u)},{passive:!0});var r;f=k.devicePixelRatio&&1<k.devicePixelRatio;n=this.scrollableElement===k;var m=this.wtSettings.getSetting("preventWheel"),t={passive:n};(m||f||!(0,e.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",function(u){return h.onCloneWheel(u, 3449m)},t);[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(function(u){u&&u.needFullRender&&h.eventManager.addEventListener(u.clone.wtTable.holder,"wheel",function(w){return h.onCloneWheel(w,m)},t)});this.eventManager.addEventListener(k,"resize",function(){clearTimeout(r);r=setTimeout(function(){h.wtSettings.getSetting("onWindowResize")},200)})}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}}, 3450{key:"onTableScroll",value:function(h){var k=this.domBindings.rootWindow,f=this.inlineStartOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,l=h.target;this.keyPressed&&(n!==k&&l!==k&&!h.target.contains(n)||f!==k&&l!==k&&!h.target.contains(f))||this.syncScrollPositions(h)}},{key:"onCloneWheel",value:function(h,k){var f=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,l=this.topOverlay.mainTableScrollableElement,r=h.target;l=l!==f&&r!== 3451f&&!r.contains(l);n=n!==f&&r!==f&&!r.contains(n);this.keyPressed&&(l||n)||(n=this.translateMouseWheelToScroll(h),(k||this.scrollableElement!==f&&n)&&h.preventDefault())}},{key:"onKeyDown",value:function(h){this.keyPressed=(0,p.isKey)(h.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(h){var k=isNaN(h.deltaY)?-1*h.wheelDeltaY:h.deltaY,f=isNaN(h.deltaX)?-1*h.wheelDeltaX:h.deltaX;1===h.deltaMode&& 3452(f+=f*this.browserLineHeight,k+=k*this.browserLineHeight);h=this.scrollVertically(k);f=this.scrollHorizontally(f);return h||f}},{key:"scrollVertically",value:function(h){var k=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=h,k!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(h){var k=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=h,k!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var h= 3453this.domBindings.rootWindow,k=this.topOverlay.clone.wtTable.holder,f=this.inlineStartOverlay.clone.wtTable.holder,n=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],l=n[0];n=n[1];if(this.horizontalScrolling=k.scrollLeft!==l||this.lastScrollX!==h.scrollX,this.verticalScrolling=f.scrollTop!==n||this.lastScrollY!==h.scrollY,this.lastScrollX=h.scrollX,this.lastScrollY=h.scrollY,this.horizontalScrolling)k.scrollLeft=l,(h=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder: 3454null)&&(h.scrollLeft=l);this.verticalScrolling&&(f.scrollTop=n);this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var h=this.topOverlay.mainTableScrollableElement,k=h.scrollLeft;h=h.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=k);this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=k);
3454this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=h)}},{key:"updateMainScrollableElements", 3455value:function(){this.deregisterListeners();this.inlineStartOverlay.updateMainScrollableElement();this.topOverlay.updateMainScrollableElement();this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var h=this.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(h.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=h.holder:this.scrollableElement=(0,x.getScrollableElement)(h.TABLE);this.registerListeners()}},{key:"destroy",value:function(){this.eventManager.destroy(); 3456this.topOverlay.destroy();this.bottomOverlay.clone&&this.bottomOverlay.destroy();this.inlineStartOverlay.destroy();this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy();this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy();this.destroyed=!0}},{key:"refresh",value:function(){var h=0<arguments.length&&void 0!==arguments[0]&&arguments[0],k=this.wtTable.spreader,f=k.clientWidth;k=k.clientHeight;f===this.spreaderLastSize.width&& 3457k===this.spreaderLastSize.height||(this.spreaderLastSize.width=f,this.spreaderLastSize.height=k,this.adjustElementsSize());this.bottomOverlay.clone&&this.bottomOverlay.refresh(h);this.inlineStartOverlay.refresh(h);this.topOverlay.refresh(h);this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(h);this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(h)}},{key:"adjustElementsSize",value:function(){var h=0<arguments.length&& 3458void 0!==arguments[0]&&arguments[0],k=this.wot.wtViewport,f=this.wtTable,n=this.wtSettings.getSetting("totalColumns"),l=this.wtSettings.getSetting("totalRows"),r=k.getRowHeaderWidth();k=k.getColumnHeaderHeight();var m=f.hider.style;if(m.width="".concat(r+this.inlineStartOverlay.sumCellSizes(0,n),"px"),m.height="".concat(k+this.topOverlay.sumCellSizes(0,l)+1,"px"),0<this.scrollbarSize)l=f.wtRootElement,n=l.scrollHeight,l=l.scrollWidth,r=f.holder,k=r.scrollWidth,this.hasScrollbarRight=n<r.scrollHeight, 3459this.hasScrollbarBottom=l<k,this.hasScrollbarRight&&f.hider.scrollWidth+this.scrollbarSize>l?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&f.hider.scrollHeight+this.scrollbarSize>n&&(this.hasScrollbarRight=!0);this.topOverlay.adjustElementsSize(h);this.inlineStartOverlay.adjustElementsSize(h);this.bottomOverlay.adjustElementsSize(h)}},{key:"applyToDOM",value:function(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}}, 3460{key:"getParentOverlay",value:function(h){if(!h)return null;var k=null;return(0,q.arrayEach)([this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],function(f){f&&f.clone&&f.clone.wtTable.TABLE.contains(h)&&(k=f.clone)}),k}},{key:"syncOverlayTableClassNames",value:function(){var h=this.wtTable.TABLE;(0,q.arrayEach)([this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay], 3461function(k){k&&(k.clone.wtTable.TABLE.className=h.className)})}}]),d}();b.default=a},function(g,b){g.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct|| 3462Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,p.default)(h);if(k){var n=(0,p.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,q.default)(this,f)}}a(0);a(7);g=a(1);b.__esModule=!0;b.BottomInlineStartCornerOverlay=void 0;var B=g(a(168)),D=g(a(5)),A=g(a(6)),x=g(a(15)),q=g(a(16)),p=g(a(14)), 3463e=a(23),c=g(a(794));g=a(170);var d=a(149);a=function(h){function k(n,l,r,m,t,u){var w;return(0,D.default)(this,k),(w=f.call(this,n,l,d.CLONE_BOTTOM_INLINE_START_CORNER,r,m)).bottomOverlay=t,w.inlineStartOverlay=u,w}(0,x.default)(k,h);var f=F(k);return(0,A.default)(k,[{key:"createTable",value:function(){for(var n=arguments.length,l=Array(n),r=0;r<n;r++)l[r]=arguments[r];return(0,B.default)(c.default,l)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&& 3464this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var n=this.wot;if(this.updateTrimmingContainer(),!n.wtTable.holder.parentNode)return!1;n=this.clone.wtTable.holder.parentNode;if(n.style.top="",this.trimmingContainer===this.domBindings.rootWindow){var l=this.inl
3464ineStartOverlay.getOverlayOffset(),r=this.bottomOverlay.getOverlayOffset();n.style[this.isRtl()?"right":"left"]="".concat(l,"px");n.style.bottom="".concat(r,"px")}else(0,e.resetCssTransform)(n), 3465this.repositionOverlay();l=(0,e.outerHeight)(this.clone.wtTable.TABLE);r=(0,e.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(l=0),n.style.height="".concat(l,"px"),n.style.width="".concat(r,"px"),!1}},{key:"repositionOverlay",value:function(){var n=this.wot,l=n.wtTable;n=n.wtViewport;var r=this.domBindings.rootDocument,m=this.clone.wtTable.holder.parentNode,t=0;n.hasVerticalScroll()||(t+=n.getWorkspaceHeight()-l.getTotalHeight());n.hasVerticalScroll()&&n.hasHorizontalScroll()&& 3466(t+=(0,e.getScrollbarWidth)(r));m.style.bottom="".concat(t,"px")}}]),k}(g.Overlay);b.BottomInlineStartCornerOverlay=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,p.default)(h);if(k){var n=(0,p.default)(this).constructor;f=Reflect.construct(f, 3467arguments,n)}else f=f.apply(this,arguments);return(0,q.default)(this,f)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.default=void 0;var D=B(a(6)),A=B(a(5)),x=B(a(15)),q=B(a(16)),p=B(a(14)),e=B(a(169));g=B(a(597));B=B(a(313));var c=a(17),d=a(148);a=function(h){function k(n,l,r,m){return(0,A.default)(this,k),f.call(this,n,l,r,m,d.CLONE_BOTTOM_INLINE_START_CORNER)}(0,x.default)(k,h);var f=F(k);return(0,D.default)(k)}(e.default);(0,c.mixin)(a,g.default);(0,c.mixin)(a,B.default);b.default=a},function(g,b,a){g= 3468a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a=function(){function D(A,x,q){(0,F.default)(this,D);this.offset=A;this.total=x;this.countTH=q}return(0,B.default)(D,[{key:"offsetted",value:function(A){return A+this.offset}},{key:"unOffsetted",value:function(A){return A-this.offset}},{key:"renderedToSource",value:function(A){return this.offsetted(A)}},{key:"sourceToRendered",value:function(A){return this.unOffsetted(A)}},{key:"offsettedTH",value:function(A){return A-this.countTH}},{key:"unOffsettedTH", 3469value:function(A){return A+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(A){return this.renderedToSource(this.offsettedTH(A))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(A){return this.unOffsettedTH(this.sourceToRendered(A))}}]),D}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a=function(){function D(A,x,q){(0,F.default)(this,D);this.offset=A;this.total=x;this.countTH=q}return(0,B.default)(D,[{key:"offsetted", 3470value:function(A){return A+this.offset}},{key:"unOffsetted",value:function(A){return A-this.offset}},{key:"renderedToSource",value:function(A){return this.offsetted(A)}},{key:"sourceToRendered",value:function(A){return this.unOffsetted(A)}},{key:"offsettedTH",value:function(A){return A-this.countTH}},{key:"unOffsettedTH",value:function(A){return A+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(A){return this.renderedToSource(this.offsettedTH(A))}},{key:"sourceRowToVisibleColHeadedRow", 3471value:function(A){return this.unOffsettedTH(this.sourceToRendered(A))}}]),D}();b.default=a},function(g,b,a){function F(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d=(0,q.default)(e);if(c){var h=(0,q.default)(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this, 3472arguments);return(0,x.default)(this,d)}}a(7);g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(0);a(2);a(11);a(4);var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14)),p=a(245);a=function(e){function c(){var h;return(0,B.default)(this,c),(h=d.call(this,"TH")).orderViews=new WeakMap,h.sourceRowIndex=0,h}(0,A.default)(c,e);var d=F(c);return(0,D.default)(c,[{key:"obtainOrderView",value:function(h){var k,f=this;return this.orderViews.has(h)?k=this.orderViews.get(h):(k=new p.SharedOrderView(h,function(n){return f.nodesPool.obtain(f.sourceRowIndex, 3473n)},this.nodeType),this.orderViews.set(h,k)),k}},{key:"render",value:function(){var h=this.table,k=h.rowsToRender,f=h.rowHeaderFunctions,n=h.rowHeadersCount,l=h.rows;h=h.cells;for(var r=0;r<k;r++){var m=this.table.renderedRowToSource(r),t=l.getRenderedNode(r);this.sourceRowIndex=m;var u=this.obtainOrderView(t);t=h.obtainOrderView(t);u.appendView(t).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(t=0;t<n;t++){u.render();var w=u.getCurrentNode();w.className="";w.removeAttribute("style"); 3474f[t](m,w,t)}u.end()}}}]),c}(g(a(205)).default);b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=g(a(799)),A=a(596);a=function(){function x(){(0,F.default)(this,x);this.size=new D.default;this.workingSpace=A.WORKING_SPACE_ALL;this.sharedSize=null}return(0,B.default)(x,[{key:"setSize",value:function(q){this.size.setSize(q)}},{key:"setOffset",value:function(q){this.size.setOffset(q)}},{key:"getViewSize",value:function(){return this.size}},{key:"isShared", 3475value:function(){return this.sharedSize instanceof D.default}},{key:"isPlaceOn",value:function(q){return this.workingSpace===q}},{key:"append",value:function(q){this.workingSpace=A.WORKING_SPACE_TOP;q.workingSpace=A.WORKING_SPACE_BOTTOM;this.sharedSize=q.getViewSize()}},{key:"prepend",value:function(q){this.workingSpace=A.WORKING_SPACE_BOTTOM;q.workingSpace=A.WORKING_SPACE_TOP;this.sharedSize=q.getViewSize()}}]),x}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)), 3476B=g(a(6));a=function(){function D(){(0,F.default)(this,D);this.nextOffset=this.currentOffset=this.nextSize=this.currentSize=0}return(0,B.default)(D,[{key:"setSize",value:function(A){this.currentSize=this.nextSize;this.nextSize=A}},{key:"setOffset",value:function(A){this.currentOffset=this.nextOffset;this.nextOffset=A}}]),D}
3476();b.default=a},function(g,b,a){function F(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 3477try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c=(0,q.default)(p);if(e){var d=(0,q.default)(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);return(0,x.default)(this,c)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14));a=function(p){function e(){return(0,B.default)(this,e),c.apply(this,arguments)}(0,A.default)(e,p);var c= 3478F(e);return(0,D.default)(e,[{key:"prependView",value:function(d){return this.sizeSet.prepend(d.sizeSet),d.sizeSet.append(this.sizeSet),this}},{key:"appendView",value:function(d){return this.sizeSet.append(d.sizeSet),d.sizeSet.prepend(this.sizeSet),this}}]),e}(g(a(595)).default);b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a=function(){function D(A){(0,F.default)(this,D);this.nodeType=A.toUpperCase()}return(0,B.default)(D,[{key:"setRootDocument",value:function(A){this.rootDocument= 3479A}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),D}();b.default=a},function(g,b,a){function F(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d=(0,q.default)(e);if(c){var h=(0,q.default)(this).constructor;d=Reflect.construct(d,arguments, 3480h)}else d=d.apply(this,arguments);return(0,x.default)(this,d)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14)),p=a(23);a=function(e){function c(h){return(0,B.default)(this,c),d.call(this,null,h)}(0,A.default)(c,e);var d=F(c);return(0,D.default)(c,[{key:"adjust",value:function(){var h=this.table,k=h.columnHeadersCount,f=h.rowHeadersCount;h=this.rootNode.firstChild;if(k){f=this.table.columnsToRender+f;for(var n=0;n<k;n++){(h=this.rootNode.childNodes[n])|| 3481(h=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(h));for(this.renderedNodes=h.childNodes.length;this.renderedNodes<f;)h.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>f;)h.removeChild(h.lastChild),--this.renderedNodes}h=this.rootNode.childNodes.length;if(h>k)for(;k<h;k++)this.rootNode.removeChild(this.rootNode.lastChild)}else h&&(0,p.empty)(h)}},{key:"render",value:function(){for(var h=this.table.columnHeadersCount,k= 34820;k<h;k+=1){var f=this.table,n=f.columnHeaderFunctions,l=f.columnsToRender;f=f.rowHeadersCount;for(var r=this.rootNode.childNodes[k],m=-1*f;m<l;m+=1){var t=this.table.renderedColumnToSource(m),u=r.childNodes[m+f];u.className="";u.removeAttribute("style");n[k](t,u,k)}}}}]),c}(g(a(205)).default);b.default=a},function(g,b,a){function F(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 3483[],function(){})),!0}catch(d){return!1}}();return function(){var d=(0,q.default)(e);if(c){var h=(0,q.default)(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);return(0,x.default)(this,d)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14));g=g(a(205));var p=a(23);a=function(e){function c(h){return(0,B.default)(this,c),d.call(this,null,h)}(0,A.default)(c,e);var d=F(c);return(0,D.default)(c,[{key:"adjust",value:function(){var h= 3484this.table;for(h=h.columnsToRender+h.rowHeadersCount;this.renderedNodes<h;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>h;)this.rootNode.removeChild(this.rootNode.lastChild),--this.renderedNodes}},{key:"render",value:function(){this.adjust();var h=this.table,k=h.columnsToRender;h=h.rowHeadersCount;for(var f=0;f<h;f++){var n=this.table.renderedColumnToSource(f);n=this.table.columnUtils.getHeaderWidth(n);this.rootNode.childNodes[f].style.width= 3485"".concat(n,"px")}for(f=0;f<k;f++)n=this.table.renderedColumnToSource(f),n=this.table.columnUtils.getStretchedColumnWidth(n),this.rootNode.childNodes[f+h].style.width="".concat(n,"px");(k=this.rootNode.firstChild)&&(0,p.addClass)(k,"rowHeader")}}]),c}(g.default);b.default=a},function(g,b,a){function F(f){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 3486[],function(){})),!0}catch(l){return!1}}();return function(){var l=(0,e.default)(f);if(n){var r=(0,e.default)(this).constructor;l=Reflect.construct(l,arguments,r)}else l=l.apply(this,arguments);return(0,p.default)(this,l)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B,D=g(a(78)),A=g(a(5)),x=g(a(6)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=a(92),d=a(79),h=a(245),k=!1;a=function(f){function n(r){var m;return(0,A.default)(this,n),(m=l.call(this,"TR",r)).orderView=new h.OrderView(r,function(t){return m.nodesPool.obtain(t)}, 3487m.nodeType),m}(0,q.default)(n,f);var l=F(n);return(0,x.default)(n,[{key:"getRenderedNode",value:function(r){return this.orderView.getNode(r)}},{key:"render",value:function(){var r=this.table.rowsToRender;!k&&1E3<r&&(k=!0,(0,c.warn)((0,d.toSingleLine)(B||(B=(0,D.default)(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting \n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.'],['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\\x20\n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']))))); 3488this.orderView.setSize(r).setOffset(this.table.renderedRowToSource(0)).start();for(var m=0;m<r;m++)this.orderView.render();this.orderView.end()}}]),n}(g(a(205)).default);b.default=a},function(g,b,a){function F(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=(0,q.default)(c); 3489if(d){var k=(0,q.default)(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);return(0,x.default)(this,h)}}a(7);g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(0);a(2);a(11);a(4);var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14)),p=a(23),e=a(245);a=function(c){function d(){var k;return(0,B.default)(this,d),(k=h.call(this,"TD")).orderViews=new WeakMap,k.sourceRowIndex=0,k}(0,A.default)(d,c);var h=F(d);return(0,D.default)(d,[{key:"obtainOrderView",value:function(k){var f, 3490n=this;return this.orderViews.has(k)?f=this.orderViews.get(k):(f=new e.SharedOrderView(k,function(l){return n.nodesPool.obtain(n.sourceRowIndex,l)},this.nodeType),this.orderViews.set(k,f)),f}},{key:"render",value:function(){var k=this.table,f=k.rowsToRender,n=k.columnsToRender,l=k.rows;k=k.rowHeaders;for(var r=0;r<f;r++){var m=this.table.renderedRowToSource(r),t=l.getRenderedNode(r);this.sourceRowIndex=m;var u=this.obtainOrderView(t);t=k.obtainOrderView(t);
3490u.prependView(t).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start(); 3491for(t=0;t<n;t++){u.render();var w=u.getCurrentNode(),v=this.table.renderedColumnToSource(t);(0,p.hasClass)(w,"hide")||(w.className="");w.removeAttribute("style");w.removeAttribute("dir");this.table.cellRenderer(m,v,w)}u.end()}}}]),d}(g(a(205)).default);b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a=function(){function D(A){var x=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).cellRenderer;(0,F.default)(this,D);this.rootNode=A;this.rootDocument= 3492this.rootNode.ownerDocument;this.columnUtils=this.rowUtils=this.columnFilter=this.rowFilter=this.cells=this.rows=this.colGroup=this.columnHeaders=this.rowHeaders=null;this.columnsToRender=this.rowsToRender=0;this.rowHeaderFunctions=[];this.rowHeadersCount=0;this.columnHeaderFunctions=[];this.columnHeadersCount=0;this.cellRenderer=x}return(0,B.default)(D,[{key:"setAxisUtils",value:function(A,x){this.rowUtils=A;this.columnUtils=x}},{key:"setViewportSize",value:function(A,x){this.rowsToRender=A;this.columnsToRender= 3493x}},{key:"setFilters",value:function(A,x){this.rowFilter=A;this.columnFilter=x}},{key:"setHeaderContentRenderers",value:function(A,x){this.rowHeaderFunctions=A;this.rowHeadersCount=A.length;this.columnHeaderFunctions=x;this.columnHeadersCount=x.length}},{key:"setRenderers",value:function(){var A=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},x=A.rowHeaders,q=A.columnHeaders,p=A.colGroup,e=A.rows;A=A.cells;x.setTable(this);q.setTable(this);p.setTable(this);e.setTable(this);A.setTable(this); 3494this.rowHeaders=x;this.columnHeaders=q;this.colGroup=p;this.rows=e;this.cells=A}},{key:"renderedRowToSource",value:function(A){return this.rowFilter.renderedToSource(A)}},{key:"renderedColumnToSource",value:function(A){return this.columnFilter.renderedToSource(A)}},{key:"render",value:function(){this.colGroup.adjust();this.columnHeaders.adjust();this.rows.adjust();this.rowHeaders.adjust();this.columnHeaders.render();this.rows.render();this.rowHeaders.render();this.cells.render();this.columnUtils.calculateWidths(); 3495this.colGroup.render();for(var A=this.rowsToRender,x=this.rows,q=0;q<A;q++){var p=x.getRenderedNode(q);if(p.firstChild){var e=this.renderedRowToSource(q);e=this.rowUtils.getHeight(e);p.firstChild.style.height=e?"".concat(e-1,"px"):""}}}}]),D}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(32);a(0);a(2);a(4);var F=g(a(5)),B=g(a(6)),D=a(23);a=function(){function A(x,q){(0,F.default)(this,A);this.dataAccessObject=x;this.wtSettings=q;this.headerWidths=new Map}return(0,B.default)(A, 3496[{key:"getWidth",value:function(x){return this.wtSettings.getSetting("columnWidth",x)||this.wtSettings.getSetting("defaultColumnWidth")}},{key:"getStretchedColumnWidth",value:function(x){var q=this.dataAccessObject.wtViewport.columnsRenderCalculator,p=this.getWidth(x);q&&(x=q.getStretchedColumnWidth(x,p))&&(p=x);return p}},{key:"getHeaderHeight",value:function(x){var q=this.wtSettings.getSetting("defaultRowHeight");x=this.dataAccessObject.wtViewport.oversizedColumnHeaders[x];return void 0!==x&&(q= 3497q?Math.max(q,x):x),q}},{key:"getHeaderWidth",value:function(x){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(x))}},{key:"calculateWidths",value:function(){var x=this.wtSettings,q=this.dataAccessObject,p=q.wtTable,e=q.wtViewport;p=(q=q.cloneSource)?q.wtTable.holder:p.holder;q=p.offsetHeight<p.scrollHeight?(0,D.getScrollbarWidth)():0;p=x.getSetting("rowHeaderWidth");if(e.columnsRenderCalculator.refreshStretching(e.getViewportWidth()-q),null!=(p=x.getSetting("onModifyRowHeaderWidth", 3498p)))for(e=x.getSetting("rowHeaders").length,x=x.getSetting("defaultColumnWidth"),q=0;q<e;q++){var c=Array.isArray(p)?p[q]:p;c=null==c?x:c;this.headerWidths.set(q,c)}}}]),A}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a=function(){function D(A,x){(0,F.default)(this,D);this.dataAccessObject=A;this.wtSettings=x}return(0,B.default)(D,[{key:"getHeight",value:function(A){var x=this.wtSettings.getSetting("rowHeight",A);A=this.dataAccessObject.wtViewport.oversizedRows[A]; 3499return void 0!==A&&(x=void 0===x?A:Math.max(x,A)),x}}]),D}();b.default=a},function(g,b,a){function F(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k=(0,p.default)(d);if(h){var f=(0,p.default)(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments); 3500return(0,q.default)(this,k)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(6)),D=g(a(5)),A=g(a(44)),x=g(a(15)),q=g(a(16)),p=g(a(14)),e=g(a(41)),c=g(a(593));a=function(d){function h(f,n,l){(0,D.default)(this,h);f=k.call(this,f,n);(0,e.default)((0,A.default)(f),"cloneSource",void 0);(0,e.default)((0,A.default)(f),"cloneOverlay",void 0);n=f.wtSettings.getSetting("facade",(0,A.default)(f));return f.cloneSource=l.source,f.cloneOverlay=l.overlay,f.wtTable=f.cloneOverlay.createTable(f.getTableDao(), 3501n,f.domBindings,f.wtSettings),f.wtViewport=l.viewport,f.selections=l.selections,f.wtEvent=ne
3501w c.default(n,f.domBindings,f.wtSettings,f.eventManager,f.wtTable,f.selections,l.event),f.findOriginalHeaders(),f}(0,x.default)(h,d);var k=F(h);return(0,B.default)(h)}(g(a(314)).default);b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(68);a(52);var F=g(a(5)),B=g(a(6)),D=g(a(41)),A=a(23);a=function(){function x(q){(0,F.default)(this,x);(0,D.default)(this,"dataAccessObject",void 0);(0,D.default)(this, 3502"lastScrolledColumnPos",-1);(0,D.default)(this,"lastScrolledRowPos",-1);this.dataAccessObject=q}return(0,B.default)(x,[{key:"scrollViewport",value:function(q,p,e,c,d){e=this.scrollViewportHorizontally(q.col,e,d);q=this.scrollViewportVertically(q.row,p,c);return e||q}},{key:"scrollViewportHorizontally",value:function(q,p,e){var c=this.dataAccessObject,d=c.totalColumns;if(!c.drawn||!Number.isInteger(q)||0>q||q>d)return!1;c=this.getFirstVisibleColumn();d=this.getLastVisibleColumn();e=void 0===p&&void 0=== 3503e;var h=this.dataAccessObject,k=h.fixedColumnsStart;h=h.inlineStartOverlay;if(e&&q<k)return!1;k=!1;return-1===c?k=h.scrollTo(q,e?q>this.lastScrolledColumnPos:p):(e&&(q<c||q>d)||!e)&&(k=h.scrollTo(q,e?q>d:p)),k&&(this.lastScrolledColumnPos=q),k}},{key:"scrollViewportVertically",value:function(q,p,e){var c=this.dataAccessObject,d=c.totalRows;if(!c.drawn||!Number.isInteger(q)||0>q||q>d)return!1;c=this.getFirstVisibleRow();var h=this.getLastVisibleRow();p=void 0===p&&void 0===e;var k=this.dataAccessObject, 3504f=k.fixedRowsBottom,n=k.fixedRowsTop;k=k.topOverlay;if(p&&(q<n||q>d-f-1))return!1;d=!1;return-1===c?d=k.scrollTo(q,p?q>this.lastScrolledRowPos:e):(p&&(q<c||q>h)||!p)&&(d=k.scrollTo(q,p?q>h:e)),d&&(this.lastScrolledRowPos=q),d}},{key:"getFirstVisibleRow",value:function(){var q=this.dataAccessObject,p=q.topOverlay,e=q.wtTable,c=q.wtViewport,d=q.totalRows,h=q.fixedRowsTop,k=q.rootWindow;q=e.getFirstVisibleRow();if(p.mainTableScrollableElement===k){var f=(0,A.offset)(e.wtRootElement);e=(0,A.innerHeight)(e.hider); 3505var n=(0,A.innerHeight)(k);k=(0,A.getScrollTop)(k,k);if(f.top+e-n<=k)for(c=c.getColumnHeaderHeight(),c+=p.sumCellSizes(0,h);0<d;d--)if(c+=p.sumCellSizes(d-1,d),f.top+e-c<=k){q=d;break}}return q}},{key:"getLastVisibleRow",value:function(){var q=this.dataAccessObject,p=q.topOverlay,e=q.wtTable,c=q.wtViewport,d=q.totalRows,h=q.rootWindow;q=e.getLastVisibleRow();if(p.mainTableScrollableElement===h){e=(0,A.offset)(e.wtRootElement);var k=(0,A.getScrollTop)(h,h);if(e.top>k){h=(0,A.innerHeight)(h);c=c.getColumnHeaderHeight(); 3506for(var f=1;f<=d;f++)if(c+=p.sumCellSizes(f-1,f),e.top+c-k>=h){q=f-2;break}}}return q}},{key:"getFirstVisibleColumn",value:function(){var q=this.dataAccessObject,p=q.inlineStartOverlay,e=q.wtTable,c=q.wtViewport,d=q.totalColumns,h=q.rootWindow;q=e.getFirstVisibleColumn();if(p.mainTableScrollableElement===h){var k=(0,A.offset)(e.wtRootElement);e=(0,A.innerWidth)(e.hider);var f=(0,A.innerWidth)(h);h=Math.abs((0,A.getScrollLeft)(h,h));if(k.left+e-f<=h)for(c=c.getRowHeaderWidth();0<d;d--)if(c+=p.sumCellSizes(d- 35071,d),k.left+e-c<=h){q=d;break}}return q}},{key:"getLastVisibleColumn",value:function(){var q=this.dataAccessObject,p=q.inlineStartOverlay,e=q.wtTable,c=q.wtViewport,d=q.totalColumns,h=q.rootWindow;q=e.getLastVisibleColumn();if(p.mainTableScrollableElement===h){e=(0,A.offset)(e.wtRootElement);var k=Math.abs((0,A.getScrollLeft)(h,h));if(e.left>k){h=(0,A.innerWidth)(h);c=c.getRowHeaderWidth();for(var f=1;f<=d;f++)if(c+=p.sumCellSizes(f-1,f),e.left+c-k>=h){q=f-2;break}}}return q}}]),x}();b.default=a}, 3508function(g,b,a){function F(f){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}();return function(){var l=(0,e.default)(f);if(n){var r=(0,e.default)(this).constructor;l=Reflect.construct(l,arguments,r)}else l=l.apply(this,arguments);return(0,p.default)(this,l)}}a(0);a(7);g=a(1);b.__esModule=!0;b.BottomOverlay= 3509void 0;var B=g(a(168)),D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=g(a(41)),d=a(23),h=g(a(812));g=a(170);var k=a(149);a=function(f){function n(r,m,t,u){var w;return(0,D.default)(this,n),w=l.call(this,r,m,k.CLONE_BOTTOM,t,u),(0,c.default)((0,x.default)(w),"cachedFixedRowsBottom",
3509-1),w.cachedFixedRowsBottom=w.wtSettings.getSetting("fixedRowsBottom"),w}(0,q.default)(n,f);var l=F(n);return(0,A.default)(n,[{key:"createTable",value:function(){for(var r=arguments.length,m=Array(r), 3510t=0;t<r;t++)m[t]=arguments[t];return(0,B.default)(h.default,m)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var r=this.domBindings.rootWindow,m=this.clone.wtTable.holder.parentNode;m.style.top="";var t=0,u=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==r||u&&"vertical"===u?(t=this.getScrollPosition(), 3511this.repositionOverlay()):(t=this.getOverlayOffset(),m.style.bottom="".concat(t,"px"));r=this.adjustHeaderBordersPosition(t);return this.adjustElementsSize(),r}},{key:"repositionOverlay",value:function(){var r=this.wot,m=r.wtTable;r=r.wtViewport;var t=this.domBindings.rootDocument,u=this.clone.wtTable.holder.parentNode,w=0;r.hasVerticalScroll()||(w+=r.getWorkspaceHeight()-m.getTotalHeight());r.hasVerticalScroll()&&r.hasHorizontalScroll()&&(w+=(0,d.getScrollbarWidth)(t));u.style.bottom="".concat(w, 3512"px")}},{key:"setScrollPosition",value:function(r){var m=this.domBindings.rootWindow,t=!1;return this.mainTableScrollableElement===m?(m.scrollTo((0,d.getWindowScrollLeft)(m),r),t=!0):this.mainTableScrollableElement.scrollTop!==r&&(this.mainTableScrollableElement.scrollTop=r,t=!0),t}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(r,m){var t=this.wot,u=t.wtTable;t=t.wtSettings.getSetting("defaultRowHeight");for(var w=0;r<m;){var v= 3513u.getRowHeight(r);w+=void 0===v?t:v;r+=1}return w}},{key:"adjustElementsSize",value:function(){var r=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer();(this.needFullRender||r)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var r=this.wot,m=r.wtTable,t=r.wtViewport;r=this.domBindings;var u=r.rootWindow,w=(0,d.getScrollbarWidth)(r.rootDocument);r=this.clone.wtTable.holder.parentNode.style;var v=this.wtSettings.getSetting("preventOverflow"); 3514this.trimmingContainer!==u||"horizontal"===v?(t=t.getWorkspaceWidth(),this.wot.wtOverlays.hasScrollbarRight&&(t-=w),t=Math.min(t,m.wtRootElement.scrollWidth),r.width="".concat(t,"px")):r.width="";this.clone.wtTable.holder.style.width=r.width;m=(0,d.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(m=0);r.height="".concat(m,"px")}},{key:"adjustRootChildrenSize",value:function(){var r=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width;r.style.width= 3515r.parentNode.style.width;r.style.height=r.parentNode.style.height}},{key:"applyToDOM",value:function(){var r=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==r)throw Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="";this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset", 3516value:function(){var r=this.isRtl()?"right":"left",m=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?m.style[r]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):m.style[r]=""}},{key:"scrollTo",value:function(r,m){var t=this.getTableParentOffset(),u=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,w=0;m&&u.offsetHeight!==u.clientHeight&&(w=(0,d.getScrollbarWidth)(this.domBindings.rootDocument));m?(t+= 3517this.sumCellSizes(0,r+1),t-=this.wot.wtViewport.getViewportHeight(),t+=1):t+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),r);this.setScrollPosition(t+w)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,d.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var r= 3518this.domBindings.rootWindow,m=this.wtSettings.getSetting("preventOverflow"),t=0;this.trimmingContainer!==r||m&&"vertical"===m||(t=this.wot.wtTable.getTotalHeight(),r=t-this.clone.wtTable.getTotalHeight(),m=this.domBindings.rootDocument.documentElement.clientHeight,(t=Math.max(this.getTableParentOffset()-this.getScrollPosition()-m+t,0))>r&&(t=0));return t}}
3518,{key:"adjustHeaderBordersPosition",value:function(r){var m=this.wtSettings.getSetting("fixedRowsBottom"),t=this.cachedFixedRowsBottom!==m,u=this.wtSettings.getSetting("columnHeaders"), 3519w=!1;(t||0===m)&&0<u.length&&(m=this.wot.wtTable.holder.parentNode,t=(0,d.hasClass)(m,"innerBorderBottom"),this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),r||0===this.wtSettings.getSetting("totalRows")?((0,d.addClass)(m,"innerBorderBottom"),w=!t):((0,d.removeClass)(m,"innerBorderBottom"),w=t));return w}}]),n}(g.Overlay);b.BottomOverlay=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"== 3520typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,p.default)(h);if(k){var n=(0,p.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,q.default)(this,f)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.default=void 0;var D=B(a(6)),A=B(a(5)),x=B(a(15)),q=B(a(16)),p=B(a(14)),e=B(a(169));g=B(a(597));B=B(a(315));var c=a(17),d=a(148);a=function(h){function k(n, 3521l,r,m){return(0,A.default)(this,k),f.call(this,n,l,r,m,d.CLONE_BOTTOM)}(0,x.default)(k,h);var f=F(k);return(0,D.default)(k)}(e.default);(0,c.mixin)(a,g.default);(0,c.mixin)(a,B.default);b.default=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f= 3522(0,p.default)(h);if(k){var n=(0,p.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,q.default)(this,f)}}a(0);a(7);g=a(1);b.__esModule=!0;b.InlineStartOverlay=void 0;var B=g(a(168)),D=g(a(5)),A=g(a(6)),x=g(a(15)),q=g(a(16)),p=g(a(14)),e=a(23),c=g(a(814));g=a(170);var d=a(149);a=function(h){function k(n,l,r,m){return(0,D.default)(this,k),f.call(this,n,l,d.CLONE_INLINE_START,r,m)}(0,x.default)(k,h);var f=F(k);return(0,A.default)(k,[{key:"createTable", 3523value:function(){for(var n=arguments.length,l=Array(n),r=0;r<n;r++)l[r]=arguments[r];return(0,B.default)(c.default,l)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var n=this.wot.wtTable;if(!this.needFullRender||!n.holder.parentNode)return!1;n=this.domBindings.rootWindow;var l=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow"),m=0;this.trimmingContainer!== 3524n||r&&"horizontal"===r?(m=this.getScrollPosition(),(0,e.resetCssTransform)(l)):(m
3524=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,e.setOverlayPosition)(l,"".concat(m,"px"),"0px"));n=this.adjustHeaderBordersPosition(m);return this.adjustElementsSize(),n}},{key:"setScrollPosition",value:function(n){var l=this.domBindings.rootWindow,r=!1;return this.isRtl()&&(n=-n),this.mainTableScrollableElement===l&&l.scrollX!==n?(l.scrollTo(n,(0,e.getWindowScrollTop)(l)),r=!0):this.mainTableScrollableElement.scrollLeft!== 3525n&&(this.mainTableScrollableElement.scrollLeft=n,r=!0),r}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(n,l){for(var r=this.wtSettings.getSetting("defaultColumnWidth"),m=0;n<l;)m+=this.wot.wtTable.getStretchedColumnWidth(n)||r,n+=1;return m}},{key:"adjustElementsSize",value:function(){var n=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer();(this.needFullRender||n)&&(this.adjustRootElementSize(), 3526this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var n=this.wot.wtTable,l=this.domBindings,r=l.rootWindow,m=(0,e.getScrollbarWidth)(l.rootDocument);l=this.clone.wtTable.holder.parentNode.style;var t=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==r||"vertical"===t?(r=this.wot.wtViewport.getWorkspaceHeight(),this.wot.wtOverlays.hasScrollbarBottom&&(r-=m),r=Math.min(r,n.wtRootElement.scrollHeight),l.height="".concat(r,"px")):l.height="";this.clone.wtTable.holder.style.height= 3527l.height;n=(0,e.outerWidth)(this.clone.wtTable.TABLE);l.width="".concat(n,"px")}},{key:"adjustRootChildrenSize",value:function(){var n,l=this.clone.wtTable.holder,r=this.wot.selections,m=this.facadeGetter();r=Math.abs(null!==(n=null==r?void 0:r.getCell().getBorder(m).cornerCenterPointOffset)&&void 0!==n?n:0);this.clone.wtTable.hider.style.height=this.hider.style.height;l.style.height=l.parentNode.style.height;l.style.width="".concat(parseInt(l.parentNode.style.width,10)+r,"px")}},{key:"applyToDOM", 3528value:function(){var n=this.wtSettings.getSetting("totalColumns"),l=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[l]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==n)throw Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[l]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="";this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset", 3529value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(n,l){var r=this.getTableParentOffset(),m=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,t=0;l&&this.wot.wtTable.getColumnWidth(n)>this.wot.wtViewport.getViewportWidth()&&(l=!1);return l&&m.offsetWidth!==m.clientWidth&& 3530(t=(0,e.getScrollbarWidth)(this.domBindings.rootDocument)),l?(r+=this.sumCellSizes(0,n+1),r-=this.wot.wtViewport.getViewportWidth()):r+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),n),r+=t,this.setScrollPosition(r)}},{key:"getTableParentOffset",value:function(){var n=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(n=this.wot.wtTable.holderOffset.left),n}},{key:"getScrollPosition",value:function(){return Math.abs((0,e.getScrollLeft)(this.mainTableScrollableElement, 3531this.domBindings.rootWindow))}},{key:"getOverlayOffset",value:function(){var n=this.domBindings.rootWindow,l=this.wtSettings.getSetting("preventOverflow"),r=0;this.trimmingContainer!==n||l&&"horizontal"===l||(r=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(r=0);return r}},{key:"adjustHeaderBordersPosition",value:function(n){var l= 3532this.wot.wtTable.holder.parentNode,r=this.wtSettings.getSetting("rowHeaders"),m=this.wtSettings.getSetting("fixedColumnsStart");this.wtSettings.getSetting("totalRows")?(0,e.removeClass)(l,"emptyRows"):(0,e.addClass)(l,"emptyRows");var t=!1;m&&!r.length?(0,e.addClass)(l,"innerBorderLeft innerBorderInlineStart"):!m&&r.length&&(r=(0,e.hasClass)(l,"innerBorderInlineStart"),n?((0,e.addClass)(l,"innerBorderLeft innerBorderInlineStart"),t=!r):((0,e.removeClass)(l,"innerBorderLeft innerBorderInlineStart"), 3533t=r));return t}}]),k}(g.Overlay);b.InlineStartOverlay=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,p.default)(h);if(k){var n=(0,p.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,q.default)(this, 3534f)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.default=void 0;var D=B(a(6)),A=B(a(5)),x=B(a(15)),q=B(a(16)),p=B(a(14)),e=B(a(169));g=B(a(598));B=B(a(313));var c=a(17),d=a(148);a=function(h){function k(n,l,r,m){return(0,A.default)(this,k),f.call(this,n,l,r,m,d.CLONE_INLINE_START)}(0,x.default)(k,h);var f=F(k);return(0,D.default)(k)}(e.default);(0,c.mixin)(a,g.default);(0,c.mixin)(a,B.default);b.default=a},function(g,b,a){function F(f){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct|| 3535Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}();return function(){var l=(0,e.default)(f);if(n){var r=(0,e.default)(this).constructor;l=Reflect.construct(l,arguments,r)}else l=l.apply(this,arguments);return(0,p.default)(this,l)}}a(0);a(7);g=a(1);b.__esModule=!0;b.TopInlineStartCornerOverlay=void 0;var B=g(a(168)),D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(15)),p=g(a(16)),e= 3536g(a(14)),c=g(a(41)),d=a(23),h=g(a(816));g=a(170);var k=a(149);a=function(f){function n(r,m,t,u,w,v){var C;return(0,D.default)(this,n),C=l.call(this,r,m,k.CLONE_TOP_INLINE_START_CORNER,t,u),(0,c.default)((0,x.default)(C),"topOverlay",void 0),(0,c.default)((0,x.default)(C),"inlineStartOverlay",void 0),C.topOverlay=w,C.inlineStartOverlay=v,C}(0,q.default)(n,f);var l=F(n);return(0,A.default)(n,[{key:"createTable",value:function(){for(var r=arguments.length,m=Array(r),t=0;t<r;t++)m[t]=arguments[t];return(0,B.default)(h.default, 3537m)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;var r=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){var m=this.inl
3537ineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),t=this.topOverlay.getOverlayOffset();(0,d.setOverlayPosition)(r, 3538"".concat(m,"px"),"".concat(t,"px"))}else(0,d.resetCssTransform)(r);m=(0,d.outerHeight)(this.clone.wtTable.TABLE);t=(0,d.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(m=0),r.style.height="".concat(m,"px"),r.style.width="".concat(t,"px"),!1}}]),n}(g.Overlay);b.TopInlineStartCornerOverlay=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 3539[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,p.default)(h);if(k){var n=(0,p.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,q.default)(this,f)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.default=void 0;var D=B(a(6)),A=B(a(5)),x=B(a(15)),q=B(a(16)),p=B(a(14)),e=B(a(169));g=B(a(599));B=B(a(313));var c=a(17),d=a(148);a=function(h){function k(n,l,r,m){return(0,A.default)(this,k),f.call(this,n,l,r,m,d.CLONE_TOP_INLINE_START_CORNER)} 3540(0,x.default)(k,h);var f=F(k);return(0,D.default)(k)}(e.default);(0,c.mixin)(a,g.default);(0,c.mixin)(a,B.default);b.default=a},function(g,b,a){function F(f){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}();return function(){var l=(0,e.default)(f);if(n){var r=(0,e.default)(this).constructor;l=Reflect.construct(l, 3541arguments,r)}else l=l.apply(this,arguments);return(0,p.default)(this,l)}}a(0);a(7);g=a(1);b.__esModule=!0;b.TopOverlay=void 0;var B=g(a(168)),D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=g(a(41)),d=a(23),h=g(a(818));g=a(170);var k=a(149);a=function(f){function n(r,m,t,u){var w;return(0,D.default)(this,n),w=l.call(this,r,m,k.CLONE_TOP,t,u),(0,c.default)((0,x.default)(w),"cachedFixedRowsTop",-1),w.cachedFixedRowsTop=w.wtSettings.getSetting("fixedRowsTop"),w}(0,q.default)(n,f);var l= 3542F(n);return(0,A.default)(n,[{key:"createTable",value:function(){for(var r=arguments.length,m=Array(r),t=0;t<r;t++)m[t]=arguments[t];return(0,B.default)(h.default,m)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var r=this.clone.wtTable.holder.parentNode,m=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"), 3543u=!1;this.trimmingContainer!==m||t&&"vertical"===t?(m=this.getScrollPosition(),(0,d.resetCssTransform)(r)):(u=this.wot.wtTable.hider.getBoundingClientRect(),u=Math.ceil(u.bottom)===r.offsetHeight,m=this.getOverlayOffset(),(0,d.setOverlayPosition)(r,"0px","".concat(m,"px")));r=this.adjustHeaderBordersPosition(m,u);return this.adjustElementsSize(),r}},{key:"setScrollPosition",value:function(r){var m=this.domBindings.rootWindow,t=!1;return this.mainTableScrollableElement===m&&m.scrollY!==r?(m.scrollTo((0,d.getWindowScrollLeft)(m), 3544r),t=!0):this.mainTableScrollableElement.scrollTop!==r&&(this.mainTableScrollableElement.scrollTop=r,t=!0),t}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(r,m){for(var t=this.wtSettings.getSetting("defaultRowHeight"),u=0;r<m;){var w=this.wot.wtTable.getRowHeight(r);u+=void 0===w?t:w;r+=1}return u}},{key:"adjustElementsSize",value:function(){var r=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(); 3545(this.needFullRender||r)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var r=this.wot.wtTable,m=this.domBindings,t=m.rootWindow,u=(0,d.getScrollbarWidth)(m.rootDocument);m=this.clone.wtTable.holder.parentNode.style;var w=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==t||"horizontal"===w?(t=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtOverlays.hasScrollbarRight&&(t-=u),t=Math.min(t,r.wtRootElement.scrollWidth), 3546m.width="".concat(t,"px")):m.width="";this.clone.wtTable.holder.style.width=m.width;r=(0,d.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(r=0);m.height="".concat(r,"px")}}
3546,{key:"adjustRootChildrenSize",value:function(){var r,m=this.clone.wtTable.holder,t=this.wot.selections,u=this.facadeGetter();t=Math.abs(null!==(r=null==t?void 0:t.getCell().getBorder(u).cornerCenterPointOffset)&&void 0!==r?r:0);this.clone.wtTable.hider.style.width=this.hider.style.width;m.style.width= 3547m.parentNode.style.width;m.style.height="".concat(parseInt(m.parentNode.style.height,10)+t,"px")}},{key:"applyToDOM",value:function(){var r=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==r)throw Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="";this.needFullRender&& 3548this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var r=this.isRtl()?"right":"left",m=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?m.style[r]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):m.style[r]=""}},{key:"scrollTo",value:function(r,m){var t=this.wot,u=this.wtSettings,w=(t.cloneSource?t.cloneSource:t).wtTable.holder,v=this.getTableParentOffset(),C=0;m&&this.wot.wtTable.getRowHeight(r)>this.wot.wtViewport.getViewportHeight()&& 3549(m=!1);(m&&w.offsetHeight!==w.clientHeight&&(C=(0,d.getScrollbarWidth)(this.domBindings.rootDocument)),m)?(m=u.getSetting("fixedRowsBottom"),u=u.getSetting("totalRows"),v+=this.sumCellSizes(0,r+1),v-=t.wtViewport.getViewportHeight()-this.sumCellSizes(u-m,u),v+=1):v+=this.sumCellSizes(u.getSetting("fixedRowsTop"),r);return v+=C,this.setScrollPosition(v)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top: 35500}},{key:"getScrollPosition",value:function(){return(0,d.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var r=this.domBindings.rootWindow,m=this.wtSettings.getSetting("preventOverflow"),t=0;this.trimmingContainer!==r||m&&"vertical"===m||(r=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight(),(t=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>r&&(t=0));return t}},{key:"adjustHeaderBordersPosition", 3551value:function(r){var m=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=this.wot.wtTable.holder.parentNode;this.wtSettings.getSetting("totalColumns")?(0,d.removeClass)(t,"emptyColumns"):(0,d.addClass)(t,"emptyColumns");var u=!1;if(!m){m=this.wtSettings.getSetting("fixedRowsTop");var w=this.cachedFixedRowsTop!==m,v=this.wtSettings.getSetting("columnHeaders");(w||0===m)&&0<v.length&&(m=(0,d.hasClass)(t,"innerBorderTop"),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),r|| 35520===this.wtSettings.getSetting("totalRows")?((0,d.addClass)(t,"innerBorderTop"),u=!m):((0,d.removeClass)(t,"innerBorderTop"),u=m))}return u}}]),n}(g.Overlay);b.TopOverlay=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,p.default)(h);if(k){var n= 3553(0,p.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,q.default)(this,f)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.default=void 0;var D=B(a(6)),A=B(a(5)),x=B(a(15)),q=B(a(16)),p=B(a(14)),e=B(a(169));g=B(a(599));B=B(a(315));var c=a(17),d=a(148);a=function(h){function k(n,l,r,m){return(0,A.default)(this,k),f.call(this,n,l,r,m,d.CLONE_TOP)}(0,x.default)(k,h);var f=F(k);return(0,D.default)(k)}(e.default);(0,c.mixin)(a,g.default);(0,c.mixin)(a,B.default); 3554b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(600);var F=g(a(5)),B=g(a(6)),D=g(a(41)),A=a(23),x=a(17);a=function(){function q(p){var e=this;(0,F.default)(this,q);(0,D.default)(this,"settings",{});(0,D.default)(this,"defaults",Object.freeze(this.getDefaults()));(0,x.objectEach)(this.defaults,function(c,d){if(void 0!==p[d])e.settings[d]=p[d];else{if(void 0===c)throw Error('A required setting "'.concat(d,'" was not provided'));e.settings[d]=c}})}return(0,B.default)(q,[{key:"getDefaults", 3555value:function(){var p=this;return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:function(){return 0<p.getSetting("fixedColumnsStart")||0<p.getSetting("rowHeaders").length},shouldRenderTopOverlay:function(){return 0<p.getSetting("fixedRowsTop")|| 35560<p.getSetting("columnHeaders").length},shouldRenderBottomOverlay:function(){return 0<p.getSetting("fixedRowsBottom")},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,c,d){e=p.getSetting("data",e,c);(0,A.fastInnerText)(d,null==e?"":e)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null, 3557viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null, 3558onModifyGetCellCoords:null,onBeforeHighlightingRowHeader:function(e){return e},onBeforeHighlightingColumnHeader:function(e){return e},onWindowResize:null,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1}}},{key:"update",value:function(p,e){var c=this;return void 0===e?(0,x.objectEach)(p,function(d,h){c.settings[h]=d}):this.settings[p]=e,this}},{key:"getSetting",value:function(p,e,c,d,h){return"function"==typeof this.settings[p]?this.settings[p](e, 3559c,d,h):void 0!==e&&Array.isArray(this.settings[p])?this.settings[p][e]:this.settings[p]}},{key:"getSettingPure",value:function(p){return this.settings[p]}},{key:"has",value:function(p){return!!this.settings[p]}}]),q}();b.default=a},function(g,b,a){function F(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}(); 3560return function(){var k=(0,p.default)(d);if(h){var f=(0,p.default)(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments);return(0,q.default)(this,k)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.default=void 0;a(42);var D=B(a(5)),A=B(a(6)),x=B(a(15)),q=B(a(16)),p=B(a(14)),e=a(23),c=B(a(169));g=B(a(598));B=B(a(315));a=a(17);c=function(d){function h(f,n,l,r){return(0,D.default)(this,h),k.call(this,f,n,l,r,"master")}(0,x.default)(h,d);var k=F(h);return(0,A.default)(h,[{key:"alignOverlaysWithTrimmingContainer", 3561value:function(){var f=(0,e.getTrimmingContainer)(this.wtRootElement),n=this.domBindings.rootWindow;if(f===n)this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible");else{var l=f.parentElement,r=(0,e.getStyle)(f,"height",n),m=(0,e.getStyle)(f,"overflow",n),t=this.holder.style,u=f.scrollWidth,w=f.scrollHeight,v=f.getBoundingClientRect(),C=v.width;v=v.height;l&&["auto","hidden","scroll"].includes(m)&&(m=f.cloneNode(!1),m.style.overflow= 3562"auto",f.nextElementSibling?l.insertBefore(m,f.nextElementSibling):l.appendChild(m),f=parseInt((0,e.getComputedStyle)(m,n).height,10),l.removeChild(m),0===f&&(v=0));v=Math.min(v,w);t.height="auto"===r?"auto":"".concat(v,"px");C=Math.min(C,u);t.width="".concat(C,"px");t.overflow="";this.hasTableHeight="auto"===t.height||0<v;this.hasTableWidth=0<C}this.isTableVisible=(0,e.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var f=this.wtSettings,n=this.dataAccessObject.wtViewport, 3563l=f.getSetting("columnHeaders").length;if(l&&!n.hasOversizedColumnHeadersMarked.master){f=f.getSetting("rowHeaders").length;for(var r=this.getRenderedColumnsCount(),m=0;m<l;m++)for(var t=-1*f;t<r;t++)this.markIfOversizedColumnHeader(t);n.hasOversizedColumnHeadersMarked.master=!0}}}]),h}(c.default);(0,a.mixin)(c,g.default);(0,a.mixin)(c,B.default);b.default=c},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=a(23),A=a(17),x=a(822);a=function(){function q(p,e,c,d,h){var k= 3564this;(0,F.default)(this,q);this.dataAccessObject=p;this.instance=this.wot=p.wot;this.domBindings=e;this.wtSettings=c;this.wtTable=h;this.oversizedRows=[];this.oversizedColumnHeaders=[];this.hasOversizedColumnHeadersMarked={};this.clientHeight=0;this.rowHeaderWidth=this.containerWidth=NaN;this.columnsVisibleCalculator=this.rowsVisibleCalculator=null;this.eventManager=d;this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",function(){k.clientHeight=k.getWorkspaceHeight()})}return(0,B.default)(q, 3565[{key:"getWorkspaceHeight",value:function(){var p=this.domBindings.rootDocument,e=this.dataAccessObject.topOverlayTrimmingContainer,c=0;e===this.domBindings.rootWindow?c=p.documentElement.clientHeight:c=0<(0,D.outerHeight)(e)&&0<e.clientHeight?e.clientHeight:1/0;return c}},{key:"getWorkspaceWidth",value:function(){var p,e,c=this.wtSettings,d=this.domBindings,h=d.rootDocument;d=d.rootWindow;var k=this.dataAccessObject.inlineStartOverlayTrimmingContainer,f=h.documentElement.offsetWidth,n=c.getSetting("totalColumns"),
3566l=c.getSetting("preventOverflow"),r=c.getSetting("rtlMode"),m=this.wtTable.TABLE.getBoundingClientRect();r=f-(r?m.right-f:m.left);if(l)return(0,D.outerWidth)(this.wtTable.wtRootElement);if(p=c.getSetting("freezeOverlays")?Math.min(r,f):Math.min(this.getContainerFillWidth(),r,f),k===d&&0<n&&this.sumColumnWidths(0,n-1)>p)return h.documentElement.clientWidth;if(k!==d&&("scroll"===(e=(0,D.getStyle)(this.dataAccessObject.inlineStartOverlayTrimmingContainer,"overflow",d))||"hidden"===e||"auto"===e))return Math.max(p, 3567k.clientWidth);e=c.getSetting("stretchH");return"none"!==e&&e?p:Math.max(p,(0,D.outerWidth)(this.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(p,e){for(var c=0;p<e;)c+=this.wtTable.getColumnWidth(p),p+=1;return c}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth; 3568var p=this.wtTable.holder,e=this.domBindings.rootDocument.createElement("div");e.style.width="100%";e.style.height="1px";p.appendChild(e);var c=e.offsetWidth;return this.containerWidth=c,p.removeChild(e),c}},{key:"getWorkspaceOffset",value:function(){return(0,D.offset)(this.wtTable.TABLE)}},{key:"getColumnHeaderHeight",value:function(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,D.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight= 35690,this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var p=this.getWorkspaceHeight();if(p===1/0)return p;var e=this.getColumnHeaderHeight();return 0<e&&(p-=e),p}},{key:"getRowHeaderWidth",value:function(){var p=this.wtSettings.getSetting("rowHeaderWidth"),e=this.wtSettings.getSetting("rowHeaders");if(p)for(var c=this.rowHeaderWidth=0,d=e.length;c<d;c++)this.rowHeaderWidth+=p[c]||p;if(isNaN(this.rowHeaderWidth))if(e.length)for(p=this.wtTable.TABLE.querySelector("TH"),c=this.rowHeaderWidth= 35700,e=e.length;c<e;c++)p?(this.rowHeaderWidth+=(0,D.outerWidth)(p),p=p.nextSibling):this.rowHeaderWidth+=50;else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var p=this.getWorkspaceWidth();if(p===1/0)return p;var e=this.getRowHeaderWidth();return 0<e?p-e:p}},{key:"createRowsCalculator",value:function(){var p,e,c=0<arguments.length&&void 0!== 3571arguments[0]?arguments[0]:x.RENDER_TYPE,d=this.wtSettings,h=this.wtTable;this.rowHeaderWidth=NaN;var k=d.getSetting("renderAllRows")&&c===x.RENDER_TYPE?1/0:this.getViewportHeight();var f=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;0>f&&(f=0);var n=d.getSetting("fixedRowsTop"),l=d.getSetting("fixedRowsBottom"),r=d.getSetting("totalRows");return n&&(f+=e=this.dataAccessObject.topOverlay.sumCellSizes(0,n),k-=e),l&&this.dataAccessObject.bottomOverlay.clone&&(k-=e=this.dataAccessObject.bottomOverlay.sumCellSizes(r- 3572l,r)),p=h.holder.clientHeight===h.holder.offsetHeight?0:(0,D.getScrollbarWidth)(this.domBindings.rootDocument),new x.ViewportRowsCalculator({viewportSize:k,scrollOffset:f,totalItems:d.getSetting("totalRows"),itemSizeFn:function(m){return h.getRowHeight(m)},overrideFn:d.getSettingPure("viewportRowCalculatorOverride"),calculationType:c,scrollbarHeight:p})}},{key:"createColumnsCalculator",value:function(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:x.RENDER_TYPE,e=this.wtSettings,c= 3573this.wtTable,d=this.getViewportWidth(),h=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;0>h&&(h=0);var k=e.getSetting("fixedColumnsStart");k&&(k=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,k),h+=k,d-=k);return c.holder.clientWidth!==c.holder.offsetWidth&&(d-=(0,D.getScrollbarWidth)(this.domBindings.rootDocument)),new x.ViewportColumnsCalculator({viewportSize:d,scrollOffset:Math.abs(h),totalItems:e.getSetting("totalColumns"), 3574itemSizeFn:function(f){return c.getColumnWidth(f)},overrideFn:e.getSettingPure("viewportColumnCalculatorOverride"),calculationType:p,stretch
3574Mode:e.getSetting("stretchH"),stretchingItemWidthFn:function(f,n){return e.getSetting("onBeforeStretchingColumnWidth",f,n)}})}},{key:"createRenderCalculators",value:function(){var p=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(p){var e=this.createRowsCalculator(x.FULLY_VISIBLE_TYPE),c=this.createColumnsCalculator(x.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(e)&& 3575this.areAllProposedVisibleColumnsAlreadyRendered(c)||(p=!1)}return p||(this.rowsRenderCalculator=this.createRowsCalculator(x.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(x.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,p}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(x.FULLY_VISIBLE_TYPE);this.columnsVisibleCalculator=this.createColumnsCalculator(x.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered", 3576value:function(p){if(!this.rowsVisibleCalculator)return!1;var e=p.startRow;p=p.endRow;if(null===e&&null===p)return!1;var c=this.rowsRenderCalculator,d=c.startRow;c=c.endRow;return!(e<d||e===d&&0<e)&&!(p>c||p===c&&p<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(p){if(!this.columnsVisibleCalculator)return!1;var e=p.startColumn;p=p.endColumn;if(null===e&&null===p)return!1;var c=this.columnsRenderCalculator,d=c.startColumn;c=c.endColumn; 3577return!(e<d||e===d&&0<e)&&!(p>c||p===c&&p<this.wtSettings.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,A.objectEach)(this.hasOversizedColumnHeadersMarked,function(p,e,c){c[e]=void 0})}}]),q}();b.default=a},function(g,b,a){a(0);a(27);a(53);g=a(1);b.__esModule=!0;var F={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},B=g(a(588));b.ViewportColumnsCalculator=B.default;g=g(a(589));b.ViewportRowsCalculator=g.default;var D=a(311);Object.keys(D).forEach(function(A){"default"!== 3578A&&"__esModule"!==A&&(Object.prototype.hasOwnProperty.call(F,A)||A in b&&b[A]===D[A]||(b[A]=D[A]))})},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(42);a(49);a(18);a(0);a(27);a(385);var F=g(a(34)),B=g(a(21)),D=g(a(5)),A=g(a(6)),x=a(23),q=g(a(824));a=function(){function p(e,c){(0,D.default)(this,p);this.settings=e;this.cellRange=c||null;this.instanceBorders={};this.classNames=[this.settings.className];this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)} 3579return(0,A.default)(p,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new q.default(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}},{key:"replace",value:function(e,c){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=c,!0; 3580if(this.cellRange.to.isEqual(e))return this.cellRange.to=c,!0}return!1}},{key:"clear",value:function(){return this.cellRange=null,this}},{key:"getCorners",value:function(){var e=this.cellRange.getOuterTopStartCorner(),c=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,c.row,c.col]}},{key:"addClassAtCoords",value:function(e,c,d,h){var k=4<arguments.length&&void 0!==arguments[4]&&arguments[4],f=e.wtTable.getCell(this.settings.createCellCoords(c,d));if("object"===(0,B.default)(f)){var n=h; 3581k&&(n=this.classNameGenerator(f),this.classNames.includes(n)||this.classNames.push(n));(0,x.addClass)(f,n)}return this}},{key:"linearClassNameGenerator",value:function(e,c){return function k(h){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:-1;if(0===c||0===f)return e;f=0<=f?f:c;var n=0===--f?e:"".concat(e,"-").concat(f);(0,x.hasClass)(h,n)?(f+=1,f="".concat(e,"-").concat(f)):f=k(h,f);return f}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear(); 3582else{var c=e.wtTable.getRenderedRowsCount(),d=e.wtTable.getRenderedColumnsCount(),h=this.getCorners(),k=(0,F.default)(h,4),f=k[0],n=k[1],l=k[2];k=k[3];var r=this.settings,m=r.highlightHeaderClassName,t=r.highlightColumnClassName,u=r.highlightRowClassName,w=r.highlightOnlyClosestHeader;r=r.selectionType;var v=void 0===r||["active-header","header"].includes(r);if(v&&null!==n&&null!==k)for(var C=0,y=0;y<d;y+=1){var z=e.wtTable.columnFilter.renderedToSource(y);if(z>=n&&z<=k){var E=e.wtTable.getColumnHeaders(z), 3583H=E.length-1;w&&1<E.length&&(E=[E[H]]);for(var G=0;G<E.length;G+=1){var I=[],K=E[G];m&&I.push(m);t&&I.push(t);G=w?H:G;var J=e.getSetting("onBeforeHighlightingColumnHeader",z,G,{selectionType:r,columnCursor:C,selectionWidth:k-n+1,classNames:I});J!==z&&(K=e.wtTable.getColumnHeader(J,G));(0,x.addClass)(K,I)}C+=1}}if(null!==f&&null!==l)for(y=C=0;y<c;y+=1){z=e.wtTable.rowFilter.renderedToSource(y);if(v&&z>=f&&z<=l){E=e.wtTable.getRowHeaders(z);H=E.length-1;w&&1<E.length&&(E=[E[H]]);for(G=0;G<E.length;G+= 35841)I=[],K=E[G],m&&I.push(m),u&&I.push(u),G=w?H:G,J=e.getSetting("onBeforeHighlightingRowHeader",z,G,{selectionType:r,rowCursor:C,selectionHeight:l-f+1,classNames:I}),J!==z&&(K=e.wtTable.getRowHeader(J,G)),(0,x.addClass)(K,I);C+=1}if(null!==n&&null!==k)for(E=0;E<d;E+=1)H=e.wtTable.columnFilter.renderedToSource(E),z>=f&&z<=l&&H>=n&&H<=k?this.settings.className&&this.addClassAtCoords(e,z,H,this.settings.className,this.settings.markIntersections):z>=f&&z<=l?u&&this.addClassAtCoords(e,z,H,u):H>=n&&H<=k&& 3585t&&this.addClassAtCoords(e,z,H,t),G=e.getSetting("onAfterDrawSelection",z,H,this.settings.layerLevel),"string"==typeof G&&this.addClassAtCoords(e,z,H,G)}e.getSetting("onBeforeDrawBorders",h,this.settings.className);this.settings.border&&this.getBorder(e).appear(h)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEac
3585h(function(e){return e.destroy()})}}]),p}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(76);var F=g(a(34)),B=g(a(5)),D=g(a(6)),A=a(23), 3586x=a(83),q=a(17),p=a(107);a=function(){function e(c,d){(0,B.default)(this,e);d&&(this.eventManager=c.eventManager,this.instance=c,this.wot=c,this.settings=d,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.cornerCenterPointOffset=-parseInt(this.cornerDefaultStyle.width, 358710)/2,this.corner=null,this.cornerStyle=null,this.createBorders(d),this.registerListeners())}return(0,D.default)(e,[{key:"registerListeners",value:function(){var c=this,d=this.wot.rootDocument.body;this.eventManager.addEventListener(d,"mousedown",function(){return c.onMouseDown()});this.eventManager.addEventListener(d,"mouseup",function(){return c.onMouseUp()});d=function(f,n){c.eventManager.addEventListener(c.main.childNodes[f],"mouseenter",function(l){return c.onMouseEnter(l,c.main.childNodes[f])})}; 3588for(var h=0,k=this.main.childNodes.length;h<k;h++)d(h)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(c,d){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){c.preventDefault();(0,x.stopImmediatePropagation)(c);var h=this,k=this.wot.rootDocument.body,f=d.getBoundingClientRect();d.style.display="none";this.eventManager.addEventListener(k,"mousemove",function r(l){(l.clientY<Math.floor(f.top)|| 3589l.clientY>Math.ceil(f.top+f.height)||l.clientX<Math.floor(f.left)||l.clientX>Math.ceil(f.left+f.width))&&(h.eventManager.removeEventListener(k,"mousemove",r),d.style.display="block")})}}},{key:"createBorders",value:function(c){var d=this.wot.rootDocument;this.main=d.createElement("div");var h=["top","start","bottom","end","corner"],k=this.main.style;k.position="absolute";k.top=0;for(var f=k.left=0;5>f;f++){var n=h[f],l=d.createElement("div");l.className="wtBorder ".concat(this.settings.className|| 3590"");this.settings[n]&&this.settings[n].hide&&(l.className+=" hidden");(k=l.style).backgroundColor=this.settings[n]&&this.settings[n].color?this.settings[n].color:c.border.color;k.height=this.settings[n]&&this.settings[n].width?"".concat(this.settings[n].width,"px"):"".concat(c.border.width,"px");k.width=this.settings[n]&&this.settings[n].width?"".concat(this.settings[n].width,"px"):"".concat(c.border.width,"px");this.main.appendChild(l)}this.top=this.main.childNodes[0];this.start=this.main.childNodes[1]; 3591this.bottom=this.main.childNodes[2];this.end=this.main.childNodes[3];this.topStyle=this.top.style;this.startStyle=this.start.style;this.bottomStyle=this.bottom.style;this.endStyle=this.end.style;this.corner=this.main.childNodes[4];this.corner.className+=" corner";this.cornerStyle=this.corner.style;this.cornerStyle.width=this.cornerDefaultStyle.width;this.cornerStyle.height=this.cornerDefaultStyle.height;this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle, 3592this.cornerDefaultStyle.borderColor].join(" ");(0,p.isMobileBrowser)()&&this.createMultipleSelectorHandles();this.disappear();c=this.wot.wtTable;(h=c.bordersHolder)||((h=d.createElement("div")).className="htBorders",c.bordersHolder=h,c.spreader.appendChild(h));h.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var c=this,d=this.wot.rootDocument;this.selectionHandles={top:d.createElement("DIV"),topHitArea:d.createElement("DIV"),bottom:d.createElement("DIV"),bottomHitArea:d.createElement("DIV")}; 3593this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle";this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea";this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle";this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea";this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style, 3594bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};d={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,q.objectEach)(d,function(h,k){c.selectionHandles.styles.bottomHitArea[k]=h;c.selectionHandles.styles.topHitArea[k]=h});d={position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"}; 3595(0,q.objectEach)(d,function(h,k){c.selectionHandles.styles.bottom[k]=h;c.selectionHandles.styles.top[k]=h});this.main.appendChild(this.selectionHandles.top);this.main.appendChild(this.selectionHandles.bottom);this.main.appendChild(this.selectionHandles.topHitArea);this.main.appendChild(this.selectionHandles.bottomHitArea)}},{key:"isPartRange",value:function(c,d){var h=this.wot.selections.createOrGetArea();return!(!h.cellRange||c===h.cellRange.to.row&&d===h.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition", 3596value:function(c,d,h,k,f,n){var l=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",r=parseInt(this.selectionHandles.styles.top.width,10),m=parseInt(this.selectionHandles.styles.topHitArea.width,10);this.selectionHandles.styles.top.top="".concat(parseInt(h-r-1,10),"px");this.selectionHandles.styles.top[l]="".concat(parseInt(k-r-1,10),"px");this.selectionHandles.styles.topHitArea.top="".concat(parseInt(h-m/4*3,10),"px");this.selectionHandles.styles.topHitArea[l]="".concat(parseInt(k-m/4*3,10), 3597"px");this.selectionHandles.styles.bottom.top="".concat(parseInt(h+n,10),"px");this.selectionHandles.styles.bottom[l]="".concat(parseInt(k+f,10),"px");this.selectionHandles.styles.bottomHitArea.top="".concat(parseInt(h+n-m/4,10),"px");this.selectionHandles.styles.bottomHitArea[l]="".concat(parseInt(k+f-m/4,10),"px");this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(this.selectionHandles.styles.top.display="block",this.selectionHandles.styles.topHitArea.display="block",this.isPartRange(c, 3598d)?(this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none"):(this.selectionHandles.styles.bottom.display="block",this.selectionHandles.styles.bottomHitArea.display="block")):(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottomHitArea.display="none");c===this.wot.wtSettings.getSetting("fixedRowsTop")||d===this.wot.wtSettings.getSetting("fixedColumnsStart")? 3599(this.selectionHandles.styles.top.zIndex="9999",this.selectionHandles.styles.topHitArea.zIndex="9999"):(this.selectionHandles.styles.top.zIndex="",this.selectionHandles.styles.topHitArea.zIndex="")}},{key:"appear",value:function(c){if(!this.disabled){var d=this.wot,h=d.wtTable,k=d.rootDocument;d=d.rootWindow;for(var f=h.getRenderedRowsCount(),n=0;n<f;n+=1){var l=h.rowFilter.renderedToSource(n);if(l>=c[0]&&l<=c[2]){var r=l;var m=c[0];break}}for(--f;0<=f;--f)if(n=h.rowFilter.renderedToSource(f),n>= 3600c[0]&&n<=c[2]){var t=n;break}f=h.getRenderedColumnsCount();for(n=0;n<f;n+=1)if(l=h.columnFilter.renderedToSource(n),l>=c[1]&&l<=c[3]){var u=l;var w=c[1];break}for(--f;0<=f;--f)if(n=h.columnFilter.renderedToSource(f),n>=c[1]&&n<=c[3]){var v=n;break}
3600if(void 0!==r&&void 0!==u){var C=h.getCell(this.wot.createCellCoords(r,u));c=(n=r!==t||u!==v)?h.getCell(this.wot.createCellCoords(t,v)):C;f=(0,A.offset)(C);var y=n?(0,A.offset)(c):f,z=(0,A.offset)(h.TABLE);n=(0,A.outerWidth)(h.TABLE);var E=f.top;l=f.left; 3601if(f=this.wot.wtSettings.getSetting("rtlMode")){var H=(0,A.outerWidth)(C),G=d.innerWidth-z.left-n;n=l+H-y.left;l=d.innerWidth-l-H-G-1}else n=y.left+(0,A.outerWidth)(c)-l,l=l-z.left-1;this.isEntireColumnSelected(r,t)&&(H=this.getDimensionsFromHeader("columns",u,v,m,z),m=null,H&&(n=(0,F.default)(H,3),m=n[0],l=n[1],n=n[2]),m&&(C=m));m=E-z.top-1;y=y.top+(0,A.outerHeight)(c)-E;this.isEntireRowSelected(u,v)&&(u=this.getDimensionsFromHeader("rows",r,t,w,z),r=null,u&&(u=(0,F.default)(u,3),r=u[0],m=u[1],y= 3602u[2]),r&&(C=r));r=(0,A.getComputedStyle)(C,d);0<parseInt(r.borderTopWidth,10)&&(m+=1,y=0<y?y-1:0);0<parseInt(r[f?"borderRightWidth":"borderLeftWidth"],10)&&(l+=1,n=0<n?n-1:0);r=f?"right":"left";this.topStyle.top="".concat(m,"px");this.topStyle[r]="".concat(l,"px");this.topStyle.width="".concat(n,"px");this.topStyle.display="block";this.startStyle.top="".concat(m,"px");this.startStyle[r]="".concat(l,"px");this.startStyle.height="".concat(y,"px");this.startStyle.display="block";u=Math.floor(this.settings.border.width/ 36032);this.bottomStyle.top="".concat(m+y-u,"px");this.bottomStyle[r]="".concat(l,"px");this.bottomStyle.width="".concat(n,"px");this.bottomStyle.display="block";this.endStyle.top="".concat(m,"px");this.endStyle[r]="".concat(l+n-u,"px");this.endStyle.height="".concat(y+1,"px");this.endStyle.display="block";u=this.settings.border.cornerVisible;u="function"==typeof u?u(this.settings.layerLevel):u;C=this.wot.getSetting("onModifyGetCellCoords",t,v);w=t;z=v;C&&Array.isArray(C)&&(C=(0,F.default)(C,4),w=C[2], 3604z=C[3]);if((0,p.isMobileBrowser)()||!u||this.isPartRange(w,z))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(m+y+this.cornerCenterPointOffset-1,"px");this.cornerStyle[r]="".concat(l+n+this.cornerCenterPointOffset-1,"px");this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth;this.cornerStyle.width=this.cornerDefaultStyle.width;this.cornerStyle.display="none";h=(0,A.getTrimmingContainer)(h.TABLE);d=h===d;if(d&&(h=k.documentElement),v===this.wot.getSetting("totalColumns")- 36051)k=d?c.getBoundingClientRect().left:c.offsetLeft,(f?0>k-parseInt(this.cornerDefaultStyle.width,10)/2:k+(0,A.outerWidth)(c)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,A.innerWidth)(h))&&(this.cornerStyle[r]="".concat(Math.floor(l+n+this.cornerCenterPointOffset-parseInt(this.cornerDefaultStyle.width,10)/2),"px"),this.cornerStyle[f?"borderLeftWidth":"borderRightWidth"]=0);t===this.wot.getSetting("totalRows")-1&&(d?c.getBoundingClientRect().top:c.offsetTop)+(0,A.outerHeight)(c)+parseInt(this.cornerDefaultStyle.height, 360610)/2>=(0,A.innerHeight)(h)&&(this.cornerStyle.top="".concat(Math.floor(m+y+this.cornerCenterPointOffset-parseInt(this.cornerDefaultStyle.height,10)/2),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,p.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(t,v,m,l,n,y)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(c,d){return c===this.wot.wtTable.getFirstRenderedRow()&&d===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected", 3607value:function(c,d){return c===this.wot.wtTable.getFirstRenderedColumn()&&d===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(c,d,h,k,f){var n=this.wot.wtTable,l=n.wtRootElement.parentNode,r=null,m=null,t=null,u=null,w=null,v=null,C=null,y=null;switch(c){case "rows":r=function(){return n.getRowHeader.apply(n,arguments)};m=function(){return A.outerHeight.apply(void 0,arguments)};t="ht__selection--rows";v="top";break;case "columns":r=function(){return n.getColumnHeader.apply(n, 3608arguments)},m=function(){return A.outerWidth.apply(void 0,arguments)},t="ht__selection--columns",v="left"}if(l.classList.contains(t)){c=this.wot.getSetting("columnHeaders").length;if(C=r(d,c-k),y=r(h,c-k),!C||!y)return!1;d=(0,A.offset)(C);h=(0,A.offset)(y);return C&&y&&(u=d[v]-f[v]-1,w=h[v]+m(y)-d[v]),[C,u,w]}return!1}},{key:"changeBorderStyle",value:function(c,d){var h=this[c].style;d=d[c];!d||d.hide?(0,A.addClass)(this[c],"hidden"):((0,A.hasClass)(this[c],"hidden")&&(0,A.removeClass)(this[c],"hidden"), 3609h.backgroundColor=d.color,"top"!==c&&"bottom"!==c||(h.height="".concat(d.width,"px")),"start"!==c&&"end"!==c||(h.width="".concat(d.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(c){c=this[c].style;c.backgroundColor="#000";c.width="".concat(1,"px");c.height="".concat(1,"px")}
3609},{key:"toggleHiddenClass",value:function(c,d){this.changeBorderToDefaultStyle(c);d?(0,A.addClass)(this[c],"hidden"):(0,A.removeClass)(this[c],"hidden")}},{key:"disappear",value:function(){this.topStyle.display= 3610"none";this.bottomStyle.display="none";this.startStyle.display="none";this.endStyle.display="none";this.cornerStyle.display="none";(0,p.isMobileBrowser)()&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.bottom.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly();this.main.parentNode.removeChild(this.main)}}]),e}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(68);a(52);a(0);a(27);var F=g(a(5)),B=g(a(6)), 3611D=a(17),A=a(150),x=a(20),q=a(47),p=a(70);a=function(){function e(c){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];(0,F.default)(this,e);this.hot=c;this.data=d;this.dataType="array";this.colToProp=function(){};this.propToCol=function(){}}return(0,B.default)(e,[{key:"modifyRowData",value:function(c){var d;return this.hot.hasHook("modifyRowData")&&(d=this.hot.runHooks("modifyRowData",c)),void 0===d||Number.isInteger(d)?this.data[c]:d}},{key:"getData",value:function(){var c=0<arguments.length&& 3612void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,c):this.data}},{key:"setData",value:function(c){this.data=c}},{key:"getAtColumn",value:function(c){var d=this,h=[];return(0,x.arrayEach)(this.data,function(k,f){k=d.getAtCell(f,c);h.push(k)}),h}},{key:"getAtRow",value:function(c,d,h){var k=this,f=3<arguments.length&&void 0!==arguments[3]&&arguments[3],n=void 0===d&&void 0===h,l=null,r=null;if(l=this.modifyRowData(c),Array.isArray(l))r=[],n?l.forEach(function(t, 3613u){r[u]=k.getAtPhysicalCell(c,u,l)}):(0,q.rangeEach)(d,h,function(t){r[t-d]=k.getAtPhysicalCell(c,t,l)});else if((0,D.isObject)(l)||(0,p.isFunction)(l))if(r=f?[]:{},!n||f){var m=this.countFirstRowKeys()-1;(0,q.rangeEach)(0,m,function(t){var u=k.colToProp(t);t>=(d||0)&&t<=(h||m)&&!Number.isInteger(u)&&(t=k.getAtPhysicalCell(c,u,l),f?r.push(t):(0,D.setProperty)(r,u,t))})}else(0,D.objectEach)(l,function(t,u){(0,D.setProperty)(r,u,k.getAtPhysicalCell(c,u,l))});return r}},{key:"setAtCell",value:function(c, 3614d,h){if(!(c>=this.countRows()||d>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var k=(0,D.createObjectPropListener)(h);this.hot.runHooks("modifySourceData",c,this.propToCol(d),k,"set");k.isTouched()&&(h=k.value)}Number.isInteger(d)?this.data[c][d]=h:(0,D.setProperty)(this.data[c],d,h)}}},{key:"getAtPhysicalCell",value:function(c,d,h){var k=null;
3614if(h&&(k="string"==typeof d?(0,D.getProperty)(h,d):"function"==typeof d?d(h):h[d]),this.hot.hasHook("modifySourceData"))h=(0,D.createObjectPropListener)(k), 3615this.hot.runHooks("modifySourceData",c,this.colToProp(d),h,"get"),h.isTouched()&&(k=h.value);return k}},{key:"getAtCell",value:function(c,d){var h=this.modifyRowData(c);return this.getAtPhysicalCell(c,this.colToProp(d),h)}},{key:"getByRange",value:function(){var c=this,d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,k=2<arguments.length&&void 0!==arguments[2]&&arguments[2],f=!1,n=null,l=null,r=null,m=null;null===d||null=== 3616h?(f=!0,n=0,r=this.countRows()-1):(n=Math.min(d.row,h.row),l=Math.min(d.col,h.col),r=Math.max(d.row,h.row),m=Math.max(d.col,h.col));var t=[];return(0,q.rangeEach)(n,r,function(u){t.push(f?c.getAtRow(u,void 0,void 0,k):c.getAtRow(u,l,m,k))}),t}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var c=this.hot.runHooks("modifySourceLength");if(Number.isInteger(c))return c}return this.data.length}},{key:"countFirstRowKeys",value:function(){return(0,A.countFirstRowKeys)(this.data)}}, 3617{key:"destroy",value:function(){this.hot=this.data=null}}]),e}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.IndexMapper=void 0;var F=g(a(43)),B=g(a(78)),D=g(a(5)),A=g(a(6));a(3);a(0);a(54);a(2);a(4);a(32);a(22);a(165);a(62);a(36);a(39);a(33);a(42);a(49);a(144);var x,q=a(20),p=a(79),e=a(92),c=a(602),d=a(832);
3617g=g(a(98));var h=a(17),k=a(31),f=a(834),n=new Set(["getFirstNotHiddenIndex"]);a=function(){function l(){var r=this;(0,D.default)(this,l);this.indexesSequence=new c.IndexesSequence;this.trimmingMapsCollection= 3618new d.AggregatedCollection(function(m){return m.some(function(t){return!0===t})},!1);this.hidingMapsCollection=new d.AggregatedCollection(function(m){return m.some(function(t){return!0===t})},!1);this.variousMapsCollection=new d.MapCollection;this.hidingChangesObservable=new f.ChangesObservable({initialIndexValue:!1});this.notTrimmedIndexesCache=[];this.notHiddenIndexesCache=[];this.hiddenIndexesChanged=this.trimmedIndexesChanged=this.indexesSequenceChanged=this.isBatched=!1;this.renderablePhysicalIndexesCache= 3619[];this.fromPhysicalToVisualIndexesCache=new Map;this.fromVisualToRenderableIndexesCache=new Map;this.indexesSequence.addLocalHook("change",function(){r.indexesSequenceChanged=!0;r.updateCache();r.runLocalHooks("change",r.indexesSequence,null)});this.trimmingMapsCollection.addLocalHook("change",function(m){r.trimmedIndexesChanged=!0;r.updateCache();r.runLocalHooks("change",m,r.trimmingMapsCollection)});this.hidingMapsCollection.addLocalHook("change",function(m){r.hiddenIndexesChanged=!0;r.updateCache(); 3620r.runLocalHooks("change",m,r.hidingMapsCollection)});this.variousMapsCollection.addLocalHook("change",function(m){r.runLocalHooks("change",m,r.variousMapsCollection)})}return(0,A.default)(l,[{key:"suspendOperations",value:function(){this.isBatched=!0}},{key:"resumeOperations",value:function(){this.isBatched=!1;this.updateCache()}},{key:"createChangesObserver",value:function(r){if("hiding"!==r)throw Error('Unsupported index map type "'.concat(r,'".'));return this.hidingChangesObservable.createObserver()}}, 3621{key:"createAndRegisterIndexMap",value:function(r,m,t){return this.registerMap(r,(0,c.createIndexMap)(m,t))}},{key:"registerMap",value:function(r,m){if(this.trimmingMapsCollection.get(r)||this.hidingMapsCollection.get(r)||this.variousMapsCollection.get(r))throw Error('Map with name "'.concat(r,'" has been already registered.'));m instanceof c.TrimmingMap?this.trimmingMapsCollection.register(r,m):m instanceof c.HidingMap?this.hidingMapsCollection.register(r,m):this.variousMapsCollection.register(r, 3622m);
3622r=this.getNumberOfIndexes();return 0<r&&m.init(r),m}},{key:"unregisterMap",value:function(r){this.trimmingMapsCollection.unregister(r);this.hidingMapsCollection.unregister(r);this.variousMapsCollection.unregister(r)}},{key:"unregisterAll",value:function(){this.trimmingMapsCollection.unregisterAll();this.hidingMapsCollection.unregisterAll();this.variousMapsCollection.unregisterAll()}},{key:"getPhysicalFromVisualIndex",value:function(r){r=this.notTrimmedIndexesCache[r];return(0,k.isDefined)(r)?r: 3623null}},{key:"getPhysicalFromRenderableIndex",value:function(r){r=this.renderablePhysicalIndexesCache[r];return(0,k.isDefined)(r)?r:null}},{key:"getVisualFromPhysicalIndex",value:function(r){r=this.fromPhysicalToVisualIndexesCache.get(r);return(0,k.isDefined)(r)?r:null}},{key:"getVisualFromRenderableIndex",value:function(r){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(r))}},{key:"getRenderableFromVisualIndex",value:function(r){r=this.fromVisualToRenderableIndexesCache.get(r); 3624return(0,k.isDefined)(r)?r:null}},{key:"getFirstNotHiddenIndex",value:function(r,m){var t=2<arguments.length&&void 0!==arguments[2]&&arguments[2],u=3<arguments.length&&void 0!==arguments[3]?arguments[3]:r-m;n.has("getFirstNotHiddenIndex")&&(n.delete("getFirstNotHiddenIndex"),(0,e.warn)((0,p.toSingleLine)(x||(x=(0,B.default)(['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next \n major release. Please use "getNearestNotHiddenIndex" instead.'],['The method "getFirstNotHiddenIndex" is deprecated and will be removed in the next\\x20\n major release. Please use "getNearestNotHiddenIndex" instead.']))))); 3625var w=this.getPhysicalFromVisualIndex(r);return null===w?!0===t&&u!==r-m?this.getFirstNotHiddenIndex(u,-m,!1,u):null:!1===this.isHidden(w)?r:this.getFirstNotHiddenIndex(r+m,m,t,u)}},{key:"getNearestNotHiddenIndex",value:function(r,m){var t=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(r))return null;if(this.fromVisualToRenderableIndexesCache.has(r))return r;var u=Array.from(this.fromVisualToRenderableIndexesCache.keys()),w=-1;return-1===(w=0<m?u.findIndex(function(v){return v> 3626r}):u.reverse().findIndex(function(v){return v<r}))?t?this.getNearestNotHiddenIndex(r,-m,!1):null:u[w]}},{key:"initToLength",value:function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexe
3626s();this.notTrimmedIndexesCache=(0,F.default)(Array(r).keys());this.notHiddenIndexesCache=(0,F.default)(Array(r).keys());this.suspendOperations();this.indexesSequence.init(r);this.trimmingMapsCollection.initEvery(r);this.resumeOperations();this.suspendOperations();this.hidingMapsCollection.initEvery(r); 3627this.variousMapsCollection.initEvery(r);this.resumeOperations();this.runLocalHooks("init")}},{key:"fitToLength",value:function(r){var m=this.getNumberOfIndexes();r<m?(m=(0,F.default)(Array(this.getNumberOfIndexes()-r).keys()).map(function(t){return t+r}),this.removeIndexes(m)):this.insertIndexes(m,r-m)}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(r){this.indexesSequence.setValues(r)}},{key:"getNotTrimmedIndexes",value:function(){var r= 3628this;return!0===(!(0<arguments.length&&void 0!==arguments[0])||arguments[0])?this.notTrimmedIndexesCache:this.getIndexesSequence().filter(function(m){return!1===r.isTrimmed(m)})}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var r=this;return!0===(!(0<arguments.length&&void 0!==arguments[0])||arguments[0])?this.notHiddenIndexesCache:this.getIndexesSequence().filter(function(m){return!1===r.isHidden(m)})}}, 3629{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var r=this;return!0===(!(0<arguments.length&&void 0!==arguments[0])||arguments[0])?this.renderablePhysicalIndexesCache:this.getNotTrimmedIndexes().filter(function(m){return!1===r.isHidden(m)})}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}}
3629,{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}}, 3630{key:"moveIndexes",value:function(r,m){var t=this;"number"==typeof r&&(r=[r]);var u=(0,q.arrayMap)(r,function(y){return t.getPhysicalFromVisualIndex(y)}),w=this.getNotTrimmedIndexesLength(),v=r.length;r=(0,c.getListWithRemovedItems)(this.getIndexesSequence(),u);var C=w-v;m+v<w&&(m=r.filter(function(y){return!1===t.isTrimmed(y)})[m],C=r.indexOf(m));this.setIndexesSequence((0,c.getListWithInsertedItems)(r,C,u))}},{key:"isTrimmed",value:function(r){return this.trimmingMapsCollection.getMergedValueAtIndex(r)}}, 3631{key:"isHidden",value:function(r){return this.hidingMapsCollection.getMergedValueAtIndex(r)}},{key:"insertIndexes",value:function(r,m){var t=this.getNotTrimmedIndexes()[r];r=(0,k.isDefined)(t)?t:this.getNumberOfIndexes();t=this.getIndexesSequence().includes(t)?this.getIndexesSequence().indexOf(t):this.getNumberOfIndexes();m=(0,q.arrayMap)(Array(m).fill(r),function(u,w){return u+w});this.suspendOperations();this.indexesSequence.insert(t,m);this.trimmingMapsCollection.insertToEvery(t,m);this.hidingMapsCollection.insertToEvery(t, 3632m);this.variousMapsCollection.insertToEvery(t,m);this.resumeOperations()}},{key:"removeIndexes",value:function(r){this.suspendOperations();this.indexesSequence.remove(r);this.trimmingMapsCollection.removeFromEvery(r);this.hidingMapsCollection.removeFromEvery(r);this.variousMapsCollection.removeFromEvery(r);this.resumeOperations()}},{key:"updateCache",value:function(){var r=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===(0<arguments.length&&void 0!==arguments[0]&& 3633arguments[0])||!1===this.isBatched&&!0===r)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated", 3634{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var r=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var m=0;m<r;m+=1){var t=this.getPhysicalFromVisualIndex(m);this.fromPhysicalToVisualIndexesCache.set(t,m)}}},{key:"cacheFromVisualToRenderableIndexes", 3635value:function(){var r=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(var m=0;m<r;m+=1){var t=this.getPhysicalFromRenderableIndex(m);t=this.getVisualFromPhysicalIndex(t);this.fromVisualToRenderableIndexesCache.set(t,m)}}}]),l}();b.IndexMapper=a;(0,h.mixin)(a,g.default)},function(g,b,a){function F(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 3636[],function(){})),!0}catch(d){return!1}}();return function(){var d=(0,q.default)(e);if(c){var h=(0,q.default)(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);return(0,x.default)(this,d)}}a(0);a(7);g=a(1);b.__esModule=!0;b.HidingMap=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14));g=a(317);var p=a(20);a=function(e){function c(){var h=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return(0,B.default)(this,c),d.call(this,h)}(0,A.default)(c, 3637e);var d=F(c);return(0,D.default)(c,[{key:"getHiddenIndexes",value:function(){return(0,p.arrayReduce)(this.getValues(),function(h,k,f){return k&&h.push(f),h},[])}}]),c}(g.PhysicalIndexToValueMap);b.HidingMap=a},function(g,b,a){var F=a(14);g.exports=function(B,D){for(;!Object.prototype.hasOwnProperty.call(B,D)&&null!==(B=F(B)););return B};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){function F(l){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1; 3638if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(m){return!1}}();return function(){var m=(0,c.default)(l);if(r){var t=(0,c.default)(this).constructor;m=Reflect.construct(m,arguments,t)}else m=m.apply(this,arguments);return(0,e.default)(this,m)}}a(7);g=a(1);b.__esModule=!0;b.LinkedPhysicalIndexToValueMap=void 0;a(18);a(36);a(3);a(0);a(4);a(42);a(49);a(55);var B=g(a(43)),D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(30)),p=g(a(15)), 3639e=g(a(16)),c=g(a(14)),d=g(a(41));g=a(246);var h=a(318),k=a(247),f=a(603),n=a(70);a=function(l){function r(){var t;(0,D.default)(this,r);for(var u=arguments.length,w=Array(u),v=0;v<u;v++)w[v]=arguments[v];return t=m.call.apply(m,[this].concat(w)),(0,d.default)((0,x.default)(t),"orderOfIndexe
3639s",[]),t}(0,p.default)(r,l);var m=F(r);return(0,A.default)(r,[{key:"getValues",value:function(){var t=this;return this.orderOfIndexes.map(function(u){return t.indexedValues[u]})}},{key:"setValues",value:function(t){this.orderOfIndexes= 3640(0,B.default)(Array(t.length).keys());(0,q.default)((0,c.default)(r.prototype),"setValues",this).call(this,t)}},{key:"setValueAtIndex",value:function(t,u){var w=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return t<this.indexedValues.length&&(this.indexedValues[t]=u,!1===this.orderOfIndexes.includes(t)&&this.orderOfIndexes.splice(w,0,t),this.runLocalHooks("change"),!0)}},{key:"clearValue",value:function(t){this.orderOfIndexes=(0,k.getListWithRemovedItems)(this.orderOfIndexes, 3641[t]);(0,n.isFunction)(this.initValueOrFn)?(0,q.default)((0,c.default)(r.prototype),"setValueAtIndex",this).call(this,t,this.initValueOrFn(t)):(0,q.default)((0,c.default)(r.prototype),"setValueAtIndex",this).call(this,t,this.initValueOrFn)}},{key:"getLength",value:function(){return this.orderOfIndexes.length}},{key:"setDefaultValues",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0;(0,q.default)((0,c.default)(r.prototype), 3642"setDefaultValues",this).call(this,t)}},{key:"insert",value:function(t,u){this.indexedValues=(0,h.getListWithInsertedItems)(this.indexedValues,t,u,this.initValueOrFn);this.orderOfIndexes=(0,f.getIncreasedIndexes)(this.orderOfIndexes,u);(0,q.default)((0,c.default)(r.prototype),"insert",this).call(this,t,u)}},{key:"remove",value:function(t){this.indexedValues=(0,h.getListWithRemovedItems)(this.indexedValues,t);this.orderOfIndexes=(0,k.getListWithRemovedItems)(this.orderOfIndexes,t);this.orderOfIndexes= 3643(0,f.getDecreasedIndexes)(this.orderOfIndexes,t);(0,q.default)((0,c.default)(r.prototype),"remove",this).call(this,t)}},{key:"getEntries",value:function(){var t=this;return this.orderOfIndexes.map(function(u){return[u,t.getValueAtIndex(u)]})}}]),r}(g.IndexMap);b.LinkedPhysicalIndexToValueMap=a},function(g,b,a){function F(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 3644[],function(){})),!0}catch(d){return!1}}();return function(){var d=(0,q.default)(e);if(c){var h=(0,q.default)(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);return(0,x.default)(this,d)}}a(0);a(7);g=a(1);b.__esModule=!0;b.TrimmingMap=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14));g=a(317);var p=a(20);a=function(e){function c(){var h=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return(0,B.default)(this,c),d.call(this,h)}(0,A.default)(c, 3645e);var d=F(c);return(0,D.default)(c,[{key:"getTrimmedIndexes",value:function(){return(0,p.arrayReduce)(this.getValues(),function(h,k,f){return k&&h.push(f),h},[])}}]),c}(g.PhysicalIndexToValueMap);b.TrimmingMap=a},function(g,b,a){function F(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k= 3646(0,p.default)(d);if(h){var f=(0,p.default)(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments);return(0,q.default)(this,k)}}a(0);a(7);g=a(1);b.__esModule=!0;b.IndexesSequence=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));g=a(246);var e=a(247),c=a(604);a=function(d){function h(){return(0,B.default)(this,h),k.call(this,function(f){return f})}(0,x.default)(h,d);var k=F(h);return(0,D.default)(h,[{key:"insert",value:function(f,n){var l=(0,c.getIncreasedIndexes)(this.indexedValues, 3647n);this.indexedValues=(0,e.getListWithInsertedItems)(l,f,n);(0,A.default)((0,p.default)(h.prototype),"insert",this).call(this,f,n)}},{key:"remove",value:function(f){var n=(0,e.getListWithRemovedItems)(this.indexedValues,f);this.indexedValues=(0,c.getDecreasedIndexes)(n,f);(0,A.default)((0,p.default)(h.prototype),"remove",this).call(this,f)}}]),h}(g.IndexMap);b.IndexesSequence=a},function(g,b,a){a(0);a(27);a(53);b.__esModule=!0;var F=a(833);
3647Object.keys(F).forEach(function(D){"default"!==D&&"__esModule"!== 3648D&&(D in b&&b[D]===F[D]||(b[D]=F[D]))});var B=a(319);Object.keys(B).forEach(function(D){"default"!==D&&"__esModule"!==D&&(D in b&&b[D]===B[D]||(b[D]=B[D]))})},function(g,b,a){function F(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=(0,q.default)(c);if(d){var k=(0,q.default)(this).constructor; 3649h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);return(0,x.default)(this,h)}}a(0);a(7);g=a(1);b.__esModule=!0;b.AggregatedCollection=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14));g=a(319);var p=a(20),e=a(31);a=function(c){function d(k,f){var n;return(0,B.default)(this,d),(n=h.call(this)).mergedValuesCache=[],n.aggregationFunction=k,n.fallbackValue=f,n}(0,A.default)(d,c);var h=F(d);return(0,D.default)(d,[{key:"getMergedValues",value:function(){if(!0===(!(0<arguments.length&& 3650void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];for(var k=(0,p.arrayMap)(this.get(),function(t){return t.getValues()}),f=[],n=(0,e.isDefined)(k[0])&&k[0].length||0,l=0;l<n;l+=1){for(var r=[],m=0;m<this.getLength();m+=1)r.push(k[m][l]);f.push(r)}return(0,p.arrayMap)(f,this.aggregationFunction)}},{key:"getMergedValueAtIndex",value:function(k,f){k=this.getMergedValues(f)[k];return(0,e.isDefined)(k)?k:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache= 3651this.getMergedValues(!1)}}]),d}(g.MapCollection);b.AggregatedCollection=a},function(g,b,a){function F(f,n,l){if(n.has(f))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;n.set(f,l)}g=a(1);b.__esModule=!0;b.ChangesObservable=void 0;a(3);a(0);a(54);a(2);a(4);a(144);a(27);a(11);var B=g(a(5)),D=g(a(6)),A=g(a(109)),x=g(a(110)),q=a(835),p=a(836),e=new WeakMap,c=new WeakMap,d=new WeakMap,h=new WeakMap,k=new WeakMap;a=function(){function f(){var n=(0<arguments.length&& 3652void 0!==arguments[0]?arguments[0]:{}).initialIndexValue;(0,B.default)(this,f);F(this,e,{writable:!0,value:new Set});F(this,c,{writable:!0,value:[]});F(this,d,{writable:!0,value:[]});F(this,h,{writable:!0,value:!1});F(this,k,{writable:!0,value:!1});(0,x.default)(this,k,null!=n&&n)}return(0,D.default)(f,[{key:"createObserver",value:function(){var n=this,l=new q.ChangesObserver;return(0,A.default)(this,e).add(l),l.addLocalHook("unsubscribe",function(){(0,A.default)(n,e).delete(l)}),l._writeInitialChanges((0,p.arrayDiff)((0,A.default)(this, 3653c),(0,A.default)(this,d))),l}},{key:"emit",value:function(n){var l=(0,A.default)(this,d);(0,A.default)(this,h)&&(0,A.default)(this,c).length===n.length||(0===n.length?n=Array(l.length).fill((0,A.default)(this,k)):(0,x.default)(this,c,Array(n.length).fill((0,A.default)(this,k))),(0,A.default)(this,h)||((0,x.default)(this,h,!0),l=(0,A.default)(this,c)));var r=(0,p.arrayDiff)(l,n);(0,A.default)(this,e).forEach(function(m){return m._write(r)});(0,x.default)(this,d,n)}}]),f}();b.ChangesObservable=a},function(g, 3654b,a){var F=a(1);b.__esModule=!0;b.ChangesObserver=void 0;a(3);a(0);a(2);a(11);a(4);var B=F(a(5)),D=F(a(6)),A=F(a(110)),x=F(a(109));g=a(17);a=F(a(98));var q=new WeakMap;F=function(){function p(){(0,B.default)(this,p);if(q.has(this))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;q.set(this,{writable:!0,value:[]})}return(0,D.default)(p,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,x.default)(this,q)),this}},{key:"unsubscribe", 3655value:function(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}},{key:"_write",value:function(e){return 0<e.length&&this.runLocalHooks("change",e),this}},{key:"_writeInitialChanges",value:function(e){(0,A.default)(this,q,e)}}]),p}();b.ChangesObserver=F;(0,g.mixin)(F,a.default)},function(g,b,a){b.__esModule=!0;b.arrayDiff=function(F,B){for(var D=[],A=0,x=0;A<F.length&&x<B.length;A++,x++)F[A]!==B[x]&&D.push({op:"replace",index:x,oldValue:F[A],newValue:B[x]});for(;A<B.length;A++)D.push({op:"insert", 3656index:A,oldValue:void 0,newValue:B[A]});for(;x<F.length;x++)D.push({op:"remove",index:x,oldValue:F[x],newValue:void 0});return D}},function(g,b,a){g=a(1);b.__esModule=!0;b.getPhraseFormatters=b.getAll=function(){return B()};b.registerPhraseFormatter=b.register=function(D,A){F(D,A)};b=g(a(119));a=g(a(838));b=(0,b.default)("phraseFormatters");var F=b.register,B=b.getValues;F("pluralize",a.default)},function(g,b,a){b.__esModule=!0;b.default=function(F,B){return Array.isArray(F)&&Number.isInteger(B)? 3657F[B]:F};a(68);a(52)},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.default=void 0;var D;g=g(a(41));a=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!== 3658c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29));var A=(D={languageCode:"en-US"},(0,g.default)(D,a.CONTEXTMENU_ITEMS_NO_ITEMS,"No available options"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ROW_ABOVE,"Insert row above"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ROW_BELOW,"Insert row below"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_INSERT_LEFT,"Insert column left"),(0,g.default)(D, 3659a.CONTEXTMENU_ITEMS_INSERT_RIGHT,"Insert column right"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_REMOVE_ROW,["Remove row","Remove rows"]),(0,g.default)(D,a.CONTEXTMENU_ITEMS_REMOVE_COLUMN,["Remove c
3659olumn","Remove columns"]),(0,g.default)(D,a.CONTEXTMENU_ITEMS_UNDO,"Undo"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_REDO,"Redo"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_READ_ONLY,"Read only"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_CLEAR_COLUMN,"Clear column"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ALIGNMENT,"Alignment"),(0,g.default)(D, 3660a.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT,"Left"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER,"Center"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT,"Right"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY,"Justify"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ALIGNMENT_TOP,"Top"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE,"Middle"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM,"Bottom"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_FREEZE_COLUMN,"Freeze column"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN, 3661"Unfreeze column"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_BORDERS,"Borders"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_BORDERS_TOP,"Top"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_BORDERS_RIGHT,"Right"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_BORDERS_BOTTOM,"Bottom"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_BORDERS_LEFT,"Left"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_REMOVE_BORDERS,"Remove border(s)"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_ADD_COMMENT,"Add comment"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_EDIT_COMMENT,"Edit comment"), 3662(0,g.default)(D,a.CONTEXTMENU_ITEMS_REMOVE_COMMENT,"Delete comment"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT,"Read-only comment"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_MERGE_CELLS,"Merge cells"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_UNMERGE_CELLS,"Unmerge cells"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_COPY,"Copy"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_CUT,"Cut"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD,"Insert child row"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD, 3663"Detach from parent"),(0,g.default)(D,a.CONTEXTMENU_ITEMS_HIDE_COLUMN,["Hide column","Hide columns"]),(0,g.default)(D,a.CONTEXTMENU_ITEMS_SHOW_COLUMN,["Show column","Show columns"]),(0,g.default)(D,a.CONTEXTMENU_ITEMS_HIDE_ROW,["Hide row","Hide rows"]),(0,g.default)(D,a.CONTEXTMENU_ITEMS_SHOW_ROW,["Show row","Show rows"]),(0,g.default)(D,a.FILTERS_CONDITIONS_NONE,"None"),(0,g.default)(D,a.FILTERS_CONDITIONS_EMPTY,"Is empty"),(0,g.default)(D,a.FILTERS_CONDITIONS_NOT_EMPTY,"Is not empty"),(0,g.default)(D, 3664a.FILTERS_CONDITIONS_EQUAL,"Is equal to"),(0,g.default)(D,a.FILTERS_CONDITIONS_NOT_EQUAL,"Is not equal to"),(0,g.default)(D,a.FILTERS_CONDITIONS_BEGINS_WITH,"Begins with"),(0,g.default)(D,a.FILTERS_CONDITIONS_ENDS_WITH,"Ends with"),(0,g.default)(D,a.FILTERS_CONDITIONS_CONTAINS,"Contains"),(0,g.default)(D,a.FILTERS_CONDITIONS_NOT_CONTAIN,"Does not contain"),(0,g.default)(D,a.FILTERS_CONDITIONS_GREATER_THAN,"Greater than"),(0,g.default)(D,a.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,"Greater than or equal to"), 3665(0,g.default)(D,a.FILTERS_CONDITIONS_LESS_THAN,"Less than"),(0,g.default)(D,a.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,"Less than or equal to"),(0,g.default)(D,a.FILTERS_CONDITIONS_BETWEEN,"Is between"),(0,g.default)(D,a.FILTERS_CONDITIONS_NOT_BETWEEN,"Is not between"),(0,g.default)(D,a.FILTERS_CONDITIONS_AFTER,"After"),(0,g.default)(D,a.FILTERS_CONDITIONS_BEFORE,"Before"),(0,g.default)(D,a.FILTERS_CONDITIONS_TODAY,"Today"),(0,g.default)(D,a.FILTERS_CONDITIONS_TOMORROW,"Tomorrow"),(0,g.default)(D,a.FILTERS_CONDITIONS_YESTERDAY, 3666"Yesterday"),(0,g.default)(D,a.FILTERS_VALUES_BLANK_CELLS,"Blank cells"),(0,g.default)(D,a.FILTERS_DIVS_FILTER_BY_CONDITION,"Filter by condition"),(0,g.default)(D,a.FILTERS_DIVS_FILTER_BY_VALUE,"Filter by value"),(0,g.default)(D,a.FILTERS_LABELS_CONJUNCTION,"And"),(0,g.default)(D,a.FILTERS_LABELS_DISJUNCTION,"Or"),(0,g.default)(D,a.FILTERS_BUTTONS_SELECT_ALL,"Select all"),(0,g.default)(D,a.FILTERS_BUTTONS_CLEAR,"Clear"),(0,g.default)(D,a.FILTERS_BUTTONS_OK,"OK"),(0,g.default)(D,a.FILTERS_BUTTONS_CANCEL, 3667"Cancel"),(0,g.default)(D,a.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,"Search"),(0,g.default)(D,a.FILTERS_BUTTONS_PLACEHOLDER_VALUE,"Value"),(0,g.default)(D,a.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE,"Second value"),D);b.default=A},function(g,b,a){function F(d,h){var k=Object.keys(d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(d);h&&(f=f.filter(function(n){return Object.getOwnPropertyDescriptor(d,n).enumerable}));k.push.apply(k,f)}return k}a(53);a(8);a(39);a(0);a(19);a(27);a(85); 3668var B=a(1);b.__esModule=!0;b.createHighlight=function(d,h){return c(d)(function(k){for(var f=1;f<arguments.length;f++){var n=null!=arguments[f]?arguments[f]:{};
3668f%2?F(Object(n),!0).forEach(function(l){(0,D.default)(k,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(l){Object.defineProperty(k,l,Object.getOwnPropertyDescriptor(n,l))})}return k}({type:d},h))};var D=B(a(41)),A=B(a(119));b=a(120);g=B(a(841));var x=B(a(843)), 3669q=B(a(844)),p=B(a(845)),e=B(a(846));a=B(a(847));B=(0,A.default)("highlight/types");A=B.register;var c=B.getItem;A(b.ACTIVE_HEADER_TYPE,g.default);A(b.AREA_TYPE,x.default);A(b.CELL_TYPE,q.default);A(b.CUSTOM_SELECTION_TYPE,p.default);A(b.FILL_TYPE,e.default);A(b.HEADER_TYPE,a.default)},function(g,b,a){function F(e,c){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(e);c&&(h=h.filter(function(k){return Object.getOwnPropertyDescriptor(e,k).enumerable}));d.push.apply(d, 3670h)}return d}function B(e){for(var c=1;c<arguments.length;c++){var d=null!=arguments[c]?arguments[c]:{};c%2?F(Object(d),!0).forEach(function(h){(0,D.default)(e,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):F(Object(d)).forEach(function(h){Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(d,h))})}return e}a(53);a(8);a(39);a(0);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;var D=g(a(41)),A=g(a(125)),x=a(120),q=g(a(172)), 3671p=["activeHeaderClassName"];b.default=function(e){var c=e.activeHeaderClassName;e=(0,A.default)(e,p);return new q.default(B(B({highlightHeaderClassName:c},e),{},{selectionType:x.ACTIVE_HEADER_TYPE}))}},function(g,b){g.exports=function(a,F){if(null==a)return{};var B,D={},A=Object.keys(a);for(B=0;B<A.length;B++){var x=A[B];0<=F.indexOf(x)||(D[x]=a[x])}return D};g.exports.__esModule=!0;g.exports.default=g.exports},function(g,b,a){function F(e,c){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var h= 3672Object.getOwnPropertySymbols(e);c&&(h=h.filter(function(k){return Object.getOwnPropertyDescriptor(e,k).enumerable}));d.push.apply(d,h)}return d}function B(e){for(var c=1;c<arguments.length;c++){var d=null!=arguments[c]?arguments[c]:{};c%2?F(Object(d),!0).forEach(function(h){(0,D.default)(e,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):F(Object(d)).forEach(function(h){Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(d,h))})}return e} 3673a(53);a(8);a(39);a(0);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;var D=g(a(41)),A=g(a(125)),x=a(120),q=g(a(172)),p=["layerLevel","areaCornerVisible"];b.default=function(e){var c=e.layerLevel,d=e.areaCornerVisible;e=(0,A.default)(e,p);return new q.default(B(B({className:"area",markIntersections:!0,layerLevel:Math.min(c,7),border:{width:1,color:"#4b89ff",cornerVisible:d}},e),{},{selectionType:x.AREA_TYPE}))}},function(g,b,a){function F(e,c){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var h= 3674Object.getOwnPropertySymbols(e);c&&(h=h.filter(function(k){return Object.getOwnPropertyDescriptor(e,k).enumerable}));d.push.apply(d,h)}return d}function B(e){for(var c=1;c<arguments.length;c++){var d=null!=arguments[c]?arguments[c]:{};c%2?F(Object(d),!0).forEach(function(h){(0,D.default)(e,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):F(Object(d)).forEach(function(h){Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(d,h))})}return e} 3675a(53);a(8);a(39);a(0);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;var D=g(a(41)),A=g(a(125)),x=a(120),q=g(a(172)),p=["cellCornerVisible"];b.default=function(e){var c=e.cellCornerVisible;e=(0,A.default)(e,p);return new q.default(B(B({className:"current",border:{width:2,color:"#4b89ff",cornerVisible:c}},e),{},{selectionType:x.CELL_TYPE}))}},function(g,b,a){function F(e,c){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(e);c&&(h=h.filter(function(k){return Object.getOwnPropertyDescriptor(e, 3676k).enumerable}));d.push.apply(d,h)}return d}function B(e){for(var c=1;c<arguments.length;c++){var d=null!=arguments[c]?arguments[c]:{};
3676c%2?F(Object(d),!0).forEach(function(h){(0,D.default)(e,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):F(Object(d)).forEach(function(h){Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(d,h))})}return e}a(53);a(8);a(39);a(0);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;var D=g(a(41)),A= 3677g(a(125)),x=a(120),q=g(a(172)),p=["border","visualCellRange"];b.default=function(e){var c=e.border,d=e.visualCellRange;e=(0,A.default)(e,p);return new q.default(B(B(B({},c),e),{},{selectionType:x.CUSTOM_SELECTION_TYPE}),d)}},function(g,b,a){function F(q,p){var e=Object.keys(q);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(q);p&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(q,d).enumerable}));e.push.apply(e,c)}return e}function B(q){for(var p=1;p<arguments.length;p++){var e= 3678null!=arguments[p]?arguments[p]:{};p%2?F(Object(e),!0).forEach(function(c){(0,D.default)(q,c,e[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(e)):F(Object(e)).forEac
3678h(function(c){Object.defineProperty(q,c,Object.getOwnPropertyDescriptor(e,c))})}return q}a(53);a(8);a(39);a(0);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;var D=g(a(41));a(93);var A=a(120),x=g(a(172));b.default=function(q){q=Object.assign({},q);return new x.default(B(B({className:"fill", 3679border:{width:1,color:"#ff0000"}},q),{},{selectionType:A.FILL_TYPE}))}},function(g,b,a){function F(e,c){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(e);c&&(h=h.filter(function(k){return Object.getOwnPropertyDescriptor(e,k).enumerable}));d.push.apply(d,h)}return d}function B(e){for(var c=1;c<arguments.length;c++){var d=null!=arguments[c]?arguments[c]:{};c%2?F(Object(d),!0).forEach(function(h){(0,D.default)(e,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e, 3680Object.getOwnPropertyDescriptors(d)):F(Object(d)).forEach(function(h){Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(d,h))})}return e}a(53);a(8);a(39);a(0);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;var D=g(a(41)),A=g(a(125)),x=a(120),q=g(a(172)),p=["headerClassName","rowClassName","columnClassName"];b.default=function(e){var c=e.headerClassName,d=e.rowClassName,h=e.columnClassName;e=(0,A.default)(e,p);return new q.default(B(B({className:"highlight",highlightHeaderClassName:c, 3681highlightRowClassName:d,highlightColumnClassName:h},e),{},{highlightOnlyClosestHeader:!0,selectionType:x.HEADER_TYPE}))}},function(g,b,a){var F=a(1);b.__esModule=!0;b.default=void 0;var B=F(a(34)),D=F(a(78));a(3);a(0);a(54);a(2);a(4);a(18);a(22);a(42);a(49);a(68);a(52);a(27);var A,x=F(a(5)),q=F(a(6)),p=F(a(607)),e=a(120),c=F(a(849)),d=a(17),h=a(31),k=a(20);g=F(a(98));var f=F(a(850)),n=a(248),l=a(79);a=function(){function r(m,t){var u=this;(0,x.default)(this,r);this.settings=m;this.tableProps=t;this.selectedByCorner= 3682this.inProgress=!1;this.selectedByRowHeader=new Set;this.selectedByColumnHeader=new Set;this.selectedRange=new c.default(function(w,v,C){return u.tableProps.createCellRange(w,v,C)});this.highlight=new p.default({headerClassName:m.currentHeaderClassName,activeHeaderClassName:m.activeHeaderClassName,rowClassName:m.currentRowClassName,columnClassName:m.currentColClassName,disabledCellSelection:function(w,v){return u.tableProps.isDisabledCellSelection(w,v)},cellCornerVisible:function(){return u.isCellCornerVisible.apply(u, 3683arguments)},areaCornerVisible:function(){return u.isAreaCornerVisible.apply(u,arguments)},visualToRenderableCoords:function(w){return u.tableProps.visualToRenderableCoords(w)},renderableToVisualCoords:function(w){return u.tableProps.renderableToVisualCoords(w)},createCellCoords:function(w,v){return u.tableProps.createCellCoords(w,v)},createCellRange:function(w,v,C){return u.tableProps.createCellRange(w,v,C)},rowIndexMapper:function(){return u.tableProps.rowIndexMapper()},columnIndexMapper:function(){return u.tableProps.columnIndexMapper()}}); 3684this.transformation=new f.default(this.selectedRange,{countRows:function(){return u.tableProps.countRowsTranslated()},countCols:function(){return u.tableProps.countColsTranslated()},visualToRenderableCoords:function(w){return u.tableProps.visualToRenderableCoords(w)},renderableToVisualCoords:function(w){return u.tableProps.renderableToVisualCoords(w)},createCellCoords:function(w,v){return u.tableProps.createCellCoords(w,v)},fixedRowsBottom:function(){return m.fixedRowsBottom},minSpareRows:function(){return m.minSpareRows}, 3685minSpareCols:function(){return m.minSpareCols},autoWrapRow:function(){return m.autoWrapRow},autoWrapCol:function(){return m.autoWrapCol}});this.transformation.addLocalHook("beforeTransformStart",function(){for(var w=arguments.length,v=Array(w),C=0;C<w;C++)v[C]=arguments[C];return u.runLocalHooks.apply(u,["beforeModifyTransformStart"].concat(v))});this.transformation.addLocalHook("afterTransformStart",function(){for(var w=arguments.length,v=Array(w),C=0;C<w;C++)v[C]=arguments[C];return u.runLocalHooks.apply(u, 3686["afterModifyTransformStart"].concat(v))});this.transformation.addLocalHook("beforeTransformEnd",function(){for(var w=arguments.length,v=Array(w),C=0;C<w;C++)v[C]=arguments[C];return u.runLocalHooks.apply(u,["beforeModifyTransformEnd"].concat(v))});this.transformation.addLocalHook("afterTransformEnd",function(){for(var w=arguments.length,v=Array(w),C=0;C<w;C++)v[C]=arguments[C];return u.runLocalHooks.apply(u,["afterModifyTransformEnd"].concat(v))});this.transformation.addLocalHook("insertRowRequire", 3687function(){for(var w=arguments.length,v=Array(w),C=0;C<w;C++)v[C]=arguments[C];return u.runLocalHooks.apply(u,["insertRowRequire"].concat(v))});this.transformation.addLocalHook("insertColRequire",function(){for(var w=arguments.length,v=Array(w),C=0;C<w;C++)v[C]=arguments[C];return u.runLocalHooks.apply(u,["insertColRequire"].concat(v))})}return(0,q.default)(r,[{key:"getSelectedRange",value:function(){return this.selectedRange}},{key:"begin",value:function(){this.inProgress=!0}},{key:"finish",value:function(){this.runLocalHooks("afterSelectionFinished", 3688Array.from(this.selectedRange));this.inProgress=!1}},{key:"isInProgress",value:function(){return this.inProgress}},{key:"setRangeStart",value:function(m,t){var u=2<arguments.length&&void 0!==arguments[2]&&arguments[2],w="multiple"===this.settings.selectionMode,v=(0,h.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,C=0>m.row,y=0>m.col,z=C&&y,E=m.clone();this.selectedByCorner=z;this.runLocalHooks("beforeSetRangeStart".concat(u?"Only":""),E);(!w||w&&!v&&(0,h.isUndefined)(t))&& 3689this.selectedRange.clear();this.selectedRange.add(E);0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear());!z&&y&&this.selectedByRowHeader.add(this.getLayerLevel());!z&&C&&this.selectedByColumnHeader.add(this.getLayerLevel());u||this.setRangeEnd(m)}},{key:"setRangeStartOnly",value:function(m,t){this.setRangeStart(m,t,!0)}},{key:"setRangeEnd",value:function(m){if(!this.selectedRange.isEmpty()){var t=m.clone();this.runLocalHooks("beforeSetRangeEnd",t);this.begin(); 3690var u=this.selectedRange.current();"single"!==this.settings.selectionMode&&u.setTo(this.tableProps.createCellCoords(t.row,t.col));this.highlight.getCell().clear();this.highlight.isEnabledFor(e.CELL_TYPE,u.highlight)&&this.highlight.getCell().add(this.selectedRange.current().highlight).commit().syncWith(u);var w=this.getLayerLevel();w<this.highlight.layerLevel&&((0,k.arrayEach)(this.highlight.getAreas(),function(z){z.clear()}),(0,k.arrayEach)(this.highlight.getHeaders(),function(z){z.clear()}),(0,k.arrayEach)(this.highlight.getActiveHeaders(), 3691function(z){z.clear()}
3691));this.highlight.useLayerLevel(w);var v=this.highlight.createOrGetArea();t=this.highlight.createOrGetHeader();var C=this.highlight.createOrGetActiveHeader();if(v.clear(),t.clear(),C.clear(),this.highlight.isEnabledFor(e.AREA_TYPE,u.highlight)&&(this.isMultiple()||1<=w)&&(v.add(u.from).add(u.to).commit(),1===w))v=this.selectedRange.previous(),this.highlight.useLayerLevel(w-1).createOrGetArea().add(v.from).commit().syncWith(v),this.highlight.useLayerLevel(w);if(this.highlight.isEnabledFor(e.HEADER_TYPE, 3692u.highlight)){w=0===this.tableProps.countRowsTranslated();v=0===this.tableProps.countColsTranslated();var y=u;((w||v)&&(y=u.clone()),w&&(y.from.row=-1),v&&(y.from.col=-1),"single"===this.settings.selectionMode?(this.isSelectedByAnyHeader()&&y.from.normalize(),t.add(y.from).commit()):t.add(y.from).add(y.to).commit(),this.isEntireRowSelected())&&this.tableProps.countCols()===u.getWidth()&&C.add(this.tableProps.createCellCoords(u.from.row,-1)).add(this.tableProps.createCellCoords(u.to.row,-1)).commit(); 3693this.isEntireColumnSelected()&&this.tableProps.countRows()===u.getHeight()&&C.add(this.tableProps.createCellCoords(-1,u.from.col)).add(this.tableProps.createCellCoords(-1,u.to.col)).commit()}this.runLocalHooks("afterSetRangeEnd",m)}}},{key:"isMultiple",value:function(){var m=(0,d.createObjectPropListener)(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",m),m.value}},{key:"transformStart",value:function(m,t){this.setRangeStart(this.transformation.transformStart(m, 3694t,2<arguments.length&&void 0!==arguments[2]&&arguments[2]))}},{key:"transformEnd",value:function(m,t){this.setRangeEnd(this.transformation.transformEnd(m,t))}},{key:"getLayerLevel",value:function(){return this.selectedRange.size()-1}},{key:"isSelected",value:function(){return!this.selectedRange.isEmpty()}},{key:"isSelectedByRowHeader",value:function(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(m)&&this.isEntireRowSelected(m)}}, 3695{key:"isEntireRowSelected",value:function(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return-1===m?0<this.selectedByRowHeader.size:this.selectedByRowHeader.has(m)}},{key:"isSelectedByColumnHeader",value:function(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&this.isEntireColumnSelected(m)}},{key:"isEntireColumnSelected",value:function(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]: 3696this.getLayerLevel();return-1===m?0<this.selectedByColumnHeader.size:this.selectedByColumnHeader.has(m)}},{key:"isSelectedByAnyHeader",value:function(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}},{key:"isSelectedByCorner",value:function(){return this.selectedByCorner}},{key:"inInSelection",value:function(m){return this.selectedRange.includes(m)}},{key:"isCellCornerVisible",value:function(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&& 3697!this.isMultiple()}},{key:"isAreaCornerVisible",value:function(m){return(!Number.isInteger(m)||m===this.getLayerLevel())&&this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple()}},{key:"clear",value:function(){this.selectedRange.clear();this.highlight.clear()}},{key:"deselect",value:function(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}},{key:"selectAll",value:function(){var m=0<arguments.length&&void 0!==arguments[0]&&arguments[0], 3698t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],u=this.tableProps.countRows(),w=this.tableProps.countCols();if(m||t||0!==u&&0!==w)m=this.tableProps.createCellCoords(t?-1:0,m?-1:0),this.clear(),this.setRangeStartOnly(m),this.selectedByRowHeader.add(this.getLayerLevel()),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(this.tableProps.createCellCoords(u-1,w-1)),this.finish()}},{key:"selectCells",value:function(m){var t=this,u=(0,n.detectSelectionType)(m);if(u===n.SELECTION_TYPE_EMPTY)return!1; 3699if(u===n.SELECTION_TYPE_UNRECOGNIZED)throw Error((0,l.toSingleLine)(A||(A=(0,D.default)(["Unsupported format of the selection ranges was passed. To select cells pass \n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd, \n columnEnd/columnPropEnd]]) or as an array of CellRange objects."],["Unsupported format of the selection ranges was passed. To select cells pass\\x20\n the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\\x20\n columnEnd/columnPropEnd]]) or as an array of CellRange objects."])))); 3700var w=(0,n.normalizeSelectionFactory)(u,{propToCol:function(y){return t.tableProps.propToCol(y)},keepDirection:!0}
3700),v=this.tableProps.countRows(),C=this.tableProps.countCols();u=!m.some(function(y){y=w(y);y=(0,B.default)(y,4);var z=y[1],E=y[2],H=y[3];return!((0,n.isValidCoord)(y[0],v)&&(0,n.isValidCoord)(z,C)&&(0,n.isValidCoord)(E,v)&&(0,n.isValidCoord)(H,C))});return u&&(this.clear(),(0,k.arrayEach)(m,function(y){y=w(y);y=(0,B.default)(y,4);var z=y[2],E=y[3];t.setRangeStartOnly(t.tableProps.createCellCoords(y[0], 3701y[1]),!1);t.setRangeEnd(t.tableProps.createCellCoords(z,E));t.finish()})),u}},{key:"selectColumns",value:function(m){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:m,u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:-1,w="string"==typeof m?this.tableProps.propToCol(m):m;t="string"==typeof t?this.tableProps.propToCol(t):t;var v=this.tableProps.countCols(),C=this.tableProps.countRows();v=(0,n.isValidCoord)(w,v)&&(0,n.isValidCoord)(t,v);return v&&(this.setRangeStartOnly(this.tableProps.createCellCoords(u, 3702w)),this.setRangeEnd(this.tableProps.createCellCoords(C-1,t)),this.finish()),v}},{key:"selectRows",value:function(m){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:m,u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:-1,w=this.tableProps.countRows(),v=this.tableProps.countCols();w=(0,n.isValidCoord)(m,w)&&(0,n.isValidCoord)(t,w);return w&&(this.setRangeStartOnly(this.tableProps.createCellCoords(m,u)),this.setRangeEnd(this.tableProps.createCellCoords(t,v-1)),this.finish()),w}}, 3703{key:"refresh",value:function(){if(this.highlight.getCustomSelections().forEach(function(C){C.commit()}),this.isSelected()){var m=this.highlight.getCell(),t=this.getLayerLevel();m.commit().syncWith(this.selectedRange.current());for(m=0;m<this.selectedRange.size();m+=1){this.highlight.useLayerLevel(m);var u=this.highlight.createOrGetArea(),w=this.highlight.createOrGetHeader(),v=this.highlight.createOrGetActiveHeader();u.commit();w.commit();v.commit()}this.highlight.useLayerLevel(t)}}}]),r}();(0,d.mixin)(a, 3704g.default);b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(0);a(42);a(49);a(10);a(3);a(2);a(4);a(8);a(9);var F=g(a(5)),B=g(a(6));a=function(D){function A(x){(0,F.default)(this,A);this.ranges=[];this.createCellRange=x}return(0,B.default)(A,[{key:"isEmpty",value:function(){return 0===this.size()}},{key:"set",value:function(x){return this.clear(),this.ranges.push(this.createCellRange(x)),this}},{key:"add",value:function(x){return this.ranges.push(this.createCellRange(x)),this}}, 3705{key:"pop",value:function(){return this.ranges.pop(),this}},{key:"current",value:function(){return this.peekByIndex(0)}},{key:"previous",value:function(){return this.peekByIndex(-1)}},{key:"includes",value:function(x){return this.ranges.some(function(q){return q.includes(x)})}},{key:"clear",value:function(){return this.ranges.length=0,this}},{key:"size",value:function(){return this.ranges.length}},{key:"peekByIndex",value:function(){var x,q=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0; 3706q=this.size()+q-1;return 0<=q&&(x=this.ranges[q]),x}},{key:D,value:function(){return this.ranges[Symbol.iterator]()}}]),A}(Symbol.iterator);b.default=a},function(g,b,a){var F=a(1);b.__esModule=!0;b.default=void 0;var B=F(a(5)),D=F(a(6));g=a(17);a=F(a(98));F=function(){function A(x,q){(0,B.default)(this,A);this.range=x;this.options=q}return(0,D.default)(A,[{key:"transformStart",value:function(x,q){var p=2<arguments.length&&void 0!==arguments[2]&&arguments[2],e=this.options.createCellCoords(x,q),c= 3707this.range.current().highlight,d=this.options.visualToRenderableCoords(c),h=d.row;d=d.col;var k=0,f=0;if(this.runLocalHooks("beforeTransformStart",e),null!==h&&null!==d){c=this.options.countRows();var n=this.options.countCols();k=this.options.fixedRowsBottom();f=this.options.minSpareRows();var l=this.options.minSpareCols(),r=this.options.autoWrapRow(),m=this.options.autoWrapCol();h+x>c-1?p&&0<f&&!(k&&h>=c-k-1)?(this.runLocalHooks("insertRowRequire",c),c=this.options.countRows()):m&&(e.row=1-c,e.col= 3708d+e.col===n-1?1-n:1):m&&0>h+e.row&&0<=d+e.col&&(e.row=c-1,e.col=0===d+e.col?n-1:-1);d+e.col>n-1?p&&0<l?(this.runLocalHooks("insertColRequire",n),n=this.options.countCols()):r&&(e.row=h+e.row===c-1?1-c:1,e.col=1-n):r&&0>d+e.col&&0<=h+e.row&&(e.row=0===h+e.row?c-1:-1,e.col=n-1);p=this.options.createCellCoords(h+e.row,d+e.col);f=k=0;0>p.row?(k=-1,p.row=0):0<p.row&&p.row>=c&&(k=1,p.row=c-1);0>p.col?(f=-1,p.col=0):0<p.col&&p.col>=n&&(f=1,p.col=n-1);c=this.options.renderableToVisualCoords(p)}return this.runLocalHooks("afterTransformStart", 3709c,k,f),c}},{key:"transformEnd",value:function(x,q){x=this.options.createCellCoords(x,q);var p=this.range.current(),e=p.to,c=q=0;this.runLocalHooks("beforeTransformEnd",x);var d=this.options.visualToRenderableCoords(p.highlight),h=d.col;null!==d.row&&null!==h&&(e=this.options.countRows(),d=this.options.countCols(),q=this.options.visualToRenderableCoords(p.to),x=this.options.createCellCoords(q.row+x.row,q.col+x.col),c=q=0,0>x.row?(q=-1,x.row=0):0<x.row&&x.row>=e&&(q=1,x.row=e-1),0>x.col?(c=-1,x.col= 37100):0<x.col&&x.col>=d&&(c=1,x.col=d-1),e=this.options.renderableToVisualCoords(x));return this.runLocalHooks("afterTransformEnd",e,q,c),e}}]),A}();(0,g.mixin)(F,a.default);b.default=F},function(g,b,a){b.__esModule=!0;b.parse=function(A){var x=[[""]];if(0===A.length)return x;for(var q,p=0,e=0;0<A.length&&q!==A.length;)if(q=A.length,A.match(D))A=A.replace(D,""),p+=1,x[e][p]="";
3710else if(A.match(F))A=A.replace(F,""),p=0,x[e+=1]=[""];else{var c="";if(A.startsWith('"')){for(var d=0,h=!0;h;){var k=A.slice(0, 37111);'"'===k&&(d+=1);c+=k;(0===(A=A.slice(1)).length||A.match(/^[\t\r\n]/)&&0==d%2)&&(h=!1)}c=c.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,function(f){return Array(Math.floor(f.length/2)).fill('"').join("")})}else c=(c=A.match(B))?c[0]:"",A=A.slice(c.length);x[e][p]=c}return x};b.stringify=function(A){var x,q,p,e="";var c=0;for(x=A.length;c<x;c+=1){var d=A[c].length;for(q=0;q<d;q+=1)0<q&&(e+="\t"),"string"==typeof(p=A[c][q])?-1<p.indexOf("\n")?e+='"'.concat(p.replace(/"/g,'""'),'"'):e+=p:e+= 3712null==p?"":p;c!==x-1&&(e+="\n")}return e};a(12);a(587);a(67);a(122);a(13);a(76);a(144);a(33);var F=/^(\r\n|\n\r|\r|\n)/,B=/^[^\t\r\n]+/,D=/^\t/},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(0);a(27);var F=g(a(5)),B=g(a(6)),D=g(a(853)),A=g(a(854)),x=g(a(855)),q=g(a(856));g=g(a(98));a=a(17);var p=function(){function e(c){var d=this,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},k=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[];(0,F.default)(this,e);this.hot=c;this.globalMeta= 3713new D.default(c);this.tableMeta=new A.default(this.globalMeta);this.columnMeta=new x.default(this.globalMeta);this.cellMeta=new q.default(this.columnMeta);
3713k.forEach(function(f){return new f(d)});this.globalMeta.updateMeta(h)}return(0,B.default)(e,[{key:"getGlobalMeta",value:function(){return this.globalMeta.getMeta()}},{key:"updateGlobalMeta",value:function(c){this.globalMeta.updateMeta(c)}},{key:"getTableMeta",value:function(){return this.tableMeta.getMeta()}},{key:"updateTableMeta",value:function(c){this.tableMeta.updateMeta(c)}}, 3714{key:"getColumnMeta",value:function(c){return this.columnMeta.getMeta(c)}},{key:"updateColumnMeta",value:function(c,d){this.columnMeta.updateMeta(c,d)}},{key:"getCellMeta",value:function(c,d,h){var k=h.visualRow;h=h.visualColumn;var f=this.cellMeta.getMeta(c,d);return f.visualRow=k,f.visualCol=h,f.row=c,f.col=d,this.runLocalHooks("afterGetCellMeta",f),f}},{key:"getCellMetaKeyValue",value:function(c,d,h){if("string"!=typeof h)throw Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(c, 3715d,h)}},{key:"setCellMeta",value:function(c,d,h,k){this.cellMeta.setMeta(c,d,h,k)}},{key:"updateCellMeta",value:function(c,d,h){this.cellMeta.updateMeta(c,d,h)}},{key:"removeCellMeta",value:function(c,d,h){this.cellMeta.removeMeta(c,d,h)}},{key:"getCellsMeta",value:function(){return this.cellMeta.getMetas()}},{key:"getCellsMetaAtRow",value:function(c){return this.cellMeta.getMetasAtRow(c)}},{key:"createRow",value:function(c){this.cellMeta.createRow(c,1<arguments.length&&void 0!==arguments[1]?arguments[1]: 37161)}},{key:"removeRow",value:function(c){this.cellMeta.removeRow(c,1<arguments.length&&void 0!==arguments[1]?arguments[1]:1)}},{key:"createColumn",value:function(c){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(c,d);this.columnMeta.createColumn(c,d)}},{key:"removeColumn",value:function(c){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(c,d);this.columnMeta.removeColumn(c,d)}},{key:"clearCellsCache",value:function(){this.cellMeta.clearCache()}}, 3717{key:"clearCache",value:function(){this.cellMeta.clearCache();this.columnMeta.clearCache()}}]),e}();b.default=p;(0,a.mixin)(p,g.default)},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(6)),B=g(a(5)),D=a(17),A=a(206),x=g(a(611));a=function(){function q(p){(0,B.default)(this,q);this.metaCtor=(0,F.default)(function c(){(0,B.default)(this,c)});this.meta=this.metaCtor.prototype;(0,D.extend)(this.meta,(0,x.default)());this.meta.instance=p}return(0,F.default)(q,[{key:"getMetaConstructor", 3718value:function(){return this.metaCtor}},{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta",value:function(p){(0,D.extend)(this.meta,p);(0,D.extend)(this.meta,(0,A.expandMetaType)(p.type,p))}}]),q}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=a(17),A=a(206);a=function(){function x(q){(0,F.default)(this,x);this.meta=new (q.getMetaConstructor())}return(0,B.default)(x,[{key:"getMeta",value:function(){return this.meta}},{key:"updateMeta", 3719value:function(q){(0,D.extend)(this.meta,q);(0,D.extend)(this.meta,(0,A.expandMetaType)(q.type,q))}}]),x}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=a(17),A=a(206),x=g(a(612)),q=["data","width"];a=function(){function p(e){var c=this;(0,F.default)(this,p);this.globalMeta=e;this.metas=new x.default(function(){return c._createMeta()})}return(0,B.default)(p,[{key:"updateMeta",value:function(e,c){e=this.getMeta(e);(0,D.extend)(e,c);(0,D.extend)(e,(0,A.expandMetaType)(c.type, 3720e))}},{key:"createColumn",value:function(e,c){this.metas.insert(e,c)}},{key:"removeColumn",value:function(e,c){this.metas.remove(e,c)}},{key:"getMeta",value:function(e){return this.metas.obtain(e)}},{key:"getMetaConstructor",value:function(e){return this.metas.obtain(e).constructor}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createMeta",value:function(){return(0,A.columnFactory)(this.globalMeta.getMetaConstructor(),q).prototype}}]),p}();b.default=a},function(g,b,a){g=a(1);b.__esModule= 3721!0;b.default=void 0;a(22);a(2);a(3);a(0);a(4);a(32);var F=g(a(43)),B=g(a(5)),D=g(a(6)),A=a(17),x=a(206),q=g(a(612));a=function(){function p(e){var c=this;(0,B.default)(this,p);this.columnMeta=e;this.metas=new q.default(function(){return c._createRow()})}return(0,D.default)(p,[{key:"updateMeta",value:function(e,c,d){e=this.getMeta(e,c);(0,A.extend)(e,d);
3721(0,A.extend)(e,(0,x.expandMetaType)(d.type,e))}},{key:"createRow",value:function(e,c){this.metas.insert(e,c)}},{key:"createColumn",value:function(e, 3722c){for(var d=0;d<this.metas.size();d++)this.metas.obtain(d).insert(e,c)}},{key:"removeRow",value:function(e,c){this.metas.remove(e,c)}},{key:"removeColumn",value:function(e,c){for(var d=0;d<this.metas.size();d++)this.metas.obtain(d).remove(e,c)}},{key:"getMeta",value:function(e,c,d){e=this.metas.obtain(e).obtain(c);return void 0===d?e:e[d]}},{key:"setMeta",value:function(e,c,d,h){this.metas.obtain(e).obtain(c)[d]=h}},{key:"removeMeta",value:function(e,c,d){delete this.metas.obtain(e).obtain(c)[d]}}, 3723{key:"getMetas",value:function(){for(var e=[],c=Array.from(this.metas.values()),d=0;d<c.length;d++)e.push.apply(e,(0,F.default)(c[d].values()));return e}},{key:"getMetasAtRow",value:function(e){(0,x.assert)(function(){return(0,x.isUnsignedNumber)(e)},"Expecting an unsigned number.");var c=new Map(this.metas);return c.has(e)?Array.from(c.get(e).values()):[]}},{key:"clearCache",value:function(){this.metas.clear()}},{key:"_createRow",value:function(){var e=this;return new q.default(function(c){return e._createMeta(c)})}}, 3724{key:"_createMeta",value:function(e){return new (this.columnMeta.getMetaConstructor(e))}}]),p}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.replaceData=function(q,p,e,c){var d=c.hotInstance,h=c.dataMap,k=c.dataSource,f=c.internalSource,n=c.source;c=c.firstRun;var l=(0,B.toUpperCaseFirst)(f),r=d.getSettings();Array.isArray(r.dataSchema)?d.dataType="array":(0,D.isFunction)(r.dataSchema)?d.dataType="function":d.dataType="object";h&&h.destroy();q=d.runHooks("before".concat(l),q,c,n);h=new A.default(d, 3725q,r);if(p(h),"object"===(0,F.default)(q)&&null!==q)q.push&&q.splice||(q=[q]);else{if(null!==q)throw Error("".concat(f," only accepts array of objects or array of arrays (").concat((0,F.default)(q)," given)"));var m=h.getSchema();q=[];var t;var u=0;for(t=r.startRows;u<t;u++){if("object"!==d.dataType&&"function"!==d.dataType||!r.dataSchema)if("array"===d.dataType)p=(0,x.deepClone)(m[0]);else{p=[];for(var w=0,v=r.startCols;w<v;w++)p.push(null)}else p=(0,x.deepClone)(m);q.push(p)}}Array.isArray(q[0])&& 3726(d.dataType="array");r.data=q;h.dataSource=q;k.data=q;k.dataType=d.dataType;k.colToProp=h.colToProp.bind(h);k.propToCol=h.propToCol.bind(h);k.countCachedColumns=h.countCachedColumns.bind(h);e(h);d.runHooks("after".concat(l),q,c,n);c||(d.runHooks("afterChange",null,f),d.render())};a(55);a(18);var F=g(a(21)),B=a(97),D=a(70),A=g(a(609)),x=a(17)},function(g,b,a){g=a(1);b.__esModule=!0;b.DynamicCellMetaMod=void 0;a(3);a(32);a(0);a(2);a(4);a(54);var F=g(a(5)),B=g(a(6)),D=g(a(71)),A=a(17),x=a(70);a=function(){function q(p){var e= 3727this;(0,F.default)(this,q);this.metaManager=p;this.metaSyncMemo=new Map;p.addLocalHook("afterGetCellMeta",function(c){return e.extendCellMeta(c)});D.default.getSingleton().add("beforeRender",function(c){c&&e.metaSyncMemo.clear()},this.metaManager.hot)}return(0,B.default)(q,[{key:"extendCellMeta",value:function(p){var e,c=p.row,d=p.col;if(null===(e=this.metaSyncMemo.get(c))||void 0===e||!e.has(d)){e=p.visualRow;var h=p.visualCol,k=this.metaManager.hot,f=k.colToProp(h);p.prop=f;k.runHooks("beforeGetCellMeta", 3728e,h,p);var n,l=(0,A.hasOwnProperty)(p,"type")?p.type:null;f=(0,x.isFunction)(p.cells)?p.cells(c,d,f):null;l&&(f?f.type=null!==(n=f.type)&&void 0!==n?n:l:f={type:l});f&&this.metaManager.updateCellMeta(c,d,f);k.runHooks("afterGetCellMeta",e,h,p);this.metaSyncMemo.has(c)||this.metaSyncMemo.set(c,new Set);this.metaSyncMemo.get(c).add(d)}}}]),q}();b.DynamicCellMetaMod=a},function(g,b,a){g=a(1);b.__esModule=!0;b.ExtendMetaPropertiesMod=void 0;a(3);a(0);a(54);a(2);a(4);a(32);a(27);var F=g(a(5)),B=g(a(6)); 3729a=function(){function D(A){(0,F.default)(this,D);this.metaManager=A;this.usageTracker=new Set;this.propDescriptors=new Map([["fixedColumnsLeft",{target:"fixedColumnsStart",onChange:function(x){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===x)throw Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`."); 3730}}],["layoutDirection",{onChange:function(x,q,p){if(!p)throw Error("The `".concat(x,"` option can not be updated after the Handsontable is initialized."));}}]]);this.extendMetaProps()}return(0,B.default)(D,[{key:"extendMetaProps",value:function(){var A=this;
3730this.propDescriptors.forEach(function(x,q){var p=x.target;x=x.onChange;x=void 0===x?function(){}:x;var e="string"==typeof p,c=e?p:q,d="_".concat(c);A.metaManager.globalMeta.meta[d]=A.metaManager.globalMeta.meta[c];A.installPropWatcher(q,d,x);e&& 3731A.installPropWatcher(p,d,x)})}},{key:"installPropWatcher",value:function(A,x,q){var p=this;Object.defineProperty(this.metaManager.globalMeta.meta,A,{get:function(){return this[x]},set:function(e){var c=!p.usageTracker.has(A);p.usageTracker.add(A);q.call(p,A,e,c);this[x]=e},enumerable:!0,configurable:!0})}}]),D}();b.ExtendMetaPropertiesMod=a},function(g,b,a){b.__esModule=!0;b.createShortcutManager=void 0;g=a(861);b.createShortcutManager=g.createShortcutManager},function(g,b,a){b.__esModule=!0;b.createShortcutManager= 3732void 0;var F=a(244),B=a(862),D=a(863);b.createShortcutManager=function(A){var x=A.ownerWindow,q=A.handleEvent,p=A.beforeKeyDown;A=A.afterKeyDown;var e=(0,F.createUniqueMap)({errorIdExists:function(f){return'The "'.concat(f,'" context name is already registered.')}}),c="grid",d=function(f){return e.getItem(f)},h=!1,k=(0,D.useRecorder)(x,q,p,A,function(f,n){var l=d(c),r=!1;if(!l.hasShortcut(n))return r;l=l.getShortcuts(n);for(var m=0;m<l.length;m++){var t=l[m],u=t.callback,w=t.runOnlyIf,v=t.preventDefault, 3733C=t.stopPropagation;t=t.captureCtrl;if(!1!==w(f)&&(h=t,r=!1===u(f,n),h=!1,v&&f.preventDefault(),C&&f.stopPropagation(),r))break}return r});return k.mount(),{addContext:function(f){var n=(0,B.createContext)(f);return e.addItem(f,n),n},getActiveContextName:function(){return c},getContext:d,setActiveContextName:function(f){c=f},isCtrlPressed:function(){return!h&&(k.isPressed("control")||k.isPressed("meta"))},destroy:function(){return k.unmount()}}}},function(g,b,a){g=a(1);b.__esModule=!0;b.createContext= 3734void 0;var F=g(a(43)),B=g(a(34)),D=g(a(78));a(18);a(3);a(0);a(4);a(27);a(165);a(55);a(39);a(13);var A,x=a(244),q=a(613),p=a(31),e=a(70),c=a(17),d=a(79);b.createContext=function(h){var k=(0,x.createUniqueMap)({errorIdExists:function(l){return'The "'.concat(l,'" shortcut is already registered in the "').concat(h,'" context.')}}),f=function(){var l=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=l.keys,m=l.callback,t=l.group,u=l.runOnlyIf;u=void 0===u?function(){return!0}:u;var w=l.captureCtrl; 3735w=void 0!==w&&w;var v=l.preventDefault;v=void 0===v||v;var C=l.stopPropagation;C=void 0!==C&&C;var y=l.relativeToGroup,z=l.position;if((0,p.isUndefined)(t))throw Error("You need to define the shortcut's group.");if(!1===(0,e.isFunction)(m))throw Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(r))throw Error((0,d.toSingleLine)(A||(A=(0,D.default)(["Pass the shortcut's keys as an array of arrays, \n using the KeyboardEvent.key properties: \n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."], 3736["Pass the shortcut\\'s keys as an array of arrays,\\x20\n using the KeyboardEvent.key properties:\\x20\n https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values."]))));var E={callback:m,group:t,runOnlyIf:u,captureCtrl:w,preventDefault:v,stopPropagation:C};(0,p.isDefined)(y)&&(l=[y,z],E.relativeToGroup=l[0],E.position=l[1]);r.forEach(function(H){H=(0,q.normalizeKeys)(H);if(k.hasItem(H)){H=k.getItem(H);var G=H.findIndex(function(I){return I.group===y});-1!==G?"before"=== 3737z?--G:G+=1:G=H.length;H.splice(G,0,E)}else k.addItem(H,[E])})},n=function(l){l=(0,q.normalizeKeys)(l);k.removeItem(l)};return{addShortcut:f,addShortcuts:function(l){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l.forEach(function(m){(0,c.objectEach)(r,function(t,u){!1===Object.prototype.hasOwnProperty.call(m,u)&&(m[u]=r[u])});f(m)})},getShortcuts:function(l){l=(0,q.normalizeKeys)(l);l=k.getItem(l);return(0,p.isDefined)(l)?l.slice():[]},hasShortcut:function(l){l=(0,q.normalizeKeys)(l); 3738return k.hasItem(l)},removeShortcutsByKeys:n,removeShortcutsByGroup:function(l){k.getItems().forEac
3738h(function(r){var m=(0,B.default)(r,2);r=m[0];m=m[1];var t=m.filter(function(u){return u.group!==l});0===t.length?n((0,q.getKeysList)(r)):(m.length=0,m.push.apply(m,(0,F.default)(t)))})}}}},function(g,b,a){b.__esModule=!0;b.useRecorder=function(q,p,e,c,d){var h=function(l){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],m=[];return l.altKey&&m.push("alt"),r&&(l.ctrlKey||l.metaKey)?m.push("control/meta"): 3739(l.ctrlKey&&m.push("control"),l.metaKey&&m.push("meta")),l.shiftKey&&m.push("shift"),m},k=function(l){if(!1!==p(l)&&!1!==e(l)&&!(0,B.isImmediatePropagationStopped)(l)){var r=(0,F.normalizeEventKey)(l.key),m=[];A.includes(r)?x.press(r):m=h(l);var t=[r].concat(m);!d(l,t)&&((0,D.isMacOS)()&&m.includes("meta")||!(0,D.isMacOS)()&&m.includes("control"))&&d(l,[r].concat(h(l,!0)));c(l)}},f=function(l){!1!==p(l)&&(l=(0,F.normalizeEventKey)(l.key),!1!==A.includes(l)&&x.release(l))},n=function(){x.releaseAll()}; 3740return{mount:function(){for(var l=q;l;)l.addEventListener("keydown",k),l.addEventListener("keyup",f),l.addEventListener("blur",n),l=l.frameElement},unmount:function(){for(var l=q;l;)l.removeEventListener("keydown",k),l.removeEventListener("keyup",f),l.removeEventListener("blur",n),l=l.frameElement},isPressed:function(l){return x.isPressed(l)}}};a(42);a(18);a(49);g=a(864);var F=a(613),B=a(83),D=a(107),A=["meta","alt","shift","control"],x=(0,g.createKeysObserver)()},function(g,b,a){b.__esModule=!0; 3741b.createKeysObserver=function(){var F=new Set;return{press:function(B){F.add(B)},release:function(B){F.delete(B)},releaseAll:function(){F.clear()},isPressed:function(B){return F.has(B)}}};a(3);a(0);a(54);a(2);a(4)},function(g,b,a){b.__esModule=!0;b.TextCellType=b.CELL_TYPE=void 0;g=a(151);a=a(152);b.CELL_TYPE="text";b.TextCellType={CELL_TYPE:"text",editor:g.TextEditor,renderer:a.textRenderer}},function(g,b,a){function F(v){var C=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1; 3742if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(y){return!1}}();return function(){var y=(0,c.default)(v);if(C){var z=(0,c.default)(this).constructor;y=Reflect.construct(y,arguments,z)}else y=y.apply(this,arguments);return(0,e.default)(this,y)}}a(0);a(7);g=a(1);b.__esModule=!0;b.TextEditor=b.EDITOR_TYPE=void 0;a(33);var B=g(a(34)),D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(30)),p=g(a(15)),e=g(a(16)),c=g(a(14)),d=a(207),h= 3743g(a(60)),k=a(107),f=a(23),n=a(47),l=a(124),r=a(868),m=a(31),t=a(202),u=a(615),w=a(870);b.EDITOR_TYPE="text";a=function(v){function C(z){var E;return(0,D.default)(this,C),(E=y.call(this,z)).eventManager=new h.default((0,x.default)(E)),E.autoResize=(0,r.autoResize)(),E.TEXTAREA=void 0,E.textareaStyle=void 0,E.TEXTAREA_PARENT=void 0,E.textareaParentStyle=void 0,E.layerClass=void 0,E.createElements(),E.bindEvents(),E.hot.addHookOnce("afterDestroy",function(){return E.destroy()}),E}(0,p.default)(C,v); 3744var y=F(C);return(0,A.default)(C,[{key:"getValue",value:function(){return this.TEXTAREA.value}},{key:"setValue",value:function(z){this.TEXTAREA.value=z}},{key:"open",value:function(){var z=this;this.refreshDimensions();this.showEditableElement();this.hot.getShortcutManager().setActiveContextName("editor");this.addHook("afterDocumentKeyDown",function(E){return z.onAfterDocumentKeyDown(E)});this.registerShortcuts()}},{key:"close",value:function(){this.autoResize.unObserve();this.hot.rootDocument.activeElement=== 3745this.TEXTAREA&&this.hot.listen();this.hideEditableElement();this.unregisterShortcuts();this.removeHooksByKey("afterDocumentKeyDown")}},{key:"prepare",value:function(z,E,H,G,I,K){var J=this.state;((0,q.default)((0,c.default)(C.prototype),"prepare",this).call(this,z,E,H,G,I,K),K.readOnly)||(this.refreshDimensions(!0),z=K.fragmentSelection,K.allowInvalid&&(this.TEXTAREA.value=""),J!==d.EDITOR_STATE.FINISHED&&this.hideEditableElement(),z||(0,k.isMobileBrowser)()||this.focus())}},{key:"beginEditing",value:function(z, 3746E){this.state===d.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",(0,q.default)((0,c.default)(C.prototype),"beginEditing",this).call(this,z,E
3746))}},{key:"focus",value:function(){this.TEXTAREA.select();(0,f.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}},{key:"createElements",value:function(){var z=this.hot.rootDocument;this.TEXTAREA=z.createElement("TEXTAREA");this.TEXTAREA.setAttribute("data-hot-input","");this.TEXTAREA.tabIndex=-1;(0,f.addClass)(this.TEXTAREA,"handsontableInput");this.textareaStyle= 3747this.TEXTAREA.style;this.textareaStyle.width=0;this.textareaStyle.height=0;this.textareaStyle.overflowY="visible";this.TEXTAREA_PARENT=z.createElement("DIV");(0,f.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder");(0,f.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,f.removeClass)(this.TEXTAREA_PARENT,this.layerClass);(0,f.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden");this.textareaParentStyle=this.TEXTAREA_PARENT.style;this.TEXTAREA_PARENT.appendChild(this.TEXTAREA);this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}}, 3748{key:"hideEditableElement",value:function(){((0,k.isIE)()||(0,k.isEdge)())&&(this.textareaStyle.textIndent="-99999px");this.textareaStyle.overflowY="visible";this.textareaParentStyle.opacity="0";this.textareaParentStyle.height="1px";(0,f.removeClass)(this.TEXTAREA_PARENT,this.layerClass);(0,f.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="";this.textareaParentStyle.overflow="";this.textareaParentStyle.position="";this.textareaParentStyle[this.hot.isRtl()? 3749"left":"right"]="auto";this.textareaParentStyle.opacity="1";this.textareaStyle.textIndent="";this.textareaStyle.overflowY="hidden";var z=this.TEXTAREA_PARENT.childNodes,E=!1;(0,n.rangeEach)(z.length-1,function(H){if((0,f.hasClass)(z[H],"handsontableEditor"))return E=!0,!1});(0,f.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&(0,f.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden");E?(this.layerClass="ht_editor_visible",(0,f.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass= 3750this.getEditedCellsLayerClass(),(0,f.addClass)(this.TEXTAREA_PARENT,this.layerClass))}},{key:"refreshValue",value:function(){var z=this.hot.toPhysicalRow(this.row);this.originalValue=z=this.hot.getSourceDataAtCell(z,this.col);this.setValue(z);this.refreshDimensions()}},{key:"refreshDimensions",value:function(){var z=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(this.state===d.EDITOR_STATE.EDITING||z)if(this.TD=this.getEditedCell(),this.TD){var E=this.getEditedCellRect(),H=E.start;z=E.width; 3751var G=E.maxWidth,I=E.height,K=E.maxHeight;this.textareaParentStyle.top="".concat(E.top,"px");this.textareaParentStyle[this.hot.isRtl()?"right":"left"]="".concat(H,"px");this.showEditableElement();E=(0,f.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=E.fontSize;this.TEXTAREA.style.fontFamily=E.fontFamily;this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor;H=(0,f.getComputedStyle)(this.TEXTAREA);E=parseInt(H.paddingLeft,10)+parseInt(H.paddingRight,10);H=parseInt(H.paddingTop, 375210)+parseInt(H.paddingBottom,10);G-=E;K-=H;this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(z-E,G),minHeight:Math.min(I-H,K),maxWidth:G,maxHeight:K},!0)}else z||this.close()}},{key:"bindEvents",value:function(){var z=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(E){return E.stopPropagation()});this.eventManager.addEventListener(this.TEXTAREA,"paste",function(E){return E.stopPropagation()});(0,k.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",function(){return z.finishEditing(!1)}); 3753this.addHook("afterScrollHorizontally",function(){return z.refreshDimensions()});this.addHook("afterScrollVertically",function(){return z.refreshDimensions()});this.addHook("afterColumnResize",function(){z.refreshDimensions();z.focus()});this.addHook("afterRowResize",function(){z.refreshDimensions();z.focus()})}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy();this.clearHooks()}},{key:"registerShortcuts",value:function(){var z=this,E= 3754function(){z.hot.rootDocument.execCommand("insertText",!1,"\n")};this.hot.getShortcutManager().getContext("editor").addShortcuts([{keys:[["Tab"]],callback:function(H){var G=z.hot.getSettings();H="function"==typeof G.tabMoves?G.tabMoves(H):G.tabMoves;z.hot.selection.transformStart(H.row,H.col,!0)}},{keys:[["Shift","Tab"]],callback:function(H){var G=z.hot.getSettings();H="function"==typeof G.tabMoves?G.tabMoves(H):G.tabMoves;z.hot.selection.transformStart(-H.row,-H.col)}},{keys:[["Control","Enter"]], 3755callback:function(){return E(),!1},runOnlyIf:function(H){return!z.hot.selection.isMultiple()&&!H.altKey},relativeToGroup:t.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Meta","Enter"]],callback:function(){return E(),!1},runOnlyIf:function(){return!z.hot.selection.isMultiple()},relativeToGroup:t.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["Alt","Enter"]],callback:function(){return E(),!1},relativeToGroup:t.SHORTCUTS_GROUP_EDITOR,position:"before"},{keys:[["PageUp"]],callback:function(){z.hot.selection.transformStart(-z.hot.countVisibleRows(), 37560)}},{keys:[["PageDown"]],callback:function(){z.hot.selection.transformStart(z.hot.countVisibleRows(),0)}},{keys:[["Home"]],callback:function(H,G){H=(0,B.default)(G,1)[0];(0,w.updateCaretPosition)(H,z.TEXTAREA)}},{keys:[["End"]],callback:function(H,G){H=(0,B.default)(G,1)[0];(0,w.updateCaretPosition)(H,z.TEXTAREA)}},{keys:[["Control/Meta","Z"]],preventDefault:!1,callback:function(){z.hot._registerTimeout(function(){z.autoResize.resize()},10)}},{keys:[["Control/Meta","Shift","Z"]],preventDefault:!1, 3757callback:function(){z.hot._registerTimeout(function(){z.autoResize.resize()},10)}}],{runOnlyIf:function(){return(0,m.isDefined)(z.hot.getSelected())},group:"textEditor"})}},{key:"unregisterShortcuts",value:function(){var z=this.hot.getShortcutManager().getContext("editor");z.removeShortcutsByGroup(t.SHORTCUTS_GROUP_NAVIGATION);z.removeShortcutsByGroup("textEditor");z.removeShortcutsByGroup(u.SHORTCUTS_GROUP_EDITOR)}},{key:"onAfterDocumentKeyDown",value:function(z){-1===[l.KEY_CODES.ARROW_UP,l.KEY_CODES.ARROW_RIGHT, 3758l.KEY_CODES.ARROW_DOWN,l.KEY_CODES.ARROW_LEFT].indexOf(z.keyCode)&&this.autoResize.resize(String.fromCharCode(z.keyCode))}}],[{key:"EDITOR_TYPE",get:function(){return"text"}}]),C}(d.BaseEditor);b.TextEditor=a},function(g,b,a){b.__esModule=!0;b.default=void 0;var F=a(20),B=a(17);g={_hooksStorage:Object.create(null),addHook:function(D,A){return this._hooksStorage[D]||(this._hooksStorage[D]=[]),this.hot.addHook(D,A),this._hooksStorage[D].push(A),this},removeHooksByKey:function(D){var A=this;(0,F.arrayEach)(this._hooksStorage[D]|| 3759[],function(x){A.hot.removeHook(D,x)})},clearHooks:function(){var D=this;(0,B.objectEach)(this._hooksStorage,function(A,x){return D.removeHooksByKey(x)});this._hooksStorage={}}};(0,B.defineGetter)(g,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});b.default=g},function(g,b,a){b.__esModule=!0;b.autoResize=void 0;g=a(869);b.autoResize=g.autoResize},function(g,b,a){b.__esModule=!0;b.autoResize=function(){var F,B=200,D=300,A=100,x=300,q=document.body,p=document.createTextNode(""),e=document.createElement("SPAN"), 3760c=function(h){h?/^[a-zA-Z \.,\\\/\|0-9]$/.test(h)||(h="."):h="";void 0!==p.textContent?p.textContent=F.value+h:p.data=F.value+h;e.style.fontSize=(F.currentStyle||document.defaultView.getComputedStyle(F)).fontSize;e.style.fontFamily=(F.currentStyle||document.defaultView.getComputedStyle(F)).fontFamily;e.style.whiteSpace="pre";q.appendChild(e);h=e.clientWidth+2;q.removeChild(e);F.style.height=B+"px";A>h?F.style.width=A+"px":h>x?F.style.width=x+"px":F.style.width=h+"px";h=F.scrollHeight?F.scrollHeight- 37611:0;B>h?F.style.height=B+"px":D<h?(F.style.height=D+"px",F.style.overflowY="visible"):F.style.height=h+"px"},d=function(){window.setTimeout(c,0)};return{init:function(h,k,f){F=h;k&&k.minHeight&&("inherit"==k.minHeight?B=F.clientHeight:(h=parseInt(k.minHeight),isNaN(h)||(B=h)));k&&k.maxHeight&&("inherit"==k.maxHeight?D=F.clientHeight:(h=parseInt(k.maxHeight),isNaN(h)||(D=h)));k&&k.minWidth&&("inherit"==k.minWidth?A=F.clientWidth:(h=parseInt(k.minWidth),isNaN(h)||(A=h)));k&&k.maxWidth&&("inherit"== 3762k.maxWidth?x=F.clientWidth:(k=parseInt(k.maxWidth),isNaN(k)||(x=k)));e.firstChild||(e.className="autoResize",e.style.display="inline-block",e.appendChild(p));"TEXTAREA"==F.nodeName&&(F.style.resize="none",F.style.overflowY="",F.style.height=B+"px",F.style.minWidth=A+"px",F.style.maxWidth=x+"px",F.style.overflowY="hidden");f&&(F.addEventListener("change",c,!1),F.addEventListener("cut",d,!1),F.addEventListener("paste",d,!1),F.addEventListener("drop",d,!1),F.addEventListener("keydown",d,!1),F.addEventListener("focus", 3763c,!1),F.addEventListener("compositionstart",d,!1),F.addEventListener("compositionupdate",d,!1),F.addEventListener("compositionend",d,!1));c()},unObserve:function(){F.removeEventListener("change",c,!1);F.removeEventListener("cut",d,!1);F.removeEventListener("paste",d,!1);F.removeEventListener("drop",d,!1);F.removeEventListener("keydown",d,!1);F.removeEventListener("focus",c,!1);F.removeEventListener("compositionstart",d,!1);F.removeEventListener("compositionupdate",d,!1);F.removeEventListener("compositionend", 3764d,!1)},resize:c}};a(12);a(77)},function(g,b,a){b.__esModule=!0;b.updateCaretPosition=function(B,D){for(var A=(0,F.getCaretPosition)(D),x=D.value.split("\n"),q=A,p=0,e=0;e<x.length;e++){var c=x[e];0!==e&&(p+=x[e-1].length+1);c=p+c.length;if("home"===B?q=p:"end"===B&&(q=c),A<=c)break}(0,F.setCaretPosition)(D,q)};a(12);a(64);var F=a(23)},function(g,b,a){function F(x,q,p,e,c,d,h){B.baseRenderer.apply(this,[x,q,p,e,c,d,h]);e=d;(!e&&h.placeholder&&(e=h.placeholder),e=(0,A.stringify)(e),x.getSettings().trimWhitespace&& 3765(e=e.trim()),h.rendererTemplate)?((0,D.empty)(q),e=x.rootDocument.createElement("TE
3765MPLATE"),e.setAttribute("bind","{{}}"),e.innerHTML=h.rendererTemplate,HTMLTemplateElement.decorate(e),e.model=x.getSourceDataAtRow(p),q.appendChild(e)):(0,D.fastInnerText)(q,e)}b.__esModule=!0;b.RENDERER_TYPE=void 0;b.textRenderer=F;a(118);var B=a(249),D=a(23),A=a(31);b.RENDERER_TYPE="text";F.RENDERER_TYPE="text"},function(g,b,a){function F(D,A,x,q,p,e,c){D=[];x=[];c.className&&(0,B.addClass)(A,c.className);c.readOnly&& 3766D.push(c.readOnlyCellClassName);!1===c.valid&&c.invalidCellClassName?D.push(c.invalidCellClassName):x.push(c.invalidCellClassName);!1===c.wordWrap&&c.noWordWrapClassName&&D.push(c.noWordWrapClassName);!e&&c.placeholder&&D.push(c.placeholderCellClassName);(0,B.removeClass)(A,x);(0,B.addClass)(A,D)}b.__esModule=!0;b.RENDERER_TYPE=void 0;b.baseRenderer=F;var B=a(23);b.RENDERER_TYPE="base";F.RENDERER_TYPE="base"},function(g,b,a){b.__esModule=!0;b.registerAllModules=function(){(0,F.registerAllEditors)(); 3767(0,B.registerAllRenderers)();(0,D.registerAllValidators)();(0,A.registerAllCellTypes)();(0,x.registerAllPlugins)()};var F=a(874);b.registerAllEditors=F.registerAllEditors;var B=a(887);b.registerAllRenderers=B.registerAllRenderers;var D=a(896);b.registerAllValidators=D.registerAllValidators;var A=a(902);b.registerAllCellTypes=A.registerAllCellTypes;var x=a(919);b.registerAllPlugins=x.registerAllPlugins},function(g,b,a){b.__esModule=!0;b.hasEditor=b.getRegisteredEditors=b.getRegisteredEditorNames=b.getEditorInstance= 3768b.getEditor=b._getEditorInstance=b.RegisteredEditor=void 0;b.registerAllEditors=function(){(0,k.registerEditor)(B.BaseEditor);(0,k.registerEditor)(F.AutocompleteEditor);(0,k.registerEditor)(D.CheckboxEditor);(0,k.registerEditor)(A.DateEditor);(0,k.registerEditor)(x.DropdownEditor);(0,k.registerEditor)(q.HandsontableEditor);(0,k.registerEditor)(p.NumericEditor);(0,k.registerEditor)(e.PasswordEditor);(0,k.registerEditor)(c.SelectEditor);(0,k.registerEditor)(d.TextEditor);(0,k.registerEditor)(h.TimeEditor)}; 3769var F=a(321);b.AutocompleteEditor=F.AutocompleteEditor;b.AUTOCOMPLETE_EDITOR=F.EDITOR_TYPE;var B=a(207);b.BaseEditor=B.BaseEditor;b.BASE_EDITOR=B.EDITOR_TYPE;var D=a(616);b.CheckboxEditor=D.CheckboxEditor;b.CHECKBOX_EDITOR=D.EDITOR_TYPE;var A=a(323);b.DateEditor=A.DateEditor;b.DATE_EDITOR=A.EDITOR_TYPE;var x=a(617);b.DropdownEditor=x.DropdownEditor;b.DROPDOWN_EDITOR=x.EDITOR_TYPE;var q=a(322);b.HandsontableEditor=q.HandsontableEditor;b.HANDSONTABLE_EDITOR=q.EDITOR_TYPE;var p=a(618);b.NumericEditor= 3770p.NumericEditor;b.NUMERIC_EDITOR=p.EDITOR_TYPE;var e=a(619);b.PasswordEditor=e.PasswordEditor;b.PASSWORD_EDITOR=e.EDITOR_TYPE;var c=a(884);b.SelectEditor=c.SelectEditor;b.SELECT_EDITOR=c.EDITOR_TYPE;var d=a(151);b.TextEditor=d.TextEditor;b.TEXT_EDITOR=d.EDITOR_TYPE;var h=a(620);b.TimeEditor=h.TimeEditor;b.TIME_EDITOR=h.EDITOR_TYPE;var k=a(166);
3770b.registerEditor=k.registerEditor;b.RegisteredEditor=k.RegisteredEditor;b._getEditorInstance=k._getEditorInstance;b.getEditor=k.getEditor;b.getEditorInstance= 3771k.getEditorInstance;b.getRegisteredEditorNames=k.getRegisteredEditorNames;b.getRegisteredEditors=k.getRegisteredEditors;b.hasEditor=k.hasEditor},function(g,b,a){function F(m){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u=(0,e.default)(m);if(t){var w=(0,e.default)(this).constructor; 3772u=Reflect.construct(u,arguments,w)}else u=u.apply(this,arguments);return(0,p.default)(this,u)}}a(7);g=a(1);b.__esModule=!0;b.EDITOR_TYPE=b.AutocompleteEditor=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=g(a(41));a(3);a(0);a(2);a(11);a(4);a(33);a(75);a(146);a(12);a(67);a(39);g=a(322);var d=a(20),h=a(23),k=a(31),f=a(97),n=a(124),l=a(152),r=new WeakMap;b.EDITOR_TYPE="autocomplete";a=function(m){function t(w){var v;return(0,B.default)(this,t),v=u.call(this,w), 3773(0,c.default)((0,A.default)(v),"sortByRelevance",function(C,y,z){var E,H,G,I=[],K=[],J=C.length,P=y.length;if(0===J){for(G=0;G<P;G++)K.push(G);return K}for(G=0;G<P;G++){if(H=(0,f.stripTags)((0,k.stringify)(y[G])),z)var S=H.indexOf(C);else S=this.cellProperties.locale,S=H.toLocaleLowerCase(S).indexOf(C.toLocaleLowerCase(S));-1!==S&&(E=H.length-S-J,I.push({baseIndex:G,index:S,charsLeft:E,value:H}))}I.sort(function(R,O){if(-1===O.index)return-1;if(-1===R.index)return 1;if(R.index<O.index)return-1;if(O.index< 3774R.index)return 1;if(R.index===O.index){if(R.charsLeft<O.charsLeft)return-1;if(R.charsLeft>O.charsLeft)return 1}return 0});G=0;for(P=I.length;G<P;G++)K.push(I[G].baseIndex);return K}),v.query=null,v.strippedChoices=[],v.rawChoices=[],r.set((0,A.default)(v),{skipOne:!1,isMacOS:-1<v.hot.rootWindow.navigator.platform.indexOf("Mac")}),v}(0,q.default)(t,m);var u=F(t);return(0,D.default)(t,[{key:"getValue",value:function(){var w=this,v=this.rawChoices.find(function(C){return w.stripValueIfNeeded(C)===w.TEXTAREA.value}); 3775return(0,k.isDefined)(v)?v:this.TEXTAREA.value}},{key:"createElements",value:function(){(0,x.default)((0,e.default)(t.prototype),"createElements",this).call(this);(0,h.addClass)(this.htContainer,"autocompleteEditor");(0,h.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll")}},{key:"open",value:function(){var w=this,v=r.get(this);(0,x.default)((0,e.default)(t.prototype),"open",this).call(this);var C=this.htEditor.getInstance(),y=void 0===this.cellProperties.trimDropdown|| 3776this.cellProperties.trimDropdown;this.showEditableElement();this.focus();var z=(0,h.getScrollbarWidth)();0===z&&v.isMacOS&&(z+=15);this.addHook("beforeKeyDown",function(E){return w.onBeforeKeyDown(E)});C.updateSettings({colWidths:y?[(0,h.outerWidth)(this.TEXTAREA)-2]:void 0,width:y?(0,h.outerWidth)(this.TEXTAREA)+z:void 0,renderer:function(E,H,G,I,K,J,P){(0,l.textRenderer)(E,H,G,I,K,J,P);var S,R;I=w.cellProperties;E=I.filteringCaseSensitive;G=I.allowHtml;I=I.locale;K=w.query;(J=(0,k.stringify)(J))&& 3777!G&&-1!==(S=!0===E?J.indexOf(K):J.toLocaleLowerCase(I).indexOf(K.toLocaleLowerCase(I)))&&(R=J.substr(S,K.length),J=J.replace(R,"\x3cstrong\x3e".concat(R,"\x3c/strong\x3e")));H.innerHTML=J},autoColumnSize:!0});v.skipOne&&(v.skipOne=!1);this.hot._registerTimeout(function(){w.queryChoices(w.TEXTAREA.value)})}},{key:"close",value:function(){this.removeHooksByKey("beforeKeyDown");(0,x.default)((0,e.default)(t.prototype),"close",this).call(this)}},{key:"discardEditor",value:function(w){(0,x.default)((0,e.default)(t.prototype), 3778"discardEditor",this).call(this,w);this.hot.view.render()}},{key:"queryChoices",value:function(w){var v=this,C=this.cellProperties.source;this.query=w;"function"==typeof C?C.call(this.cellProperties,w,function(y){v.rawChoices=y;v.updateChoicesList(v.stripValuesIfNeeded(y))}):Array.isArray(C)?(this.rawChoices=C,this.updateChoicesList(this.stripValuesIfNeeded(C))):this.updateChoicesList([])}},{key:"updateChoicesList",value:function(w){var v=(0,h.getCaretPosition)(this.TEXTAREA),C=(0,h.getSelectionEndPosition)(this.TEXTAREA), 3779y=this.cellProperties.sortByRelevance,z=this.cellProperties.filter,E=null,H=null;y&&(E=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),w,this.cellProperties.filteringCaseSensitive));var G=Array.isArray(E)?E.length:0;if(!1===z)G&&(H=E[0]);else{z=[];H=0;for(var I=w.length;H<I&&!(y&&G<=H);H++)G?z.push(w[E[H]]):z.push(w[H]);H=0;w=z}this.strippedChoices=w;this.htEditor.loadData((0,d.pivot)([w]));this.updateDropdownHeight();this.flipDropdownIfNeeded();!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(H); 3780this.hot.listen();(0,h.setCaretPosition)(this.TEXTAREA,v,v===C?void 0:C)}},{key:"flipDropdownIfNeeded",value:function(){var w=(0,h.getTrimmingContainer)(this.hot.view._wt.wtTable.TABLE),v=w===this.hot.rootWindow,C=this.cellProperties.preventOverflow;
3780if(v||!v&&(C||"horizontal"===C))return!1;var y=(0,h.offset)(this.TEXTAREA);C=(0,h.outerHeight)(this.TEXTAREA);v=this.getDropdownHeight();var z=w.scrollTop,E=(0,h.outerHeight)(this.hot.view._wt.wtTable.THEAD),H=(0,h.offset)(w);y=y.top-H.top-E+z;w=w.scrollHeight- 3781y-E-C;C=v>w&&y>w;return C?this.flipDropdown(v):this.unflipDropdown(),this.limitDropdownIfNeeded(C?y:w,v),C}},{key:"limitDropdownIfNeeded",value:function(w,v){if(v>w){var C=0,y=0,z;do C+=z=this.htEditor.getRowHeight(y)||this.htEditor.view._wt.getSetting("defaultRowHeight"),y+=1;while(C<w);w=C-z;this.htEditor.flipped&&(this.htEditor.rootElement.style.top="".concat(parseInt(this.htEditor.rootElement.style.top,10)+v-w,"px"));this.setDropdownHeight(C-z)}}},{key:"flipDropdown",value:function(w){var v=this.htEditor.rootElement.style; 3782v.position="absolute";v.top="".concat(-w,"px");this.htEditor.flipped=!0}},{key:"unflipDropdown",value:function(){var w=this.htEditor.rootElement.style;w.position="absolute";w.top="";this.htEditor.flipped=void 0}},{key:"updateDropdownHeight",value:function(){var w=this.htEditor.getColWidth(0)+(0,h.getScrollbarWidth)(this.hot.rootDocument)+2,v=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:v?void 0:w});this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}}, 3783{key:"setDropdownHeight",value:function(w){this.htEditor.updateSettings({height:w})}},{key:"highlightBestMatchingChoice",value:function(w){"number"==typeof w?this.htEditor.selectCell(w,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}},{key:"getDropdownHeight",value:function(){var w=this.htEditor.getInstance().getRowHeight(0)||23,v=this.cellProperties.visibleRows;return this.strippedChoices.length>=v?v*w:this.strippedChoices.length*w+8}},{key:"stripValueIfNeeded",value:function(w){return this.stripValuesIfNeeded([w])[0]}}, 3784{key:"stripValuesIfNeeded",value:function(w){var v=this.cellProperties.allowHtml;w=(0,d.arrayMap)(w,function(C){return(0,k.stringify)(C)});return(0,d.arrayMap)(w,function(C){return v?C:(0,f.stripTags)(C)})}},{key:"allowKeyEventPropagation",value:function(w){var v=this.htEditor.getSelectedRangeLast();v=v?v.from.row:-1;var C=!1;return w===n.KEY_CODES.ARROW_DOWN&&0<v&&v<this.htEditor.countRows()-1&&(C=!0),w===n.KEY_CODES.ARROW_UP&&-1<v&&(C=!0),C}},{key:"onBeforeKeyDown",value:function(w){var v=this, 3785C=r.get(this);if(C.skipOne=!1,(0,n.isPrintableChar)(w.keyCode)||w.keyCode===n.KEY_CODES.BACKSPACE||w.keyCode===n.KEY_CODES.DELETE||w.keyCode===n.KEY_CODES.INSERT){var y=10;if(w.keyCode!==n.KEY_CODES.C||!w.ctrlKey&&!w.metaKey)this.isOpened()||(y+=10),this.htEditor&&this.hot._registerTimeout(function(){v.queryChoices(v.TEXTAREA.value);C.skipOne=!0},y)}}}],[{key:"EDITOR_TYPE",get:function(){return"autocomplete"}}]),t}(g.HandsontableEditor);b.AutocompleteEditor=a},function(g,b,a){function F(k){var f= 3786function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n=(0,p.default)(k);if(f){var l=(0,p.default)(this).constructor;n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);return(0,q.default)(this,n)}}a(0);a(7);g=a(1);b.__esModule=!0;b.HandsontableEditor=b.EDITOR_TYPE=void 0;var B= 3787g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));g=a(151);var e=a(23),c=a(83),d=a(17),h=a(202);b.EDITOR_TYPE="handsontable";a=function(k){function f(){return(0,B.default)(this,f),n.apply(this,arguments)}(0,x.default)(f,k);var n=F(f);return(0,D.default)(f,[{key:"open",value:function(){(0,A.default)((0,p.default)(f.prototype),"open",this).call(this);this.htEditor&&this.htEditor.destroy();"none"===this.htContainer.style.display&&(this.htContainer.style.display="");this.htEditor=new this.hot.constructor(this.htContainer, 3788this.htOptions);this.htEditor.init();this.htEditor.rootElement.style.display="";this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell();(0,e.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length);this.refreshDimensions()}},{key:"close",value:function(){this.htEditor&&(this.htEditor.rootElement.style.display="none");this.removeHooksByKey("beforeKeyDown");(0,A.default)((0,p.default)(f.prototype),"close",this).call(this)}},{key:"prepare",value:function(l,r,m,t,u, 3789w){(0,A.default)((0,p.default)(f.prototype),"prepare",this).call(this,l,r,m,t,u,w);var v=this;l={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,afterOnCellMouseDown:function(C,y){C=this.getSourceData(y.row,y.col);void 0!==C&&v.setValue(C);v.instance.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,d.extend)(l,w.handsontable); 3790this.htOptions=l}},{key:"beginEditing",value:function(l,r){var m=this.hot.getSettings().onBeginEditing;m&&!1===m()||(0,A.default)((0,p.default)(f.prototype),"beginEditing",this).call(this,l,r)}},{key:"createElements",value:function(){(0,A.default)((0,p.default)(f.prototype),"createElements",this).call(this);var l=this.hot.rootDocument.createElement("DIV");l.className="handsontableEditor";this.TEXTAREA_PARENT.appendChild(l);this.htContainer=l;this.assignHooks()}},{key:"finishEditing",value:function(l, 3791r,m){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){var t=this.htEditor.getInstance().getValue();void 0!==t&&this.setValue(t)}(0,A.default)((0,p.default)(f.prototype),"finishEditing",this).call(this,l,r,m)}},{key:"assignHooks",value:function(){var l=this;this.hot.addHook("afterDestroy",function(){l.htEditor&&l.htEditor.destroy()})}},{key:"registerShortcuts",value:function(){var l=this,r=this.hot.getShortcutManager().getContext("editor"); 3792(0,A.default)((0,p.default)(f.prototype),"registerShortcuts",this).call(this);var m=function(t,u){var w=l.htEditor.getInstance();if(void 0!==t&&(0>t||w.flipped&&t>w.countRows()-1?w.deselectCell():w.selectCell(t,0),w.getData().length))return u.preventDefault(),(0,c.stopImmediatePropagation)(u),l.hot.listen(),l.TEXTAREA.focus(),!1};r.addShortcuts([{keys:[["ArrowUp"]],callback:function(t){var u,w,v=l.htEditor.getInstance();return!v.getSelectedLast()&&v.flipped?u=v.countRows()-1:v.getSelectedLast()&& 3793(v.flipped?(w=v.getSelectedLast()[0],u=Math.max(0,w-1)):u=v.getSelectedLast()[0]-1),m(u,t)},preventDefault:!1},{keys:[["ArrowDown"]],callback:function(t){var u=l.htEditor.getInstance();if(u.getSelectedLast()||u.flipped){if(u.getSelectedLast())if(u.flipped)var w=u.getSelectedLast()[0]+1;else u.flipped||(w=u.countRows()-1,u=u.getSelectedLast()[0],w=Math.min(w,u+1))}else w=0;return m(w,t)},preventDefault:!1}],{group:"handsontableEditor",relativeToGroup:h.SHORTCUTS_GROUP_NAVIGATION,position:"before"})}}, 3794{key:"unregisterShortcuts",value:function(){(0,A.default)((0,p.default)(f.prototype),"unregisterShortcuts",this).call(this);this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("handsontableEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"handsontable"}}]),f}(g.TextEditor);b.HandsontableEditor=a},function(g,b,a){function F(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 3795[],function(){})),!0}catch(d){return!1}}();return function(){var d=(0,q.default)(e);if(c){var h=(0,q.default)(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);return(0,x.default)(this,d)}}a(0);a(7);g=a(1);b.__esModule=!0;b.EDITOR_TYPE=b.CheckboxEditor=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14));g=a(207);var p=a(23);b.EDITOR_TYPE="checkbox";a=function(e){function c(){return(0,B.default)(this,c),d.apply(this,arguments)}(0,A.default)(c,e);var d= 3796F(c);return(0,D.default)(c,[{key:"beginEditing",value:function(h,k){k&&"mouseup"===k.type&&(h=this.TD.querySelector('input[type\x3d"checkbox"]'),(0,p.hasClass)(h,"htBadValue")||h.click())}},{key:"finishEditing",value:function(){}},{key:"init",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"focus",value:function(){}}],[{key:"EDITOR_TYPE",get:function(){return"checkbox"}}]),c}(g.BaseEditor); 3797b.CheckboxEditor=a},function(g,b,a){function F(l){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(m){return!1}}();return function(){var m=(0,p.default)(l);if(r){var t=(0,p.default)(this).constructor;m=Reflect.construct(m,arguments,t)}else m=m.apply(this,arguments);return(0,q.default)(this,m)}}a(0);a(7);g=a(1);b.__esModule= 3798!0;b.EDITOR_TYPE=b.DateEditor=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14)),e=g(a(108)),c=g(a(879)),d=a(151),h=g(a(60)),k=a(23),f=a(17),n=a(124);a(880);b.EDITOR_TYPE="date";a=function(l){function r(t){var u;return(0,B.default)(this,r),(u=m.call(this,t)).defaultDateFormat="DD/MM/YYYY",u.isCellEdited=!1,u.parentDestroyed=!1,u.$datePicker=null,u}(0,x.default)(r,l);var m=F(r);return(0,D.default)(r,[{key:"init",value:function(){var t=this;if("function"!=typeof e.default)throw Error("You need to include moment.js to your project."); 3799if("function"!=typeof c.default)throw Error("You need to include Pikaday to your project.");(0,A.default)((0,p.default)(r.prototype),"init",this).call(this);this.instance.addHook("afterDestroy",function(){t.parentDestroyed=!0;t.destroyElements()})}},{key:"createElements",value:function(){(0,A.default)((0,p.default)(r.prototype),"createElements",this).call(this);this.datePicker=this.hot.rootDocument.createElement("DIV");this.datePickerStyle=this.datePicker.style;this.datePickerStyle.position="absolute"; 3800this.datePickerStyle.top=0;this.datePickerStyle.left=0;this.datePickerStyle.zIndex=9999;this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr");(0,k.addClass)(this.datePicker,"htDatepickerHolder");this.hot.rootDocument.body.appendChild(this.datePicker);(new h.default(this)).addEventListener(this.datePicker,"mousedown",function(t){return t.stopPropagation()})}},{key:"destroyElements",value:function(){var t=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy();t&&t.removeChild(this.datePicker)}}, 3801{key:"prepare",value:function(t,u,w,v,C,y){(0,A.default)((0,p.default)(r.prototype),"prepare",this).call(this,t,u,w,v,C,y)}},{key:"open",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;(0,A.default)((0,p.default)(r.prototype),"open",this).call(this);this.showDatepicker(t)}},{key:"close",value:function(){var t,u=this;this._opened=!1;null!==(t=this.$datePicker)&&void 0!==t&&t.destroy&&this.$datePicker.destroy();this.instance._registerTimeout(function(){u.instance._refreshBorders()}); 3802(0,A.default)((0,p.default)(r.prototype),"close",this).call(this)}},{key:"finishEditing",value:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],u=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(t){var w=this.originalValue;void 0!==w&&this.setValue(w)}(0,A.default)((0,p.default)(r.prototype),"finishEditing",this).call(this,t,u)}},{key:"showDatepicker",value:function(t){var u,w=this.TD.getBoundingClientRect(),v=this.cellProperties.dateFormat||this.defaultDateFormat, 3803C=this.instance.view.isMouseDown();t=!!t&&(0,n.isFunctionKey)(t.keyCode);this.datePicker.style.display="block";this.$datePicker=new c.default(this.getDatePickerConfig());this.$datePicker._onInputFocus=function(){};this.datePickerStyle.top="".concat(this.hot.rootWindow.pageYOffset+w.top+(0,k.outerHeight)(this.TD),"px");var y=this.hot.rootWindow.pageXOffset;y=this.hot.isRtl()?w.right-(0,k.outerWidth)(this.datePicker):w.left;this.datePickerStyle.left="".concat(y,"px");this.originalValue?(u=this.originalValue, 3804(0,e.default)(u,v,!0).isValid()&&this.$datePicker.setMoment((0,e.default)(u,v),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),t||C||this.setValue("")):this.cellProperties.defaultDate?(u=this.cellProperties.defaultDate,(0,e.default)(u,v,!0).isValid()&&this.$datePicker.setMoment((0,e.default)(u,v),!0),t||C||this.setValue("")):this.$datePicker.gotoToday()}},{key:"hideDatepicker",value:function(){this.datePickerStyle.display="none";this.$datePicker.hide()}},{key:"getDatePickerConfig", 3805value:function(){var t=this,u=this.TEXTAREA,w={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,f.deepExtend)(w,this.cellProperties.datePickerConfig);var v=w.onSelect,C=w.onClose;return w.field=u,w.trigger=u,w.container=this.datePicker,w.bound=!1,w.format=w.format||this.defaultDateFormat,w.reposition=w.reposition||!1,w.isRTL=!1,w.onSelect=function(y){isNaN(y.getTime())||(y=(0,e.default)(y).format(t.cellProperties.dateFormat||t.defaultDateFormat));t.setValue(y);t.hideDatepicker();v&& 3806v()},w.onClose=function(){t.parentDestroyed||t.finishEditing(!1);C&&C()},w}}],[{key:"EDITOR_TYPE",get:function(){return"date"}}]),r}(d.TextEditor);b.DateEditor=a},function(g,b,a){!function(F,B){try{var D=a(108)}catch(A){}g.exports=function(A){var x="function"==typeof A,q=!!window.addEventListener,p=window.document,e=window.setTimeout,c=function(K,J,P,S){q?K.addEventListener(J,P,!!S):K.attachEvent("on"+J,P)},d=function(K,J,P,S){q?K.removeEventListener(J,P,!!S):K.detachEvent("on"+J,P)},h=function(K, 3807J){return-1!==(" "+K.className+" ").indexOf(" "+J+" ")},k=function(K,J){h(K,J)||(K.className=""===K.className?J:K.className+" "+J)},f=function(K,J){var P;K.className=(P=(" "+K.className+" ").replace(" "+J+" "," ")).trim?P.trim():P.replace(/^\s+|\s+$/g,"")},n=function(K){return/Array/.test(Object.prototype.toString.call(K))},l=function(K){return/Date/.test(Object.prototype.toString.call(K))&&!isNaN(K.getTime())},r=function(K){K=K.getDay();return 0===K||6===K},m=function(K,J){return[31,0==K%4&&0!=K% 3808100||0==K%400?29:28,31,30,31,30,31,31,30,31,30,31][J]},t=function(K){l(K)&&K.setHours(0,0,0,0)},u=function(K,J){return K.getTime()===J.getTime()},w=function(K,J,P){var S,R;
3808for(S in J)(R=void 0!==K[S])&&"object"==typeof J[S]&&null!==J[S]&&void 0===J[S].nodeName?l(J[S])?P&&(K[S]=new Date(J[S].getTime())):n(J[S])?P&&(K[S]=J[S].slice(0)):K[S]=w({},J[S],P):!P&&R||(K[S]=J[S]);return K},v=function(K,J,P){var S;p.createEvent?((S=p.createEvent("HTMLEvents")).initEvent(J,!0,!1),S=w(S,P),K.dispatchEvent(S)): 3809p.createEventObject&&(S=p.createEventObject(),S=w(S,P),K.fireEvent("on"+J,S))},C=function(K){return 0>K.month&&(K.year-=Math.ceil(Math.abs(K.month)/12),K.month+=12),11<K.month&&(K.year+=Math.floor(Math.abs(K.month)/12),K.month-=12),K},y={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null, 3810yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:"January February March April May June July August September October November December".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), 3811weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" ")},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},z=function(K,J,P){for(J+=K.firstDay;7<=J;)J-=7;return P?K.i18n.weekdaysShort[J]:K.i18n.weekdays[J]},E=function(K){var J=[],P="false";if(K.isEmpty){if(!K.showDaysInNextAndPreviousMonths)return'\x3ctd class\x3d"is-empty"\x3e\x3c/td\x3e';J.push("is-outside-current-month");K.enableSelectionDaysInNextAndPreviousMonths||J.push("is-selection-disabled")}return K.isDisabled&& 3812J.push("is-disabled"),K.isToday&&J.push("is-today"),K.isSelected&&(J.push("is-selected"),P="true"),K.hasEvent&&J.push("has-event"),K.isInRange&&J.push("is-inrange"),K.isStartRange&&J.push("is-startrange"),K.isEndRange&&J.push("is-endrange"),'\x3ctd data-day\x3d"'+K.day+'" class\x3d"'+J.join(" ")+'" aria-selected\x3d"'+P+'"\x3e\x3cbutton class\x3d"pika-button pika-day" type\x3d"button" data-pika-year\x3d"'+K.year+'" data-pika-month\x3d"'+K.month+'" data-pika-day\x3d"'+K.day+'"\x3e'+K.day+"\x3c/button\x3e\x3c/td\x3e"}, 3813H=function(K,J,P,S){return'\x3ctr class\x3d"pika-row'+(P?" pick-whole-week":"")+(S?" is-selected":"")+'"\x3e'+(J?K.reverse():K).join("")+"\x3c/tr\x3e"},G=function(K,J,P,S,R,O){var N,Q,M=K._o,T=P===M.minYear,Z=P===M.maxYear,L='\x3cdiv id\x3d"'+O+'" class\x3d"pika-title" role\x3d"heading" aria-live\x3d"assertive"\x3e',U=!0,V=!0;var Y=[];for(O=0;12>O;O++)Y.push('\x3coption value\x3d"'+(P===R?O-J:12+O-J)+'"'+(O===S?' selected\x3d"selected"':"")+(T&&O<M.minMonth||Z&&O>M.maxMonth?' disabled\x3d"disabled"': 3814"")+"\x3e"+M.i18n.months[O]+"\x3c/option\x3e");R='\x3cdiv class\x3d"pika-label"\x3e'+M.i18n.months[S]+'\x3cselect class\x3d"pika-select pika-select-month" tabindex\x3d"-1"\x3e'+Y.join("")+"\x3c/select\x3e\x3c/div\x3e";n(M.yearRange)?(O=M.yearRange[0],N=M.yearRange[1]+1):(O=P-M.yearRange,N=1+P+M.yearRange);for(Y=[];O<N&&O<=M.maxYear;O++)O>=M.minYear&&Y.push('\x3coption value\x3d"'+O+'"'+(O===P?' selected\x3d"selected"':"")+"\x3e"+O+"\x3c/option\x3e");return Q='\x3cdiv class\x3d"pika-label"\x3e'+P+ 3815M.yearSuffix+'\x3cselect class\x3d"pika-select pika-select-year" tabindex\x3d"-1"\x3e'+Y.join("")+"\x3c/select\x3e\x3c/div\x3e",M.showMonthAfterYear?L+=Q+R:L+=R+Q,T&&(0===S||M.minMonth>=S)&&(U=!1),Z&&(11===S||M.maxMonth<=S)&&(V=!1),0===J&&(L+='\x3cbutton class\x3d"pika-prev'+(U?"":" is-disabled")+'" type\x3d"button"\x3e'+M.i18n.previousMonth+"\x3c/button\x3e"),J===K._o.numberOfMonths-1&&(L+='\x3cbutton class\x3d"pika-next'+(V?"":" is-disabled")+'" type\x3d"button"\x3e'+M.i18n.nextMonth+"\x3c/button\x3e"), 3816L+"\x3c/div\x3e"},I=function(K){var J=this,P=J.config(K);J._onMouseDown=function(S){if(J._v){var R=(S=S||window.event).target||S.srcElement;if(R)if(h(R,"is-disabled")||(!h(R,"pika-button")||h(R,"is-empty")||h(R.parentNode,"is-disabled")?h(R,"pika-prev")?J.prevMonth():h(R,"pika-next")&&J.nextMonth():(J.setDate(new Date(R.getAttribute("data-pika-year"),R.getAttribute("data-pika-month"),R.getAttribute("data-pika-day"))),P.bound&&e(function(){J.hide();P.blurFieldOnSelect&&P.field&&P.field.blur()},100))), 3817h(R,"pika-select"))J._c=!0;else{if(!S.preventDefault)return S.returnValue=!1,!1;S.preventDefault()}}};J._onChange=function(S){var R=(S=S||window.event).target||S.srcElement;R&&(h(R,"pika-select-month")?J.gotoMonth(R.value):h(R,"pika-select-year")&&J.gotoYear(R.value))};J._onKeyChange=function(S){if(S=S||window.event,J.isVisible())switch(S.keyCode){case 13:case 27:P.field&&P.field.blur();break;case 37:J.adjustDate("subtract",1);break;case 38:J.adjustDate("subtract",7);break;case 39:J.adjustDate("add", 38181);break;case 40:J.adjustDate("add",7);break;case 8:case 46:J.setDate(null)}};J._parseFieldValue=function(){if(P.parse)return P.parse(P.field.value,P.format);if(x){var S=A(P.field.value,P.format,P.formatStrict);return S&&S.isValid()?S.toDate():null}return new Date(Date.parse(P.field.value))};J._onInputChange=function(S){var R;S.firedBy!==J&&(R=J._parseFieldValue(),l(R)&&J.setDate(R),J._v||J.show())};J._onInputFocus=function(){J.show()};J._onInputClick=function(){J.show()};J._onInputBlur=function(){var S= 3819p.activeElement;do if(h(S,"pika-single"))return;while(S=S.parentNode);J._c||(J._b=e(function(){J.hide()},50));J._c=!1};J._onClick=function(S){var R=(S=S||window.event).target||S.srcElement;if(S=R){!q&&h(R,"pika-select")&&(R.onchange||(R.setAttribute("onchange","return;"),c(R,"change",J._onChange)));do if(h(S,"pika-single")||S===P.trigger)return;while(S=S.parentNode);J._v&&R!==P.trigger&&S!==P.trigger&&J.hide()}};J.el=p.createElement("div");J.el.className="pika-single"+(P.isRTL?" is-rtl":"")+(P.theme? 3820" "+P.theme:"");c(J.el,"mousedown",J._onMouseDown,!0);c(J.el,"touchend",J._onMouseDown,!0);c(J.el,"change",J._onChange);P.keyboardInput&&c(p,"keydown",J._onKeyChange);P.field&&(P.container?P.container.appendChild(J.el):P.bound?p.body.appendChild(J.el):P.field.parentNode.insertBefore(J.el,P.field.nextSibling),c(P.field,"change",J._onInputChange),P.defaultDate||(P.defaultDate=J._parseFieldValue(),P.setDefaultDate=!0));K=P.defaultDate;l(K)?P.setDefaultDate?J.setDate(K,!0):J.gotoDate(K):J.gotoDate(new Date); 3821P.bound?(this.hide(),J.el.className+=" is-bound",c(P.trigger,"click",J._onInputClick),c(P.trigger,"focus",J._onInputFocus),c(P.trigger,"blur",J._onInputBlur)):this.show()};return I.prototype={config:function(K){this._o||(this._o=w({},y,!0));K=w(this._o,K,!0);K.isRTL=!!K.isRTL;K.field=K.field&&K.field.nodeName?K.field:null;K.theme="string"==typeof K.theme&&K.theme?K.theme:null;K.bound=!!(void 0!==K.bound?K.field&&K.bound:K.field);K.trigger=K.trigger&&K.trigger.nodeName?K.trigger:K.field;K.disableWeekends= 3822!!K.disableWeekends;K.disableDayFn="function"==typeof K.disableDayFn?K.disableDayFn:null;var J=parseInt(K.numberOfMonths,10)||1;(K.numberOfMonths=4<J?4:J,l(K.minDate)||(K.minDate=!1),l(K.maxDate)||(K.maxDate=!1),K.minDate&&K.maxDate&&K.maxDate<K.minDate&&(K.maxDate=K.minDate=!1),K.minDate&&this.setMinDate(K.minDate),K.maxDate&&this.setMaxDate(K.maxDate),n(K.yearRange))?(J=(new Date).getFullYear()-10,K.yearRange[0]=parseInt(K.yearRange[0],10)||J,K.yearRange[1]=parseInt(K.yearRange[1],10)||J):(K.yearRange= 3823Math.abs(parseInt(K.yearRange,10))||y.yearRange,100<K.yearRange&&(K.yearRange=100));return K},toString:function(K){return K=K||this._o.format,l(this._d)?this._o.toString?this._o.toString(this._d,K):x?A(this._d).format(K):this._d.toDateString():""},getMoment:function(){return x?A(this._d):null},setMoment:function(K,J){x&&A.isMoment(K)&&this.setDate(K.toDate(),J)},getDate:function(){return l(this._d)?new Date(this._d.getTime()):null},setDate:function(K,J){if(!K)return this._d=null,this._o.field&&(this._o.field.value= 3824"",v(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof K&&(K=new Date(Date.parse(K))),l(K)){var P=this._o.minDate,S=this._o.maxDate;l(P)&&K<P?K=P:l(S)&&K>S&&(K=S);this._d=new Date(K.getTime());t(this._d);this.gotoDate(this._d);this._o.field&&(this._o.field.value=this.toString(),v(this._o.field,"change",{firedBy:this}));J||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(K){var J=!0;
3824if(l(K)){if(this.calendars){J= 3825new Date(this.calendars[0].year,this.calendars[0].month,1);var P=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),S=K.getTime();P.setMonth(P.getMonth()+1);P.setDate(P.getDate()-1);J=S<J.getTime()||P.getTime()<S}J&&(this.calendars=[{month:K.getMonth(),year:K.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths));this.adjustCalendars()}},adjustDate:function(K,J){var P,S=this.getDate()||new Date;J=864E5* 3826parseInt(J);"add"===K?P=new Date(S.valueOf()+J):"subtract"===K&&(P=new Date(S.valueOf()-J));this.setDate(P)},adjustCalendars:function(){this.calendars[0]=C(this.calendars[0]);for(var K=1;K<this._o.numberOfMonths;K++)this.calendars[K]=C({month:this.calendars[0].month+K,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(K){isNaN(K)||(this.calendars[0].month=parseInt(K,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++; 3827this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(K){isNaN(K)||(this.calendars[0].year=parseInt(K,10),this.adjustCalendars())},setMinDate:function(K){K instanceof Date?(t(K),this._o.minDate=K,this._o.minYear=K.getFullYear(),this._o.minMonth=K.getMonth()):(this._o.minDate=y.minDate,this._o.minYear=y.minYear,this._o.minMonth=y.minMonth,this._o.startRange=y.startRange);this.draw()},setMaxDate:function(K){K instanceof Date?(t(K),this._o.maxDate= 3828K,this._o.maxYear=K.getFullYear(),this._o.maxMonth=K.getMonth()):(this._o.maxDate=y.maxDate,this._o.maxYear=y.maxYear,this._o.maxMonth=y.maxMonth,this._o.endRange=y.endRange);this.draw()},setStartRange:function(K){this._o.startRange=K},setEndRange:function(K){this._o.endRange=K},draw:function(K){if(this._v||K){var J=this._o;var P=J.minYear;var S=J.maxYear,R=J.minMonth,O=J.maxMonth;K="";this._y<=P&&(this._y=P,!isNaN(R)&&this._m<R&&(this._m=R));this._y>=S&&(this._y=S,!isNaN(O)&&this._m>O&&(this._m= 3829O));for(S=0;S<J.numberOfMonths;S++)P="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),K+='\x3cdiv class\x3d"pika-lendar"\x3e'+G(this,S,this.calendars[S].year,this.calendars[S].month,this.calendars[0].year,P)+this.render(this.calendars[S].year,this.calendars[S].month,P)+"\x3c/div\x3e";this.el.innerHTML=K;J.bound&&"hidden"!==J.field.type&&e(function(){J.trigger.focus()},1);"function"==typeof this._o.onDraw&&this._o.onDraw(this);J.bound&&J.field.setAttribute("aria-label",J.ariaLabel)}}, 3830adjustPosition:function(){var K,J,P,S,R,O,N,Q,M;if(!this._o.container){if(this.el.style.position="absolute",J=K=this._o.trigger,P=this.el.offsetWidth,S=this.el.offsetHeight,R=window.innerWidth||p.documentElement.clientWidth,O=window.innerHeight||p.documentElement.clientHeight,N=window.pageYOffset||p.body.scrollTop||p.documentElement.scrollTop,Q=!0,M=!0,"function"==typeof K.getBoundingClientRect){var T=(J=K.getBoundingClientRect()).left+window.pageXOffset;var Z=J.bottom+window.pageYOffset}else for(T= 3831J.offsetLeft,Z=J.offsetTop+J.offsetHeight;J=J.offsetParent;)T+=J.offsetLeft,Z+=J.offsetTop;(this._o.reposition&&T+P>R||-1<this._o.position.indexOf("right")&&0<T-P+K.offsetWidth)&&(T=T-P+K.offsetWidth,Q=!1);(this._o.reposition&&Z+S>O+N||-1<this._o.position.indexOf("top")&&0<Z-S-K.offsetHeight)&&(Z=Z-S-K.offsetHeight,M=!1);this.el.style.left=T+"px";this.el.style.top=Z+"px";k(this.el,Q?"left-aligned":"right-aligned");k(this.el,M?"bottom-aligned":"top-aligned");f(this.el,Q?"right-aligned":"left-aligned"); 3832f(this.el,M?"top-aligned":"bottom-aligned")}},render:function(K,J,P){var S=this._o,R=new Date,O=m(K,J),N=(new Date(K,J,1)).getDay(),Q=[],M=[];t(R);0<S.firstDay&&0>(N-=S.firstDay)&&(N+=7);for(var T=0===J?11:J-1,Z=11===J?0:J+1,L=0===J?K-1:K,U=11===J?K+1:K,V=m(L,T),Y=O+N,aa=Y;7<aa;)aa-=7;Y+=7-aa;var W,ca,ia,ba,fa;aa=!1;for(var ja=0,qa=0;ja<Y;ja++){var ha=new Date(K,J,ja-N+1),na=!!l(this._d)&&u(ha,this._d),oa=u(ha,R),ma=-1!==S.events.indexOf(ha.toDateString()),pa=ja<N||ja>=O+N,sa=ja-N+1,va=J,Aa=K,Fa= 3833S.startRange&&u(S.startRange,ha),Ea=S.endRange&&u(S.endRange,ha),za=S.startRange&&S.endRange&&S.startRange<ha&&ha<S.endRange;pa&&(ja<N?(sa=V+sa,va=T,Aa=L):(sa-=O,va=Z,Aa=U));ha={day:sa,month:va,year:Aa,hasEvent:ma,isSelected:na,isToday:oa,isDisabled:S.minDate&&ha<S.minDate||S.maxDate&&ha>S.maxDate||S.disableWeekends&&r(ha)||S.disableDayFn&&S.disableDayFn(ha),isEmpty:pa,isStartRange:Fa,isEndRange:Ea,isInRange:za,showDaysInNextAndPreviousMonths:S.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:S.enableSelectionDaysInNextAndPreviousMonths}; 3834S.pickWholeWeek&&na&&(aa=!0);M.push(E(ha));7==++qa&&(S.showWeekNumber&&M.unshift((W=ja-N,ca=J,ia=K,ba=S.firstWeekOfYearMinDays,fa=void 0,void 0,fa=new Date(ia,ca,W),'\x3ctd class\x3d"pika-week"\x3e'+(x?A(fa).isoWeek():function(ea,la){ea.setHours(0,0,0,0);var ta=ea.getDate(),ua=ea.getDay(),xa=la-1;ea.setDate(ta+xa-(ua+7-1)%7);la=new Date(ea.getFullYear(),0,la);ea=(ea.getTime()-la.getTime())/864E5;return 1+Math.round((ea-xa+(la.getDay()+7-1)%7)/7)}(fa,ba))+"\x3c/td\x3e")),Q.push(H(M,S.isRTL,S.pickWholeWeek, 3835aa)),M=[],qa=0,aa=!1)}return function(ea,la,ta){var ua,xa=[];ea.showWeekNumber&&xa.push("\x3cth\x3e\x3c/th\x3e");for(ua=0;7>ua;ua++)xa.push('\x3cth scope\x3d"col"\x3e\x3cabbr title\x3d"'+z(ea,ua)+'"\x3e'+z(ea,ua,!0)+"\x3c/abbr\x3e\x3c/th\x3e");ea="\x3cthead\x3e\x3ctr\x3e"+(ea.isRTL?xa.reverse():xa).join("")+"\x3c/tr\x3e\x3c/thead\x3e";return'\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" class\x3d"pika-table" role\x3d"grid" aria-labelledby\x3d"'+ta+'"\x3e'+ea+("\x3ctbody\x3e"+la.join("")+"\x3c/tbody\x3e\x3c/table\x3e")}(S, 3836Q,P)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),f(this.el,"is-hidden"),this._o.bound&&(c(p,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var K=this._v;!1!==K&&(this._o.bound&&d(p,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),k(this.el,"is-hidden"),this._v=!1,void 0!==K&&"function"==typeof this._o.onClose&& 3837this._o.onClose.call(this))},destroy:function(){var K=this._o;this.hide();d(this.el,"mousedown",this._onMouseDown,!0);d(this.el,"touchend",this._onMouseDown,!0);d(this.el,"change",this._onChange);K.keyboardInput&&d(p,"keydown",this._onKeyChange);K.field&&(d(K.field,"change",this._onInputChange),K.bound&&(d(K.trigger,"click",this._onInputClick),d(K.trigger,"focus",this._onInputFocus),d(K.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},I}(D)}()},function(g, 3838b,a){},function(g,b,a){function F(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k=(0,e.default)(d);if(h){var f=(0,e.default)(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments);return(0,p.default)(this,k)}}a(7);var B=a(1);b.__esModule=!0;b.EDITOR_TYPE= 3839b.DropdownEditor=void 0;a(39);a(0);var D=B(a(5)),A=B(a(6)),x=B(a(30)),q=B(a(15)),p=B(a(16)),e=B(a(14));g=a(321);a=B(a(71));b.EDITOR_TYPE="dropdown";var c=function(d){function h(){return(0,D.default)(this,h),k.apply(this,arguments)}(0,q.default)(h,d);var k=F(h);return(0,A.default)(h,[{key:"prepare",value:function(f,n,l,r,m,t){(0,x.default)((0,e.default)(h.prototype),"prepare",this).call(this,f,n,l,r,m,t);this.cellProperties.filter=!1;this.cellProperties.strict=!0}}],[{key:"EDITOR_TYPE",get:function(){return"dropdown"}}]), 3840h}(g.AutocompleteEditor);b.DropdownEditor=c;a.default.getSingleton().add("beforeValidate",function(d,h,k){d=this.getCellMeta(h,this.propToCol(k));d.editor===c&&void 0===d.strict&&(d.filter=!1,d.strict=!0)})},function(g,b,a){function F(p){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var c= 3841(0,q.default)(p);if(e){var d=(0,q.default)(this).constructor;c=Reflect.construct(c,arguments,d)}else c=c.apply(this,arguments);return(0,x.default)(this,c)}}a(0);a(7);g=a(1);b.__esModule=!0;b.NumericEditor=b.EDITOR_TYPE=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14));a=a(151);b.EDITOR_TYPE="numeric";a=function(p){function e(){return(0,B.default)(this,e),c.apply(this,arguments)}(0,A.default)(e,p);var c=F(e);return(0,D.default)(e,null,[{key:"EDITOR_TYPE",get:function(){return"numeric"}}]), 3842e}(a.TextEditor);b.NumericEditor=a},function(g,b,a){function F(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=(0,p.default)(c);if(d){var k=(0,p.default)(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);return(0,q.default)(this,h)}}a(0);a(7); 3843g=a(1);b.__esModule=!0;b.PasswordEditor=b.EDITOR_TYPE=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));g=a(151);var e=a(23);b.EDITOR_TYPE="password";a=function(c){function d(){return(0,B.default)(this,d),h.apply(this,arguments)}(0,x.default)(d,c);var h=F(d);return(0,D.default)(d,[{key:"createElements",value:function(){(0,A.default)((0,p.default)(d.prototype),"createElements",this).call(this);this.TEXTAREA=this.hot.rootDocument.createElement("input");this.TEXTAREA.setAttribute("type", 3844"password");this.TEXTAREA.setAttribute("data-hot-input","");this.TEXTAREA.className="handsontableInput";this.textareaStyle=this.TEXTAREA.style;this.textareaStyle.width=0;this.textareaStyle.height=0;(0,e.empty)(this.TEXTAREA_PARENT);this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}],[{key:"EDITOR_TYPE",get:function(){return"password"}}]),d}(g.TextEditor);b.PasswordEditor=a},function(g,b,a){b.__esModule=!0;b.SelectEditor=b.EDITOR_TYPE=void 0;g=a(885);b.EDITOR_TYPE=g.EDITOR_TYPE;b.SelectEditor=g.SelectEditor}, 3845function(g,b,a){function F(k){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n=(0,e.default)(k);if(f){var l=(0,e.default)(this).constructor;n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);return(0,p.default)(this,n)}}a(0);a(7);g=a(1);b.__esModule=!0;b.SelectEditor= 3846b.EDITOR_TYPE=void 0;var B=g(a(21)),D=g(a(5)),A=g(a(6)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=a(207),d=a(23),h=a(17);b.EDITOR_TYPE="select";a=function(k){function f(){return(0,D.default)(this,f),n.apply(this,arguments)}(0,q.default)(f,k);var n=F(f);return(0,A.default)(f,[{key:"init",value:function(){this.select=this.hot.rootDocument.createElement("SELECT");(0,d.addClass)(this.select,"htSelectEditor");this.select.style.display="none";this.hot.rootElement.appendChild(this.select);this.registerHooks()}}, 3847{key:"getValue",value:function(){return this.select.value}},{key:"setValue",value:function(l){this.select.value=l}},{key:"open",value:function(){this._opened=!0;this.refreshDimensions();this.select.style.display="";this.hot.getShortcutManager().setActiveContextName("editor");this.registerShortcuts()}},{key:"close",value:function(){this._opened=!1;this.select.style.display="none";(0,d.hasClass)(this.select,"ht_editor_visible")&&(0,d.removeClass)(this.select,"ht_editor_visible");this.unregisterShortcuts(); 3848this.clearHooks()}},{key:"focus",value:function(){this.select.focus()}},{key:"registerHooks",value:function(){var l=this;this.addHook("afterScrollHorizontally",function(){return l.refreshDimensions()});this.addHook("afterScrollVertically",function(){return l.refreshDimensions()});this.addHook("afterColumnResize",function(){return l.refreshDimensions()});this.addHook("afterRowResize",function(){return l.refreshDimensions()})}},{key:"prepare",value:function(l,r,m,t,u,w){var v=this;(0,x.default)((0,e.default)(f.prototype), 3849"prepare",this).call(this,l,r,m,t,u,w);l=this.cellProperties.selectOptions;l="function"==typeof l?this.prepareOptions(l(this.row,this.col,this.prop)):this.prepareOptions(l);(0,d.empty)(this.select);(0,h.objectEach)(l,function(C,y){var z=v.hot.rootDocument.createElement("OPTION");z.value=y;(0,d.fastInnerHTML)(z,C);v.select.appendChild(z)})}},{key:"prepareOptions",value:function(l){var r={};if(Array.isArray(l))for(var m=0,t=l.length;m<t;m++)r[l[m]]=l[m];else"object"===(0,B.default)(l)&&(r=l);return r}}, 3850{key:"refreshValue",value:function(){var l=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=l;this.setValue(l);this.refreshDimensions()}},{key:"refreshDimensions",value:function(){if(this.state===c.EDITOR_STATE.EDITING)if(this.TD=this.getEditedCell(),this.TD){var l=this.getEditedCellRect(),r=l.top,m=l.start,t=l.width,u=this.select.style;u.height="".concat(l.height,"px");u.width="".concat(t,"px");u.top="".concat(r,"px");u[this.hot.isRtl()?"right":"left"]="".concat(m,"px");u.margin= 3851"0px";(0,d.addClass)(this.select,"ht_editor_visible")}else this.close()}},{key:"registerShortcuts",value:function(){var l=this,r=this.hot.getShortcutManager().getContext("editor"),m={group:"selectEditor"};!1!==this.isInFullEditMode()&&r.addShortcuts([{keys:[["ArrowUp"]],callback:function(){var t=l.select.selectedIndex-1;0<=t&&(l.select[t].selected=!0)}},{keys:[["ArrowDown"]],callback:function(){var t=l.select.selectedIndex+1;t<=l.select.length-1&&(l.select[t].selected=!0)}}],m)}},{key:"unregisterShortcuts", 3852value:function(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup("selectEditor")}}],[{key:"EDITOR_TYPE",get:function(){return"select"}}]),f}(c.BaseEditor);b.SelectEditor=a},function(g,b,a){function F(e){var c=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var d= 3853(0,p.default)(e);if(c){var h=(0,p.default)(this).constructor;d=Reflect.construct(d,arguments,h)}else d=d.apply(this,arguments);return(0,q.default)(this,d)}}a(0);a(7);g=a(1);b.__esModule=!0;b.TimeEditor=b.EDITOR_TYPE=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));a=a(151);b.EDITOR_TYPE="time";a=function(e){function c(){return(0,B.default)(this,c),d.apply(this,arguments)}(0,x.default)(c,e);var d=F(c);return(0,D.default)(c,[{key:"prepare",value:function(h,k,f,n,l,r){(0,A.default)((0,p.default)(c.prototype), 3854"prepare",this).call(this,h,k,f,n,l,r);this.TEXTAREA.dir="ltr"}}],[{key:"EDITOR_TYPE",get:function(){return"time"}}]),c}(a.TextEditor);b.TimeEditor=a},function(g,b,a){b.__esModule=!0;b.hasRenderer=b.getRenderer=b.getRegisteredRenderers=b.getRegisteredRendererNames=void 0;b.registerAllRenderers=function(){(0,c.registerRenderer)(F.autocompleteRenderer);(0,c.registerRenderer)(B.baseRenderer);(0,c.registerRenderer)(D.checkboxRenderer);(0,c.registerRenderer)(A.htmlRenderer);(0,c.registerRenderer)(x.numericRenderer); 3855(0,c.registerRenderer)(q.passwordRenderer);(0,c.registerRenderer)(p.textRenderer);(0,c.registerRenderer)(e.timeRenderer)};var F=a(208);b.autocompleteRenderer=F.autocompleteRenderer;b.AUTOCOMPLETE_RENDERER=F.RENDERER_TYPE;var B=a(249);b.baseRenderer=B.baseRenderer;b.BASE_RENDERER=B.RENDERER_TYPE;var D=a(622);b.checkboxRenderer=D.checkboxRenderer;b.CHECKBOX_RENDERER=D.RENDERER_TYPE;var A=a(621);b.htmlRenderer=A.htmlRenderer;b.HTML_RENDERER=A.RENDERER_TYPE;var x=a(623);b.numericRenderer=x.numericRenderer; 3856b.NUMERIC_RENDERER=x.RENDERER_TYPE;var q=a(625);b.passwordRenderer=q.passwordRenderer;b.PASSWORD_RENDERER=q.RENDERER_TYPE;var p=a(152);b.textRenderer=p.textRenderer;b.TEXT_RENDERER=p.RENDERER_TYPE;var e=a(626);b.timeRenderer=e.timeRenderer;b.TIME_RENDERER=e.RENDERER_TYPE;var c=a(203);b.registerRenderer=c.registerRenderer;b.getRegisteredRendererNames=c.getRegisteredRendererNames;b.getRegisteredRenderers=c.getRegist
3856eredRenderers;b.getRenderer=c.getRenderer;b.hasRenderer=c.hasRenderer},function(g,b, 3857a){function F(q,p,e,c,d,h,k){var f=q.rootDocument,n=k.allowHtml?B.htmlRenderer:D.textRenderer,l=f.createElement("DIV");if(l.className="htAutocompleteArrow",l.appendChild(f.createTextNode(String.fromCharCode(9660))),n.apply(this,[q,p,e,c,d,h,k]),p.firstChild||p.appendChild(f.createTextNode(String.fromCharCode(160))),p.insertBefore(l,p.firstChild),(0,x.addClass)(p,"htAutocomplete"),!q.acArrowListener){var r=new A.default(q);q.acArrowListener=function(m){(0,x.hasClass)(m.target,"htAutocompleteArrow")&& 3858q.view._wt.getSetting("onCellDblClick",null,q._createCellCoords(e,c),p)};r.addEventListener(q.rootElement,"mousedown",q.acArrowListener);q.addHookOnce("afterDestroy",function(){r.destroy()})}}g=a(1);b.__esModule=!0;b.RENDERER_TYPE=void 0;b.autocompleteRenderer=F;var B=a(621),D=a(152),A=g(a(60)),x=a(23);a(890);b.RENDERER_TYPE="autocomplete";F.RENDERER_TYPE="autocomplete"},function(g,b,a){function F(A,x,q,p,e,c,d){B.baseRenderer.apply(this,[A,x,q,p,e,c,d]);(0,D.fastInnerHTML)(x,null==c?"":c,!1)}b.__esModule= 3859!0;b.RENDERER_TYPE=void 0;b.htmlRenderer=F;var B=a(249),D=a(23);b.RENDERER_TYPE="html";F.RENDERER_TYPE="html"},function(g,b,a){},function(g,b,a){function F(d,h,k,f,n,l,r){function m(){var E=0<arguments.length&&void 0!==arguments[0]&&arguments[0],H=d.getSelectedRange();if(H)for(var G=0;G<H.length;G++){var I=H[G].getTopStartCorner(),K=I.row;I=I.col;var J=H[G].getBottomEndCorner(),P=J.row;J=J.col;for(var S=[];K<=P;K+=1)for(var R=I;R<=J;R+=1){var O=d.getCellMeta(K,R);if("checkbox"!==O.type)return;if(!0!== 3860O.readOnly){void 0===O.checkedTemplate&&(O.checkedTemplate=!0);void 0===O.uncheckedTemplate&&(O.uncheckedTemplate=!1);var N=d.getDataAtCell(K,R);!1===E?[O.checkedTemplate,O.checkedTemplate.toString()].includes(N)?S.push([K,R,O.uncheckedTemplate]):[O.uncheckedTemplate,O.uncheckedTemplate.toString(),null,void 0].includes(N)&&S.push([K,R,O.checkedTemplate]):S.push([K,R,O.uncheckedTemplate])}}0<S.length&&d.setDataAtCell(S)}}function t(){var E=d.getSelectedRange();if(E){for(var H=0;H<E.length;H++)for(var G= 3861E[H].getTopStartCorner(),I=E[H].getBottomEndCorner(),K=G.row;K<=I.row;K++)for(var J=G.col;J<=I.col;J++){var P=d.getCellMeta(K,J);if("checkbox"!==P.type)return!1;var S=d.getCell(K,J);if(null==S||0<S.querySelectorAll("input[type\x3dcheckbox]").length&&!P.readOnly)return!0}return!1}}var u=d.rootDocument;D.baseRenderer.apply(this,[d,h,k,f,n,l,r]);(function(E){var H=c.get(E);if(!H){var G=E.rootElement;(H=new A.default(E)).addEventListener(G,"click",function(I){var K=I.target;if(B(K)&&K.hasAttribute("data-row")&& 3862K.hasAttribute("data-col")){var J=parseInt(K.getAttribute("data-row"),10);K=parseInt(K.getAttribute("data-col"),10);E.getCellMeta(J,K).readOnly&&I.preventDefault()}});H.addEventListener(G,"mouseup",function(I){I=I.target;B(I)&&I.hasAttribute("data-row")&&I.hasAttribute("data-col")&&setTimeout(E.listen,10)});H.addEventListener(G,"change",function(I){var K=I.target;if(B(K)&&K.hasAttribute("data-row")&&K.hasAttribute("data-col")){var J=parseInt(K.getAttribute("data-row"),10);K=parseInt(K.getAttribute("data-col"), 386310);var P=E.getCellMeta(J,K);P.readOnly||E.setDataAtCell(J,K,I.target.checked?void 0===P.uncheckedTemplate||P.checkedTemplate:void 0!==P.uncheckedTemplate&&P.uncheckedTemplate)}});c.set(E,H)}})(d);var w,v,C=function(E){E=E.createElement("input");return E.className="htCheckboxRendererInput",E.type="checkbox",E.setAttribute("autocomplete","off"),E.setAttribute("tabindex","-1"),E.cloneNode(!1)}(u),y=r.label,z=!1;if(void 0===r.checkedTemplate&&(r.checkedTemplate=!0),void 0===r.uncheckedTemplate&&(r.uncheckedTemplate= 3864!1),(0,x.empty)(h),l===r.checkedTemplate||(0,q.stringify)(l).toLocaleLowerCase(r.locale)===(0,q.stringify)(r.checkedTemplate).toLocaleLowerCase(r.locale)?C.checked=!0:l===r.uncheckedTemplate||(0,q.stringify)(l).toLocaleLowerCase(r.locale)===(0,q.stringify)(r.uncheckedTemplate).toLocaleLowerCase(r.locale)?C.checked=!1:(0,q.isEmpty)(l)?(0,x.addClass)(C,"noValue"):(C.style.display="none",(0,x.addClass)(C,"htBadValue"),z=!0),C.setAttribute("data-row",k),C.setAttribute("data-col",f),!z&&y)r="",y.value? 3865r="function"==typeof y.value?y.value.call(this,k,f,n,l):y.value:y.property&&(k=d.getDataAtRowProp(k,y.property),r=null!==k?k:""),k=function(E,H,G){var I=E.createElement("label");return I.className="htCheckboxRendererLabel ".concat(G?"fullWidth":""),I.appendChild(E.createTextNode(H)),I.cloneNode(!0)}(u,r,!0!==y.separated),"before"===y.position?y.separated?(h.appendChild(k),h.appendChild(C)):(k.appendChild(C),C=k):y.position&&"after"!==y.position||(y.separated?(h.appendChild(C),h.appendChild(k)):(k.insertBefore(C, 3866k.firstChild),C=k));(!y||y&&!y.separated)&&h.appendChild(C);z&&h.appendChild(u.createTextNode("#bad-value#"));e.has(d)||(e.set(d,!0),w=d.getShortcutManager().getContext("grid"),v={group:"checkboxRenderer"},w.addShortcuts([{keys:[["space"]],callback:function(){return m(),!t()}},{keys:[["enter"]],callback:function(){return m(),!t()},runOnlyIf:function(){return d.getSettings().enterBeginsEditing}},{keys:[["delete"],["backspace"]],callback:function(){return m(!0),!t()},relativeToGroup:p.SHORTCUTS_GROUP_EDITOR, 3867position:"before"}],v))}function B(d){return"INPUT"===d.tagName&&"checkbox"===d.getAttribute("type")}g=a(1);b.__esModule=!0;b.RENDERER_TYPE=void 0;b.checkboxRenderer=F;a(3);a(0);a(2);a(11);a(4);a(42);a(49);a(69);a(77);var D=a(249),A=g(a(60)),x=a(23),q=a(31),p=a(202);a(892);a=g(a(71));var e=new WeakMap,c=new WeakMap;b.RENDERER_TYPE="checkbox";a.default.getSingleton().add("modifyAutoColumnSizeSeed",function(d,h,k){var f=h.label,n=h.row,l=h.column,r=h.prop;if("checkbox"===h.type)return f&&(d=f.value, 3868f=f.property,h=k,d?h="function"==typeof d?d(n,l,r,k):d:f&&(n=this.getDataAtRowProp(n,f),h=null!==n?n:k),d=h),d});F.RENDERER_TYPE="checkbox"},function(g,b,a){},function(g,b,a){function F(x,q,p,e,c,d,h){if((0,A.isNumeric)(d)){var k=h.numericFormat,f=k&&k.culture||"-";k=k&&k.pattern;var n=h.className||"";n=n.length?n.split(" "):[];if(void 0!==f&&!B.default.languages()[f]){var l=f.replace("-","");(l=B.default.allLanguages?B.default.allLanguages[f]:B.default[l])&&B.default.registerLanguage(l)}B.default.setLanguage(f); 3869d=(0,B.default)(d).format(k||"0");0>n.indexOf("htLeft")&&0>n.indexOf("htCenter")&&0>n.indexOf("htRight")&&0>n.indexOf("htJustify")&&n.push("htRight");0>n.indexOf("htNumeric")&&n.push("htNumeric");h.className=n.join(" ");q.dir="ltr"}(0,D.textRenderer)(x,q,p,e,c,d,h)}g=a(1);b.__esModule=!0;b.RENDERER_TYPE=void 0;b.numericRenderer=F;a(12);a(64);a(67);a(33);a(76);var B=g(a(624)),D=a(152),A=a(47);b.RENDERER_TYPE="numeric";F.RENDERER_TYPE="numeric"},function(g,b,a){function F(x,q,p,e,c,d,h){B.textRenderer.apply(this, 3870[x,q,p,e,c,d,h]);var k=h.hashSymbol||"*",f="";(0,A.rangeEach)((h.hashLength||q.innerHTML.length)-1,function(){f+=k});(0,D.fastInnerHTML)(q,f)}
3870b.__esModule=!0;b.RENDERER_TYPE=void 0;b.passwordRenderer=F;var B=a(152),D=a(23),A=a(47);b.RENDERER_TYPE="password";F.RENDERER_TYPE="password"},function(g,b,a){function F(D,A,x,q,p,e,c){B.textRenderer.apply(this,[D,A,x,q,p,e,c]);A.dir="ltr"}b.__esModule=!0;b.RENDERER_TYPE=void 0;b.timeRenderer=F;var B=a(152);b.RENDERER_TYPE="time";F.RENDERER_TYPE="time"},function(g, 3871b,a){b.__esModule=!0;b.hasValidator=b.getValidator=b.getRegisteredValidators=b.getRegisteredValidatorNames=void 0;b.registerAllValidators=function(){(0,x.registerValidator)(F.autocompleteValidator);(0,x.registerValidator)(B.dateValidator);(0,x.registerValidator)(D.numericValidator);(0,x.registerValidator)(A.timeValidator)};var F=a(324);b.autocompleteValidator=F.autocompleteValidator;b.AUTOCOMPLETE_VALIDATOR=F.VALIDATOR_TYPE;var B=a(627);b.dateValidator=B.dateValidator;b.DATE_VALIDATOR=B.VALIDATOR_TYPE; 3872var D=a(630);b.numericValidator=D.numericValidator;b.NUMERIC_VALIDATOR=D.VALIDATOR_TYPE;var A=a(631);b.timeValidator=A.timeValidator;b.TIME_VALIDATOR=A.VALIDATOR_TYPE;var x=a(204);b.registerValidator=x.registerValidator;b.getRegisteredValidatorNames=x.getRegisteredValidatorNames;b.getRegisteredValidators=x.getRegisteredValidators;b.getValidator=x.getValidator;b.hasValidator=x.hasValidator},function(g,b,a){function F(D,A){null==D&&(D="");this.allowEmpty&&""===D?A(!0):this.strict&&this.source?"function"== 3873typeof this.source?this.source(D,B(D,A)):B(D,A)(this.source):A(!0)}function B(D,A){return function(x){for(var q=!1,p=0,e=x.length;p<e;p++)if(D===x[p]){q=!0;break}A(q)}}b.__esModule=!0;b.VALIDATOR_TYPE=void 0;b.autocompleteValidator=F;b.VALIDATOR_TYPE="autocomplete";F.VALIDATOR_TYPE="autocomplete"},function(g,b,a){function F(p,e){var c=(0,A.getEditorInstance)(x.EDITOR_TYPE,this.instance),d=!0;null==p&&(p="");c=(0,D.default)(p,this.dateFormat||c.defaultDateFormat,!0).isValid();var h=(0,D.default)(new Date(p)).isValid()|| 3874c;if(this.allowEmpty&&""===p&&(h=!0,c=!0),h||(d=!1),!h&&c&&(d=!0),h&&!c)!0===this.correctFormat?(p=B(p,this.dateFormat),d=this.instance.toVisualRow(this.row),c=this.instance.toVisualColumn(this.col),this.instance.setDataAtCell(d,c,p,"dateValidator"),d=!0):d=!1;e(d)}function B(p,e){var c=(0,D.default)((0,q.getNormalizedDate)(p)),d=(0,D.default)(p,e);p=-1<p.search(/[A-z]/g);return(c.isValid()&&c.format("x")===d.format("x")||!d.isValid()||p?c:d).format(e)}g=a(1);b.__esModule=!0;b.VALIDATOR_TYPE=void 0; 3875b.correctFormat=B;b.dateValidator=F;a(12);a(628);var D=g(a(108)),A=a(166),x=a(323),q=a(629);b.VALIDATOR_TYPE="date";F.VALIDATOR_TYPE="date"},function(g,b){g.exports=Object.is||function(a,F){return a===F?0!==a||1/a==1/F:a!=a&&F!=F}},function(g,b,a){function F(D,A){var x=D;null==x&&(x="");this.allowEmpty&&""===x?A(!0):A(""!==x&&(0,B.isNumeric)(D))}b.__esModule=!0;b.VALIDATOR_TYPE=void 0;b.numericValidator=F;var B=a(47);b.VALIDATOR_TYPE="numeric";F.VALIDATOR_TYPE="numeric"},function(g,b,a){function F(A, 3876x){var q=this.timeFormat||"h:mm:ss a",p=!0;null===A&&(A="");A=/^\d{3,}$/.test(A)?parseInt(A,10):A;var e=/^\d{1,2}$/.test(A);e&&(A+=":00");var c=(0,B.default)(A,D,!0).isValid()?(0,B.default)(A):(0,B.default)(A,q),d=c.isValid();e=(0,B.default)(A,q,!0).isValid()&&!e;if(this.allowEmpty&&""===A&&(d=!0,e=!0),d||(p=!1),!d&&e&&(p=!0),d&&!e)!0===this.correctFormat?(q=c.format(q),p=this.instance.toVisualRow(this.row),A=this.instance.toVisualColumn(this.col),this.instance.setDataAtCell(p,A,q,"timeValidator"), 3877p=!0):p=!1;x(p)}g=a(1);b.__esModule=!0;b.VALIDATOR_TYPE=void 0;b.timeValidator=F;a(12);var B=g(a(108)),D=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];b.VALIDATOR_TYPE="time";F.VALIDATOR_TYPE="time"},function(g,b,a){b.__esModule=!0;b.hasCellType=b.getRegisteredCellTypes=b.getRegisteredCellTypeNames=b.getCellType=void 0;b.registerAllCellTypes=function(){(0,d.registerCellType)(F.AutocompleteCellType);(0,d.registerCellType)(B.CheckboxCellType);(0,d.registerCellType)(D.DateCellType);(0,d.registerCellType)(A.DropdownCellType); 3878(0,d.registerCellType)(x.HandsontableCellType);(0,d.registerCellType)(q.NumericCellType);(0,d.registerCellType)(p.PasswordCellType);(0,d.registerCellType)(e.TextCellType);(0,d.registerCellType)(c.TimeCellType)};var F=a(903);b.AutocompleteCellType=F.AutocompleteCellType;b.AUTOCOMPLETE_TYPE=F.CELL_TYPE;var B=a(905);b.CheckboxCellType=B.CheckboxCellType;b.CHECKBOX_TYPE=B.CELL_TYPE;var D=a(907);b.DateCellType=D.DateCellType;
3878b.DATE_TYPE=D.CELL_TYPE;var A=a(909);b.DropdownCellType=A.DropdownCellType;b.DROPDOWN_TYPE= 3879A.CELL_TYPE;var x=a(911);b.HandsontableCellType=x.HandsontableCellType;b.HANDSONTABLE_TYPE=x.CELL_TYPE;var q=a(913);b.NumericCellType=q.NumericCellType;b.NUMERIC_TYPE=q.CELL_TYPE;var p=a(915);b.PasswordCellType=p.PasswordCellType;b.PASSWORD_TYPE=p.CELL_TYPE;var e=a(614);b.TextCellType=e.TextCellType;b.TEXT_TYPE=e.CELL_TYPE;var c=a(917);b.TimeCellType=c.TimeCellType;b.TIME_TYPE=c.CELL_TYPE;var d=a(171);b.registerCellType=d.registerCellType;b.getCellType=d.getCellType;b.getRegisteredCellTypeNames=d.getRegisteredCellTypeNames; 3880b.getRegisteredCellTypes=d.getRegisteredCellTypes;b.hasCellType=d.hasCellType},function(g,b,a){b.__esModule=!0;b.CELL_TYPE=b.AutocompleteCellType=void 0;g=a(904);b.AutocompleteCellType=g.AutocompleteCellType;b.CELL_TYPE=g.CELL_TYPE},function(g,b,a){b.__esModule=!0;b.CELL_TYPE=b.AutocompleteCellType=void 0;g=a(321);var F=a(208);a=a(324);b.CELL_TYPE="autocomplete";b.AutocompleteCellType={CELL_TYPE:"autocomplete",editor:g.AutocompleteEditor,renderer:F.autocompleteRenderer,validator:a.autocompleteValidator}}, 3881function(g,b,a){b.__esModule=!0;b.CheckboxCellType=b.CELL_TYPE=void 0;g=a(906);b.CELL_TYPE=g.CELL_TYPE;b.CheckboxCellType=g.CheckboxCellType},function(g,b,a){b.__esModule=!0;b.CheckboxCellType=b.CELL_TYPE=void 0;g=a(616);a=a(622);b.CELL_TYPE="checkbox";b.CheckboxCellType={CELL_TYPE:"checkbox",editor:g.CheckboxEditor,renderer:a.checkboxRenderer}},function(g,b,a){b.__esModule=!0;b.DateCellType=b.CELL_TYPE=void 0;g=a(908);b.CELL_TYPE=g.CELL_TYPE;b.DateCellType=g.DateCellType},function(g,b,a){b.__esModule= 3882!0;b.DateCellType=b.CELL_TYPE=void 0;g=a(323);var F=a(208);a=a(627);b.CELL_TYPE="date";b.DateCellType={CELL_TYPE:"date",editor:g.DateEditor,renderer:F.autocompleteRenderer,validator:a.dateValidator}},function(g,b,a){b.__esModule=!0;b.DropdownCellType=b.CELL_TYPE=void 0;g=a(910);b.CELL_TYPE=g.CELL_TYPE;b.DropdownCellType=g.DropdownCellType},function(g,b,a){b.__esModule=!0;b.DropdownCellType=b.CELL_TYPE=void 0;g=a(617);var F=a(208);a=a(324);b.CELL_TYPE="dropdown";b.DropdownCellType={CELL_TYPE:"dropdown", 3883editor:g.DropdownEditor,renderer:F.autocompleteRenderer,validator:a.autocompleteValidator}},function(g,b,a){b.__esModule=!0;b.HandsontableCellType=b.CELL_TYPE=void 0;g=a(912);b.CELL_TYPE=g.CELL_TYPE;b.HandsontableCellType=g.HandsontableCellType},function(g,b,a){b.__esModule=!0;b.HandsontableCellType=b.CELL_TYPE=void 0;g=a(322);a=a(208);b.CELL_TYPE="handsontable";b.HandsontableCellType={CELL_TYPE:"handsontable",editor:g.HandsontableEditor,renderer:a.autocompleteRenderer}},function(g,b,a){b.__esModule= 3884!0;b.NumericCellType=b.CELL_TYPE=void 0;g=a(914);b.CELL_TYPE=g.CELL_TYPE;b.NumericCellType=g.NumericCellType},function(g,b,a){b.__esModule=!0;b.NumericCellType=b.CELL_TYPE=void 0;g=a(618);var F=a(623);a=a(630);b.CELL_TYPE="numeric";b.NumericCellType={CELL_TYPE:"numeric",editor:g.NumericEditor,renderer:F.numericRenderer,validator:a.numericValidator,dataType:"number"}},function(g,b,a){b.__esModule=!0;b.PasswordCellType=b.CELL_TYPE=void 0;g=a(916);b.CELL_TYPE=g.CELL_TYPE;b.PasswordCellType=g.PasswordCellType}, 3885function(g,b,a){b.__esModule=!0;b.PasswordCellType=b.CELL_TYPE=void 0;g=a(619);a=a(625);b.CELL_TYPE="password";b.PasswordCellType={CELL_TYPE:"password",editor:g.PasswordEditor,renderer:a.passwordRenderer,copyable:!1}},function(g,b,a){b.__esModule=!0;b.TimeCellType=b.CELL_TYPE=void 0;g=a(918);b.CELL_TYPE=g.CELL_TYPE;b.TimeCellType=g.TimeCellType},function(g,b,a){b.__esModule=!0;b.TimeCellType=b.CELL_TYPE=void 0;g=a(620);var F=a(626);a=a(631);b.CELL_TYPE="time";b.TimeCellType={CELL_TYPE:"time",editor:g.TimeEditor, 3886renderer:F.timeRenderer,validator:a.timeValidator}},function(g,b,a){b.__esModule=!0;b.getPluginsNames=b.getPlugin=void 0;b.registerAllPlugins=function(){(0,O.registerPlugin)(F.AutoColumnSize);(0,O.registerPlugin)(B.Autofill);(0,O.registerPlugin)(D.AutoRowSize);(0,O.registerPlugin)(A.BindRowsWithHeaders);(0,O.registerPlugin)(x.CollapsibleColumns);(0,O.registerPlugin)(q.ColumnSorting);(0,O.registerPlugin)(p.ColumnSummary);(0,O.registerPlugin)(e.Comments);(0,O.registerPlugin)(c.ContextMenu);(0,O.registerPlugin)(d.CopyPaste); 3887(0,O.registerPlugin)(h.CustomBorders);(0,O.registerPlugin)(k.DragToScroll);(0,O.registerPlugin)(f.DropdownMenu);(0,O.registerPlugin)(n.ExportFile);(0,O.registerPlugin)(l.Filters);(0,O.registerPlugin)(r.Formulas);(0,O.registerPlugin)(m.HiddenColumns);(0,O.registerPlugin)(t.HiddenRows);(0,O.registerPlugin)(u.ManualColumnFreeze);(0,O.registerPlugin)(w.ManualColumnMove);(0,O.registerPlugin)(v.ManualColumnResize);(0,O.registerPlugin)(C.ManualRowMove);(0,O.registerPlugin)(y.ManualRowResize);(0,O.registerPlugin)(z.MergeCells); 3888(0,O.registerPlugin)(E.MultiColumnSorting);(0,O.registerPlugin)(H.MultipleSelectionHandles);(0,O.registerPlugin)(G.NestedHeaders);(0,O.registerPlugin)(I.NestedRows);(0,O.registerPlugin)(K.PersistentState);(0,O.registerPlugin)(J.Search);(0,O.registerPlugin)(P.TouchScroll);(0,O.registerPlugin)(S.TrimRows);(0,O.registerPlugin)(R.UndoRedo)};var F=a(920);b.AutoColumnSize=F.AutoColumnSize;var B=a(924);b.Autofill=B.Autofill;var D=a(927);b.AutoRowSize=D.AutoRowSize;g=a(50);b.BasePlugin=g.BasePlugin;var A= 3889a(929);b.BindRowsWithHeaders=A.BindRowsWithHeaders;var x=a(933);b.CollapsibleColumns=x.CollapsibleColumns;var q=a(634);b.ColumnSorting=q.ColumnSorting;var p=a(945);b.ColumnSummary=p.ColumnSummary;var e=a(948);b.Comments=e.Comments;var c=a(953);b.ContextMenu=c.ContextMenu;var d=a(969);b.CopyPaste=d.CopyPaste;var h=a(977);b.CustomBorders=h.CustomBorders;var k=a(985);b.DragToScroll=k.DragToScroll;var f=a(987);b.DropdownMenu=f.DropdownMenu;var n=a(990);b.ExportFile=n.ExportFile;var l=a(996);b.Filters= 3890l.Filters;var r=a(1028);b.Formulas=r.Formulas;var m=a(1031);b.HiddenColumns=m.HiddenColumns;var t=a(1036);b.HiddenRows=t.HiddenRows;var u=a(1041);b.ManualColumnFreeze=u.ManualColumnFreeze;var w=a(1046);b.ManualColumnMove=w.ManualColumnMove;var v=a(1051);b.ManualColumnResize=v.ManualColumnResize;var C=a(1053);b.ManualRowMove=C.ManualRowMove;var y=a(1058);b.ManualRowResize=y.ManualRowResize;var z=a(1060);b.MergeCells=z.MergeCells;var E=a(1067);b.MultiColumnSorting=E.MultiColumnSorting;var H=a(1073); 3891b.MultipleSelectionHandles=H.MultipleSelectionHandles;var G=a(1075);b.NestedHeaders=G.NestedHeaders;var I=a(1088);b.NestedRows=I.NestedRows;var K=a(1095);b.PersistentState=K.PersistentState;var J=a(1098);b.Search=J.Search;var P=a(1100);b.TouchScroll=P.TouchScroll;var S=a(1102);b.TrimRows=S.TrimRows;var R=a(1104);b.UndoRedo=R.UndoRedo;var O=a(243);b.registerPlugin=O.registerPlugin;b.getPlugin=O.getPlugin;b.getPluginsNames=O.getPluginsNames},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY= 3892b.AutoColumnSize=void 0;g=a(921);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.AutoColumnSize=g.AutoColumnSize},function(g,b,a){function F(y){var z=function(){if("undefined"==typeof Reflect||!Reflect.construct||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 E=(0,c.default)(y);if(z){var H=(0,c.default)(this).constructor;E=Reflect.construct(E, 3893arguments,H)}else E=E.apply(this,arguments);return(0,e.default)(this,E)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.AutoColumnSize=void 0;var B=g(a(34)),D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(30)),p=g(a(15)),e=g(a(16)),c=g(a(14));a(3);a(0);a(2);a(11);a(4);a(13);a(77);a(22);a(54);var d=a(50),h=a(20),k=a(134),f=g(a(325)),n=g(a(71)),l=a(17),r=a(47),m=g(a(633)),t=a(97),u=a(167),w=a(84),v=a(31);n.default.getSingleton().register("modifyAutoColumnSizeSeed");b.PLUGIN_KEY="autoColumnSize"; 3894b.PLUGIN_PRIORITY=10;var C=new WeakMap;a=function(y){function z(H){var G;return(0,D.default)(this,z),G=E.call(this,H),C.set((0,x.default)(G),{cachedColumnHeaders:[]}
3894),G.ghostTable=new f.default(G.hot),G.samplesGenerator=new m.default(function(I,K){var J=G.hot.getCellMeta(I,K),P="";J.spanned||(P=G.hot.getDataAtCell(I,K));I="";return G.hot.hasHook("modifyAutoColumnSizeSeed")&&(I=G.hot.runHooks("modifyAutoColumnSizeSeed",I,J,P)),{value:P,bundleSeed:I}}),G.firstCalculation=!0,G.inProgress=!1,G.measuredColumns= 38950,G.columnWidthsMap=new w.PhysicalIndexToValueMap,G.hot.columnIndexMapper.registerMap("autoColumnSize",G.columnWidthsMap),G.addHook("beforeColumnResize",function(I,K,J){return G.onBeforeColumnResize(I,K,J)}),G}(0,p.default)(z,y);var E=F(z);return(0,A.default)(z,[{key:"isEnabled",value:function(){return!1!==this.hot.getSettings().autoColumnSize&&!this.hot.getSettings().colWidths}},{key:"enablePlugin",value:function(){var H=this;if(!this.enabled){var G=this.hot.getSettings().autoColumnSize;G&&null!== 3896G.useHeaders&&void 0!==G.useHeaders&&this.ghostTable.setSetting("useHeaders",G.useHeaders);this.setSamplingOptions();this.addHook("afterLoadData",function(){return H.onAfterLoadData.apply(H,arguments)});this.addHook("beforeChangeRender",function(I){return H.onBeforeChange(I)});this.addHook("afterFormulasValuesUpdate",function(I){return H.onAfterFormulasValuesUpdate(I)});this.addHook("beforeViewRender",function(I){return H.onBeforeViewRender(I)});this.addHook("modifyColWidth",function(I,K){return H.getColumnWidth(K, 3897I)});this.addHook("afterInit",function(){return H.onAfterInit()});(0,q.default)((0,c.default)(z.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){var H=this.findColumnsWhereHeaderWasChanged();H.length&&(this.clearCache(H),this.calculateVisibleColumnsWidth());(0,q.default)((0,c.default)(z.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){var H=this;(0,q.default)((0,c.default)(z.prototype),"disablePlugin",this).call(this);this.addHook("beforeColumnResize", 3898function(G,I,K){return H.onBeforeColumnResize(G,I,K)})}},{key:"calculateVisibleColumnsWidth",value:function(){if(this.hot.countRows()){var H=this.hot.renderCall,G=this.getFirstVisibleColumn(),I=this.getLastVisibleColumn();-1!==G&&-1!==I&&this.calculateColumnsWidth({from:G,to:I},void 0,H)}}},{key:"calculateColumnsWidth",value:function(){var H=this,G=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},I=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{from:0, 3899to:this.hot.countRows()-1},K=2<arguments.length&&void 0!==arguments[2]&&arguments[2];G="number"==typeof G?{from:G,to:G}:G;var J="number"==typeof I?{from:I,to:I}:I;(0,r.rangeEach)(G.from,G.to,function(P){var S=H.hot.toPhysicalColumn(P);if(null===S&&(S=P),K||null===H.columnWidthsMap.getValueAtIndex(S)&&!H.hot._getColWidthFromSettings(S))P=H.samplesGenerator.generateColumnSamples(P,J),(0,h.arrayEach)(P,function(R){R=(0,B.default)(R,2);return H.ghostTable.addColumn(R[0],R[1])})});this.ghostTable.columns.length&& 3900(this.hot.batchExecution(function(){H.ghostTable.getWidths(function(P,S){P=H.hot.toPhysicalColumn(P);H.columnWidthsMap.setValueAtIndex(P,S)})},!0),this.measuredColumns=G.to+1,this.ghostTable.clean())}},{key:"calculateAllColumnsWidth",value:function(){var H=this,G=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},I=0,K=this.hot.countCols()-1,J=null;this.inProgress=!0;var P=function O(){if(!H.hot)return(0,k.cancelAnimationFrame)(J),void(H.inProgress=!1);H.calculateColumnsWidth({from:I, 3901to:Math.min(I+z.CALCULATION_STEP,K)},G);(I=I+z.CALCULATION_STEP+1)<K?J=(0,k.requestAnimationFrame)(O):((0,k.cancelAnimationFrame)(J),H.inProgress=!1,H.hot.view.adjustElementsSize())},S=this.getSyncCalculationLimit();this.firstCalculation&&0<=S&&(this.calculateColumnsWidth({from:0,to:S},G),this.firstCalculation=!1,I=S+1);I<K?P():this.inProgress=!1}},{key:"setSamplingOptions",value:function(){var H=this.hot.getSettings().autoColumnSize,G=H&&(0,l.hasOwnProperty)(H,"samplingRatio")?H.samplingRatio:void 0; 3902H=H&&(0,l.hasOwnProperty)(H,"allowSampleDuplicates")?H.allowSampleDuplicates:void 0;G&&!isNaN(G)&&this.samplesGenerator.setSampleCount(parseInt(G,10));H&&this.samplesGenerator.setAllowDuplicates(H)}},{key:"recalculateAllColumnsWidth",value:function(){this.hot.view&&this.hot.view._wt.wtTable.isVisible()&&(this.clearCache(),this.calculateAllColumnsWidth())}},{key:"getSyncCalculationLimit",value:function(){var H=this.hot.getSettings().autoColumnSize,G=z.SYNC_CALCULATION_LIMIT,I=this.hot.countCols()- 39031;return(0,l.isObject)(H)&&(G=H.syncLimit,(0,t.isPercentValue)(G)?G=(0,r.valueAccordingPercent)(I,G):G>>=0),Math.min(G,I)}},{key:"getColumnWidth",value:function(H){var G=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],I=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0;return void 0===I&&(I=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(H)),G&&"number"==typeof I&&(I=Math.max(I,u.ViewportColumnsCalculator.DEFAULT_WIDTH))),I}},{key:"getFirstVisibleColumn",value:function(){var H= 3904this.hot.view._wt;if(H.wtViewport.columnsVisibleCalculator){var G=H.wtTable.getFirstVisibleColumn();if(-1!==G)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(G)}return H.wtViewport.columnsRenderCalculator&&(H=H.wtTable.getFirstRenderedColumn(),-1!==H)?this.hot.columnIndexMapper.getVisualFromRenderableIndex(H):-1}},{key:"getLastVisibleColumn",value:function(){var H=this.hot.view._wt;if(H.wtViewport.columnsVisibleCalculator){var G=H.wtTable.getLastVisibleColumn();if(-1!==G)return this.hot.columnIndexMapper.getVisualFromRenderableIndex(G)}return H.wtViewport.columnsRenderCalculator&& 3905(H=H.wtTable.getLastRenderedColumn(),-1!==H)?this.hot.columnIndexMapper.getVisualFromRenderableIndex(H):-1}},{key:"findColumnsWhereHeaderWasChanged",value:function(){var H=this.hot.getColHeader(),G=C.get(this).cachedColumnHeaders;return(0,h.arrayReduce)(H,function(I,K,J){var P=G.length;
3905return(P-1<J||G[J]!==K)&&I.push(J),P-1<J?G.push(K):G[J]=K,I},[])}},{key:"clearCache",value:function(){var H=this,G=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];G.length?this.hot.batchExecution(function(){(0,h.arrayEach)(G, 3906function(I){H.columnWidthsMap.setValueAtIndex(I,null)})},!0):this.columnWidthsMap.clear()}},{key:"isNeedRecalculate",value:function(){return!!(0,h.arrayFilter)(this.columnWidthsMap.getValues().slice(0,this.measuredColumns),function(H){return null===H}).length}},{key:"onBeforeViewRender",value:function(){this.calculateVisibleColumnsWidth();this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth()}},{key:"onAfterLoadData",value:function(){var H=this;this.hot.view?this.recalculateAllColumnsWidth(): 3907setTimeout(function(){H.hot&&H.recalculateAllColumnsWidth()},0)}},{key:"onBeforeChange",value:function(H){var G=this;H=(0,h.arrayMap)(H,function(I){I=(0,B.default)(I,2)[1];return G.hot.toPhysicalColumn(G.hot.propToCol(I))});this.clearCache(Array.from(new Set(H)))}},{key:"onBeforeColumnResize",value:function(H,G,I){return I&&(this.calculateColumnsWidth(G,void 0,!0),H=this.getColumnWidth(G,void 0,!1)),H}},{key:"onAfterInit",value:function(){C.get(this).cachedColumnHeaders=this.hot.getColHeader()}}, 3908{key:"onAfterFormulasValuesUpdate",value:function(H){H=(0,h.arrayFilter)(H,function(G){var I;return(0,v.isDefined)(null===(I=G.address)||void 0===I?void 0:I.col)});H=(0,h.arrayMap)(H,function(G){return G.address.col});this.clearCache(Array.from(new Set(H)))}},{key:"destroy",value:function(){this.ghostTable.clean();(0,q.default)((0,c.default)(z.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"autoColumnSize"}},{key:"PLUGIN_PRIORITY",get:function(){return 10}},{key:"SETTING_KEYS", 3909get:function(){return!0}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 50}}]),z}(d.BasePlugin);b.AutoColumnSize=a},function(g,b,a){function F(r,m){if(m.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;m.add(r)}function B(r){if(!r)return!1;var m=this.constructor.SETTING_KEYS;if("boolean"==typeof m)return m;for(var t=0;t<m.length;t++)if(void 0!==r[m[t]])return!0;return!1}g=a(1);b.__esModule=!0;b.PLUGIN_KEY= 3910b.BasePlugin=void 0;var D=g(a(34)),A=g(a(5)),x=g(a(6));a(3);a(32);a(0);a(2);a(4);a(11);a(27);a(12);a(64);a(18);a(76);a(33);a(55);a(632);var q=a(17),p=a(20),e=a(243);g=a(171);var c=a(166),d=a(203);a=a(204);var h=new Map([["plugin",e.hasPlugin],["cell-type",g.hasCellType],["editor",c.hasEditor],["renderer",d.hasRenderer],["validator",a.hasValidator]]);b.PLUGIN_KEY="base";var k=new WeakMap,f=[],n=null,l=new WeakSet;a=function(){function r(m){var t=this;(0,A.default)(this,r);F(this,l);(0,q.defineGetter)(this, 3911"hot",m,{writable:!1});k.set(this,{hooks:{}});this.pluginName=n=null;this.pluginsInitializedCallbacks=[];this.initialized=this.enabled=this.isPluginsReady=!1;this.hot.addHook("afterPluginsInitialized",function(){return t.onAfterPluginsInitialized()});this.hot.addHook("afterUpdateSettings",function(u){return t.onUpdateSettings(u)});this.hot.addHook("beforeInit",function(){return t.init()})}return(0,x.default)(r,[{key:"init",value:function(){var m=this;this.pluginName=this.hot.getPluginName(this);var t= 3912this.constructor.PLUGIN_DEPS;t=Array.isArray(t)?t:[];if(0<t.length){var u=[];if(t.forEach(function(w){w=w.split(":");var v=(0,D.default)(w,2);w=v[0];v=v[1];if(!h.has(w))throw Error('Unknown plugin dependency type "'.concat(w,'" was found.'));h.get(w)(v)||u.push(" - ".concat(v," (").concat(w,")"))}),0<u.length)t=["The ".concat(this.pluginName," plugin requires the following modules:\n"),"".concat(u.join("\n"),"\n")].join(""),f.push(t)}if(n||(n=(0,e.getPluginsNames)()),0<=n.indexOf("UndoRedo")&&n.splice(n.indexOf("UndoRedo"), 39131),0<=n.indexOf(this.pluginName)&&n.splice(n.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",function(){m.isEnabled&&m.isEnabled()&&m.enablePlugin()}),0===n.length){if(0<f.length)throw t=["".concat(f.join("\n"),"\n"),"You have to import and register them manually."].join(""),Error(t);this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(); 3914this.clearHooks();this.enabled=!1}},{key:"addHook",value:function(m,t){k.get(this).hooks[m]=k.get(this).hooks[m]||[];var u=k.get(this).hooks[m];this.hot.addHook(m,t);u.push(t);k.get(this).hooks[m]=u}},{key:"removeHooks",value:function(m){var t=this;(0,p.arrayEach)(k.get(this).hooks[m]||[],function(u){t.hot.removeHook(m,u)})}},{key:"clearHooks",value:function(){var m=this,t=k.get(this).hooks;(0,q.objectEach)(t,function(u,w){return m.removeHooks(w)});t.length=0}},{key:"callOnPluginsReady",value:function(m){this.isPluginsReady? 3915m():this.pluginsInitializedCallbacks.push(m)}},{key:"onAfterPluginsInitialized",value:function(){(0,p.arrayEach)(this.pluginsInitializedCallbacks,function(m){return m()});this.pluginsInitializedCallbacks.length=0;this.isPluginsReady=!0}}
3915,{key:"onUpdateSettings",value:function(m){if(!l.has(this))throw new TypeError("attempted to get private field on non-instance");var t=B.call(this,m);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(), 3916this.enabled&&this.isEnabled()&&t&&this.updatePlugin(m))}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var m=this;this.eventManager&&this.eventManager.destroy();this.clearHooks();(0,q.objectEach)(this,function(t,u){"hot"!==u&&(m[u]=null)});delete this.t;delete this.hot}}],[{key:"PLUGIN_KEY",get:function(){return"base"}},{key:"SETTING_KEYS",get:function(){return[this.PLUGIN_KEY]}}]),r}();b.BasePlugin=a},function(g,b,a){a(224)("WeakSet",function(F){return function(){return F(this, 3917arguments.length?arguments[0]:void 0)}},a(390))},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.Autofill=void 0;g=a(925);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.Autofill=g.Autofill},function(g,b,a){function F(t){var u=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(w){return!1}}(); 3918return function(){var w=(0,d.default)(t);if(u){var v=(0,d.default)(this).constructor;w=Reflect.construct(w,arguments,v)}else w=w.apply(this,arguments);return(0,c.default)(this,w)}}a(0);a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.Autofill=void 0;a(33);a(42);a(49);a(18);var B=g(a(43)),D=g(a(34)),A=g(a(5)),x=g(a(6)),q=g(a(44)),p=g(a(30)),e=g(a(15)),c=g(a(16)),d=g(a(14)),h=a(50),k=g(a(71)),f=a(23),n=a(20),l=g(a(60)),r=a(926);k.default.getSingleton().register("modifyAutofillRange");k.default.getSingleton().register("beforeAutofill"); 3919k.default.getSingleton().register("afterAutofill");b.PLUGIN_KEY="autofill";b.PLUGIN_PRIORITY=20;var m=["fillHandle"];a=function(t){function u(v){var C;return(0,A.default)(this,u),(C=w.call(this,v)).eventManager=new l.default((0,q.default)(C)),C.addingStarted=!1,C.mouseDownOnCellCorner=!1,C.mouseDragOutside=!1,C.handleDraggedCells=0,C.directions=[],C.autoInsertRow=!1,C}(0,e.default)(u,t);var w=F(u);return(0,x.default)(u,[{key:"isEnabled",value:function(){return this.hot.getSettings().fillHandle}}, 3920{key:"enablePlugin",value:function(){var v=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",function(C){return v.onAfterCellCornerMouseDown(C)}),this.addHook("afterOnCellCornerDblClick",function(C){return v.onCellCornerDblClick(C)}),this.addHook("beforeOnCellMouseOver",function(C,y){return v.onBeforeCellMouseOver(y)}),(0,p.default)((0,d.default)(u.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin(); 3921this.enablePlugin();(0,p.default)((0,d.default)(u.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.clearMappedSettings();(0,p.default)((0,d.default)(u.prototype),"disablePlugin",this).call(this)}},{key:"getSelectionData",value:function(){var v=this,C=this.hot.getSelectedRangeLast(),y=C.getTopStartCorner(),z=y.row;y=y.col;C=C.getBottomEndCorner();z=this.hot.runHooks("modifyCopyableRange",[{startRow:z,startCol:y,endRow:C.row,endCol:C.col}]);var E=[],H=[],G=[]; 3922return(0,n.arrayEach)(z,function(I){for(var K=I.startRow;K<=I.endRow;K+=1)-1===E.indexOf(K)&&E.push(K);for(K=I.startCol;K<=I.endCol;K+=1)-1===H.indexOf(K)&&H.push(K)}),(0,n.arrayEach)(E,function(I){var K=[];(0,n.arrayEach)(H,function(J){K.push(v.hot.getCopyableData(I,J))});G.push(K)}),G}},{key:"fillIn",value:function(){var v=this;if(this.hot.selection.highlight.getFill().isEmpty())return!1;var C=this.hot.selection.highlight.getFill().getVisualCorners(),y=(0,D.default)(C,4);C=y[0];var z=y[1],E=y[2], 3923H=y[3],G=this.hot.getSelectedRangeLast(),I=G.getTopStartCorner(),K=G.getBottomEndCorner();this.resetSelectionOfDraggedArea();y=[I.row,I.col,K.row,K.col];C=this.hot.runHooks("modifyAutofillRange",[Math.min(I.row,C),Math.min(I.col,z),Math.max(K.row,E),Math.max(K.col,H)],y);y=(0,r.getDragDirectionAndRange)(y,C,function(N,Q){return v.hot._createCellCoords(N,Q)});z=y.directionOfDrag;E=y.startOfDragCoords;y=y.endOfDragCoords;if(E&&-1<E.row&&-1<E.col){K=this.getSelectionData();G=G.clone();H=this.hot._createCellRange(E, 3924E,y);I=this.hot.runHooks("beforeAutofill",K,G,H,z);
3924if(!1===I)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;K=(0,r.getDeltas)(E,y,K,z);var J=I;if(-1<["up","left"].indexOf(z)&&(1!==I.length||0!==I[0].length))if(J=[],"up"===z)for(var P=y.row-E.row+1,S=P%I.length,R=0;R<P;R++)J.push(I[(R+(I.length-S))%I.length]);else for(P=y.col-E.col+1,S=P%I[0].length,R=0;R<I.length;R++){J.push([]);for(var O=0;O<P;O++)J[R].push(I[R][(O+(I[R].length-S))%I[R].length])}this.hot.populateFromArray(E.row, 3925E.col,J,y.row,y.col,"".concat(this.pluginName,".fill"),null,z,K);this.setSelection(C);this.hot.runHooks("afterAutofill",J,G,H,z);this.hot.render()}else this.hot._refreshBorders();return!0}},{key:"reduceSelectionAreaIfNeeded",value:function(v){return 0>v.row&&(v.row=0),0>v.col&&(v.col=0),v}},{key:"getCoordsOfDragAndDropBorders",value:function(v){var C=this.hot.getSelectedRangeLast(),y=C.getBottomEndCorner(),z=v;if(this.directions.includes(r.DIRECTIONS.vertical)&&this.directions.includes(r.DIRECTIONS.horizontal))C= 3926C.getTopStartCorner(),(y.col<=v.col||C.col>=v.col)&&(z=this.hot._createCellCoords(y.row,v.col)),(y.row<v.row||C.row>v.row)&&(z=this.hot._createCellCoords(v.row,y.col));else if(this.directions.includes(r.DIRECTIONS.vertical))z=this.hot._createCellCoords(v.row,y.col);else{if(!this.directions.includes(r.DIRECTIONS.horizontal))return;z=this.hot._createCellCoords(y.row,v.col)}return this.reduceSelectionAreaIfNeeded(z)}},{key:"showBorder",value:function(v){(v=this.getCoordsOfDragAndDropBorders(v))&&this.redrawBorders(v)}}, 3927{key:"addRow",value:function(){var v=this;this.hot._registerTimeout(function(){v.hot.alter("insert_row",void 0,1,"".concat(v.pluginName,".fill"));v.addingStarted=!1},200)}},{key:"addNewRowIfNeeded",value:function(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){var v=this.hot.getSelectedLast(),C=this.hot.selection.highlight.getFill().getVisualCorners(),y=this.hot.countRows();v[2]<y-1&&C[2]===y-1&&(this.addingStarted=!0,this.addRow())}}},{key:"getIndexOfLastAdjacentFilledInRow", 3928value:function(v){for(var C,y=this.hot.getData(),z=this.hot.countRows(),E=v[2]+1;E<z;E++){for(var H=v[1];H<=v[3];H++)if(y[E][H])return-1;H=y[E][v[3]+1];(y[E][v[1]-1]||H)&&(C=E)}return C}},{key:"addSelectionFromStartAreaToSpecificRowIndex",value:function(v,C){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(v[0],v[1])).add(this.hot._createCellCoords(C,v[3])).commit()}},{key:"setSelection",value:function(v){var C;(C=this.hot).selectCell.apply(C,(0,B.default)((0,n.arrayMap)(v, 3929function(y){return Math.max(y,0)})).concat([!1,!1]))}},{key:"selectAdjacent",value:function(){var v=this.hot.getSelectedLast(),C=this.getIndexOfLastAdjacentFilledInRow(v);return-1!==C&&void 0!==C&&(this.addSelectionFromStartAreaToSpecificRowIndex(v,C),!0)}},{key:"resetSelectionOfDraggedArea",value:function(){this.handleDraggedCells=0;this.hot.selection.highlight.getFill().clear()}},{key:"redrawBorders",value:function(v){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(v).commit(); 3930this.hot.view.render()}},{key:"getIfMouseWasDraggedOutside",value:function(v){var C=this.hot.rootDocument.documentElement,y=(0,f.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||C.scrollTop)+(0,f.outerHeight)(this.hot.table);C=(0,f.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||C.scrollLeft)+(0,f.outerWidth)(this.hot.table);return v.clientY>y&&v.clientX<=C}},{key:"registerEvents",value:function(){var v=this,C=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(C, 3931"mouseup",function(){return v.onMouseUp()});this.eventManager.addEventListener(C,"mousemove",function(y){return v.onMouseMove(y)})}},{key:"onCellCornerDblClick",value:function(){this.selectAdjacent()&&this.fillIn()}},{key:"onAfterCellCornerMouseDown",value:function(){this.handleDraggedCells=1;this.mouseDownOnCellCorner=!0}},{key:"onBeforeCellMouseOver",value:function(v){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(v), 3932this.addNewRowIfNeeded())}},{key:"onMouseUp",value:function(){this.handleDraggedCells&&(1<this.handleDraggedCells&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}},{key:"onMouseMove",value:function(v){v=this.getIfMouseWasDraggedOutside(v);!1===this.addingStarted&&0<this.handleDraggedCells&&v?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1;this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}},{key:"clearMappedSettings",value:function(){this.directions.length= 39330;this.autoInsertRow=!1}},{key:"mapSettings",value:function(){var v=(0,r.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=v.directions;this.autoInsertRow=v.autoInsertRow}},{key:"destroy",value:function(){(0,p.default)((0,d.default)(u.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"autofill"}},{key:"PLUGIN_PRIORITY",get:function(){return 20}},{key:"SETTING_KEYS",get:function(){return["autofill"].concat(m)}}]),u}(h.BasePlugin);b.Autofill= 3934a},function(g,b,a){b.__esModule=!0;b.DIRECTIONS=void 0;b.getDeltas=function(A,x,q,p){var e=q.length,c=q?q[0].length:0,d=[],h=x.row-A.row;A=x.col-A.col;if(-1!==["down","up"].indexOf(p)){x=[];for(var k=0;k<A;k++){var f=parseInt(q[0][k],10),n=parseInt(q[e-1][k],10);x.push(("down"===p?n-f:f-n)/(e-1)||0)}d.push(x)}if(-1!==["right","left"].indexOf(p))for(e=0;e<h;e++)A=parseInt(q[e][0],10),x=parseInt(q[e][c-1],10),d.push([("right"===p?x-A:A-x)/(c-1)||0]);return d};b.getDragDirectionAndRange=function(A,x, 3935q){var p,e,c;x[0]===A[0]&&x[1]<A[1]?(c="left",p=q(x[0],x[1]),e=q(x[2],A[1]-1)):x[2]===A[2]&&x[0]===A[0]&&x[3]>A[3]?(c="right",p=q(x[0],A[3]+1),e=q(x[2],x[3])):x[0]<A[0]&&x[1]===A[1]?(c="up",p=q(x[0],x[1]),e=q(A[0]-1,x[3])):x[2]>A[2]&&x[1]===A[1]&&(c="down",p=q(A[2]+1,x[1]),e=q(x[2],x[3]));p&&p.normalize();e&&e.normalize();return{directionOfDrag:c,startOfDragCoords:p,endOfDragCoords:e}};b.getMappedFillHandleSetting=function(A){var x={};!0===A?(x.directions=Object.keys(D),x.autoInsertRow=!0):(0,F.isObject)(A)? 3936((0,B.isDefined)(A.autoInsertRow)?A.direction===D.horizontal?x.autoInsertRow=!1:x.autoInsertRow=A.autoInsertRow:x.autoInsertRow=!1,(0,B.isDefined)(A.direction)?x.directions=[A.direction]:x.directions=Object.keys(D)):"string"==typeof A?(x.directions=[A],x.autoInsertRow=!0):(x.directions=[],x.autoInsertRow=!1);return x};a(33);
3936a(53);var F=a(17),B=a(31),D={horizontal:"horizontal",vertical:"vertical"};b.DIRECTIONS=D},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.AutoRowSize=void 0;g= 3937a(928);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.AutoRowSize=g.AutoRowSize},function(g,b,a){function F(u){var w=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(v){return!1}}();return function(){var v=(0,e.default)(u);if(w){var C=(0,e.default)(this).constructor;v=Reflect.construct(v,arguments,C)}else v= 3938v.apply(this,arguments);return(0,p.default)(this,v)}}a(0);a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.AutoRowSize=void 0;a(13);a(77);var B=g(a(34)),D=g(a(5)),A=g(a(6)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=a(50),d=a(20),h=a(134),k=a(23),f=g(a(325)),n=a(17),l=a(47),r=g(a(633)),m=a(97),t=a(84);b.PLUGIN_KEY="autoRowSize";b.PLUGIN_PRIORITY=40;a=function(u){function w(C){var y;return(0,D.default)(this,w),(y=v.call(this,C)).rowHeightsMap=void 0,y.headerHeight=null,y.ghostTable= 3939new f.default(y.hot),y.samplesGenerator=new r.default(function(z,E){var H;return 0<=z?H=y.hot.getDataAtCell(z,E):-1===z&&(H=y.hot.getColHeader(E)),{value:H}}),y.firstCalculation=!0,y.inProgress=!1,y.measuredRows=0,y.rowHeightsMap=new t.PhysicalIndexToValueMap,y.hot.rowIndexMapper.registerMap("autoRowSize",y.rowHeightsMap),y.addHook("beforeRowResize",function(z,E,H){return y.onBeforeRowResize(z,E,H)}),y}(0,q.default)(w,u);var v=F(w);return(0,A.default)(w,[{key:"isEnabled",value:function(){var C=this.hot.getSettings().autoRowSize; 3940return!0===C||(0,n.isObject)(C)}},{key:"enablePlugin",value:function(){var C=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",function(){return C.onAfterLoadData.apply(C,arguments)}),this.addHook("beforeChangeRender",function(y){return C.onBeforeChange(y)}),this.addHook("beforeColumnResize",function(){return C.recalculateAllRowsHeight()}),this.addHook("beforeViewRender",function(y){return C.onBeforeViewRender(y)}),this.addHook("modifyRowHeight",function(y,z){return C.getRowHeight(z, 3941y)}),this.addHook("modifyColumnHeaderHeight",function(){return C.getColumnHeaderHeight()}),(0,x.default)((0,e.default)(w.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var C=this;this.headerHeight=null;(0,x.default)((0,e.default)(w.prototype),"disablePlugin",this).call(this);this.addHook("beforeRowResize",function(y,z,E){return C.onBeforeRowResize(y,z,E)})}},{key:"calculateRowsHeight",value:function(){var C=this,y=0<arguments.length&&void 0!==arguments[0]?arguments[0]: 3942{from:0,to:this.hot.countRows()-1},z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},E=2<arguments.length&&void 0!==arguments[2]&&arguments[2];y="number"==typeof y?{from:y,to:y}:y;var H="number"==typeof z?{from:z,to:z}:z;null!==this.hot.getColHeader(0)&&(z=this.samplesGenerator.generateRowSamples(-1,H),this.ghostTable.addColumnHeadersRow(z.get(-1)));(0,l.rangeEach)(y.from,y.to,function(G){if(E||null===C.rowHeightsMap.getValueAtIndex(G))G=C.samplesGenerator.generateRowSamples(G, 3943H),(0,d.arrayEach)(G,function(I){I=(0,B.default)(I,2);return C.ghostTable.addRow(I[0],I[1])})});this.ghostTable.rows.length&&(this.hot.batchExecution(function(){C.ghostTable.getHeights(function(G,I){0>G?C.headerHeight=I:C.rowHeightsMap.setValueAtIndex(C.hot.toPhysicalRow(G),I)})},!0),this.measuredRows=y.to+1,this.ghostTable.clean())}},{key:"calculateAllRowsHeight",value:function(){var C=this,y=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},z=0,E=this.hot.countRows()- 39441,H=null;this.inProgress=!0;var G=function J(){if(!C.hot)return(0,h.cancelAnimationFrame)(H),void(C.inProgress=!1);C.calculateRowsHeight({from:z,to:Math.min(z+w.CALCULATION_STEP,E)},y);(z=z+w.CALCULATION_STEP+1)<E?H=(0,h.requestAnimationFrame)(J):((0,h.cancelAnimationFrame)(H),C.inProgress=!1,C.hot.view.adjustElementsSize(!0),C.hot.view._wt.wtOverlays.inl
3944ineStartOverlay.needFullRender&&C.hot.view._wt.wtOverlays.inlineStartOverlay.clone.draw())},I=this.getSyncCalculationLimit();this.firstCalculation&& 39450<=I&&(this.calculateRowsHeight({from:0,to:I},y),this.firstCalculation=!1,z=I+1);z<E?G():(this.inProgress=!1,this.hot.view.adjustElementsSize(!1))}},{key:"setSamplingOptions",value:function(){var C=this.hot.getSettings().autoRowSize,y=C&&(0,n.hasOwnProperty)(C,"samplingRatio")?C.samplingRatio:void 0;C=C&&(0,n.hasOwnProperty)(C,"allowSampleDuplicates")?C.allowSampleDuplicates:void 0;y&&!isNaN(y)&&this.samplesGenerator.setSampleCount(parseInt(y,10));C&&this.samplesGenerator.setAllowDuplicates(C)}}, 3946{key:"recalculateAllRowsHeight",value:function(){(0,k.isVisible)(this.hot.view._wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())}},{key:"getSyncCalculationLimit",value:function(){var C=this.hot.getSettings().autoRowSize,y=w.SYNC_CALCULATION_LIMIT,z=this.hot.countRows()-1;return(0,n.isObject)(C)&&(y=C.syncLimit,(0,m.isPercentValue)(y)?y=(0,l.valueAccordingPercent)(z,y):y>>=0),Math.min(y,z)}},{key:"getRowHeight",value:function(C){var y=1<arguments.length&&void 0!==arguments[1]?arguments[1]: 3947void 0,z=0>C?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(C)),E=y;return null!==z&&z>(y||0)&&(E=z),E}},{key:"getColumnHeaderHeight",value:function(){return this.headerHeight}},{key:"getFirstVisibleRow",value:function(){var C=this.hot.view._wt;return C.wtViewport.rowsVisibleCalculator?C.wtTable.getFirstVisibleRow():C.wtViewport.rowsRenderCalculator?C.wtTable.getFirstRenderedRow():-1}},{key:"getLastVisibleRow",value:function(){var C=this.hot.view._wt;return C.wtViewport.rowsVisibleCalculator? 3948C.wtTable.getLastVisibleRow():C.wtViewport.rowsRenderCalculator?C.wtTable.getLastRenderedRow():-1}},{key:"clearCache",value:function(){this.headerHeight=null;this.rowHeightsMap.init()}},{key:"clearCacheByRange",value:function(C){var y=this;C="number"==typeof C?{from:C,to:C}:C;var z=C.from,E=C.to;this.hot.batchExecution(function(){(0,l.rangeEach)(Math.min(z,E),Math.max(z,E),function(H){y.rowHeightsMap.setValueAtIndex(H,null)})},!0)}},{key:"isNeedRecalculate",value:function(){return!!(0,d.arrayFilter)(this.rowHeightsMap.getValues().slice(0, 3949this.measuredRows),function(C){return null===C}).length}},{key:"onBeforeViewRender",value:function(){var C=this.hot.renderCall,y=this.hot.getSettings().fixedRowsBottom,z=this.getFirstVisibleRow(),E=this.getLastVisibleRow();if(-1!==z&&-1!==E){if(this.calculateRowsHeight({from:z,to:E},void 0,C),y)C=this.hot.countRows()-1,this.calculateRowsHeight({from:C-y,to:C});this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()}}},{key:"onBeforeRowMove",value:function(C,y){this.clearCacheByRange({from:C, 3950to:y});this.calculateAllRowsHeight()}},{key:"onBeforeRowResize",value:function(C,y,z){return z&&(this.calculateRowsHeight(y,void 0,!0),C=this.getRowHeight(y)),C}},{key:"onAfterLoadData",value:function(){var C=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout(function(){C.hot&&C.recalculateAllRowsHeight()},0)}},{key:"onBeforeChange",value:function(C){var y=null;1===C.length?y=C[0][0]:1<C.length&&(y={from:C[0][0],to:C[C.length-1][0]});null!==y&&this.clearCacheByRange(y)}},{key:"destroy", 3951value:function(){this.ghostTable.clean();(0,x.default)((0,e.default)(w.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"autoRowSize"}},{key:"PLUGIN_PRIORITY",get:function(){return 40}},{key:"SETTING_KEYS",get:function(){return!0}},{key:"CALCULATION_STEP",get:function(){return 50}},{key:"SYNC_CALCULATION_LIMIT",get:function(){return 500}}]),w}(c.BasePlugin);b.AutoRowSize=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.BindRowsWithHeaders=void 0; 3952g=a(930);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.BindRowsWithHeaders=g.BindRowsWithHeaders},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,e.default)(h);if(k){var n=(0,e.default)(this).constructor;f=Reflect.construct(f, 3953arguments,n)}else f=f.apply(this,arguments);return(0,p.default)(this,f)}}a(7);var B=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.BindRowsWithHeaders=void 0;var D=B(a(5)),A=B(a(6)),x=B(a(30)),q=B(a(15)),p=B(a(16)),e=B(a(14));a(3);a(32);a(0);a(2);a(4);g=a(50);var c=B(a(931));a=B(a(932));b.PLUGIN_KEY="bindRowsWithHeaders";b.PLUGIN_PRIORITY=210;var d=new Map([["loose",c.default],["strict",a.default]]);a=function(h){function k(n){var l;return(0,D.default)(this,k),(l=f.call(this,n)).headerIndexes= 3954null,l}(0,q.default)(k,h);var f=F(k);return(0,A.default)(k,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().bindRowsWithHeaders}},{key:"enablePlugin",value:function(){var n=this;if(!this.enabled){var l=this.hot.getSettings().bindRowsWithHeaders;"string"!=typeof l&&(l="loose");l=d.get(l);this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new l);this.addHook("modifyRowHeader",function(r){return n.onModifyRowHeader(r)});(0,x.default)((0,e.default)(k.prototype), 3955"enablePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders");(0,x.default)((0,e.default)(k.prototype),"disablePlugin",this).call(this)}},{key:"onModifyRowHeader",value:function(n){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(n))}},{key:"destroy",value:function(){(0,x.default)((0,e.default)(k.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"bindRowsWithHeaders"}},{key:"PLUGIN_PRIORITY", 3956get:function(){return 210}}]),k}(g.BasePlugin);b.BindRowsWithHeaders=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,p.default)(h);if(k){var n=(0,p.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments); 3957return(0,q.default)(this,f)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14)),e=a(84);a=(0,e.alterUtilsFactory)("physicallyIndexed");var c=a.getListWithInsertedItems,d=a.getListWithRemovedItems;a=function(h){function k(){return(0,B.default)(this,k),f.call(this,function(n){return n})}(0,x.default)(k,h);var f=F(k);return(0,D.default)(k,[{key:"insert",value:function(n,l){var r=(0,e.getIncreasedIndexes)(this.indexedValues,l);this.indexedValues= 3958c(r,n,l,this.initValueOrFn);(0,A.default)((0,p.default)(k.prototype),"insert",this).call(this,n,l)}},{key:"remove",value:function(n){var l=d(this.indexedValues,n);this.indexedValues=(0,e.getDecreasedIndexes)(l,n);(0,A.default)((0,p.default)(k.prototype),"remove",this).call(this,n)}}]),k}(e.IndexMap);b.default=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 3959[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,e.default)(h);if(k){var n=(0,e.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,p.default)(this,f)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(43)),D=g(a(5)),A=g(a(6)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a=a(84);g=(0,a.alterUtilsFactory)("physicallyIndexed");var c=g.getListWithInsertedItems,d=g.getListWithRemovedItems;a=function(h){function k(){return(0,D.default)(this, 3960k),f.call(this,function(n){return n})}(0,q.default)(k,h);var f=F(k);return(0,A.default)(k,[{key:"insert",value:function(n,l){var r=this;this.indexedValues=c(this.indexedValues,n,l,function(m,t){return r.getNextValue(t)});(0,x.default)((0,e.default)(k.prototype),"insert",this).call(this,n,l)}},{key:"remove",value:function(n){this.indexedValues=d(this.indexedValues,n);(0,x.default)((0,e.default)(k.prototype),"remove",this).call(this,n)}},{key:"getNextValue",value:function(n){return Math.max.apply(Math, 3961(0,B.default)(this.getValues()))+1+n}}]),k}(a.IndexMap);b.default=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.CollapsibleColumns=void 0;g=a(934);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.CollapsibleColumns=g.CollapsibleColumns},function(g,b,a){function F(y){var z=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 3962[],function(){})),!0}catch(E){return!1}}();return function(){var E=(0,c.default)(y);if(z){var H=(0,c.default)(this).constructor;E=Reflect.construct(E,arguments,H)}else E=E.apply(this,arguments);return(0,e.default)(this,E)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.CollapsibleColumns=void 0;var B=g(a(43)),D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(30)),p=g(a(15)),e=g(a(16)),c=g(a(14)),d=g(a(41)),h=g(a(109)),k=g(a(110));a(3);a(32);a(0);a(2);a(4);a(18);a(42);a(33);a(11);var f=a(50),n=a(20), 3963l=a(47),r=a(92),m=a(23),t=g(a(60)),u=a(83);b.PLUGIN_KEY="collapsibleColumns";b.PLUGIN_PRIORITY=290;var w=["nestedHeaders"],v=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]),C=new WeakMap;a=function(y){function z(){(0,D.default)(this,z);var H=arguments.length;for(var G=Array(H),I=0;I<H;I++)G[I]=arguments[I];H=E.call.apply(E,[this].concat(G));(0,d.default)((0,x.default)(H), 3964"nestedHeadersPlugin",null);(0,d.default)((0,x.default)(H),"eventManager",new t.default((0,x.default)(H)));(0,d.default)((0,x.default)(H),"headerStateManager",null);G=(0,x.default)(H);if(C.has(G))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;C.set(G,{writable:!0,value:null});return H}(0,p.default)(z,y);var E=F(z);return(0,A.default)(z,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().collapsibleColumns}},{key:"enablePlugin",value:function(){var H= 3965this;this.enabled||(this.hot.getSettings().nestedHeaders||(0,r.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),(0,k.default)(this,C,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",function(){return H.onInit()}),this.addHook("afterLoadData",function(){return H.onAfterLoadData.apply(H, 3966arguments)}),this.addHook("afterGetColHeader",function(G,I){return H.onAfterGetColHeader(G,I)}),this.addHook("beforeOnCellMouseDown",function(G,I,K){return H.onBeforeOnCellMouseDown(G,I,K)}),(0,q.default)((0,c.default)(z.prototype),"enablePlugin",this).call(this),this.updatePlugin())}},{key:"updatePlugin",value:function(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){var H=this.hot.getSettings().collapsibleColumns;"boolean"==typeof H?this.headerStateManager.mapState(function(G){return{collapsible:1< 3967G.origColspan}}):Array.isArray(H)&&(this.headerStateManager.mapState(function(){return{collapsible:!1}}),this.headerStateManager.mergeStateWith(H))}(0,q.default)((0,c.default)(z.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName);(0,k.default)(this,C,null);this.nestedHeadersPlugin=null;this.clearButtons();(0,q.default)((0,c.default)(z.prototype),"disablePlugin",this).call(this)}},{key:"clearButtons",value:function(){if(this.hot.view){var H= 3968this.hot.view._wt.getSetting("columnHeaders").length,G=this.hot.view._wt.wtTable.THEAD,I=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,K=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;(0,l.rangeEach)(0,H-1,function(J){var P=G.childNodes[J],S=I.childNodes[J],R=K?K.childNodes[J]:null;(0,l.rangeEach)(0,P.childNodes.length-1,function(O){var N=P.childNodes[O].querySelector(".collapsibleIndicator"); 3969N&&N.parentNode.removeChild(N);S&&S.childNodes[O]&&(N=S.childNodes[O].querySelector(".collapsibleIndicator"))&&N.parentNode.removeChild(N);K&&R&&R.childNodes[O]&&(N=R.childNodes[O].querySelector(".collapsibleIndicator"))&&N.parentNode.removeChild(N)})},!0)}}},{key:"expandSection",value:function(H){this.toggleCollapsibleSection([H],"expand")}},{key:"collapseSection",value:function(H){this.toggleCollapsibleSection([H],"collapse")}},{key:"toggleAllCollapsibleSections",value:function(H){var G=this,I= 3970this.headerStateManager.mapNodes(function(K){var J=K.origColspan,P=K.headerLevel,S=K.columnIndex,R=K.isCollapsed;if(!0===K.collapsible&&1<J&&(R&&"expand"===H||!R&&"collapse"===H))return{row:G.headerStateManager.levelToRowCoords(P),col:S}});this.toggleCollapsibleSection(I,H)}},{key:"collapseAll",value:function(){this.toggleAllCollapsibleSections("collapse")}},{key:"expandAll",value:function(){this.toggleAllCollapsibleSections("expand")}},{key:"toggleCollapsibleSection",value:function(H,G){var I=this; 3971if(!v.has(G))throw Error("Unsupported action is passed (".concat(G,")."));if(Array.isArray(H)){H=(0,n.arrayFilter)(H,function(N){return 0>N.row});var K=0<H.length;(0,n.arrayEach)(H,function(N){var Q;N=null!==(Q=I.headerStateManager.getHeaderSettings(N.row,N.col))&&void 0!==Q?Q:{};Q=N.isCollapsed;if(!N.collapsible||Q&&"collapse"===G||!Q&&"expand"===G)return K=!1,!1});var J=[],P=[];K&&(0,n.arrayEach)(H,function(N){N=I.headerStateManager.triggerNodeModification(G,N.row,N.col);var Q=N.affectedColumns, 3972M=N.rollbackModification;0<N.colspanCompensation&&(P.push.apply(P,(0,B.default)(Q)),J.push(M))});H=this.getCollapsedColumns();var S=[];"collapse"===G?S=(0,n.arrayUnique)([].concat((0,B.default)(H),P)):"expand"===G&&(S=(0,n.arrayFilter)(H,function(N){return!P.includes(N)}));var R=v.get(G);if(!1!==this.hot.runHooks(R.beforeHook,H,S,K)){this.hot.batchExecution(function(){(0,n.arrayEach)(P,function(N){(0,h.default)(I,C).setValueAtIndex(I.hot.toPhysicalColumn(N),R.hideColumn)})},!0);var O=this.getCollapsedColumns().length!== 3973H.length;this.hot.runHooks(R.afterHook,H,S,K,O);this.hot.render();this.hot.view.adjustElementsSize(!0)}else(0,n.arrayEach)(J,function(N){N()})}}},{key:"getCollapsedColumns",value:function(){return(0,h.default)(this,C).getHiddenIndexes()}},{key:"generateIndicator",value:function(H,G){var I=this.hot.rootDocument.createElement("div");H=this.headerStateManager.getHeaderSettings(H,G);return(0,m.addClass)(I,"collapsibleIndicator"),H.isCollapsed?((0,m.addClass)(I,"collapsed"),(0,m.fastInnerText)(I,"+")): 3974((0,m.addClass)(I,"expanded"),(0,m.fastInnerText)(I,"-")),I}},{key:"onAfterGetColHeader",value:function(H,G){var I,K=G.parentNode,J=K.parentNode;K=-1*J.childNodes.length+Array.prototype.indexOf.call(J.childNodes,K);J=null!==(I=this.headerStateManager.getHeaderSettings(K,H))&&void 0!==I?I:{};I=J.origColspan;J.collapsible&&1<I&&H>=this.hot.getSettings().fixedColumnsStart&&(H=this.generateIndicator(K,H),G.querySelector("div:first-child").appendChild(H
3974))}},{key:"onBeforeOnCellMouseDown",value:function(H, 3975G){(0,m.hasClass)(H.target,"collapsibleIndicator")&&((0,m.hasClass)(H.target,"expanded")?(this.eventManager.fireEvent(H.target,"mouseup"),this.toggleCollapsibleSection([G],"collapse")):(0,m.hasClass)(H.target,"collapsed")&&(this.eventManager.fireEvent(H.target,"mouseup"),this.toggleCollapsibleSection([G],"expand")),(0,u.stopImmediatePropagation)(H))}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(H,G){G||this.updatePlugin()}},{key:"destroy",value:function(){(0,k.default)(this, 3976C,null);(0,q.default)((0,c.default)(z.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"collapsibleColumns"}},{key:"PLUGIN_PRIORITY",get:function(){return 290}},{key:"PLUGIN_DEPS",get:function(){return["plugin:NestedHeaders"]}},{key:"SETTING_KEYS",get:function(){return["collapsibleColumns"].concat(w)}}]),z}(f.BasePlugin);b.CollapsibleColumns=a},function(g,b,a){function F(G,I){var K=Object.keys(G);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(G); 3977I&&(J=J.filter(function(P){return Object.getOwnPropertyDescriptor(G,P).enumerable}));K.push.apply(K,J)}return K}function B(G){for(var I=1;I<arguments.length;I++){var K=null!=arguments[I]?arguments[I]:{};I%2?F(Object(K),!0).forEach(function(J){(0,q.default)(G,J,K[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(K)):F(Object(K)).forEach(function(J){Object.defineProperty(G,J,Object.getOwnPropertyDescriptor(K,J))})}return G}function D(G){var I=function(){if("undefined"== 3978typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(K){return!1}}();return function(){var K=(0,f.default)(G);if(I){var J=(0,f.default)(this).constructor;K=Reflect.construct(K,arguments,J)}else K=K.apply(this,arguments);return(0,k.default)(this,K)}}a(7);a(53);a(8);a(39);a(19);a(27);a(85);var A=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ColumnSorting= 3979void 0;var x=A(a(43)),q=A(a(41)),p=A(a(125));a(75);a(13);a(0);a(68);a(52);a(18);a(25);a(93);a(3);a(32);a(2);a(4);var e=A(a(5)),c=A(a(6)),d=A(a(30)),h=A(a(15)),k=A(a(16)),f=A(a(14)),n=a(23),l=a(31),r=a(17),m=a(70),t=a(20);g=a(50);var u=a(84);A=A(a(71));var w=a(936),v=a(326),C=a(937),y=a(938),z=a(135),E=["column"],H=["column"];b.PLUGIN_KEY="columnSorting";b.PLUGIN_PRIORITY=50;(0,z.registerRootComparator)("columnSorting",y.rootComparator);A.default.getSingleton().register("beforeColumnSort");A.default.getSingleton().register("afterColumnSort"); 3980a=function(G){function I(J){var P;return(0,e.default)(this,I),(P=K.call(this,J)).columnStatesManager=null,P.columnMetaCache=null,P.pluginKey="columnSorting",P.indexesSequenceCache=null,P}(0,h.default)(I,G);var K=D(I);return(0,c.default)(I,[{key:"isEnabled",value:function(){return!!this.hot.getSettings()[this.pluginKey]}},{key:"enablePlugin",value:function(){var J=this;this.enabled||(this.columnStatesManager=new w.ColumnStatesManager(this.hot,"".concat(this.pluginKey,".sortingStates")),this.columnMetaCache= 3981new u.PhysicalIndexToValueMap(function(P){var S=J.hot.toVisualColumn(P);return null===S&&(S=P),J.getMergedPluginSettings(S)}),this.hot.columnIndexMapper.registerMap("".concat(this.pluginKey,".columnMeta"),this.columnMetaCache),this.addHook("afterGetColHeader",function(P,S){return J.onAfterGetColHeader(P,S)}),this.addHook("beforeOnCellMouseDown",function(){return J.onBeforeOnCellMouseDown.apply(J,arguments)}),this.addHook("afterOnCellMouseDown",function(P,S){return J.onAfterOnCellMouseDown(P,S)}), 3982this.addHook("afterInit",function(){return J.loadOrSortBySettings()}),this.addHook("afterLoadData",function(){return J.onAfterLoadData.apply(J,arguments)}),this.hot.view&&this.loadOrSortBySettings(),(0,d.default)((0,f.default)(I.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){var J=this,P=function(S,R){var O=(0,v.getHeaderSpanElement)(R);!1!==(0,v.isFirstLevelColumnHeader)(S,R)&&null!==O&&J.updateHeaderClasses(O)};this.hot.addHook("afterGetColHeader",P);this.hot.addHookOnce("afterViewRender", 3983function(){J.hot.removeHook("afterGetColHeader",P)});
3983this.hot.batchExecution(function(){null!==J.indexesSequenceCache&&(J.hot.rowIndexMapper.setIndexesSequence(J.indexesSequenceCache.getValues()),J.hot.rowIndexMapper.unregisterMap(J.pluginKey))},!0);this.hot.columnIndexMapper.unregisterMap("".concat(this.pluginKey,".columnMeta"));this.columnStatesManager.destroy();this.columnStatesManager=this.columnMetaCache=null;(0,d.default)((0,f.default)(I.prototype),"disablePlugin",this).call(this)}},{key:"sort", 3984value:function(J){var P=this.getSortConfig();J=this.getNormalizedSortConfigs(J);var S=this.areValidSortConfigs(J);!1!==this.hot.runHooks("beforeColumnSort",P,J,S)&&(0===P.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new u.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),S&&(this.columnStatesManager.setSortStates(J),this.sortByPresetSortStates(J),this.saveAllSortSettings(J)), 3985this.hot.runHooks("afterColumnSort",P,S?J:P,S),S&&(this.hot.render(),this.hot.forceFullRender=!1,this.hot.view.render()))}},{key:"clearSort",value:function(){this.sort([])}},{key:"isSorted",value:function(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}},{key:"getSortConfig",value:function(J){return(0,l.isDefined)(J)?this.columnStatesManager.getColumnSortState(J):this.columnStatesManager.getSortStates()}},{key:"setSortConfig",value:function(J){J=this.getNormalizedSortConfigs(J); 3986this.areValidSortConfigs(J)&&this.columnStatesManager.setSortStates(J)}},{key:"getNormalizedSortConfigs",value:function(){var J=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(J)?J.slice(0,1):[J]}},{key:"areValidSortConfigs",value:function(J){var P=this.hot.countCols();return(0,v.areValidSortStates)(J)&&J.every(function(S){S=S.column;return S<=P&&0<=S})}},{key:"saveAllSortSettings",value:function(J){var P=this,S=this.columnStatesManager.getAllColumnsProperties();S.initialConfig= 3987(0,t.arrayMap)(J,function(R){var O=R.column;R=(0,p.default)(R,E);return B({column:P.hot.toPhysicalColumn(O)},R)});this.hot.runHooks("persistentStateSave","columnSorting",S)}},{key:"getAllSavedSortSettings",value:function(){var J=this,P={};this.hot.runHooks("persistentStateLoad","columnSorting",P);P=P.value;return(0,l.isDefined)(P)&&Array.isArray(P.initialConfig)&&(P.initialConfig=(0,t.arrayMap)(P.initialConfig,function(S){var R=S.column;S=(0,p.default)(S,H);return B({column:J.hot.toVisualColumn(R)}, 3988S)})),P}},{key:"getColumnNextConfig",value:function(J){var P=this.columnStatesManager.getSortOrderOfColumn(J);if((0,l.isDefined)(P))return P=(0,v.getNextSortOrder)(P),(0,l.isDefined)(P)?{column:J,sortOrder:P}:void 0;P=this.hot.countCols();if(Number.isInteger(J)&&0<=J&&J<P)return{column:J,sortOrder:(0,v.getNextSortOrder)()}}},{key:"getNextSortConfig",value:function(J){var P=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"append",S=this.columnStatesManager.getIndexOfColumnInSortQueue(J),R=-1!== 3989S,O=this.getSortConfig(),N=this.getColumnNextConfig(J);if(R){if((0,l.isUndefined)(N))return[].concat((0,x.default)(O.slice(0,S)),(0,x.default)(O.slice(S+1)));if("append"===P)return[].concat((0,x.default)(O.slice(0,S)),(0,x.default)(O.slice(S+1)),[N]);if("replace"===P)return[].concat((0,x.default)(O.slice(0,S)),[N],(0,x.default)(O.slice(S+1)))}return(0,l.isDefined)(N)?O.concat(N):O}},{key:"getPluginColumnConfig",value:function(J){return(0,r.isObject)(J)&&(J=J[this.pluginKey],(0,r.isObject)(J))?J:{}}}, 3990{key:"getMergedPluginSettings",value:function(J){var P=this.hot.getSettings()[this.pluginKey],S=this.columnStatesManager.getAllColumnsProperties(),R=this.hot.getCellMeta(0,J);R=Object.getPrototypeOf(R);return Array.isArray(R.columns)?Object.assign(S,P,this.getPluginColumnConfig(R.columns[J])):(0,m.isFunction)(R.columns)?Object.assign(S,P,this.getPluginColumnConfig(R.columns(J))):Object.assign(S,P)}},{key:"getFirstCellSettings",value:function(J){var P=this.hot.getCellMeta(0,J);P=Object.create(P);return P[this.pluginKey]= 3991this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(J)),P}},{key:"getNumberOfRowsToSort",value:function(J){var P=this.hot.getSettings();
3991return P.maxRows<=J?P.maxRows:J-P.minSpareRows}},{key:"sortByPresetSortStates",value:function(J){var P=this;if(0!==J.length){for(var S=[],R=this.hot.countRows(),O=function(Z){return(0,t.arrayMap)(J,function(L){return P.hot.getDataAtCell(Z,L.column)})},N=0;N<this.getNumberOfRowsToSort(R);N+=1)S.push([this.hot.toPhysicalRow(N)].concat(O(N)));N=(0,t.arrayMap)(S, 3992function(Z){return Z[0]});(0,z.sort)(S,this.pluginKey,(0,t.arrayMap)(J,function(Z){return Z.sortOrder}),(0,t.arrayMap)(J,function(Z){return P.getFirstCellSettings(Z.column)}));for(var Q=S.length;Q<R;Q+=1)S.push([Q].concat(O(Q)));var M=(0,t.arrayMap)(S,function(Z){return Z[0]}),T=new Map((0,t.arrayMap)(N,function(Z,L){return[Z,M[L]]}));S=(0,t.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),function(Z){return T.has(Z)?T.get(Z):Z});this.hot.rowIndexMapper.setIndexesSequence(S)}else this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues())}}, 3993{key:"loadOrSortBySettings",value:function(){var J=this.getAllSavedSortSettings();(0,r.isObject)(J)?this.sortBySettings(J):(J=this.hot.getSettings()[this.pluginKey],this.sortBySettings(J))}},{key:"sortBySettings",value:function(J){(0,r.isObject)(J)?(this.columnStatesManager.updateAllColumnsProperties(J),J=J.initialConfig,(Array.isArray(J)||(0,r.isObject)(J))&&this.sort(J)):this.hot.render()}},{key:"onAfterGetColHeader",value:function(J,P){var S=(0,v.getHeaderSpanElement)(P);!1!==(0,v.isFirstLevelColumnHeader)(J, 3994P)&&null!==S&&(P=this.getFirstCellSettings(J)[this.pluginKey],this.updateHeaderClasses(S,this.columnStatesManager,J,P.indicator,P.headerAction))}},{key:"updateHeaderClasses",value:function(J){if((0,n.removeClass)(J,(0,C.getClassesToRemove)(J)),!1!==this.enabled){for(var P=arguments.length,S=Array(1<P?P-1:0),R=1;R<P;R++)S[R-1]=arguments[R];(0,n.addClass)(J,C.getClassesToAdd.apply(void 0,S))}}},{key:"onUpdateSettings",value:function(J){(0,d.default)((0,f.default)(I.prototype),"onUpdateSettings",this).call(this); 3995null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexe
3995s());(0,l.isDefined)(J[this.pluginKey])&&this.sortBySettings(J[this.pluginKey])}},{key:"onAfterLoadData",value:function(J){!0===J&&this.hot.view&&this.loadOrSortBySettings()}},{key:"wasClickableHeaderClicked",value:function(J,P){return this.getFirstCellSettings(P)[this.pluginKey].headerAction&&"SPAN"===J.target.nodeName}},{key:"onBeforeOnCellMouseDown",value:function(J,P,S,R){!1!==(0,v.wasHeaderClickedProperly)(P.row, 3996P.col,J)&&this.wasClickableHeaderClicked(J,P.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(R.column=!0)}},{key:"onAfterOnCellMouseDown",value:function(J,P){!1!==(0,v.wasHeaderClickedProperly)(P.row,P.col,J)&&this.wasClickableHeaderClicked(J,P.col)&&(this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(P.col)),this.sort(this.getColumnNextConfig(P.col)))}},{key:"destroy",value:function(){var J;null===(J=this.columnStatesManager)||void 0===J||J.destroy(); 3997(0,d.default)((0,f.default)(I.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSorting"}},{key:"PLUGIN_PRIORITY",get:function(){return 50}}]),I}(g.BasePlugin);b.ColumnSorting=a},function(g,b,a){function F(d,h){var k=Object.keys(d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(d);h&&(f=f.filter(function(n){return Object.getOwnPropertyDescriptor(d,n).enumerable}));k.push.apply(k,f)}return k}a(53);a(8);a(39);a(0);a(19);a(27);a(85);g=a(1);b.__esModule= 3998!0;b.ColumnStatesManager=void 0;a(42);a(165);a(36);var B=g(a(41)),D=g(a(34)),A=g(a(5)),x=g(a(6)),q=a(17),p=a(84),e=a(31),c=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];a=function(){function d(h,k){(0,A.default)(this,d);this.hot=h;this.sortingStates=new p.LinkedPhysicalIndexToValueMap;this.sortEmptyCells=!1;this.headerAction=this.indicator=!0;this.compareFunctionFactory=void 0;this.mapName=k;this.hot.columnIndexMapper.registerMap(k,this.sortingStates)}return(0,x.default)(d, 3999[{key:"updateAllColumnsProperties",value:function(h){var k=this;(0,q.isObject)(h)&&(0,q.objectEach)(h,function(f,n){c.includes(n)&&(k[n]=f)})}},{key:"getAllColumnsProperties",value:function(){var h={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(h.compareFunctionFactory=this.compareFunctionFactory),h}},{key:"getSortOrderOfColumn",value:function(h){var k;return null===(k=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(h)))|| 4000void 0===k?void 0:k.sortOrder}},{key:"getIndexOfColumnInSortQueue",value:function(h){return h=this.hot.toPhysicalColumn(h),this.sortingStates.getEntries().findIndex(function(k){return(0,D.default)(k,1)[0]===h})}},{key:"getNumberOfSortedColumns",value:function(){return this.sortingStates.getLength()}},{key:"isListOfSortedColumnsEmpty",value:function(){return 0===this.getNumberOfSortedColumns()}},{key:"isColumnSorted",value:function(h){return(0,q.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(h)))}}, 4001{key:"getSortStates",value:function(){var h=this;return null===this.sortingStates?[]:this.sortingStates.getEntries().map(function(k){k=(0,D.default)(k,2);var f=k[1];return function(n){for(var l=1;l<arguments.length;l++){var r=null!=arguments[l]?arguments[l]:{};l%2?F(Object(r),!0).forEach(function(m){(0,B.default)(n,m,r[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(m){Object.defineProperty(n,m,Object.getOwnPropertyDescriptor(r, 4002m))})}return n}({column:h.hot.toVisualColumn(k[0])},f)})}},{key:"getColumnSortState",value:function(h){var k=this.getSortOrderOfColumn(h);if((0,e.isDefined)(k))return{column:h,sortOrder:k}}},{key:"setSortStates",value:function(h){this.sortingStates.clear();for(var k=0;k<h.length;k+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(h[k].column),{sortOrder:h[k].sortOrder})}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.mapName);this.sortingStates=null}}]), 4003d}();b.ColumnStatesManager=a},function(g,b,a){b.__esModule=!0;b.getClassesToAdd=function(D,A,x,q){var p=["columnSorting"];q&&p.push("sortAction");if(!1===x)return p.push("indicatorDisabled"),p;D=D.getSortOrderOfColumn(A);(0,F.isDefined)(D)&&p.push(B.get(D));return p};b.getClassesToRemove=function(){return Array.from(B.values()).concat("sortAction","indicatorDisabled","columnSorting")};a(3);a(32);a(0);a(2);a(4);a(18);a(22);var F=a(31);g=a(326);var B=new Map([[g.ASC_SORT_STATE,"ascending"],[g.DESC_SORT_STATE, 4004"descending"]])},function(g,b,a){g=a(1);b.__esModule=!0;b.rootComparator=function(D,A){return function(x,q){var p,e,c,d,h;x=(0,F.default)(x).slice(1);q=(0,F.default)(q).slice(1);return p=D[0],e=A[0],c=x[0],d=q[0],((h=e.columnSorting).compareFunctionFactory?h.compareFunctionFactory:(0,B.getCompareFunctionFactory)(e.type))(p,e,h)(c,d)}};a(13);var F=g(a(635)),B=a(135)},function(g,b,a){b.__esModule=!0;b.COLUMN_DATA_TYPE=void 0;b.compareFunctionFactory=function(D,A,x){return function(q,p){var e=parseFloat(q), 4005c=parseFloat(p),d=x.sortEmptyCells;if(e===c||isNaN(e)&&isNaN(c))return B.DO_NOT_SWAP;if(d){if((0,F.isEmpty)(q))return"asc"===D?B.FIRST_BEFORE_SECOND:B.FIRST_AFTER_SECOND;if((0,F.isEmpty)(p))return"asc"===D?B.FIRST_AFTER_SECOND:B.FIRST_BEFORE_SECOND}return isNaN(e)?B.FIRST_AFTER_SECOND:isNaN(c)?B.FIRST_BEFORE_SECOND:e<c?"asc"===D?B.FIRST_BEFORE_SECOND:B.FIRST_AFTER_SECOND:e>c?"asc"===D?B.FIRST_AFTER_SECOND:B.FIRST_BEFORE_SECOND:B.DO_NOT_SWAP}};var F=a(31),B=a(135);b.COLUMN_DATA_TYPE="numeric"},function(g, 4006b,a){b.__esModule=!0;b.COLUMN_DATA_TYPE=void 0;b.compareFunctionFactory=function(A,x,q){var p=x.checkedTemplate,e=x.uncheckedTemplate,c=q.sortEmptyCells;return function(d,h){var k=(0,D.isEmpty)(d),f=(0,D.isEmpty)(h),n=k?e:d,l=f?e:h,r=n===e||n===p,m=l===e||l===p;if(!1===c){if(k&&!1===f)return F.FIRST_AFTER_SECOND;if(!1===k&&f)return F.FIRST_BEFORE_SECOND}return!1===r&&m?"asc"===A?F.FIRST_BEFORE_SECOND:F.FIRST_AFTER_SECOND:r&&!1===m?"asc"===A?F.FIRST_AFTER_SECOND:F.FIRST_BEFORE_SECOND:!1===r&&!1=== 4007m?(0,B.compareFunctionFactory)(A,x,q)(d,h):n===e&&l===p?"asc"===A?F.FIRST_BEFORE_SECOND:F.FIRST_AFTER_SECOND:n===p&&l===e?"asc"===A?F.FIRST_AFTER_SECOND:F.FIRST_BEFORE_SECOND:F.DO_NOT_SWAP}};var F=a(135),B=a(637),D=a(31);b.COLUMN_DATA_TYPE="checkbox"},function(g,b,a){g=a(1);b.__esModule=!0;b.COLUMN_DATA_TYPE=void 0;b.compareFunctionFactory=function(A,x,q){return function(p,e){var c=q.sortEmptyCells;if(p===e)return D.DO_NOT_SWAP;if((0,B.isEmpty)(p))return(0,B.isEmpty)(e)?D.DO_NOT_SWAP:c&&"asc"===A? 4008D.FIRST_BEFORE_SECOND:D.FIRST_AFTER_SECOND;if((0,B.isEmpty)(e))return c&&"asc"===A?D.FIRST_AFTER_SECOND:D.FIRST_BEFORE_SECOND;c=x.dateFormat;p=(0,F.default)(p,c);e=(0,F.default)(e,c);return p.isValid()?e.isValid()?e.isAfter(p)?"asc"===A?D.FIRST_BEFORE_SECOND:D.FIRST_AFTER_SECOND:e.isBefore(p)?"asc"===A?D.FIRST_AFTER_SECOND:D.FIRST_BEFORE_SECOND:D.DO_NOT_SWAP:D.FIRST_BEFORE_SECOND:D.FIRST_AFTER_SECOND}};var F=g(a(108)),B=a(31),D=a(135);b.COLUMN_DATA_TYPE="date"},function(g,b,a){a(75);g=a(1);b.__esModule= 4009!0;b.FIRST_BEFORE_SECOND=b.FIRST_AFTER_SECOND=b.DO_NOT_SWAP=void 0;b.sort=function(D,A){for(var x=(0,B.getRootComparator)(A),q=arguments.length,p=Array(2<q?q-2:0),e=2;e<q;e++)p[e-2]=arguments[e];(0,F.default)(D,x.apply(void 0,p))};var F=g(a(943)),B=a(636);b.DO_NOT_SWAP=0;b.FIRST_BEFORE_SECOND=-1;b.FIRST_AFTER_SECOND=1},function(g,b,a){g=a(1);b.__esModule=!0;b.default=function x(A){var q=1<arguments.length&&void 0!==arguments[1]?arguments[1]:B,p=2<arguments.length&&void 0!==arguments[2]?arguments[2]: 40100,e=3<arguments.length&&void 0!==arguments[3]?arguments[3]:A.length;if(1>=Math.abs(e-p))return[];var c=Math.ceil((p+e)/2);x(A,q,p,c);x(A,q,c,e);var d=new F.default,h=new F.default,k=c-p,f=e-c,n=Math.max(k,f);e-=p;for(var l=0;l<n;l+=1)l<k&&d.push(A[p+l]),l<f&&h.push(A[c+l]);for(c=0;c<e;)d.first&&h.first?0<q(d.first.data,h.first.data)?A[p+c]=h.shift().data:A[p+c]=d.shift().data:d.first?A[p+c]=d.shift().data:A[p+c]=h.shift().data,c+=1;return A};a(0);a(69);var F=g(a(944)),B=function(A,x){A=A.toString(); 4011x=x.toString();return A===x?0:A<x?-1:1}},function(g,b,a){g=a(1);b.__esModule=!0;b.default=b.NodeStructure=void 0;var F=g(a(6)),B=g(a(5)),D=(0,F.default)(function q(x){(0,B.default)(this,q);this.data=x;this.prev=this.next=null});b.NodeStructure=D;a=function(){function x(){(0,B.default)(this,x);this.last=this.first=null}return(0,F.default)(x,[{key:"push",value:function(q){q=new D(q);if(null===this.first)this.last=this.first=q;else{var p=this.last;this.last=q;q.prev=p;p.next=q}}},{key:"unshift",value:function(q){q= 4012new D(q);if(null===this.first)this.last=this.first=q;else{var p=this.first;this.first=q;q.next=p;p.prev=q}}},{key:"inorder",value:function(q){for(var p=this.first;p;)q(p),p=p.next}},{key:"remove",value:function(q){if(null===this.first)return!1;for(var p,e,c=this.first;c;){if(c.data===q)return p=c.next,e=c.prev,p&&(p.prev=e),e&&(e.next=p),c===this.first&&(this.first=p),c===this.last&&(this.last=e),!0;c=c.next}return!1}},{key:"hasCycle",value:function(){for(var q=this.first,p=this.first;;){if(null=== 4013q||null===(q=q.next))return!1;if((q=q.next)===(p=p.next))return!0}}},{key:"pop",value:function(){if(null===this.last)return null;var q=this.last;return this.last=this.last.prev,q}},{key:"shift",value:function(){if(null===this.first)return null;var q=this.first;return this.first=this.first.next,q}},{key:"recursiveReverse",value:function(){if(this.first){!function d(e,c){c&&(d(c,c.next),c.next=e)}(this.first,this.first.next);this.first.next=null;var q=this.first;this.first=this.last;this.last=q}}}, 4014{key:"reverse",value:function(){if(this.first&&this.first.next){for(var q,p=this.first.next,e=this.first;p;)q=p.next,p.next=e,e=e.prev=p,p=q;this.first.next=null;this.last.prev=null;q=this.first;this.first=e;this.last=q}}}]),x}();b.default=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ColumnSummary=void 0;g=a(946);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.ColumnSummary=g.ColumnSummary},function(g,b,a){function F(n){var l=function(){if("undefined"==typeof Reflect|| 4015!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r=(0,c.default)(n);if(l){var m=(0,c.default)(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);return(0,e.default)(this,r)}}a(0);a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ColumnSummary=void 0;var B=g(a(78));a(18);a(12);a(64);a(33); 4016a(67);var D,A=g(a(5)),x=g(a(6)),q=g(a(30)),p=g(a(15)),e=g(a(16)),c=g(a(14)),d=a(50),h=a(17),k=g(a(947)),f=a(79);b.PLUGIN_KEY="columnSummary";
4016b.PLUGIN_PRIORITY=220;a=function(n){function l(m){var t;return(0,A.default)(this,l),(t=r.call(this,m)).endpoints=null,t}(0,p.default)(l,n);var r=F(l);return(0,x.default)(l,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().columnSummary}},{key:"enablePlugin",value:function(){var m=this;this.enabled||(this.settings=this.hot.getSettings().columnSummary, 4017this.endpoints=new k.default(this,this.settings),this.addHook("afterInit",function(){return m.onAfterInit.apply(m,arguments)}),this.addHook("afterChange",function(){return m.onAfterChange.apply(m,arguments)}),this.addHook("beforeCreateRow",function(t,u,w){return m.endpoints.resetSetupBeforeStructureAlteration("insert_row",t,u,null,w)}),this.addHook("beforeCreateCol",function(t,u,w){return m.endpoints.resetSetupBeforeStructureAlteration("insert_col",t,u,null,w)}),this.addHook("beforeRemoveRow",function(){for(var t, 4018u=arguments.length,w=Array(u),v=0;v<u;v++)w[v]=arguments[v];return(t=m.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_row"].concat(w))}),this.addHook("beforeRemoveCol",function(){for(var t,u=arguments.length,w=Array(u),v=0;v<u;v++)w[v]=arguments[v];return(t=m.endpoints).resetSetupBeforeStructureAlteration.apply(t,["remove_col"].concat(w))}),this.addHook("afterCreateRow",function(t,u,w){return m.endpoints.resetSetupAfterStructureAlteration("insert_row",t,u,null,w)}),this.addHook("afterCreateCol", 4019function(t,u,w){return m.endpoints.resetSetupAfterStructureAlteration("insert_col",t,u,null,w)}),this.addHook("afterRemoveRow",function(){for(var t,u=arguments.length,w=Array(u),v=0;v<u;v++)w[v]=arguments[v];return(t=m.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_row"].concat(w))}),this.addHook("afterRemoveCol",function(){for(var t,u=arguments.length,w=Array(u),v=0;v<u;v++)w[v]=arguments[v];return(t=m.endpoints).resetSetupAfterStructureAlteration.apply(t,["remove_col"].concat(w))}), 4020this.addHook("afterRowMove",function(){return m.onAfterRowMove.apply(m,arguments)}),(0,q.default)((0,c.default)(l.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.currentEndpoint=this.settings=this.endpoints=null}},{key:"calculate",value:function(m){switch(m.type.toLowerCase()){case "sum":m.result=this.calculateSum(m);break;case "min":case "max":m.result=this.calculateMinMax(m,m.type);break;case "count":m.result=this.countEntries(m);break;case "average":m.result= 4021this.calculateAverage(m);break;case "custom":m.result=m.customFunction.call(this,m)}}},{key:"calculateSum",value:function(m){var t=this,u=0;return(0,h.objectEach)(m.ranges,function(w){u+=t.getPartialSum(w,m.sourceColumn)}),u}},{key:"getPartialSum",value:function(m,t){var u=0,w=m[1]||m[0],v=0;do{var C=this.getCellValue(w,t)||0;var y=("".concat(C).split(".")[1]||[]).length||1;y>v&&(v=y);u+=C||0;--w}while(w>=m[0]);return Math.round(u*Math.pow(10,v))/Math.pow(10,v)}},{key:"calculateMinMax",value:function(m, 4022t){var u=this,w=null;return(0,h.objectEach)(m.ranges,function(v){v=u.getPartialMinMax(v,m.sourceColumn,t);if(null===w&&null!==v&&(w=v),null!==v)switch(t){case "min":w=Math.min(w,v);break;case "max":w=Math.max(w,v)}}),null===w?"Not enough data":w}},{key:"getPartialMinMax",value:function(m,t,u){var w,v=null,C=m[1]||m[0];do{if(w=this.getCellValue(C,t)||null,null===v)v=w;else if(null!==w)switch(u){case "min":v=Math.min(v,w);break;case "max":v=Math.max(v,w)}--C}while(C>=m[0]);return v}},{key:"countEmpty", 4023value:function(m,t){var u=0,w=m[1]||m[0];do this.getCellValue(w,t)||(u+=1),--w;while(w>=m[0]);return u}},{key:"countEntries",value:function(m){var t=this,u=0;return(0,h.objectEach)(m.ranges,function(w){var v=void 0===w[1]?1:w[1]-w[0]+1;w=t.countEmpty(w,m.sourceColumn);u+=v;u-=w}),u}},{key:"calculateAverage",value:function(m){return this.calculateSum(m)/this.countEntries(m)}},{key:"getCellValue",value:function(m,t){var u=this.hot.toVisualRow(m),w=this.hot.toVisualColumn(t),v=this.hot.getSourceDataAtCell(m, 4024t),C="";if(null!==u&&null!==w&&(C=this.hot.getCellMeta(u,w).className||""),-1<C.indexOf("columnSummaryResult"))return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof v&&(v=v.replace(/,/,".")),v=parseFloat(v)),isNaN(v)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw Error((0,f.toSingleLine)(D||(D=(0,B.default)(["ColumnSummary plugin: cell at (",", ",") is not in a \n numeric format. Cannot do the calculation."],["ColumnSummary plugin: cell at (",", ",") is not in a\\x20\n numeric format. Cannot do the calculation."])), 4025m,t));return v}},{key:"onAfterInit",value:function(){this.endpoints.endpoints=this.endpoints.parseSettings();this.endpoints.refreshAllEndpoints(!0)}},{key:"onAfterChange",value:function(m,t){m&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(m)}},{key:"onAfterRowMove",value:function(m,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",m[0],m.length,m,this.pluginName);this.endpoints.resetSetupAfterStructureAlteration("move_row", 4026t,m.length,m,this.pluginName)}}],[{key:"PLUGIN_KEY",get:function(){return"columnSummary"}},{key:"PLUGIN_PRIORITY",get:function(){return 220}}]),l}(d.BasePlugin);b.ColumnSummary=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(33);a(0);a(300);var F=g(a(5)),B=g(a(6)),D=a(20),A=a(92);a=function(){function x(q,p){(0,F.default)(this,x);this.plugin=q;this.hot=this.plugin.hot;this.endpoints=[];this.settings=p;this.settingsType="array";this.currentEndpoint=null;this.cellsToSetCache=[]}return(0,B.default)(x, 4027[{key:"getEndpoint",value:function(q){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[q]:this.endpoints[q]}},{key:"getAllEndpoints",value:function(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}},{key:"fillMissingEndpointData",value:function(q){return this.parseSettings(q.call(this))}},{key:"parseSettings",value:function(q){var p=this,e=[];
4027if(q||"function"!=typeof this.settings)return q||(q=this.settings),(0,D.arrayEach)(q, 4028function(c){var d={};p.assignSetting(c,d,"ranges",[[0,p.hot.countRows()-1]]);p.assignSetting(c,d,"reversedRowCoords",!1);p.assignSetting(c,d,"destinationRow",Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n "));p.assignSetting(c,d,"destinationColumn",Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n "));p.assignSetting(c,d,"sourceColumn",c.destinationColumn);p.assignSetting(c, 4029d,"type","sum");p.assignSetting(c,d,"forceNumeric",!1);p.assignSetting(c,d,"suppressDataTypeErrors",!0);p.assignSetting(c,d,"suppressDataTypeErrors",!0);p.assignSetting(c,d,"customFunction",null);p.assignSetting(c,d,"readOnly",!0);p.assignSetting(c,d,"roundFloat",!1);e.push(d)}),e;this.settingsType="function"}},{key:"assignSetting",value:function(q,p,e,c){if("ranges"!==e||void 0!==q[e]){if("ranges"!==e||0!==q[e].length)if(void 0===q[e]){if(c instanceof Error)throw c;p[e]=c}else"destinationRow"=== 4030e&&p.reversedRowCoords?p[e]=this.hot.countRows()-q[e]-1:p[e]=q[e]}else p[e]=c}},{key:"resetSetupBeforeStructureAlteration",value:function(q,p,e){if("function"===this.settingsType){var c=-1<q.indexOf("row")?"row":"col",d=this.getAllEndpoints();(0,D.arrayEach)(d,function(h){"row"===c&&h.destinationRow>=p&&("insert_row"===q?h.alterRowOffset=e:"remove_row"===q&&(h.alterRowOffset=-1*e));"col"===c&&h.destinationColumn>=p&&("insert_col"===q?h.alterColumnOffset=e:"remove_col"===q&&(h.alterColumnOffset=-1* 4031e))});this.resetAllEndpoints(d,!1)}}},{key:"resetSetupAfterStructureAlteration",value:function(q,p,e,c,d){var h=this,k=!(5<arguments.length&&void 0!==arguments[5])||arguments[5];if("function"!==this.settingsType){var f=-1<q.indexOf("row")?"row":"col",n=-1<q.indexOf("remove")?-1:1,l=this.getAllEndpoints(),r=0===q.indexOf("move_row");(0,D.arrayEach)(l,function(m){"row"===f&&m.destinationRow>=p&&(m.alterRowOffset=n*e);"col"===f&&m.destinationColumn>=p&&(m.alterColumnOffset=n*e)});this.resetAllEndpoints(l, 4032!r);r?(0,D.arrayEach)(l,function(m){h.extendEndpointRanges(m,p,c[0],c.length);h.recreatePhysicalRanges(m);h.clearOffsetInformation(m)}):(0,D.arrayEach)(l,function(m){h.shiftEndpointCoordinates(m,p)});k&&this.refreshAllEndpoints()}else this.hot.addHookOnce("beforeViewRender",function t(){return h.hot.removeHook("beforeViewRender",t),h.refreshAllEndpoints()})}},{key:"clearOffsetInformation",value:function(q){q.alterRowOffset=void 0;q.alterColumnOffset=void 0}},{key:"extendEndpointRanges",value:function(q, 4033p,e,c){(0,D.arrayEach)(q.ranges,function(d){d[1]&&(p>=d[0]&&p<=d[1]?e>d[1]?d[1]+=c:e<d[0]&&(d[0]-=c):e>=d[0]&&e<=d[1]&&(d[1]-=c,p<=d[0]&&(d[0]+=1,d[1]+=1)))})}},{key:"recreatePhysicalRanges",value:function(q){var p=this,e=[],c=[];(0,D.arrayEach)(q.ranges,function(d){var h=[];if(d[1])for(var k=d[0];k<=d[1];k++)h.push(p.hot.toPhysicalRow(k));else h.push(p.hot.toPhysicalRow(d[0]));c.push(h)});(0,D.arrayEach)(c,function(d){var h=[];(0,D.arrayEach)(d,function(k,f){0===f?h.push(k):d[f]!==d[f-1]+1&&(h.push(d[f- 40341]),e.push(h),(h=[]).push(k));f===d.length-1&&(h.push(k),e.push(h))})});q.ranges=e}},{key:"shiftEndpointCoordinates",value:function(q,p){q.alterRowOffset&&0!==q.alterRowOffset?(q.destinationRow+=q.alterRowOffset||0,(0,D.arrayEach)(q.ranges,function(e){(0,D.arrayEach)(e,function(c,d){c>=p&&(e[d]+=q.alterRowOffset||0)})})):q.alterColumnOffset&&0!==q.alterColumnOffset&&(q.destinationColumn+=q.alterColumnOffset||0,q.sourceColumn+=q.alterColumnOffset||0)}},{key:"resetAllEndpoints",value:function(){var q= 4035this,p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];p.some(function(c){var d=c.alterColumnOffset||0;return c.destinationRow+(c.alterRowOffset||0)>=q.hot.countRows()||c.destinationColumn+d>=q.hot.countCols()})||(this.cellsToSetCache=[],(0,D.arrayEach)(p,function(c){q.resetEndpointValue(c,e)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}},{key:"refreshAllEndpoints", 4036value:function(){var q=this;this.cellsToSetCache=[];(0,D.arrayEach)(this.getAllEndpoints(),function(p){q.currentEndpoint=p;q.plugin.calculate(p);q.setEndpointValue(p,"init")});this.currentEndpoint=null;this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset");this.cellsToSetCache=[]}},{key:"refreshChangedEndpoints",value:function(q){var p=this,e=[];this.cellsToSetCache=[];(0,D.arrayEach)(q,function(c,d,h){"".concat(c[2]||"")!=="".concat(c[3])&&(0,D.arrayEach)(p.getAllEndpoints(),function(k, 4037f){p.hot.propToCol(h[d][1])===k.sourceColumn&&-1===e.indexOf(f)&&e.push(f)})});(0,D.arrayEach)(e,function(c){p.refreshEndpoint(p.getEndpoint(c))});this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset");this.cellsToSetCache=[]}},{key:"refreshEndpoint",value:function(q){this.currentEndpoint=q;this.plugin.calculate(q);this.setEndpointValue(q);this.currentEndpoint=null}},{key:"resetEndpointValue",value:function(q){var p=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],e=q.alterRowOffset|| 40380,c=q.alterColumnOffset||0,d=[this.hot.toVisualRow(q.destinationRow),this.hot.toVisualColumn(q.destinationColumn)],h=d[0];d=d[1];null!==d&&null!==h&&(h=this.hot.getCellMeta(h,d),h.readOnly=!1,h.className="");this.cellsToSetCache.push([this.hot.toVisualRow(q.destinationRow+(p?e:0)),this.hot.toVisualColumn(q.destinationColumn+(p?c:0)),""])}},{key:"setEndpointValue",value:function(q,p){var e=2<arguments.length&&void 0!==arguments[2]&&arguments[2],c=-1*q.alterRowOffset||0,d=-1*q.alterColumnOffset||0, 4039h=this.hot.toVisualRow(q.destinationRow);q.destinationRow>=this.hot.countRows()||q.destinationColumn>=this.hot.countCols()?this.throwOutOfBoundsWarning():(c=this.hot.toVisualRow(q.destinationRow+c),null!==c&&(d=this.hot.getCellMeta(c,q.destinationColumn+d),"init"!==p&&d.readOnly===q.readOnly||(d.readOnly=q.readOnly,d.className="
4039columnSummaryResult")),q.roundFloat&&!isNaN(q.result)&&(q.result=q.result.toFixed(q.roundFloat)),e?this.hot.setDataAtCell(h,q.destinationColumn,q.result,"ColumnSummary.set"): 4040this.cellsToSetCache.push([h,q.destinationColumn,q.result]),q.alterRowOffset=void 0,q.alterColumnOffset=void 0)}},{key:"throwOutOfBoundsWarning",value:function(){(0,A.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}]),x}();b.default=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.Comments=void 0;g=a(949);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.Comments=g.Comments},function(g,b,a){function F(v){if("function"!= 4041typeof WeakMap)return null;var C=new WeakMap,y=new WeakMap;return(F=function(z){return z?y:C})(v)}function B(v){var C=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(y){return!1}}();return function(){var y=(0,h.default)(v);if(C){var z=(0,h.default)(this).constructor;y=Reflect.construct(y,arguments,z)}else y=y.apply(this, 4042arguments);return(0,d.default)(this,y)}}a(7);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.Comments=void 0;var A=g(a(41)),x=g(a(5)),q=g(a(6)),p=g(a(44)),e=g(a(30)),c=g(a(15)),d=g(a(16)),h=g(a(14));a(3);a(0);a(2);a(11);a(4);var k=a(23),f=a(17),n=g(a(60)),l=a(50),r=g(a(950)),m=a(111),t=g(a(951)),u=function(v,C){if(!C&&v&&v.__esModule)return v;if(null===v||"object"!==D(v)&&"function"!=typeof v)return{default:v};if((C=F(C))&&C.has(v))return C.get(v);var y={},z=Object.defineProperty&& 4043Object.getOwnPropertyDescriptor,E;for(E in v)if("default"!==E&&Object.prototype.hasOwnProperty.call(v,E)){var H=z?Object.getOwnPropertyDescriptor(v,E):null;H&&(H.get||H.set)?Object.defineProperty(y,E,H):y[E]=v[E]}y.default=v;C&&C.set(v,y);return y}(a(29));a(952);b.PLUGIN_KEY="comments";b.PLUGIN_PRIORITY=60;var w=new WeakMap;a=function(v){function C(z){var E;return(0,x.default)(this,C),(E=y.call(this,z)).editor=null,E.displaySwitch=null,E.eventManager=null,E.range={},E.preventEditorAutoSwitch=!1,w.set((0,p.default)(E), 4044{tempEditorDimensions:{},cellBelowCursor:null}),E}(0,c.default)(C,v);var y=B(C);return(0,q.default)(C,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().comments}},{key:"enablePlugin",value:function(){var z=this;this.enabled||(this.editor||(this.editor=new r.default(this.hot.rootDocument,this.hot.isRtl())),this.eventManager||(this.eventManager=new n.default(this)),this.displaySwitch||(this.displaySwitch=new t.default(this.getDisplayDelaySetting())),this.addHook("afterContextMenuDefaultOptions", 4045function(E){return z.addToContextMenu(E)}),this.addHook("afterRenderer",function(E,H,G,I,K,J){return z.onAfterRenderer(E,J)}),this.addHook("afterScrollHorizontally",function(){return z.hide()}),this.addHook("afterScrollVertically",function(){return z.hide()}),this.addHook("afterBeginEditing",function(){return z.hide()}),this.displaySwitch.addLocalHook("hide",function(){return z.hide()}),this.displaySwitch.addLocalHook("show",function(E,H){return z.showAtCell(E,H)}),this.registerListeners(),(0,e.default)((0,h.default)(C.prototype), 4046"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();(0,e.default)((0,h.default)(C.prototype),"updatePlugin",this).call(this);this.displaySwitch.updateDelay(this.getDisplayDelaySetting())}},{key:"disablePlugin",value:function(){(0,e.default)((0,h.default)(C.prototype),"disablePlugin",this).call(this)}},{key:"registerListeners",value:function(){var z=this,E=this.hot.rootDocument;this.eventManager.addEventListener(E,"mouseover",function(H){return z.onMouseOver(H)}); 4047this.eventManager.addEventListener(E,"mousedown",function(H){return z.onMouseDown(H)});this.eventManager.addEventListener(E,"mouseup",function(){return z.onMouseUp()});this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(){return z.onEditorBlur()});
4047this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",function(H){return z.onEditorMouseDown(H)});this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",function(H){return z.onEditorMouseUp(H)})}}, 4048{key:"setRange",value:function(z){this.range=z}},{key:"clearRange",value:function(){this.range={}}},{key:"targetIsCellWithComment",value:function(z){z=(0,k.closest)(z.target,"TD","TBODY");return!!(z&&(0,k.hasClass)(z,"htCommentCell")&&(0,k.closest)(z,[this.hot.rootElement]))}},{key:"targetIsCommentTextArea",value:function(z){return this.editor.getInputElement()===z.target}},{key:"setComment",value:function(z){if(!this.range.from)throw Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())'); 4049var E=this.editor.getValue(),H="";null!=z?H=z:null!=E&&(H=E);this.updateCommentMeta(this.range.from.row,this.range.from.col,(0,A.default)({},"value",H));this.hot.render()}},{key:"setCommentAtCell",value:function(z,E,H){this.setRange({from:this.hot._createCellCoords(z,E)});this.setComment(H)}},{key:"removeComment",value:function(){var z=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())'); 4050this.hot.setCellMeta(this.range.from.row,this.range.from.col,"comment");z&&this.hot.render();this.hide()}},{key:"removeCommentAtCell",value:function(z,E){var H=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(z,E)});this.removeComment(H)}},{key:"getComment",value:function(){return this.getCommentMeta(this.range.from.row,this.range.from.col,"value")}},{key:"getCommentAtCell",value:function(z,E){return this.getCommentMeta(z,E,"value")}},{key:"show", 4051value:function(){if(!this.range.from)throw Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var z=this.range.from,E=z.row;z=z.col;if(0>E||E>this.hot.countSourceRows()-1||0>z||z>this.hot.countSourceCols()-1)return!1;E=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.editor.setValue(E.comment?E.comment.value:""),this.editor.show(),this.refreshEditor(!0),!0}},{key:"showAtCell",value:function(z,E){return this.setRange({from:this.hot._createCellCoords(z, 4052E)}),this.show()}},{key:"hide",value:function(){this.editor.hide()}},{key:"refreshEditor",value:function(){var z,E;if(0<arguments.length&&void 0!==arguments[0]&&arguments[0]||this.range.from&&this.editor.isVisible()){var H=this.hot,G=H.rowIndexMapper,I=H.columnIndexMapper,K=this.range.from;H=K.row;K=K.col;var J=G.getRenderableFromVisualIndex(H),P=I.getRenderableFromVisualIndex(K),S=null===J;null===J&&(J=G.getRenderableFromVisualIndex(G.getNearestNotHiddenIndex(H,-1)));null===P&&(P=I.getRenderableFromVisualIndex(I.getNearestNotHiddenIndex(K, 4053-1)));G=null===J;I=null===P;J=null!==(z=J)&&void 0!==z?z:0;P=null!==(E=P)&&void 0!==E?E:0;E=this.hot;z=E.rootWindow;E=E.view._wt.wtTable;J=E.getCell({row:J,col:P});var R=this.getCommentMeta(H,K,"style");R?this.editor.setSize(R.width,R.height):this.editor.resetSize();P=I?0:E.getStretchedColumnWidth(P);S=S&&!G?(0,k.outerHeight)(J):0;E=J.getBoundingClientRect();G=E.left;J=E.top;I=E.width;E=E.height;var O=this.editor.getSize();R=O.width;O=O.height;var N=this.hot.rootWindow,Q=N.innerWidth;N=N.innerHeight; 4054var M=this.hot.rootDocument.documentElement,T=G+z.scrollX+P;S=J+z.scrollY+S;this.hot.isRtl()&&(T-=R+P);this.hot.isLtr()&&G+I+R>Q?T=G+z.scrollX-R-1:this.hot.isRtl()&&T<-(M.scrollWidth-M.clientWidth)&&(T=G+z.scrollX+P+1);J+O>N&&(S-=O-E+1);this.editor.setPosition(T,S);this.editor.setReadOnlyState(this.getCommentMeta(H,K,"readOnly"))}}},{key:"checkSelectionCommentsConsistency",value:function(){var z=this.hot.getSelectedRangeLast();if(!z)return!1;var E=!1;z=z.getTopStartCorner();return this.getCommentMeta(z.row, 4055z.col,"value")&&(E=!0),E}},{key:"updateCommentMeta",value:function(z,E,H){var G,I=this.hot.getCellMeta(z,E).comment;I?(G=(0,f.deepClone)(I),(0,f.deepExtend)(G,H)):G=H;this.hot.setCellMeta(z,E,"comment",G)}},{key:"getCommentMeta",value:function(z,E,H){z=this.hot.getCellMeta(z,E);if(z.comment)return z.comment[H]}},{key:"onMouseDown",value:function(z){if(this.hot.view&&this.hot.view._wt&&!this.preventEditorAutoSwitch&&!this.targetIsCommentTextArea(z)){z=(0,k.closest)(z.target,"TD","TBODY");var E=null; 4056z&&(E=this.hot.getCoords(z));(!z||this.range.from&&E&&(this.range.from.row!==E.row||this.range.from.col!==E.col))&&this.hide()}}},{key:"onMouseOver",value:function(z){var E=w.get(this),H=this.hot.rootDocument;this.preventEditorAutoSwitch||this.editor.isFocused()||(0,k.hasClass)(z.target,"wtBorder")||E.cellBelowCursor===z.target||!this.editor||((E.cellBelowCursor=H.elementFromPoint(z.clientX,z.clientY),this.targetIsCellWithComment(z))?(z=this.hot._createCellRange(this.hot.getCoords(z.target)),this.displaySwitch.show(z)): 4057(0,k.isChildOf)(z.target,H)&&!this.targetIsCommentTextArea(z)&&this.displaySwitch.hide())}},{key:"onMouseUp",value:function(){this.preventEditorAutoSwitch=!1}},{key:"onAfterRenderer",value:function(z,E){E.comment&&E.comment.value&&(0,k.addClass)(z,E.commentedCellClassName)}},{key:"onEditorBlur",value:function(){this.setComment()}},{key:"onEditorMouseDown",value:function(z){w.get(this).tempEditorDimensions={width:(0,k.outerWidth)(z.target),height:(0,k.outerHeight)(z.target)}}},{key:"onEditorMouseUp", 4058value:function(z){var E=w.get(this),H=(0,k.outerWidth)(z.target);z=(0,k.outerHeight)(z.target);H===E.tempEditorDimensions.width+1&&z===E.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,(0,A.default)({},"style",{width:H,height:z}))}},{key:"onContextMenuAddComment",value:function(){var z=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0;this.displaySwitch.cancelHiding();this.setRange({from:z.highlight});this.show();this.hot.deselectCell(); 4059this.editor.focus()}},{key:"onContextMenuRemoveComment",value:function(){var z=this,E=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0;E.forAll(function(H,G){0<=H&&0<=G&&z.removeCommentAtCell(H,G,!1)});this.hot.render()}},{key:"onContextMenuMakeReadOnly",value:function(){var z=this,E=this.hot.getSelectedRangeLast();this.preventEditorAutoSwitch=!0;E.forAll(function(H,G){if(0<=H&&0<=G){var I=!!z.getCommentMeta(H,G,"readOnly");z.updateCommentMeta(H,G,(0,A.default)({},"readOnly",!I))}})}}, 4060{key:"addToContextMenu",value:function(z){var E=this,H=function(){return 0<E.hot.rowIndexMapper.getRenderableIndexesLength()&&0<E.hot.columnIndexMapper.getRenderableIndexesLength()};z.items.push({name:"---------"},{key:"commentsAddEdit",name:function(){return E.checkSelectionCommentsConsistency()?E.hot.getTranslatedPhrase(u.CONTEXTMENU_ITEMS_EDIT_COMMENT):E.hot.getTranslatedPhrase(u.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback:function(){return E.onContextMenuAddComment()},disabled:function(){return!H()|| 4061!(E.hot.getSelectedLast()&&!E.hot.selection.isSelectedByCorner())}},{key:"commentsRemove",name:function(){return this.getTranslatedPhrase(u.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback:function(){return E.onContextMenuRemoveComment()},disabled:function(){return!H()||!(E.hot.getSelectedLast()&&!E.hot.selection.isSelectedByCorner())}},{key:"commentsReadOnly",name:function(){var G=this,I=this.getTranslatedPhrase(u.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,m.checkSelectionConsistency)(this.getSelectedRangeLast(), 4062function(K,J){K=G.getCellMeta(K,J).comment;if(K&&(K=K.readOnly),K)return!0})&&(I=(0,m.markLabelAsSelected)(I)),I},callback:function(){return E.onContextMenuMakeReadOnly()},disabled:function(){return!H()||!(E.hot.getSelectedLast()&&!E.hot.selection.isSelectedByCorner()&&E.checkSelectionCommentsConsistency())}})}},{key:"getDisplayDelaySetting",value:function(){var z=this.hot.getSettings().comments;if((0,f.isObject)(z))return z.displayDelay}},{key:"destroy",value:function(){this.editor&&this.editor.destroy(); 4063this.displaySwitch&&this.displaySwitch.destroy();(0,e.default)((0,h.default)(C.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"comments"}},{key:"PLUGIN_PRIORITY",get:function(){return 60}}]),C}(l.BasePlugin);b.Comments=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=a(23);a=function(){function A(x,q){(0,F.default)(this,A);this.rootDocument=x;this.isRtl=q;this.container=null;this.editor=this.createEditor();this.editorStyle=this.editor.style; 4064this.hidden=!0;this.hide()}return(0,B.default)(A,[{key:"setPosition",value:function(x,q){this.editorStyle.left="".concat(x,"px");this.editorStyle.top="".concat(q,"px")}},{key:"setSize",value:function(x,q){if(x&&q){var p=this.getInputElement();p.style.width="".concat(x,"px");p.style.height="".concat(q,"px")}}},{key:"getSize",value:function(){return{width:(0,D.outerWidth)(this.getInputElement()),height:(0,D.outerHeight)(this.getInputElement())}}},{key:"resetSize",value:function(){var x=this.getInputElement(); 4065x.style.width="";x.style.height=""}},{key:"setReadOnlyState",value:function(x){this.getInputElement().readOnly=x}},{key:"show",value:function(){this.editorStyle.display="block";this.hidden=!1}},{key:"hide",value:function(){this.hidden||(this.editorStyle.display="none");this.hidden=!0}},{key:"isVisible",value:function(){return"block"===this.editorStyle.display}},{key:"setValue",value:function(){var x=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=x}},{key:"getValue", 4066value:function(){return this.getInputElement().value}},{key:"isFocused",value:function(){return this.rootDocument.activeElement===this.getInputElement()}},{key:"focus",value:function(){this.getInputElement().focus()}},{key:"createEditor",value:function(){var x=this.rootDocument.createElement("div"),q=this.rootDocument.createElement("textarea");return x.style.display="none",this.container=this.rootDocument.createElement("div"),this.container.setAttribute("dir",this.isRtl?"rtl":"ltr"),(0,D.addClass)(this.container, 4067A.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container),(0,D.addClass)(x,A.CLASS_EDITOR),(0,D.addClass)(q,A.CLASS_INPUT),x.appendChild(q),this.container.appendChild(x),x}},{key:"getInputElement",value:function(){return this.editor.querySelector(".".concat(A.CLASS_INPUT))}},{key:"destroy",value:function(){var x=this.container?this.container.parentNode:null;this.editor.parentNode.removeChild(this.editor);this.editorStyle=this.editor=null;x&&x.removeChild(this.container)}}],[{key:"CLASS_EDITOR_CONTAINER", 4068get:function(){return"htCommentsContainer"}},{key:"CLASS_EDITOR",get:function(){return"htComments"}},{key:"CLASS_INPUT",get:function(){return"htCommentTextArea"}},{key:"CLASS_CELL",get:function(){return"htCommentCell"}}]),A}();b.default=a},function(g,b,a){var F=a(1);b.__esModule=!0;b.default=void 0;a(77);var B=F(a(5)),D=F(a(6)),A=a(70);g=a(17);a=F(a(98));F=function(){function x(q){(0,B.default)(this,x);this.wasLastActionShow=!0;this.hidingTimer=this.showDebounced=null;this.updateDelay(q)}return(0,D.default)(x, 4069[{key:"hide",value:function(){var q=this;this.wasLastActionShow=!1;this.hidingTimer=setTimeout(function(){!1===q.wasLastActionShow&&q.runLocalHooks("hide")},250)}},{key:"show",value:function(q){this.wasLastActionShow=!0;this.showDebounced(q)}},{key:"cancelHiding",value:function(){this.wasLastActionShow=!0;clearTimeout(this.hidingTimer);this.hidingTimer=null}},{key:"updateDelay",value:function(){var q=this;
4069this.showDebounced=(0,A.debounce)(function(p){q.wasLastActionShow&&q.runLocalHooks("show",p.from.row, 4070p.from.col)},0<arguments.length&&void 0!==arguments[0]?arguments[0]:250)}},{key:"destroy",value:function(){this.clearLocalHooks()}}]),x}();(0,g.mixin)(F,a.default);b.default=F},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ContextMenu=void 0;g=a(954);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.ContextMenu=g.ContextMenu},function(g,b,a){function F(t){var u=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1; 4071if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(w){return!1}}();return function(){var w=(0,e.default)(t);if(u){var v=(0,e.default)(this).constructor;w=Reflect.construct(w,arguments,v)}else w=w.apply(this,arguments);return(0,p.default)(this,w)}}a(0);a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ContextMenu=void 0;a(18);var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=a(50), 4072d=g(a(71)),h=a(20),k=g(a(638)),f=g(a(60)),n=g(a(639)),l=g(a(328)),r=a(23),m=a(126);a(968);b.PLUGIN_KEY="contextMenu";b.PLUGIN_PRIORITY=70;d.default.getSingleton().register("afterContextMenuDefaultOptions");d.default.getSingleton().register("beforeContextMenuShow");d.default.getSingleton().register("afterContextMenuShow");d.default.getSingleton().register("afterContextMenuHide");d.default.getSingleton().register("afterContextMenuExecute");a=function(t){function u(v){var C;return(0,B.default)(this, 4073u),(C=w.call(this,v)).eventManager=new f.default((0,A.default)(C)),C.commandExecutor=new k.default(C.hot),C.itemsFactory=null,C.menu=null,C}(0,q.default)(u,t);var w=F(u);return(0,D.default)(u,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().contextMenu}},{key:"enablePlugin",value:function(){var v=this;if(!this.enabled){var C=this.hot.getSettings().contextMenu;"function"==typeof C.callback&&this.commandExecutor.setCommonCallback(C.callback);this.menu=new l.default(this.hot,{className:"htContextMenu", 4074keepInViewport:!0,container:C.uiContainer||this.hot.rootDocument.body});this.menu.addLocalHook("beforeOpen",function(){return v.onMenuBeforeOpen()});this.menu.addLocalHook("afterOpen",function(){return v.onMenuAfterOpen()});this.menu.addLocalHook("afterClose",function(){return v.onMenuAfterClose()});this.menu.addLocalHook("executeCommand",function(){for(var y,z=arguments.length,E=Array(z),H=0;H<z;H++)E[H]=arguments[H];return(y=v.executeCommand).call.apply(y,[v].concat(E))});this.addHook("afterOnCellContextMenu", 4075function(y){return v.onAfterOnCellContextMenu(y)});(0,x.default)((0,e.default)(u.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();(0,x.default)((0,e.default)(u.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close();this.menu&&(this.menu.destroy(),this.menu=null);(0,x.default)((0,e.default)(u.prototype),"disablePlugin",this).call(this)}},{key:"open",value:function(v){if(this.menu&&(this.prepareMenuItems(), 4076this.menu.open(),this.menu.isOpened())){if(this.hot.rootDocument!==this.menu.container.ownerDocument){var C=this.hot.rootWindow.frameElement.getBoundingClientRect();var y=C.left;C=C.top-(0,r.getWindowScrollTop)(v.view);y-=(0,r.getWindowScrollLeft)(v.view)}else C=-1*(0,r.getWindowScrollTop)(this.menu.hotMenu.rootWindow),y=-1*(0,r.getWindowScrollLeft)(this.menu.hotMenu.rootWindow);this.menu.setPosition({top:parseInt(v.pageY,10)+C,left:parseInt(v.pageX,10)+y})}}},{key:"close",value:function(){this.menu&& 4077(this.menu.close(),this.itemsFactory=null)}},{key:"executeCommand",value:function(v){var C;null===this.itemsFactory&&this.prepareMenuItems();for(var y=arguments.length,z=Array(1<y?y-1:0),E=1;E<y;E++)z[E-1]=arguments[E];(C=this.commandExecutor).execute.apply(C,[v].concat(z))}},{key:"prepareMenuItems",value:function(){var v=this;this.itemsFactory=new n.default(this.hot,u.DEFAULT_ITEMS);var C=this.hot.getSettings().contextMenu,y={items:this.itemsFactory.getItems(C)};this.hot.runHooks("afterContextMenuDefaultOptions", 4078y);this.itemsFactory.setPredefinedItems(y.items);C=this.itemsFactory.getItems(C);this.hot.runHooks("beforeContextMenuSetItems",C);this.menu.setMenuItems(C);(0,h.arrayEach)(C,function(z){return v.commandExecutor.registerCommand(z.key,z)})}}
4078,{key:"onAfterOnCellContextMenu",value:function(v){var C=this.hot.getSettings(),y=C.rowHeaders;C=C.colHeaders;var z=v.target;this.close();(0,r.hasClass)(z,"handsontableInput")||(v.preventDefault(),v.stopPropagation(),(y||C||"TD"===z.nodeName||"TD"===z.parentNode.nodeName|| 4079(0,r.hasClass)(z,"current")&&(0,r.hasClass)(z,"wtBorder"))&&this.open(v))}},{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeContextMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterContextMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen();this.hot.runHooks("afterContextMenuHide",this)}},{key:"destroy",value:function(){this.close();this.menu&&this.menu.destroy();(0,x.default)((0,e.default)(u.prototype),"destroy",this).call(this)}}], 4080[{key:"PLUGIN_KEY",get:function(){return"contextMenu"}},{key:"PLUGIN_PRIORITY",get:function(){return 70}},{key:"PLUGIN_DEPS",get:function(){return["plugin:AutoColumnSize"]}},{key:"DEFAULT_ITEMS",get:function(){return[m.ROW_ABOVE,m.ROW_BELOW,m.SEPARATOR,m.COLUMN_LEFT,m.COLUMN_RIGHT,m.SEPARATOR,m.REMOVE_ROW,m.REMOVE_COLUMN,m.SEPARATOR,m.UNDO,m.REDO,m.SEPARATOR,m.READ_ONLY,m.SEPARATOR,m.ALIGNMENT]}}]),u}(c.BasePlugin);b.ContextMenu=a;a.SEPARATOR={name:m.SEPARATOR}},function(g,b,a){function F(p){if("function"!= 4081typeof WeakMap)return null;var e=new WeakMap,c=new WeakMap;return(F=function(d){return d?c:e})(p)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:q,name:function(){return this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled:function(){return 0===this.countRows()||0===this.countCols()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:"".concat(q,":left"),name:function(){var p=this,e=this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT); 4082return(0,D.checkSelectionConsistency)(this.getSelectedRange(),function(c,d){if((c=p.getCellMeta(c,d).className)&&-1!==c.indexOf("htLeft"))return!0})&&(e=(0,D.markLabelAsSelected)(e)),e},callback:function(){var p=this,e=this.getSelectedRange(),c=(0,D.getAlignmentClasses)(e,function(d,h){return p.getCellMeta(d,h).className});this.runHooks("beforeCellAlignment",c,e,"horizontal","htLeft");(0,D.align)(e,"horizontal","htLeft",function(d,h){return p.getCellMeta(d,h)},function(d,h,k,f){return p.setCellMeta(d, 4083h,k,f)});this.render()},disabled:!1},{key:"".concat(q,":center"),name:function(){var p=this,e=this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER);return(0,D.checkSelectionConsistency)(this.getSelectedRange(),function(c,d){if((c=p.getCellMeta(c,d).className)&&-1!==c.indexOf("htCenter"))return!0})&&(e=(0,D.markLabelAsSelected)(e)),e},callback:function(){var p=this,e=this.getSelectedRange(),c=(0,D.getAlignmentClasses)(e,function(d,h){return p.getCellMeta(d,h).className});this.runHooks("beforeCellAlignment", 4084c,e,"horizontal","htCenter");(0,D.align)(e,"horizontal","htCenter",function(d,h){return p.getCellMeta(d,h)},function(d,h,k,f){return p.setCellMeta(d,h,k,f)});this.render()},disabled:!1},{key:"".concat(q,":right"),name:function(){var p=this,e=this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT);return(0,D.checkSelectionConsistency)(this.getSelectedRange(),function(c,d){if((c=p.getCellMeta(c,d).className)&&-1!==c.indexOf("htRight"))return!0})&&(e=(0,D.markLabelAsSelected)(e)),e},callback:function(){var p= 4085this,e=this.getSelectedRange(),c=(0,D.getAlignmentClasses)(e,function(d,h){return p.getCellMeta(d,h).className});this.runHooks("beforeCellAlignment",c,e,"horizontal","htRight");(0,D.align)(e,"horizontal","htRight",function(d,h){return p.getCellMeta(d,h)},function(d,h,k,f){return p.setCellMeta(d,h,k,f)});this.render()},disabled:!1},{key:"".concat(q,":justify"),name:function(){var p=this,e=this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY);return(0,D.checkSelectionConsistency)(this.getSelectedRange(), 4086function(c,d){if((c=p.getCellMeta(c,d).className)&&-1!==c.indexOf("htJustify"))return!0})&&(e=(0,D.markLabelAsSelected)(e)),e},callback:function(){var p=this,e=this.getSelectedRange(),c=(0,D.getAlignmentClasses)(e,function(d,h){return p.getCellMeta(d,h).className});this.runHooks("beforeCellAlignment",c,e,"horizontal","htJustify");(0,D.align)(e,"horizontal","htJustify",function(d,h){return p.getCellMeta(d,h)},function(d,h,k,f){return p.setCellMeta(d,h,k,f)});this.render()},disabled:!1},{name:A.KEY}, 4087{key:"".concat(q,":top"),name:function(){var p=this,e=this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ALIGNMENT_TOP);return(0,D.checkSelectionConsistency)(this.getSelectedRange(),function(c,d){if((c=p.getCellMeta(c,d).className)&&-1!==c.indexOf("htTop"))return!0})&&(e=(0,D.markLabelAsSelected)(e)),e},callback:function(){var p=this,e=this.getSelectedRange(),c=(0,D.getAlignmentClasses)(e,function(d,h){return p.getCellMeta(d,h).className});this.runHooks("beforeCellAlignment",c,e,"vertical","htTop");(0,D.align)(e, 4088"vertical","htTop",function(d,h){return p.getCellMeta(d,h)},function(d,h,k,f){return p.setCellMeta(d,h,k,f)});this.render()},disabled:!1},{key:"".concat(q,":middle"),name:function(){var p=this,e=this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE);return(0,D.checkSelectionConsistency)(this.getSelectedRange(),function(c,d){if((c=p.getCellMeta(c,d).className)&&-1!==c.indexOf("htMiddle"))return!0})&&(e=(0,D.markLabelAsSelected)(e)),e},callback:function(){var p=this,e=this.getSelectedRange(), 4089c=(0,D.getAlignmentClasses)(e,function(d,h){return p.getCellMeta(d,h).className});this.runHooks("beforeCellAlignment",c,e,"vertical","htMiddle");(0,D.align)(e,"vertical","htMiddle",function(d,h){return p.getCellMeta(d,h)},function(d,h,k,f){return p.setCellMeta(d,h,k,f)});this.render()},disabled:!1},{key:"".concat(q,":bottom"),name:function(){var p=this,e=this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM);return(0,D.checkSelectionConsistency)(this.getSelectedRange(),function(c,d){if((c= 4090p.getCellMeta(c,d).className)&&-1!==c.indexOf("htBottom"))return!0})&&(e=(0,D.markLabelAsSelected)(e)),e},callback:function(){var p=this,e=this.getSelectedRange(),c=(0,D.getAlignmentClasses)(e,function(d,h){return p.getCellMeta(d,h).className});this.runHooks("beforeCellAlignment",c,e,"vertical","htBottom");(0,D.align)(e,"vertical","htBottom",function(d,h){return p.getCellMeta(d,h)},function(d,h,k,f){return p.setCellMeta(d,h,k,f)});this.render()},disabled:!1}]}}};a(33);var D=a(111),A=a(327),x=function(p, 4091e){if(!e&&p&&p.__esModule)return p;if(null===p||"object"!==B(p)&&"function"!=typeof p)return{default:p};if((e=F(e))&&e.has(p))return e.get(p);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor,h;for(h in p)if("default"!==h&&Object.prototype.hasOwnProperty.call(p,h)){var k=d?Object.getOwnPropertyDescriptor(p,h):null;k&&(k.get||k.set)?Object.defineProperty(c,h,k):c[h]=p[h]}c.default=p;e&&e.set(p,c);return c}(a(29)),q="alignment";b.KEY=q},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null; 4092var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:x,name:function(){return this.getTranslatedPhrase(A.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback:function(q,p){q=p[0].start.col;var e=p[0].end.col;this.countRows()&&this.populateFromArray(0,q,[[null]],Math.max(p[0].start.row,p[0].end.row),e,"ContextMenu.clearColumn")},disabled:function(){return!(0,D.getValidSelection)(this)||!this.selection.isSelectedByColumnHeader()}}};
4093var D=a(111),A=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==B(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29)),x="clear_column";b.KEY=x},function(g,b,a){function F(q){if("function"!= 4094typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:"col_left",name:function(){return this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback:function(){var q=this.selection.isSelectedByCorner(),p=this.isRtl()?this.countCols():0;if(!q){var e=this.getSelectedRangeLast();(0,A.isDefined)(e)&&(p=e.getTopLeftCorner().col,p=this.isRtl()?p+1:p)}this.alter("insert_col", 4095p,1,"ContextMenu.columnLeft");q&&this.selectAll()},disabled:function(){return!this.isColumnModificationAllowed()||!(0,D.getValidSelection)(this)||(this.selection.isSelectedByCorner()?0===this.countCols():this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols)},hidden:function(){return!this.getSettings().allowInsertColumn}}};var D=a(111),A=a(31),x=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==B(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&& 4096p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));b.KEY="col_left"},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}a(3);a(0);a(2);a(11);a(4); 4097a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:"col_right",name:function(){return this.getTranslatedPhrase(A.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback:function(){var q=this.selection.isSelectedByCorner(),p=this.isRtl()?0:this.countCols();if(!q){var e=this.getSelectedRangeLast();(0,x.isDefined)(e)&&(p=e.getTopRightCorner().col,p=this.isRtl()?p:p+1)}this.alter("insert_col",p,1,"ContextMenu.columnRight");q&&this.selectAll()},disabled:function(){return!this.isColumnModificationAllowed()|| 4098!(0,D.getValidSelection)(this)||!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByRowHeader()||this.countCols()>=this.getSettings().maxCols)},hidden:function(){return!this.getSettings().allowInsertColumn}}};var D=a(111),A=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==B(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q, 4099d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29)),x=a(31);b.KEY="col_right"},function(g,b,a){function F(p){if("function"!=typeof WeakMap)return null;var e=new WeakMap,c=new WeakMap;return(F=function(d){return d?c:e})(p)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:q,name:function(){var p=this,e=this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_READ_ONLY); 4100return(0,D.checkSelectionConsistency)(this.getSelectedRange(),function(c,d){return p.getCellMeta(c,d).readOnly})&&(e=(0,D.markLabelAsSelected)(e)),e},callback:function(){var p=this,e=this.getSelectedRange(),c=(0,D.checkSelectionConsistency)(e,function(d,h){return p.getCellMeta(d,h).readOnly});(0,A.arrayEach)(e,function(d){d.forAll(function(h,k){0<=h&&0<=k&&p.setCellMeta(h,k,"readOnly",!c)})});this.render()},disabled:function(){return!!this.selection.isSelectedByCorner()||0===this.countRows()||0=== 4101this.countCols()||!this.getSelectedRange()||0===this.getSelectedRange().length}}};var D=a(111),A=a(20),x=function(p,e){if(!e&&p&&p.__esModule)return p;if(null===p||"object"!==B(p)&&"function"!=typeof p)return{default:p};if((e=F(e))&&e.has(p))return e.get(p);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor,h;for(h in p)if("default"!==h&&Object.prototype.hasOwnProperty.call(p,h)){var k=d?Object.getOwnPropertyDescriptor(p,h):null;k&&(k.get||k.set)?Object.defineProperty(c,h,k):c[h]=p[h]}c.default= 4102p;e&&e.set(p,c);return c}(a(29)),q="make_read_only";
4102b.KEY=q},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap;return(F=function(p){return p?q:x})(A)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:"redo",name:function(){return this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_REDO)},callback:function(){this.redo()},hidden:function(){var A=this.getPlugin("undoRedo");return!A||!A.isEnabled()}, 4103disabled:function(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};var D=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==B(A)&&"function"!=typeof A)return{default:A};if((x=F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]=A[e]}q.default=A;x&&x.set(A, 4104q);return q}(a(29));b.KEY="redo"},function(g,b,a){function F(e){if("function"!=typeof WeakMap)return null;var c=new WeakMap,d=new WeakMap;return(F=function(h){return h?d:c})(e)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:p,name:function(){var e=this.getSelected(),c=0;e&&(1<e.length?c=1:(e=(0,D.default)(e[0],4),0!=e[1]-e[3]&&(c=1)));return this.getTranslatedPhrase(q.CONTEXTMENU_ITEMS_REMOVE_COLUMN,c)},callback:function(){this.alter("remove_col", 4105(0,x.transformSelectionToColumnDistance)(this.getSelected()),null,"ContextMenu.removeColumn")},disabled:function(){if(!this.isColumnModificationAllowed()||!(0,A.getValidSelection)(this))return!0;var e=this.countCols();return this.selection.isSelectedByCorner()?0===e:this.selection.isSelectedByRowHeader()||0===e},hidden:function(){return!this.getSettings().allowRemoveColumn}}};var D=g(a(34)),A=a(111),x=a(248),q=function(e,c){if(!c&&e&&e.__esModule)return e;if(null===e||"object"!==B(e)&&"function"!= 4106typeof e)return{default:e};if((c=F(c))&&c.has(e))return c.get(e);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor,k;for(k in e)if("default"!==k&&Object.prototype.hasOwnProperty.call(e,k)){var f=h?Object.getOwnPropertyDescriptor(e,k):null;f&&(f.get||f.set)?Object.defineProperty(d,k,f):d[k]=e[k]}d.default=e;c&&c.set(e,d);return d}(a(29)),p="remove_col";b.KEY=p},function(g,b,a){function F(e){if("function"!=typeof WeakMap)return null;var c=new WeakMap,d=new WeakMap;return(F=function(h){return h? 4107d:c})(e)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:p,name:function(){var e=this.getSelected(),c=0;e&&(1<e.length?c=1:(e=(0,D.default)(e[0],3),0!=e[0]-e[2]&&(c=1)));return this.getTranslatedPhrase(q.CONTEXTMENU_ITEMS_REMOVE_ROW,c)},callback:function(){this.alter("remove_row",(0,x.transformSelectionToRowDistance)(this.getSelected()),1,"ContextMenu.removeRow")},disabled:function(){if(!(0,A.getValidSelection)(this))return!0;var e=this.countRows(); 4108return this.selection.isSelectedByCorner()?0===e:this.selection.isSelectedByColumnHeader()||0===e},hidden:function(){return!this.getSettings().allowRemoveRow}}};var D=g(a(34)),A=a(111),x=a(248),q=function(e,c){if(!c&&e&&e.__esModule)return e;if(null===e||"object"!==B(e)&&"function"!=typeof e)return{default:e};if((c=F(c))&&c.has(e))return c.get(e);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor,k;for(k in e)if("default"!==k&&Object.prototype.hasOwnProperty.call(e,k)){var f=h?Object.getOwnPropertyDescriptor(e, 4109k):null;f&&(f.get||f.set)?Object.defineProperty(d,k,f):d[k]=e[k]}d.default=e;c&&c.set(e,d);return d}(a(29)),p="remove_row";b.KEY=p},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:"row_above",name:function(){return this.getTranslatedPhrase(A.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback:function(x,q){x=this.selection.isSelectedByCorner(); 4110var p=0;x||(p=q[Math.max(q.length-1,0)].start.row);this.alter("insert_row",p,1,"ContextMenu.rowAbove");x&&this.selectAll()},disabled:function(){return!(0,D.getValidSelection)(this)||(this.selection.isSelectedByCorner()?0===this.countRows():this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}};var D=a(111),A=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x}; 4111if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29));b.KEY="row_above"},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}a(3);a(0);a(2); 4112a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:"row_below",name:function(){return this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_ROW_BELOW)},callback:function(q,p){q=this.selection.isSelectedByCorner();if(q)var e=this.countRows();else p=p[Math.max(p.length-1,0)],p=null==p||null===(e=p.end)||void 0===e?void 0:e.row,e=(0,A.isDefined)(p)?p+1:0;this.alter("insert_row",e,1,"ContextMenu.rowBelow");q&&this.selectAll()},disabled:function(){return!(0,D.getValidSelection)(this)|| 4113!this.selection.isSelectedByCorner()&&(this.selection.isSelectedByColumnHeader()||this.countRows()>=this.getSettings().maxRows)},hidden:function(){return!this.getSettings().allowInsertRow}}};
4113var D=a(111),A=a(31),x=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==B(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q, 4114d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));b.KEY="row_below"},function(g,b,a){b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:"no_items",name:function(){return this.getTranslatedPhrase(F.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var F=a(29);b.KEY="no_items"},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap; 4115return(F=function(p){return p?q:x})(A)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.KEY=void 0;b.default=function(){return{key:"undo",name:function(){return this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_UNDO)},callback:function(){this.undo()},hidden:function(){var A=this.getPlugin("undoRedo");return!A||!A.isEnabled()},disabled:function(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};var D=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==B(A)&&"function"!= 4116typeof A)return{default:A};if((x=F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]=A[e]}q.default=A;x&&x.set(A,q);return q}(a(29));b.KEY="undo"},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=a(23);a=function(){function A(x,q){(0,F.default)(this, 4117A);var p,e,c,d,h,k,f=(0,D.getWindowScrollTop)(q),n=(0,D.getWindowScrollLeft)(q);this.rootWindow=q;this.type=this.getSourceType(x);"literal"===this.type?(p=parseInt(x.top,10),c=parseInt(x.left,10),h=x.height||0,k=x.width||0,e=p,d=c,p+=f,c+=n):"event"===this.type&&(p=parseInt(x.pageY,10),c=parseInt(x.pageX,10),h=x.target.clientHeight,k=x.target.clientWidth,e=p-f,d=c-n);this.top=p;this.topRelative=e;this.left=c;this.leftRelative=d;this.scrollTop=f;this.scrollLeft=n;this.cellHeight=h;this.cellWidth=k} 4118return(0,B.default)(A,[{key:"getSourceType",value:function(x){var q="literal";return x instanceof Event&&(q="event"),q}},{key:"fitsAbove",value:function(x){return this.topRelative>=x.offsetHeight}},{key:"fitsBelow",value:function(x){return this.topRelative+x.offsetHeight<=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight)}},{key:"fitsOnRight",value:function(x){return this.leftRelative+this.cellWidth+x.offsetWidth<=(1<arguments.length&&void 0!==arguments[1]?arguments[1]: 4119this.rootWindow.innerWidth)}},{key:"fitsOnLeft",value:function(x){return this.leftRelative>=x.offsetWidth}}]),A}();b.default=a},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.CopyPaste=void 0;g=a(970);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.CopyPaste=g.CopyPaste},function(g,b,a){function F(E){var H=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 4120[],function(){})),!0}catch(G){return!1}}();return function(){var G=(0,d.default)(E);if(H){var I=(0,d.default)(this).constructor;G=Reflect.construct(G,arguments,I)}else G=G.apply(this,arguments);return(0,c.default)(this,G)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.CopyPaste=void 0;var B=g(a(34)),D=g(a(21)),A=g(a(5)),x=g(a(6)),q=g(a(44)),p=g(a(30)),e=g(a(15)),c=g(a(16)),d=g(a(14));a(3);a(0);a(2);a(11);a(4);a(76);a(33);a(12);a(18);var h=a(50),k=g(a(71)),f=a(610),n=a(20),l=a(47),r= 4121a(97),m=a(23),t=g(a(971)),u=g(a(972)),w=g(a(973)),v=a(975),C=a(310);a(976);k.default.getSingleton().register("afterCopyLimit");k.default.getSingleton().register("modifyCopyableRange");k.default.getSingleton().register("beforeCut");k.default.getSingleton().register("afterCut");k.default.getSingleton().register("beforePaste");k.default.getSingleton().register("afterPaste");k.default.getSingleton().register("beforeCopy");k.default.getSingleton().register("afterCopy");b.PLUGIN_KEY="copyPaste";b.PLUGIN_PRIORITY= 412280;var y=["fragmentSelection"],z=new WeakMap;a=function(E){function H(I){var K;return(0,A.default)(this,H),(K=G.call(this,I)).columnsLimit=1/0,K.copyableRanges=[],K.focusableElement=void 0,K.pasteMode="overwrite",K.rowsLimit=1/0,K.uiContainer=K.hot.rootDocument.body,z.set((0,q.default)(K),{isTriggeredByCopy:!1,isTriggeredByCut:!1,isBeg
4122inEditing:!1,isFragmentSelectionEnabled:!1}),K}(0,e.default)(H,E);var G=F(H);return(0,x.default)(H,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().copyPaste}}, 4123{key:"enablePlugin",value:function(){var I=this;if(!this.enabled){var K=this.hot.getSettings(),J=K.copyPaste;K=K.fragmentSelection;z.get(this).isFragmentSelectionEnabled=!!K;"object"===(0,D.default)(J)&&(this.pasteMode=J.pasteMode||this.pasteMode,this.rowsLimit=isNaN(J.rowsLimit)?this.rowsLimit:J.rowsLimit,this.columnsLimit=isNaN(J.columnsLimit)?this.columnsLimit:J.columnsLimit,this.uiContainer=J.uiContainer||this.uiContainer);this.addHook("afterContextMenuDefaultOptions",function(P){return I.onAfterContextMenuDefaultOptions(P)}); 4124this.addHook("afterOnCellMouseUp",function(){return I.onAfterOnCellMouseUp()});this.addHook("afterSelectionEnd",function(){return I.onAfterSelectionEnd()});this.addHook("beforeKeyDown",function(){return I.onBeforeKeyDown()});this.focusableElement=(0,v.createElement)(this.uiContainer);this.focusableElement.addLocalHook("copy",function(P){return I.onCopy(P)}).addLocalHook("cut",function(P){return I.onCut(P)}).addLocalHook("paste",function(P){return I.onPaste(P)});(0,p.default)((0,d.default)(H.prototype), 4125"enablePlugin",this).call(this)}}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();this.getOrCreateFocusableElement();(0,p.default)((0,d.default)(H.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.focusableElement&&(0,v.destroyElement)(this.focusableElement);(0,p.default)((0,d.default)(H.prototype),"disablePlugin",this).call(this)}},{key:"copy",value:function(){z.get(this).isTriggeredByCopy=!0;this.getOrCreateFocusableElement(); 4126this.focusableElement.focus();this.hot.rootDocument.execCommand("copy")}},{key:"cut",value:function(){z.get(this).isTriggeredByCut=!0;this.getOrCreateFocusableElement();this.focusableElement.focus();this.hot.rootDocument.execCommand("cut")}},{key:"getRangedCopyableData",value:function(I){var K=this,J=[],P=[],S=[];return(0,n.arrayEach)(I,function(R){(0,l.rangeEach)(R.startRow,R.endRow,function(O){-1===P.indexOf(O)&&P.push(O)});(0,l.rangeEach)(R.startCol,R.endCol,function(O){-1===S.indexOf(O)&&S.push(O)})}), 4127(0,n.arrayEach)(P,function(R){var O=[];(0,n.arrayEach)(S,function(N){O.push(K.hot.getCopyableData(R,N))});J.push(O)}),(0,f.stringify)(J)}},{key:"getRangedData",value:function(I){var K=this,J=[],P=[],S=[];return(0,n.arrayEach)(I,function(R){(0,l.rangeEach)(R.startRow,R.endRow,function(O){-1===P.indexOf(O)&&P.push(O)});(0,l.rangeEach)(R.startCol,R.endCol,function(O){-1===S.indexOf(O)&&S.push(O)})}),(0,n.arrayEach)(P,function(R){var O=[];(0,n.arrayEach)(S,function(N){O.push(K.hot.getCopyableData(R,N))}); 4128J.push(O)}),J}},{key:"paste",value:function(){var I=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",K=1<arguments.length&&void 0!==arguments[1]?arguments[1]:I;if(I||K){var J=new w.default;I&&J.clipboardData.setData("text/plain",I);K&&J.clipboardData.setData("text/html",K);this.getOrCreateFocusableElement();this.onPaste(J)}}},{key:"setCopyableText",value:function(){var I=this.hot.getSelectedRangeLast();if(I){var K=I.getTopStartCorner(),J=I.getBottomEndCorner();I=K.row;K=K.col;var P=J.row; 4129J=J.col;var S=Math.min(P,I+this.rowsLimit-1),R=Math.min(J,K+this.columnsLimit-1);this.copyableRanges.length=0;this.copyableRanges.push({startRow:I,startCol:K,endRow:S,endCol:R});this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);P===S&&J===R||this.hot.runHooks("afterCopyLimit",P-I+1,J-K+1,this.rowsLimit,this.columnsLimit)}}},{key:"getOrCreateFocusableElement",value:function(){var I=this.hot.getActiveEditor();(I=I?I.TEXTAREA:void 0)?this.focusableElement.setFocusableElement(I): 4130this.focusableElement.useSecondaryElement()}},{key:"isEditorOpened",value:function(){var I=this.hot.getActiveEditor();return I&&I.isOpened()}},{key:"populateValues",value:function(I){var K=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(I.length){var J=I.length,P=I[0].length,S=[],R=K.getTopStartCorner(),O=R.row;R=R.col;var N=K.getBottomEndCorner();K=N.row;N=N.col;for(var Q=O,M,T=O,Z=R;S.length<J||Q<=K;){Q=this.hot.getCellMeta(Q,R);var L=Q.skipRowOnPaste,U= 4131Q.visualRow;if(Q=U+1,!0!==L){T=U;M=R;L=[];for(U=S.length%J;L.length<P||M<=N;){M=this.hot.getCellMeta(O,M);var V=M.skipColumnOnPaste,Y=M.visualCol;if(M=Y+1,!0!==V)Z=Y,L.push(I[U][L.length%P])}S.push(L)}}return this.hot.populateFromArray(O,R,S,void 0,void 0,"CopyPaste.paste",this.pasteMode),[O,R,T,Z]}}},{key:"onCopy",value:function(I){var K=z.get(this);
4131if((this.hot.isListening()||K.isTriggeredByCopy)&&!this.isEditorOpened()){this.setCopyableText();K.isTriggeredByCopy=!1;K=this.getRangedData(this.copyableRanges); 4132if(this.hot.runHooks("beforeCopy",K,this.copyableRanges)){var J=(0,f.stringify)(K);if(I&&I.clipboardData){var P=(0,C._dataToHTML)(K,this.hot.rootDocument);I.clipboardData.setData("text/plain",J);I.clipboardData.setData("text/html",['\x3cmeta name\x3d"generator" content\x3d"Handsontable"/\x3e\x3cstyle type\x3d"text/css"\x3etd{white-space:normal}br{mso-data-placement:same-cell}\x3c/style\x3e',P].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",J);this.hot.runHooks("afterCopy", 4133K,this.copyableRanges)}I.preventDefault()}}},{key:"onCut",value:function(I){var K=z.get(this);if((this.hot.isListening()||K.isTriggeredByCut)&&!this.isEditorOpened()){this.setCopyableText();K.isTriggeredByCut=!1;K=this.getRangedData(this.copyableRanges);if(this.hot.runHooks("beforeCut",K,this.copyableRanges)){var J=(0,f.stringify)(K);if(I&&I.clipboardData){var P=(0,C._dataToHTML)(K,this.hot.rootDocument);I.clipboardData.setData("text/plain",J);I.clipboardData.setData("text/html",['\x3cmeta name\x3d"generator" content\x3d"Handsontable"/\x3e\x3cstyle type\x3d"text/css"\x3etd{white-space:normal}br{mso-data-placement:same-cell}\x3c/style\x3e', 4134P].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",J);this.hot.emptySelectedCells("CopyPaste.cut");this.hot.runHooks("afterCut",K,this.copyableRanges)}I.preventDefault()}}},{key:"onPaste",value:function(I){if(this.hot.isListening()&&!this.isEditorOpened()){if(I&&I.preventDefault&&I.preventDefault(),I&&void 0!==I.clipboardData)var K=(K=(0,r.sanitize)(I.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0}))&&/(<table)|(<TABLE)/g.test(K)? 4135(0,C.htmlToGridSettings)(K,this.hot.rootDocument).data:I.clipboardData.getData("text/plain");else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(K=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof K&&(K=(0,f.parse)(K)),(!K||0!==K.length)&&!1!==this.hot.runHooks("beforePaste",K,this.copyableRanges)){I=this.populateValues(K);I=(0,B.default)(I,4);var J=I[2],P=I[3];this.hot.selectCell(I[0],I[1],Math.min(this.hot.countRows()-1,J),Math.min(this.hot.countCols()- 41361,P));this.hot.runHooks("afterPaste",K,this.copyableRanges)}}}},{key:"onAfterContextMenuDefaultOptions",value:function(I){I.items.push({name:"---------"},(0,t.default)(this),(0,u.default)(this))}},{key:"onAfterOnCellMouseUp",value:function(){!this.hot.isListening()||this.isEditorOpened()||this.hot.getSettings().fragmentSelection||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}},{key:"onAfterSelectionEnd",value:function(){var I=z.get(this).isFragmentSelectionEnabled;this.isEditorOpened()|| 4137(this.getOrCreateFocusableElement(),I&&this.focusableElement.getFocusableElement()!==this.hot.rootDocument.activeElement&&(0,m.getSelectionText)()||(this.setCopyableText(),this.focusableElement.focus()))}},{key:"onBeforeKeyDown",value:function(){if(this.hot.isListening()&&!this.isEditorOpened()){var I=this.hot.rootDocument.activeElement,K=this.hot.getActiveEditor();!K||I!==this.focusableElement.getFocusableElement()&&I!==K.select||(this.getOrCreateFocusableElement(),this.focusableElement.focus())}}}, 4138{key:"destroy",value:function(){this.focusableElement&&((0,v.destroyElement)(this.focusableElement),this.focusableElement=null);(0,p.default)((0,d.default)(H.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"copyPaste"}},{key:"SETTING_KEYS",get:function(){return["copyPaste"].concat(y)}},{key:"PLUGIN_PRIORITY",get:function(){return 80}}]),H}(h.BasePlugin);b.CopyPaste=a},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap; 4139return(F=function(p){return p?q:x})(A)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.default=function(A){return{key:"copy",name:function(){return this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_COPY)},callback:function(){A.copy()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var x=this.getSelected();return!x||1<x.length},hidden:!1}};
4139var D=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==B(A)&&"function"!=typeof A)return{default:A};if((x= 4140F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]=A[e]}q.default=A;x&&x.set(A,q);return q}(a(29))},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap;return(F=function(p){return p?q:x})(A)}a(3);a(0);a(2);a(11);a(4);a(19);var B= 4141a(21);b.__esModule=!0;b.default=function(A){return{key:"cut",name:function(){return this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_CUT)},callback:function(){A.cut()},disabled:function(){if(0===this.countRows()||0===this.countCols())return!0;var x=this.getSelected();return!x||1<x.length},hidden:!1}};var D=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==B(A)&&"function"!=typeof A)return{default:A};if((x=F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor, 4142e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]=A[e]}q.default=A;x&&x.set(A,q);return q}(a(29))},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(6)),B=g(a(5)),D=g(a(974));a=(0,F.default)(function x(){(0,B.default)(this,x);this.clipboardData=new D.default});b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6));a=function(){function D(){(0,F.default)(this, 4143D);this.data={}}return(0,B.default)(D,[{key:"setData",value:function(A,x){this.data[A]=x}},{key:"getData",value:function(A){return this.data[A]||void 0}}]),D}();b.default=a},function(g,b,a){function F(k){k.eventManager.clear()}function B(k,f,n){k.addEventListener(f,"copy",d("copy",n));k.addEventListener(f,"cut",d("cut",n));k.addEventListener(f,"paste",d("paste",n))}g=a(1);b.__esModule=!0;b.createElement=function(k){var f=new e(k),n=c.get(k);return n=isNaN(n)?0:n,c.set(k,n+1),f};b.deactivateElement= 4144F;b.destroyElement=function(k){if(k instanceof e){var f=c.get(k.container);0<(f=isNaN(f)?0:f)&&--f;if(F(k),0>=f){f=0;var n=h.get(k.container);n&&n.parentNode&&(n.parentNode.removeChild(n),h.delete(k.container));k.mainElement=null}c.set(k.container,f)}};a(3);a(0);a(2);a(632);a(4);a(11);var D=g(a(5)),A=g(a(6)),x=g(a(60));b=g(a(98));g=a(17);var q=a(107),p=a(23),e=function(){function k(f){(0,D.default)(this,k);this.rootDocument=f.defaultView?f:f.ownerDocument;this.mainElement=null;this.eventManager=new x.default(this); 4145this.listenersCount=new WeakSet;this.container=f}return(0,A.default)(k,[{key:"useSecondaryElement",value:function(){var f=this.container;var n=h.get(f);n?f=(n.parentElement||f.appendChild(n),n):(n=(f.defaultView?f:f.ownerDocument).createElement("textarea"),f=(h.set(f,n),n.setAttribute("data-hot-input",""),n.className="HandsontableCopyPaste",n.tabIndex=-1,n.autocomplete="off",n.wrap="hard",n.value=" ",f.appendChild(n),n));this.listenersCount.has(f)||(this.listenersCount.add(f),B(this.eventManager, 4146f,this));this.mainElement=f}},{key:"setFocusableElement",value:function(f){this.listenersCount.has(f)||(this.listenersCount.add(f),B(this.eventManager,f,this));this.mainElement=f}},{key:"getFocusableElement",value:function(){return this.mainElement}},{key:"focus",value:function(){this.mainElement.value=" ";(0,q.isMobileBrowser)()||(0,p.selectElementIfAllowed)(this.mainElement)}}]),k}();(0,g.mixin)(e,b.default);var c=new WeakMap,d=function(k,f){return function(n){return f.runLocalHooks(k,n)}},h=new WeakMap}, 4147function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.CustomBorders=void 0;g=a(978);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.CustomBorders=g.CustomBorders},function(g,b,a){function F(w){if("function"!=typeof WeakMap)return null;var v=new WeakMap,C=new WeakMap;return(F=function(y){return y?C:v})(w)}function B(w){var v=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 4148try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}();return function(){var C=(0,h.default)(w);if(v){var y=(0,h.default)(this).constructor;C=Reflect.construct(C,arguments,y)}else C=C.apply(this,arguments);return(0,d.default)(this,C)}}a(0);a(7);a(3);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.CustomBorders=void 0;a(18);a(53);a(93);a(33);
4148a(55);var A=g(a(34)),x=g(a(5)),q=g(a(6)),p=g(a(44)),e=g(a(30)), 4149c=g(a(15)),d=g(a(16)),h=g(a(14)),k=g(a(41));g=a(50);var f=a(17),n=a(47),l=a(20),r=function(w,v){if(!v&&w&&w.__esModule)return w;if(null===w||"object"!==D(w)&&"function"!=typeof w)return{default:w};if((v=F(v))&&v.has(w))return v.get(w);var C={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor,z;for(z in w)if("default"!==z&&Object.prototype.hasOwnProperty.call(w,z)){var E=y?Object.getOwnPropertyDescriptor(w,z):null;E&&(E.get||E.set)?Object.defineProperty(C,z,E):C[z]=w[z]}C.default=w;v&&v.set(w, 4150C);return C}(a(29)),m=a(979),t=a(173),u=a(320);b.PLUGIN_KEY="customBorders";b.PLUGIN_PRIORITY=90;a=function(w){function v(){var y;(0,x.default)(this,v);for(var z=arguments.length,E=Array(z),H=0;H<z;H++)E[H]=arguments[H];return y=C.call.apply(C,[this].concat(E)),(0,k.default)((0,p.default)(y),"savedBorders",[]),y}(0,c.default)(v,w);var C=B(v);return(0,q.default)(v,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().customBorders}},{key:"enablePlugin",value:function(){var y=this;this.enabled|| 4151(this.addHook("afterContextMenuDefaultOptions",function(z){return y.onAfterContextMenuDefaultOptions(z)}),this.addHook("init",function(){return y.onAfterInit()}),(0,e.default)((0,h.default)(v.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.hideBorders();(0,e.default)((0,h.default)(v.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();this.changeBorderSettings();(0,e.default)((0,h.default)(v.prototype), 4152"updatePlugin",this).call(this)}},{key:"setBorders",value:function(y,z){var E=this,H=["top","bottom","start","end"],G=null;z&&(this.checkSettingsCohesion([z]),H=Object.keys(z),G=(0,t.normalizeBorder)(z));z=(0,u.detectSelectionType)(y);var I=(0,u.normalizeSelectionFactory)(z);(0,l.arrayEach)(y,function(K){K=I(K);var J=(0,A.default)(K,4),P=J[1];K=J[2];var S=J[3],R=function(O){for(var N=function(M){(0,l.arrayEach)(H,function(T){E.prepareBorderFromCustomAdded(O,M,G,(0,t.toInlinePropName)(T))})},Q=P;Q<= 4153S;Q+=1)N(Q)};for(J=J[0];J<=K;J+=1)R(J)});this.hot.view.render()}},{key:"getBorders",value:function(y){var z=this;if(!Array.isArray(y))return this.savedBorders;var E=(0,u.detectSelectionType)(y),H=(0,u.normalizeSelectionFactory)(E),G=[];return(0,l.arrayEach)(y,function(I){I=H(I);var K=(0,A.default)(I,4),J=K[1];I=K[2];var P=K[3],S=function(R){for(var O=function(Q){(0,l.arrayEach)(z.savedBorders,function(M){M.row===R&&M.col===Q&&G.push((0,t.denormalizeBorder)(M))})},N=J;N<=P;N+=1)O(N)};for(K=K[0];K<= 4154I;K+=1)S(K)}),G}},{key:"clearBorders",value:function(y){var z=this;y?this.setBorders(y):((0,l.arrayEach)(this.savedBorders,function(E){z.clearBordersFromSelectionSettings(E.id);z.clearNullCellRange();z.hot.removeCellMeta(E.row,E.col,"borders")}),this.savedBorders.length=0)}},{key:"insertBorderIntoSettings",value:function(y,z){this.checkSavedBorders(y)||this.savedBorders.push(y);var E=this.hot._createCellRange(this.hot._createCellCoords(y.row,y.col));this.checkCustomSelections(y,E,z)||this.hot.selection.highlight.addCustomSelection({border:y, 4155visualCellRange:E})}},{key:"prepareBorderFromCustomAdded",value:function(y,z,E,H){var G=this.hot.countRows(),I=this.hot.countCols();if(!(y>=G||z>=I)){var K=(0,t.createEmptyBorders)(y,z);E&&(K=(0,t.extendDefaultBorder)(K,E),(0,l.arrayEach)(this.hot.selection.highlight.customSelections,function(J){if(K.id===J.settings.id)return Object.assign(J.settings,E),K.id=J.settings.id,K.top=J.settings.top,K.bottom=J.settings.bottom,K.start=J.settings.start,K.end=J.settings.end,!1}));this.hot.setCellMeta(y,z,"borders", 4156(0,t.denormalizeBorder)(K));this.insertBorderIntoSettings(K,H)}}},{key:"prepareBorderFromCustomAddedRange",value:function(y,z){var E=this,H=Math.min(y.to.row,this.hot.countRows()-1),G=Math.min(y.to.col,this.hot.countCols()-1);(0,n.rangeEach)(y.from.row,H,function(I){(0,n.rangeEach)(y.from.col,G,function(K){var J=(0,t.createEmptyBorders)(I,K),P=0;I===y.from.row&&(0,f.hasOwnProperty)(z,"top")&&(P+=1,J.top=z.top);I===y.to.row&&(0,f.hasOwnProperty)(z,"bottom")&&(P+=1,J.bottom=z.bottom);K===y.from.col&& 4157(0,f.hasOwnProperty)(z,"start")&&(P+=1,J.start=z.start);K===y.to.col&&(0,f.hasOwnProperty)(z,"end")&&(P+=1,J.end=z.end);0<P&&(E.hot.setCellMeta(I,K,"borders",(0,t.denormalizeBorder)(J)),E.insertBorderIntoSettings(J))})})}},{key:"removeAllBorders",value:function(y,z){var E=(0,t.createId)(y,z);this.spliceBorder(E);this.clearBordersFromSelectionSettings(E);this.clearNullCellRange();this.hot.removeCellMeta(y,z,"borders")}},{key:"setBorder",value:function(y,z,E,H){var G=this.hot.getCellMeta(y,z).borders; 4158(G=G&&void 0!==G.border?(0,t.normalizeBorder)(G):(0,t.createEmptyBorders)(y,z),H)?(G[E]=(0,t.createSingleEmptyBorder)(),4===this.countHide(G)?this.removeAllBorders(y,z):(this.checkCustomSelectionsFromContextMenu(G,E,H)||this.insertBorderIntoSettings(G),this.hot.setCellMeta(y,z,"borders",(0,t.denormalizeBorder)(G)))):(G[E]=(0,t.createDefaultCustomBorder)(),this.checkCustomSelectionsFromContextMenu(G,E,H)||this.insertBorderIntoSettings(G),this.hot.setCellMeta(y,z,"borders",(0,t.denormalizeBorder)(G)))}}, 4159{key:"prepareBorder",value:function(y,z,E){var H=this;(0,l.arrayEach)(y,function(G){var I=G.start,K=G.end;if(I.row===K.row&&I.col===K.col)"noBorders"===z?H.removeAllBorders(I.row,I.col):H.setBorder(I.row,I.col,z,E);else switch(z){case "noBorders":(0,n.rangeEach)(I.col,K.col,function(J){(0,n.rangeEach)(I.row,K.row,function(P){H.removeAllBorders(P,J)})});break;case "top":(0,n.rangeEach)(I.col,K.col,function(J){H.setBorder(I.row,J,z,E)});break;case "bottom":(0,n.rangeEach)(I.col,K.col,function(J){H.setBorder(K.row, 4160J,z,E)});break;case "start":(0,n.rangeEach)(I.row,K.row,function(J){H.setBorder(J,I.col,z,E)});break;case "end":(0,n.rangeEach)(I.row,K.row,function(J){H.setBorder(J,K.col,z,E)})}})}},{key:"createCustomBorders",value:function(y){var z=this;(0,l.arrayEach)(y,function(E){var H=(0,t.normalizeBorder)(E);E.range?z.prepareBorderFromCustomAddedRange(E.range,H):z.prepareBorderFromCustomAdded(E.row,E.col,H)})}},{key:"countHide",value:function(y){return(0,l.arrayReduce)([y.top,y.bottom,y.start,y.end],function(z, 4161E){return E&&E.hide&&(z+=1),z},0)}},{key:"clearBordersFromSelectionSettings",value:function(y){y=(0,l.arrayMap)(this.hot.selection.highlight.customSelections,function(z){return z.settings.id}).indexOf(y);-1<y&&this.hot.selection.highlight.customSelections[y].clear()}},{key:"clearNullCellRange",value:function(){var y=this;(0,l.arrayEach)(this.hot.selection.highlight.customSelections,function(z,E){if(null===z.cellRange)return y.hot.selection.highlight.customSelections[E].destroy(),y.hot.selection.highlight.customSelections.splice(E, 41621),!1})}},{key:"hideBorders",value:function(){var y=this;(0,l.arrayEach)(this.savedBorders,function(z){y.clearBordersFromSelectionSettings(z.id);y.clearNullCellRange()})}},{key:"spliceBorder",value:function(y){y=(0,l.arrayMap)(this.savedBorders,function(z){return z.id}).indexOf(y);-1<y&&this.savedBorders.splice(y,1)}},{key:"checkSavedBorders",value:function(y){var z=this,E=!1;return 4===this.countHide(y)?(this.spliceBorder(y.id),E=!0):(0,l.arrayEach)(this.savedBorders,function(H,G){if(y.id===H.id)return z.savedBorders[G]= 4163y,E=!0,!1}),E}},{key:"checkCustomSelectionsFromContextMenu",value:function(y,z,E){var H=!1;return(0,l.arrayEach)(this.hot.selection.highlight.customSelections,function(G){if(y.id===G.settings.id)return(0,f.objectEach)(G.instanceBorders,function(I){I.toggleHiddenClass(z,E)}),H=!0,!1}),H}},{key:"checkCustomSelections",value:function(y,z,E){var H=!1;return 4===this.countHide(y)?(this.removeAllBorders(y.row,y.col),H=!0):(0,l.arrayEach)(this.hot.selection.highlight.customSelections,function(G){if(y.id=== 4164G.settings.id)return G.visualCellRange=z,G.commit(),E&&(0,f.objectEach)(G.instanceBorders,function(I){I.
4164changeBorderStyle(E,y)}),H=!0,!1}),H}},{key:"changeBorderSettings",value:function(){var y=this.hot.getSettings().customBorders;Array.isArray(y)?(y=(0,f.deepClone)(y),this.checkSettingsCohesion(y),y.length||(this.savedBorders=y),this.createCustomBorders(y)):void 0!==y&&this.createCustomBorders(this.savedBorders)}},{key:"checkSettingsCohesion",value:function(y){var z=(0,t.hasLeftRightTypeOptions)(y); 4165y=(0,t.hasStartEndTypeOptions)(y);if(z&&y)throw Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&z)throw Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".');}},{key:"onAfterContextMenuDefaultOptions",value:function(y){this.hot.getSettings().customBorders&&y.items.push({name:"---------"},{key:"borders",name:function(){return this.getTranslatedPhrase(r.CONTEXTMENU_ITEMS_BORDERS)}, 4166disabled:function(){return this.selection.isSelectedByCorner()},submenu:{items:[(0,m.top)(this),(0,m.right)(this),(0,m.bottom)(this),(0,m.left)(this),(0,m.noBorders)(this)]}})}},{key:"onAfterInit",value:function(){this.changeBorderSettings()}},{key:"destroy",value:function(){(0,e.default)((0,h.default)(v.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"customBorders"}},{key:"PLUGIN_PRIORITY",get:function(){return 90}}]),v}(g.BasePlugin);b.CustomBorders=a},function(g, 4167b,a){g=a(1);b.__esModule=!0;var F=g(a(980));b.bottom=F.default;F=g(a(981));b.left=F.default;F=g(a(982));b.noBorders=F.default;F=g(a(983));b.right=F.default;a=g(a(984));b.top=a.default},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.default=function(x){return{key:"borders:bottom",name:function(){var q=this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_BORDERS_BOTTOM); 4168return(0,A.checkSelectionBorders)(this,"bottom")&&(q=(0,A.markSelected)(q)),q},callback:function(q,p){q=(0,A.checkSelectionBorders)(this,"bottom");x.prepareBorder(p,"bottom",q)}}};var D=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x, 4169c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29)),A=a(173)},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.default=function(x){var q=x.hot.isRtl()?"end":"start";return{key:"borders:left",name:function(){var p=this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,A.checkSelectionBorders)(this, 4170q)&&(p=(0,A.markSelected)(p)),p},callback:function(p,e){p=(0,A.checkSelectionBorders)(this,q);x.prepareBorder(e,q,p)}}};var D=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p, 4171c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29)),A=a(173)},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.default=function(x){return{key:"borders:no_borders",name:function(){return this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback:function(q,p){x.prepareBorder(p,"noBorders")},disabled:function(){return!(0,A.checkSelectionBorders)(this)}}}; 4172var D=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29)),A=a(173)},function(g,b,a){function F(x){if("function"!= 4173typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.default=function(x){var q=x.hot.isRtl()?"start":"end";return{key:"borders:right",name:function(){var p=this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,A.checkSelectionBorders)(this,q)&&(p=(0,A.markSelected)(p)),p},callback:function(p,e){p=(0,A.checkSelectionBorders)(this,q);x.prepareBorder(e,q,p)}}};var D=function(x,q){if(!q&& 4174x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29)),A=a(173)},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null; 4175var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;b.default=function(x){return{key:"borders:top",name:function(){var q=this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,A.checkSelectionBorders)(this,"top")&&(q=(0,A.markSelected)(q)),q},callback:function(q,p){q=(0,A.checkSelectionBorders)(this,"top");x.prepareBorder(p,"top",q)}}};var D=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!== 4176B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29)),A=a(173)},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.DragToScroll=void 0;g=a(986);b.PLUGIN_KEY=g.PLUGIN_KEY; 4177b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.DragToScroll=g.DragToScroll},function(g,b,a){function F(f){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(l){return!1}}();return function(){var l=(0,e.default)(f);if(n){var r=(0,e.default)(this).constructor;l=Reflect.construct(l,arguments,r)}else l=l.apply(this,arguments);return(0,p.default)(this, 4178l)}}a(0);a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.DragToScroll=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=a(50),d=g(a(60)),h=a(83),k=a(23);b.PLUGIN_KEY="dragToScroll";b.PLUGIN_PRIORITY=100;a=function(f){function n(r){var m;return(0,B.default)(this,n),(m=l.call(this,r)).eventManager=new d.default((0,A.default)(m)),m.boundaries=null,m.callback=null,m.listening=!1,m}(0,q.default)(n,f);var l=F(n);return(0,D.default)(n,[{key:"isEnabled", 4179value:function(){return!!this.hot.getSettings().dragToScroll}},{key:"enablePlugin",value:function(){var r=this;this.enabled||(this.addHook("afterOnCellMouseDown",function(m){return r.setupListening(m)}),this.addHook("afterOnCellCornerMouseDown",function(m){return r.setupListening(m)}),this.registerEvents(),(0,x.default)((0,e.default)(n.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();(0,x.default)((0,e.default)(n.prototype), 4180"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.unregisterEvents();(0,x.default)((0,e.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"setBoundaries",value:function(r){this.boundaries=r}},{key:"setCallback",value:function(r){this.callback=r}},{key:"check",value:function(r,m){var t=0,u=0;m<this.boundaries.top?u=m-this.boundaries.top:m>this.boundaries.bottom&&(u=m-this.boundaries.bottom);r<this.boundaries.left?t=r-this.boundaries.left:r>this.boundaries.right&& 4181(t=r-this.boundaries.right);this.callback(t,u)}},{key:"listen",value:function(){this.listening=!0}},{key:"unlisten",value:function(){this.listening=!1}},{key:"isListening",value:function(){return this.listening}},{key:"registerEvents",value:function(){for(var r=this,m=this.hot.rootWindow;m;)this.eventManager.addEventListener(m.document,"contextmenu",function(){return r.unlisten()}),this.eventManager.addEventListener(m.document,"mouseup",function(){return r.unlisten()}),this.eventManager.addEventListener(m.document, 4182"mousemove",function(t){return r.onMouseMove(t)}),m=(0,k.getParentWindow)(m)}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"setupListening",value:function(r){if(!(0,h.isRightClick)(r)){var m=this.hot.view._wt.wtTable.holder;m!==this.hot.rootWindow&&(this.setBoundaries(m.getBoundingClientRect()),this.setCallback(function(t,u){0>t?m.scrollLeft-=50:0<t&&(m.scrollLeft+=50);0>u?m.scrollTop-=20:0<u&&(m.scrollTop+=20)}),this.listen())}}},{key:"onMouseMove",value:function(r){this.isListening()&& 4183this.check(r.clientX,r.clientY)}},{key:"destroy",value:function(){(0,x.default)((0,e.default)(n.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"dragToScroll"}},{key:"PLUGIN_PRIORITY",get:function(){return 100}}]),n}(c.BasePlugin);b.DragToScroll=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.DropdownMenu=void 0;g=a(988);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.DropdownMenu=g.DropdownMenu},function(g,b,a){function F(m){var t= 4184function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u=(0,c.default)(m);if(t){var w=(0,c.default)(this).constructor;u=Reflect.construct(u,arguments,w)}else u=u.apply(this,arguments);return(0,e.default)(this,u)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.DropdownMenu= 4185void 0;a(18);a(33);var D=B(a(5)),A=B(a(6)),x=B(a(44)),q=B(a(30)),p=B(a(15)),e=B(a(16)),c=B(a(14));g=a(50);var d=a(20),h=B(a(638)),k=B(a(60)),f=a(23),n=B(a(639)),l=B(a(328));B=B(a(71));var r=a(126);a(989);B.default.getSingleton().register("afterDropdownMenuDefaultOptions");B.default.getSingleton().register("beforeDropdownMenuShow");B.default.getSingleton().register("afterDropdownMenuShow");B.default.getSingleton().register("afterDropdownMenuHide");B.default.getSingleton().register("afterDropdownMenuExecute"); 4186b.PLUGIN_KEY="dropdownMenu";b.PLUGIN_PRIORITY=230;a=function(m){function t(w){var v;return(0,D.default)(this,t),(v=u.call(this,w)).eventManager=new k.default((0,x.default)(v)),v.commandExecutor=new h.default(v.hot),v.itemsFactory=null,v.menu=null,v.hot.addHook("afterGetColHeader",function(C,y){return v.onAfterGetColHeader(C,y)}),v}(0,p.default)(t,m);var u=F(t);return(0,A.default)(t,[{key:"isEnabled",value:function(){return this.hot.getSettings().dropdownMenu}},{key:"enablePlugin",value:function(){var w= 4187this;if(!this.enabled){this.itemsFactory=new n.default(this.hot,t.DEFAULT_ITEMS);var v=this.hot.getSettings().dropdownMenu,C={items:this.itemsFactory.getItems(v)};this.registerEvents();"function"==typeof v.callback&&this.commandExecutor.setCommonCallback(v.callback);(0,q.default)((0,c.default)(t.prototype),"enablePlugin",this).call(this);this.callOnPluginsReady(function(){w.hot.runHooks("afterDropdownMenuDefaultOptions",C);w.itemsFactory.setPredefinedItems(C.items);var y=w.itemsFactory.getItems(v); 4188w.menu&&w.menu.destroy();w.menu=new l.default(w.hot,{className:"htDropdownMenu",keepInViewport:!0,container:v.uiContainer||w.hot.rootDocument.body});w.hot.runHooks("beforeDropdownMenuSetItems",y);w.menu.setMenuItems(y);w.menu.addLocalHook("beforeOpen",function(){return w.onMenuBeforeOpen()});w.menu.addLocalHook("afterOpen",function(){return w.onMenuAfterOpen()});w.menu.addLocalHook("afterClose",function(){return w.onMenuAfterClose()});w.menu.addLocalHook("executeCommand",function(){for(var z,E=arguments.length, 4189H=Array(E),G=0;G<E;G++)H[G]=arguments[G];
4189return(z=w.executeCommand).call.apply(z,[w].concat(H))});(0,d.arrayEach)(y,function(z){return w.commandExecutor.registerCommand(z.key,z)})})}}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();(0,q.default)((0,c.default)(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.close();this.menu&&this.menu.destroy();(0,q.default)((0,c.default)(t.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents", 4190value:function(){var w=this;this.eventManager.addEventListener(this.hot.rootElement,"click",function(v){return w.onTableClick(v)})}},{key:"open",value:function(w){this.menu&&(this.menu.open(),w.width&&this.menu.setOffset("left",w.width),this.menu.setPosition(w))}},{key:"close",value:function(){this.menu&&this.menu.close()}},{key:"executeCommand",value:function(w){for(var v,C=arguments.length,y=Array(1<C?C-1:0),z=1;z<C;z++)y[z-1]=arguments[z];(v=this.commandExecutor).execute.apply(v,[w].concat(y))}}, 4191{key:"setListening",value:function(){var w=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(w?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}},{key:"onTableClick",value:function(w){if(w.stopPropagation(),(0,f.hasClass)(w.target,"changeType")&&!this.menu.isOpened()){var v=0,C=0;this.hot.rootDocument!==this.menu.container.ownerDocument&&(C=this.hot.rootWindow.frameElement.getBoundingClientRect(),v=C.top,C=C.left);var y=w.target.getBoundingClientRect();this.open({left:y.left+ 4192C,top:y.top+w.target.offsetHeight+3+v,width:y.width,height:y.height})}}},{key:"onAfterGetColHeader",value:function(w,v){var C=v.parentNode;if(C){var y=C.parentNode.childNodes;C=Array.prototype.indexOf.call(y,C);0>w||C!==y.length-1||(w=v.querySelector(".".concat("changeType")),this.enabled&&w||(this.enabled?(w=this.hot.rootDocument.createElement("button"),w.className="changeType",w.type="button",w.onclick=function(){return!1},v.firstChild.insertBefore(w,v.firstChild.firstChild)):w&&w.parentNode.removeChild(w)))}}}, 4193{key:"onMenuBeforeOpen",value:function(){this.hot.runHooks("beforeDropdownMenuShow",this)}},{key:"onMenuAfterOpen",value:function(){this.hot.runHooks("afterDropdownMenuShow",this)}},{key:"onMenuAfterClose",value:function(){this.hot.listen();this.hot.runHooks("afterDropdownMenuHide",this)}},{key:"destroy",value:function(){this.close();this.menu&&this.menu.destroy();(0,q.default)((0,c.default)(t.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"dropdownMenu"}},{key:"PLUGIN_PRIORITY", 4194get:function(){return 230}},{key:"PLUGIN_DEPS",get:function(){return["plugin:AutoColumnSize"]}},{key:"DEFAULT_ITEMS",get:function(){return[r.COLUMN_LEFT,r.COLUMN_RIGHT,r.SEPARATOR,r.REMOVE_COLUMN,r.SEPARATOR,r.CLEAR_COLUMN,r.SEPARATOR,r.READ_ONLY,r.SEPARATOR,r.ALIGNMENT]}}]),t}(g.BasePlugin);b.DropdownMenu=a;a.SEPARATOR={name:r.SEPARATOR}},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ExportFile=void 0;g=a(991);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY; 4195b.ExportFile=g.ExportFile},function(g,b,a){function F(k){if("function"!=typeof WeakMap)return null;var f=new WeakMap,n=new WeakMap;return(F=function(l){return l?n:f})(k)}function B(k){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n=(0,e.default)(k);if(f){var l=(0,e.default)(this).constructor; 4196n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);return(0,p.default)(this,n)}}a(0);a(7);a(3);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ExportFile=void 0;a(18);a(77);var A=g(a(5)),x=g(a(6)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=a(50),d=g(a(992)),h=function(k,f){if(!f&&k&&k.__esModule)return k;if(null===k||"object"!==D(k)&&"function"!=typeof k)return{default:k};if((f=F(f))&&f.has(k))return f.get(k);var n={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor, 4197r;
4197for(r in k)if("default"!==r&&Object.prototype.hasOwnProperty.call(k,r)){var m=l?Object.getOwnPropertyDescriptor(k,r):null;m&&(m.get||m.set)?Object.defineProperty(n,r,m):n[r]=k[r]}n.default=k;f&&f.set(k,n);return n}(a(993));b.PLUGIN_KEY="exportFile";b.PLUGIN_PRIORITY=240;a=function(k){function f(){return(0,A.default)(this,f),n.apply(this,arguments)}(0,q.default)(f,k);var n=B(f);return(0,x.default)(f,[{key:"isEnabled",value:function(){return!0}},{key:"exportAsString",value:function(l){return this._createTypeFormatter(l, 41981<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).export()}},{key:"exportAsBlob",value:function(l){return this._createBlob(this._createTypeFormatter(l,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}))}},{key:"downloadFile",value:function(l){var r=this.hot,m=r.rootDocument,t=r.rootWindow,u=this._createTypeFormatter(l,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{});r=this._createBlob(u);var w=t.URL||t.webkitURL;t=m.createElement("a");u="".concat(u.options.filename,".").concat(u.options.fileExtension); 4199if(void 0!==t.download){var v=w.createObjectURL(r);t.style.display="none";t.setAttribute("href",v);t.setAttribute("download",u);m.body.appendChild(t);t.dispatchEvent(new MouseEvent("click"));m.body.removeChild(t);setTimeout(function(){w.revokeObjectURL(v)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(r,u)}},{key:"_createTypeFormatter",value:function(l){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!h.EXPORT_TYPES[l])throw Error('Export format type "'.concat(l, 4200'" is not supported.'));return(0,h.default)(l,new d.default(this.hot),r)}},{key:"_createBlob",value:function(l){var r=null;return"undefined"!=typeof Blob&&(r=new Blob([l.export()],{type:"".concat(l.options.mimeType,";charset\x3d").concat(l.options.encoding)})),r}}],[{key:"PLUGIN_KEY",get:function(){return"exportFile"}},{key:"PLUGIN_PRIORITY",get:function(){return 240}}]),f}(c.BasePlugin);b.ExportFile=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(34)),B=g(a(5)),D=g(a(6)),A=a(47); 4201a=function(){function x(q){(0,B.default)(this,x);this.hot=q;this.options={}}return(0,D.default)(x,[{key:"setOptions",value:function(q){this.options=q}},{key:"getData",value:function(){var q=this,p=this._getDataRange(),e=p.startCol,c=p.endCol,d=this.options,h=[];return(0,A.rangeEach)(p.startRow,p.endRow,function(k){var f=[];!d.exportHiddenRows&&q._isHiddenRow(k)||((0,A.rangeEach)(e,c,function(n){!d.exportHiddenColumns&&q._isHiddenColumn(n)||f.push(q.hot.getDataAtCell(k,n))}),h.push(f))}),h}},{key:"getRowHeaders", 4202value:function(){var q=this,p=[];if(this.options.rowHeaders){var e=this._getDataRange(),c=e.startRow;e=e.endRow;var d=this.hot.getRowHeader();(0,A.rangeEach)(c,e,function(h){!q.options.exportHiddenRows&&q._isHiddenRow(h)||p.push(d[h])})}return p}},{key:"getColumnHeaders",value:function(){var q=this,p=[];if(this.options.columnHeaders){var e=this._getDataRange(),c=e.startCol;e=e.endCol;var d=this.hot.getColHeader();(0,A.rangeEach)(c,e,function(h){!q.options.exportHiddenColumns&&q._isHiddenColumn(h)|| 4203p.push(d[h])})}return p}},{key:"_getDataRange",value:function(){var q=this.hot.countCols()-1,p=this.hot.countRows()-1,e=(0,F.default)(this.options.range,4),c=e[0],d=e[1],h=e[2];e=e[3];return{startRow:Math.max(void 0===c?0:c,0),startCol:Math.max(void 0===d?0:d,0),endRow:Math.min(void 0===h?p:h,p),endCol:Math.min(void 0===e?q:e,q)}}},{key:"_isHiddenRow",value:function(q){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(q))}},{key:"_isHiddenColumn",value:function(q){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(q))}}]), 4204x}();b.default=a},function(g,b,a){var F=a(1);b.__esModule=!0;b.TYPE_PDF=b.TYPE_EXCEL=b.TYPE_CSV=b.EXPORT_TYPES=void 0;b.default=function(D,A,x){return"function"==typeof B[D]?new B[D](A,x):null};g=F(a(41));a=F(a(994));b.TYPE_CSV="csv";b.TYPE_EXCEL="excel";b.TYPE_PDF="pdf";var B=(0,g.default)({},"csv",a.default);b.EXPORT_TYPES=B},function(g,b,a){function F(k){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 4205[],function(){})),!0}catch(n){return!1}}();return function(){var n=(0,q.default)(k);if(f){var l=(0,q.default)(this).constructor;n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);return(0,x.default)(this,n)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;a(76);a(36);a(33);a(12);a(67);a(101);a(69);var B=g(a(5)),D=g(a(6)),A=g(a(15)),x=g(a(16)),q=g(a(14)),p=a(20),e=a(31);a=g(a(995));var c=String.fromCharCode(13),d=String.fromCharCode(34),h=String.fromCharCode(10);a=function(k){function f(){return(0,B.default)(this, 4206f),n.apply(this,arguments)}(0,A.default)(f,k);var n=F(f);return(0,D.default)(f,[{key:"export",value:function(){var l=this,r=this.options,m=this.dataProvider.getData(),t=this.dataProvider.getColumnHeaders(),u=0<t.length,w=this.dataProvider.getRowHeaders(),v=0<w.length,C=r.bom?String.fromCharCode(65279):"";return u&&(t=(0,p.arrayMap)(t,function(y){return l._escapeCell(y,!0)}),v&&(C+=r.columnDelimiter),C+=t.join(r.columnDelimiter),C+=r.rowDelimiter),(0,p.arrayEach)(m,function(y,z){0<z&&(C+=r.rowDelimiter); 4207v&&(C+=l._escapeCell(w[z])+r.columnDelimiter);C+=y.map(function(E){return l._escapeCell(E)}).join(r.columnDelimiter)}),C}},{key:"_escapeCell",value:function(l){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],m=(0,e.stringify)(l);return""!==m&&(r||0<=m.indexOf(c)||0<=m.indexOf(d)||0<=m.indexOf(h)||0<=m.indexOf(this.options.columnDelimiter))&&(m=m.replace(RegExp('"',"g"),'""'),m='"'.concat(m,'"')),m}}],[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/csv",fileExtension:"csv", 4208bom:!0,columnDelimiter:",",rowDelimiter:"\r\n"}}}]),f}(a.default);b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(303);var F=g(a(5)),B=g(a(6)),D=a(17),A=a(97);a=function(){function x(q,p){(0,F.default)(this,x);this.dataProvider=q;this.options=this._mergeOptions(p);this.dataProvider.setOptions(this.options)}return(0,B.default)(x,[{key:"_mergeOptions",value:function(q){var p=(0,D.clone)(this.constructor.DEFAULT_OPTIONS),e=new Date;return p=(0,D.extend)((0,D.clone)(x.DEFAULT_OPTIONS), 4209p),(p=(0,D.extend)(p,q)).filename=(0,A.substitute)(p.filename,{YYYY:e.getFullYear(),MM:"".concat(e.getMonth()+1).padStart(2,"0"),DD:"".concat(e.getDate()).padStart(2,"0")}),p}}],[{key:"DEFAULT_OPTIONS",get:function(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}}]),x}();b.default=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.Filters= 4210void 0;g=a(997);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.Filters=g.Filters},function(g,b,a){function F(R){if("function"!=typeof WeakMap)return null;var O=new WeakMap,N=new WeakMap;return(F=function(Q){return Q?N:O})(R)}function B(R){var O=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(N){return!1}}(); 4211return function(){var N=(0,f.default)(R);if(O){var Q=(0,f.default)(this).constructor;N=Reflect.construct(N,arguments,Q)}else N=N.apply(this,arguments);return(0,k.default)(this,N)}}a(7);a(11);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.Filters=void 0;var A=g(a(78));a(3);a(32);a(0);a(2);a(4);a(27);a(39);a(22);a(26);a(18);var x,q=g(a(34)),p=g(a(5)),e=g(a(6)),c=g(a(44)),d=g(a(30)),h=g(a(15)),k=g(a(16)),f=g(a(14)),n=a(50),l=a(20),r=a(79),m=a(92),t=a(47),u=g(a(60)),w=a(23), 4212v=a(126),C=function(R,O){if(!O&&R&&R.__esModule)return R;if(null===R||"object"!==D(R)&&"function"!=typeof R)return{default:R};if((O=F(O))&&O.has(R))return O.get(R);var N={},Q=Object.defineProperty&&Object.getOwnPropertyDescriptor,M;for(M in R)if("default"!==M&&Object.prototype.hasOwnProperty.call(R,M)){var T=Q?Object.getOwnPropertyDescriptor(R,M):null;T&&(T.get||T.set)?Object.defineProperty(N,M,T):N[M]=R[M]}N.default=R;O&&O.set(R,N);return N}(a(29)),y=g(a(998)),z=g(a(1017)),E=g(a(1019)),H=g(a(1025)), 4213G=g(a(648)),I=g(a(649)),K=g(a(1026)),J=a(209),P=a(329),S=a(84);a(1027);b.PLUGIN_KEY="filters";b.PLUGIN_PRIORITY=250;a=function(R){function O(Q){var M;return(0,p.default)(this,O),(M=N.call(this,Q)).eventManager=new u.default((0,
4213c.default)(M)),M.dropdownMenuPlugin=null,M.conditionCollection=null,M.conditionUpdateObserver=null,M.components=new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]]),M.lastSelectedColumn= 4214null,M.filtersRowsMap=null,M.hot.addHook("afterGetColHeader",function(T,Z){return M.onAfterGetColHeader(T,Z)}),M}(0,h.default)(O,R);var N=B(O);return(0,e.default)(O,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().filters}},{key:"enablePlugin",value:function(){var Q=this;if(!this.enabled){this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new S.TrimmingMap);this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");var M=this.hot.getSettings().dropdownMenu,T= 4215M&&M.uiContainer||this.hot.rootDocument.body;M=function(L){return L.addLocalHook("accept",function(){return Q.onActionBarSubmit("accept")}),L.addLocalHook("cancel",function(){return Q.onActionBarSubmit("cancel")}),L.addLocalHook("change",function(U){return Q.onComponentChange(L,U)}),L};if(!this.components.get("filter_by_condition")){var Z=new y.default(this.hot,{id:"filter_by_condition",name:function(){return"".concat(Q.hot.getTranslatedPhrase(C.FILTERS_DIVS_FILTER_BY_CONDITION),":")},addSeparator:!1, 4216menuContainer:T});Z.addLocalHook("afterClose",function(){return Q.onSelectUIClosed()});this.components.set("filter_by_condition",M(Z))}(this.components.get("filter_operators")||this.components.set("filter_operators",new z.default(this.hot,{id:"filter_operators",name:"Operators"})),this.components.get("filter_by_condition2"))||(T=new y.default(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:T}),T.addLocalHook("afterClose",function(){return Q.onSelectUIClosed()}),this.components.set("filter_by_condition2", 4217M(T)));this.components.get("filter_by_value")||this.components.set("filter_by_value",M(new E.default(this.hot,{id:"filter_by_value",name:function(){return"".concat(Q.hot.getTranslatedPhrase(C.FILTERS_DIVS_FILTER_BY_VALUE),":")}})));this.components.get("filter_action_bar")||this.components.set("filter_action_bar",M(new H.default(this.hot,{id:"filter_action_bar",name:"Action bar"})));this.conditionCollection||(this.conditionCollection=new G.default(this.hot));this.conditionUpdateObserver||(this.conditionUpdateObserver= 4218new K.default(this.hot,this.conditionCollection,function(L){return Q.getDataMapAtColumn(L)}),this.conditionUpdateObserver.addLocalHook("update",function(L){return Q.updateComponents(L)}));this.components.forEach(function(L){return L.show()});this.registerEvents();this.addHook("beforeDropdownMenuSetItems",function(L){return Q.onBeforeDropdownMenuSetItems(L)});this.addHook("afterDropdownMenuDefaultOptions",function(L){return Q.onAfterDropdownMenuDefaultOptions(L)});this.addHook("afterDropdownMenuShow", 4219function(){return Q.onAfterDropdownMenuShow()});this.addHook("afterDropdownMenuHide",function(){return Q.onAfterDropdownMenuHide()});this.addHook("afterChange",function(L){return Q.onAfterChange(L)});this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin());(0,d.default)((0,f.default)(O.prototype),"enablePlugin",this).call(this)}}},{key:"registerEvents",value:function(){var Q=this;this.eventManager.addEventListener(this.hot.rootElement, 4220"click",function(M){return Q.onTableClick(M)})}},{key:"disablePlugin",value:function(){var Q,M=this;this.enabled&&(null!==(Q=this.dropdownMenuPlugin)&&void 0!==Q&&Q.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach(function(T,Z){T.destroy();M.components.set(Z,null)}),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName));(0,d.default)((0,f.default)(O.prototype),"disablePlugin",this).call(this)}},{key:"addCondition", 4221value:function(Q,M,T){var Z=3<arguments.length&&void 0!==arguments[3]?arguments[3]:P.OPERATION_AND,L=this.hot.toPhysicalColumn(Q);this.conditionCollection.addCondition(L,{command:{key:M},args:T},Z)}},{key:"removeConditions",value:function(Q){Q=this.hot.toPhysicalColumn(Q);this.conditionCollection.removeConditions(Q)}},{key:"clearConditions",value:function(Q){void 0===Q?this.conditionCollection.clean():(Q=this.hot.toPhysicalColumn(Q),this.conditionCollection.removeConditions(Q))}},{key:"filter",value:function(){var Q= 4222this,M=this._createDataFilter(),T=!this.conditionCollection.isEmpty(),Z=[],L=this.conditionCollection.exportAllConditions();if(!1!==this.hot.runHooks("beforeFilter",L))if(T){var U=[];this.hot.batchExecution(function(){Q.filtersRowsMap.clear();Z=(0,l.arrayMap)(M.filter(),function(Y){return Y.meta.visualRow});var V=(0,J.createArrayAssertion)(Z);(0,t.rangeEach)(Q.hot.countSourceRows()-1,function(Y){V(Y)||U.push(Y)});(0,l.arrayEach)(U,function(Y){Q.filtersRowsMap.setValueAtIndex(Y,!0)})},!0);Z.length|| 4223this.hot.deselectCell()}else this.filtersRowsMap.clear();this.hot.runHooks("afterFilter",L);this.hot.view.adjustElementsSize(!0);this.hot.render();this.clearColumnSelection()}},{key:"getSelectedColumn",value:function(){return this.lastSelectedColumn}},{key:"clearColumnSelection",value:function(){var Q,M=null===(Q=this.hot.getSelectedRangeLast())||void 0===Q?void 0:Q.getTopStartCorner();void 0!==M&&this.hot.selectCell(M.row,M.col)}},{key:"getDataMapAtColumn",value:function(Q){var M=this,T=this.hot.toVisualColumn(Q), 4224Z=[];return(0,l.arrayEach)(this.hot.getSourceDataAtCol(T),function(L,U){var V,Y=M.hot.getCellMeta(U,T),aa=Y.row,W=Y.col,ca=Y.visualCol,ia=Y.visualRow,ba=Y.type,fa=Y.instance,ja=Y.dateFormat;Y=Y.locale;U=null!==(V=M.hot.getDataAtCell(M.hot.toVisualRow(U),T))&&void 0!==V?V:L;Z.push({meta:{row:aa,col:W,visualCol:ca,visualRow:ia,type:ba,instance:fa,dateFormat:ja,locale:Y},value:(0,J.toEmptyString)(U)})}),Z}},{key:"onAfterChange",value:function(Q){var M=this;Q&&(0,l.arrayEach)(Q,function(T){T=(0,q.default)(T, 42252)[1];T=M.hot.propToCol(T);
4225M.conditionCollection.hasConditions(T)&&M.updateValueComponentCondition(T)})}},{key:"updateValueComponentCondition",value:function(Q){var M=this.hot.getDataAtCol(Q);M=(0,J.unifyColumnValues)(M);this.conditionUpdateObserver.updateStatesAtColumn(Q,M)}},{key:"restoreComponents",value:function(Q){var M,T=null===(M=this.getSelectedColumn())||void 0===M?void 0:M.physicalIndex;Q.forEach(function(Z){Z.isHidden()||Z.restoreState(T)});this.updateDependentComponentsVisibility()}}, 4226{key:"onAfterDropdownMenuShow",value:function(){this.restoreComponents(Array.from(this.components.values()))}},{key:"onAfterDropdownMenuHide",value:function(){this.components.get("filter_by_condition").getSelectElement().closeOptions();this.components.get("filter_by_condition2").getSelectElement().closeOptions()}},{key:"onBeforeDropdownMenuSetItems",value:function(){var Q=this;this.dropdownMenuPlugin&&this.dropdownMenuPlugin.menu.addLocalHook("afterOpen",function(){Q.dropdownMenuPlugin.menu.hotMenu.updateSettings({hiddenRows:!0})})}}, 4227{key:"onAfterDropdownMenuDefaultOptions",value:function(Q){Q.items.push({name:v.SEPARATOR});this.components.forEach(function(M){Q.items.push(M.getMenuItemDescriptor())})}},{key:"getOperationBasedOnArguments",value:function(Q,M,T,Z){return Q===P.OPERATION_OR&&M.command.key!==P.CONDITION_NONE&&T.command.key!==P.CONDITION_NONE&&Z.command.key!==P.CONDITION_NONE?Q=P.OPERATION_OR_THEN_VARIABLE:Z.command.key!==P.CONDITION_NONE&&(M.command.key!==P.CONDITION_NONE&&T.command.key!==P.CONDITION_NONE||(Q=P.OPERATION_AND)), 4228Q}},{key:"onActionBarSubmit",value:function(Q){if("accept"===Q){var M,T=null===(M=this.getSelectedColumn())||void 0===M?void 0:M.physicalIndex;Q=this.components.get("filter_by_condition").getState();M=this.components.get("filter_by_condition2").getState();var Z=this.components.get("filter_by_value").getState(),L=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),Q,M,Z);this.conditionUpdateObserver.groupChanges();var U=this.conditionCollection.getColumnStackPosition(T); 4229-1===U&&(U=void 0);this.conditionCollection.removeConditions(T);Q.command.key!==P.CONDITION_NONE&&(this.conditionCollection.addCondition(T,Q,L,U),M.command.key!==P.CONDITION_NONE&&this.conditionCollection.addCondition(T,M,L,U));Z.command.key!==P.CONDITION_NONE&&this.conditionCollection.addCondition(T,Z,L,U);this.conditionUpdateObserver.flush();this.components.forEach(function(V){return V.saveState(T)});this.filtersRowsMap.clear();this.filter()}this.dropdownMenuPlugin&&this.dropdownMenuPlugin.close()}}, 4230{key:"onComponentChange",value:function(Q,M){this.updateDependentComponentsVisibility();Q.constructor!==y.default||M.inputsCount||this.setListeningDropdownMenu()}},{key:"onSelectUIClosed",value:function(){this.setListeningDropdownMenu()}},{key:"setListeningDropdownMenu",value:function(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}},{key:"updateDependentComponentsVisibility",value:function(){var Q=this.components.get("filter_by_condition").getState().command,M=[this.components.get("filter_by_condition2"), 4231this.components.get("filter_operators")];Q.showOperators?this.showComponents.apply(this,M):this.hideComponents.apply(this,M)}},{key:"onAfterGetColHeader",value:function(Q,M){Q=this.hot.toPhysicalColumn(Q);this.enabled&&this.conditionCollection.hasConditions(Q)?(0,w.addClass)(M,"htFiltersActive"):(0,w.removeClass)(M,"htFiltersActive")}},{key:"onTableClick",value:function(Q){if(Q=(0,w.closest)(Q.target,"TH")){Q=this.hot.getCoords(Q).col;var M=this.hot.toPhysicalColumn(Q);this.lastSelectedColumn={visualIndex:Q, 4232physicalIndex:M}}}},{key:"_createDataFilter",value:function(){var Q=this;return new I.default(0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.conditionCollection,function(M){return Q.getDataMapAtColumn(M)})}},{key:"updateComponents",value:function(Q){var M;if(null!==(M=this.dropdownMenuPlugin)&&void 0!==M&&M.enabled){M=Q.editedConditionStack;var T=M.conditions;M=M.column;var Z=T.filter(function(L){return L.name===P.CONDITION_BY_VALUE});T=T.filter(function(L){return L.name!==P.CONDITION_BY_VALUE}); 42332<=Z.length||3<=T.length?(0,m.warn)((0,r.toSingleLine)(x||(x=(0,A.default)(["The filter conditions have been applied properly, but couldn\u2019t be displayed visually. \n The overall amount of conditions exceed the capability of the dropdown menu. \n For more details see the documentation."],["The filter conditions have been applied properly, but couldn\u2019t be displayed visually.\\x20\n The overall amount of conditions exceed the capability of the dropdown menu.\\x20\n For more details see the documentation."])))): 4234(Z=this.conditionCollection.getOperation(M),this.components.get("filter_by_condition").updateState(T[0],M),this.components.get("filter_by_condition2").updateState(T[1],M),this.components.get("filter_operators").updateState(Z,M),this.components.get("filter_by_value").updateState(Q))}}},{key:"getIndexesOfComponents",value:function(){var Q=[];if(!this.dropdownMenuPlugin)return Q;for(var M=this.dropdownMenuPlugin.menu,T=arguments.length,Z=Array(T),L=0;L<T;L++)Z[L]=arguments[L];return(0,l.arrayEach)(Z, 4235function(U){(0,l.arrayEach)(M.menuItems,function(V,Y){V.key===U.getMenuItemDescriptor().key&&Q.push(Y)})}),Q}},{key:"changeComponentsVisibility",value:function(){var Q=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];if(this.dropdownMenuPlugin){for(var M=this.dropdownMenuPlugin.menu.hotMenu,T=M.getPlugin("hiddenRows"),Z=arguments.length,L=Array(1<Z?Z-1:0),U=1;U<Z;U++)L[U-1]=arguments[U];Z=this.getIndexesOfComponents.apply(this,L);Q?T.showRows(Z):T.hideRows(Z);M.render()}}},{key:"hideComponents", 4236value:function(){for(var Q=arguments.length,M=Array(Q),T=0;T<Q;T++)M[T]=arguments[T];this.changeComponentsVisibility.apply(this,[!1].concat(M))}},{key:"showComponents",value:function(){for(var Q=arguments.length,M=Array(Q),T=0;T<Q;T++)M[T]=arguments[T];this.changeComponentsVisibility.apply(this,[!0].concat(M))}},{key:"destroy",value:function(){var Q=this;
4236this.enabled&&(this.components.forEach(function(M,T){null!==M&&(M.destroy(),Q.components.set(T,null))}),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(), 4237this.hot.rowIndexMapper.unregisterMap(this.pluginName));(0,d.default)((0,f.default)(O.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"filters"}},{key:"PLUGIN_PRIORITY",get:function(){return 250}},{key:"PLUGIN_DEPS",get:function(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}}]),O}(n.BasePlugin);b.Filters=a},function(g,b,a){function F(y){if("function"!=typeof WeakMap)return null;var z=new WeakMap,E=new WeakMap;return(F=function(H){return H? 4238E:z})(y)}function B(y,z){if(!z&&y&&y.__esModule)return y;if(null===y||"object"!==A(y)&&"function"!=typeof y)return{default:y};if((z=F(z))&&z.has(y))return z.get(y);var E={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor,G;for(G in y)if("default"!==G&&Object.prototype.hasOwnProperty.call(y,G)){var I=H?Object.getOwnPropertyDescriptor(y,G):null;I&&(I.get||I.set)?Object.defineProperty(E,G,I):E[G]=y[G]}return E.default=y,z&&z.set(y,E),E}function D(y){var z=function(){if("undefined"==typeof Reflect|| 4239!Reflect.construct||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 E=(0,h.default)(y);if(z){var H=(0,h.default)(this).constructor;E=Reflect.construct(E,arguments,H)}else E=E.apply(this,arguments);return(0,d.default)(this,E)}}a(7);a(3);a(2);a(11);a(4);a(19);g=a(1);var A=a(21);b.__esModule=!0;b.default=void 0;a(26);a(122);a(77);a(39);a(0);var x=g(a(43)), 4240q=g(a(5)),p=g(a(6)),e=g(a(30)),c=g(a(15)),d=g(a(16)),h=g(a(14)),k=a(23),f=a(83),n=a(20),l=a(124),r=a(17),m=B(a(29)),t=g(a(250)),u=B(a(329)),w=g(a(331)),v=g(a(1016)),C=a(58);a=function(y){function z(H,G){var I;return(0,q.default)(this,z),(I=E.call(this,H,{id:G.id,stateless:!1})).name=G.name,I.addSeparator=G.addSeparator,I.elements.push(new v.default(I.hot,{menuContainer:G.menuContainer})),I.elements.push(new w.default(I.hot,{placeholder:m.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),I.elements.push(new w.default(I.hot, 4241{placeholder:m.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),I.registerHooks(),I}(0,c.default)(z,y);var E=D(z);return(0,p.default)(z,[{key:"registerHooks",value:function(){var H=this;this.getSelectElement().addLocalHook("select",function(G){return H.onConditionSelect(G)});this.getSelectElement().addLocalHook("afterClose",function(){return H.onSelectUIClosed()});(0,n.arrayEach)(this.getInputElements(),function(G){G.addLocalHook("keydown",function(I){return H.onInputKeyDown(I)})})}},{key:"setState",value:function(H){var G= 4242this;if(this.reset(),H){var I=(0,r.clone)(H.command);I.name.startsWith(m.FILTERS_CONDITIONS_NAMESPACE)&&(I.name=this.hot.getTranslatedPhrase(I.name));this.getSelectElement().setValue(I);(0,n.arrayEach)(H.args,function(K,J){if(J>I.inputsCount-1)return!1;var P=G.getInputElement(J);P.setValue(K);P[I.inputsCount>J?"show":"hide"]();J||setTimeout(function(){return P.focus()},10)})}}},{key:"getState",value:function(){var H=this.getSelectElement().getValue()||(0,C.getConditionDescriptor)(u.CONDITION_NONE), 4243G=[];return(0,n.arrayEach)(this.getInputElements(),function(I,K){H.inputsCount>K&&G.push(I.getValue())}),{command:H,args:G}}},{key:"updateState",value:function(H,G){var I=H?(0,C.getConditionDescriptor)(H.name):(0,C.getConditionDescriptor)(u.CONDITION_NONE);this.state.setValueAtIndex(G,{command:I,args:H?H.args:[]});H||(0,n.arrayEach)(this.getInputElements(),function(K){return K.setValue(null)})}},{key:"getSelectElement",value:function(){return this.elements.filter(function(H){return H instanceof v.default})[0]}}, 4244{key:"getInputElement",value:function(){var H=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[H]}},{key:"getInputElements",value:function(){return this.elements.filter(function(H){return H instanceof w.default})}},{key:"getMenuItemDescriptor",value:function(){var H=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return H.isHidden()},renderer:function(G,I,K,J,P,S){(0,k.addClass)(I.parentNode,"htFiltersMenuCondition"); 4245H.addSeparator&&(0,k.addClass)(I.parentNode,"border");G=H.hot.rootDocument.createElement("div");return(0,k.addClass)(G,"htFiltersMenuLabel"),G.textContent=S,I.appendChild(G),I.parentNode.hasAttribute("ghost-table")||(0,n.arrayEach)(H.elements,function(R){return I.appendChild(R.element)}),I}}}},{key:"reset",value:function(){var H,G=this.hot.getPlugin("filters").getSelectedColumn();G=G&&G.visualIndex;var I=(H=this.hot).getDataType.apply(H,(0,x.default)(this.hot.getSelectedLast()||[0,G]));H=(0,u.default)(I); 4246(0,n.arrayEach)(this.getInputElements(),function(K){return K.hide()});
4246this.getSelectElement().setItems(H);(0,e.default)((0,h.default)(z.prototype),"reset",this).call(this);this.getSelectElement().setValue(H[0])}},{key:"onConditionSelect",value:function(H){(0,n.arrayEach)(this.getInputElements(),function(G,I){G[H.inputsCount>I?"show":"hide"]();0===I&&setTimeout(function(){return G.focus()},10)});this.runLocalHooks("change",H)}},{key:"onSelectUIClosed",value:function(){this.runLocalHooks("afterClose")}}, 4247{key:"onInputKeyDown",value:function(H){(0,l.isKey)(H.keyCode,"ENTER")?(this.runLocalHooks("accept"),(0,f.stopImmediatePropagation)(H)):(0,l.isKey)(H.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,f.stopImmediatePropagation)(H))}}]),z}(t.default);b.default=a},function(g,b,a){function F(A){if("function"!=typeof WeakMap)return null;var x=new WeakMap,q=new WeakMap;return(F=function(p){return p?q:x})(A)}function B(){return!0}a(3);a(0);a(2);a(11);a(4);a(19);var D=a(21);b.__esModule=!0;b.CONDITION_NAME= 4248void 0;b.condition=B;g=function(A,x){if(!x&&A&&A.__esModule)return A;if(null===A||"object"!==D(A)&&"function"!=typeof A)return{default:A};if((x=F(x))&&x.has(A))return x.get(A);var q={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor,e;for(e in A)if("default"!==e&&Object.prototype.hasOwnProperty.call(A,e)){var c=p?Object.getOwnPropertyDescriptor(A,e):null;c&&(c.get||c.set)?Object.defineProperty(q,e,c):q[e]=A[e]}q.default=A;x&&x.set(A,q);return q}(a(29));a=a(58);b.CONDITION_NAME="none";(0,a.registerCondition)("none", 4249B,{name:g.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){return!(0,A.getCondition)(x.CONDITION_NAME,p)(q)}a(3);a(0);a(2);a(11);a(4);a(19);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&& 4250p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var A=a(58),x=a(640);b.CONDITION_NAME="not_empty";(0,A.registerCondition)("not_empty",B,{name:g.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},function(g,b,a){function F(q){if("function"!= 4251typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){return!(0,A.getCondition)(x.CONDITION_NAME,p)(q)}a(3);a(0);a(2);a(11);a(4);a(19);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!== 4252d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var A=a(58),x=a(641);b.CONDITION_NAME="neq";(0,A.registerCondition)("neq",B,{name:g.FILTERS_CONDITIONS_NOT_EQUAL,inputsCount:1,showOperators:!0})},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}function B(x,q){q= 4253(0,A.default)(q,1)[0];return"numeric"===x.meta.type&&(q=parseFloat(q,10)),x.value>q}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(34));g=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==D(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d= 4254e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29));a=a(58);b.CONDITION_NAME="gt";(0,a.registerCondition)("gt",B,{name:g.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}function B(x,q){q=(0,A.default)(q,1)[0];return"numeric"===x.meta.type&&(q=parseFloat(q, 425510)),x.value>=q}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(34));g=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==D(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p, 4256c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29));a=a(58);b.CONDITION_NAME="gte";(0,a.registerCondition)("gte",B,{name:g.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}function B(x,q){q=(0,A.default)(q,1)[0];return"numeric"===x.meta.type&&(q=parseFloat(q,10)),x.value<q}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule= 4257!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(34));g=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==D(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29)); 4258a=a(58);b.CONDITION_NAME="lt";(0,a.registerCondition)("lt",B,{name:g.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}function B(x,q){q=(0,A.default)(q,1)[0];return"numeric"===x.meta.type&&(q=parseFloat(q,10)),x.value<=q}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(34));g=function(x, 4259q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==D(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29));a=a(58);b.CONDITION_NAME="lte";(0,a.registerCondition)("lte",B,{name:g.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL, 4260inputsCount:1,showOperators:!0})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){return!(0,A.getCondition)(x.CONDITION_NAME,p)(q)}a(3);a(0);a(2);a(11);a(4);a(19);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;
4260g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e= 4261{},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var A=a(58),x=a(642);b.CONDITION_NAME="not_between";(0,A.registerCondition)("not_between",B,{name:g.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null; 4262var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){p=(0,A.default)(p,1)[0];return(0,x.stringify)(q.value).toLocaleLowerCase(q.meta.locale).startsWith((0,x.stringify)(p))}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;a(122);var A=g(a(34));g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&& 4263Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var x=a(31);a=a(58);b.CONDITION_NAME="begins_with";(0,a.registerCondition)("begins_with",B,{name:g.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap, 4264e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){p=(0,A.default)(p,1)[0];return(0,x.stringify)(q.value).toLocaleLowerCase(q.meta.locale).endsWith((0,x.stringify)(p))}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;a(298);var A=g(a(34));g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&& 4265Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var x=a(31);a=a(58);b.CONDITION_NAME="ends_with";(0,a.registerCondition)("ends_with",B,{name:g.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap, 4266e=new WeakMap;return(F=function(c){return c?e:p})(q)}function B(q,p){return!(0,A.getCondition)(x.CONDITION_NAME,p)(q)}a(3);a(0);a(2);a(11);a(4);a(19);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;g=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==D(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q, 4267d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29));var A=a(58),x=a(645);b.CONDITION_NAME="not_contains";(0,A.registerCondition)("not_contains",B,{name:g.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}function B(x){x=(0,A.default)(x.value, 4268x.meta.dateFormat);return!!x.isValid()&&x.isSame((0,A.default)().subtract(-1,"days").startOf("day"),"d")}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(108));g=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==D(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x, 4269c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29));a=a(58);b.CONDITION_NAME="date_tomorrow";(0,a.registerCondition)("date_tomorrow",B,{name:g.FILTERS_CONDITIONS_TOMORROW,inputsCount:0})},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}function B(x){x=(0,A.default)(x.value,x.meta.dateFormat);return!!x.isValid()&& 4270x.isSame((0,A.default)().startOf("day"),"d")}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(108));g=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==D(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x, 4271c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29));a=a(58);b.CONDITION_NAME="date_today";(0,a.registerCondition)("date_today",B,{name:g.FILTERS_CONDITIONS_TODAY,inputsCount:0})},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}function B(x){x=(0,A.default)(x.value,x.meta.dateFormat);return!!x.isValid()&&x.isSame((0,A.default)().subtract(1,"days").startOf("day"), 4272"d")}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=B;var A=g(a(108));g=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==D(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p, 4273c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29));a=a(58);b.CONDITION_NAME="date_yesterday";(0,a.registerCondition)("date_yesterday",B,{name:g.FILTERS_CONDITIONS_YESTERDAY,inputsCount:0})},function(g,b,a){function F(A,x){return(0,(0,B.default)(x,1)[0])(A.value)}g=a(1);b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=F;var B=g(a(34));g=a(58);var D=a(209);b.CONDITION_NAME="by_value";(0,g.registerCondition)("by_value",F,{name:"By value",inputsCount:0,inputValuesDecorator:function(A){A=(0,B.default)(A, 42741)[0];return[(0,D.createArrayAssertion)(A)]},showOperators:!1})},function(g,b,a){function F(){return!0}
4274b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=F;g=a(58);b.CONDITION_NAME="true";(0,g.registerCondition)("true",F,{name:"True"})},function(g,b,a){function F(){return!1}b.__esModule=!0;b.CONDITION_NAME=void 0;b.condition=F;g=a(58);b.CONDITION_NAME="false";(0,g.registerCondition)("false",F,{name:"False"})},function(g,b,a){function F(t){if("function"!=typeof WeakMap)return null;var u=new WeakMap, 4275w=new WeakMap;return(F=function(v){return v?w:u})(t)}function B(t){var u=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(w){return!1}}();return function(){var w=(0,d.default)(t);if(u){var v=(0,d.default)(this).constructor;w=Reflect.construct(w,arguments,v)}else w=w.apply(this,arguments);return(0,c.default)(this,w)}}a(7); 4276a(19);g=a(1);var D=a(21);b.__esModule=!0;b.default=void 0;var A=g(a(5)),x=g(a(6)),q=g(a(44)),p=g(a(30)),e=g(a(15)),c=g(a(16)),d=g(a(14));a(3);a(0);a(2);a(11);a(4);a(26);var h=g(a(328)),k=a(17),f=a(20),n=function(t,u){if(!u&&t&&t.__esModule)return t;if(null===t||"object"!==D(t)&&"function"!=typeof t)return{default:t};if((u=F(u))&&u.has(t))return u.get(t);var w={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor,C;for(C in t)if("default"!==C&&Object.prototype.hasOwnProperty.call(t,C)){var y= 4277v?Object.getOwnPropertyDescriptor(t,C):null;y&&(y.get||y.set)?Object.defineProperty(w,C,y):w[C]=t[C]}w.default=t;u&&u.set(t,w);return w}(a(29)),l=a(126),r=g(a(211)),m=new WeakMap;a=function(t){function u(v,C){var y;return(0,A.default)(this,u),y=w.call(this,v,(0,k.extend)(u.DEFAULTS,C)),m.set((0,q.default)(y),{}),y.menu=null,y.items=[],y.registerHooks(),y}(0,e.default)(u,t);var w=B(u);return(0,x.default)(u,[{key:"registerHooks",value:function(){var v=this;this.addLocalHook("click",function(){return v.onClick()})}}, 4278{key:"setItems",value:function(v){this.items=this.translateNames(v);this.menu&&this.menu.setMenuItems(this.items)}},{key:"translateNames",value:function(v){var C=this;return(0,f.arrayEach)(v,function(y){y.name=C.translateIfPossible(y.name)}),v}},{key:"build",value:function(){var v=this;(0,p.default)((0,d.default)(u.prototype),"build",this).call(this);this.menu=new h.default(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer}); 4279this.menu.setMenuItems(this.items);var C=new r.default(this.hot,{className:"htUISelectCaption"}),y=new r.default(this.hot,{className:"htUISelectDropdown"}),z=m.get(this);z.caption=C;z.captionElement=C.element;z.dropdown=y;(0,f.arrayEach)([C,y],function(E){return v._element.appendChild(E.element)});this.menu.addLocalHook("select",function(E){return v.onMenuSelect(E)});this.menu.addLocalHook("afterClose",function(){return v.onMenuClosed()});this.update()}},{key:"update",value:function(){var v;this.isBuilt()&& 4280(v=this.options.value?this.options.value.name:this.menu.hot.getTranslatedPhrase(n.FILTERS_CONDITIONS_NONE),m.get(this).captionElement.textContent=v,(0,p.default)((0,d.default)(u.prototype),"update",this).call(this))}},{key:"openOptions",value:function(){var v=this.element.getBoundingClientRect();this.menu&&(this.menu.open(),this.menu.setPosition({left:this.hot.isLtr()?v.left-5:v.left-31,top:v.top-1,width:v.width,height:v.height}))}},{key:"closeOptions",value:function(){this.menu&&this.menu.close()}}, 4281{key:"onMenuSelect",value:function(v){v.name!==l.SEPARATOR&&(this.options.value=v,this.update(),this.runLocalHooks("select",this.options.value))}},{key:"onMenuClosed",value:function(){this.runLocalHooks("afterClose")}},{key:"onClick",value:function(){this.openOptions()}},{key:"destroy",value:function(){this.menu&&(this.menu.destroy(),this.menu=null);var v=m.get(this),C=v.caption;v=v.dropdown;C&&C.destroy();v&&v.destroy();(0,p.default)((0,d.default)(u.prototype),"destroy",this).call(this)}}],[{key:"DEFAULTS", 4282get:function(){return(0,k.clone)({className:"htUISelect",wrapIt:!1})}}]),u}(r.default);b.default=a},function(g,b,a){function F(t){var u=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(w){return!1}}();return function(){var w=(0,e.default)(t);if(u){var v=(0,e.default)(this).constructor;w=Reflect.construct(w,arguments,v)}else w= 4283w.apply(this,arguments);return(0,p.default)(this,w)}}a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(78));a(26);a(146);a(0);var D,A=g(a(5)),x=g(a(6)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=a(23),d=a(20),h=a(79),k=g(a(250)),f=a(210),n=a(330),l=a(646),r=a(647),m=g(a(1018));a=function(t){function u(v,C){var y;return(0,A.default)(this,u),(y=w.call(this,v,{id:C.id,stateless:!1})).name=C.name,y.buildOperatorsElement(),y}(0,q.default)(u,t);var w=F(u);return(0,x.default)(u,[{key:"getMenuItemDescriptor", 4284value:function(){var v=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return v.isHidden()},renderer:function(C,y){return(0,c.addClass)(y.parentNode,"htFiltersMenuOperators"),y.parentNode.hasAttribute("ghost-table")||(0,d.arrayEach)(v.elements,function(z){return y.appendChild(z.element)}),y}}}},{key:"buildOperatorsElement",value:function(){var v=this,C=[n.OPERATION_ID,l.OPERATION_ID];(0,d.arrayEach)(C,function(y){y=new m.default(v.hot,{name:"operator",label:{htmlFor:y, 4285textContent:(0,f.getOperationName)(y)},value:y,checked:y===C[0],id:y});y.addLocalHook("change",function(z){return v.onRadioInputChange(z)});v.elements.push(y)})}},{key:"setChecked",value:function(v){if(this.elements.length<v)throw Error((0,h.toSingleLine)(D||(D=(0,B.default)(["Radio button with index "," doesn't exist."])),v));(0,d.arrayEach)(this.elements,function(C,y){C.setChecked(y===v)})}},{key:"getActiveOperationId",value:function(){var v=this.elements.find(function(C){return C instanceof m.default&& 4286C.isChecked()});return v?v.getValue():n.OPERATION_ID}},{key:"getState",value:function(){return this.getActiveOperationId()}},{key:"setState",value:function(v){this.reset();v&&this.getActiveOperationId()!==v&&(0,d.arrayEach)(this.elements,function(C){C.setChecked(C.getValue()===v)})}},{key:"updateState",value:function(){var v=1<arguments.length?arguments[1]:void 0,C=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n.OPERATION_ID;C===r.OPERATION_ID&&(C=l.OPERATION_ID);this.state.setValueAtIndex(v, 4287C)}},{key:"reset",value:function(){this.setChecked(0)}},{key:"onRadioInputChange",value:function(v){this.setState(v.target.value)}}]),u}(k.default);b.default=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,e.default)(h);if(k){var n=(0,e.default)(this).constructor; 4288f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,p.default)(this,f)}}a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(3);a(0);a(2);a(11);a(4);var c=a(17);a=g(a(211));var d=new WeakMap;a=function(h){function k(n,l){var r;return(0,B.default)(this,k),r=f.call(this,n,(0,c.extend)(k.DEFAULTS,l)),d.set((0,A.default)(r),{}),r}(0,q.default)(k,h);var f=F(k);return(0,D.default)(k,[{key:"build",value:function(){(0,x.default)((0,e.default)(k.prototype), 4289"build",this).call(this);var n=d.get(this);n.input=this._element.firstChild;var l=this.hot.rootDocument.createElement("label");l.textContent=this.translateIfPossible(this.options.label.textContent);l.htmlFor=this.translateIfPossible(this.options.label.htmlFor);n.label=l;this._element.appendChild(l);this.update()}}
4289,{key:"update",value:function(){if(this.isBuilt()){var n=d.get(this);n.input.checked=this.options.checked;n.label.textContent=this.translateIfPossible(this.options.label.textContent)}}}, 4290{key:"isChecked",value:function(){return this.options.checked}},{key:"setChecked",value:function(){this.options.checked=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];this.update()}},{key:"focus",value:function(){this.isBuilt()&&d.get(this).input.focus()}}],[{key:"DEFAULTS",get:function(){return(0,c.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}}]),k}(a.default);b.default=a},function(g,b,a){function F(v){if("function"!=typeof WeakMap)return null;var C=new WeakMap, 4291y=new WeakMap;return(F=function(z){return z?y:C})(v)}function B(v){var C=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(y){return!1}}();return function(){var y=(0,d.default)(v);if(C){var z=(0,d.default)(this).constructor;y=Reflect.construct(y,arguments,z)}else y=y.apply(this,arguments);return(0,c.default)(this,y)}}a(7); 4292a(3);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.default=void 0;a(26);a(39);a(0);var A=g(a(34)),x=g(a(5)),q=g(a(6)),p=g(a(30)),e=g(a(15)),c=g(a(16)),d=g(a(14)),h=a(23),k=a(83),f=a(20),n=a(124),l=function(v,C){if(!C&&v&&v.__esModule)return v;if(null===v||"object"!==D(v)&&"function"!=typeof v)return{default:v};if((C=F(C))&&C.has(v))return C.get(v);var y={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor,E;for(E in v)if("default"!==E&&Object.prototype.hasOwnProperty.call(v,E)){var H= 4293z?Object.getOwnPropertyDescriptor(v,E):null;H&&(H.get||H.set)?Object.defineProperty(y,E,H):y[E]=v[E]}y.default=v;C&&C.set(v,y);return y}(a(29)),r=a(209),m=g(a(250)),t=g(a(1020)),u=a(329),w=a(58);a=function(v){function C(z,E){var H;return(0,x.default)(this,C),(H=y.call(this,z,{id:E.id,stateless:!1})).name=E.name,H.elements.push(new t.default(H.hot)),H.registerHooks(),H}(0,e.default)(C,v);var y=B(C);return(0,q.default)(C,[{key:"registerHooks",value:function(){var z=this;this.getMultipleSelectElement().addLocalHook("keydown", 4294function(E){return z.onInputKeyDown(E)})}},{key:"setState",value:function(z){if(this.reset(),z&&z.command.key===u.CONDITION_BY_VALUE){var E=this.getMultipleSelectElement();E.setItems(z.itemsSnapshot);E.setValue(z.args[0]);E.setLocale(z.locale)}}},{key:"getState",value:function(){var z=this.getMultipleSelectElement(),E=z.getItems();return{command:{key:z.isSelectedAllValues()||!E.length?u.CONDITION_NONE:u.CONDITION_BY_VALUE},args:[z.getValue()],itemsSnapshot:E}}},{key:"updateState",value:function(z){var E= 4295this,H=function(G,I,K,J,P){I=(0,f.arrayFilter)(I,function(N){return N.name===u.CONDITION_BY_VALUE});var S=(0,A.default)(I,1)[0];I={};var R=E.hot.getTranslatedPhrase(l.FILTERS_VALUES_BLANK_CELLS);if(S){J=(0,r.unifyColumnValues)((0,f.arrayMap)(J(G,P),function(N){return N.value}));K&&(S.args[0]=K);var O=[];K=(0,r.intersectValues)(J,S.args[0],R,function(N){N.checked&&O.push(N.value)});I.locale=E.hot.getCellMeta(0,z.editedConditionStack.column).locale;I.args=[O];I.command=(0,w.getConditionDescriptor)(u.CONDITION_BY_VALUE); 4296I.itemsSnapshot=K}else I.args=[],I.command=(0,w.getConditionDescriptor)(u.CONDITION_NONE);E.state.setValueAtIndex(G,I)};H(z.editedConditionStack.column,z.editedConditionStack.conditions,z.conditionArgsChange,z.filteredRowsFactory);z.dependentConditionStacks.length&&H(z.dependentConditionStacks[0].column,z.dependentConditionStacks[0].conditions,z.conditionArgsChange,z.filteredRowsFactory,z.editedConditionStack)}},{key:"getMultipleSelectElement",value:function(){return this.elements.filter(function(z){return z instanceof 4297t.default})[0]}},{key:"getMenuItemDescriptor",value:function(){var z=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return z.isHidden()},renderer:function(E,H,G,I,K,J){(0,h.addClass)(H.parentNode,"htFiltersMenuValue");E=z.hot.rootDocument.createElement("div");return(0,h.addClass)(E,"htFiltersMenuLabel"),E.textContent=J,H.appendChild(E),H.parentNode.hasAttribute("ghost-table")||(0,f.arrayEach)(z.elements,function(P){return H.appendChild(P.element)}),H}}}}, 4298{key:"reset",value:function(){var z=this.hot.getTranslatedPhrase(l.FILTERS_VALUES_BLANK_CELLS),E=(0,r.unifyColumnValues)(this._getColumnVisibleValues());z=(0,r.intersectValues)(E,E,z);this.getMultipleSelectElement().setItems(z);(0,p.default)((0,d.default)(C.prototype),"reset",this).call(this);this.getMultipleSelectElement().setValue(E);E=this.hot.getPlugin("filters").getSelectedColumn().visualIndex;this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,E).locale)}},{key:"onInputKeyDown", 4299value:function(z){(0,n.isKey)(z.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,k.stopImmediatePropagation)(z))}},{key:"_getColumnVisibleValues",value:function(){var z=this.hot.getPlugin("filters").getSelectedColumn();return(0,f.arrayMap)(this.hot.getDataAtCol(z&&z.visualIndex),function(E){return(0,r.toEmptyString)(E)})}}]),C}(m.default);b.default=a},function(g,b,a){function F(E){if("function"!=typeof WeakMap)return null;var H=new WeakMap,G=new WeakMap;return(F=function(I){return I?G:H})(E)}function B(E){var H= 4300function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(G){return!1}}();return function(){var G=(0,h.default)(E);if(H){var I=(0,h.default)(this).constructor;G=Reflect.construct(G,arguments,I)}else G=G.apply(this,arguments);return(0,d.default)(this,G)}}a(7);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.default=void 0;var A=g(a(43)), 4301x=g(a(5)),q=g(a(6)),p=g(a(44)),e=g(a(30)),c=g(a(15)),d=g(a(16)),h=g(a(14));a(3);a(0);a(2);a(11);a(4);a(77);a(33);var k=a(23),f=a(17),n=a(20),l=a(124),r=a(70),m=a(150),t=function(E,H){if(!H&&E&&E.__esModule)return E;if(null===E||"object"!==D(E)&&"function"!=typeof E)return{default:E}
4301;if((H=F(H))&&H.has(E))return H.get(E);var G={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor,K;for(K in E)if("default"!==K&&Object.prototype.hasOwnProperty.call(E,K)){var J=I?Object.getOwnPropertyDescriptor(E, 4302K):null;J&&(J.get||J.set)?Object.defineProperty(G,K,J):G[K]=E[K]}G.default=E;H&&H.set(E,G);return G}(a(29)),u=a(83),w=g(a(211)),v=g(a(331)),C=g(a(1021)),y=a(209),z=new WeakMap;a=function(E){function H(I,K){var J;return(0,x.default)(this,H),J=G.call(this,I,(0,f.extend)(H.DEFAULTS,K)),z.set((0,p.default)(J),{}),J.searchInput=new v.default(J.hot,{placeholder:t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"}),J.selectAllUI=new C.default(J.hot,{textContent:t.FILTERS_BUTTONS_SELECT_ALL, 4303className:"htUISelectAll"}),J.clearAllUI=new C.default(J.hot,{textContent:t.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"}),J.items=[],J.itemsBox=null,J.registerHooks(),J}(0,c.default)(H,E);var G=B(H);return(0,q.default)(H,[{key:"registerHooks",value:function(){var I=this;this.searchInput.addLocalHook("keydown",function(K){return I.onInputKeyDown(K)});this.searchInput.addLocalHook("input",function(K){return I.onInput(K)});this.selectAllUI.addLocalHook("click",function(K){return I.onSelectAllClick(K)}); 4304this.clearAllUI.addLocalHook("click",function(K){return I.onClearAllClick(K)})}},{key:"setItems",value:function(I){this.items=I;this.itemsBox&&this.itemsBox.loadData(this.items)}},{key:"setLocale",value:function(I){this.locale=I}},{key:"getLocale",value:function(){return this.locale}},{key:"getItems",value:function(){return(0,A.default)(this.items)}},{key:"getValue",value:function(){var I,K;return K=this.items,I=[],(0,n.arrayEach)(K,function(J){J.checked&&I.push(J.value)}),I}},{key:"isSelectedAllValues", 4305value:function(){return this.items.length===this.getValue().length}},{key:"build",value:function(){var I=this;(0,e.default)((0,h.default)(H.prototype),"build",this).call(this);var K=this.hot.rootDocument,J=K.createElement("div"),P=new w.default(this.hot,{className:"htUISelectionControls",children:[this.selectAllUI,this.clearAllUI]});this._element.appendChild(this.searchInput.element);this._element.appendChild(P.element);this._element.appendChild(J);var S=function(R){I._element&&(I.itemsBox&&I.itemsBox.destroy(), 4306(0,k.addClass)(R,"htUIMultipleSelectHot"),I.itemsBox=new I.hot.constructor(R,{data:I.items,columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:function(O,N,Q,M,T,Z){O.title=Z.instance.getDataAtRowProp(N,Z.label.property)},maxCols:1,autoWrapCol:!0,height:110,colWidths:function(){return I.itemsBox.container.scrollWidth-(0,k.getScrollbarWidth)(K)},copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0}, 4307layoutDirection:I.hot.isRtl()?"rtl":"ltr"}),I.itemsBox.init(),I.itemsBox.getShortcutManager().getContext("grid").addShortcut({keys:[["Escape"]],callback:function(O){I.runLocalHooks("keydown",O,I)},group:"multipleSelect.itemBox"}))};S(J);setTimeout(function(){return S(J)},100)}},{key:"reset",value:function(){this.searchInput.reset();this.selectAllUI.reset();this.clearAllUI.reset()}},{key:"update",value:function(){var I,K,J;this.isBuilt()&&(this.itemsBox.loadData((I=this.items,K=this.options.value, 4308J=(0,y.createArrayAssertion)(K),(0,n.arrayMap)(I,function(P){return P.checked=J(P.value),P}))),(0,e.default)((0,h.default)(H.prototype),"update",this).call(this))}},{key:"destroy",value:function(){this.itemsBox&&this.itemsBox.destroy();this.searchInput.destroy();this.clearAllUI.destroy();this.selectAllUI.destroy();this.items=this.itemsBox=this.selectAllUI=this.clearAllUI=this.searchInput=null;(0,e.default)((0,h.default)(H.prototype),"destroy",this).call(this)}},{key:"onInput",value:function(I){var K= 4309this,J=I.target.value.toLocaleLowerCase(this.getLocale());I=""===J?(0,A.default)(this.items):(0,n.arrayFilter)(this.items,function(P){return 0<="".concat(P.value).toLocaleLowerCase(K.getLocale()).indexOf(J)});this.itemsBox.loadData(I)}},{key:"onInputKeyDown",value:function(I){this.runLocalHooks("keydown",I,this);(0,r.partial)(l.isKey,I.keyCode)("ARROW_DOWN|TAB")&&!this.itemsBox.isListening()&&((0,u.stopImmediatePropagation)(I),this.itemsBox.listen(),this.itemsBox.selectCell(0,0))}},{key:"onSelectAllClick", 4310value:function(I){var K=[];I.preventDefault();(0,n.arrayEach)(this.itemsBox.getSourceData(),function(J,P){J.checked=!0;K.push((0,m.dataRowToChangesArray)(J,P)[0])});this.itemsBox.setSourceDataAtCell(K)}},{key:"onClearAllClick",value:function(I){var K=[];I.preventDefault();(0,n.arrayEach)(this.itemsBox.getSourceData(),function(J,P){J.checked=!1;K.push((0,m.dataRowToChangesArray)(J,P)[0])});this.itemsBox.setSourceDataAtCell(K)}}],[{key:"DEFAULTS",get:function(){return(0,f.clone)({className:"htUIMultipleSelect", 4311value:[]})}}]),H}(w.default);b.default=a},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,e.default)(h);if(k){var n=(0,e.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,p.default)(this,f)}} 4312a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(3);a(0);a(2);a(11);a(4);a(1022);var c=a(17);a=g(a(211));var d=new WeakMap;a=function(h){function k(n,l){var r;return(0,B.default)(this,k),r=f.call(this,n,(0,c.extend)(k.DEFAULTS,l)),d.set((0,A.default)(r),{}),r}(0,q.default)(k,h);var f=F(k);return(0,D.default)(k,[{key:"build",value:function(){(0,x.default)((0,e.default)(k.prototype),"build",this).call(this);d.get(this).link= 4313this._element.firstChild}},{key:"update",value:function(){this.isBuilt()&&(d.get(this).link.textContent=this.translateIfPossible(this.options.textContent))}}],[{key:"DEFAULTS",get:function(){return(0,c.clone)({href:"#",tagName:"a"})}}]),k}(a.default);b.default=a},function(g,b,a){g=a(28);var F=a(1023);g({target:"String",proto:!0,forced:a(1024)("link")},{link:function(B){return F(this,"a","href",B)}})},function(g,b,a){b=a(35);var F=a(94),B=a(73),D=/"/g,A=b("".replace);g.exports=function(x,q,p,e){x= 4314B(F(x));var c="\x3c"+q;
4314return""!==p&&(c+=" "+p+'\x3d"'+A(B(e),D,"\x26quot;")+'"'),c+"\x3e"+x+"\x3c/"+q+"\x3e"}},function(g,b,a){var F=a(38);g.exports=function(B){return F(function(){var D=""[B]('"');return D!==D.toLowerCase()||3<D.split('"').length})}},function(g,b,a){function F(n){if("function"!=typeof WeakMap)return null;var l=new WeakMap,r=new WeakMap;return(F=function(m){return m?r:l})(n)}function B(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1; 4315if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r=(0,e.default)(n);if(l){var m=(0,e.default)(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);return(0,p.default)(this,r)}}a(0);a(7);a(3);a(2);a(11);a(4);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.default=void 0;a(26);var A=g(a(5)),x=g(a(6)),q=g(a(15)),p=g(a(16)),e=g(a(14)),c=a(23),d=a(20),h=function(n, 4316l){if(!l&&n&&n.__esModule)return n;if(null===n||"object"!==D(n)&&"function"!=typeof n)return{default:n};if((l=F(l))&&l.has(n))return l.get(n);var r={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor,t;for(t in n)if("default"!==t&&Object.prototype.hasOwnProperty.call(n,t)){var u=m?Object.getOwnPropertyDescriptor(n,t):null;u&&(u.get||u.set)?Object.defineProperty(r,t,u):r[t]=n[t]}r.default=n;l&&l.set(n,r);return r}(a(29)),k=g(a(250)),f=g(a(331));a=function(n){function l(m,t){var u;return(0,A.default)(this, 4317l),(u=r.call(this,m,{id:t.id,stateless:!0})).name=t.name,u.elements.push(new f.default(u.hot,{type:"button",value:h.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:l.BUTTON_OK})),u.elements.push(new f.default(u.hot,{type:"button",value:h.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:l.BUTTON_CANCEL})),u.registerHooks(),u}(0,q.default)(l,n);var r=B(l);return(0,x.default)(l,[{key:"registerHooks",value:function(){var m=this;(0,d.arrayEach)(this.elements, 4318function(t){t.addLocalHook("click",function(u,w){return m.onButtonClick(u,w)})})}},{key:"getMenuItemDescriptor",value:function(){var m=this;return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:function(){return m.isHidden()},renderer:function(t,u){return(0,c.addClass)(u.parentNode,"htFiltersMenuActionBar"),u.parentNode.hasAttribute("ghost-table")||(0,d.arrayEach)(m.elements,function(w){return u.appendChild(w.element)}),u}}}},{key:"accept",value:function(){this.runLocalHooks("accept")}}, 4319{key:"cancel",value:function(){this.runLocalHooks("cancel")}},{key:"onButtonClick",value:function(m,t){t.options.identifier===l.BUTTON_OK?this.accept():this.cancel()}}],[{key:"BUTTON_OK",get:function(){return"ok"}},{key:"BUTTON_CANCEL",get:function(){return"cancel"}}]),l}(k.default);b.default=a},function(g,b,a){var F=a(1);b.__esModule=!0;b.default=void 0;a(33);a(13);a(18);a(39);a(0);var B=F(a(5)),D=F(a(6)),A=a(20),x=a(17),q=a(70);g=F(a(98));var p=F(a(648)),e=F(a(649)),c=a(209);a=function(){function d(h, 4320k){var f=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){return[]};(0,B.default)(this,d);this.hot=h;this.conditionCollection=k;this.columnDataFactory=n;this.changes=[];this.grouping=!1;this.latestEditedColumnPosition=-1;this.latestOrderStack=[];this.conditionCollection.addLocalHook("beforeRemove",function(l){return f._onConditionBeforeModify(l)});this.conditionCollection.addLocalHook("afterRemove",function(l){return f.updateStatesAtColumn(l)});this.conditionCollection.addLocalHook("afterAdd", 4321function(l){return f.updateStatesAtColumn(l)});this.conditionCollection.addLocalHook("beforeClean",function(){return f._onConditionBeforeClean()});this.conditionCollection.addLocalHook("afterClean",function(){return f._onConditionAfterClean()})}return(0,D.default)(d,[{key:"groupChanges",value:function(){this.grouping=!0}},{key:"flush",value:function(){var h=this;this.grouping=!1;(0,A.arrayEach)(this.changes,function(k){h.updateStatesAtColumn(k)});this.changes.length=0}},{key:"_onConditionBeforeModify", 4322value:function(h){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(h)}},{key:"updateStatesAtColumn",value:function(h,k){var f=this;if(this.grouping)-1===this.changes.indexOf(h)&&this.changes.push(h);else{var n=this.conditionCollection.exportAllConditions(),l=this.conditionCollection.getColumnStackPosition(h);-1===l&&(l=this.latestEditedColumnPosition);var r=n.slice(0,l);n=n.slice(l);n.length&&n[0].column===h&&n.shift();r=(0,q.curry)(function(m,t){var u=2<arguments.length&& 4323void 0!==arguments[2]?arguments[2]:[],w=new p.default(f.hot,!1);u=[].concat(m,u);w.importAllConditions(u);var v=f.columnDataFactory(t);u=w.isEmpty()?v:(new e.default(w,function(y){return f.columnDataFactory(y)})).filter();u=(0,A.arrayMap)(u,function(y){return y.meta.visualRow});var C=(0,c.createArrayAssertion)(u);return w.destroy(),(0,A.arrayFilter)(v,function(y){return C(y.meta.visualRow)})})(r);l=[].concat(this.conditionCollection.getConditions(h));this.runLocalHooks("update",{editedConditionStack:{column:h, 4324conditions:l},dependentConditionStacks:n,filteredRowsFactory:r,conditionArgsChange:k})}}},{key:"_onConditionBeforeClean",value:function(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}},{key:"_onConditionAfterClean",value:function(){var h=this;(0,A.arrayEach)(this.latestOrderStack,function(k){h.updateStatesAtColumn(k)})}},{key:"destroy",value:function(){var h=this;this.clearLocalHooks();(0,x.objectEach)(this,function(k,f){h[f]=null})}}]),d}();(0,x.mixin)(a,g.default);b.default= 4325a},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.Formulas=void 0;g=a(332);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.Formulas=g.Formulas},function(g,b,a){function F(){var f=(0,e.default)(h.PLUGIN_KEY);return f.hasItem("engine_relationship")||f.register("engine_relationship",new Map),f.getItem("engine_relationship")}function B(){var f=(0,e.default)(h.PLUGIN_KEY);return f.hasItem("shared_engine_usage")||f.register("shared_engine_usage",new Map), 4326f.getItem("shared_engine_usage")}function D(f,n,l){var r=n[h.PLUGIN_KEY];n=(0,k.getEngineSettingsWithDefaultsAndOverrides)(n);var m=F(),t=B();A(f,r.functions);x(f,r.language);var u=f.buildEmpty(n);return m.set(u,[l]),t.set(u,[l.guid]),q(u,r.namedExpressions),u.on("sheetAdded",function(){u.rebuildAndRecalculate()}),u.on("sheetRemoved",function(){u.rebuildAndRecalculate()}),u}
4326function A(f,n){n&&n.forEach(function(l){var r=l.name,m=l.plugin;l=l.translations;try{f.registerFunction(r,m,l)}catch(t){(0,d.warn)(t.message)}})} 4327function x(f,n){if(n){var l=n.langCode;try{f.registerLanguage(l,n)}catch(r){(0,d.warn)(r.message)}}}function q(f,n){n&&(f.suspendEvaluation(),n.forEach(function(l){var r=l.name,m=l.expression,t=l.scope;l=l.options;try{f.addNamedExpression(r,m,t,l)}catch(u){(0,d.warn)(u.message)}}),f.resumeEvaluation())}g=a(1);b.__esModule=!0;b.getRegisteredHotInstances=function(f){var n,l=F();f=0===l.size?[]:Array.from(null!==(n=l.get(f))&&void 0!==n?n:[]);return new Map(f.map(function(r){return[r.getPlugin("formulas").sheetId, 4328r]}))};b.registerCustomFunctions=A;b.registerEngine=D;b.registerLanguage=x;b.registerNamedExpressions=q;b.setupEngine=function(f){var n,l=f.getSettings(),r=l[h.PLUGIN_KEY],m=null==r?void 0:r.engine;return!0===r||(0,c.isUndefined)(m)?null:"function"==typeof m.hyperformula||"function"==typeof m?D(null!==(n=m.hyperformula)&&void 0!==n?n:m,l,f):"object"===(0,p.default)(m)&&(0,c.isUndefined)(m.hyperformula)?(n=F(),l=B().get(m),n.has(m)||n.set(m,[]),n.get(m).push(f),l&&l.push(f.guid),m.getConfig().licenseKey|| 4329m.updateConfig({licenseKey:k.DEFAULT_LICENSE_KEY}),m):null};b.setupSheet=function(f,n){!(0,c.isUndefined)(n)&&f.doesSheetExist(n)||(n=f.addSheet(n));return n};b.unregisterEngine=function(f,n){if(f){var l=F(),r=l.get(f),m=B(),t=m.get(f);r&&r.includes(n)&&(r.splice(r.indexOf(n),1),0===r.length&&l.delete(f));t&&t.includes(n.guid)&&(t.splice(t.indexOf(n.guid),1),0===t.length&&(m.delete(f),f.destroy()))}};var p=g(a(21));a(3);a(32);a(0);a(2);a(4);a(22);a(36);a(42);a(49);a(55);a(33);a(27);a(26);var e=g(a(119)), 4330c=a(31),d=a(92),h=a(332),k=a(650)},function(g,b,a){function F(B){return"string"==typeof B&&"'"===B.charAt(0)&&"\x3d"===B.charAt(1)}b.__esModule=!0;b.isEscapedFormulaExpression=F;b.unescapeFormulaExpression=function(B){return F(B)?B.substr(1):B}},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.HiddenColumns=void 0;g=a(1032);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.HiddenColumns=g.HiddenColumns},function(g,b,a){function F(E){var H=function(){if("undefined"==typeof Reflect|| 4331!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(G){return!1}}();return function(){var G=(0,c.default)(E);if(H){var I=(0,c.default)(this).constructor;G=Reflect.construct(G,arguments,I)}else G=G.apply(this,arguments);return(0,e.default)(this,G)}}function B(E,H,G){if(H.has(E))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;H.set(E, 4332G)}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.HiddenColumns=void 0;a(18);a(13);a(36);a(22);a(2);a(3);a(0);a(54);a(4);a(68);a(52);a(33);a(12);a(64);a(55);a(76);a(11);var D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(30)),p=g(a(15)),e=g(a(16)),c=g(a(14)),d=g(a(109)),h=g(a(110)),k=a(50),f=a(23),n=a(47),l=a(20),r=a(17),m=a(31),t=a(126),u=g(a(71)),w=g(a(1033)),v=g(a(1034)),C=a(84);a(1035);u.default.getSingleton().register("beforeHideColumns");u.default.getSingleton().register("afterHideColumns"); 4333u.default.getSingleton().register("beforeUnhideColumns");u.default.getSingleton().register("afterUnhideColumns");b.PLUGIN_KEY="hiddenColumns";b.PLUGIN_PRIORITY=310;var y=new WeakMap,z=new WeakMap;a=function(E){function H(){var I;(0,D.default)(this,H);for(var K=arguments.length,J=Array(K),P=0;P<K;P++)J[P]=arguments[P];return I=G.call.apply(G,[this].concat(J)),B((0,x.default)(I),y,{writable:!0,value:{}}),B((0,x.default)(I),z,{writable:!0,value:null}),I}(0,p.default)(H,E);var G=F(H);return(0,A.default)(H, 4334[{key:"isEnabled",value:function(){return!!this.hot.getSettings().hiddenColumns}},{key:"enablePlugin",value:function(){var I=this;if(!this.enabled){var K=this.hot.getSettings().hiddenColumns;(0,r.isObject)(K)&&((0,h.default)(this,y,K),(0,m.isUndefined)(K.copyPasteEnabled)&&(K.copyPasteEnabled=!0));(0,h.default)(this,z,new C.HidingMap);(0,d.default)(this,z).addLocalHook("init",function(){return I.onMapInit()});this.hot.columnIndexMapper.registerMap(this.pluginName,(0,d.default)(this,z));this.addHook("afterContextMenuDefaultOptions", 4335function(){return I.onAfterContextMenuDefaultOptions.apply(I,arguments)});this.addHook("afterGetCellMeta",function(J,P,S){return I.onAfterGetCellMeta(J,P,S)});this.addHook("modifyColWidth",function(J,P){return I.onModifyColWidth(J,P)});this.addHook("afterGetColHeader",function(){return I.onAfterGetColHeader.apply(I,arguments)});this.addHook("modifyCopyableRange",function(J){return I.onModifyCopyableRange(J)});(0,q.default)((0,c.default)(H.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin", 4336value:function(){this.disablePlugin();this.enablePlugin();(0,q.default)((0,c.default)(H.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.columnIndexMapper.unregisterMap(this.pluginName);(0,h.default)(this,y,{});(0,q.default)((0,c.default)(H.prototype),"disablePlugin",this).call(this);this.resetCellsMeta()}},{key:"showColumns",value:function(I){var K=this,J=this.getHiddenColumns(),P=this.isValidConfig(I),S=J,R=(0,d.default)(this,z).getValues().slice(),O=0< 4337I.length;P&&O&&(I=I.map(function(N){return K.hot.toPhysicalColumn(N)}),(0,l.arrayEach)(I,function(N){R[N]=!1}),S=(0,l.arrayReduce)(R,function(N,Q,M){return Q&&N.push(K.hot.toVisualColumn(M)),N},[]));!1!==this.hot.runHooks("beforeUnhideColumns",J,S,P&&O)&&(P&&O&&(0,d.default)(this,z).setValues(R),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",J,S,P&&O,P&&S.length<J.length))}},{key:"showColumn",value:function(){for(var I=arguments.length,K=Array(I),J=0;J<I;J++)K[J]=arguments[J]; 4338this.showColumns(K)}},{key:"hideColumns",value:function(I){var K=this,J=this.getHiddenColumns(),P=this.isValidConfig(I),S=J;
4338P&&(S=Array.from(new Set(J.concat(I))));!1!==this.hot.runHooks("beforeHideColumns",J,S,P)&&(P&&this.hot.batchExecution(function(){(0,l.arrayEach)(I,function(R){(0,d.default)(K,z).setValueAtIndex(K.hot.toPhysicalColumn(R),!0)})},!0),this.hot.runHooks("afterHideColumns",J,S,P,P&&S.length>J.length))}},{key:"hideColumn",value:function(){for(var I=arguments.length,K=Array(I),J=0;J< 4339I;J++)K[J]=arguments[J];this.hideColumns(K)}},{key:"getHiddenColumns",value:function(){var I=this;return(0,l.arrayMap)((0,d.default)(this,z).getHiddenIndexes(),function(K){return I.hot.toVisualColumn(K)})}},{key:"isHidden",value:function(I){return(0,d.default)(this,z).getValueAtIndex(this.hot.toPhysicalColumn(I))||!1}},{key:"isValidConfig",value:function(I){var K=this.hot.countCols();return!!(Array.isArray(I)&&0<I.length)&&I.every(function(J){return Number.isInteger(J)&&0<=J&&J<K})}},{key:"resetCellsMeta", 4340value:function(){(0,l.arrayEach)(this.hot.getCellsMeta(),function(I){I&&(I.skipColumnOnPaste=!1)})}},{key:"onModifyColWidth",value:function(I,K){return this.isHidden(K)?0:(0,d.default)(this,y).indicators&&(this.isHidden(K+1)||this.isHidden(K-1))&&"number"==typeof I&&this.hot.hasColHeaders()?I+15:void 0}},{key:"onAfterGetCellMeta",value:function(I,K,J){(!1===(0,d.default)(this,y).copyPasteEnabled&&this.isHidden(K)&&(J.skipColumnOnPaste=!0),this.isHidden(K-1))?(J.className=J.className||"",-1===J.className.indexOf("afterHiddenColumn")&& 4341(J.className+=" afterHiddenColumn")):J.className&&(I=J.className.split(" "),0<I.length&&(K=I.indexOf("afterHiddenColumn"),-1<K&&I.splice(K,1),J.className=I.join(" ")))}},{key:"onModifyCopyableRange",value:function(I){var K=this;if((0,d.default)(this,y).copyPasteEnabled)return I;var J=[];return(0,l.arrayEach)(I,function(P){var S=!0,R=0;(0,n.rangeEach)(P.startCol,P.endCol,function(O){K.isHidden(O)?(S||J.push({startRow:P.startRow,endRow:P.endRow,startCol:R,endCol:O-1}),S=!0):(S&&(R=O),O===P.endCol&& 4342J.push({startRow:P.startRow,endRow:P.endRow,startCol:R,endCol:O}),S=!1)})}),J}},{key:"onAfterGetColHeader",value:function(I,K){if((0,d.default)(this,y).indicators&&!(0>I)){var J=[];1<=I&&this.isHidden(I-1)&&J.push("afterHiddenColumn");I<this.hot.countCols()-1&&this.isHidden(I+1)&&J.push("beforeHiddenColumn");(0,f.addClass)(K,J)}}},{key:"onAfterContextMenuDefaultOptions",value:function(I){I.items.push({name:t.SEPARATOR},(0,w.default)(this),(0,v.default)(this))}},{key:"onMapInit",value:function(){Array.isArray((0,d.default)(this, 4343y).columns)&&this.hideColumns((0,d.default)(this,y).columns)}},{key:"destroy",value:function(){(0,h.default)(this,y,null);(0,h.default)(this,z,null);(0,q.default)((0,c.default)(H.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"hiddenColumns"}},{key:"PLUGIN_PRIORITY",get:function(){return 310}}]),H}(k.BasePlugin);b.HiddenColumns=a},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e? 4344p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.default=function(x){return{key:"hidden_columns_hide",name:function(){var q=this.getSelectedLast(),p=0;Array.isArray(q)&&(q=(0,D.default)(q,4),0!=q[1]-q[3]&&(p=1));return this.getTranslatedPhrase(A.CONTEXTMENU_ITEMS_HIDE_COLUMN,p)},callback:function(){var q=this.getSelectedRangeLast(),p=q.from,e=q.to;q=Math.max(p.col,e.col);var c=[];for(p=Math.max(Math.min(p.col,e.col),0);p<=q;p+=1)c.push(p);x.hideColumns(c);p=this.columnIndexMapper.getNearestNotHiddenIndex(c[c.length- 43451],1,!0);Number.isInteger(p)&&0<=p?this.selectColumns(p):this.deselectCell();this.render();this.view.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}};a(68);a(52);var D=g(a(34)),A=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!== 4346c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29))},function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}a(3);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.default=function(q){var p=[];return{key:"hidden_columns_show",name:function(){return this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_SHOW_COLUMN, 43471<p.length?1:0)}
4347,callback:function(){var e,c;if(0!==p.length){var d=p[0],h=p[p.length-1];d=null!==(e=this.columnIndexMapper.getNearestNotHiddenIndex(d-1,-1))&&void 0!==e?e:0;h=null!==(c=this.columnIndexMapper.getNearestNotHiddenIndex(h+1,1))&&void 0!==c?c:this.countCols()-1;q.showColumns(p);this.render();this.view.adjustElementsSize(!0);h-d+1===this.countCols()||this.selectColumns(d,h)}},disabled:!1,hidden:function(){var e=this,c=(0,A.arrayMap)(q.getHiddenColumns(),function(m){return e.toPhysicalColumn(m)}); 4348if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||1>c.length)return!0;p.length=0;var d=this.getSelectedRangeLast(),h=d.getTopStartCorner().col,k=d.getBottomEndCorner().col,f=this.columnIndexMapper,n=f.getRenderableFromVisualIndex(h),l=f.getRenderableFromVisualIndex(k),r=f.getNotTrimmedIndexes();d=[];h!==k?k-h+1>l-n+1&&(h=r.slice(h,k+1),d.push.apply(d,(0,D.default)(h.filter(function(m){return c.includes(m)})))):0===n&&n<h?d.push.apply(d,(0,D.default)(r.slice(0,h))): 4349null===n?d.push.apply(d,(0,D.default)(r.slice(0,this.countCols()))):(h=this.countCols()-1,l===f.getRenderableFromVisualIndex(f.getNearestNotHiddenIndex(h,-1))&&h>k&&d.push.apply(d,(0,D.default)(r.slice(k+1))));return(0,A.arrayEach)(d,function(m){p.push(e.toVisualColumn(m))}),0===p.length}}};var D=g(a(43));a(13);a(39);a(0);a(42);a(49);var A=a(20),x=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==B(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q); 4350var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q,d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29))},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.HiddenRows=void 0;g=a(1037);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.HiddenRows=g.HiddenRows},function(g, 4351b,a){function F(E){var H=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(G){return!1}}();return function(){var G=(0,c.default)(E);if(H){var I=(0,c.default)(this).constructor;G=Reflect.construct(G,arguments,I)}else G=G.apply(this,arguments);return(0,e.default)(this,G)}}function B(E,H,G){if(H.has(E))throw new TypeError("Cannot initialize the same private elements twice on an object"); 4352!0;H.set(E,G)}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.HiddenRows=void 0;a(18);a(13);a(36);a(22);a(2);a(3);a(0);a(54);a(4);a(68);a(52);a(33);a(12);a(64);a(55);a(76);a(11);var D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(30)),p=g(a(15)),e=g(a(16)),c=g(a(14)),d=g(a(109)),h=g(a(110)),k=a(50),f=a(23),n=a(47),l=a(20),r=a(17),m=a(31),t=a(126),u=g(a(71)),w=g(a(1038)),v=g(a(1039)),C=a(84);a(1040);u.default.getSingleton().register("beforeHideRows");u.default.getSingleton().register("afterHideRows"); 4353u.default.getSingleton().register("beforeUnhideRows");u.default.getSingleton().register("afterUnhideRows");b.PLUGIN_KEY="hiddenRows";b.PLUGIN_PRIORITY=320;var y=new WeakMap,z=new WeakMap;a=function(E){function H(){var I;(0,D.default)(this,H);for(var K=arguments.length,J=Array(K),P=0;P<K;P++)J[P]=arguments[P];return I=G.call.apply(G,[this].concat(J)),B((0,x.default)(I),y,{writable:!0,value:{}}),B((0,x.default)(I),z,{writable:!0,value:null}),I}(0,p.default)(H,E);var G=F(H);return(0,A.default)(H,[{key:"isEnabled", 4354value:function(){return!!this.hot.getSettings().hiddenRows}},{key:"enablePlugin",value:function(){var I=this;if(!this.enabled){var K=this.hot.getSettings().hiddenRows;(0,r.isObject)(K)&&((0,h.default)(this,y,K),(0,m.isUndefined)(K.copyPasteEnabled)&&(K.copyPasteEnabled=!0));(0,h.default)(this,z,new C.HidingMap);(0,d.default)(this,z).addLocalHook("init",function(){return I.onMapInit()});this.hot.rowIndexMapper.registerMap(this.pluginName,(0,d.default)(this,z));this.addHook("afterContextMenuDefaultOptions", 4355function(){return I.onAfterContextMenuDefaultOptions.apply(I,arguments)});this.addHook("afterGetCellMeta",function(J,P,S){return I.onAfterGetCellMeta(J,P,S)});this.addHook("modifyRowHeight",function(J,P){return I.onModifyRowHeight(J,P)});this.addHook("afterGetRowHeader",function(){return I.onAfterGetRowHeader.apply(I,arguments)});this.addHook("modifyCopyableRange",function(J){return I.onModifyCopyableRange(J)});(0,q.default)((0,c.default)(H.prototype),"enablePlugin",this).call(this)}}},{key:"updatePlugin", 4356value:function(){this.disablePlugin();this.enablePlugin();(0,q.default)((0,c.default)(H.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap(this.pluginName);(0,h.default)(this,y,{});(0,q.default)((0,c.default)(H.prototype),"disablePlugin",this).call(this);this.resetCellsMeta()}},{key:"showRows",value:function(I){var K=this,J=this.getHiddenRows(),P=this.isValidConfig(I),S=J,R=(0,d.default)(this,z).getValues().slice(),O=0<I.length; 4357P&&O&&(I=I.map(function(N){return K.hot.toPhysicalRow(N)}),(0,l.arrayEach)(I,function(N){R[N]=!1}),S=(0,l.arrayReduce)(R,function(N,Q,M){return Q&&N.push(K.hot.toVisualRow(M)),N},[]));!1!==this.hot.runHooks("beforeUnhideRows",J,S,P&&O)&&(P&&O&&(0,d.default)(this,z).setValues(R),this.hot.runHooks("afterUnhideRows",J,S,P&&O,P&&S.length<J.length))}},{key:"showRow",value:function(){for(var I=arguments.length,K=Array(I),J=0;J<I;J++)K[J]=arguments[J];this.showRows(K)}},{key:"hideRows",value:function(I){var K= 4358this,J=this.getHiddenRows(),P=this.isValidConfig(I),S=J;
4358P&&(S=Array.from(new Set(J.concat(I))));!1!==this.hot.runHooks("beforeHideRows",J,S,P)&&(P&&this.hot.batchExecution(function(){(0,l.arrayEach)(I,function(R){(0,d.default)(K,z).setValueAtIndex(K.hot.toPhysicalRow(R),!0)})},!0),this.hot.runHooks("afterHideRows",J,S,P,P&&S.length>J.length))}},{key:"hideRow",value:function(){for(var I=arguments.length,K=Array(I),J=0;J<I;J++)K[J]=arguments[J];this.hideRows(K)}},{key:"getHiddenRows",value:function(){var I= 4359this;return(0,l.arrayMap)((0,d.default)(this,z).getHiddenIndexes(),function(K){return I.hot.toVisualRow(K)})}},{key:"isHidden",value:function(I){return(0,d.default)(this,z).getValueAtIndex(this.hot.toPhysicalRow(I))||!1}},{key:"isValidConfig",value:function(I){var K=this.hot.countRows();return!!(Array.isArray(I)&&0<I.length)&&I.every(function(J){return Number.isInteger(J)&&0<=J&&J<K})}},{key:"resetCellsMeta",value:function(){(0,l.arrayEach)(this.hot.getCellsMeta(),function(I){I&&(I.skipRowOnPaste= 4360!1)})}},{key:"onModifyRowHeight",value:function(I,K){return this.isHidden(K)?0:I}},{key:"onAfterGetCellMeta",value:function(I,K,J){(!1===(0,d.default)(this,y).copyPasteEnabled&&this.isHidden(I)&&(J.skipRowOnPaste=!0),this.isHidden(I-1))?(J.className=J.className||"",-1===J.className.indexOf("afterHiddenRow")&&(J.className+=" afterHiddenRow")):J.className&&(I=J.className.split(" "),0<I.length&&(K=I.indexOf("afterHiddenRow"),-1<K&&I.splice(K,1),J.className=I.join(" ")))}},{key:"onModifyCopyableRange", 4361value:function(I){var K=this;if((0,d.default)(this,y).copyPasteEnabled)return I;var J=[];return(0,l.arrayEach)(I,function(P){var S=!0,R=0;(0,n.rangeEach)(P.startRow,P.endRow,function(O){K.isHidden(O)?(S||J.push({startRow:R,endRow:O-1,startCol:P.startCol,endCol:P.endCol}),S=!0):(S&&(R=O),O===P.endRow&&J.push({startRow:R,endRow:O,startCol:P.startCol,endCol:P.endCol}),S=!1)})}),J}},{key:"onAfterGetRowHeader",value:function(I,K){if((0,d.default)(this,y).indicators&&!(0>I)){var J=[];1<=I&&this.isHidden(I- 43621)&&J.push("afterHiddenRow");I<this.hot.countRows()-1&&this.isHidden(I+1)&&J.push("beforeHiddenRow");(0,f.addClass)(K,J)}}},{key:"onAfterContextMenuDefaultOptions",value:function(I){I.items.push({name:t.SEPARATOR},(0,w.default)(this),(0,v.default)(this))}},{key:"onMapInit",value:function(){Array.isArray((0,d.default)(this,y).rows)&&this.hideRows((0,d.default)(this,y).rows)}},{key:"destroy",value:function(){(0,h.default)(this,y,null);(0,h.default)(this,z,null);(0,q.default)((0,c.default)(H.prototype), 4363"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"hiddenRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 320}}]),H}(k.BasePlugin);b.HiddenRows=a},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.default=function(x){return{key:"hidden_rows_hide",name:function(){var q=this.getSelectedLast(),p=0;Array.isArray(q)&&(q= 4364(0,D.default)(q,3),0!=q[0]-q[2]&&(p=1));return this.getTranslatedPhrase(A.CONTEXTMENU_ITEMS_HIDE_ROW,p)},callback:function(){var q=this.getSelectedRangeLast(),p=q.from,e=q.to;q=Math.max(p.row,e.row);var c=[];
4364for(p=Math.max(Math.min(p.row,e.row),0);p<=q;p+=1)c.push(p);x.hideRows(c);p=this.rowIndexMapper.getNearestNotHiddenIndex(c[c.length-1],1,!0);Number.isInteger(p)&&0<=p?this.selectRows(p):this.deselectCell();this.render();this.view.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!(this.selection.isSelectedByRowHeader()|| 4365this.selection.isSelectedByCorner())}}};a(68);a(52);var D=g(a(34)),A=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29))}, 4366function(g,b,a){function F(q){if("function"!=typeof WeakMap)return null;var p=new WeakMap,e=new WeakMap;return(F=function(c){return c?e:p})(q)}a(3);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.default=function(q){var p=[];return{key:"hidden_rows_show",name:function(){return this.getTranslatedPhrase(x.CONTEXTMENU_ITEMS_SHOW_ROW,1<p.length?1:0)},callback:function(){var e,c;if(0!==p.length){var d=p[0],h=p[p.length-1];d=null!==(e=this.rowIndexMapper.getNearestNotHiddenIndex(d-1,-1))&&void 0!== 4367e?e:0;h=null!==(c=this.rowIndexMapper.getNearestNotHiddenIndex(h+1,1))&&void 0!==c?c:this.countRows()-1;q.showRows(p);this.render();this.view.adjustElementsSize(!0);h-d+1===this.countRows()||this.selectRows(d,h)}},disabled:!1,hidden:function(){var e=this,c=(0,A.arrayMap)(q.getHiddenRows(),function(m){return e.toPhysicalRow(m)});if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||1>c.length)return!0;p.length=0;var d=this.getSelectedRangeLast(),h=d.getTopStartCorner().row, 4368k=d.getBottomEndCorner().row,f=this.rowIndexMapper,n=f.getRenderableFromVisualIndex(h),l=f.getRenderableFromVisualIndex(k),r=f.getNotTrimmedIndexes();d=[];h!==k?k-h+1>l-n+1&&(h=r.slice(h,k+1),d.push.apply(d,(0,D.default)(h.filter(function(m){return c.includes(m)})))):0===n&&n<h?d.push.apply(d,(0,D.default)(r.slice(0,h))):null===n?d.push.apply(d,(0,D.default)(r.slice(0,this.countRows()))):(h=this.countRows()-1,l===f.getRenderableFromVisualIndex(f.getNearestNotHiddenIndex(h,-1))&&h>k&&d.push.apply(d, 4369(0,D.default)(r.slice(k+1))));return(0,A.arrayEach)(d,function(m){p.push(e.toVisualRow(m))}),0===p.length}}};var D=g(a(43));a(13);a(39);a(0);a(42);a(49);var A=a(20),x=function(q,p){if(!p&&q&&q.__esModule)return q;if(null===q||"object"!==B(q)&&"function"!=typeof q)return{default:q};if((p=F(p))&&p.has(q))return p.get(q);var e={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor,d;for(d in q)if("default"!==d&&Object.prototype.hasOwnProperty.call(q,d)){var h=c?Object.getOwnPropertyDescriptor(q, 4370d):null;h&&(h.get||h.set)?Object.defineProperty(e,d,h):e[d]=q[d]}e.default=q;p&&p.set(q,e);return e}(a(29))},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ManualColumnFreeze=void 0;g=a(1042);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.ManualColumnFreeze=g.ManualColumnFreeze},function(g,b,a){function F(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 4371try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r=(0,e.default)(n);if(l){var m=(0,e.default)(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);return(0,p.default)(this,r)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ManualColumnFreeze=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(3);a(0);a(2);a(11);a(4);var c=a(50),d=g(a(71)), 4372h=g(a(1043)),k=g(a(1044));a(1045);d.default.getSingleton().register("beforeColumnFreeze");d.default.getSingleton().register("afterColumnFreeze");d.default.getSingleton().register("beforeColumnUnfreeze");d.default.getSingleton().register("afterColumnUnfreeze");b.PLUGIN_KEY="manualColumnFreeze";b.PLUGIN_PRIORITY=110;var f=new WeakMap;a=function(n){function l(m){var t;return(0,B.default)(this,l),t=r.call(this,m),f.set((0,A.default)(t),{afterFirstUse:!1}),t}(0,q.default)(l,n);var r=F(l);return(0,D.default)(l, 4373[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnFreeze}},{key:"enablePlugin",value:function(){var m=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(t){return m.addContextMenuEntry(t)}),this.addHook("beforeColumnMove",function(t,u){return m.onBeforeColumnMove(t,u)}),(0,x.default)((0,e.default)(l.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){f.get(this).afterFirstUse=!1;(0,x.default)((0,e.default)(l.prototype), 4374"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();(0,x.default)((0,e.default)(l.prototype),"updatePlugin",this).call(this)}},{key:"freezeColumn",value:function(m){var t=f.get(this),u=this.hot.getSettings(),w=u.fixedColumnsStart<this.hot.countCols()&&m>
4374u.fixedColumnsStart-1;t.afterFirstUse||(t.afterFirstUse=!0);!1!==this.hot.runHooks("beforeColumnFreeze",m,w)&&(w&&(this.hot.columnIndexMapper.moveIndexes(m,u.fixedColumnsStart),u._fixedColumnsStart+= 43751),this.hot.runHooks("afterColumnFreeze",m,w))}},{key:"unfreezeColumn",value:function(m){var t=f.get(this),u=this.hot.getSettings(),w=0<u.fixedColumnsStart&&m<=u.fixedColumnsStart-1;t.afterFirstUse||(t.afterFirstUse=!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",m,w)&&(w&&(--u._fixedColumnsStart,this.hot.columnIndexMapper.moveIndexes(m,u.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",m,w))}},{key:"addContextMenuEntry",value:function(m){m.items.push({name:"---------"},(0,h.default)(this), 4376(0,k.default)(this))}},{key:"onBeforeColumnMove",value:function(m,t){if(f.get(this).afterFirstUse){var u=this.hot.getSettings().fixedColumnsStart;if(t<u||m.some(function(w){return w<u}))return!1}}}],[{key:"PLUGIN_KEY",get:function(){return"manualColumnFreeze"}},{key:"PLUGIN_PRIORITY",get:function(){return 110}}]),l}(c.BasePlugin);b.ManualColumnFreeze=a},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3); 4377a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.default=function(x){return{key:"freeze_column",name:function(){return this.getTranslatedPhrase(A.CONTEXTMENU_ITEMS_FREEZE_COLUMN)},callback:function(q,p){q=(0,D.default)(p,1)[0].start.col;x.freezeColumn(q);this.render();this.view.adjustElementsSize(!0)},hidden:function(){var q=this.getSelectedRange(),p=!1;return(void 0===q||1<q.length||q[0].from.col!==q[0].to.col||q[0].from.col<=this.getSettings().fixedColumnsStart-1)&&(p=!0),p}}};var D= 4378g(a(34)),A=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29))},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null; 4379var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.default=function(x){return{key:"unfreeze_column",name:function(){return this.getTranslatedPhrase(A.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback:function(q,p){q=(0,D.default)(p,1)[0].start.col;x.unfreezeColumn(q);this.render();this.view.adjustElementsSize(!0)},hidden:function(){var q=this.getSelectedRange(),p=!1;return(void 0===q||1<q.length||q[0].from.col!==q[0].to.col|| 4380q[0].from.col>=this.getSettings().fixedColumnsStart)&&(p=!0),p}}};var D=g(a(34)),A=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x, 4381p);return p}(a(29))},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ManualColumnMove=void 0;g=a(1047);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.ManualColumnMove=g.ManualColumnMove},function(g,b,a){function F(t){var u=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(w){return!1}}(); 4382return function(){var w=(0,e.default)(t);if(u){var v=(0,e.default)(this).constructor;w=Reflect.construct(w,arguments,v)}else w=w.apply(this,arguments);return(0,p.default)(this,w)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ManualColumnMove=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(3);a(0);a(2);a(11);a(4);a(77);a(33);var c=a(50),d=g(a(71)),h=a(20),k=a(23),f=a(47),n=g(a(60)),l=g(a(1048)),r=g(a(1049));a(1050);d.default.getSingleton().register("beforeColumnMove"); 4383d.default.getSingleton().register("afterColumnMove");b.PLUGIN_KEY="manualColumnMove";b.PLUGIN_PRIORITY=120;var m=new WeakMap;a=function(t){function u(v){var C;return(0,B.default)(this,u),C=w.call(this,v),m.set((0,A.default)(C),{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0},cachedDropIndex:void 0}),C.eventManager=new n.default((0,A.default)(C)),C.backlight=new l.default(v),C.guideline=new r.default(v),C}(0,q.default)(u,t);var w=
4384F(u);return(0,D.default)(u,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualColumnMove}},{key:"enablePlugin",value:function(){var v=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){return v.onBeforeOnCellMouseDown.apply(v,arguments)}),this.addHook("beforeOnCellMouseOver",function(){return v.onBeforeOnCellMouseOver.apply(v,arguments)}),this.addHook("afterScrollVertically",function(){return v.onAfterScrollVertically()}),this.addHook("afterLoadData",function(){return v.onAfterLoadData.apply(v, 4385arguments)}),this.buildPluginUI(),this.registerEvents(),(0,k.addClass)(this.hot.rootElement,"ht__manualColumnMove"),(0,x.default)((0,e.default)(u.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();this.moveBySettingsOrLoad();(0,x.default)((0,e.default)(u.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,k.removeClass)(this.hot.rootElement,"ht__manualColumnMove");this.unregisterEvents();this.backlight.destroy(); 4386this.guideline.destroy();(0,x.default)((0,e.default)(u.prototype),"disablePlugin",this).call(this)}},{key:"moveColumn",value:function(v,C){return this.moveColumns([v],C)}},{key:"moveColumns",value:function(v,C){var y=m.get(this),z=y.cachedDropIndex,E=this.isMovePossible(v,C),H=this.hot.runHooks("beforeColumnMove",v,C,z,E);if(y.cachedDropIndex=void 0,!1!==H)return E&&this.hot.columnIndexMapper.moveIndexes(v,C),y=E&&this.isColumnOrderChanged(v,C),this.hot.runHooks("afterColumnMove",v,C,z,E,y),y}},{key:"dragColumn", 4387value:function(v,C){return this.dragColumns([v],C)}},{key:"dragColumns",value:function(v,C){var y=this.countFinalIndex(v,C);return m.get(this).cachedDropIndex=C,this.moveColumns(v,y)}},{key:"isMovePossible",value:function(v,C){var y=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),z=v.length+C>y;C=0>C;var E=v.some(function(H){return 0>H});v=v.some(function(H){return H>=y});return!(z||C||E||v)}},{key:"isColumnOrderChanged",value:function(v,C){return v.some(function(y,z){return y-z!==C})}},{key:"countFinalIndex", 4388value:function(v,C){v=(0,h.arrayReduce)(v,function(y,z){return z<C&&(y+=1),y},0);return C-v}},{key:"getColumnsWidth",value:function(v,C){for(var y=this.hot.columnIndexMapper,z=0;v<=C;v+=1){var E=y.getRenderableFromVisualIndex(v);0>v?z+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==E&&(z+=this.hot.view._wt.wtTable.getStretchedColumnWidth(E)||0)}return z}},{key:"moveBySettingsOrLoad",value:function(){var v=this.hot.getSettings().manualColumnMove;Array.isArray(v)?this.moveColumns(v,0):void 0!== 4389v&&(v=this.persistentStateLoad(),v.length&&this.moveColumns(v,0))}},{key:"isFixedColumnsStart",value:function(v){return v<this.hot.getSettings().fixedColumnsStart}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}},{key:"persistentStateLoad",value:function(){var v={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",v),v.value?v.value:[]}},{key:"prepareColumnsToMoving",value:function(v, 4390C){var y=[];return(0,f.rangeEach)(v,C,function(z){y.push(z)}),y}},{key:"refreshPositions",value:function(){var v=m.get(this),C=this.hot.view.getFirstFullyVisibleColumn();this.isFixedColumnsStart(v.hoveredColumn)&&0<C&&this.hot.scrollViewportTo(void 0,this.hot.columnIndexMapper.getNearestNotHiddenIndex(C-1,-1));var y=this.hot.view._wt.wtTable,z=this.hot.view._wt.wtOverlays.scrollableElement,E="number"==typeof z.scrollX?z.scrollX:z.scrollLeft,H=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0, 4391v.hoveredColumn-1),G=y.hider.offsetWidth;y=y.TBODY.offsetLeft;var I=this.backlight.getOffset().start,K=this.backlight.getSize().width,J=0;if(this.hot.isRtl()){var P=this.hot.rootWindow;var S=(0,k.outerWidth)(this.hot.rootElement);P=P.innerWidth-v.target.eventPageX-(P.innerWidth-v.rootElementOffset-S)-(void 0===z.scrollX?E:0)}else P=v.target.eventPageX-(v.rootElementOffset-(void 0===z.scrollX?E:0));(v.hasRowHeaders&&(J=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth), 4392this.isFixedColumnsStart(v.hoveredColumn)&&(H+=E),H+=J,0>v.hoveredColumn)?0<v.fixedColumnsStart?v.target.col=0:v.target.col=0<C?C-1:C:v.target.TD.offsetWidth/2+H<=P?(v.target.col=(v.hoveredColumn>=v.countCols?v.countCols-1:v.hoveredColumn)+1,H+=v.target.TD.offsetWidth):v.target.col=v.hoveredColumn;C=P;E=H;P+K+I>=G?C=G-K-I:P+I<y+J&&(C=y+J+Math.abs(I));H>=G-1?E=G-1:0===E?E=1:void 0!==z.scrollX&&v.hoveredColumn<v.fixedColumnsStart&&(E-=v.rootElementOffset<=z.scrollX?v.rootElementOffset:0);this.backlight.setPosition(null, 4393C);this.guideline.setPosition(null,E)}},{key:"registerEvents",value:function(){var v=this,C=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(C,"mousemove",function(y){return v.onMouseMove(y)});this.eventManager.addEventListener(C,"mouseup",function(){return v.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(v,C,y,z){var E=this.hot.view._wt.wtTable,H=this.hot.selection.isSelectedByColumnHeader(), 4394G=this.hot.getSelectedRangeLast(),I=m.get(this),K=(0,k.hasClass)(v.target,"sortAction");if(!G||!H||I.pressed||0!==v.button||K)return I.pressed=!1,I.columnsToMove.length=0,void(0,k.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui"]);H=this.guideline.isBuilt()&&!this.guideline.isAppended();K=this.backlight.isBuilt()&&!this.backlight.isAppended();H&&K&&(this.guideline.appendTo(E.hider),this.backlight.appendTo(E.hider));H=G.from;K=G.to;G=Math.min(H.col,K.col);H=Math.max(H.col,K.col);0> 4395C.row&&C.col>=G&&C.col<=H?(z.column=!0,I.pressed=!0,I.target.eventPageX=v.pageX,I.target.eventOffsetX=v.offsetX,I.hoveredColumn=C.col,I.target.TD=y,I.target.col=C.col,I.columnsToMove=this.prepareColumnsToMoving(G,H),I.hasRowHeaders=!!this.hot.getSettings().rowHeaders,I.countCols=this.hot.countCols(),I.fixedColumnsStart=this.hot.getSettings().fixedColumnsStart,I.rootElementOffset=(0,k.offset)(this.hot.rootElement).left,z=I.hasRowHeaders?-1:0,y=E.holder.scrollTop+E.getColumnHeaderHeight(0)+1,I=C.col<
4396I.fixedColumnsStart,K=Math.abs(this.hot.view._wt.wtOverlays.inlineStartOverlay.getScrollPosition()),v=Math.abs(v.offsetX-(this.hot.isRtl()?v.target.offsetWidth:0)),C=this.getColumnsWidth(G,C.col-1)+v,v=this.getColumnsWidth(z,G-1)+(I?K:0)+C,this.backlight.setPosition(y,v),this.backlight.setSize(this.getColumnsWidth(G,H),E.hider.offsetHeight-y),this.backlight.setOffset(null,-C),(0,k.addClass)(this.hot.rootElement,"on-moving--columns")):((0,k.removeClass)(this.hot.rootElement,"after-selection--columns"), 4397I.pressed=!1,I.columnsToMove.length=0)}},{key:"onMouseMove",value:function(v){var C=m.get(this);if(C.pressed){if(v.target===this.backlight.element){var y=this.backlight.getSize().width;this.backlight.setSize(0);setTimeout(function(){this.backlight.setPosition(y)})}C.target.eventPageX=v.pageX;this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(v,C,y,z){v=this.hot.getSelectedRangeLast();var E=m.get(this);v&&E.pressed&&(-1<E.columnsToMove.indexOf(C.col)?(0,k.removeClass)(this.hot.rootElement, 4398"show-ui"):(0,k.addClass)(this.hot.rootElement,"show-ui"),z.row=!0,z.column=!0,z.cell=!0,E.hoveredColumn=C.col,E.target.TD=y)}},{key:"onMouseUp",value:function(){var v=m.get(this),C=v.target.col,y=v.columnsToMove.length;if(v.hoveredColumn=void 0,v.pressed=!1,v.backlightWidth=0,(0,k.removeClass)(this.hot.rootElement,["on-moving--columns","show-ui","after-selection--columns"]),this.hot.selection.isSelectedByColumnHeader()&&(0,k.addClass)(this.hot.rootElement,"after-selection--columns"),!(1>y||void 0=== 4399C)){var z=this.hot.toPhysicalColumn(v.columnsToMove[0]);C=this.dragColumns(v.columnsToMove,C);if(v.columnsToMove.length=0,!0===C)this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize(!0),v=this.hot.toVisualColumn(z),this.hot.selectColumns(v,v+y-1)}}},{key:"onAfterScrollVertically",value:function(){var v=this.hot.view._wt.wtTable,C=v.getColumnHeaderHeight(0)+1+v.holder.scrollTop;this.backlight.setPosition(C);this.backlight.setSize(null,v.hider.offsetHeight-C)}},{key:"buildPluginUI", 4400value:function(){this.backlight.build();this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy();this.guideline.destroy();(0,x.default)((0,e.default)(u.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"manualColumnMove"}},{key:"PLUGIN_PRIORITY",get:function(){return 120}}]),u}(c.BasePlugin);b.ManualColumnMove=a},function(g,b,a){function F(c){var d=function(){if("undefined"== 4401typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=(0,p.default)(c);if(d){var k=(0,p.default)(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);return(0,q.default)(this,h)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)), 4402p=g(a(14));g=g(a(651));var e=a(23);a=function(c){function d(){return(0,B.default)(this,d),h.apply(this,arguments)}(0,x.default)(d,c);var h=F(d);return(0,D.default)(d,[{key:"build",value:function(){(0,A.default)((0,p.default)(d.prototype),"build",this).call(this);(0,e.addClass)(this._element,"ht__manualColumnMove--backlight")}}]),d}(g.default);b.default=a},function(g,b,a){function F(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"== 4403typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=(0,p.default)(c);if(d){var k=(0,p.default)(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);return(0,q.default)(this,h)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));g=g(a(651));var e=a(23);a=function(c){function d(){return(0,B.default)(this, 4404d),h.apply(this,arguments)}(0,x.default)(d,c);var h=F(d);return(0,D.default)(d,[{key:"build",value:function(){(0,A.default)((0,p.default)(d.prototype),"build",this).call(this);(0,e.addClass)(this._element,"ht__manualColumnMove--guideline")}}]),d}(g.default);b.default=a},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ManualColumnResize=void 0;g=a(1052);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.ManualColumnResize=g.ManualColumnResize},function(g, 4405b,a){function F(r){var m=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t=(0,e.default)(r);if(m){var u=(0,e.default)(this).constructor;t=Reflect.construct(t,arguments,u)}else t=t.apply(this,arguments);return(0,p.default)(this,t)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY= 4406b.ManualColumnResize=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(3);a(0);a(2);a(11);a(4);a(27);a(42);a(49);a(77);var c=a(50),d=a(23),h=g(a(60)),k=a(20),f=a(47),n=a(84);b.PLUGIN_KEY="manualColumnResize";b.PLUGIN_PRIORITY=130;var l=new WeakMap;a=function(r){function m(u){(0,B.default)(this,m);var w=(u=t.call(this,u)).hot.rootDocument;return u.currentTH=null,u.currentCol=null,u.selectedCols=[],u.currentWidth=null,u.newSize=null,u.startY=null,u.startWidth=null, 4407u.startOffset=null,u.handle=w.createElement("DIV"),u.guide=w.createElement("DIV"),u.eventManager=new h.default((0,A.default)(u)),u.pressed=null,u.dblclick=0,u.autoresizeTimeout=null,u.columnWidthsMap=void 0,l.set((0,A.default)(u),{config:void 0}),(0,d.addClass)(u.handle,"manualColumnResizer"),(0,d.addClass)(u.guide,"manualColumnResizerGuide"),u}(0,q.default)(m,r);var t=F(m);return(0,D.default)(m,[{key:"inlineDir",get:function(){return this.hot.isRtl()?"right":"left"}},{key:"isEnabled",value:function(){return this.hot.getSettings().manualColumnResize}}, 4408{key:"enablePlugin",value:function(){var u=this;this.enabled||(this.columnWidthsMap=new n.PhysicalIndexToValueMap,this.columnWidthsMap.addLocalHook("init",function(){return u.onMapInit()}),this.hot.columnIndexMapper.registerMap(this.pluginName,this.columnWidthsMap),this.addHook("modifyColWidth",function(w,v){return u.onModifyColWidth(w,v)}),this.addHook("beforeStretchingColumnWidth",function(w,v){return u.onBeforeStretchingColumnWidth(w,v)}),this.addHook("beforeColumnResize",function(w,v,C){return u.onBeforeColumnResize(w, 4409v,C)}),this.bindEvents(),(0,x.default)((0,e.default)(m.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();(0,x.default)((0,e.default)(m.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){l.get(this).config=this.columnWidthsMap.getValues();this.hot.columnIndexMapper.unregisterMap(this.pluginName);(0,x.default)((0,e.default)(m.prototype),"disablePlugin",this).call(this)}},{key:"saveManualColumnWidths", 4410value:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.columnWidthsMap.getValues())}},{key:"loadManualColumnWidths",value:function(){var u={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",u),u.value}},{key:"setManualSize",value:function(u,w){w=Math.max(w,20);u=this.hot.toPhysicalColumn(u);return this.columnWidthsMap.setValueAtIndex(u,w),w}},{key:"clearManualSize",value:function(u){u=this.hot.toPhysicalColumn(u);this.columnWidthsMap.setValueAtIndex(u, 4411null)}},{key:"onMapInit",value:function(){var u=this,w=l.get(this),v=this.hot.getSettings().manualColumnResize,C=this.loadManualColumnWidths();
4411void 0!==C?this.hot.batchExecution(function(){C.forEach(function(y,z){u.columnWidthsMap.setValueAtIndex(z,y)})},!0):Array.isArray(v)?(this.hot.batchExecution(function(){v.forEach(function(y,z){u.columnWidthsMap.setValueAtIndex(z,y)})},!0),w.config=v):!0===v&&Array.isArray(w.config)&&this.hot.batchExecution(function(){w.config.forEach(function(y,z){u.columnWidthsMap.setValueAtIndex(z, 4412y)})},!0)}},{key:"setupHandlePosition",value:function(u){var w=this;if(u.parentNode){this.currentTH=u;var v=this.hot.view._wt,C=v.wtTable.getCoords(this.currentTH),y=C.col;if(!(0>y)){var z;u=(0,d.outerHeight)(this.currentTH);var E=this.currentTH.getBoundingClientRect();y<v.getSetting("fixedColumnsStart")&&(z=v.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,C.row,C.col));z||(z=v.wtOverlays.topOverlay.getRelativeCellPosition(this.currentTH,C.row,C.col));this.currentCol= 4413this.hot.columnIndexMapper.getVisualFromRenderableIndex(y);this.selectedCols=[];v=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();this.hot.selection.isSelected()&&v&&(v=this.hot.getSelectedRange(),(0,k.arrayEach)(v,function(H){var G=H.getTopStartCorner().col;H=H.getBottomEndCorner().col;(0,f.rangeEach)(G,H,function(I){w.selectedCols.includes(I)||w.selectedCols.push(I)})}));this.selectedCols.includes(this.currentCol)||(this.selectedCols=[this.currentCol]);this.startOffset= 4414z.start-6;this.startWidth=parseInt(E.width,10);this.handle.style.top="".concat(z.top,"px");this.handle.style[this.inlineDir]="".concat(this.startOffset+this.startWidth,"px");this.handle.style.height="".concat(u,"px");this.hot.rootElement.appendChild(this.handle)}}}},{key:"refreshHandlePosition",value:function(){this.handle.style[this.inlineDir]="".concat(this.startOffset+this.currentWidth,"px")}},{key:"setupGuidePosition",value:function(){var u=parseInt((0,d.outerHeight)(this.handle),10),w=parseInt(this.handle.style.top, 441510)+u,v=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);(0,d.addClass)(this.handle,"active");(0,d.addClass)(this.guide,"active");this.guide.style.top="".concat(w,"px");this.refreshGuidePosition();this.guide.style.height="".concat(v-u,"px");this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style[this.inlineDir]=this.handle.style[this.inlineDir]}},{key:"hideHandleAndGuide",value:function(){(0,d.removeClass)(this.handle,"active");(0,d.removeClass)(this.guide, 4416"active")}},{key:"checkIfColumnHeader",value:function(u){return!!(0,d.closest)(u,["THEAD"],this.hot.rootElement)}},{key:"getClosestTHParent",value:function(u){return"TABLE"!==u.tagName?"TH"===u.tagName?u:this.getClosestTHParent(u.parentNode):null}},{key:"onMouseOver",value:function(u){if(!(0,d.isDetached)(u.target)&&this.checkIfColumnHeader(u.target)&&(u=this.getClosestTHParent(u.target))){var w=u.getAttribute("colspan");!u||null!==w&&"1"!==w||this.pressed||this.setupHandlePosition(u)}}},{key:"afterMouseDownTimeout", 4417value:function(){var u=this,w=function(){u.hot.forceFullRender=!0;u.hot.view.render();u.hot.view.adjustElementsSize(!0)},v=function(C,y){var z=u.hot.runHooks("beforeColumnResize",u.newSize,C,!0);void 0!==z&&(u.newSize=z);"all"===u.hot.getSettings().stretchH?u.clearManualSize(C):u.setManualSize(C,u.newSize);u.saveManualColumnWidths();u.hot.runHooks("afterColumnResize",u.newSize,C,!0);y&&w()};2<=this.dblclick&&(1<this.selectedCols.length?((0,k.arrayEach)(this.selectedCols,function(C){v(C)}),w()):(0,k.arrayEach)(this.selectedCols, 4418function(C){v(C,!0)}));this.dblclick=0;this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(u){var w=this;(0,d.hasClass)(u.target,"manualColumnResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return w.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startX=u.pageX,this.newSize=this.startWidth)}},{key:"onMouseMove", 4419value:function(u){var w=this;this.pressed&&(u=(u.pageX-this.startX)*this.hot.getDirectionFactor(),this.currentWidth=this.startWidth+u,(0,k.arrayEach)(this.selectedCols,function(v){w.newSize=w.setManualSize(v,w.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var u=this,w=function(){u.hot.forceFullRender=!0;u.hot.view.render();u.hot.view.adjustElementsSize(!0)},v=function(C,y){u.hot.runHooks("beforeColumnResize",u.newSize,C,!1);y&&w();u.saveManualColumnWidths(); 4420u.hot.runHooks("afterColumnResize",u.newSize,C,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startWidth)1<this.selectedCols.length?((0,k.arrayEach)(this.selectedCols,function(C){v(C)}),w()):(0,k.arrayEach)(this.selectedCols,function(C){v(C,!0)});this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var u=this,w=this.hot,v=w.rootWindow;w=w.rootElement;this.eventManager.addEventListener(w,"mouseover",function(C){return u.onMouseOver(C)}); 4421this.eventManager.addEventListener(w,"mousedown",function(C){return u.onMouseDown(C)});this.eventManager.addEventListener(v,"mousemove",function(C){return u.onMouseMove(C)});this.eventManager.addEventListener(v,"mouseup",function(){return u.onMouseUp()})}},{key:"onModifyColWidth",value:function(u,w){this.enabled&&(w=this.hot.toPhysicalColumn(w),w=this.columnWidthsMap.getValueAtIndex(w),this.hot.getSettings().manualColumnResize&&w&&(u=w));return u}},{key:"onBeforeStretchingColumnWidth",value:function(u, 4422w){w=this.columnWidthsMap.getValueAtIndex(w);return null===w&&(w=u),w}},{key:"onBeforeColumnResize",value:function(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}},{key:"destroy",value:function(){(0,x.default)((0,e.default)(m.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"manualColumnResize"}},{key:"PLUGIN_PRIORITY",get:function(){return 130}}]),m}(c.BasePlugin);b.ManualColumnResize=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY= 4423b.ManualRowMove=void 0;g=a(1054);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.ManualRowMove=g.ManualRowMove},function(g,b,a){function F(t){var u=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(w){return!1}}();return function(){var w=(0,e.default)(t);if(u){var v=(0,e.default)(this).constructor;w=Reflect.construct(w, 4424arguments,v)}else w=w.apply(this,arguments);return(0,p.default)(this,w)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ManualRowMove=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(3);a(0);a(2);a(11);a(4);a(77);a(33);var c=a(50),d=g(a(71)),h=a(20),k=a(23),f=a(47),n=g(a(60)),l=g(a(1055)),r=g
4424(a(1056));a(1057);d.default.getSingleton().register("beforeRowMove");d.default.getSingleton().register("afterRowMove");b.PLUGIN_KEY="manualRowMove";b.PLUGIN_PRIORITY= 4425140;var m=new WeakMap;a=function(t){function u(v){var C;return(0,B.default)(this,u),C=w.call(this,v),m.set((0,A.default)(C),{rowsToMove:[],pressed:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0},cachedDropIndex:void 0}),C.eventManager=new n.default((0,A.default)(C)),C.backlight=new l.default(v),C.guideline=new r.default(v),C}(0,q.default)(u,t);var w=F(u);return(0,D.default)(u,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().manualRowMove}},{key:"enablePlugin", 4426value:function(){var v=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){return v.onBeforeOnCellMouseDown.apply(v,arguments)}),this.addHook("beforeOnCellMouseOver",function(){return v.onBeforeOnCellMouseOver.apply(v,arguments)}),this.addHook("afterScrollHorizontally",function(){return v.onAfterScrollHorizontally()}),this.addHook("afterLoadData",function(){return v.onAfterLoadData.apply(v,arguments)}),this.buildPluginUI(),this.registerEvents(),(0,k.addClass)(this.hot.rootElement, 4427"ht__manualRowMove"),(0,x.default)((0,e.default)(u.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();this.moveBySettingsOrLoad();(0,x.default)((0,e.default)(u.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,k.removeClass)(this.hot.rootElement,"ht__manualRowMove");this.unregisterEvents();this.backlight.destroy();this.guideline.destroy();(0,x.default)((0,e.default)(u.prototype),"disablePlugin", 4428this).call(this)}},{key:"moveRow",value:function(v,C){return this.moveRows([v],C)}},{key:"moveRows",value:function(v,C){var y=m.get(this),z=y.cachedDropIndex,E=this.isMovePossible(v,C),H=this.hot.runHooks("beforeRowMove",v,C,z,E);if(y.cachedDropIndex=void 0,!1!==H)return E&&this.hot.rowIndexMapper.moveIndexes(v,C),y=E&&this.isRowOrderChanged(v,C),this.hot.runHooks("afterRowMove",v,C,z,E,y),y}},{key:"dragRow",value:function(v,C){return this.dragRows([v],C)}},{key:"dragRows",value:function(v,C){var y= 4429this.countFinalIndex(v,C);return m.get(this).cachedDropIndex=C,this.moveRows(v,y)}},{key:"isMovePossible",value:function(v,C){var y=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),z=v.length+C>y;C=0>C;var E=v.some(function(H){return 0>H});v=v.some(function(H){return H>=y});return!(z||C||E||v)}},{key:"isRowOrderChanged",value:function(v,C){return v.some(function(y,z){return y-z!==C})}},{key:"countFinalIndex",value:function(v,C){v=(0,h.arrayReduce)(v,function(y,z){return z<C&&(y+=1),y},0);return C- 4430v}},{key:"getRowsHeight",value:function(v,C){for(var y=this.hot.rowIndexMapper,z=0;v<=C;v++){var E=y.getRenderableFromVisualIndex(v);null!==E&&(z+=this.hot.view._wt.wtTable.getRowHeight(E)||23)}return z}},{key:"moveBySettingsOrLoad",value:function(){var v=this.hot.getSettings().manualRowMove;Array.isArray(v)?this.moveRows(v,0):void 0!==v&&(v=this.persistentStateLoad(),v.length&&this.moveRows(v,0))}},{key:"isFixedRowTop",value:function(v){return v<this.hot.getSettings().fixedRowsTop}},{key:"isFixedRowBottom", 4431value:function(v){return v>this.hot.countRows()-1-this.hot.getSettings().fixedRowsBottom}},{key:"persistentStateSave",value:function(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}},{key:"persistentStateLoad",value:function(){var v={};return this.hot.runHooks("persistentStateLoad","manualRowMove",v),v.value?v.value:[]}},{key:"prepareRowsToMoving",value:function(){var v=this.hot.getSelectedRangeLast(),C=[];if(!v)return C;var y=v.from;v=v.to; 4432return(0,f.rangeEach)(Math.min(y.row,v.row),Math.max(y.row,v.row),function(z){C.push(z)}),C}},{key:"refreshPositions",value:function(){var v=m.get(this),C=v.target.coords,y=this.hot.view.getFirstFullyVisibleRow(),z=this.hot.view.getLastFullyVisibleRow(),E=this.hot.countRows();this.isFixedRowTop(C.row)&&0<y&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(y-1,-1));this.isFixedRowBottom(C.row)&&z<E&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(z+
44331,1),void 0,!0);var H=this.hot.view._wt.wtTable,G=v.target.TD;E=(0,k.offset)(this.hot.rootElement);z=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,C.row-1);E=v.target.eventPageY-E.top+H.holder.scrollTop;var I=H.hider.offsetHeight,K=H.TBODY.offsetTop,J=this.backlight.getOffset().top,P=this.backlight.getSize().height;this.isFixedRowTop(C.row)&&(z+=H.holder.scrollTop);0>C.row?v.target.row=0<y?y-1:y:G.offsetHeight/2+z<=E?(v.target.row=C.row+1,z+=0===C.row?G.offsetHeight-1:G.offsetHeight):v.target.row= 4434C.row;v=E;C=z;E+P+J>=I?v=I-P-J:E+J<K&&(v=K+Math.abs(J));z>=I-1&&(C=I-1);this.backlight.setPosition(v);this.guideline.setPosition(C)}},{key:"registerEvents",value:function(){var v=this,C=this.hot.rootDocument.documentElement;this.eventManager.addEventListener(C,"mousemove",function(y){return v.onMouseMove(y)});this.eventManager.addEventListener(C,"mouseup",function(){return v.onMouseUp()})}},{key:"unregisterEvents",value:function(){this.eventManager.clear()}},{key:"onBeforeOnCellMouseDown",value:function(v, 4435C,y,z){var E=this.hot.view._wt,H=E.wtTable;E=E.wtViewport;var G=this.hot.selection.isSelectedByRowHeader(),I=this.hot.getSelectedRangeLast(),K=m.get(this);if(!I||!G||K.pressed||0!==v.button)return K.pressed=!1,K.rowsToMove.length=0,void(0,k.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui"]);G=this.guideline.isBuilt()&&!this.guideline.isAppended();var J=this.backlight.isBuilt()&&!this.backlight.isAppended();G&&J&&(this.guideline.appendTo(H.hider),this.backlight.appendTo(H.hider));G=I.from; 4436J=I.to;I=Math.min(G.row,J.row);G=Math.max(G.row,J.row);0>C.col&&C.row>=I&&C.row<=G?(z.row=!0,K.pressed=!0,K.target.eventPageY=v.pageY,K.target.coords=C,K.target.TD=y,K.rowsToMove=this.prepareRowsToMoving(),y=H.holder.scrollLeft+E.getRowHeaderWidth(),this.backlight.setPosition(null,y),this.backlight.setSize(H.hider.offsetWidth-y,this.getRowsHeight(I,G)),this.backlight.setOffset(-1*(this.getRowsHeight(I,C.row-1)+v.offsetY),null),(0,k.addClass)(this.hot.rootElement,"on-moving--rows"),this.refreshPositions()): 4437((0,k.removeClass)(this.hot.rootElement,"after-selection--rows"),K.pressed=!1,K.rowsToMove.length=0)}},{key:"onMouseMove",value:function(v){var C=m.get(this);if(C.pressed){if(v.target===this.backlight.element){var y=this.backlight.getSize().height;this.backlight.setSize(null,0);setTimeout(function(){this.backlight.setPosition(null,y)})}C.target.eventPageY=v.pageY;this.refreshPositions()}}},{key:"onBeforeOnCellMouseOver",value:function(v,C,y,z){v=this.hot.getSelectedRangeLast();var E=m.get(this);v&& 4438E.pressed&&(-1<E.rowsToMove.indexOf(C.row)?(0,k.removeClass)(this.hot.rootElement,"show-ui"):(0,k.addClass)(this.hot.rootElement,"show-ui"),z.row=!0,z.column=!0,z.cell=!0,E.target.coords=C,E.target.TD=y)}},{key:"onMouseUp",value:function(){var v=m.get(this),C=v.target.row,y=v.rowsToMove.length;if(v.pressed=!1,v.backlightHeight=0,(0,k.removeClass)(this.hot.rootElement,["on-moving--rows","show-ui","after-selection--rows"]),this.hot.selection.isSelectedByRowHeader()&&(0,k.addClass)(this.hot.rootElement, 4439"after-selection--rows"),!(1>y||void 0===C)){var z=this.hot.toPhysicalRow(v.rowsToMove[0]);C=this.dragRows(v.rowsToMove,C);if(v.rowsToMove.length=0,!0===C)this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize(!0),v=this.hot.toVisualRow(z),this.hot.selectRows(v,v+y-1)}}},{key:"onAfterScrollHorizontally",value:function(){var v=this.hot.view._wt.wtTable,C=this.hot.view._wt.wtViewport.getRowHeaderWidth()+v.holder.scrollLeft;this.backlight.setPosition(null,C);this.backlight.setSize(v.hider.offsetWidth- 4440C)}},{key:"buildPluginUI",value:function(){this.backlight.build();this.guideline.build()}},{key:"onAfterLoadData",value:function(){this.moveBySettingsOrLoad()}},{key:"destroy",value:function(){this.backlight.destroy();this.guideline.destroy();(0,x.default)((0,e.default)(u.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"manualRowMove"}},{key:"PLUGIN_PRIORITY",get:function(){return 140}}]),u}(c.BasePlugin);b.ManualRowMove=a},function(g,b,a){function F(c){var d=function(){if("undefined"== 4441typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=(0,p.default)(c);if(d){var k=(0,p.default)(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);return(0,q.default)(this,h)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)), 4442p=g(a(14));g=g(a(652));var e=a(23);a=function(c){function d(){return(0,B.default)(this,d),h.apply(this,arguments)}(0,x.default)(d,c);var h=F(d);return(0,D.default)(d,[{key:"build",value:function(){(0,A.default)((0,p.default)(d.prototype),"build",this).call(this);(0,e.addClass)(this._element,"ht__manualRowMove--backlight")}}]),d}(g.default);b.default=a},function(g,b,a){function F(c){var d=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"== 4443typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}();return function(){var h=(0,p.default)(c);if(d){var k=(0,p.default)(this).constructor;h=Reflect.construct(h,arguments,k)}else h=h.apply(this,arguments);return(0,q.default)(this,h)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));g=g(a(652));var e=a(23);a=function(c){function d(){return(0,B.default)(this, 4444d),h.apply(this,arguments)}(0,x.default)(d,c);var h=F(d);return(0,D.default)(d,[{key:"build",value:function(){(0,A.default)((0,p.default)(d.prototype),"build",this).call(this);(0,e.addClass)(this._element,"ht__manualRowMove--guideline")}}]),d}(g.default);b.default=a},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ManualRowResize=void 0;g=a(1059);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.ManualRowResize=g.ManualRowResize},function(g,b,a){function F(m){var t= 4445function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}();return function(){var u=(0,e.default)(m);if(t){var w=(0,e.default)(this).constructor;u=Reflect.construct(u,arguments,w)}else u=u.apply(this,arguments);return(0,p.default)(this,u)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.ManualRowResize=void 0; 4446var B=g(a(5)),D=g(a(6)),A=g(a(44)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(3);a(0);a(2);a(11);a(4);a(42);a(49);a(77);a(27);var c=a(50),d=a(23),h=g(a(60)),k=a(20),f=a(47),n=a(84),l=a(167);b.PLUGIN_KEY="manualRowResize";b.PLUGIN_PRIORITY=30;var r=new WeakMap;a=function(m){function t(w){(0,B.default)(this,t);var v=(w=u.call(this,w)).hot.rootDocument;return w.currentTH=null,w.currentRow=null,w.selectedRows=[],w.currentHeight=null,w.newSize=null,w.startY=null,w.startHeight=null,w.startOffset=null, 4447w.handle=v.createElement("DIV"),w.guide=v.createElement("DIV"),w.eventManager=new h.default((0,A.default)(w)),w.pressed=null,w.dblclick=0,w.autoresizeTimeout=null,w.rowHeightsMap=void 0,r.set((0,A.default)(w),{config:void 0}),(0,d.addClass)(w.handle,"manualRowResizer"),(0,d.addClass)(w.guide,"manualRowResizerGuide"),w}(0,q.default)(t,m);var u=F(t);return(0,D.default)(t,[{key:"inlineDir",get:function(){return this.hot.isRtl()?"right":"left"}},{key:"isEnabled",value:function(){return this.hot.getSettings().manualRowResize}}, 4448{key:"enablePlugin",value:function(){var w=this;this.enabled||(this.rowHeightsMap=new n.PhysicalIndexToValueMap,this.rowHeightsMap.addLocalHook("init",function(){return w.onMapInit()}),this.hot.rowIndexMapper.registerMap(this.pluginName,this.rowHeightsMap),this.addHook("modifyRowHeight",function(v,C){return w.onModifyRowHeight(v,C)}),this.bindEvents(),(0,x.default)((0,e.default)(t.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin(); 4449(0,x.default)((0,e.default)(t.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){r.get(this).config=this.rowHeightsMap.getValues();this.hot.rowIndexMapper.unregisterMap(this.pluginName);(0,x.default)((0,e.default)(t.prototype),"disablePlugin",this).call(this)}},{key:"saveManualRowHeights",value:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.rowHeightsMap.getValues())}},{key:"loadManualRowHeights",value:function(){var w={};return this.hot.runHooks("persistentStateLoad", 4450"manualRowHeights",w),w.value}},{key:"setManualSize",value:function(w,v){w=this.hot.toPhysicalRow(w);v=Math.max(v,l.ViewportRowsCalculator.DEFAULT_HEIGHT);return this.rowHeightsMap.setValueAtIndex(w,v),v}},{key:"setupHandlePosition",value:function(w){var v=this;this.currentTH=w;var C=this.hot.view,y=C._wt,z=y.wtTable.getCoords(this.currentTH),E=z.row;if(!(0>E)){var H;w=(0,d.outerWidth)(this.currentTH);var G=this.currentTH.getBoundingClientRect(),I=E<y.getSetting("fixedRowsTop");C=E>=C.countNotHiddenRowIndexes(0,
44511)-y.getSetting("fixedRowsBottom");I?H=y.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,z.row,z.col):C&&(H=y.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(this.currentTH,z.row,z.col));H||(H=y.wtOverlays.inlineStartOverlay.getRelativeCellPosition(this.currentTH,z.row,z.col));this.currentRow=this.hot.rowIndexMapper.getVisualFromRenderableIndex(E);this.selectedRows=[];y=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader(); 4452this.hot.selection.isSelected()&&y&&(y=this.hot.getSelectedRange(),(0,k.arrayEach)(y,function(K){var J=K.getTopStartCorner().row;K=K.getBottomStartCorner().row;(0,f.rangeEach)(J,K,function(P){v.selectedRows.includes(P)||v.selectedRows.push(P)})}));this.selectedRows.includes(this.currentRow)||(this.selectedRows=[this.currentRow]);this.startOffset=H.top-6;this.startHeight=parseInt(G.height,10);this.handle.style.top="".concat(this.startOffset+this.startHeight,"px");this.handle.style[this.inlineDir]= 4453"".concat(H.start,"px");this.handle.style.width="".concat(w,"px");this.hot.rootElement.appendChild(this.handle)}}},{key:"refreshHandlePosition",value:function(){this.handle.style.top="".concat(this.startOffset+this.currentHeight,"px")}},{key:"setupGuidePosition",value:function(){var w=parseInt((0,d.outerWidth)(this.handle),10),v=parseInt(this.handle.style[this.inlineDir],10)+w,C=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);(0,d.addClass)(this.handle,"active");(0,d.addClass)(this.guide, 4454"active");this.guide.style.top=this.handle.style.top;this.guide.style[this.inlineDir]="".concat(v,"px");this.guide.style.width="".concat(C-w,"px");this.hot.rootElement.appendChild(this.guide)}},{key:"refreshGuidePosition",value:function(){this.guide.style.top=this.handle.style.top}},{key:"hideHandleAndGuide",value:function(){(0,d.removeClass)(this.handle,"active");(0,d.removeClass)(this.guide,"active")}},{key:"checkIfRowHeader",value:function(w){var v,C;return(0,d.closest)(w,["TH"],this.hot.rootElement)&& 4455"TBODY"===(null===(v=w.parentNode)||void 0===v||null===(C=v.parentNode)||void 0===C?void 0:C.tagName)}},{key:"getClosestTHParent",value:function(w){return"TABLE"!==w.tagName?"TH"===w.tagName?w:this.getClosestTHParent(w.parentNode):null}},{key:"getActualRowHeight",value:function(w){w=this.hot.view._wt.wtTable.getRowHeight(w);return void 0!==w&&this.newSize<w?w:this.newSize}},{key:"onMouseOver",value:function(w){!(0,d.isDetached)(w.target)&&this.checkIfRowHeader(w.target)&&(w=this.getClosestTHParent(w.target))&& 4456(this.pressed||this.setupHandlePosition(w))}},{key:"afterMouseDownTimeout",value:function(){var w=this,v=function(){w.hot.forceFullRender=!0;w.hot.view.render();w.hot.view.adjustElementsSize(!0)},C=function(y,z){var E=w.hot.runHooks("beforeRowResize",w.getActualRowHeight(y),y,!0);void 0!==E&&(w.newSize=E);w.setManualSize(y,w.newSize);w.hot.runHooks("afterRowResize",w.getActualRowHeight(y),y,!0);z&&v()};2<=this.dblclick&&(1<this.selectedRows.length?((0,k.arrayEach)(this.selectedRows,function(y){C(y)}), 4457v()):(0,k.arrayEach)(this.selectedRows,function(y){C(y,!0)}));this.dblclick=0;this.autoresizeTimeout=null}},{key:"onMouseDown",value:function(w){var v=this;(0,d.hasClass)(w.target,"manualRowResizer")&&(this.setupHandlePosition(this.currentTH),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return v.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick+=1,this.startY=w.pageY,this.newSize= 4458this.startHeight)}},{key:"onMouseMove",value:function(w){var v=this;this.pressed&&(this.currentHeight=this.startHeight+(w.pageY-this.startY),(0,k.arrayEach)(this.selectedRows,function(C){v.newSize=v.setManualSize(C,v.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())}},{key:"onMouseUp",value:function(){var w=this,v=function(){w.hot.forceFullRender=!0;w.hot.view.render();w.hot.view.adjustElementsSize(!0)},C=function(y,z){w.hot.runHooks("beforeRowResize",w.getActualRowHeight(y), 4459y,!1);z&&v();w.saveManualRowHeights();w.hot.runHooks("afterRowResize",w.getActualRowHeight(y),y,!1)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!==this.startHeight)1<this.selectedRows.length?((0,k.arrayEach)(this.selectedRows,function(y){C(y)}),v()):(0,k.arrayEach)(this.selectedRows,function(y){C(y,!0)});this.setupHandlePosition(this.currentTH)}}},{key:"bindEvents",value:function(){var w=this,v=this.hot,C=v.rootElement;v=v.rootWindow;this.eventManager.addEventListener(C, 4460"mouseover",function(y){return w.onMouseOver(y)});this.eventManager.addEventListener(C,"mousedown",function(y){return w.onMouseDown(y)});this.eventManager.addEventListener(v,"mousemove",function(y){return w.onMouseMove(y)});this.eventManager.addEventListener(v,"mouseup",function(){return w.onMouseUp()})}},{key:"onModifyRowHeight",value:function(w,v){this.enabled&&(v=this.hot.toPhysicalRow(v),v=this.rowHeightsMap.getValueAtIndex(v),this.hot.getSettings().manualRowResize&&v&&(w=v));return w}},{key:"onMapInit", 4461value:function(){var w=this,v=r.get(this),C=this.hot.getSettings().manualRowResize,y=this.loadManualRowHeights();
4461this.hot.batchExecution(function(){void 0!==y?y.forEach(function(z,E){w.rowHeightsMap.setValueAtIndex(E,z)}):Array.isArray(C)?(C.forEach(function(z,E){w.rowHeightsMap.setValueAtIndex(E,z)}),v.config=C):!0===C&&Array.isArray(v.config)&&v.config.forEach(function(z,E){w.rowHeightsMap.setValueAtIndex(E,z)})},!0)}},{key:"destroy",value:function(){(0,x.default)((0,e.default)(t.prototype),"destroy", 4462this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"manualRowResize"}},{key:"PLUGIN_PRIORITY",get:function(){return 30}}]),t}(c.BasePlugin);b.ManualRowResize=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.MergeCells=void 0;g=a(1061);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.MergeCells=g.MergeCells},function(g,b,a){function F(z){var E=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 4463try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}();return function(){var H=(0,d.default)(z);if(E){var G=(0,d.default)(this).constructor;H=Reflect.construct(H,arguments,G)}else H=H.apply(this,arguments);return(0,c.default)(this,H)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.MergeCells=void 0;var B=g(a(34)),D=g(a(43)),A=g(a(5)),x=g(a(6)),q=g(a(44)),p=g(a(30)),e=g(a(15)),c=g(a(16)),d=g(a(14));a(3);a(0);a(2);a(11);a(4);a(39); 4464a(55);a(18);a(42);a(49);var h=a(50),k=g(a(71)),f=g(a(1062)),n=g(a(333)),l=g(a(1063)),r=g(a(1064)),m=g(a(1065)),t=a(20),u=a(17),w=a(92),v=a(47),C=a(653);a(1066);k.default.getSingleton().register("beforeMergeCells");k.default.getSingleton().register("afterMergeCells");k.default.getSingleton().register("beforeUnmergeCells");k.default.getSingleton().register("afterUnmergeCells");b.PLUGIN_KEY="mergeCells";b.PLUGIN_PRIORITY=150;var y=new WeakMap;a=function(z){function E(G){var I;return(0,A.default)(this, 4465E),I=H.call(this,G),y.set((0,q.default)(I),{lastDesiredCoords:null}),I.mergedCellsCollection=null,I.autofillCalculations=null,I.selectionCalculations=null,I}(0,e.default)(E,z);var H=F(E);return(0,x.default)(E,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().mergeCells}},{key:"enablePlugin",value:function(){var G=this;this.enabled||(this.mergedCellsCollection=new f.default(this),this.autofillCalculations=new l.default(this),this.selectionCalculations=new r.default(this),this.addHook("afterInit", 4466function(){return G.onAfterInit.apply(G,arguments)}),this.addHook("modifyTransformStart",function(){return G.onModifyTransformStart.apply(G,arguments)}),this.addHook("afterModifyTransformStart",function(){return G.onAfterModifyTransformStart.apply(G,arguments)}),this.addHook("modifyTransformEnd",function(){return G.onModifyTransformEnd.apply(G,arguments)}),this.addHook("modifyGetCellCoords",function(){return G.onModifyGetCellCoords.apply(G,arguments)}),this.addHook("beforeSetRangeStart",function(){return G.onBeforeSetRangeStart.apply(G, 4467arguments)}),this.addHook("beforeSetRangeStartOnly",function(){return G.onBeforeSetRangeStart.apply(G,arguments)}),this.addHook("beforeSetRangeEnd",function(){return G.onBeforeSetRangeEnd.apply(G,arguments)}),this.addHook("afterIsMultipleSelection",function(){return G.onAfterIsMultipleSelection.apply(G,arguments)}),this.addHook("afterRenderer",function(){return G.onAfterRenderer.apply(G,arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){return G.addMergeActionsToContextMenu.apply(G, 4468arguments)}),this.addHook("afterGetCellMeta",function(){return G.onAfterGetCellMeta.apply(G,arguments)}),this.addHook("afterViewportRowCalculatorOverride",function(){return G.onAfterViewportRowCalculatorOverride.apply(G,arguments)}),this.addHook("afterViewportColumnCalculatorOverride",function(){return G.onAfterViewportColumnCalculatorOverride.apply(G,arguments)}),this.addHook("modifyAutofillRange",function(){return G.onModifyAutofillRange.apply(G,arguments)}),this.addHook("afterCreateCol",function(){return G.onAfterCreateCol.apply(G, 4469arguments)}),this.addHook("afterRemoveCol",function(){return G.onAfterRemoveCol.apply(G,arguments)}),this.addHook("afterCreateRow",function(){return G.onAfterCreateRow.apply(G,arguments)}),this.addHook("afterRemoveRow",function(){return G.onAfterRemoveRow.apply(G,arguments)}),this.addHook("afterChange",function(){return G.onAfterChange.apply(G,arguments)}),this.addHook("beforeDrawBorders",function(){return G.onBeforeDrawAreaBorders.apply(G,arguments)}),this.addHook("afterDrawSelection",function(){return G.onAfterDrawSelection.apply(G, 4470arguments)}),this.addHook("beforeRemoveCellClassNames",function(){return G.onBeforeRemoveCellClassNames.apply(G,arguments)}
4470),this.addHook("beforeUndoStackChange",function(I,K){if("MergeCells"===K)return!1}),this.registerShortcuts(),(0,p.default)((0,d.default)(E.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.clearCollections();this.unregisterShortcuts();this.hot.render();(0,p.default)((0,d.default)(E.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin", 4471value:function(){var G=this.hot.getSettings().mergeCells;this.disablePlugin();this.enablePlugin();this.generateFromSettings(G);(0,p.default)((0,d.default)(E.prototype),"updatePlugin",this).call(this)}},{key:"validateSetting",value:function(G){var I=!0;return!!G&&(n.default.containsNegativeValues(G)?((0,w.warn)(n.default.NEGATIVE_VALUES_WARNING(G)),I=!1):n.default.isOutOfBounds(G,this.hot.countRows(),this.hot.countCols())?((0,w.warn)(n.default.IS_OUT_OF_BOUNDS_WARNING(G)),I=!1):n.default.isSingleCell(G)? 4472((0,w.warn)(n.default.IS_SINGLE_CELL(G)),I=!1):n.default.containsZeroSpan(G)&&((0,w.warn)(n.default.ZERO_SPAN_WARNING(G)),I=!1),I)}},{key:"generateFromSettings",value:function(G){var I=this;if(Array.isArray(G)){var K,J=[];(0,t.arrayEach)(G,function(P){if(I.validateSetting(P)){var S=I.hot._createCellCoords(P.row,P.col);P=I.hot._createCellCoords(P.row+P.rowspan-1,P.col+P.colspan-1);S=I.hot._createCellRange(S,S,P);J.push(I.mergeRange(S,!0,!0))}});J=J.filter(function(P){return!0!==P});G=this.getBulkCollectionData(J); 4473(K=this.hot).populateFromArray.apply(K,(0,D.default)(G))}}},{key:"getBulkCollectionData",value:function(G){var I,K=this.getBulkCollectionDataRange(G),J=(I=this.hot).getData.apply(I,(0,D.default)(K)).splice(0);return(0,t.arrayEach)(G,function(P){P=(0,B.default)(P,3);var S=P[0],R=P[1];(0,t.arrayEach)(P[2],function(O,N){(0,t.arrayEach)(O,function(Q,M){J[S-K[0]+N][R-K[1]+M]=Q})})}),[K[0],K[1],J]}},{key:"getBulkCollectionDataRange",value:function(G){var I=[0,0],K=[0,0],J=null,P=null,S=null;return(0,t.arrayEach)(G, 4474function(R){J=R[0];P=R[1];S=R[2];I[0]=Math.min(J,I[0]);I[1]=Math.min(P,I[1]);K[0]=Math.max(J+S.length-1,K[0]);K[1]=Math.max(P+S[0].length-1,K[1])}),[].concat(I,K)}},{key:"clearCollections",value:function(){this.mergedCellsCollection.clear()}},{key:"canMergeRange",value:function(G){return!!(1<arguments.length&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(G)}},{key:"toggleMergeOnSelection",value:function(){var G=this.hot.getSelectedRangeLast();if(G){G.setDirection(this.hot.isRtl()?"NE-SW": 4475"NW-SE");var I=G.from,K=G.to;this.toggleMerge(G);this.hot.selectCell(I.row,I.col,K.row,K.col,!1)}}},{key:"mergeSelection",value:function(){var G=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(G){G.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");var I=G.from,K=G.to;this.unmergeRange(G,!0);this.mergeRange(G);this.hot.selectCell(I.row,I.col,K.row,K.col,!1)}}},{key:"unmergeSelection",value:function(){var G=0<arguments.length&&void 0!==arguments[0]?arguments[0]: 4476this.hot.getSelectedRangeLast();if(G){var I=G.from,K=G.to;this.unmergeRange(G,!0);this.hot.selectCell(I.row,I.col,K.row,K.col,!1)}}},{key:"mergeRange",value:function(G){var I=this,K=1<arguments.length&&void 0!==arguments[1]&&arguments[1],J=2<arguments.length&&void 0!==arguments[2]&&arguments[2],P=G.getTopStartCorner(),S=G.getBottomEndCorner(),R={row:P.row,col:P.col,rowspan:S.row-P.row+1,colspan:S.col-P.col+1},O=[];P=null;if(!this.canMergeRange(R,K))return!1;this.hot.runHooks("beforeMergeCells",G, 4477K);(0,v.rangeEach)(0,R.rowspan-1,function(N){(0,v.rangeEach)(0,R.colspan-1,function(Q){var M=null;O[N]||(O[N]=[]);0===N&&0===Q?M=I.hot.getDataAtCell(R.row,R.col):I.hot.setCellMeta(R.row+N,R.col+Q,"hidden",!0);O[N][Q]=M})});this.hot.setCellMeta(R.row,R.col,"spanned",!0);return!this.mergedCellsCollection.add(R)||(J?P=[R.row,R.col,O]:this.hot.populateFromArray(R.row,R.col,O,void 0,void 0,this.pluginName),this.hot.runHooks("afterMergeCells",G,R,K),P)}},{key:"unmergeRange",value:function(G){var I=this, 4478K=1<arguments.length&&void 0!==arguments[1]&&arguments[1],J=this.mergedCellsCollection.getWithinRange(G);J&&(this.hot.runHooks("beforeUnmergeCells",G,K),(0,t.arrayEach)(J,function(P){I.mergedCellsCollection.remove(P.row,P.col);
4478(0,v.rangeEach)(0,P.rowspan-1,function(S){(0,v.rangeEach)(0,P.colspan-1,function(R){I.hot.removeCellMeta(P.row+S,P.col+R,"hidden")})});I.hot.removeCellMeta(P.row,P.col,"spanned")}),this.hot.runHooks("afterUnmergeCells",G,K),this.hot.render())}},{key:"toggleMerge",value:function(G){var I= 4479this.mergedCellsCollection.get(G.from.row,G.from.col);I.row===G.from.row&&I.col===G.from.col&&I.row+I.rowspan-1===G.to.row&&I.col+I.colspan-1===G.to.col?this.unmergeRange(G):this.mergeSelection(G)}},{key:"merge",value:function(G,I,K,J){G=this.hot._createCellCoords(G,I);K=this.hot._createCellCoords(K,J);this.mergeRange(this.hot._createCellRange(G,G,K))}},{key:"unmerge",value:function(G,I,K,J){G=this.hot._createCellCoords(G,I);K=this.hot._createCellCoords(K,J);this.unmergeRange(this.hot._createCellRange(G, 4480G,K))}},{key:"onAfterInit",value:function(){this.generateFromSettings(this.hot.getSettings().mergeCells);this.hot.render()}},{key:"registerShortcuts",value:function(){var G=this;this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:function(){G.toggleMerge(G.hot.getSelectedRangeLast());G.hot.render()},runOnlyIf:function(I){return!I.altKey},group:"mergeCells"})}},{key:"unregisterShortcuts",value:function(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup("mergeCells")}}, 4481{key:"onAfterIsMultipleSelection",value:function(G){if(G)for(var I=this.mergedCellsCollection.mergedCells,K=this.hot.getSelectedRangeLast(),J=0;J<I.length;J+=1)if(K.from.row===I[J].row&&K.from.col===I[J].col&&K.to.row===I[J].row+I[J].rowspan-1&&K.to.col===I[J].col+I[J].colspan-1)return!1;return G}},{key:"onModifyTransformStart",value:function(G){var I=y.get(this);var K=this.hot.getSelectedRangeLast();var J=G.row,P=G.col,S=this.hot._createCellCoords(K.highlight.row,K.highlight.col),R=this.mergedCellsCollection.get(S.row, 4482S.col);if(I.lastDesiredCoords||(I.lastDesiredCoords=this.hot._createCellCoords(null,null)),R){var O=this.hot._createCellCoords(R.row,R.col),N=this.hot._createCellCoords(R.row+R.rowspan-1,R.col+R.colspan-1);this.hot._createCellRange(O,O,N).includes(I.lastDesiredCoords)||(I.lastDesiredCoords=this.hot._createCellCoords(null,null));J=I.lastDesiredCoords.row?I.lastDesiredCoords.row-S.row:J;P=I.lastDesiredCoords.col?I.lastDesiredCoords.col-S.col:P;0<G.row?J=R.row+R.rowspan-1-S.row+G.row:0>G.row&&(J=S.row- 4483R.row+G.row);0<G.col?P=R.col+R.colspan-1-S.col+G.col:0>G.col&&(P=S.col-R.col+G.col)}K=this.hot._createCellCoords(K.highlight.row+J,K.highlight.col+P);if(R=this.mergedCellsCollection.get(K.row,K.col))P=this.mergedCellsCollection.getFirstRenderableCoords(R.row,R.col),I.lastDesiredCoords=K,J=P.row-S.row,P=P.col-S.col;0!==J&&(G.row=J);0!==P&&(G.col=P)}},{key:"onModifyTransformEnd",value:function(G){var I=this,K=this.hot.getSelectedRangeLast(),J=(0,u.clone)(G),P=this.selectionCalculations.getUpdatedSelectionRange(K, 4484G),S=(0,u.clone)(J);P=this.mergedCellsCollection.getWithinRange(P,!0);do S=(0,u.clone)(J),this.selectionCalculations.getUpdatedSelectionRange(K,J),(0,t.arrayEach)(P,function(R){I.selectionCalculations.snapDelta(J,K,R)});while(J.row!==S.row||J.col!==S.col);G.row=J.row;G.col=J.col}},{key:"onModifyGetCellCoords",value:function(G,I){if(!(0>G||0>I)&&(G=this.mergedCellsCollection.get(G,I))){I=G.row;var K=G.col;return[I,K,I+G.rowspan-1,K+G.colspan-1]}}},{key:"addMergeActionsToContextMenu",value:function(G){G.items.push({name:"---------"}, 4485(0,m.default)(this))}},{key:"onAfterRenderer",value:function(G,I,K){var J=this.mergedCellsCollection.get(I,K);J=(0,u.isObject)(J)?(0,u.clone)(J):void 0;if((0,u.isObject)(J)){var P=this.hot,S=P.rowIndexMapper;P=P.columnIndexMapper;var R=this.translateMergedCellToRenderable(J.row,J.rowspan,J.col,J.colspan),O=(0,B.default)(R,2);R=O[1];O=O[0]-S.getRenderableFromVisualIndex(I)+1;R=R-P.getRenderableFromVisualIndex(K)+1;J.row=S.getNearestNotHiddenIndex(J.row,1);J.col=P.getNearestNotHiddenIndex(J.col,1); 4486J.rowspan=Math.min(J.rowspan,O);J.colspan=Math.min(J.colspan,R)}(0,C.applySpanProperties)(G,J,I,K)}},{key:"onBeforeSetRangeStart",value:function(G){if(this.mergedCellsCollection.isFirstRenderableMergedCell(G.row,G.col)){var I=this.mergedCellsCollection.get(G.row,G.col);I=[I.row,I.col];G.row=I[0];G.col=I[1]}}},{key:"onBeforeSetRangeEnd",value:function(G){var I=this.hot.getSelectedRangeLast();I.highlight=this.hot._createCellCoords(I.highlight.row,I.highlight.col);I.to=G;if(!this.hot.selection.isSelectedByColumnHeader()&& 4487!this.hot.selection.isSelectedByRowHeader()){do{var K=!1;for(var J=0;J<this.mergedCellsCollection.mergedCells.length;J+=1){var P=this.mergedCellsCollection.mergedCells[J].getRange();I.expandByRange(P)&&(G.row=I.to.row,G.col=I.to.col,K=!0)}}while(K)}}},{key:"onAfterGetCellMeta",value:function(G,I,K){var J=this.mergedCellsCollection.get(G,I);J&&(J.row!==G||J.col!==I?K.copyable=!1:(K.rowspan=J.rowspan,K.colspan=J.colspan))}},{key:"onAfterViewportRowCalculatorOverride",value:function(G){var I=this.hot.countCols(); 4488this.modifyViewportRowStart(G,I);this.modifyViewportRowEnd(G,I)}},{key:"modifyViewportRowStart",value:function(G,I){for(var K=this.hot.rowIndexMapper,J=K.getVisualFromRenderableIndex(G.startRow),P=0;P<I;P+=1){var S=this.mergedCellsCollection.get(J,P);if((0,u.isObject)(S)&&(S=K.getRenderableFromVisualIndex(K.getNearestNotHiddenIndex(S.row,1)),S<G.startRow))return G.startRow=S,void this.modifyViewportRowStart(G,I)}}},{key:"modifyViewportRowEnd",value:function(G,I){for(var K=this.hot.rowIndexMapper, 4489J=K.getVisualFromRenderableIndex(G.endRow),P=0;P<I;P+=1){var S=this.mergedCellsCollection.get(J,P);if((0,u.isObject)(S)&&(S=K.getRenderableFromVisualIndex(K.getNearestNotHiddenIndex(S.row+S.rowspan-1,-1)),S>G.endRow))return G.endRow=S,void this.modifyViewportRowEnd(G,I)}}},{key:"onAfterViewportColumnCalculatorOverride",value:function(G){var I=this.hot.countRows();this.modifyViewportColumnStart(G,I);this.modifyViewportColumnEnd(G,I)}},{key:"modifyViewportColumnStart",value:function(G,I){for(var K= 4490this.hot.columnIndexMapper,J=K.getVisualFromRenderableIndex(G.startColumn),P=0;P<I;P+=1){var S=this.mergedCellsCollection.get(P,J);if((0,u.isObject)(S)&&(S=K.getRenderableFromVisualIndex(K.getNearestNotHiddenIndex(S.col,1)),S<G.startColumn))return G.startColumn=S,void this.modifyViewportColumnStart(G,I)}}},{key:"modifyViewportColumnEnd",value:function(G,I){for(var K=this.hot.columnIndexMapper,J=K.getVisualFromRenderableIndex(G.endColumn),P=0;P<I;P+=1){var S=this.mergedCellsCollection.get(P,J);if((0,u.isObject)(S)&& 4491(S=K.getRenderableFromVisualIndex(K.getNearestNotHiddenIndex(S.col+S.colspan-1,-1)),S>G.endColumn))return G.endColumn=S,void this.modifyViewportColumnEnd(G,I)}}},{key:"translateMergedCellToRenderable",value:function(G,I,K,J){var P,S,R=this.hot,O=R.rowIndexMapper;R=R.columnIndexMapper;return P=0===I?O.getNearestNotHiddenIndex(G,1):O.getNearestNotHiddenIndex(G+I-1,-1),S=0===J?R.getNearestNotHiddenIndex(K,1):R.getNearestNotHiddenIndex(K+J-1,-1),[0<=G?O.getRenderableFromVisualIndex(P):G,0<=K?R.getRenderableFromVisualIndex(S): 4492K]}},{key:"onModifyAutofillRange",value:function(G,I){this.autofillCalculations.correctSelectionAreaSize(I);var K=this.autofillCalculations.getDirection(I,G);
4492if(this.autofillCalculations.dragAreaOverlapsCollections(I,G,K))return I;var J=this.mergedCellsCollection.getWithinRange({from:{row:I[0],col:I[1]},to:{row:I[2],col:I[3]}});return J?this.autofillCalculations.snapDragArea(I,G,K,J):G}},{key:"onAfterCreateCol",value:function(G,I){this.mergedCellsCollection.shiftCollections("right",G,I)}},{key:"onAfterRemoveCol", 4493value:function(G,I){this.mergedCellsCollection.shiftCollections("left",G,I)}},{key:"onAfterCreateRow",value:function(G,I,K){"auto"!==K&&this.mergedCellsCollection.shiftCollections("down",G,I)}},{key:"onAfterRemoveRow",value:function(G,I){this.mergedCellsCollection.shiftCollections("up",G,I)}},{key:"onAfterChange",value:function(G,I){"Autofill.fill"===I&&this.autofillCalculations.recreateAfterDataPopulation(G)}},{key:"onBeforeDrawAreaBorders",value:function(G,I){if(I&&"area"===I){var K=this.hot.getSelectedRangeLast(); 4494I=this.mergedCellsCollection.getWithinRange(K);(0,t.arrayEach)(I,function(J){K.getBottomEndCorner().row===J.getLastRow()&&K.getBottomEndCorner().col===J.getLastColumn()&&(G[2]=J.row,G[3]=J.col)})}}},{key:"onAfterModifyTransformStart",value:function(G,I,K){if(this.enabled){var J=this.mergedCellsCollection.get(G.row,G.col);if(J){var P=0<I;I=0>I;var S=0>K;K=0<K;var R=J.row+J.rowspan-1==this.hot.countRows()-1,O=0===J.row,N=J.col+J.colspan-1==this.hot.countCols()-1,Q=0===J.col;(P&&R||I&&O||K&&N||S&&Q)&& 4495(G.row=J.row,G.col=J.col)}}}},{key:"onAfterDrawSelection",value:function(G,I,K,J){if(K)return this.selectionCalculations.getSelectedMergedCellClassName(G,I,K,J)}},{key:"onBeforeRemoveCellClassNames",value:function(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}}],[{key:"PLUGIN_KEY",get:function(){return"mergeCells"}},{key:"PLUGIN_PRIORITY",get:function(){return 150}}]),E}(h.BasePlugin);b.MergeCells=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(78)); 4496a(33);a(55);var B,D=g(a(43)),A=g(a(5)),x=g(a(6)),q=g(a(333)),p=a(47),e=a(92),c=a(20),d=a(653),h=a(79);a=function(){function k(f){(0,A.default)(this,k);this.plugin=f;this.mergedCells=[];this.hot=f.hot}return(0,x.default)(k,[{key:"get",value:function(f,n){var l=!1;return(0,c.arrayEach)(this.mergedCells,function(r){return!(r.row<=f&&r.row+r.rowspan-1>=f&&r.col<=n&&r.col+r.colspan-1>=n)||(l=r,!1)}),l}},{key:"getByRange",value:function(f){var n=!1;return(0,c.arrayEach)(this.mergedCells,function(l){return!(l.row<= 4497f.from.row&&l.row+l.rowspan-1>=f.to.row&&l.col<=f.from.col&&l.col+l.colspan-1>=f.to.col)||(n=l)}),n}},{key:"getWithinRange",value:function(f){var n=this,l=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=this.mergedCells,m=[],t=f;if(!t.includesRange){var u=this.hot._createCellCoords(t.from.row,t.from.col),w=this.hot._createCellCoords(t.to.row,t.to.col);t=this.hot._createCellRange(u,u,w)}return(0,c.arrayEach)(r,function(v){var C=n.hot._createCellCoords(v.row,v.col),y=n.hot._createCellCoords(v.row+ 4498v.rowspan-1,v.col+v.colspan-1);C=n.hot._createCellRange(C,C,y);l?t.overlaps(C)&&m.push(v):t.includesRange(C)&&m.push(v)}),!!m.length&&m}},{key:"add",value:function(f){var n=this.mergedCells,l=f.row,r=f.col;f=new q.default(l,r,f.rowspan,f.colspan,this.hot._createCellCoords,this.hot._createCellRange);l=this.get(l,r);r=this.isOverlapping(f);return l||r?((0,e.warn)(k.IS_OVERLAPPING_WARNING(f)),!1):(this.hot&&f.normalize(this.hot),n.push(f),f)}},{key:"remove",value:function(f,n){var l=this.mergedCells; 4499n=(f=this.get(f,n))?this.mergedCells.indexOf(f):-1;return!(!f||-1===n)&&(l.splice(n,1),f)}},{key:"clear",value:function(){var f=this,n=[],l=[];(0,c.arrayEach)(this.mergedCells,function(r){var m=f.hot.getCell(r.row,r.col);m&&n.push([m,f.get(r.row,r.col),r.row,r.col])});this.mergedCells.length=0;(0,c.arrayEach)(n,function(r,m){(0,p.rangeEach)(0,r.rowspan-1,function(t){(0,p.rangeEach)(0,r.colspan-1,function(u){(0!==u||0!==t)&&(u=f.hot.getCell(r.row+t,r.col+u))&&l.push([u,null,null,null])})});n[m][1]= 4500null});(0,c.arrayEach)(n,function(r){d.applySpanProperties.apply(void 0,(0,D.default)(r))});(0,c.arrayEach)(l,function(r){d.applySpanProperties.apply(void 0,(0,D.default)(r))})}},{key:"isOverlapping",value:function(f){var n=this,l=this.hot._createCellRange(this.hot._createCellCoords(0,0),this.hot._createCellCoords(f.row,f.col),this.hot._createCellCoords(f.row+f.rowspan-1,f.col+f.colspan-1)),r=!1;return(0,c.arrayEach)(this.mergedCells,function(m){return!n.hot._createCellRange(n.hot._createCellCoords(0, 45010),n.hot._createCellCoords(m.row,m.col),n.hot._createCellCoords(m.row+m.rowspan-1,m.col+m.colspan-1)).overlaps(l)||(r=!0,!1)}),r}},{key:"isFirstRenderableMergedCell",value:function(f,n){var l=this.get(f,n);return l&&this.hot.rowIndexMapper.getNearestNotHiddenIndex(l.row,1)===f&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(l.col,1)===n}},{key:"getFirstRenderableCoords",value:function(f,n){var l=this.get(f,n);if(!l||this.isFirstRenderableMergedCell(f,n))return this.hot._createCellCoords(f,n); 4502f=this.hot.rowIndexMapper.getNearestNotHiddenIndex(l.row,1);l=this.hot.columnIndexMapper.getNearestNotHiddenIndex(l.col,1);return this.hot._createCellCoords(f,l)}},{key:"shiftCollections",value:function(f,n,l){var r=this,m=[0,0];switch(f){case "right":m[0]+=l;break;
4502case "left":m[0]-=l;break;case "down":m[1]+=l;break;case "up":m[1]-=l}(0,c.arrayEach)(this.mergedCells,function(t){t.shift(m,n)});(0,p.rangeEachReverse)(this.mergedCells.length-1,0,function(t){(t=r.mergedCells[t])&&t.removed&&r.mergedCells.splice(r.mergedCells.indexOf(t), 45031)})}}],[{key:"IS_OVERLAPPING_WARNING",value:function(f){return(0,h.toSingleLine)(B||(B=(0,F.default)(["The merged cell declared at [",", ","], overlaps \n with the other declared merged cell. The overlapping merged cell was not added to the table, please \n fix your setup."],["The merged cell declared at [",", ","], overlaps\\x20\n with the other declared merged cell. The overlapping merged cell was not added to the table, please\\x20\n fix your setup."])),f.row,f.col)}}]),k}(); 4504b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(13);a(33);var F=g(a(34)),B=g(a(5)),D=g(a(6)),A=a(17),x=a(20);a=function(){function q(p){(0,B.default)(this,q);this.plugin=p;this.mergedCellsCollection=this.plugin.mergedCellsCollection;this.currentFillData=null}return(0,D.default)(q,[{key:"correctSelectionAreaSize",value:function(p){if(p[0]===p[2]&&p[1]===p[3]){var e=this.mergedCellsCollection.get(p[0],p[1]);e&&(p[2]=p[0]+e.rowspan-1,p[3]=p[1]+e.colspan-1)}}},{key:"getDirection", 4505value:function(p,e){return e[0]===p[0]&&e[1]===p[1]&&e[3]===p[3]?"down":e[2]===p[2]&&e[1]===p[1]&&e[3]===p[3]?"up":e[1]===p[1]&&e[2]===p[2]?"right":"left"}},{key:"snapDragArea",value:function(p,e,c,d){var h=e.slice(0),k=this.getAutofillSize(p,e,c),f=(0,F.default)(p,4),n=f[0],l=f[1],r=f[2],m=f[3];f=-1<["up","down"].indexOf(c)?r-n+1:m-l+1;var t=k-Math.floor(k/f)*f;if(e=this.getFarthestCollection(p,e,c,d))"down"===c?(n=e.row+e.rowspan-n-t,h[2]+n>=this.plugin.hot.countRows()?h[2]-=t:h[2]+=t?n:0):"right"=== 4506c?(n=e.col+e.colspan-l-t,h[3]+n>=this.plugin.hot.countCols()?h[3]-=t:h[3]+=t?n:0):"up"===c?(n=r-t-e.row+1,0>h[0]+n?h[0]+=t:h[0]-=t?n:0):"left"===c&&(n=m-t-e.col+1,0>h[1]+n?h[1]+=t:h[1]-=t?n:0);return this.updateCurrentFillCache({baseArea:p,dragDirection:c,foundMergedCells:d,fillSize:k,dragArea:h,cycleLength:f}),h}},{key:"updateCurrentFillCache",value:function(p){this.currentFillData||(this.currentFillData={});(0,A.extend)(this.currentFillData,p)}},{key:"getAutofillSize",value:function(p,e,c){var d= 4507(0,F.default)(p,4);p=d[0];var h=d[1],k=d[2];d=d[3];var f=(0,F.default)(e,4);e=f[0];var n=f[1],l=f[2];f=f[3];switch(c){case "up":return p-e;case "down":return l-k;case "left":return h-n;case "right":return f-d;default:return null}}},{key:"getDragArea",value:function(p,e,c){var d=(0,F.default)(p,4);p=d[0];var h=d[1],k=d[2];d=d[3];var f=(0,F.default)(e,4);e=f[0];var n=f[1],l=f[2];f=f[3];switch(c){case "up":return[e,n,p-1,d];case "down":return[k+1,h,l,d];case "left":return[e,n,k,h-1];case "right":return[p, 4508d+1,l,f];default:return null}}},{key:"getFarthestCollection",value:function(p,e,c,d){var h=(0,F.default)(p,4),k=h[0],f=h[1],n=h[2],l=h[3],r=-1<["up","down"].indexOf(c);h=r?n:l;var m=r?k:f;p=this.getAutofillSize(p,e,c);k=r?n-k+1:l-f+1;k=p-Math.floor(p/k)*k;var t=null,u=null,w=null;switch(c){case "up":t="includesVertically";w=h-k+1;break;case "left":t="includesHorizontally";w=h-k+1;break;case "down":t="includesVertically";w=m+k-1;break;case "right":t="includesHorizontally",w=m+k-1}return(0,x.arrayEach)(d, 4509function(v){v[t](w)&&v.isFarther(u,c)&&(u=v)}),u}},{key:"recreateAfterDataPopulation",value:function(p){if(this.currentFillData){var e=this.getRangeFromChanges(p);p=this.currentFillData.foundMergedCells;var c=this.currentFillData.dragDirection,d=function(l,r){switch(c){case "up":return l.row-r>=e.from.row;case "down":return l.row+l.rowspan-1+r<=e.to.row;case "left":return l.col-r>=e.from.column;case "right":return l.col+l.colspan-1+r<=e.to.column;default:return null}},h=0,k=null,f=1;do for(var n= 45100;n<p.length;n+=1){if(d(k=p[n],h=f*this.currentFillData.cycleLength))switch(c){case "up":this.plugin.mergedCellsCollection.add({row:k.row-h,rowspan:k.rowspan,col:k.col,colspan:k.colspan});break;case "down":this.plugin.mergedCellsCollection.add({row:k.row+h,rowspan:k.rowspan,col:k.col,colspan:k.colspan});break;
4510case "left":this.plugin.mergedCellsCollection.add({row:k.row,rowspan:k.rowspan,col:k.col-h,colspan:k.colspan});break;case "right":this.plugin.mergedCellsCollection.add({row:k.row,rowspan:k.rowspan, 4511col:k.col+h,colspan:k.colspan})}n===p.length-1&&(f+=1)}while(d(k,h));this.currentFillData=null;this.plugin.hot.render()}}},{key:"getRangeFromChanges",value:function(p){var e=this,c=null,d=null,h=null,k=null;return(0,x.arrayEach)(p,function(f){var n=f[0];f=e.plugin.hot.propToCol(f[1]);(null===c||n<c)&&(c=n);(null===d||n>d)&&(d=n);(null===h||f<h)&&(h=f);(null===k||f>k)&&(k=f)}),{from:{row:c,column:h},to:{row:d,column:k}}}},{key:"dragAreaOverlapsCollections",value:function(p,e,c){p=this.getDragArea(p, 4512e,c);c=(0,F.default)(p,4);p=c[2];e=c[3];c=this.plugin.hot._createCellCoords(c[0],c[1]);p=this.plugin.hot._createCellCoords(p,e);p=this.plugin.hot._createCellRange(c,c,p);return!!this.mergedCellsCollection.getWithinRange(p,!0)}}]),q}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(18);a(42);a(49);var F=g(a(5)),B=g(a(6));a=function(){function D(A){(0,F.default)(this,D);this.plugin=A;this.hot=A.hot;this.fullySelectedMergedCellClassName="fullySelectedMergedCell"}return(0,B.default)(D, 4513[{key:"snapDelta",value:function(A,x,q){var p=x.to;x=p.row+A.row;p=p.col+A.col;A.row?this.jumpOverMergedCell(A,q,x):A.col&&this.jumpOverMergedCell(A,q,p)}},{key:"jumpOverMergedCell",value:function(A,x,q){var p=A.row||A.col,e=null,c=null,d=null;A.row?(e=x.includesVertically(q),c=x.row,d=x.getLastRow()):A.col&&(e=x.includesHorizontally(q),c=x.col,d=x.getLastColumn());0!==p&&(0<p?e&&q!==c&&(p+=d-q+1):e&&q!==d&&(p-=q-c+1),A.row?A.row=p:A.col&&(A.col=p))}},{key:"getUpdatedSelectionRange",value:function(A, 4514x){return this.hot._createCellRange(A.highlight,A.from,this.hot._createCellCoords(A.to.row+x.row,A.to.col+x.col))}},{key:"getSelectedMergedCellClassName",value:function(A,x,q,p){var e=Math.min(q[0],q[2]),c=Math.min(q[1],q[3]),d=Math.max(q[0],q[2]);q=Math.max(q[1],q[3]);if(void 0!==p&&this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(A,x)&&(A=this.plugin.mergedCellsCollection.get(A,x))){x=A.getLastRow();var h=A.getLastColumn();return e<=A.row&&c<=A.col&&d>=x&&q>=h?"".concat(this.fullySelectedMergedCellClassName, 4515"-").concat(p):this.plugin.selectionCalculations.isMergeCellFullySelected(A,this.plugin.hot.getSelectedRange())?"".concat(this.fullySelectedMergedCellClassName,"-multiple"):void 0}}},{key:"isMergeCellFullySelected",value:function(A,x){var q=[];if(!x||!A)return!1;for(var p=0;p<A.rowspan;p+=1)for(var e=0;e<A.colspan;e+=1)q.push(this.hot._createCellCoords(A.row+p,A.col+e));for(A=0;A<q.length;A+=1){p=[];for(e=0;e<x.length;e+=1)p[e]=x[e].includes(q[A]);if(!p.includes(!0))return!1}return!0}},{key:"getSelectedMergedCellClassNameToRemove", 4516value:function(){for(var A=[],x=0;7>=x;x+=1)A.push("".concat(this.fullySelectedMergedCellClassName,"-").concat(x));return A.push("".concat(this.fullySelectedMergedCellClassName,"-multiple")),A}}]),D}();b.default=a},function(g,b,a){function F(x){if("function"!=typeof WeakMap)return null;var q=new WeakMap,p=new WeakMap;return(F=function(e){return e?p:q})(x)}a(3);a(0);a(2);a(11);a(4);a(19);g=a(1);var B=a(21);b.__esModule=!0;b.default=function(x){return{key:"mergeCells",name:function(){var q=this.getSelectedLast(); 4517if(q){var p=x.mergedCellsCollection.get(q[0],q[1]);if(p.row===q[0]&&p.col===q[1]&&p.row+p.rowspan-1===q[2]&&p.col+p.colspan-1===q[3])return this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(D.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback:function(){x.toggleMergeOnSelection()},disabled:function(){var q=this.getSelectedLast();return!q||A.default.isSingleCell({row:q[0],col:q[1],rowspan:q[2]-q[0]+1,colspan:q[3]-q[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}}; 4518var D=function(x,q){if(!q&&x&&x.__esModule)return x;if(null===x||"object"!==B(x)&&"function"!=typeof x)return{default:x};if((q=F(q))&&q.has(x))return q.get(x);var p={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor,c;for(c in x)if("default"!==c&&Object.prototype.hasOwnProperty.call(x,c)){var d=e?Object.getOwnPropertyDescriptor(x,c):null;d&&(d.get||d.set)?Object.defineProperty(p,c,d):p[c]=x[c]}p.default=x;q&&q.set(x,p);return p}(a(29)),A=g(a(333))},function(g,b,a){},function(g,b,a){b.__esModule= 4519!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.MultiColumnSorting=void 0;g=a(1068);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.MultiColumnSorting=g.MultiColumnSorting},function(g,b,a){function F(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r=(0,p.default)(n);if(l){var m= 4520(0,p.default)(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);return(0,q.default)(this,r)}}a(0);a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.MultiColumnSorting=void 0;a(18);a(75);var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));g=a(634);var e=a(135),c=a(326),d=a(23),h=a(1069),k=a(1070),f=a(1071);a(1072);b.PLUGIN_KEY="multiColumnSorting";b.PLUGIN_PRIORITY=170;(0,e.registerRootComparator)("multiColumnSorting",h.rootComparator);a= 4521function(n){function l(m){var t;return(0,B.default)(this,l),(t=r.call(this,m)).pluginKey="multiColumnSorting",t}(0,x.default)(l,n);var r=F(l);return(0,D.default)(l,[{key:"isEnabled",value:function(){return(0,A.default)((0,p.default)(l.prototype),"isEnabled",this).call(this)}},{key:"enablePlugin",value:function(){!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings().columnSorting&&(0,k.warnAboutPluginsConflict)();(0,A.default)((0,p.default)(l.prototype),"enablePlugin",this).call(this)}}, 4522{key:"disablePlugin",value:function(){(0,A.default)((0,p.default)(l.prototype),"disablePlugin",this).call(this)}},{key:"sort",value:function(m){(0,A.default)((0,p.default)(l.prototype),"sort",this).call(this,m)}},{key:"clearSort",value:function(){(0,A.default)((0,p.default)(l.prototype),"clearSort",this).call(this)}},{key:"isSorted",value:function(){return(0,A.default)((0,p.default)(l.prototype),"isSorted",this).call(this)}},{key:"getSortConfig",value:function(m){return(0,A.default)((0,p.default)(l.prototype), 4523"getSortConfig",this).call(this,m)}},{key:"setSortConfig",value:function(m){(0,A.default)((0,p.default)(l.prototype),"setSortConfig",this).call(this,m)}},{key:"getNormalizedSortConfigs",value:function(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(m)?m:[m]}},{key:"updateHeaderClasses",value:function(m){for(var t,u=arguments.length,w=Array(1<u?u-1:0),v=1;v<u;v++)w[v-1]=arguments[v];(t=(0,A.default)((0,p.default)(l.prototype),"updateHeaderClasses",this)).call.apply(t, 4524[this,m].concat(w));(0,d.removeClass)(m,(0,f.getClassesToRemove)(m));!1!==this.enabled&&(0,d.addClass)(m,f.getClassesToAdd.apply(void 0,w))}}
4524,{key:"onUpdateSettings",value:function(m){this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings().columnSorting&&(0,k.warnAboutPluginsConflict)();(0,A.default)((0,p.default)(l.prototype),"onUpdateSettings",this).call(this,m)}},{key:"onAfterOnCellMouseDown",value:function(m,t){!1!==(0,c.wasHeaderClickedProperly)(t.row,t.col,m)&&this.wasClickableHeaderClicked(m, 4525t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,"append"))):this.sort(this.getColumnNextConfig(t.col)))}}],[{key:"PLUGIN_KEY",get:function(){return"multiColumnSorting"}},{key:"PLUGIN_PRIORITY",get:function(){return 170}}]),l}(g.ColumnSorting);b.MultiColumnSorting=a},function(g,b,a){g=a(1);b.__esModule=!0;b.rootComparator=function(D,A){return function(x,q){var p=(0,F.default)(x).slice(1),e=(0,F.default)(q).slice(1); 4526return function h(d){var k=D[d],f=A[d],n=p[d],l=e[d],r=f.multiColumnSorting;k=(r.compareFunctionFactory?r.compareFunctionFactory:(0,B.getCompareFunctionFactory)(f.type))(k,f,r)(n,l);return k===B.DO_NOT_SWAP&&(d+=1,void 0!==A[d])?h(d):k}(0)}};a(13);var F=g(a(635)),B=a(135)},function(g,b,a){g=a(1);b.__esModule=!0;b.warnAboutPluginsConflict=function(){(0,D.warn)((0,A.toSingleLine)(F||(F=(0,B.default)(["Plugins `columnSorting` and `multiColumnSorting` should not be enabled simultaneously. \n O
4526nly `multiColumnSorting` will work."], 4527["Plugins \\`columnSorting\\` and \\`multiColumnSorting\\` should not be enabled simultaneously. \n Only \\`multiColumnSorting\\` will work."]))))};var F,B=g(a(78)),D=a(92),A=a(79)},function(g,b,a){b.__esModule=!0;b.getClassesToAdd=function(F,B,D){var A=[];if(!1===D)return A;F.isColumnSorted(B)&&1<F.getNumberOfSortedColumns()&&A.push("".concat("sort","-").concat(F.getIndexOfColumnInSortQueue(B)+1));return A};b.getClassesToRemove=function(F){F=F.className.split(" ");var B=new RegExp("^".concat("sort", 4528"-[0-9]{1,2}$"));return F.filter(function(D){return B.test(D)})};a(12);a(64);a(101);a(69);a(39);a(0)},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.MultipleSelectionHandles=void 0;g=a(1074);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.MultipleSelectionHandles=g.MultipleSelectionHandles},function(g,b,a){function F(k){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0; 4529try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n=(0,p.default)(k);if(f){var l=(0,p.default)(this).constructor;n=Reflect.construct(n,arguments,l)}else n=n.apply(this,arguments);return(0,q.default)(this,n)}}a(0);a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.MultipleSelectionHandles=void 0;a(55);a(33);a(13);var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14)),e=a(23),c=a(107),d=a(50),h= 4530g(a(60));b.PLUGIN_KEY="multipleSelectionHandles";b.PLUGIN_PRIORITY=160;a=function(k){function f(l){var r;return(0,B.default)(this,f),(r=n.call(this,l)).dragged=[],r.eventManager=null,r.lastSetCell=null,r}(0,x.default)(f,k);var n=F(f);return(0,D.default)(f,[{key:"isEnabled",value:function(){return(0,c.isMobileBrowser)()}},{key:"enablePlugin",value:function(){this.enabled||(this.eventManager||(this.eventManager=new h.default(this)),this.registerListeners(),(0,A.default)((0,p.default)(f.prototype),"enablePlugin", 4531this).call(this))}},{key:"registerListeners",value:function(){function l(u){if(1===m.dragged.length)return m.dragged.splice(0,m.dragged.length),!0;u=m.dragged.indexOf(u);if(-1===u)return!1;0===u?m.dragged=m.dragged.slice(0,1):1===u&&(m.dragged=m.dragged.slice(-1))}var r=this,m=this,t=this.hot.rootElement;this.eventManager.addEventListener(t,"touchstart",function(u){var w;return(0,e.hasClass)(u.target,"topSelectionHandle-HitArea")?(w=m.hot.getSelectedRangeLast(),m.dragged.push("top"),m.touchStartRange= 4532{width:w.getWidth(),height:w.getHeight(),direction:w.getDirection()},u.preventDefault(),!1):(0,e.hasClass)(u.target,"bottomSelectionHandle-HitArea")?(w=m.hot.getSelectedRangeLast(),m.dragged.push("bottom"),m.touchStartRange={width:w.getWidth(),height:w.getHeight(),direction:w.getDirection()},u.preventDefault(),!1):void 0});this.eventManager.addEventListener(t,"touchend",function(u){return(0,e.hasClass)(u.target,"topSelectionHandle-HitArea")?(l.call(m,"top"),m.touchStartRange=void 0,u.preventDefault(), 4533!1):(0,e.hasClass)(u.target,"bottomSelectionHandle-HitArea")?(l.call(m,"bottom"),m.touchStartRange=void 0,u.preventDefault(),!1):void 0});this.eventManager.addEventListener(t,"touchmove",function(u){var w,v,C,y,z,E,H=r.hot.rootDocument;0!==m.dragged.length&&(H=H.elementFromPoint(u.touches[0].clientX,u.touches[0].clientY))&&H!==m.lastSetCell&&("TD"!==H.nodeName&&"TH"!==H.nodeName||(-1===(w=m.hot.getCoords(H)).col&&(w.col=0),C=(v=m.hot.getSelectedRangeLast()).getWidth(),y=v.getHeight(),z=v.getDirection(), 45341===C&&1===y&&m.hot.selection.setRangeEnd(w),null!==(E=m.getCurrentRangeCoords(v,w,m.touchStartRange.direction,z,m.dragged[0])).start&&m.hot.selection.setRangeStart(E.start),m.hot.selection.setRangeEnd(E.end),m.lastSetCell=H),u.preventDefault())})}},{key:"getCurrentRangeCoords",value:function(l,r,m,t,u){var w=l.getTopStartCorner(),v=l.getBottomEndCorner(),C=l.getBottomStartCorner(),y=l.getTopEndCorner(),z={start:null,end:null};switch(m){case "NE-SW":switch(t){case "NE-SW":case "NW-SE":z="top"===u? 4535{start:this.hot._createCellCoords(r.row,l.highlight.col),end:this.hot._createCellCoords(C.row,r.col)}:{start:this.hot._createCellCoords(l.highlight.row,r.col),end:this.hot._createCellCoords(r.row,w.col)};break;case "SE-NW":"bottom"===u&&(z={start:this.hot._createCellCoords(v.row,r.col),end:this.hot._createCellCoords(r.row,w.col)})}break;case "NW-SE":switch(t){case "NE-SW":"top"===u?z={start:r,end:C}:z.end=r;break;case "NW-SE":"top"===u?z={start:r,end:v}:z.end=r;break;case "SE-NW":"top"===u?z={start:r, 4536end:w}:z.end=r;break;case "SW-NE":"top"===u?z={start:r,end:y}:z.end=r}break;case "SW-NE":switch(t){case "NW-SE":z="bottom"===u?{start:this.hot._createCellCoords(r.row,w.col),end:this.hot._createCellCoords(C.row,r.col)}:{start:this.hot._createCellCoords(w.row,r.col),end:this.hot._createCellCoords(r.row,v.col)};break;case "SW-NE":z="top"===u?{start:this.hot._createCellCoords(l.highlight.row,r.col),end:this.hot._createCellCoords(r.row,v.col)}:{start:this.hot._createCellCoords(r.row,w.col),end:this.hot._createCellCoords(w.row, 4537r.col)};break;case "SE-NW":"bottom"===u?z={start:this.hot._createCellCoords(r.row,y.col),end:this.hot._createCellCoords(w.row,r.col)}:"top"===u&&(z={start:C,end:r})}break;case "SE-NW":switch(t){case "NW-SE":case "NE-SW":case "SW-NE":"top"===u&&(z.end=r);break;case "SE-NW":"top"===u?z.end=r:z={start:r,end:w}}}return z}},{key:"isDragged",value:function(){return 0<this.dragged.length}}],[{key:"PLUGIN_KEY",get:function(){return"multipleSelectionHandles"}},{key:"PLUGIN_PRIORITY",get:function(){return 160}}]), 4538f}(d.BasePlugin);b.MultipleSelectionHandles=a},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.NestedHeaders=void 0;g=a(1076);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.NestedHeaders=g.NestedHeaders},function(g,b,a){function F(G){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(K){return!1}}(); 4539return function(){var K=(0,k.default)(G);if(I){var J=(0,k.default)(this).constructor;K=Reflect.construct(K,arguments,J)}else K=K.apply(this,arguments);return(0,h.default)(this,K)}}function B(G,I,K){if(I.has(G))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;I.set(G,K)}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.NestedHeaders=void 0;var D=g(a(78));a(18);a(0);a(27);a(3);a(2);a(11);a(4);var A,x,q=g(a(5)),p=g(a(6)),e=g(a(44)),c=g(a(30)),d=g(a(15)), 4540h=g(a(16)),k=g(a(14)),f=g(a(41)),n=g(a(110)),l=g(a(109)),r=a(23),m=a(47),t=a(83),u=a(79),w=a(92),v=a(320),C=a(50),y=g(
4540a(1077)),z=g(a(1086));a(1087);b.PLUGIN_KEY="nestedHeaders";b.PLUGIN_PRIORITY=280;var E=new WeakMap,H=new WeakMap;a=function(G){function I(){var J;(0,q.default)(this,I);for(var P=arguments.length,S=Array(P),R=0;R<P;R++)S[R]=arguments[R];return J=K.call.apply(K,[this].concat(S)),B((0,e.default)(J),E,{writable:!0,value:new y.default}),B((0,e.default)(J),H,{writable:!0,value:null}),(0,f.default)((0,e.default)(J), 4541"ghostTable",new z.default(J.hot,function(O,N){return J.getHeaderSettings(O,N)})),(0,f.default)((0,e.default)(J),"detectedOverlappedHeaders",!1),J}(0,d.default)(I,G);var K=F(I);return(0,p.default)(I,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedHeaders}},{key:"enablePlugin",value:function(){var J=this;if(!this.enabled){var P=this.hot.getSettings().nestedHeaders;Array.isArray(P)&&Array.isArray(P[0])||(0,w.warn)((0,u.toSingleLine)(A||(A=(0,D.default)(["Your Nested Headers plugin configuration is invalid. The settings has to be \n passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]"], 4542["Your Nested Headers plugin configuration is invalid. The settings has to be\\x20\n passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]"]))));this.addHook("init",function(){return J.onInit()});this.addHook("afterLoadData",function(){return J.onAfterLoadData.apply(J,arguments)});this.addHook("beforeOnCellMouseDown",function(){return J.onBeforeOnCellMouseDown.apply(J,arguments)});this.addHook("afterOnCellMouseDown",function(){return J.onAfterOnCellMouseDown.apply(J, 4543arguments)});this.addHook("beforeOnCellMouseOver",function(){return J.onBeforeOnCellMouseOver.apply(J,arguments)});this.addHook("afterGetColumnHeaderRenderers",function(S){return J.onAfterGetColumnHeaderRenderers(S)});this.addHook("modifyColWidth",function(){return J.onModifyColWidth.apply(J,arguments)});this.addHook("beforeHighlightingColumnHeader",function(){return J.onBeforeHighlightingColumnHeader.apply(J,arguments)});this.addHook("afterViewportColumnCalculatorOverride",function(){return J.onAfterViewportColumnCalculatorOverride.apply(J, 4544arguments)});(0,c.default)((0,k.default)(I.prototype),"enablePlugin",this).call(this);this.updatePlugin()}}},{key:"updatePlugin",value:function(){var J=this;if(this.hot.view){var P=this.hot.getSettings().nestedHeaders;(0,l.default)(this,E).setColumnsLimit(this.hot.countCols());Array.isArray(P)&&(this.detectedOverlappedHeaders=(0,l.default)(this,E).setState(P));this.detectedOverlappedHeaders&&(0,w.warn)((0,u.toSingleLine)(x||(x=(0,D.default)(["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration \n is currently not supported."], 4545["Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\\x20\n is currently not supported."]))));this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEac
4545h(function(S,R){S=!0===S?"hide-column":"show-column";(0,l.default)(J,E).triggerColumnModification(S,R)});!(0,l.default)(this,H)&&this.enabled&&(0,n.default)(this,H,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe(function(S){S.forEach(function(R){var O= 4546R.index,N=R.newValue;"replace"===R.op&&(R=!0===N?"hide-column":"show-column",(0,l.default)(J,E).triggerColumnModification(R,O))});J.ghostTable.buildWidthsMap()}));this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap();(0,c.default)((0,k.default)(I.prototype),"updatePlugin",this).call(this)}}},{key:"disablePlugin",value:function(){this.clearColspans();(0,l.default)(this,E).clear();(0,l.default)(this,H).unsubscribe();(0,n.default)(this,H,null);this.ghostTable.clear();(0,c.default)((0,k.default)(I.prototype), 4547"disablePlugin",this).call(this)}},{key:"getStateManager",value:function(){return(0,l.default)(this,E)}},{key:"getLayersCount",value:function(){return(0,l.default)(this,E).getLayersCount()}},{key:"getHeaderSettings",value:function(J,P){return(0,l.default)(this,E).getHeaderSettings(J,P)}},{key:"clearColspans",value:function(){if(this.hot.view){var J=this.hot.view._wt,P=J.getSetting("columnHeaders").length,S=J.wtTable.THEAD,R=J.wtOverlays.topOverlay.clone.wtTable.THEAD;J=J.wtOverlays.topInlineStartCornerOverlay? 4548J.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(var O=0;O<P;O++){var N=S.childNodes[O];if(!N)break;for(var Q=R.childNodes[O],M=J?J.childNodes[O]:null,T=0,Z=N.childNodes.length;T<Z;T++)N.childNodes[T].removeAttribute("colspan"),(0,r.removeClass)(N.childNodes[T],"hiddenHeader"),Q&&Q.childNodes[T]&&(Q.childNodes[T].removeAttribute("colspan"),(0,r.removeClass)(Q.childNodes[T],"hiddenHeader")),J&&M&&M.childNodes[T]&&(M.childNodes[T].removeAttribute("colspan"),(0,r.removeClass)(M.childNodes[T], 4549"hiddenHeader"))}}}},{key:"headerRendererFactory",value:function(J){var P=this,S=this.hot.view._wt.getSetting("fixedColumnsStart");return function(R,O){var N,Q=P.hot,M=Q.rootDocument,T=Q.view;Q=Q.columnIndexMapper.getVisualFromRenderableIndex(R);null===Q&&(Q=R);O.removeAttribute("colspan");(0,r.removeClass)(O,"hiddenHeader");var Z=null!==(N=(0,l.default)(P,E).getHeaderSettings(J,Q))&&void 0!==N?N:{label:""},L=Z.colspan;N=Z.label;var U=Z.isHidden;if(Z.isPlaceholder||U)(0,r.addClass)(O,"hiddenHeader"); 4550else if(1<L){var V,Y;Z=T._wt.wtOverlays;T=null===(V=Z.topInlineStartCornerOverlay)||void 0===V?void 0:V.clone.wtTable.THEAD.contains(O);V=null===(Y=Z.inlineStartOverlay)||void 0===Y?void 0:Y.clone.wtTable.THEAD.contains(O);R=T||V?Math.min(L,S-R):L;1<R&&O.setAttribute("colspan",R)}R=M.createElement("div");M=M.createElement("span");(0,r.addClass)(R,"relative");(0,r.addClass)(M,"colHeader");(0,r.fastInnerHTML)(M,N);R.appendChild(M);(0,r.empty)(O);O.appendChild(R);P.hot.runHooks("afterGetColHeader",Q, 4551O)}}},{key:"onBeforeHighlightingColumnHeader",value:function(J,P,S){var R=(0,l.default)(this,E).getHeaderTreeNodeData(P,J);if(!R)return J;var O=S.classNames,N=S.columnCursor,Q=S.selectionType;S=S.selectionWidth;var M=(0,l.default)(this,E).getHeaderSettings(P,J);P=M.isRoot;M=M.colspan;if(Q===v.HEADER_TYPE){if(!P)return R.columnIndex}else Q===v.ACTIVE_HEADER_TYPE&&(M>S-N||!P)&&(O.length=0);return J}},{key:"onBeforeOnCellMouseDown",value:function(J,P,S,R){this._getHeaderTreeNodeDataByCoords(P)&&(R.column= 4552!0)}},{key:"onAfterOnCellMouseDown",value:function(J,P){var S=this._getHeaderTreeNodeDataByCoords(P);if(S){var R=this.hot.selection,O=R.isSelected()?R.getSelectedRange().current():null,N=[],Q=S.columnIndex;S=S.origColspan;var M=!R.inInSelection(P);J.shiftKey&&O?P.col<O.from.col?N.push(O.getTopEndCorner().col,Q,P.row):P.col>O.from.col?N.push(O.getTopStartCorner().col,Q+S-1,P.row):N.push(Q,Q+S-1,P.row):((0,t.isLeftClick)(J)||(0,t.isRightClick)(J)&&M)&&N.push(Q,Q+S-1,P.row);R.selectColumns.apply(R,N)}}}, 4553{key:"onBeforeOnCellMouseOver",value:function(J,P,S,R){var O;if(this.hot.view.isMouseDown()&&(S=this._getHeaderTreeNodeDataByCoords(P))){J=S.columnIndex;S=S.origColspan;var N=this.hot.getSelectedRangeLast(),Q=N.getTopStartCorner(),M=N.getBottomEndCorner();N=N.from;R.column=!0;R.cell=!0;R=[];P.col<N.col?R.push(M.col,J):P.col>N.col?R.push(Q.col,J+S-1):R.push(J,J+S-1);(O=this.hot).selectColumns.apply(O,R)}}},{key:"onAfterGetColumnHeaderRenderers",value:function(J){if(J)for(var P=J.length=0;P<(0,l.default)(this, 4554E).getLayersCount();P++)J.push(this.headerRendererFactory(P))}},{key:"onAfterViewportColumnCalculatorOverride",value:function(J){for(var P=(0,l.default)(this,E).getLayersCount(),S=J.startColumn,R=!!P,O=0;O<P;O++){var N=(0,l.default)(this,E).findLeftMostColumnIndex(O,J.startColumn),Q=this.hot.columnIndexMapper.getRenderableFromVisualIndex(N);
4554if(0<=N&&(R=!1),(0,m.isNumeric)(Q)&&Q<J.startColumn){S=Q;break}}J.startColumn=R?(0,l.default)(this,E).getHeaderTreeNodeData(0,S).columnIndex:S}},{key:"onModifyColWidth", 4555value:function(J,P){P=this.ghostTable.getWidth(P);return J>P?J:P}},{key:"onInit",value:function(){this.updatePlugin()}},{key:"onAfterLoadData",value:function(J,P){P||this.updatePlugin()}},{key:"destroy",value:function(){(0,n.default)(this,E,null);null!==(0,l.default)(this,H)&&((0,l.default)(this,H).unsubscribe(),(0,n.default)(this,H,null));(0,c.default)((0,k.default)(I.prototype),"destroy",this).call(this)}},{key:"_getHeaderTreeNodeDataByCoords",value:function(J){if(!(0<=J.row||0>J.col))return(0,l.default)(this, 4556E).getHeaderTreeNodeData(J.row,J.col)}}],[{key:"PLUGIN_KEY",get:function(){return"nestedHeaders"}},{key:"PLUGIN_PRIORITY",get:function(){return 280}}]),I}(C.BasePlugin);b.NestedHeaders=a},function(g,b,a){function F(u,w){var v=Object.keys(u);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(u);w&&(C=C.filter(function(y){return Object.getOwnPropertyDescriptor(u,y).enumerable}));v.push.apply(v,C)}return v}function B(u){for(var w=1;w<arguments.length;w++){var v=null!=arguments[w]?arguments[w]: 4557{};w%2?F(Object(v),!0).forEach(function(C){(0,A.default)(u,C,v[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(v)):F(Object(v)).forEac
4557h(function(C){Object.defineProperty(u,C,Object.getOwnPropertyDescriptor(v,C))})}return u}function D(u,w,v){if(w.has(u))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;w.set(u,v)}a(53);a(8);a(39);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=void 0;a(36);a(3);a(0);a(2);a(11); 4558a(4);var A=g(a(41)),x=g(a(125)),q=g(a(5)),p=g(a(6)),e=g(a(110)),c=g(a(109)),d=a(20),h=g(a(1078)),k=g(a(1080)),f=a(1082),n=a(1085),l=["row"],r=new WeakMap,m=new WeakMap,t=new WeakMap;a=function(){function u(){(0,q.default)(this,u);D(this,r,{writable:!0,value:new h.default});D(this,m,{writable:!0,value:new k.default((0,c.default)(this,r))});D(this,t,{writable:!0,value:[[]]})}return(0,p.default)(u,[{key:"setState",value:function(w){(0,c.default)(this,r).setData(w);w=!1;try{(0,c.default)(this,m).buildTree()}catch(v){(0,c.default)(this, 4559m).clear(),(0,c.default)(this,r).clear(),w=!0}return(0,e.default)(this,t,(0,n.generateMatrix)((0,c.default)(this,m).getRoots())),w}},{key:"setColumnsLimit",value:function(w){(0,c.default)(this,r).setColumnsLimit(w)}},{key:"mergeStateWith",value:function(w){var v=this;w=(0,d.arrayMap)(w,function(C){var y=C.row;C=(0,x.default)(C,l);return B({row:0>y?v.rowCoordsToLevel(y):y},C)});(0,c.default)(this,r).mergeWith(w);(0,c.default)(this,m).buildTree();(0,e.default)(this,t,(0,n.generateMatrix)((0,c.default)(this, 4560m).getRoots()))}},{key:"mapState",value:function(w){(0,c.default)(this,r).map(w);(0,c.default)(this,m).buildTree();(0,e.default)(this,t,(0,n.generateMatrix)((0,c.default)(this,m).getRoots()))}},{key:"mapNodes",value:function(w){return(0,d.arrayReduce)((0,c.default)(this,m).getRoots(),function(v,C){return C.walkDown(function(y){y=w(y.data);void 0!==y&&v.push(y)}),v},[])}},{key:"triggerNodeModification",value:function(w,v,C){0>v&&(v=this.rowCoordsToLevel(v));var y;v=(0,c.default)(this,m).getNode(v, 4561C);return v&&(y=(0,f.triggerNodeModification)(w,v,C),(0,e.default)(this,t,(0,n.generateMatrix)((0,c.default)(this,m).getRoots()))),y}},{key:"triggerColumnModification",value:function(w,v){return this.triggerNodeModification(w,-1,v)}},{key:"rowCoordsToLevel",value:function(w){var v=Math.max(this.getLayersCount(),1);return Math.min(Math.max(w+v,0),v-1)}},{key:"levelToRowCoords",value:function(w){var v=Math.max(this.getLayersCount(),1);return Math.min(Math.max(w-v,-v),-1)}},{key:"getHeaderSettings", 4562value:function(w,v){var C,y;return 0>w&&(w=this.rowCoordsToLevel(w)),w>=this.getLayersCount()?null:null!==(C=null===(y=(0,c.default)(this,t)[w])||void 0===y?void 0:y[v])&&void 0!==C?C:null}},{key:"getHeaderTreeNodeData",value:function(w,v){0>w&&(w=this.rowCoordsToLevel(w));return(w=(0,c.default)(this,m).getNode(w,v))?B({},w.data):null}},{key:"findLeftMostColumnIndex",value:function(w,v){var C;if((null!==(C=this.getHeaderSettings(w,v))&&void 0!==C?C:{isRoot:!0}).isRoot)return v;for(--v;0<=v;){var y; 4563if((null!==(y=this.getHeaderSettings(w,v))&&void 0!==y?y:{isRoot:!0}).isRoot)break;--v}return v}},{key:"getLayersCount",value:function(){return(0,c.default)(this,r).getLayersCount()}},{key:"getColumnsCount",value:function(){return(0,c.default)(this,r).getColumnsCount()}},{key:"clear",value:function(){(0,e.default)(this,t,[]);(0,c.default)(this,r).clear();(0,c.default)(this,m).clear()}}]),u}();b.default=a},function(g,b,a){function F(m,t){var u=Object.keys(m);if(Object.getOwnPropertySymbols){var w= 4564Object.getOwnPropertySymbols(m);t&&(w=w.filter(function(v){return Object.getOwnPropertyDescriptor(m,v).enumerable}));u.push.apply(u,w)}return u}function B(m,t,u){if(t.has(m))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;t.set(m,u)}a(53);a(8);a(39);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=b.HEADER_CONFIGURABLE_PROPS=void 0;a(3);a(0);a(2);a(11);a(4);var D=g(a(41)),A=g(a(125)),x=g(a(5)),q=g(a(6)),p=g(a(109)),e=g(a(110)),c=a(17),d=a(20),h=a(1079),k= 4565["row","col"],f=["label","collapsible"];b.HEADER_CONFIGURABLE_PROPS=f;var n=new WeakMap,l=new WeakMap,r=new WeakMap;a=function(){function m(){(0,x.default)(this,m);B(this,n,{writable:!0,value:[]});B(this,l,{writable:!0,value:0});B(this,r,{writable:!0,value:1/0})}return(0,q.default)(m,[{key:"setColumnsLimit",value:function(t){(0,e.default)(this,r,t)}},{key:"setData",value:function(){(0,e.default)(this,n,(0,h.normalizeSettings)(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],(0,p.default)(this, 4566r)));(0,e.default)(this,l,(0,p.default)(this,n).length)}},{key:"getData",value:function(){return(0,p.default)(this,n)}},{key:"mergeWith",value:function(t){var u=this;(0,d.arrayEach)(t,function(w){var v=w.row,C=w.col;w=(0,A.default)(w,k);v=u.getHeaderSettings(v,C);null!==v&&(0,c.extend)(v,w,f)})}},{key:"map",value:function(t){(0,d.arrayEach)((0,p.default)(this,n),function(u){(0,d.arrayEach)(u,function(w){var v=t
4566(function(C){for(var y=1;y<arguments.length;y++){var z=null!=arguments[y]?arguments[y]: 4567{};y%2?F(Object(z),!0).forEach(function(E){(0,D.default)(C,E,z[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(z)):F(Object(z)).forEach(function(E){Object.defineProperty(C,E,Object.getOwnPropertyDescriptor(z,E))})}return C}({},w));(0,c.isObject)(v)&&(0,c.extend)(w,v,f)})})}},{key:"getHeaderSettings",value:function(t,u){var w;if(t>=(0,p.default)(this,l)||0>t)return null;t=(0,p.default)(this,n)[t];return u>=t.length?null:null!==(w=t[u])&&void 0!==w? 4568w:null}},{key:"getHeadersSettings",value:function(t,u){var w=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,v=[];if(t>=(0,p.default)(this,l)||0>t)return v;for(var C=(0,p.default)(this,n)[t],y=0,z=u;z<C.length;z++){var E=C[z];if(E.isPlaceholder)throw Error("The first column settings cannot overlap the other header layers");if(y+=E.colspan,v.push(E),1<E.colspan&&(z+=E.colspan-1),y===w)break;if(y>w)throw Error("The last column settings cannot overlap the other header layers");}return v}},{key:"getLayersCount", 4569value:function(){return(0,p.default)(this,l)}},{key:"getColumnsCount",value:function(){return 0<(0,p.default)(this,l)?(0,p.default)(this,n)[0].length:0}},{key:"clear",value:function(){(0,e.default)(this,n,[]);(0,e.default)(this,l,0)}}]),m}();b.default=a},function(g,b,a){g=a(1);b.__esModule=!0;b.normalizeSettings=function(q){var p=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1/0,e=[];if(0===p)return e;(0,B.arrayEach)(q,function(d){var h=[],k=0;e.push(h);(0,B.arrayEach)(d,function(f){var n= 4570(0,x.createDefaultHeaderSettings)();if((0,D.isObject)(f)){var l=f.colspan;n.label=(0,A.stringify)(f.label);"number"==typeof l&&1<l&&(n.colspan=l,n.origColspan=l)}else n.label=(0,A.stringify)(f);f=!1;if((k+=n.origColspan)>=p&&(n.colspan=n.origColspan-(k-p),n.origColspan=n.colspan,f=!0),h.push(n),1<n.colspan)for(l=0;l<n.colspan-1;l++)h.push((0,x.createPlaceholderHeaderSettings)());return!f})});var c=Math.max.apply(Math,(0,F.default)((0,B.arrayMap)(e,function(d){return d.length})));return(0,B.arrayEach)(e, 4571function(d){if(d.length<c){var h=(0,B.arrayMap)(Array(c-d.length),function(){return(0,x.createDefaultHeaderSettings)()});d.splice.apply(d,[d.length,0].concat((0,F.default)(h)))}}),e};a(55);a(18);var F=g(a(43)),B=a(20),D=a(17),A=a(31),x=a(654)},function(g,b,a){function F(l,r){var m=Object.keys(l);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(l);r&&(t=t.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}));m.push.apply(m,t)}return m}function B(l){for(var r= 45721;r<arguments.length;r++){var m=null!=arguments[r]?arguments[r]:{};r%2?F(Object(m),!0).forEach(function(t){(0,A.default)(l,t,m[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(m)):F(Object(m)).forEach(function(t){Object.defineProperty(l,t,Object.getOwnPropertyDescriptor(m,t))})}return l}function D(l,r,m){if(r.has(l))throw new TypeError("Cannot initialize the same private elements twice on an object");!0;r.set(l,m)}a(53);a(8);a(39);a(19);a(27);a(85); 4573g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(32);a(0);a(2);a(4);a(22);a(11);var A=g(a(41)),x=g(a(34)),q=g(a(5)),p=g(a(6)),e=g(a(109)),c=g(a(110)),d=a(20),h=g(a(1081)),k=new WeakMap,f=new WeakMap,n=new WeakMap;a=function(){function l(r){(0,q.default)(this,l);D(this,k,{writable:!0,value:new Map});D(this,f,{writable:!0,value:new Map});D(this,n,{writable:!0,value:null});(0,c.default)(this,n,r)}return(0,p.default)(l,[{key:"getRoots",value:function(){return Array.from((0,e.default)(this,k).values())}}, 4574{key:"getRootByColumn",value:function(r){var m;return(0,e.default)(this,f).has(r)&&(m=(0,e.default)(this,k).get((0,e.default)(this,f).get(r))),m}},{key:"getNode",value:function(r,m){var t=this.getRootByColumn(m);if(t){var u,w=m-(0,e.default)(this,f).get(m),v=0;return t.walkDown(function(C){var y=C.data,z=y.origColspan;if(r===y.headerLevel){if(w>=v&&w<=v+z-1)return u=C,!1;v+=z}}),u}}},{key:"rebuildTreeIndex",value:function(){var r=this,m=0;(0,e.default)(this,f).clear();(0,d.arrayEach)((0,e.default)(this, 4575k),function(t){t=(0,x.default)(t,2)[1].data.colspan;for(var u=m;u<m+t;u++)(0,e.default)(r,f).set(u,m);m+=t})}},{key:"buildTree",value:function(){this.clear();for(var r=(0,e.default)(this,n).getColumnsCount(),m=0;m<r;){var t=(0,e.default)(this,n).getHeaderSettings(0,m),u=new h.default;(0,e.default)(this,k).set(m,u);this.buildLeaves(u,m,0,t.origColspan);m+=t.origColspan}this.rebuildTreeIndex()}},{key:"buildLeaves",value:function(r,m,t){var u=this,w=3<arguments.length&&void 0!==arguments[3]?arguments[3]: 45761;w=(0,e.default)(this,n).getHeadersSettings(t,m,w);t+=1;
4576(0,d.arrayEach)(w,function(v){var C,y=B(B({},v),{},{headerLevel:t-1,columnIndex:m});1===t?(r.data=y,C=r):(C=new h.default(y),r.addChild(C));t<(0,e.default)(u,n).getLayersCount()&&u.buildLeaves(C,m,t,v.origColspan);m+=v.origColspan})}},{key:"clear",value:function(){(0,e.default)(this,k).clear();(0,e.default)(this,f).clear()}}]),l}();b.default=a},function(g,b,a){function F(c,d){var h=Object.keys(c);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(c); 4577d&&(k=k.filter(function(f){return Object.getOwnPropertyDescriptor(c,f).enumerable}));h.push.apply(h,k)}return h}function B(c){for(var d=1;d<arguments.length;d++){var h=null!=arguments[d]?arguments[d]:{};d%2?F(Object(h),!0).forEach(function(k){(0,q.default)(c,k,h[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(h)):F(Object(h)).forEach(function(k){Object.defineProperty(c,k,Object.getOwnPropertyDescriptor(h,k))})}return c}function D(c,d){for(var h=c.call(d, 4578this),k=0;k<this.childs.length;k++){if(!1===h)return!1;h=D.call(this.childs[k],c,d)}return h}a(53);a(8);a(39);a(19);a(27);a(85);g=a(1);b.__esModule=!0;b.default=b.TRAVERSAL_DF_PRE=b.TRAVERSAL_DF_POST=b.TRAVERSAL_BF=void 0;b.depthFirstPreOrder=D;a(3);a(32);a(0);a(2);a(4);var A=g(a(5)),x=g(a(6)),q=g(a(41)),p=g(a(43));b.TRAVERSAL_DF_PRE="DF-pre-order";b.TRAVERSAL_DF_POST="DF-post-order";b.TRAVERSAL_BF="BF";var e=new Map([["DF-pre-order",D],["DF-post-order",function k(d,h){for(var f=0;f<this.childs.length;f++)if(!1=== 4579k.call(this.childs[f],d,h))return!1;return d.call(h,this)}],["BF",function(d,h){var k=[this];!function n(){if(0!==k.length){var l=k.shift();k.push.apply(k,(0,p.default)(l.childs));!1!==d.call(h,l)&&n()}}()}]]);a=function(){function d(h){(0,A.default)(this,d);(0,q.default)(this,"data",{});(0,q.default)(this,"parent",null);(0,q.default)(this,"childs",[]);this.data=h}return(0,x.default)(d,[{key:"addChild",value:function(h){h.parent=this;this.childs.push(h)}},{key:"cloneTree",value:function(){for(var h= 45800<arguments.length&&void 0!==arguments[0]?arguments[0]:this,k=new d(B({},h.data)),f=0;f<h.childs.length;f++)k.addChild(this.cloneTree(h.childs[f]));return k}},{key:"replaceTreeWith",value:function(h){this.data=B({},h.data);this.childs=[];for(var k=0;k<h.childs.length;k++)this.addChild(h.childs[k])}},{key:"walkDown",value:function(h){var k=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"BF";if(!e.has(k))throw Error('Traversal strategy "'.concat(k,'" does not exist'));e.get(k).call(this,h,this)}}, 4581{key:"walkUp",value:function(h){var k=this;!function l(n){!1!==h.call(k,n)&&null!==n.parent&&l(n.parent)}(this)}}]),d}();b.default=a},function(g,b,a){b.__esModule=!0;b.triggerNodeModification=function(D,A,x){if(!B.has(D))throw Error('The node modifier action ("'.concat(D,'") does not exist.'));return B.get(D)(A,x)};a(3);a(32);a(0);a(2);a(4);g=a(655);b=a(656);var F=a(1083);a=a(1084);var B=new Map([["collapse",g.collapseNode],["expand",b.expandNode],["hide-column",F.hideColumn],["show-column",a.showColumn]])}, 4582function(g,b,a){g=a(1);b.__esModule=!0;b.hideColumn=function(A,x){if(!Number.isInteger(x))throw Error("The passed gridColumnIndex argument has invalid type.");if(0<A.childs.length)throw Error((0,D.toSingleLine)(B||(B=(0,F.default)(["The passed node is not the last node on the tree. Only for \nthe last node, the hide column modification can be applied."],["The passed node is not the last node on the tree. Only for\\x20\nthe last node, the hide column modification can be applied."]))));if(!A.data.crossHiddenColumns.includes(x)){var q= 4583!1;(A.walkUp(function(p){if(p.data.collapsible)return q=!0,!1}),q)||A.walkUp(function(p){p=p.data;p.crossHiddenColumns.push(x);1<p.colspan?--p.colspan:p.isHidden=!0})}};var F=g(a(78));a(68);a(52);a(42);a(49);var B,D=a(79)},function(g,b,a){g=a(1);b.__esModule=!0;b.showColumn=function(A,x){if(!Number.isInteger(x))throw Error("The passed gridColumnIndex argument has invalid type.");if(0<A.childs.length)throw Error((0,D.toSingleLine)(B||(B=(0,F.default)(["The passed node is not the last node on the tree. Only for \nthe last node, the show column modification can be applied."], 4584["The passed node is not the last node on the tree. Only for\\x20\nthe last node, the show column modification can be applied."]))));if(A.data.crossHiddenColumns.includes(x)){var q=!1;(A.walkUp(function(p){if(p.data.collapsible)return q=!0,!1}),q)||A.walkUp(function(p){p=p.data;p.crossHiddenColumns.splice(p.crossHiddenColumns.indexOf(x),1);!p.isHidden&&p.colspan<p.origColspan&&(p.colspan+=1);p.isHidden=!1})}};
4584var F=g(a(78));a(68);a(52);a(42);a(49);a(55);a(33);var B,D=a(79)},function(g,b,a){g=a(1); 4585b.__esModule=!0;b.generateMatrix=function(x){var q=[];return(0,B.arrayEach)(x,function(p){p.walkDown(function(e){e=e.data;var c=e.origColspan,d=e.columnIndex,h=e.crossHiddenColumns,k,f=e.headerLevel;Array.isArray(q[f])?k=q[f]:(k=[],q[f]=k);var n=!1;for(f=d;f<d+c;f++)h.includes(f)||n?k.push((0,D.createPlaceholderHeaderSettings)(e)):(n=(0,D.createDefaultHeaderSettings)(e),n.crossHiddenColumns,n=(0,F.default)(n,A),n.isRoot=!0,k.push(n),n=!0)})}),q};var F=g(a(125));a(42);a(49);var B=a(20),D=a(654),A= 4586["crossHiddenColumns"]},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(5)),B=g(a(6)),D=g(a(41)),A=a(23);a=function(){function x(q,p){(0,F.default)(this,x);(0,D.default)(this,"hot",void 0);(0,D.default)(this,"nestedHeaderSettingsGetter",void 0);(0,D.default)(this,"layersCount",0);(0,D.default)(this,"container",void 0);(0,D.default)(this,"widthsMap",void 0);this.hot=q;this.nestedHeaderSettingsGetter=p;this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap", 4587"physicalIndexToValue")}return(0,B.default)(x,[{key:"setLayersCount",value:function(q){return this.layersCount=q,this}},{key:"getWidth",value:function(q){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(q))}},{key:"buildWidthsMap",value:function(){this.container=this.hot.rootDocument.createElement("div");this.container.classList.add("handsontable","htGhostTable","htAutoSize");this._buildGhostTable(this.container);this.hot.rootDocument.body.appendChild(this.container);var q=this.container.querySelectorAll("tr:last-of-type th"), 4588p=q.length;this.widthsMap.clear();for(var e=0;e<p;e++){var c=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);c=this.hot.toPhysicalColumn(c);this.widthsMap.setValueAtIndex(c,q[e].offsetWidth)}this.container.parentNode.removeChild(this.container);this.container=null}},{key:"_buildGhostTable",value:function(q){var p=this.hot,e=p.rootDocument;p=p.columnIndexMapper;for(var c=e.createDocumentFragment(),d=e.createElement("table"),h=!!this.hot.getSettings().dropdownMenu,k=p.getRenderableIndexesLength(), 4589f=0;f<this.layersCount;f++){for(var n=e.createElement("tr"),l=0;l<k;l++){var r=p.getVisualFromRenderableIndex(l);null===r&&(r=l);var m=e.createElement("th");if((r=this.nestedHeaderSettingsGetter(f,r))&&(!r.isPlaceholder||r.isHidden)){var t=r.label;h&&(t+='\x3cbutton class\x3d"changeType"\x3e\x3c/button\x3e');(0,A.fastInnerHTML)(m,t);m.colSpan=r.colspan;n.appendChild(m)}}d.appendChild(n)}c.appendChild(d);q.appendChild(c)}},{key:"clear",value:function(){this.widthsMap.clear();this.container=null}}]), 4590x}();b.default=a},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.NestedRows=void 0;g=a(1089);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.NestedRows=g.NestedRows},function(g,b,a){function F(w){var v=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}();return function(){var C= 4591(0,c.default)(w);if(v){var y=(0,c.default)(this).constructor;C=Reflect.construct(C,arguments,y)}else C=C.apply(this,arguments);return(0,e.default)(this,C)}}a(7);g=a(1);b.__esModule=!0;b.PLUGIN_PRIORITY=b.PLUGIN_KEY=b.NestedRows=void 0;var B=g(a(43)),D=g(a(5)),A=g(a(6)),x=g(a(44)),q=g(a(30)),p=g(a(15)),e=g(a(16)),c=g(a(14));a(3);a(0);a(2);a(11);a(4);a(13);a(77);a(22);a(105);a(27);a(54);var d=a(50),h=g(a(1090)),k=g(a(1091)),f=g(a(658)),n=g(a(1092)),l=a(92),r=a(150),m=a(84),t=g(a(1093));a(1094);b.PLUGIN_KEY= 4592"nestedRows";b.PLUGIN_PRIORITY=300;var u=new WeakMap;a=function(w){function v(y){var z;return(0,D.default)(this,v),(z=C.call(this,y)).dataManager=null,z.headersUI=null,z.collapsedRowsMap=null,u.set((0,x.default)(z),{movedToCollapsed:!1,skipRender:null,skipCoreAPIModifiers:!1}),z}(0,p.default)(v,w);var C=F(v);return(0,A.default)(v,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().nestedRows}},{key:"enablePlugin",value:function(){var y=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows", 4593new m.TrimmingMap),this.dataManager=new h.default(this,this.hot),this.collapsingUI=new k.default(this,this.hot),this.headersUI=new f.default(this,this.hot),this.contextMenuUI=new n.default(this,this.hot),this.rowMoveController=new t.default(this),this.addHook("afterInit",function(){return y.onAfterInit.apply(y,arguments)}),this.addHook("beforeViewRender",function(){return y.onBeforeViewRender.apply(y,arguments)}),this.addHook("modifyRowData",function(){return y.onModifyRowData.apply(y,arguments)}), 4594this.addHook("modifySourceLength",function(){return y.onModifySourceLength.apply(y,arguments)}),this.addHook("beforeDataSplice",function(){return y.onBeforeDataSplice.apply(y,arguments)}),this.addHook("filterData",function(){return y.onFilterData.apply(y,arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){return y.onAfterContextMenuDefaultOptions.apply(y,arguments)}),this.addHook("afterGetRowHeader",function(){return y.onAfterGetRowHeader.apply(y,arguments)}),this.addHook("beforeOnCellMouseDown", 4595function(){return y.onBeforeOnCellMouseDown.apply(y,arguments)}),this.addHook("beforeRemoveRow",function(){return y.onBeforeRemoveRow.apply(y,arguments)}),this.addHook("afterRemoveRow",function(){return y.onAfterRemoveRow.apply(y,arguments)}),this.addHook("beforeAddChild",function(){return y.onBeforeAddChild.apply(y,arguments)}
4595),this.addHook("afterAddChild",function(){return y.onAfterAddChild.apply(y,arguments)}),this.addHook("beforeDetachChild",function(){return y.onBeforeDetachChild.apply(y,arguments)}), 4596this.addHook("afterDetachChild",function(){return y.onAfterDetachChild.apply(y,arguments)}),this.addHook("modifyRowHeaderWidth",function(){return y.onModifyRowHeaderWidth.apply(y,arguments)}),this.addHook("afterCreateRow",function(){return y.onAfterCreateRow.apply(y,arguments)}),this.addHook("beforeRowMove",function(){return y.onBeforeRowMove.apply(y,arguments)}),this.addHook("beforeLoadData",function(z){return y.onBeforeLoadData(z)}),(0,q.default)((0,c.default)(v.prototype),"enablePlugin",this).call(this))}}, 4597{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("nestedRows");(0,q.default)((0,c.default)(v.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin();var y=this.dataManager.getData();this.enablePlugin();this.dataManager.updateWithData(y);(0,q.default)((0,c.default)(v.prototype),"updatePlugin",this).call(this)}},{key:"onBeforeRowMove",value:function(y,z,E,H){return this.rowMoveController.onBeforeRowMove(y,z,E,H)}},{key:"disableCoreAPIModifiers", 4598value:function(){u.get(this).skipCoreAPIModifiers=!0}},{key:"enableCoreAPIModifiers",value:function(){u.get(this).skipCoreAPIModifiers=!1}},{key:"onBeforeOnCellMouseDown",value:function(y,z,E){this.collapsingUI.toggleState(y,z,E)}},{key:"onModifyRowData",value:function(y){if(!u.get(this).skipCoreAPIModifiers)return this.dataManager.getDataObject(y)}},{key:"onModifySourceLength",value:function(){if(!u.get(this).skipCoreAPIModifiers)return this.dataManager.countAllRows()}},{key:"onBeforeDataSplice", 4599value:function(y,z,E){return!(!u.get(this).skipCoreAPIModifiers&&!this.dataManager.isRowHighestLevel(y))||(this.dataManager.spliceData(y,z,E),!1)}},{key:"onFilterData",value:function(y,z,E){var H=u.get(this);return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(E[0],z),this.collapsingUI.collapsedRowsStash.shiftStash(E[0],null,-1*z),this.dataManager.filterData(y,z,E),H.skipRender=!0,this.dataManager.getData().slice()}},{key:"onAfterContextMenuDefaultOptions", 4600value:function(y){return this.contextMenuUI.appendOptions(y)}},{key:"onAfterGetRowHeader",value:function(y,z){this.headersUI.appendLevelIndicators(y,z)}},{key:"onModifyRowHeaderWidth",value:function(y){return this.headersUI.rowHeaderWidthCache||y}},{key:"onAfterRemoveRow",value:function(y,z,E,H){var G=this;if(H!==this.pluginName){var I=u.get(this);setTimeout(function(){I.skipRender=null;G.headersUI.updateRowHeaderWidth();G.collapsingUI.collapsedRowsStash.applyStash()},0)}}},{key:"onBeforeRemoveRow", 4601value:function(y,z,E){var H=this;y=Array.from(E.reduce(function(G,I){if(H.dataManager.isParent(I)){var K=H.dataManager.getDataObject(I).__children;return G.add(I),Array.isArray(K)&&K.forEach(function(J){return G.add(H.dataManager.getRowIndex(J))}),G}return G.add(I)},new Set));E.length=0;E.push.apply(E,(0,B.default)(y))}},{key:"onBeforeAddChild",value:function(){this.collapsingUI.collapsedRowsStash.stash()}},{key:"onAfterAddChild",value:function(y,z){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(z)); 4602this.collapsingUI.collapsedRowsStash.applyStash();this.headersUI.updateRowHeaderWidth()}},{key:"onBeforeDetachChild",value:function(){this.collapsingUI.collapsedRowsStash.stash()}},{key:"onAfterDetachChild",value:function(y,z,E){this.collapsingUI.collapsedRowsStash.shiftStash(E,null,-1);this.collapsingUI.collapsedRowsStash.applyStash();this.headersUI.updateRowHeaderWidth()}},{key:"onAfterCreateRow",value:function(){this.dataManager.rewriteCache()}},{key:"onAfterInit",value:function(){var y=Math.max.apply(Math, 4603(0,B.default)(this.dataManager.cache.levels));0<y&&this.headersUI.updateRowHeaderWidth(y)}},{key:"onBeforeViewRender",value:function(y,z){u.get(this).skipRender&&(z.skipRender=!0)}},{key:"destroy",value:function(){(0,q.default)((0,c.default)(v.prototype),"destroy",this).call(this)}},{key:"onBeforeLoadData",value:function(y){if(!(0,r.isArrayOfObjects)(y))return(0,l.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings().nestedRows= 4604!1,void this.disablePlugin();this.dataManager.setData(y);this.dataManager.rewriteCache()}}],[{key:"PLUGIN_KEY",get:function(){return"nestedRows"}},{key:"PLUGIN_PRIORITY",get:function(){return 300}}]),v}(d.BasePlugin);b.NestedRows=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(3);a(0);a(2);a(11);a(4);a(33);
4604a(55);a(22);a(18);a(13);var F=g(a(43)),B=g(a(21)),D=g(a(5)),A=g(a(6)),x=a(47),q=a(17),p=a(20);a=function(){function e(c,d){(0,D.default)(this,e);this.hot=d;this.data=null;this.plugin= 4605c;this.parentReference=new WeakMap;this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}}return(0,A.default)(e,[{key:"setData",value:function(c){this.data=c}},{key:"getData",value:function(){return this.data}},{key:"getRawSourceData",value:function(){var c;return this.plugin.disableCoreAPIModifiers(),c=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),c}},{key:"updateWithData",value:function(c){this.setData(c);this.rewriteCache()}},{key:"rewriteCache",value:function(){var c= 4606this;this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap};(0,x.rangeEach)(0,this.data.length-1,function(d){c.cacheNode(c.data[d],0,null)})}},{key:"cacheNode",value:function(c,d,h){var k=this;this.cache.levels[d]||(this.cache.levels[d]=[],this.cache.levelCount+=1);this.cache.levels[d].push(c);this.cache.rows.push(c);this.cache.nodeInfo.set(c,{parent:h,row:this.cache.rows.length-1,level:d});this.hasChildren(c)&&(0,p.arrayEach)(c.__children,function(f){k.cacheNode(f,d+1,c)})}},{key:"getDataObject", 4607value:function(c){return null==c?null:this.cache.rows[c]}},{key:"readTreeNodes",value:function(c,d,h,k){var f=this,n=!1,l=d;if(isNaN(l)&&l.end)return l;var r=c;return r||(r={__children:this.data},n=!0,--l),null!=h&&l===h?{result:r,end:!0}:null!=k&&r===k?{result:l,end:!0}:(l+=1,r.__children&&(0,p.arrayEach)(r.__children,function(m){if(f.parentReference.set(m,n?null:r),l=f.readTreeNodes(m,l,h,k),isNaN(l)&&l.end)return!1}),l)}},{key:"mockParent",value:function(){var c=this.mockNode();return c.__children= 4608this.data,c}},{key:"mockNode",value:function(){var c={};return(0,q.objectEach)(this.data[0],function(d,h){c[h]=null}),c}},{key:"getRowIndex",value:function(c){return null==c?null:this.cache.nodeInfo.get(c).row}},{key:"getRowIndexWithinParent",value:function(c){var d=isNaN(c)?c:this.getDataObject(c);c=this.getRowParent(c);return null==c?this.data.indexOf(d):c.__children.indexOf(d)}},{key:"countAllRows",value:function(){return this.countChildren({__children:this.data})}},{key:"countChildren",value:function(c){var d= 4609this,h=0;return isNaN(c)||(c=this.getDataObject(c)),c&&c.__children?((0,p.arrayEach)(c.__children,function(k){h+=1;k.__children&&(h+=d.countChildren(k))}),h):0}},{key:"getRowParent",value:function(c){var d;return d=isNaN(c)?c:this.getDataObject(c),this.getRowObjectParent(d)}},{key:"getRowObjectParent",value:function(c){return c&&"object"===(0,B.default)(c)?this.cache.nodeInfo.get(c).parent:null}},{key:"getRowLevel",value:function(c){var d=null;return(d=isNaN(c)?c:this.getDataObject(c))?this.getRowObjectLevel(d): 4610null}},{key:"getRowObjectLevel",value:function(c){return null==c?null:this.cache.nodeInfo.get(c).level}},{key:"hasChildren",value:function(c){return isNaN(c)||(c=this.getDataObject(c)),!(!c.__children||!c.__children.length)}},{key:"isChild",value:function(c){return null!==this.getRowParent(c)}},{key:"getChild",value:function(c,d){var h;return(null===(h=c.__children)||void 0===h?void 0:h[d])||null}},{key:"isRowHighestLevel",value:function(c){return!this.isChild(c)}},{key:"isParent",value:function(c){var d; 4611return isNaN(c)||(c=this.getDataObject(c)),c&&!!c.__children&&0!==(null===(d=c.__children)||void 0===d?void 0:d.length)}},{key:"addChild",value:function(c,d){this.hot.runHooks("beforeAddChild",c,d);var h=null;c&&(h=this.getRowIndex(c));this.hot.runHooks("beforeCreateRow",h+this.countChildren(c)+1,1);(h=c)||(h=this.mockParent());h.__children||(h.__children=[]);d||(d=this.mockNode());h.__children.push(d);this.rewriteCache();h=this.getRowIndex(d);this.hot.rowIndexMapper.insertIndexes(h,1);this.hot.runHooks("afterCreateRow", 4612h,1);this.hot.runHooks("afterAddChild",c,d)}},{key:"addChildAtIndex",value:function(c,d,h){if(h||(h=this.mockNode()),this.hot.runHooks("beforeAddChild",c,h,d),c){var k=this.getRowIndex(c)+d+1;this.hot.runHooks("beforeCreateRow",k,1);c.__children.splice(d,null,h);this.rewriteCache();this.plugin.disableCoreAPIModifiers();this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(c),"__children",c.__children,"NestedRows.addChildAtIndex");
4612this.hot.rowIndexMapper.insertIndexes(k,1);this.plugin.enableCoreAPIModifiers(); 4613this.hot.runHooks("afterCreateRow",k,1);h=k}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row",d,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),h=this.getRowIndex(this.data[d]);h=this.getDataObject(h);this.hot.runHooks("afterAddChild",c,h,d)}},{key:"addSibling",value:function(c){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"below",h=this.translateTrimmedRow(c),k=this.getRowParent(h);h=this.getRowIndexWithinParent(h);switch(d){case "below":this.addChildAtIndex(k, 4614h+1,null);break;case "above":this.addChildAtIndex(k,h,null)}}},{key:"detachFromParent",value:function(c){var d=this,h=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],k=null,f=[];Array.isArray(c)?((0,x.rangeEach)(c[0],c[2],function(v){v=d.translateTrimmedRow(v);f.push(d.getDataObject(v))}),(0,x.rangeEach)(0,f.length-2,function(v){d.detachFromParent(f[v],!1)}),k=f[f.length-1]):k=c;var n=this.getRowIndex(k),l=this.countChildren(k),r=this.getRowIndexWithinParent(k),m=this.getRowParent(k),t= 4615this.getRowParent(m),u=this.getRowIndex(t),w=null;if(this.hot.runHooks("beforeDetachChild",m,k),null!=r)w=Array.from(Array(n+l+1).keys()).splice(-1*(l+1)),(this.hot.runHooks("beforeRemoveRow",n,l+1,w,this.plugin.pluginName),m.__children.splice(r,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",n,l+1,w,this.plugin.pluginName),t)?(w=u+this.countChildren(t),n=this.getChild(t,this.countChildren(t)-1),n=this.getRowIndex(n),this.hot.runHooks("beforeCreateRow",n+1,l+1,this.plugin.pluginName),t.__children.push(k)): 4616(w=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",w-2,l+1,this.plugin.pluginName),this.data.push(k));this.rewriteCache();this.hot.runHooks("afterCreateRow",w-2,l+1,this.plugin.pluginName);this.hot.runHooks("afterDetachChild",m,k,this.getRowIndex(k));h&&this.hot.render()}},{key:"filterData",value:function(c,d,h){var k=this,f=[];(0,p.arrayEach)(h,function(n){f.push(k.getDataObject(n))});(0,p.arrayEach)(f,function(n){var l=k.getRowIndexWithinParent(n);n=k.getRowParent(n);null===n?k.data.splice(l, 46171):n.__children.splice(l,1)});this.rewriteCache()}},{key:"spliceData",value:function(c,d,h){var k,f=this.getDataObject(c-1),n=null,l=c;if(f&&f.__children&&0===f.__children.length?(n=f,l=0):c<this.countAllRows()&&(n=this.getRowParent(c),l=this.getRowIndexWithinParent(c)),n)h?(k=n.__children).splice.apply(k,[l,d].concat((0,F.default)(h))):n.__children.splice(l,d);else if(h){var r;(r=this.data).splice.apply(r,[l,d].concat((0,F.default)(h)))}else this.data.splice(l,d);this.rewriteCache()}},{key:"syncRowWithRawSource", 4618value:function(c){var d=null;do null!==(d=this.getRowParent(d))&&(c=d);while(null!==d);this.plugin.disableCoreAPIModifiers();this.hot.setSourceDataAtCell(this.getRowIndex(c),"__children",c.__children,"NestedRows.syncRowWithRawSource");this.plugin.enableCoreAPIModifiers()}},{key:"moveRow",value:function(c,d,h,k){var f=d===this.hot.countRows(),n=this.getRowParent(c),l=this.getRowIndexWithinParent(c),r=n.__children.slice(l,l+1);c=c>d;var m=f?this.getRowParent(d-1):this.getRowParent(d);null==m&&(m=this.getRowParent(d- 46191));null==m&&(m=this.getDataObject(d-1));m?m.__children||(m.__children=[]):(m=this.getDataObject(d)).__children=[];d=f||h||k?m.__children.length:this.getRowIndexWithinParent(d);h=n===m;m.__children.splice(d,0,r[0]);n.__children.splice(l+(c&&h?1:0),1);this.syncRowWithRawSource(n);h||this.syncRowWithRawSource(m)}},{key:"translateTrimmedRow",value:function(c){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(c):c}},{key:"untranslateTrimmedRow",value:function(c){return this.plugin.collapsingUI? 4620this.plugin.collapsingUI.untranslateTrimmedRow(c):c}}]),e}();b.default=a},function(g,b,a){function F(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r=(0,p.default)(n);if(l){var m=(0,p.default)(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments); 4621return(0,q.default)(this,r)}}a(0);a(7);g=a(1);b.__esModule=!0;b.default=void 0;a(13);a(33);
4621a(55);var B=g(a(43)),D=g(a(5)),A=g(a(6)),x=g(a(15)),q=g(a(16)),p=g(a(14)),e=a(83),c=a(20),d=a(47),h=a(23),k=g(a(334)),f=g(a(658));a=function(n){function l(m,t){var u;return(0,D.default)(this,l),(u=r.call(this,m,t)).dataManager=u.plugin.dataManager,u.collapsedRows=[],u.collapsedRowsStash={stash:function(){var w=0<arguments.length&&void 0!==arguments[0]&&arguments[0];u.lastCollapsedRows=u.collapsedRows.slice(0); 4622u.expandMultipleChildren(u.lastCollapsedRows,w)},shiftStash:function(w,v){var C=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;null==v&&(v=1/0);(0,c.arrayEach)(u.lastCollapsedRows,function(y,z){y>=w&&y<v&&(u.lastCollapsedRows[z]=y+C)})},applyStash:function(){u.collapseMultipleChildren(u.lastCollapsedRows,!(0<arguments.length&&void 0!==arguments[0])||arguments[0]);u.lastCollapsedRows=void 0},trimStash:function(w,v){(0,d.rangeEach)(w,w+v-1,function(C){C=u.lastCollapsedRows.indexOf(C);-1<C&& 4623u.lastCollapsedRows.splice(C,1)})}},u}(0,x.default)(l,n);var r=F(l);return(0,A.default)(l,[{key:"collapseChildren",value:function(m){var t=this,u=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],w=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],v=[],C=null,y=null,z=null;return isNaN(m)?(C=m,y=this.dataManager.getRowIndex(C)):(C=this.dataManager.getDataObject(m),y=m),this.dataManager.hasChildren(C)&&(0,c.arrayEach)(C.__children,function(E){v.push(t.dataManager.getRowIndex(E))}), 4624z=this.collapseRows(v,!0,!1),w&&this.trimRows(z),u&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(y)&&this.collapsedRows.push(y),z}},{key:"collapseMultipleChildren",value:function(m){var t=this,u=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],w=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],v=[];(0,c.arrayEach)(m,function(C){v.push.apply(v,(0,B.default)(t.collapseChildren(C,!1,!1)))});w&&this.trimRows(v);u&&this.renderAndAdjust()}},{key:"collapseRow",value:function(m){this.collapseRows([m], 4625!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}},{key:"collapseRows",value:function(m){var t=this,u=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],w=2<arguments.length&&void 0!==arguments[2]&&arguments[2],v=[];return(0,c.arrayEach)(m,function(C){v.push(C);u&&t.collapseChildRows(C,v)}),w&&this.trimRows(v),v}},{key:"collapseChildRows",value:function(m){var t=this,u=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],w=(2<arguments.length&&arguments[2],3<arguments.length&& 4626void 0!==arguments[3]&&arguments[3]);if(this.dataManager.hasChildren(m)){var v=this.dataManager.getDataObject(m);(0,c.arrayEach)(v.__children,function(C){C=t.dataManager.getRowIndex(C);u.push(C);t.collapseChildRows(C,u)})}w&&this.trimRows(u)}},{key:"expandRow",value:function(m){this.expandRows([m],!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}},{key:"expandRows",value:function(m){var t=this,u=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],w=2<arguments.length&&void 0!==arguments[2]&& 4627arguments[2],v=[];return(0,c.arrayEach)(m,function(C){v.push(C);u&&t.expandChildRows(C,v)}),w&&this.untrimRows(v),v}},{key:"expandChildRows",value:function(m){var t=this,u=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],w=(2<arguments.length&&arguments[2],3<arguments.length&&void 0!==arguments[3]&&arguments[3]);if(this.dataManager.hasChildren(m)){var v=this.dataManager.getDataObject(m);(0,c.arrayEach)(v.__children,function(C){t.isAnyParentCollapsed(C)||(C=t.dataManager.getRowIndex(C),u.push(C), 4628t.expandChildRows(C,u))})}w&&this.untrimRows(u)}},{key:"expandChildren",value:function(m){var t=this,u=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],w=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],v=[],C=null,y=null,z=null;return isNaN(m)?(C=m,y=this.dataManager.getRowIndex(m)):(C=this.dataManager.getDataObject(m),y=m),this.collapsedRows.splice(this.collapsedRows.indexOf(y),1),this.dataManager.hasChildren(C)&&(0,c.arrayEach)(C.__children,function(E){E=t.dataManager.getRowIndex(E); 4629v.push(E)}),z=this.expandRows(v,!0,!1),w&&this.untrimRows(z),u&&this.renderAndAdjust(),z}},{key:"expandMultipleChildren",value:function(m){var t=this,u=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],w=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],v=[];(0,c.arrayEach)(m,function(C){v.push.apply(v,(0,B.default)(t.expandChildren(C,!1,!1)))});w&&this.untrimRows(v);u&&this.renderAndAdjust()}},{key:"collapseAll",value:function(){var m=this,t=this.dataManager.getData(),u=[];(0,c.arrayEach)(t, 4630function(w){m.dataManager.hasChildren(w)&&u.push(w)});this.collapseMultipleChildren(u);this.renderAndAdjust()}},{key:"expandAll",value:function(){var m=this,t=this.dataManager.getData(),u=[];(0,c.arrayEach)(t,function(w){m.dataManager.hasChildren(w)&&u.push(w)});this.expandMultipleChildren(u);this.renderAndAdjust()}},{key:"trimRows",value:function(m){var t=this;this.hot.batchExecution(function(){(0,c.arrayEach)(m,function(u){t.plugin.collapsedRowsMap.setValueAtIndex(u,!0)})},!0)}},{key:"untrimRows", 4631value:function(m){var t=this;this.hot.batchExecution(function(){(0,c.arrayEach)(m,function(u){t.plugin.collapsedRowsMap.setValueAtIndex(u,!1)})},!0)}},{key:"areChildrenCollapsed",value:function(m){var t=this;m=isNaN(m)?m:this.dataManager.getDataObject(m);var u=!0;return null===m&&(m={__children:this.dataManager.data}),this.dataManager.hasChildren(m)&&(0,c.arrayEach)(m.__children,function(w){
4631w=t.dataManager.getRowIndex(w);if(!t.plugin.collapsedRowsMap.getValueAtIndex(w))return u=!1,!1}),u}},{key:"isAnyParentCollapsed", 4632value:function(m){for(;null!==m;){m=this.dataManager.getRowParent(m);var t=this.dataManager.getRowIndex(m);if(-1<this.collapsedRows.indexOf(t))return!0}return!1}},{key:"toggleState",value:function(m,t){0<=t.col||(t=this.translateTrimmedRow(t.row),(0,h.hasClass)(m.target,f.default.CSS_CLASSES.button)&&(this.areChildrenCollapsed(t)?this.expandChildren(t):this.collapseChildren(t),(0,e.stopImmediatePropagation)(m)))}},{key:"translateTrimmedRow",value:function(m){return this.hot.toPhysicalRow(m)}},{key:"untranslateTrimmedRow", 4633value:function(m){return this.hot.toVisualRow(m)}},{key:"renderAndAdjust",value:function(){this.hot.render();this.hot.view.adjustElementsSize()}}]),l}(k.default);b.default=a},function(g,b,a){function F(n){if("function"!=typeof WeakMap)return null;var l=new WeakMap,r=new WeakMap;return(F=function(m){return m?r:l})(n)}function B(n){var l=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 4634[],function(){})),!0}catch(r){return!1}}();return function(){var r=(0,c.default)(n);if(l){var m=(0,c.default)(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);return(0,e.default)(this,r)}}a(7);a(19);g=a(1);var D=a(21);b.__esModule=!0;b.default=void 0;var A=g(a(5)),x=g(a(6)),q=g(a(44)),p=g(a(15)),e=g(a(16)),c=g(a(14));a(3);a(0);a(2);a(11);a(4);a(55);var d=a(47),h=a(20),k=function(n,l){if(!l&&n&&n.__esModule)return n;if(null===n||"object"!==D(n)&&"function"!=typeof n)return{default:n}; 4635if((l=F(l))&&l.has(n))return l.get(n);var r={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor,t;for(t in n)if("default"!==t&&Object.prototype.hasOwnProperty.call(n,t)){var u=m?Object.getOwnPropertyDescriptor(n,t):null;u&&(u.get||u.set)?Object.defineProperty(r,t,u):r[t]=n[t]}r.default=n;l&&l.set(n,r);return r}(a(29));a=g(a(334));var f=new WeakMap;a=function(n){function l(m,t){var u;return(0,A.default)(this,l),u=r.call(this,m,t),f.set((0,q.default)(u),{row_above:function(w,v){u.dataManager.addSibling(v[v.length- 46361].start.row,"above")},row_below:function(w,v){u.dataManager.addSibling(v[v.length-1].start.row,"below")}}),u.dataManager=u.plugin.dataManager,u}(0,p.default)(l,n);var r=B(l);return(0,x.default)(l,[{key:"appendOptions",value:function(m){var t=this,u=[{key:"add_child",name:function(){return this.getTranslatedPhrase(k.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:function(){var w=t.dataManager.translateTrimmedRow(t.hot.getSelectedLast()[0]);w=t.dataManager.getDataObject(w);t.dataManager.addChild(w)}, 4637disabled:function(){var w=t.hot.getSelectedLast();return!w||0>w[0]||t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{key:"detach_from_parent",name:function(){return this.getTranslatedPhrase(k.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:function(){t.dataManager.detachFromParent(t.hot.getSelectedLast())},disabled:function(){var w=t.hot.getSelectedLast(),v=t.dataManager.translateTrimmedRow(w[0]);return!t.dataManager.getRowParent(v)||!w||0>w[0]|| 4638t.hot.selection.isSelectedByColumnHeader()||t.hot.countRows()>=t.hot.getSettings().maxRows}},{name:"---------"}];return(0,d.rangeEach)(0,m.items.length-1,function(w){if(0===w)return(0,h.arrayEach)(u,function(v,C){m.items.splice(w+C,0,v)}),!1}),this.modifyRowInsertingOptions(m)}},{key:"modifyRowInsertingOptions",value:function(m){var t=f.get(this);return(0,d.rangeEach)(0,m.items.length-1,function(u){var w=t[m.items[u].key];null!=w&&(m.items[u].callback=w)}),m}}]),l}(a.default);b.default=a},function(g, 4639b,a){g=a(1);b.__esModule=!0;b.default=void 0;var F=g(a(43)),B=g(a(78));a(36);a(33);a(0);a(27);a(18);var D,A=g(a(5)),x=g(a(6)),q=a(31),p=a(92),e=a(79);a=function(){function c(d){(0,A.default)(this,c);this.plugin=d;this.hot=d.hot;this.dataManager=d.dataManager;this.collapsingUI=d.collapsingUI}return(0,x.default)(c,[{key:"onBeforeRowMove",value:function(d,h,k,f){var n=this;if(this.displayAPICompatibilityWarning({rows:d,finalIndex:h,dropIndex:k,movePossible:f}))return!1;this.movedToCollapsed=!1;var l= 4640k===this.hot.countRows(),r=l?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(k),m=!0,t=d.map(function(w){if(!m)return!1;w=n.dataManager.translateTrimmedRow(w);return m=n.shouldAllowMoving(w,r),w}),u=-1===t.indexOf(r);if(!m||!u)return!1;u=this.getBaseParent(t);l=this.getTargetParent(l,r);u=u===l;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(l),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(t,r,u),this.moveRows(t,r,l),this.dataManager.rewriteCache(), 4641this.moveCellsMeta(t,r),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",d,h,k,f,f&&this.isRowOrderChanged(d,h)),this.hot.render(),this.selectCells(d,k),!1}},{key:"displayAPICompatibilityWarning",value:function(d){var h=d.rows,k=d.finalIndex,f=d.dropIndex;d=d.movePossible;var n=!1;return(0,q.isUndefined)(f)&&((0,p.warn)((0,e.toSingleLine)(D||(D=(0,B.default)(["Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows \n when the NestedRows plugin is enabled. Please use the 'dragRows' method instead."], 4642["Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\\x20\n when the NestedRows plugin is enabled. Please use the 'dragRows' method instead."])))),this.hot.runHooks("afterRowMove",h,k,f,d,!1),n=!0),n}},{key:"shouldAllowMoving",value:function(d,h){return!(this.dataManager.isParent(d)||this.dataManager.isRowHighestLevel(d)||d===h||0===h)}},{key:"getBaseParent",value:function(d){return this.dataManager.getRowParent(d[0])}},{key:"getTargetParent",value:function(d, 4643h){d=this.dataManager.getRowParent(d?h-1:h);return null==d&&(d=this.dataManager.getRowParent(h-1)),d}},{key:"shiftCollapsibleParentsLocations",value:function(d,h,k){k||(M
4643ath.max.apply(Math,(0,F.default)(d))<=h?this.collapsingUI.collapsedRowsStash.shiftStash(d[0],h,-1*d.length):this.collapsingUI.collapsedRowsStash.shiftStash(h,d[0],d.length))}},{key:"moveRows",value:function(d,h,k){var f=this,n=h===this.dataManager.getRowIndex(k)+this.dataManager.countChildren(k)+1;this.hot.batchRender(function(){d.forEach(function(l){f.dataManager.moveRow(l, 4644h,f.movedToCollapsed,n)})})}},{key:"moveCellsMeta",value:function(d,h){var k,f=this,n=[],l=Math.max.apply(Math,(0,F.default)(d))<h;d.forEach(function(r){n.push(f.hot.getCellMetaAtRow(r))});this.hot.spliceCellsMeta(d[0],d.length);(k=this.hot).spliceCellsMeta.apply(k,[h-(l?n.length:0),0].concat(n))}},{key:"selectCells",value:function(d,h){var k=d.length,f=0,n=0;this.movedToCollapsed?(f=d[k-1]<h?this.dataManager.translateTrimmedRow(h-k):this.dataManager.translateTrimmedRow(h),f=this.dataManager.getRowParent(null=== 4645f?this.hot.countSourceRows()-1:f-1),f=this.dataManager.getRowIndex(f),n=f=this.dataManager.untranslateTrimmedRow(f)):d[k-1]<h?f=(n=h-1)-k+1:n=(f=h)+k-1;h=this.hot.selection;d=this.hot.countCols()-1;h.setRangeStart(this.hot._createCellCoords(f,0));h.setRangeEnd(this.hot._createCellCoords(n,d),!0)}},{key:"isRowOrderChanged",value:function(d,h){return d.some(function(k,f){return k-f!==h})}}]),c}();b.default=a},function(g,b,a){},function(g,b,a){b.__esModule=!0;b.PersistentState=b.PLUGIN_PRIORITY=b.PLUGIN_KEY= 4646void 0;g=a(1096);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.PersistentState=g.PersistentState},function(g,b,a){function F(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k=(0,e.default)(d);if(h){var f=(0,e.default)(this).constructor;k=Reflect.construct(k, 4647arguments,f)}else k=k.apply(this,arguments);return(0,p.default)(this,k)}}a(0);a(7);var B=a(1);b.__esModule=!0;b.PersistentState=b.PLUGIN_PRIORITY=b.PLUGIN_KEY=void 0;var D=B(a(5)),A=B(a(6)),x=B(a(30)),q=B(a(15)),p=B(a(16)),e=B(a(14));g=a(50);var c=B(a(1097));a=B(a(71));a.default.getSingleton().register("persistentStateSave");a.default.getSingleton().register("persistentStateLoad");a.default.getSingleton().register("persistentStateReset");b.PLUGIN_KEY="persistentState";b.PLUGIN_PRIORITY=0;a=function(d){function h(f){var n; 4648return(0,D.default)(this,h),(n=k.call(this,f)).storage=void 0,n}(0,q.default)(h,d);var k=F(h);return(0,A.default)(h,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().persistentState}},{key:"enablePlugin",value:function(){var f=this;this.enabled||(this.storage||(this.storage=new c.default(this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",function(n,l){return f.saveValue(n,l)}),this.addHook("persistentStateLoad",function(n,l){return f.loadValue(n,l)}), 4649this.addHook("persistentStateReset",function(){return f.resetValue()}),(0,x.default)((0,e.default)(h.prototype),"enablePlugin",this).call(this))}},{key:"disablePlugin",value:function(){this.storage=void 0;(0,x.default)((0,e.default)(h.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();(0,x.default)((0,e.default)(h.prototype),"updatePlugin",this).call(this)}},{key:"loadValue",value:function(f,n){n.value=this.storage.loadValue(f)}}, 4650{key:"saveValue",value:function(f,n){this.storage.saveValue(f,n)}},{key:"resetValue",value:function(f){void 0===f?this.storage.resetAll():this.storage.reset(f)}},{key:"destroy",value:function(){(0,x.default)((0,e.default)(h.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"persistentState"}},{key:"PLUGIN_PRIORITY",get:function(){return 0}}]),h}(g.BasePlugin);b.PersistentState=a},function(g,b,a){g=a(1);b.__esModule=!0;b.default=void 0;a(18);a(33);var F=g(a(5)),B=g(a(6)), 4651D=a(20);a=function(){function A(x){var q=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;(0,F.default)(this,A);this.rootWindow=q;this.prefix=x;this.savedKeys=[];this.loadSavedKeys()}return(0,B.default)(A,[{key:"saveValue",value:function(x,q){this.rootWindow.localStorage.setItem("".concat(this.prefix,"_").concat(x),JSON.stringify(q));-1===this.savedKeys.indexOf(x)&&(this.savedKeys.push(x),this.saveSavedKeys())}},{key:"loadValue",value:function(x,q){x=void 0===x?q:x;x=this.rootWindow.localStorage.getItem("".concat(this.prefix, 4652"_").concat(x));return null===x?void 0:JSON.parse(x)}},{key:"reset",value:function(x){this.rootWindow.localStorage.removeItem("".concat(this.prefix,"_").concat(x))}},{key:"resetAll",value:function(){var x=this;(0,D.arrayEach)(this.savedKeys,function(q,p){x.rootWindow.localStorage.removeItem("".concat(x.prefix,"_").concat(x.savedKeys[p]))});this.clearSavedKeys()}},{key:"loadSavedKeys",value:function(){var x=this.rootWindow.localStorage.getItem("".concat(this.prefix,"__persistentStateKeys"));this.savedKeys= 4653("string"==typeof x?JSON.parse(x):void 0)||[]}},{key:"saveSavedKeys",value:function(){this.rootWindow.localStorage.setItem("".concat(this.prefix,"__persistentStateKeys"),JSON.stringify(this.savedKeys))}},{key:"clearSavedKeys",value:function(){this.savedKeys.length=0;this.saveSavedKeys()}}]),A}();b.default=a},function(g,b,a){b.__esModule=!0;b.Search=b.PLUGIN_PRIORITY=b.PLUGIN_KEY=void 0;g=a(1099);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.Search=g.Search},function(g,b,a){function F(n){var l= 4654function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r=(0,e.default)(n);if(l){var m=(0,e.default)(this).constructor;r=Reflect.construct(r,arguments,m)}else r=r.apply(this,arguments);return(0,p.default)(this,r)}}a(7);g=a(1);b.__esModule=!0;b.Search=b.PLUGIN_PRIORITY=b.PLUGIN_KEY=void 0;var B= 4655g(a(43)),D=g(a(5)),A=g(a(6)),x=g(a(30)),q=g(a(15)),p=g(a(16)),e=g(a(14));a(33);a(0);a(69);a(12);a(628);a(64);a(42);a(49);a(55);a(76);g=a(50);var c=a(17),d=a(47),h=a(31);b.PLUGIN_KEY="search";b.PLUGIN_PRIORITY=190;var k=function(n,l,r,m,t){n.getCellMeta(l,r).isSearchResult=t},f=function(n,l,r){return!((0,h.isUndefined)(n)||null===n||!n.toLocaleLowerCase||0===n.length)&&!(0,h.isUndefined)(l)&&null!==l&&-1!==l.toString().toLocaleLowerCase(r.locale).indexOf(n.toLocaleLowerCase(r.locale))};a=function(n){function l(m){var t; 4656return(0,D.default)(this,l),(t=r.call(this,m)).callback=k,t.queryMethod=f,t.searchResultClass="htSearchResult",t}(0,q.default)(l,n);var r=F(l);return(0,A.default)(l,[{key:"isEnabled",value:function(){return this.hot.getSettings().search}},{key:"enablePlugin",value:function(){var m=this;if(!this.enabled){var t=this.hot.getSettings().search;this.updatePluginSettings(t);this.addHook("beforeRenderer",function(){return m.onBeforeRenderer.apply(m,arguments)});(0,x.default)((0,e.default)(l.prototype),"enablePlugin", 4657this).call(this)}}},{key:"disablePlugin",value:function(){var m=this,t=function(){return m.onBeforeRenderer.apply(m,arguments)};this.hot.addHook("beforeRenderer",t);this.hot.addHookOnce("afterViewRender",function(){m.hot.removeHook("beforeRenderer",t)});(0,x.default)((0,e.default)(l.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(){this.disablePlugin();this.enablePlugin();(0,x.default)((0,e.default)(l.prototype),"updatePlugin",this).call(this)}},{key:"query",value:function(m){var t= 4658this,u=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getCallback(),w=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod(),v=this.hot.countRows(),C=this.hot.countCols(),y=[],z=this.hot;return(0,d.rangeEach)(0,v-1,function(E){(0,d.rangeEach)(0,C-1,function(H){var G=t.hot.getDataAtCell(E,H),I=t.hot.getCellMeta(E,H),K=I.search.callback||u;(I=(I.search.queryMethod||w)(m,G,I))&&y.push({row:E,col:H,data:G});K&&K(z,E,H,G,I)})}),y}},{key:"getCallback",value:function(){return this.callback}}, 4659{key:"setCallback",value:function(m){this.callback=m}},{key:"getQueryMethod",value:function(){return this.queryMethod}},{key:"setQueryMethod",value:function(m){this.queryMethod=m}},{key:"getSearchResultClass",value:function(){return this.searchResultClass}},{key:"setSearchResultClass",value:function(m){this.searchResultClass=m}},{key:"updatePluginSettings",value:function(m){(0,c.isObject)(m)&&(m.searchResultClass&&this.setSearchResultClass(m.searchResultClass),m.queryMethod&&this.setQueryMethod(m.queryMethod), 4660m.callback&&this.setCallback(m.callback))}},{key:"onBeforeRenderer",value:function(m,t,u,w,v,C){var y;m=C.className||[];t=[];"string"==typeof m?t=m.split(" "):(y=t).push.apply(y,(0,B.default)(m));this.isEnabled()&&C.isSearchResult?t.includes(this.searchResultClass)||t.push("".concat(this.searchResultClass)):t.includes(this.searchResultClass)&&t.splice(t.indexOf(this.searchResultClass),1);C.className=t.join(" ")}},{key:"destroy",value:function(){(0,x.default)((0,e.default)(l.prototype),"destroy",this).call(this)}}], 4661[{key:"PLUGIN_KEY",get:function(){return"search"}},{key:"PLUGIN_PRIORITY",get:function(){return 190}}]),l}(g.BasePlugin);b.Search=a},function(g,b,a){b.__esModule=!0;b.TouchScroll=b.PLUGIN_PRIORITY=b.PLUGIN_KEY=void 0;g=a(1101);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY=g.PLUGIN_PRIORITY;b.TouchScroll=g.TouchScroll},function(g,b,a){function F(h){var k=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 4662[],function(){})),!0}catch(f){return!1}}();return function(){var f=(0,p.default)(h);if(k){var n=(0,p.default)(this).constructor;f=Reflect.construct(f,arguments,n)}else f=f.apply(this,arguments);return(0,q.default)(this,f)}}a(0);a(7);g=a(1);b.__esModule=!0;b.TouchScroll=b.PLUGIN_PRIORITY=b.PLUGIN_KEY=void 0;var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14)),e=a(23),c=a(20);g=a(50);var d=a(134);b.PLUGIN_KEY="touchScroll";b.PLUGIN_PRIORITY=200;a=function(h){function k(n){var l;return(0,B.default)(this, 4663k),(l=f.call(this,n)).scrollbars=[],l.clones=[],l.lockedCollection=!1,l.freezeOverlays=!1,l}(0,x.default)(k,h);var f=F(k);return(0,D.default)(k,[{key:"isEnabled",value:function(){return(0,d.isTouchSupported)()}},{key:"enablePlugin",value:function(){var n=this;this.enabled||(this.addHook("afterViewRender",function(){return n.onAfterViewRender()}),this.registerEvents(),(0,A.default)((0,p.default)(k.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){this.lockedCollection= 4664!1;(0,A.default)((0,p.default)(k.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){(0,A.default)((0,p.default)(k.prototype),"disablePlugin",this).call(this)}},{key:"registerEvents",value:function(){var n=this;this.addHook("beforeTouchScroll",function(){return n.onBeforeTouchScroll()});this.addHook("afterMomentumScroll",function(){return n.onAfterMomentumScroll()})}},{key:"onAfterViewRender",value:function(){if(!this.lockedCollection){var n=this.hot.view._wt.wtOverlays, 4665l=n.topOverlay,r=n.bottomOverlay,m=n.inlineStartOverlay,t=n.topInlineStartCornerOverlay;n=n.bottomInlineStartCornerOverlay;this.lockedCollection=!0;this.scrollbars.length=0;this.scrollbars.push(l);r.clone&&this.scrollbars.push(r);this.scrollbars.push(m);t&&this.scrollbars.push(t);n&&n.clone&&this.scrollbars.push(n);this.clones=[];l.needFullRender&&this.clones.push(l.clone.wtTable.holder.parentNode);r.needFullRender&&this.clones.push(r.clone.wtTable.holder.parentNode);m.needFullRender&&this.clones.push(m.clone.wtTable.holder.parentNode); 4666t&&this.clones.push(t.clone.wtTable.holder.parentNode);n&&n.clone&&this.clones.push(n.clone.wtTable.holder.parentNode)}}},{key:"onBeforeTouchScroll",value:function(){this.freezeOverlays=!0;(0,c.arrayEach)(this.clones,function(n){(0,e.addClass)(n,"hide-tween")})}},{key:"onAfterMomentumScroll",value:function(){var n=this;this.freezeOverlays=!1;(0,c.arrayEach)(this.clones,function(l){(0,e.removeClass)(l,"hide-tween");(0,e.addClass)(l,"show-tween")});this.hot._registerTimeout(function(){(0,c.arrayEach)(n.clones, 4667function(l){(0,e.removeClass)(l,"show-tween")})},400);(0,c.arrayEach)(this.scrollbars,function(l){l.refresh();l.resetFixedPosition()});this.hot.view._wt.wtOverlays.syncScrollWithMaster()}}],[{key:"PLUGIN_KEY",get:function(){return"touchScroll"}},{key:"PLUGIN_PRIORITY",get:function(){return 200}},{key:"SETTING_KEYS",get:function(){return!0}}]),k}(g.BasePlugin);b.TouchScroll=a},function(g,b,a){b.__esModule=!0;b.TrimRows=b.PLUGIN_PRIORITY=b.PLUGIN_KEY=void 0;g=a(1103);b.PLUGIN_KEY=g.PLUGIN_KEY;b.PLUGIN_PRIORITY= 4668g.PLUGIN_PRIORITY;b.TrimRows=g.TrimRows},function(g,b,a){function F(d){var h=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}();return function(){var k=(0,p.default)(d);if(h){var f=(0,p.default)(this).constructor;k=Reflect.construct(k,arguments,f)}else k=k.apply(this,arguments);return(0,q.default)(this,k)}}a(7); 4669g=a(1);b.__esModule=!0;b.TrimRows=b.PLUGIN_PRIORITY=b.PLUGIN_KEY=void 0;a(22);a(2);a(3);a(0);a(54);a(4);a(18);a(13);a(68);a(52);var B=g(a(5)),D=g(a(6)),A=g(a(30)),x=g(a(15)),q=g(a(16)),p=g(a(14));g=a(50);var e=a(84),c=a(20);b.PLUGIN_KEY="trimRows";b.PLUGIN_PRIORITY=330;a=function(d){function h(f){var n;return(0,B.default)(this,h),(n=k.call(this,f)).trimmedRowsMap=null,n}(0,x.default)(h,d);var k=F(h);return(0,D.default)(h,[{key:"isEnabled",value:function(){return!!this.hot.getSettings().trimRows}}, 4670{key:"enablePlugin",value:function(){var f=this;this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new e.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",function(){return f.onMapInit()}),(0,A.default)((0,p.default)(h.prototype),"enablePlugin",this).call(this))}},{key:"updatePlugin",value:function(){var f=this,n=this.hot.getSettings().trimRows;Array.isArray(n)&&this.hot.batchExecution(function(){f.trimmedRowsMap.clear();(0,c.arrayEach)(n,function(l){f.trimmedRowsMap.setValueAtIndex(l, 4671!0)})},!0);(0,A.default)((0,p.default)(h.prototype),"updatePlugin",this).call(this)}},{key:"disablePlugin",value:function(){this.hot.rowIndexMapper.unregisterMap("trimRows");(0,A.default)((0,p.default)(h.prototype),"disablePlugin",this).call(this)}},{key:"getTrimmedRows",value:function(){return this.trimmedRowsMap.getTrimmedIndexes()}},{key:"trimRows",value:function(f){var n=this,l=this.getTrimmedRows(),r=this.isValidConfig(f),m=l;r&&(m=Array.from(new Set(l.concat(f))));!1!==this.hot.runHooks("beforeTrimRow", 4672l,m,r)&&(r&&this.hot.batchExecution(function(){(0,c.arrayEach)(f,function(t){n.trimmedRowsMap.setValueAtIndex(t,!0)})},!0),this.hot.runHooks("afterTrimRow",l,m,r,r&&m.length>l.length))}},{key:"trimRow",value:function(){for(var f=arguments.length,n=Array(f),l=0;l<f;l++)n[l]=arguments[l];this.trimRows(n)}},{key:"untrimRows",value:function(f){var n=this.getTrimmedRows(),l=this.isValidConfig(f),r=n,m=this.trimmedRowsMap.getValues().slice(),t=0<f.length;l&&t&&((0,c.arrayEach)(f,function(u){m[u]=!1}),r= 4673(0,c.arrayReduce)(m,function(u,w,v){return w&&u.push(v),u},[]));!1!==this.hot.runHooks("beforeUntrimRow",n,r,l&&t)&&(l&&t&&this.trimmedRowsMap.setValues(m),this.hot.runHooks("afterUntrimRow",n,r,l&&t,l&&r.length<n.length))}},{key:"untrimRow",value:function(){for(var f=arguments.length,n=Array(f),l=0;l<f;l++)n[l]=arguments[l];this.untrimRows(n)}},{key:"isTrimmed",value:function(f){return this.trimmedRowsMap.getValueAtIndex(f)||!1}},{key:"untrimAll",value:function(){this.untrimRows(this.getTrimmedRows())}}, 4674{key:"isValidConfig",value:function(f){var n=this.hot.countSourceRows();return f.every(function(l){return Number.isInteger(l)&&0<=l&&l<n})}},{key:"onMapInit",value:function(){var f=this,n=this.hot.getSettings().trimRows;Array.isArray(n)&&this.hot.batchExecution(function(){(0,c.arrayEach)(n,function(l){f.trimmedRowsMap.setValueAtIndex(l,!0)})},!0)}},{key:"destroy",value:function(){(0,A.default)((0,p.default)(h.prototype),"destroy",this).call(this)}}],[{key:"PLUGIN_KEY",get:function(){return"trimRow
4674s"}}, 4675{key:"PLUGIN_PRIORITY",get:function(){return 330}}]),h}(g.BasePlugin);b.TrimRows=a},function(g,b,a){function F(D){if("function"!=typeof WeakMap)return null;var A=new WeakMap,x=new WeakMap;return(F=function(q){return q?x:A})(D)}a(3);a(0);a(2);a(11);a(4);a(19);var B=a(21);b.__esModule=!0;g=function(D,A){if(!A&&D&&D.__esModule)return D;if(null===D||"object"!==B(D)&&"function"!=typeof D)return{default:D};if((A=F(A))&&A.has(D))return A.get(D);var x={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor, 4676p;for(p in D)if("default"!==p&&Object.prototype.hasOwnProperty.call(D,p)){var e=q?Object.getOwnPropertyDescriptor(D,p):null;e&&(e.get||e.set)?Object.defineProperty(x,p,e):x[p]=D[p]}x.default=D;A&&A.set(D,x);return x}(a(1105));b.UndoRedo=g.default;b.PLUGIN_KEY=g.PLUGIN_KEY},function(g,b,a){function F(l){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, 4677[],function(){})),!0}catch(m){return!1}}();return function(){var m=(0,e.default)(l);if(r){var t=(0,e.default)(this).constructor;m=Reflect.construct(m,arguments,t)}else m=m.apply(this,arguments);return(0,p.default)(this,m)}}function B(l){var r=this;this.instance=l;this.doneActions=[];this.undoneActions=[];this.enabled=this.ignoreNewActions=!1;l.addHook("afterChange",function(m,t){var u=this,w=m&&m.length;w&&m.find(function(v){v=(0,d.default)(v,4);return v[2]!==v[3]})&&r.done(function(){var v=m.reduce(function(y, 4678z){return y.push((0,c.default)(z)),y},[]);(0,h.arrayEach)(v,function(y){y[1]=l.propToCol(y[1])});var C=1<w?u.getSelected():[[v[0][0],v[0][1]]];return new B.ChangeAction(v,C)},t)});l.addHook("afterCreateRow",function(m,t,u){r.done(function(){return new B.CreateRowAction(m,t)},u)});l.addHook("beforeRemoveRow",function(m,t,u,w){r.done(function(){var v=r.instance.getSourceDataArray(),C=(v.length+m)%v.length,y=l.toPhysicalRow(C);v=(0,f.deepClone)(v.slice(y,y+t));return new B.RemoveRowAction(C,v,l.getSettings().fixedRowsBottom, 4679l.getSettings().fixedRowsTop)},w)});l.addHook("afterCreateCol",function(m,t,u){r.done(function(){return new B.CreateColumnAction(m,t)},u)});l.addHook("beforeRemoveCol",function(m,t,u,w){r.done(function(){var v=r.instance.getSourceDataArray(),C=(r.instance.countCols()+m)%r.instance.countCols(),y=[],z=[],E=[];(0,k.rangeEach)(v.length-1,function(I){var K=[],J=v[I];(0,k.rangeEach)(C,C+(t-1),function(P){K.push(J[l.toPhysicalColumn(P)])});y.push(K)});(0,k.rangeEach)(t-1,function(I){E.push(l.toPhysicalColumn(C+ 4680I))});Array.isArray(l.getSettings().colHeaders)&&(0,k.rangeEach)(t-1,function(I){z.push(l.getSettings().colHeaders[l.toPhysicalColumn(C+I)]||null)});var H=l.columnIndexMapper.getIndexesSequence(),G=l.rowIndexMapper.getIndexesSequence();return new B.RemoveColumnAction(C,E,y,z,H,G,l.getSettings().fixedColumnsStart)},w)});l.addHook("beforeCellAlignment",function(m,t,u,w){r.done(function(){return new B.CellAlignmentAction(m,t,u,w)})});l.addHook("beforeFilter",function(m){r.done(function(){return new B.FiltersAction(m)})}); 4681l.addHook("beforeRowMove",function(m,t){!1!==m&&r.done(function(){return new B.RowMoveAction(m,t)})});l.addHook("beforeMergeCells",function(m,t){t||r.done(function(){return new B.MergeCellsAction(l,m)})});l.addHook("afterUnmergeCells",function(m,t){t||r.done(function(){return new B.UnmergeCellsAction(l,m)})});l.addHook("afterInit",function(){r.init()})}function D(l,r){if("loadData"===r)return this.undoRedo.clear()}a(7);g=a(1);b.__esModule=!0;b.default=b.PLUGIN_KEY=void 0;var A=g(a(5)),x=g(a(6)),q= 4682g(a(15)),p=g(a(16)),e=g(a(14)),c=g(a(43)),d=g(a(34));a(146);a(0);a(105);a(13);a(55);a(75);a(33);a(39);a(18);g=g(a(71));var h=a(20),k=a(47),f=a(17),n=a(111);b.PLUGIN_KEY="undoRedo";B.prototype.done=function(l,r){if(!this.ignoreNewActions&&"UndoRedo.undo"!==r&&"UndoRedo.redo"!==r&&"auto"!==r){var m=this.doneActions.slice();!1!==this.instance.runHooks("beforeUndoStackChange",m,r)&&(l=l(),r=this.undoneActions.slice(),this.doneActions.push(l),this.instance.runHooks("afterUndoStackChange",m,this.doneActions.slice()), 4683this.instance.runHooks("beforeRedoStackChange",r),this.undoneActions.length=0,this.instance.runHooks("afterRedoStackChange",r,this.undoneActions.slice()))}};B.prototype.undo=function(){if(this.isUndoAvailable()){var l=this.doneActions.slice();this.instance.runHooks("beforeUndoStackChange",l);var r=this.doneActions.pop();this.instance.runHooks("afterUndoStackChange",l,this.doneActions.slice());l=(0,f.deepClone)(r);if(!1!==this.instance.runHooks("beforeUndo",l)){this.ignoreNewActions=!0;var m=this, 4684t=this.undoneActions.slice();this.instance.runHooks("beforeRedoStackChange",t);r.undo(this.instance,function(){m.ignoreNewActions=!1;m.undoneActions.push(r)});this.instance.runHooks("afterRedoStackChange",t,this.undoneActions.slice());this.instance.runHooks("afterUndo",l)}}};B.prototype.redo=function(){if(this.isRedoAvailable()){var l=this.undoneActions.slice();this.instance.runHooks("beforeRedoStackChange",l);var r=this.undoneActions.pop();this.instance.runHooks("afterRedoStackChange",l,this.undoneActions.slice()); 4685l=(0,f.deepClone)(r);if(!1!==this.instance.runHooks("beforeRedo",l)){this.ignoreNewActions=!0;var m=this,t=this.doneActions.slice();this.instance.runHooks("beforeUndoStackChange",t);r.redo(this.instance,function(){m.ignoreNewActions=!1;m.doneActions.push(r)});this.instance.runHooks("afterUndoStackChange",t,this.doneActions.slice());this.instance.runHooks("afterRedo",l)}}};B.prototype.isUndoAvailable=function(){return 0<this.doneActions.length};B.prototype.isRedoAvailable=function(){return 0<this.undoneActions.length}; 4686B.prototype.clear=function(){this.doneActions.length=0;this.undoneActions.length=0};B.prototype.isEnabled=function(){return this.enabled};B.prototype.enable=function(){if(!this.isEnabled()){var l=this.instance;this.enabled=!0;l.undo=function(){return l.undoRedo.undo()};l.redo=function(){return l.undoRedo.redo()};l.isUndoAvailable=function(){return l.undoRedo.isUndoAvailable()};l.isRedoAvailable=function(){return l.undoRedo.isRedoAvailable()};l.clearUndo=function(){return l.undoRedo.clear()};this.registerShortcuts(); 4687l.addHook("afterChange",D)}};B.prototype.disable=function(){if(this.isEnabled()){var l=this.instance;this.enabled=!1;delete l.undo;delete l.redo;delete l.isUndoAvailable;delete l.isRedoAvailable;delete l.clearUndo;this.unregisterShortcuts();l.removeHook("afterChange",D)}};B.prototype.destroy=function(){this.clear();this.undoneActions=this.doneActions=this.instance=null};B.Action=function(){};B.Action.prototype.undo=function(){};B.Action.prototype.redo=function(){};B.ChangeAction=function(l,r){this.changes= 4688l;this.selected=r;this.actionType="change"};(0,f.inherit)(B.ChangeAction,B.Action);B.ChangeAction.prototype.undo=function(l,r){for(var m=(0,f.deepClone)(this.changes),t=l.countEmptyRows(!0),u=l.countEmptyCols(!0),w=0,v=m.length;w<v;w++)m[w].splice(3,1);l.addHookOnce("afterChange",r);l.setDataAtCell(m,null,null,"UndoRedo.undo");r=0;for(w=m.length;r<w;r++){var C=(0,d.default)(m[r],2);v=C[0];C=C[1];l.getSettings().minSpareRows&&v+1+l.getSettings().minSpareRows===l.countRows()&&t===l.getSettings().minSpareRows&& 4689(l.alter("remove_row",parseInt(v+1,10),l.getSettings().minSpareRows),l.undoRedo.doneActions.pop());l.getSettings().minSpareCols&&C+1+l.getSettings().minSpareCols===l.countCols()&&u===l.getSettings().minSpareCols&&(l.alter("remove_col",parseInt(C+1,10),l.getSettings().minSpareCols),l.undoRedo.doneActions.pop())}l.selectCells(this.selected,!1,!1)};B.ChangeAction.prototype.redo=function(l,r){for(var m=(0,f.deepClone)(this.changes),t=0,u=m.length;t<u;t++)m[t].splice(2,1);l.addHookOnce("afterChange",r); 4690l.setDataAtCell(m,null,null,"UndoRedo.redo");this.selected&&l.selectCells(this.selected,!1,!1)};B.CreateRowAction=function(l,r){this.index=l;this.amount=r;this.actionType="insert_row"};(0,f.inherit)(B.CreateRowAction,B.Action);B.CreateRowAction.prototype.undo=function(l,r){var m=l.countRows(),t=l.getSettings().minSpareRows;this.index>=m&&this.index-t<m&&(this.index-=t);l.addHookOnce("afterRemoveRow",r);l.alter("remove_row",this.index,this.amount,"UndoRedo.undo")};B.CreateRowAction.prototype.redo= 4691function(l,r){l.addHookOnce("afterCreateRow",r);l.alter("insert_row",this.index,this.amount,"UndoRedo.redo")};B.RemoveRowAction=function(l,r,m,t){this.index=l;this.data=r;this.actionType="remove_row";this.fixedRowsBottom=m;this.fixedRowsTop=t};(0,f.inherit)(B.RemoveRowAction,B.Action);B.RemoveRowAction.prototype.undo=function(l,r){var m=l.getSettings();m.fixedRowsBottom=this.fixedRowsBottom;m.fixedRowsTop=this.fixedRowsTop;l.alter("insert_row",this.index,this.data.length,"UndoRedo.undo");l.addHookOnce("afterViewRender", 4692r);l.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")};B.RemoveRowAction.prototype.redo=function(l,r){l.addHookOnce("afterRemoveRow",r);l.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")};B.CreateColumnAction=function(l,r){this.index=l;this.amount=r;this.actionType="insert_col"};(0,f.inherit)(B.CreateColumnAction,B.Action);B.CreateColumnAction.prototype.undo=function(l,r){l.addHookOnce("afterRemoveCol",r);l.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}; 4693B.CreateColumnAction.prototype.redo=function(l,r){l.addHookOnce("afterCreateCol",r);l.alter("insert_col",this.index,this.amount,"UndoRedo.redo")};B.RemoveColumnAction=function(l,r,m,t,u,w,v){this.index=l;this.indexes=r;this.data=m;this.amount=this.data[0].length;this.headers=t;this.columnPositions=u.slice(0);this.rowPositions=w.slice(0);this.actionType="remove_col";this.fixedColumnsStart=v};(0,f.inherit)(B.RemoveColumnAction,B.Action);B.RemoveColumnAction.prototype.undo=function(l,r){var m=this;l.getSettings().fixedColumnsStart= 4694this.fixedColumnsStart;for(var t=this.indexes.slice(0).sort(),u=function(z,E,H){return H[m.indexes.indexOf(t[E])]},w=this.data.length,v=[],C=0;C<w;
4694C++)v.push((0,h.arrayMap)(this.data[C],u));u=(0,h.arrayMap)(this.headers,u);var y=[];l.alter("insert_col",this.indexes[0],this.indexes.length,"UndoRedo.undo");(0,h.arrayEach)(l.getSourceDataArray(),function(z,E){(0,h.arrayEach)(t,function(H,G){z[H]=v[E][G];y.push([E,H,z[H]])})});l.setSourceDataAtCell(y,void 0,void 0,"UndoRedo.undo");l.columnIndexMapper.insertIndexes(t[0], 4695t.length);void 0!==this.headers&&(0,h.arrayEach)(u,function(z,E){l.getSettings().colHeaders[t[E]]=z});l.batchExecution(function(){l.rowIndexMapper.setIndexesSequence(m.rowPositions);l.columnIndexMapper.setIndexesSequence(m.columnPositions)},!0);l.addHookOnce("afterViewRender",r);l.render()};B.RemoveColumnAction.prototype.redo=function(l,r){l.addHookOnce("afterRemoveCol",r);l.alter("remove_col",this.index,this.amount,"UndoRedo.redo")};B.CellAlignmentAction=function(l,r,m,t){this.stateBefore=l;this.range= 4696r;this.type=m;this.alignment=t};B.CellAlignmentAction.prototype.undo=function(l,r){var m=this;(0,h.arrayEach)(this.range,function(t){t.forAll(function(u,w){0<=u&&0<=w&&l.setCellMeta(u,w,"className",m.stateBefore[u][w]||" htLeft")})});l.addHookOnce("afterViewRender",r);l.render()};B.CellAlignmentAction.prototype.redo=function(l,r){(0,n.align)(this.range,this.type,this.alignment,function(m,t){return l.getCellMeta(m,t)},function(m,t,u,w){return l.setCellMeta(m,t,u,w)});l.addHookOnce("afterViewRender", 4697r);l.render()};B.FiltersAction=function(l){this.conditionsStack=l;this.actionType="filter"};(0,f.inherit)(B.FiltersAction,B.Action);B.FiltersAction.prototype.undo=function(l,r){var m=l.getPlugin("filters");l.addHookOnce("afterViewRender",r);m.conditionCollection.importAllConditions(this.conditionsStack.slice(0,this.conditionsStack.length-1));m.filter()};B.FiltersAction.prototype.redo=function(l,r){var m=l.getPlugin("filters");l.addHookOnce("afterViewRender",r);m.conditionCollection.importAllConditions(this.conditionsStack); 4698m.filter()};a=function(l){function r(t,u){var w;(0,A.default)(this,r);(w=m.call(this)).cellRange=u;u=w.cellRange.getTopStartCorner();var v=w.cellRange.getBottomEndCorner();return w.rangeData=t.getData(u.row,u.col,v.row,v.col),w}(0,q.default)(r,l);var m=F(r);return(0,x.default)(r,[{key:"undo",value:function(t,u){var w=t.getPlugin("mergeCells");t.addHookOnce("afterViewRender",u);w.unmergeRange(this.cellRange,!0);u=this.cellRange.getTopStartCorner();t.populateFromArray(u.row,u.col,this.rangeData,void 0, 4699void 0,"MergeCells")}},{key:"redo",value:function(t,u){var w=t.getPlugin("mergeCells");t.addHookOnce("afterViewRender",u);w.mergeRange(this.cellRange)}}]),r}(B.Action);B.MergeCellsAction=a;a=function(l){function r(t,u){var w;return(0,A.default)(this,r),(w=m.call(this)).cellRange=u,w}(0,q.default)(r,l);var m=F(r);return(0,x.default)(r,[{key:"undo",value:function(t,u){var w=t.getPlugin("mergeCells");t.addHookOnce("afterViewRender",u);w.mergeRange(this.cellRange,!0)}},{key:"redo",value:function(t,u){var w= 4700t.getPlugin("mergeCells");t.addHookOnce("afterViewRender",u);w.unmergeRange(this.cellRange,!0);t.render()}}]),r}(B.Action);B.UnmergeCellsAction=a;B.RowMoveAction=function(l,r){this.rows=l.slice();this.finalIndex=r;this.actionType="row_move"};(0,f.inherit)(B.RowMoveAction,B.Action);B.RowMoveAction.prototype.undo=function(l,r){var m=this,t=l.getPlugin("manualRowMove"),u=[].concat(this.rows),w=u.filter(function(v){return v>m.finalIndex});u=u.filter(function(v){return v<=m.finalIndex});w=w.sort(function(v, 4701C){return C-v}).concat(u.sort(function(v,C){return v-C}));l.addHookOnce("afterViewRender",r);for(r=0;r<w.length;r+=1)u=l.toVisualRow(w[r]),t.moveRow(u,w[r]);l.render();l.deselectCell();l.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)};B.RowMoveAction.prototype.redo=function(l,r){var m=l.getPlugin("manualRowMove");l.addHookOnce("afterViewRender",r);m.moveRows(this.rows.slice(),this.finalIndex);l.render();l.deselectCell();l.selectRows(this.finalIndex,this.finalIndex+this.rows.length-1)};B.prototype.init= 4702function(){var l=this.instance.getSettings().undo;this.instance.undoRedo||(this.instance.undoRedo=this);void 0===l||l?this.instance.undoRedo.enable():this.instance.undoRedo.disable()};B.prototype.registerShortcuts=function(){var l=this;this.instance.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Control/Meta","z"]],callback:function(){l.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:function(){l.redo()}}],{runOnlyIf:function(r){return!r.altKey},group:"undoRedo"})}; 4703B.prototype.unregisterShortcuts=function(){this.instance.getShortcutManager().getContext("grid").removeShortcutsByGroup("undoRedo")};a=g.default.getSingleton();a.add("afterUpdateSettings",function(){var l;
4703null===(l=this.getPlugin("undoRedo"))||void 0===l||l.init()});a.register("beforeUndo");a.register("afterUndo");a.register("beforeRedo");a.register("afterRedo");B.PLUGIN_KEY="undoRedo";B.SETTING_KEYS=!0;b.default=B},function(g,b,a){b.__esModule=!0;b.default=function(F){var B="undefined"!=typeof window&& 4704window.jQuery;B&&(B.fn.handsontable=function(D){var A=this.first(),x=A.data("handsontable");if("string"!=typeof D){var q=D||{};return x?x.updateSettings(q):(x=new F.Core(A[0],q),A.data("handsontable",x),x.init()),A}if(x){if(void 0===x[D])throw Error("Handsontable do not provide action: ".concat(D));var p=arguments.length;for(var e=Array(1<p?p-1:0),c=1;c<p;c++)e[c-1]=arguments[c];p=(q=x[D]).call.apply(q,[x].concat(e));"destroy"===D&&A.removeData()}return p})};a(18)}]).default});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.