@revolist/revogrid 3.7.3 → 3.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};
2
2
  /*!
3
3
  * Built by Revolist
4
- */System.register(["./index-f14b41a0.system.js","./debounce-8d28735f.system.js"],(function(e,t){"use strict";var r,n,i,o,a,s,u,l,c,f,v,d,h,p,g,m,C,w,y,b,L;return{setters:[function(e){r=e.g;n=e.f;i=e.h;o=e.r;a=e.c;s=e.H;u=e.e},function(e){l=e.i;c=e._;f=e.c;v=e.a;d=e.b;h=e.d;p=e.e;g=e.f;m=e.t;C=e.g;w=e.F;y=e.h;b=e.j;L=e.k}],execute:function(){var x=function(){function e(){this.defaultRowSize=32}return e}();var _=function(){function e(){this.defaultRowSize=27}return e}();var S=function(){function e(){this.defaultRowSize=42}return e}();var E="default";var k=[E,"material","compact","darkMaterial","darkCompact"];var z=function(){function e(e){this.customRowSize=0;this.customRowSize=e.rowSize;this.register("default")}Object.defineProperty(e.prototype,"theme",{get:function(){return this.currentTheme},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"rowSize",{get:function(){return this.customRowSize||this.currentTheme.defaultRowSize},set:function(e){this.customRowSize=e},enumerable:false,configurable:true});e.prototype.register=function(t){var r=e.getTheme(t);switch(r){case"material":case"darkMaterial":this.currentTheme=new S;break;case"compact":case"darkCompact":this.currentTheme=new x;break;default:this.currentTheme=new _;break}};e.getTheme=function(e){if(k.indexOf(e)>-1){return e}return E};return e}();function R(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}var O=R;function F(e){return function(t,r,n){var i=-1,o=Object(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}var j=F;var P=j();var D=P;function A(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}var I=A;var T="[object Arguments]";function M(e){return l(e)&&c(e)==T}var B=M;var H=Object.prototype;var W=H.hasOwnProperty;var U=H.propertyIsEnumerable;var N=B(function(){return arguments}())?B:function(e){return l(e)&&W.call(e,"callee")&&!U.call(e,"callee")};var V=N;var Z=Array.isArray;var G=Z;function $(){return false}var X=$;var Y=f((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i?v.Buffer:undefined;var a=o?o.isBuffer:undefined;var s=a||X;e.exports=s}));var q=9007199254740991;var K=/^(?:0|[1-9]\d*)$/;function J(e,t){var r=typeof e;t=t==null?q:t;return!!t&&(r=="number"||r!="symbol"&&K.test(e))&&(e>-1&&e%1==0&&e<t)}var Q=J;var ee=9007199254740991;function te(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ee}var re=te;var ne="[object Arguments]",ie="[object Array]",oe="[object Boolean]",ae="[object Date]",se="[object Error]",ue="[object Function]",le="[object Map]",ce="[object Number]",fe="[object Object]",ve="[object RegExp]",de="[object Set]",he="[object String]",pe="[object WeakMap]";var ge="[object ArrayBuffer]",me="[object DataView]",Ce="[object Float32Array]",we="[object Float64Array]",ye="[object Int8Array]",be="[object Int16Array]",Le="[object Int32Array]",xe="[object Uint8Array]",_e="[object Uint8ClampedArray]",Se="[object Uint16Array]",Ee="[object Uint32Array]";var ke={};ke[Ce]=ke[we]=ke[ye]=ke[be]=ke[Le]=ke[xe]=ke[_e]=ke[Se]=ke[Ee]=true;ke[ne]=ke[ie]=ke[ge]=ke[oe]=ke[me]=ke[ae]=ke[se]=ke[ue]=ke[le]=ke[ce]=ke[fe]=ke[ve]=ke[de]=ke[he]=ke[pe]=false;function ze(e){return l(e)&&re(e.length)&&!!ke[c(e)]}var Re=ze;function Oe(e){return function(t){return e(t)}}var Fe=Oe;var je=f((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i&&d.process;var a=function(){try{var e=n&&n.require&&n.require("util").types;if(e){return e}return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}));var Pe=je&&je.isTypedArray;var De=Pe?Fe(Pe):Re;var Ae=De;var Ie=Object.prototype;var Te=Ie.hasOwnProperty;function Me(e,t){var r=G(e),n=!r&&V(e),i=!r&&!n&&Y(e),o=!r&&!n&&!i&&Ae(e),a=r||n||i||o,s=a?I(e.length,String):[],u=s.length;for(var l in e){if((t||Te.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Q(l,u)))){s.push(l)}}return s}var Be=Me;var He=Object.prototype;function We(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||He;return e===r}var Ue=We;function Ne(e,t){return function(r){return e(t(r))}}var Ve=Ne;var Ze=Ve(Object.keys,Object);var Ge=Ze;var $e=Object.prototype;var Xe=$e.hasOwnProperty;function Ye(e){if(!Ue(e)){return Ge(e)}var t=[];for(var r in Object(e)){if(Xe.call(e,r)&&r!="constructor"){t.push(r)}}return t}var qe=Ye;var Ke="[object AsyncFunction]",Je="[object Function]",Qe="[object GeneratorFunction]",et="[object Proxy]";function tt(e){if(!h(e)){return false}var t=c(e);return t==Je||t==Qe||t==Ke||t==et}var rt=tt;function nt(e){return e!=null&&re(e.length)&&!rt(e)}var it=nt;function ot(e){return it(e)?Be(e):qe(e)}var at=ot;function st(e,t){return e&&D(e,t,at)}var ut=st;function lt(e,t){return function(r,n){if(r==null){return r}if(!it(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=Object(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}var ct=lt;var ft=ct(ut);var vt=ft;function dt(){this.__data__=[];this.size=0}var ht=dt;function pt(e,t){return e===t||e!==e&&t!==t}var gt=pt;function mt(e,t){var r=e.length;while(r--){if(gt(e[r][0],t)){return r}}return-1}var Ct=mt;var wt=Array.prototype;var yt=wt.splice;function bt(e){var t=this.__data__,r=Ct(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{yt.call(t,r,1)}--this.size;return true}var Lt=bt;function xt(e){var t=this.__data__,r=Ct(t,e);return r<0?undefined:t[r][1]}var _t=xt;function St(e){return Ct(this.__data__,e)>-1}var Et=St;function kt(e,t){var r=this.__data__,n=Ct(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}var zt=kt;function Rt(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Rt.prototype.clear=ht;Rt.prototype["delete"]=Lt;Rt.prototype.get=_t;Rt.prototype.has=Et;Rt.prototype.set=zt;var Ot=Rt;function Ft(){this.__data__=new Ot;this.size=0}var jt=Ft;function Pt(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}var Dt=Pt;function At(e){return this.__data__.get(e)}var It=At;function Tt(e){return this.__data__.has(e)}var Mt=Tt;var Bt=v["__core-js_shared__"];var Ht=Bt;var Wt=function(){var e=/[^.]+$/.exec(Ht&&Ht.keys&&Ht.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ut(e){return!!Wt&&Wt in e}var Nt=Ut;var Vt=Function.prototype;var Zt=Vt.toString;function Gt(e){if(e!=null){try{return Zt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $t=Gt;var Xt=/[\\^$.*+?()[\]{}|]/g;var Yt=/^\[object .+?Constructor\]$/;var qt=Function.prototype,Kt=Object.prototype;var Jt=qt.toString;var Qt=Kt.hasOwnProperty;var er=RegExp("^"+Jt.call(Qt).replace(Xt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tr(e){if(!h(e)||Nt(e)){return false}var t=rt(e)?er:Yt;return t.test($t(e))}var rr=tr;function nr(e,t){return e==null?undefined:e[t]}var ir=nr;function or(e,t){var r=ir(e,t);return rr(r)?r:undefined}var ar=or;var sr=ar(v,"Map");var ur=sr;var lr=ar(Object,"create");var cr=lr;function fr(){this.__data__=cr?cr(null):{};this.size=0}var vr=fr;function dr(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}var hr=dr;var pr="__lodash_hash_undefined__";var gr=Object.prototype;var mr=gr.hasOwnProperty;function Cr(e){var t=this.__data__;if(cr){var r=t[e];return r===pr?undefined:r}return mr.call(t,e)?t[e]:undefined}var wr=Cr;var yr=Object.prototype;var br=yr.hasOwnProperty;function Lr(e){var t=this.__data__;return cr?t[e]!==undefined:br.call(t,e)}var xr=Lr;var _r="__lodash_hash_undefined__";function Sr(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=cr&&t===undefined?_r:t;return this}var Er=Sr;function kr(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}kr.prototype.clear=vr;kr.prototype["delete"]=hr;kr.prototype.get=wr;kr.prototype.has=xr;kr.prototype.set=Er;var zr=kr;function Rr(){this.size=0;this.__data__={hash:new zr,map:new(ur||Ot),string:new zr}}var Or=Rr;function Fr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var jr=Fr;function Pr(e,t){var r=e.__data__;return jr(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Dr=Pr;function Ar(e){var t=Dr(this,e)["delete"](e);this.size-=t?1:0;return t}var Ir=Ar;function Tr(e){return Dr(this,e).get(e)}var Mr=Tr;function Br(e){return Dr(this,e).has(e)}var Hr=Br;function Wr(e,t){var r=Dr(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}var Ur=Wr;function Nr(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Nr.prototype.clear=Or;Nr.prototype["delete"]=Ir;Nr.prototype.get=Mr;Nr.prototype.has=Hr;Nr.prototype.set=Ur;var Vr=Nr;var Zr=200;function Gr(e,t){var r=this.__data__;if(r instanceof Ot){var n=r.__data__;if(!ur||n.length<Zr-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new Vr(n)}r.set(e,t);this.size=r.size;return this}var $r=Gr;function Xr(e){var t=this.__data__=new Ot(e);this.size=t.size}Xr.prototype.clear=jt;Xr.prototype["delete"]=Dt;Xr.prototype.get=It;Xr.prototype.has=Mt;Xr.prototype.set=$r;var Yr=Xr;var qr="__lodash_hash_undefined__";function Kr(e){this.__data__.set(e,qr);return this}var Jr=Kr;function Qr(e){return this.__data__.has(e)}var en=Qr;function tn(e){var t=-1,r=e==null?0:e.length;this.__data__=new Vr;while(++t<r){this.add(e[t])}}tn.prototype.add=tn.prototype.push=Jr;tn.prototype.has=en;var rn=tn;function nn(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var on=nn;function an(e,t){return e.has(t)}var sn=an;var un=1,ln=2;function cn(e,t,r,n,i,o){var a=r&un,s=e.length,u=t.length;if(s!=u&&!(a&&u>s)){return false}var l=o.get(e);var c=o.get(t);if(l&&c){return l==t&&c==e}var f=-1,v=true,d=r&ln?new rn:undefined;o.set(e,t);o.set(t,e);while(++f<s){var h=e[f],p=t[f];if(n){var g=a?n(p,h,f,t,e,o):n(h,p,f,e,t,o)}if(g!==undefined){if(g){continue}v=false;break}if(d){if(!on(t,(function(e,t){if(!sn(d,t)&&(h===e||i(h,e,r,n,o))){return d.push(t)}}))){v=false;break}}else if(!(h===p||i(h,p,r,n,o))){v=false;break}}o["delete"](e);o["delete"](t);return v}var fn=cn;var vn=v.Uint8Array;var dn=vn;function hn(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}var pn=hn;function gn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var mn=gn;var Cn=1,wn=2;var yn="[object Boolean]",bn="[object Date]",Ln="[object Error]",xn="[object Map]",_n="[object Number]",Sn="[object RegExp]",En="[object Set]",kn="[object String]",zn="[object Symbol]";var Rn="[object ArrayBuffer]",On="[object DataView]";var Fn=p?p.prototype:undefined,jn=Fn?Fn.valueOf:undefined;function Pn(e,t,r,n,i,o,a){switch(r){case On:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case Rn:if(e.byteLength!=t.byteLength||!o(new dn(e),new dn(t))){return false}return true;case yn:case bn:case _n:return gt(+e,+t);case Ln:return e.name==t.name&&e.message==t.message;case Sn:case kn:return e==t+"";case xn:var s=pn;case En:var u=n&Cn;s||(s=mn);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=wn;a.set(e,t);var c=fn(s(e),s(t),n,i,o,a);a["delete"](e);return c;case zn:if(jn){return jn.call(e)==jn.call(t)}}return false}var Dn=Pn;function An(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}var In=An;function Tn(e,t,r){var n=t(e);return G(e)?n:In(n,r(e))}var Mn=Tn;function Bn(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}var Hn=Bn;function Wn(){return[]}var Un=Wn;var Nn=Object.prototype;var Vn=Nn.propertyIsEnumerable;var Zn=Object.getOwnPropertySymbols;var Gn=!Zn?Un:function(e){if(e==null){return[]}e=Object(e);return Hn(Zn(e),(function(t){return Vn.call(e,t)}))};var $n=Gn;function Xn(e){return Mn(e,at,$n)}var Yn=Xn;var qn=1;var Kn=Object.prototype;var Jn=Kn.hasOwnProperty;function Qn(e,t,r,n,i,o){var a=r&qn,s=Yn(e),u=s.length,l=Yn(t),c=l.length;if(u!=c&&!a){return false}var f=u;while(f--){var v=s[f];if(!(a?v in t:Jn.call(t,v))){return false}}var d=o.get(e);var h=o.get(t);if(d&&h){return d==t&&h==e}var p=true;o.set(e,t);o.set(t,e);var g=a;while(++f<u){v=s[f];var m=e[v],C=t[v];if(n){var w=a?n(C,m,v,t,e,o):n(m,C,v,e,t,o)}if(!(w===undefined?m===C||i(m,C,r,n,o):w)){p=false;break}g||(g=v=="constructor")}if(p&&!g){var y=e.constructor,b=t.constructor;if(y!=b&&("constructor"in e&&"constructor"in t)&&!(typeof y=="function"&&y instanceof y&&typeof b=="function"&&b instanceof b)){p=false}}o["delete"](e);o["delete"](t);return p}var ei=Qn;var ti=ar(v,"DataView");var ri=ti;var ni=ar(v,"Promise");var ii=ni;var oi=ar(v,"Set");var ai=oi;var si=ar(v,"WeakMap");var ui=si;var li="[object Map]",ci="[object Object]",fi="[object Promise]",vi="[object Set]",di="[object WeakMap]";var hi="[object DataView]";var pi=$t(ri),gi=$t(ur),mi=$t(ii),Ci=$t(ai),wi=$t(ui);var yi=c;if(ri&&yi(new ri(new ArrayBuffer(1)))!=hi||ur&&yi(new ur)!=li||ii&&yi(ii.resolve())!=fi||ai&&yi(new ai)!=vi||ui&&yi(new ui)!=di){yi=function(e){var t=c(e),r=t==ci?e.constructor:undefined,n=r?$t(r):"";if(n){switch(n){case pi:return hi;case gi:return li;case mi:return fi;case Ci:return vi;case wi:return di}}return t}}var bi=yi;var Li=1;var xi="[object Arguments]",_i="[object Array]",Si="[object Object]";var Ei=Object.prototype;var ki=Ei.hasOwnProperty;function zi(e,t,r,n,i,o){var a=G(e),s=G(t),u=a?_i:bi(e),l=s?_i:bi(t);u=u==xi?Si:u;l=l==xi?Si:l;var c=u==Si,f=l==Si,v=u==l;if(v&&Y(e)){if(!Y(t)){return false}a=true;c=false}if(v&&!c){o||(o=new Yr);return a||Ae(e)?fn(e,t,r,n,i,o):Dn(e,t,u,r,n,i,o)}if(!(r&Li)){var d=c&&ki.call(e,"__wrapped__"),h=f&&ki.call(t,"__wrapped__");if(d||h){var p=d?e.value():e,g=h?t.value():t;o||(o=new Yr);return i(p,g,r,n,o)}}if(!v){return false}o||(o=new Yr);return ei(e,t,r,n,i,o)}var Ri=zi;function Oi(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!l(e)&&!l(t)){return e!==e&&t!==t}return Ri(e,t,r,n,Oi,i)}var Fi=Oi;var ji=1,Pi=2;function Di(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null){return!o}e=Object(e);while(i--){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e)){return false}}while(++i<o){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===undefined&&!(u in e)){return false}}else{var f=new Yr;if(n){var v=n(l,c,u,e,t,f)}if(!(v===undefined?Fi(c,l,ji|Pi,n,f):v)){return false}}}return true}var Ai=Di;function Ii(e){return e===e&&!h(e)}var Ti=Ii;function Mi(e){var t=at(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,Ti(i)]}return t}var Bi=Mi;function Hi(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}var Wi=Hi;function Ui(e){var t=Bi(e);if(t.length==1&&t[0][2]){return Wi(t[0][0],t[0][1])}return function(r){return r===e||Ai(r,e,t)}}var Ni=Ui;var Vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zi=/^\w*$/;function Gi(e,t){if(G(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||g(e)){return true}return Zi.test(e)||!Vi.test(e)||t!=null&&e in Object(t)}var $i=Gi;var Xi="Expected a function";function Yi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(Xi)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Yi.Cache||Vr);return r}Yi.Cache=Vr;var qi=Yi;var Ki=500;function Ji(e){var t=qi(e,(function(e){if(r.size===Ki){r.clear()}return e}));var r=t.cache;return t}var Qi=Ji;var eo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var to=/\\(\\)?/g;var ro=Qi((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(eo,(function(e,r,n,i){t.push(n?i.replace(to,"$1"):r||e)}));return t}));var no=ro;function io(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}var oo=io;var ao=1/0;var so=p?p.prototype:undefined,uo=so?so.toString:undefined;function lo(e){if(typeof e=="string"){return e}if(G(e)){return oo(e,lo)+""}if(g(e)){return uo?uo.call(e):""}var t=e+"";return t=="0"&&1/e==-ao?"-0":t}var co=lo;function fo(e){return e==null?"":co(e)}var vo=fo;function ho(e,t){if(G(e)){return e}return $i(e,t)?[e]:no(vo(e))}var po=ho;var go=1/0;function mo(e){if(typeof e=="string"||g(e)){return e}var t=e+"";return t=="0"&&1/e==-go?"-0":t}var Co=mo;function wo(e,t){t=po(t,e);var r=0,n=t.length;while(e!=null&&r<n){e=e[Co(t[r++])]}return r&&r==n?e:undefined}var yo=wo;function bo(e,t,r){var n=e==null?undefined:yo(e,t);return n===undefined?r:n}var Lo=bo;function xo(e,t){return e!=null&&t in Object(e)}var _o=xo;function So(e,t,r){t=po(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=Co(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&re(i)&&Q(a,i)&&(G(e)||V(e))}var Eo=So;function ko(e,t){return e!=null&&Eo(e,t,_o)}var zo=ko;var Ro=1,Oo=2;function Fo(e,t){if($i(e)&&Ti(t)){return Wi(Co(e),t)}return function(r){var n=Lo(r,e);return n===undefined&&n===t?zo(r,e):Fi(t,n,Ro|Oo)}}var jo=Fo;function Po(e){return e}var Do=Po;function Ao(e){return function(t){return t==null?undefined:t[e]}}var Io=Ao;function To(e){return function(t){return yo(t,e)}}var Mo=To;function Bo(e){return $i(e)?Io(Co(e)):Mo(e)}var Ho=Bo;function Wo(e){if(typeof e=="function"){return e}if(e==null){return Do}if(typeof e=="object"){return G(e)?jo(e[0],e[1]):Ni(e)}return Ho(e)}var Uo=Wo;function No(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}var Vo=No;function Zo(e,t,r){var n=G(e)?O:Vo,i=arguments.length<3;return n(e,Uo(t),r,i,vt)}var Go=Zo;function $o(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}var Xo=$o;function Yo(e){return typeof e=="function"?e:Do}var qo=Yo;function Ko(e,t){var r=G(e)?Xo:vt;return r(e,qo(t))}var Jo=Ko;var Qo=Jo;function ea(e){return function(t,r,n){var i=Object(t);if(!it(t)){var o=Uo(r);t=at(t);r=function(e){return o(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:undefined}}var ta=ea;function ra(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}var na=ra;var ia=1/0,oa=17976931348623157e292;function aa(e){if(!e){return e===0?e:0}e=m(e);if(e===ia||e===-ia){var t=e<0?-1:1;return t*oa}return e===e?e:0}var sa=aa;function ua(e){var t=sa(e),r=t%1;return t===t?r?t-r:t:0}var la=ua;var ca=Math.max;function fa(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:la(r);if(i<0){i=ca(n+i,0)}return na(e,Uo(t),i)}var va=fa;var da=ta(va);var ha=da;var pa=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var ga=function(e,t){var r;return function(){var n=[];for(var i=0;i<arguments.length;i++){n[i]=arguments[i]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var ma=function(e){return!("isConnected"in e)||e.isConnected};var Ca=ga((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(ma))}}),2e3);var wa=function(e){var t=e.on;var i=new Map;if(typeof r==="function"){t("dispose",(function(){i.clear()}));t("get",(function(e){var t=r();if(t){pa(i,e,t)}}));t("set",(function(e){var t=i.get(e);if(t){i.set(e,t.filter(n))}Ca(i)}));t("reset",(function(){i.forEach((function(e){return e.forEach(n)}));Ca(i)}))}};var ya=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var i=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var o=function(){n.dispose.forEach((function(e){return e()}));i()};var a=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var s=function(e,i){var o=r.get(e);if(t(i,o,e)){r.set(e,i);n.set.forEach((function(t){return t(e,i,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){s(t,r);return true}});var l=function(e,t){n[e].push(t);return function(){ba(n[e],t)}};var c=function(t,r){var n=l("set",(function(e,n){if(e===t){r(n)}}));var i=l("reset",(function(){return r(e[t])}));return function(){n();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){l("set",e.set)}if(e.get){l("get",e.get)}if(e.reset){l("reset",e.reset)}}))};return{state:u,get:a,set:s,on:l,onChange:c,use:f,dispose:o,reset:i}};var ba=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var La=function(e,t){var r=ya(e,t);wa(r);return r};var xa=Math.ceil,_a=Math.max;function Sa(e,t,r,n){var i=-1,o=_a(xa((t-e)/(r||1)),0),a=Array(o);while(o--){a[n?o:++i]=e;e+=r}return a}var Ea=Sa;function ka(e,t,r){if(!h(r)){return false}var n=typeof t;if(n=="number"?it(r)&&Q(t,r.length):n=="string"&&t in r){return gt(r[t],e)}return false}var za=ka;function Ra(e){return function(t,r,n){if(n&&typeof n!="number"&&za(t,r,n)){r=n=undefined}t=sa(t);if(r===undefined){r=t;t=0}else{r=sa(r)}n=n===undefined?t<r?1:-1:sa(n);return Ea(t,r,n,e)}}var Oa=Ra;var Fa=Oa();var ja=Fa;var Pa=function(e){return{set:function(t,r){switch(t){case"trimmed":var n=e.get("proxyItems");var i=Da(r);var o=n.reduce((function(e,t){if(!i[t]){e.push(t)}return e}),[]);e.set("items",o);break}}}};function Da(e){var t={};for(var r in e){for(var n in e[r]){t[n]=t[n]||e[r][n]}}return t}function Aa(e,t){for(var r in t){e.set(r,t[r])}}var Ia=function(e){return{set:function(t,r){if(!Ta(t)){return}var n=e.get("items").reduce((function(e,t){e[t]=true;return e}),{});var i=r.reduce((function(e,t){if(n[t]){e.push(t)}return e}),[]);e.set("items",i)}}};function Ta(e){return e==="proxyItems"}var Ma=function(){function e(e){var t=this.dataStore=La({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:e,trimmed:{}});t.use(Ia(t));t.use(Pa(t))}Object.defineProperty(e.prototype,"store",{get:function(){return this.dataStore},enumerable:false,configurable:true});e.prototype.updateData=function(e,t,r){if(r===void 0){r=false}if(!r){this.store.set("trimmed",{})}this.store.set("items",[]);var n=ja(0,(e===null||e===void 0?void 0:e.length)||0);Aa(this.store,{source:e,proxyItems:__spreadArray([],n,true)});this.store.set("items",n);if(t){Aa(this.store,{groupingDepth:t.depth,groups:t.groups,groupingCustomRenderer:t.customRenderer})}};e.prototype.addTrimmed=function(e){var t=this.store.get("trimmed");t=Object.assign(Object.assign({},t),e);Aa(this.store,{trimmed:t})};e.prototype.setData=function(e){var t=Object.assign({},e);Aa(this.store,t)};e.prototype.refresh=function(){var e=this.store.get("source");this.store.set("source",__spreadArray([],e,true))};return e}();function Ba(e,t){var r=e.get("items");return r[t]}function Ha(e){var t=e.get("source");return e.get("items").map((function(e){return t[e]}))}function Wa(e,t){var r=e.get("items");var n=e.get("source");return n[r[t]]}function Ua(e,t){var r=e.get("items");var n=e.get("source");for(var i in t){var o=r[i];n[o]=t[i]}e.set("source",__spreadArray([],n,true))}function Na(e,t){e.set("items",t)}function Va(e,t){var r=e.get("items");var n=e.get("source");var i=va(n,{prop:t});return r.indexOf(i)}var Za=["rowPinStart","rgRow","rowPinEnd"];var Ga=["colPinStart","rgCol","colPinEnd"];function $a(e){return Za.indexOf(e)>-1}function Xa(e,t){var r=-1,n=it(e)?Array(e.length):[];vt(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}var Ya=Xa;function qa(e,t){var r=G(e)?oo:Ya;return r(e,Uo(t))}var Ka=qa;var Ja=function(){function e(e){this.revogrid=e;this.subscriptions={}}e.prototype.addEventListener=function(e,t){this.revogrid.addEventListener(e,t);this.subscriptions[e]=t};e.prototype.removeEventListener=function(e){this.revogrid.removeEventListener(e,this.subscriptions[e]);delete this.subscriptions[e]};e.prototype.emit=function(e,t){var r=new CustomEvent(e,{detail:t,cancelable:true});this.revogrid.dispatchEvent(r);return r};e.prototype.clearSubscriptions=function(){for(var e in this.subscriptions){this.removeEventListener(e)}};e.prototype.destroy=function(){this.clearSubscriptions()};return e}();var Qa=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.gatherGroup=function(e,t,r,n){var i;if(n===void 0){n=0}var o=Object.assign(Object.assign({},t),{level:n,ids:[]});for(var a in r.columns){var s=a;var u=e.columns[s];var l=r.columns[s];if(G(u)&&G(l)){u.push.apply(u,l);if(l.length){e.columnGrouping[s].push(Object.assign(Object.assign({},o),{ids:Ka(l,"prop")}))}}}for(var a in r.columnGrouping){var s=a;var l=r.columnGrouping[s];(i=e.columnGrouping[s]).push.apply(i,l)}e.maxLevel=Math.max(e.maxLevel,r.maxLevel);e.sort=Object.assign(Object.assign({},e.sort),r.sort);return e};return t}(Ja);function es(e){return!!e.children}var ts=function(){function e(){this.sorting=null;this.dataSources=Go(Ga,(function(e,t){e[t]=new Ma(t);return e}),{})}Object.defineProperty(e.prototype,"order",{get:function(){return Go(this.sorting,(function(e,t,r){e[r]=t.order;return e}),{})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"stores",{get:function(){return this.dataSources},enumerable:false,configurable:true});e.prototype.column=function(e,t){return this.getColumn(e,t||"rgCol")};e.prototype.getColumn=function(e,t){return Wa(this.dataSources[t].store,e)};e.prototype.getRawColumns=function(){return Go(this.dataSources,(function(e,t,r){e[r]=t.store.get("source");return e}),{rgCol:[],colPinStart:[],colPinEnd:[]})};e.prototype.getColumns=function(e){var t=this;if(e===void 0){e="all"}if(e!=="all"){return this.dataSources[e].store.get("source")}return Ga.reduce((function(e,r){e.push.apply(e,t.dataSources[r].store.get("source"));return e}),[])};e.prototype.getColumnIndexByProp=function(e,t){return Va(this.dataSources[t].store,e)};e.prototype.getColumnByProp=function(e,t){var r=this.dataSources[t].store.get("source");return ha(r,{prop:e})};e.prototype.refreshByType=function(e){this.dataSources[e].refresh()};e.prototype.setColumns=function(e){var t=this;Qo(Ga,(function(r){t.dataSources[r].updateData(e.columns[r],{depth:e.maxLevel,groups:Go(e.columnGrouping[r],(function(e,t){if(!e[t.level]){e[t.level]=[]}e[t.level].push(t);return e}),{})})}));this.sorting=e.sort;return e};e.prototype.updateColumns=function(t){var r=this;var n=t.reduce((function(t,r){var n=e.getColumnType(r);if(!t[n]){t[n]={}}t[n][r.prop]=r;return t}),{});var i={};Qo(n,(function(e,t){var n=r.dataSources[t].store.get("source");i[t]=n.reduce((function(t,r,n){var i=e[r.prop];if(i){t[n]=i}return t}),{})}));Qo(i,(function(e,t){return Ua(r.dataSources[t].store,e)}))};e.prototype.updateColumn=function(t,r){var n;var i=e.getColumnType(t);Ua(this.dataSources[i].store,(n={},n[r]=t,n))};e.prototype.updateColumnSorting=function(e,t,r,n){if(!n){this.clearSorting()}e.order=r;this.sorting[e.prop]=e;this.updateColumn(e,t);return e};e.prototype.clearSorting=function(){var t=this;var r=Go(this.sorting,(function(t,r){var n=e.getColumnType(r);t[n]=true;return t}),{});Qo(r,(function(e,r){var n=t.dataSources[r].store.get("source");Qo(n,(function(e){return e.order=undefined}));t.dataSources[r].setData({source:__spreadArray([],n,true)})}));this.sorting={}};e.getSizes=function(e){return Go(e,(function(e,t,r){if(t.size){e[r]=t.size}return e}),{})};e.getColumnByProp=function(t,r){return ha(t,(function(t){if(es(t)){return e.getColumnByProp(t.children,r)}return t.prop===r}))};e.getColumns=function(t,r,n){if(r===void 0){r=0}return Go(t,(function(t,i){if(es(i)){return Qa.gatherGroup(t,i,e.getColumns(i.children,r+1,n),r)}var o=Object.assign(Object.assign({},i.columnType&&n&&n[i.columnType]),i);if(!o.pin){t.columns.rgCol.push(o)}else{t.columns[o.pin].push(o)}if(o.order){t.sort[o.prop]=o}o.beforeSetup&&o.beforeSetup(o);return t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})};e.getColumnType=function(e){if(e.pin){return e.pin}return"rgCol"};return e}();var rs=function(){function e(e){this.dimensionProvider=e;this.stores=Go(Za,(function(e,t){e[t]=new Ma(t);return e}),{})}e.prototype.setData=function(e,t,r,n){if(t===void 0){t="rgRow"}if(n===void 0){n=false}this.stores[t].updateData(__spreadArray([],e,true),r,n);this.dimensionProvider.setData(e,t,t!=="rgRow");return e};e.prototype.getModel=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t].store;return Wa(r,e)};e.prototype.setCellData=function(e){var t;var r=e.type,n=e.rowIndex,i=e.prop,o=e.val;var a=this.getModel(n,r);a[i]=o;Ua(this.stores[r].store,(t={},t[n]=a,t))};e.prototype.refresh=function(e){var t=this;if(e===void 0){e="all"}if($a(e)){this.refreshItems(e)}Za.forEach((function(e){return t.refreshItems(e)}))};e.prototype.refreshItems=function(e){if(e===void 0){e="rgRow"}var t=this.stores[e].store.get("items");this.stores[e].setData({items:__spreadArray([],t,true)})};e.prototype.setGrouping=function(e,t){var r=e.depth;if(t===void 0){t="rgRow"}this.stores[t].setData({groupingDepth:r})};e.prototype.setTrimmed=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t];r.addTrimmed(e);if(t==="rgRow"){this.dimensionProvider.setData(Ha(r.store),t)}};return e}();var ns=4294967295,is=ns-1;var os=Math.floor,as=Math.min;function ss(e,t,r,n){var i=0,o=e==null?0:e.length;if(o===0){return 0}t=r(t);var a=t!==t,s=t===null,u=g(t),l=t===undefined;while(i<o){var c=os((i+o)/2),f=r(e[c]),v=f!==undefined,d=f===null,h=f===f,p=g(f);if(a){var m=n||h}else if(l){m=h&&(n||v)}else if(s){m=h&&v&&(n||!d)}else if(u){m=h&&v&&!d&&(n||!p)}else if(d||p){m=false}else{m=n?f<=t:f<t}if(m){i=c+1}else{o=c}}return as(o,is)}var us=ss;var ls=4294967295,cs=ls>>>1;function fs(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=cs){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!g(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return us(e,t,Do,r)}var vs=fs;function ds(e,t){return vs(e,t)}var hs=ds;function ps(e,t){return e<t}function gs(e,t,r){if(r===void 0){r=ps}var n=[];var i=0;var o=0;var a=0;while(a<e.length+t.length){var s=i>=e.length;var u=o>=t.length;if(!s&&(u||r(e[i],t[o]))){n[a]=e[i];i++}else{n[a]=t[o];o++}a++}return n}function ms(e){var t=e.createElement("div");var r=t.style;r.visibility="hidden";r.overflow="scroll";r.msOverflowStyle="scrollbar";e.body.appendChild(t);var n=e.createElement("div");t.appendChild(n);var i=t.offsetWidth-n.offsetWidth;t.parentNode.removeChild(t);return i}function Cs(e,t,r){return(r[1]-r[0])*(e-t[0])/(t[1]-t[0])+r[0]}function ws(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){setTimeout((function(){return t()}),e)}))];case 1:t.sent();return[2]}}))}))}function ys(e,t){var r=[];var n={};var i={};var o=0;var a=Object.assign(Object.assign({},e.sizes),t);var s=[];Qo(t,(function(t,r){if(!e.sizes[r]){o+=t-(e.realSize?e.originItemSize:0);s.splice(hs(s,parseInt(r,10)),0,parseInt(r,10))}else{o+=t-e.sizes[r]}}));var u=gs(e.indexes,s);Go(u,(function(t,o,s){var u={itemIndex:o,start:0,end:0};if(t){u.start=(o-t.itemIndex-1)*e.originItemSize+t.end}else{u.start=o*e.originItemSize}u.end=u.start+a[o];r.push(u.start);i[o]=n[s]=u;return u}),undefined);return{indexes:u,positionIndexes:__spreadArray([],r,true),positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:e.realSize+o,sizes:a}}function bs(e,t){var r=e.indexes,n=e.positionIndexes,i=e.originItemSize,o=e.positionIndexToItem;var a={itemIndex:0,start:0,end:0};var s=r.length?hs(n,t):0;if(!s){a.itemIndex=Math.floor(t/i);a.start=a.itemIndex*i;a.end=a.start+i;return a}var u=o[s-1];if(u.end>t){return u}var l=t-u.end;var c=Math.floor(l/i);a.itemIndex=u.itemIndex+1+c;a.start=u.end+c*i;a.end=a.start+i;return a}function Ls(e,t){var r={itemIndex:t,start:0,end:0};if(e.indexToItem[t]){return e.indexToItem[t]}var n=e.indexes.length?hs(e.indexes,t):0;if(!n){r.start=r.itemIndex*e.originItemSize;r.end=r.start+e.originItemSize;return r}var i=e.indexToItem[e.indexes[n-1]];r.start=i.end+(t-i.itemIndex-1)*e.originItemSize;r.end=r.start+e.originItemSize;return r}function xs(){return{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}}function _s(){return Object.assign(Object.assign({},xs()),{realSize:0,originItemSize:0,frameOffset:0})}var Ss=function(){function e(){this.store=La(_s())}e.prototype.getCurrentState=function(){var e=this;var t=_s();var r=Object.keys(t);return Go(r,(function(t,r){var n=e.store.get(r);t[r]=n;return t}),t)};e.prototype.setRealSize=function(e){var t=0;for(var r=0;r<e;r++){t+=this.store.get("sizes")[r]||this.store.get("originItemSize")}Aa(this.store,{realSize:t})};e.prototype.setStore=function(e){Aa(this.store,e)};e.prototype.drop=function(){Aa(this.store,xs())};e.prototype.setDimensionSize=function(e){var t=ys(this.getCurrentState(),e);Aa(this.store,t);return t};return e}();var Es=function(){function e(e){this.viewports=e;this.stores=Go(__spreadArray(__spreadArray([],Za,true),Ga,true),(function(e,t){e[t]=new Ss;return e}),{})}e.prototype.setDimensionSize=function(e,t){this.stores[e].setDimensionSize(t);this.viewports.stores[e].setViewPortDimension(t)};e.prototype.setRealSize=function(e,t){this.viewports.stores[t].setViewport({realCount:e});this.stores[t].setRealSize(e)};e.prototype.setCustomSizes=function(e,t,r){if(r===void 0){r=false}var n=t;if(r){var i=this.stores[e].store.get("sizes");n=Object.assign(Object.assign({},i),t)}this.stores[e].setDimensionSize(n);this.viewports.stores[e].setViewPortDimension(n,!r?this.stores[e].store.get("originItemSize"):undefined)};e.prototype.setData=function(e,t,r){if(r===void 0){r=false}this.setRealSize(e.length,t);if(r){this.setNoVirtual(t)}this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})};e.prototype.setNoVirtual=function(e){var t=this.stores[e].getCurrentState();this.viewports.stores[e].setViewport({virtualSize:t.realSize})};e.prototype.dropColumns=function(){for(var e=0,t=Ga;e<t.length;e++){var r=t[e];this.stores[r].drop();this.viewports.stores[r].clear()}};e.prototype.setColumns=function(e,t,r,n){if(n===void 0){n=false}this.setRealSize(t,e);this.setCustomSizes(e,r);if(n){this.setNoVirtual(e)}this.setViewPortCoordinate({coordinate:this.viewports.stores[e].store.get("lastCoordinate"),type:e})};e.prototype.setViewPortCoordinate=function(e){var t=e.coordinate,r=e.type;var n=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,n)};e.prototype.getViewPortPos=function(e){var t=this.stores[e.dimension].getCurrentState();var r=Ls(t,e.coordinate);return r.start};e.prototype.setSettings=function(e,t){var r=[];switch(t){case"rgCol":r=Ga;break;case"rgRow":r=Za;break}for(var n=0,i=r;n<i.length;n++){var o=i[n];this.stores[o].setStore(e)}};return e}();function ks(e,t,r,n,i){var o=bs(i,e);var a=Is(t);var s;if(a){var u=o.itemIndex-(a.itemIndex||0);if(u){s=js(Math.abs(u),Object.assign(Object.assign({positiveDirection:u>-1},i),t))}}var l=zs(n,i.realSize,o);if(s){var c=Os(o,r,l,s,i);if(c.length){Rs(s.items,c,s)}}if(!s){var f=Fs({firstItemStart:o.start,firstItemIndex:o.itemIndex,origSize:i.originItemSize,maxSize:l,maxCount:r,sizes:i.sizes});s={items:f,start:0,end:f.length-1}}return s}function zs(e,t,r){return Math.min(e+(r.end-r.start),t)}function Rs(e,t,r){e.splice.apply(e,__spreadArray([r.end+1,0],t,false));if(r.start>=r.end&&!(r.start===r.end&&r.start===0)){r.start+=t.length}r.end+=t.length}function Os(e,t,r,n,i){var o=Ts(n);var a=Fs({sizes:i.sizes,firstItemStart:o.end,firstItemIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:r-(o.end-e.start),maxCount:t});return a}function Fs(e,t){if(t===void 0){t=0}var r=[];var n=e.firstItemIndex;var i=t;while(i<=e.maxSize&&n<e.maxCount){var o=Ps(n,e.sizes,e.origSize);r.push({start:e.firstItemStart+i,end:e.firstItemStart+i+o,itemIndex:n,size:o});i+=o;n++}return r}function js(e,t){var r=__spreadArray([],t.items,true);var n=r.length;var i={start:t.start,end:t.end};if(e>n){return null}if(t.positiveDirection){var o=Ts(t);var a=i.start;var s=a+e;for(;a<s;a++){var u=o.itemIndex+1;var l=Ps(u,t.sizes,t.originItemSize);if(o.end+l>t.realSize){break}var c=a%n;if(!r[c]){throw new Error("incorrect index")}r[c]=o={start:o.end,end:o.end+l,itemIndex:u,size:l};i.start++;i.end=c}}else{var f=Is(t);var v=i.end;for(var a=0;a<e;a++){var u=f.itemIndex-1;var d=Ps(u,t.sizes,t.originItemSize);var h=v-a;h=(h<0?n+h:h)%n;if(!r[h]){throw new Error("incorrect index")}r[h]=f={start:f.start-d,end:f.start,itemIndex:u,size:d};i.start=h;i.end--}}var p={start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n};return Object.assign({items:r},p)}function Ps(e,t,r){if(r===void 0){r=0}if(t&&t[e]){return t[e]}return r}function Ds(e,t,r,n){if(!r||!n){return false}return e>=r.start&&e<=r.end||e>r.end&&n.end===t}function As(e,t,r,n){if(!r){return false}return t+e>(n===null||n===void 0?void 0:n.end)}function Is(e){return e.items[e.start]}function Ts(e){return e.items[e.end]}function Ms(e,t,r,n){var i=__spreadArray([],e,true);var o=i.length;var a=n;var s=0;var u=t;if(!o){return[]}while(s<o){var l=i[u];l.start=a;l.size=r;l.end=l.start+r;a=l.end;u++;s++;if(u===o){u=0}}return i}function Bs(){return{items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}}var Hs=function(){function e(){var e=this;this.store=La(Bs());this.store.onChange("realCount",(function(){return e.clear()}))}e.prototype.setViewPortCoordinate=function(e,t){var r=this.store.get("virtualSize");if(!r){return}var n=t.frameOffset;var i=t.originItemSize*n;var o=i*2;r+=o;var a=0;if(t.realSize>r){a=t.realSize-r}var s={lastCoordinate:e};var u=e;u-=i;u=u<0?0:u<a?u:a;var l=this.getItems();var c=Is(l);var f=Ts(l);if(!Ds(u,t.realSize,c,f)){s=Object.assign(Object.assign({},s),ks(u,l,this.store.get("realCount"),r,t));this.setViewport(Object.assign({},s))}else if(As(u,r,c,f)){var v=Os(c,this.store.get("realCount"),r+u-c.start,l,t);if(v.length){var d=__spreadArray([],this.store.get("items"),true);var h={start:this.store.get("start"),end:this.store.get("end")};Rs(d,v,h);s=Object.assign(Object.assign(Object.assign({},s),{items:__spreadArray([],d,true)}),h);this.setViewport(Object.assign({},s))}}};e.prototype.setViewPortDimension=function(e,t){var r=this.store.get("items");var n=r.length;if(!n){return}var i=0;var o=0;var a=this.store.get("start");if(t){r=Ms(r,a,t,this.store.get("lastCoordinate"))}while(o<n){var s=r[a];if(i){s.start+=i;s.end+=i}var u=e[s.itemIndex];if(u){var l=u-s.size;i+=l;s.size=u;s.end=s.start+u}a++;o++;if(a===n){a=0}}this.setViewport({items:__spreadArray([],r,true)})};e.prototype.getItems=function(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}};e.prototype.setViewport=function(e){Aa(this.store,e)};e.prototype.clear=function(){this.store.set("items",[])};return e}();var Ws=function(){function e(){this.stores=Go(__spreadArray(__spreadArray([],Za,true),Ga,true),(function(e,t){e[t]=new Hs;return e}),{})}e.prototype.setViewport=function(e,t){this.stores[e].setViewport(t)};return e}();var Us=7;var Ns;(function(e){e["headerClickAutosize"]="headerClickAutoSize";e["autoSizeOnTextOverlap"]="autoSizeOnTextOverlap";e["autoSizeAll"]="autoSizeAll"})(Ns||(Ns={}));var Vs=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.providers=r;i.config=n;i.autoSizeColumns=null;i.dataResolve=null;i.dataReject=null;i.letterBlockSize=(n===null||n===void 0?void 0:n.letterBlockSize)||Us;if(n===null||n===void 0?void 0:n.preciseSize){i.precsizeCalculationArea=i.initiatePresizeElement();t.appendChild(i.precsizeCalculationArea)}var o=function(e){var t=e.detail.source;i.setSource(t)};var a=function(e){var t=e.detail;i.afteredit(t)};var s=function(e){var t=e.detail;i.afterEditAll(t)};var u=function(e){var t=e.detail.columns;i.columnSet(t)};var l=function(e){var t;var r=e.detail;var n=ts.getColumnType(r);var o=i.getColumnSize(r.index,n);if(o){i.providers.dimensionProvider.setDimensionSize(n,(t={},t[r.index]=o,t))}};i.addEventListener("beforecolumnsset",u);switch(n===null||n===void 0?void 0:n.mode){case Ns.autoSizeOnTextOverlap:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",a);break;case Ns.autoSizeAll:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",s);break;default:i.addEventListener("headerdblClick",l);break}return i}t.prototype.setSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;var i=this;return __generator(this,(function(o){switch(o.label){case 0:t=this.autoSizeColumns;if(this.dataReject){this.dataReject();this.clearPromise()}if(!!t)return[3,4];r=new Promise((function(e,t){i.dataResolve=e;i.dataReject=t}));o.label=1;case 1:o.trys.push([1,3,,4]);return[4,r];case 2:t=o.sent();return[3,4];case 3:n=o.sent();return[2];case 4:Qo(t,(function(r,n){var o={};Qo(t[n],(function(t){t.size=o[t.index]=e.reduce((function(e,r){return Math.max(e,i.getLength(r[t.prop]))}),i.getLength(t.name||""))}));i.providers.dimensionProvider.setDimensionSize(n,o)}));return[2]}}))}))};t.prototype.getLength=function(e){var t;var r=15;if(!e){return 0}try{var n=e.toString();if((t=this.config)===null||t===void 0?void 0:t.preciseSize){this.precsizeCalculationArea.innerText=n;return this.precsizeCalculationArea.scrollWidth+r*2}return n.length*this.letterBlockSize+r*2}catch(e){return 0}};t.prototype.afteredit=function(e){var t;var r=this;var n;if(this.isRangeEdit(e)){n=e.data}else{n={0:(t={},t[e.prop]=e.val,t)}}Qo(this.autoSizeColumns,(function(e,t){var i={};Qo(e,(function(e){var t=Go(n,(function(t,n){if(typeof n[e.prop]==="undefined"){return t}return Math.max(t||0,r.getLength(n[e.prop]))}),undefined);if(t&&e.size<t){e.size=i[e.index]=t}}));r.providers.dimensionProvider.setDimensionSize(t,i)}))};t.prototype.afterEditAll=function(e){var t=this;var r={};if(this.isRangeEdit(e)){Qo(e.data,(function(e){return Qo(e,(function(e,t){return r[t]=true}))}))}else{r[e.prop]=true}Qo(this.autoSizeColumns,(function(e,n){var i={};Qo(e,(function(e){if(r[e.prop]){var o=t.getColumnSize(e.index,n);if(o){i[e.index]=o}}}));t.providers.dimensionProvider.setDimensionSize(n,i)}))};t.prototype.getColumnSize=function(e,t){var r=this;var n=this.autoSizeColumns[t][e];if(!n){return 0}return Go(this.providers.dataProvider.stores,(function(e,t){var i=Go(t.store.get("items"),(function(e,i,o){var a=Wa(t.store,o);return Math.max(e||0,r.getLength(a[n.prop]))}),0);return Math.max(e,i)}),n.size||0)};t.prototype.columnSet=function(e){var t;for(var r=0,n=Ga;r<n.length;r++){var i=n[r];var o=i;var a=e[o];for(var s in a){if(a[s].autoSize||((t=this.config)===null||t===void 0?void 0:t.allColumns)){if(!this.autoSizeColumns){this.autoSizeColumns={}}if(!this.autoSizeColumns[o]){this.autoSizeColumns[o]={}}this.autoSizeColumns[o][s]=Object.assign(Object.assign({},a[s]),{index:parseInt(s,10)})}}}if(this.dataResolve){this.dataResolve(this.autoSizeColumns);this.clearPromise()}};t.prototype.clearPromise=function(){this.dataResolve=null;this.dataReject=null};t.prototype.isRangeEdit=function(e){return!!e.data};t.prototype.initiatePresizeElement=function(){var e={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"};var t=document.createElement("div");for(var r in e){t.style[r]=e[r]}t.classList.add("revo-test-container");return t};t.prototype.destroy=function(){var t;e.prototype.destroy.call(this);(t=this.precsizeCalculationArea)===null||t===void 0?void 0:t.remove()};return t}(Ja);var Zs=function(e,t){if(typeof e==="undefined"||e===null&&!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}var r=t.toString().toLocaleLowerCase();if(r.length===0){return true}return e.toLocaleLowerCase()===r};var Gs=function(e,t){return!Zs(e,t)};Gs.extra="input";Zs.extra="input";var $s=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e>r}return false};$s.extra="input";var Xs=function(e,t){return Zs(e,t)||$s(e,t)};Xs.extra="input";var Ys=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e<r}else{return false}};Ys.extra="input";var qs=function(e,t){return Zs(e,t)||Ys(e,t)};qs.extra="input";var Ks=function(e){return!(e===""||e===null||e===void 0)};var Js=function(e){return!Ks(e)};var Qs=function(e,t){if(!e){return false}if(!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}if(typeof t!=="string"){t=JSON.stringify(t)}return e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())===0};Qs.extra="input";var eu=function(e,t){if(!e){return false}if(t){if(typeof e!=="string"){e=JSON.stringify(e)}return e.toLocaleLowerCase().indexOf(t.toString().toLowerCase())>-1}return true};var tu=function(e,t){return!eu(e,t)};tu.extra="input";eu.extra="input";var ru={none:"None",empty:"Not set",notEmpty:"Set",eq:"Equal",notEq:"Not equal",begins:"Begins with",contains:"Contains",notContains:"Does not contain",eqN:"=",neqN:"!=",gt:">",gte:">=",lt:"<",lte:"<="};var nu={none:function(){return true},empty:Js,notEmpty:Ks,eq:Zs,notEq:Gs,begins:Qs,contains:eu,notContains:tu,eqN:Zs,neqN:Gs,gt:$s,gte:Xs,lt:Ys,lte:qs};var iu={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};var ou="filter";var au=function(e){__extends(t,e);function t(t,r,n){var o=this;var a;o=e.call(this,t)||this;o.revogrid=t;o.filterCollection={};o.multiFilterItems={};o.possibleFilters=Object.assign({},iu);o.possibleFilterNames=Object.assign({},ru);o.possibleFilterEntities=Object.assign({},nu);if(n){o.initConfig(n)}var s=function(e){return o.headerclick(e)};var u=function(){return __awaiter(o,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(r){switch(r.label){case 0:e=Object.keys(this.filterCollection);if(e.length>0){e.forEach((function(e,r){if(!t.multiFilterItems[e]){t.multiFilterItems[e]=[{id:r,type:t.filterCollection[e].type,value:t.filterCollection[e].value,relation:"and"}]}}))}return[4,this.runFiltering()];case 1:r.sent();return[2]}}))}))};o.addEventListener("headerclick",s);o.addEventListener("aftersourceset",u);o.revogrid.registerVNode([i("revogr-filter-panel",{uuid:"filter-".concat(r),filterItems:o.multiFilterItems,filterNames:o.possibleFilterNames,filterEntities:o.possibleFilterEntities,filterCaptions:(a=n===null||n===void 0?void 0:n.localization)===null||a===void 0?void 0:a.captions,onFilterChange:function(e){return o.onFilterChange(e.detail)},disableDynamicFiltering:n===null||n===void 0?void 0:n.disableDynamicFiltering,ref:function(e){return o.pop=e}})]);return o}t.prototype.initConfig=function(e){var t=this;if(e.collection){this.filterCollection=Object.assign({},e.collection)}if(e.multiFilterItems){this.multiFilterItems=Object.assign({},e.multiFilterItems)}if(e.customFilters){for(var r in e.customFilters){var n=e.customFilters[r];if(!this.possibleFilters[n.columnFilterType]){this.possibleFilters[n.columnFilterType]=[]}this.possibleFilters[n.columnFilterType].push(r);this.possibleFilterEntities[r]=n.func;this.possibleFilterNames[r]=n.name}}if(e.include){var i={};for(var o in this.possibleFilters){var a=this.possibleFilters[o].filter((function(t){return e.include.indexOf(t)>-1}));if(a.length){i[o]=a}}if(Object.keys(i).length>0){this.possibleFilters=i}}if(e.localization){if(e.localization.filterNames){Object.entries(e.localization.filterNames).forEach((function(e){var r=e[0],n=e[1];if(t.possibleFilterNames[r]!=void 0){t.possibleFilterNames[r]=n}}))}}};t.prototype.headerclick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a;var s=this;return __generator(this,(function(u){switch(u.label){case 0:r=(t=e.detail.originalEvent)===null||t===void 0?void 0:t.target;if(!C(r)){return[2]}e.preventDefault();return[4,this.pop.getChanges()];case 1:n=u.sent();if(n&&(n===null||n===void 0?void 0:n.prop)===e.detail.prop){this.pop.show();return[2]}i=this.revogrid.getBoundingClientRect();o=r.getBoundingClientRect();a=e.detail.prop;this.pop.filterTypes=this.getColumnFilter(e.detail.filter);this.pop.show(Object.assign(Object.assign({},this.filterCollection[a]),{x:-9999,y:o.y-i.y+o.height,prop:a}));setTimeout((function(){return __awaiter(s,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.pop.getBoundingClientRect().width;this.pop.style.left=Math.min(o.x-i.x,i.width-e-20)+"px";return[2]}))}))}));return[2]}}))}))};t.prototype.getColumnFilter=function(e){var t,r;var n=this;var i="string";if(!e){return t={},t[i]=this.possibleFilters[i],t}if(this.isValidType(e)){i=e}else if(typeof e==="object"&&e.length){return e.reduce((function(e,t){if(n.isValidType(t)){e[t]=n.possibleFilters[t]}return e}),{})}return r={},r[i]=this.possibleFilters[i],r};t.prototype.isValidType=function(e){return!!(typeof e==="string"&&this.possibleFilters[e])};t.prototype.onFilterChange=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.multiFilterItems=e;this.runFiltering();return[2]}))}))};t.prototype.doFiltering=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:i=[];r.forEach((function(e){var t=Object.assign({},e);var r=n[t.prop];if(t[w]&&!r){delete t[w];i.push(t)}if(!t[w]&&r){i.push(t);t[w]=true}}));o=this.getRowFilter(t,n);a=this.emit("beforefiltertrimmed",{collection:e,itemsToFilter:o,source:t,filterItems:n}),s=a.defaultPrevented,u=a.detail;if(s){return[2]}return[4,this.revogrid.addTrimmed(u.itemsToFilter,ou)];case 1:l=c.sent();if(l.defaultPrevented){return[2]}return[4,this.revogrid.updateColumns(i)];case 2:c.sent();this.emit("afterFilterApply");return[2]}}))}))};t.prototype.clearFiltering=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.multiFilterItems={};return[4,this.runFiltering()];case 1:e.sent();return[2]}}))}))};t.prototype.runFiltering=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a,s,u,l,c,f;return __generator(this,(function(v){switch(v.label){case 0:e={};t=Object.keys(this.multiFilterItems);for(r=0,n=t;r<n.length;r++){i=n[r];if(this.multiFilterItems[i].length>0){o=this.multiFilterItems[i][0];e[i]={filter:nu[o.type],type:o.type,value:o.value}}}this.filterCollection=e;return[4,this.getData()];case 1:a=v.sent(),s=a.source,u=a.columns;l=this.emit("beforefilterapply",{collection:this.filterCollection,source:s,columns:u,filterItems:this.multiFilterItems}),c=l.defaultPrevented,f=l.detail;if(c){return[2]}this.doFiltering(f.collection,f.source,f.columns,f.filterItems);return[2]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.revogrid.getSource()];case 1:e=r.sent();return[4,this.revogrid.getColumns()];case 2:t=r.sent();return[2,{source:e,columns:t}]}}))}))};t.prototype.getRowFilter=function(e,t){var r=this;var n=Object.keys(t);var i={};var o=0;var a=[];e.forEach((function(e,s){for(var u=0,l=n;u<l.length;u++){var c=l[u];var f=t[c];o=0;a=[];for(var v=0,d=f.entries();v<d.length;v++){var h=d[v],p=h[0],g=h[1];var m=r.possibleFilterEntities[g.type];if(g.relation==="or"){a=[];if(m(e[c],g.value)){continue}o++}else{a.push(!m(e[c],g.value));var C=f[p+1];if(!C||C.relation!=="and"){if(a.indexOf(true)===-1){a=[];continue}o+=a.length;a=[]}}}if(o===f.length)i[s]=true}}));return i};return t}(Ja);var su="[object String]";function uu(e){return typeof e=="string"||!G(e)&&l(e)&&c(e)==su}var lu=uu;var cu=Io("length");var fu=cu;var vu="\\ud800-\\udfff",du="\\u0300-\\u036f",hu="\\ufe20-\\ufe2f",pu="\\u20d0-\\u20ff",gu=du+hu+pu,mu="\\ufe0e\\ufe0f";var Cu="\\u200d";var wu=RegExp("["+Cu+vu+gu+mu+"]");function yu(e){return wu.test(e)}var bu=yu;var Lu="\\ud800-\\udfff",xu="\\u0300-\\u036f",_u="\\ufe20-\\ufe2f",Su="\\u20d0-\\u20ff",Eu=xu+_u+Su,ku="\\ufe0e\\ufe0f";var zu="["+Lu+"]",Ru="["+Eu+"]",Ou="\\ud83c[\\udffb-\\udfff]",Fu="(?:"+Ru+"|"+Ou+")",ju="[^"+Lu+"]",Pu="(?:\\ud83c[\\udde6-\\uddff]){2}",Du="[\\ud800-\\udbff][\\udc00-\\udfff]",Au="\\u200d";var Iu=Fu+"?",Tu="["+ku+"]?",Mu="(?:"+Au+"(?:"+[ju,Pu,Du].join("|")+")"+Tu+Iu+")*",Bu=Tu+Iu+Mu,Hu="(?:"+[ju+Ru+"?",Ru,Pu,Du,zu].join("|")+")";var Wu=RegExp(Ou+"(?="+Ou+")|"+Hu+Bu,"g");function Uu(e){var t=Wu.lastIndex=0;while(Wu.test(e)){++t}return t}var Nu=Uu;function Vu(e){return bu(e)?Nu(e):fu(e)}var Zu=Vu;var Gu="[object Map]",$u="[object Set]";function Xu(e){if(e==null){return 0}if(it(e)){return lu(e)?Zu(e):e.length}var t=bi(e);if(t==Gu||t==$u){return e.size}return qe(e).length}var Yu=Xu;var qu=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;r.revogrid=t;r.sorting=null;r.sortingFunc=null;var n=function(e){var t=e.detail;if(r.hasSorting){var n=r.emit("beforesourcesortingapply");if(n.defaultPrevented){return}}var i=r.setData(t.source,t.type);if(i){t.source=i}};var i=function(e){var t=e.detail.order;return __awaiter(r,void 0,void 0,(function(){var e,r,n,i,o;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.revogrid.getColumns()];case 1:e=a.sent();r={};for(n in t){i=ts.getColumnByProp(e,n);o=(i===null||i===void 0?void 0:i.cellCompare)||this.defaultCellCompare;r[n]=t[n]=="desc"?this.descCellCompare(o):o}this.sort(t,r);return[2]}}))}))};var o=function(e){return __awaiter(r,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){if(e.defaultPrevented){return[2]}if(!e.detail.column.sortable){return[2]}this.headerclick(e.detail.column,e.detail.index,(r=(t=e.detail)===null||t===void 0?void 0:t.originalEvent)===null||r===void 0?void 0:r.shiftKey);return[2]}))}))};r.addEventListener("beforesourceset",n);r.addEventListener("aftercolumnsset",i);r.addEventListener("initialHeaderClick",o);return r}Object.defineProperty(t.prototype,"hasSorting",{get:function(){return!!this.sorting},enumerable:false,configurable:true});t.prototype.headerclick=function(e,t,r){return __awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,l,c;var f,v;return __generator(this,(function(d){switch(d.label){case 0:n=this.getNextOrder(e.order);i=this.emit("beforesorting",{column:e,order:n,additive:r});if(i.defaultPrevented){return[2]}n=i.detail.order;return[4,this.revogrid.updateColumnSorting(i.detail.column,t,n,r)];case 1:o=d.sent();a=this.emit("beforesortingapply",{column:o,order:n,additive:r});if(a.defaultPrevented){return[2]}n=a.detail.order;s=(e===null||e===void 0?void 0:e.cellCompare)||this.defaultCellCompare;u=n=="asc"?s:n=="desc"?this.descCellCompare(s):undefined;if(r&&this.sorting){l={};c={};Object.assign(l,this.sorting);Object.assign(c,this.sortingFunc);if(e.prop in l&&Yu(l)>1&&n===undefined){delete l[e.prop];delete c[e.prop]}else{l[e.prop]=n;c[e.prop]=u}this.sort(l,c)}else{this.sort((f={},f[e.prop]=n,f),(v={},v[e.prop]=u,v))}return[2]}}))}))};t.prototype.setData=function(e,t){if(t==="rgRow"&&this.sortingFunc){return this.sortItems(e,this.sortingFunc)}};t.prototype.sort=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!Yu(e)){this.sorting=null;this.sortingFunc=null;return[2]}this.sorting=e;this.sortingFunc=t;return[4,this.revogrid.getSourceStore()];case 1:r=o.sent();n=r.get("source");i=this.sortIndexByItems(__spreadArray([],r.get("proxyItems"),true),n,this.sortingFunc);Aa(r,{proxyItems:i,source:__spreadArray([],n,true)});this.emit("afterSortingApply");return[2]}}))}))};t.prototype.defaultCellCompare=function(e,t,r){var n,i;var o=(n=t[e])===null||n===void 0?void 0:n.toString().toLowerCase();var a=(i=r[e])===null||i===void 0?void 0:i.toString().toLowerCase();return o==a?0:o>a?1:-1};t.prototype.descCellCompare=function(e){return function(t,r,n){return-1*e(t,r,n)}};t.prototype.sortIndexByItems=function(e,t,r){for(var n in r){if(typeof r[n]==="undefined"){return __spreadArray([],Array(e.length).keys(),true)}}return e.sort((function(e,n){var i=0;for(var o in r){var a=r[o];var s=t[e];var u=t[n];i=a(o,s,u);if(i){break}}return i}))};t.prototype.sortItems=function(e,t){return e.sort((function(e,r){var n=0;for(var i in t){var o=t[i];if(!o){continue}n=o(i,e,r);if(n){break}}return n}))};t.prototype.getNextOrder=function(e){switch(e){case undefined:return"asc";case"asc":return"desc";case"desc":return undefined}};return t}(Ja);function Ku(e,t,r){if(e===e){if(r!==undefined){e=e<=r?e:r}if(t!==undefined){e=e>=t?e:t}}return e}var Ju=Ku;var Qu=4294967295;function el(e){return e?Ju(la(e),0,Qu):0}var tl=el;function rl(e,t,r,n){var i=e.length;r=la(r);if(r<0){r=-r>i?0:i+r}n=n===undefined||n>i?i:la(n);if(n<0){n+=i}n=r>n?0:tl(n);while(r<n){e[r++]=t}return e}var nl=rl;function il(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&za(e,t,r)){r=0;n=i}return nl(e,t,r,n)}var ol=il;var al=30;var sl="data-rgCol";var ul="data-rgRow";var ll="grid-uuid";var cl="disabled";var fl="rgCell";var vl="rgHeaderCell";var dl="sortable";var hl="header-rgRow";var pl="actual-rgRow";var gl="revo-drag-icon";var ml="revo-draggable";var Cl="focused-cell";var wl="selection-border-range";var yl="temp-bg-range";var bl="autofill-handle";var Ll="edit-input-wrapper";var xl="Draggable item";var _l="__rvgr";var Sl="".concat(_l,"-depth");var El="".concat(_l,"-name");var kl="".concat(_l,"-id");var zl="".concat(_l,"-value");var Rl="".concat(_l,"-column");var Ol="".concat(_l,"-expanded");var Fl="".concat(_l,"-original-index");var jl="group-expand";var Pl="groupExpandClick";var Dl="rgRow";function Al(e,t,r){var n=r.prevExpanded,i=r.expandedAll;var o=new Map;e.forEach((function(e,r){var n=t.map((function(t){return e[t]||null}));var i=n.pop();var a=o;n.forEach((function(e){if(!a.has(e)){a.set(e,new Map)}a=a.get(e)}));if(!a.has(i)){a.set(i,[])}e[Fl]=r;var s=a.get(i);s.push(e)}));var a=-1;var s=t.length;var u={};var l={};var c={};var f=[];function v(e,t,r){var o=t.length;e.forEach((function(e,s){var d;var h=__spreadArray(__spreadArray([],t,true),[s],false);var p=h.join(",");var g=r&&(!!i||!!(n===null||n===void 0?void 0:n[p]));f.push((d={},d[El]=s,d[Sl]=o,d[kl]=JSON.stringify(h),d[zl]=p,d[Ol]=g,d));a+=1;if(!g&&o){u[a]=true}if(Array.isArray(e)){e.forEach((function(e){a+=1;if(!g){u[a]=true}l[e[Fl]]=a;var t=h.map((function(e,t){return h.slice(0,t+1).join(",")}));t.forEach((function(e){if(!c[e]){c[e]=[]}c[e].push(a)}))}));f.push.apply(f,e)}else{v(e,h,g)}}))}v(o,[],true);return{sourceWithGroups:f,depth:s,trimmed:u,oldNewIndexMap:l,childrenByGroup:c}}function Il(e){return e&&e[El]}function Tl(e){return e&&typeof e[El]!=="undefined"}function Ml(e){return e&&typeof e[Rl]!=="undefined"}function Bl(e,t){var r=e.length;var n=0;for(;n<r;n++){if(e[n]!==t[n]){return n}}return n}function Hl(e){var t=JSON.parse(e);if(!Array.isArray(t)){return null}return t}function Wl(e,t,r){var n=Hl(r[kl]);if(!n){return false}var i=Bl(e,n);return t[Sl]<i}var Ul={mime:"text/csv",fileKind:"csv",bom:true,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""};var Nl=String.fromCharCode(13);var Vl=String.fromCharCode(10);var Zl=String.fromCharCode(34);var Gl=String.fromCharCode(65279);var $l=new RegExp('"',"g");var Xl=function(){function e(e){if(e===void 0){e={}}this.options=Object.assign(Object.assign({},Ul),e)}e.prototype.doExport=function(e){var t=this;var r=e.data,n=e.headers,i=e.props;var o=this.options.bom?Gl:"";if((n===null||n===void 0?void 0:n.length)>0){n.forEach((function(e){if(!e.length){return}o+=t.prepareHeader(e,t.options.columnDelimiter);o+=t.options.rowDelimiter}))}r.forEach((function(e,r){if(r>0){o+=t.options.rowDelimiter}if(Tl(e)){o+=t.parseCell(Il(e),t.options.columnDelimiter);return}o+=i.map((function(r){return t.parseCell(e[r],t.options.columnDelimiter)})).join(t.options.columnDelimiter)}));return o};e.prototype.prepareHeader=function(e,t){var r=this;var n="";var i=e.map((function(e){return r.parseCell(e,t,true)}));n+=i.join(t);return n};e.prototype.parseCell=function(e,t,r){if(r===void 0){r=false}var n=e;if(typeof e!=="string"){n=JSON.stringify(e)}var i=[Nl,Zl,Vl,t];if(typeof n==="undefined"){return""}if(n!==""&&(r||i.some((function(e){return n.indexOf(e)>=0})))){return'"'.concat(n.replace($l,'""'),'"')}return n};return e}();var Yl;(function(e){e["csv"]="csv"})(Yl||(Yl={}));var ql=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.exportString=function(e,t){if(e===void 0){e={}}if(t===void 0){t=Yl.csv}return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,this.formatter(t,e).doExport(r)]}}))}))};t.prototype.exportBlob=function(e,t){if(e===void 0){e={}}if(t===void 0){t=Yl.csv}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getBlob(this.formatter(t,e))];case 1:return[2,r.sent()]}}))}))};t.prototype.exportFile=function(e,t){if(e===void 0){e={}}if(t===void 0){t=Yl.csv}return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,l,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.formatter(t,e);return[4,this.getBlob(r)];case 1:n=f.sent();i=window.URL||window.webkitURL;o=document.createElement("a");a=r.options,s=a.filename,u=a.fileKind;l="".concat(s,".").concat(u);c=i.createObjectURL(n);o.style.display="none";o.setAttribute("href",c);o.setAttribute("download",l);this.revogrid.appendChild(o);o.dispatchEvent(new MouseEvent("click"));this.revogrid.removeChild(o);return[4,ws(120)];case 2:f.sent();i.revokeObjectURL(c);return[2]}}))}))};t.prototype.getBlob=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t="".concat(e.options.mime,";charset=").concat(e.options.encoding);if(!(typeof Blob!=="undefined"))return[3,2];return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,new Blob([e.doExport(r)],{type:t})];case 2:return[2,null]}}))}))};t.prototype.beforeexport=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getData()];case 1:e=r.sent();t=this.emit("beforeexport",{data:e});if(t.defaultPrevented){return[2,null]}return[2,t.detail.data]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a;var s;var u=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getSource()];case 1:e=l.sent();t=[];r=[];Ga.forEach((function(e,n){r.push(u.getColPerSource(e).then((function(e){return t[n]=e})))}));return[4,Promise.all(r)];case 2:l.sent();n={headers:[],props:[]};for(i=0,o=t;i<o.length;i++){a=o[i];a.headers.forEach((function(e,t){var r;if(!n.headers[t]){n.headers[t]=[]}(r=n.headers[t]).push.apply(r,e)}));(s=n.props).push.apply(s,a.props)}return[2,Object.assign({data:e},n)]}}))}))};t.prototype.getColPerSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.revogrid.getColumnStore(e)];case 1:t=c.sent();r=t.get("source");n=t.get("items");i=t.get("groupingDepth");o=t.get("groups");a=[];s=[];u=n.reduce((function(e,t,n){var i=r[t].prop;a.push(r[t].name||"");s.push(i);e[i]=n;return e}),{});l=this.getGroupHeaders(i,o,n,u);l.push(a);return[2,{headers:l,props:s}]}}))}))};t.prototype.getGroupHeaders=function(e,t,r,n){var i=this;var o=[];var a=ol(new Array(r.length),"");var s=function(e){var r=__spreadArray([],a,true);o.push(r);if(!t[e]){return"continue"}var s=t[e];s.forEach((function(e){var t=i.findGroupStartIndex(e.ids,n);if(typeof t==="number"){r[t]=e.name}}))};for(var u=0;u<e;u++){s(u)}return o};t.prototype.findGroupStartIndex=function(e,t){var r;e.forEach((function(e){var n=t[e];if(typeof n==="number"){if(typeof r!=="number"||r>n){r=n}}}));return r};t.prototype.getSource=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var r=this;return __generator(this,(function(n){switch(n.label){case 0:e=[];t=[];Za.forEach((function(n){var i=[];e.push(i);var o=r.revogrid.getVisibleSource(n).then((function(e){return i.push.apply(i,e)}));t.push(o)}));return[4,Promise.all(t)];case 1:n.sent();return[2,e.reduce((function(e,t){e.push.apply(e,t);return e}),[])]}}))}))};t.prototype.formatter=function(e,t){if(t===void 0){t={}}switch(e){case Yl.csv:return new Xl(t);default:throw new Error("Unknown format")}};return t}(Ja);function Kl(e,t){var r=t[e];var n=r[zl];var i={};var o=e+1;var a=t.length;while(o<a){var s=t[o];if(Tl(s)){var u=s[zl];if(!u.length||!u.startsWith(n+",")){break}s[Ol]=false}i[o++]=true}r[Ol]=false;return{trimmed:i}}function Jl(e,t,r){var n=r[e];var i=t[n];var o=Hl(i[kl]);var a={};if(!o){return{trimmed:a}}var s=[];i[Ol]=true;var u=n+1;var l=t.length;var c=0;while(u<l){var f=t[u];var v=Tl(f);if(v){if(!Wl(o,i,f)){break}else if(!c){c=f[Sl]}}if(!c||v&&c===f[Sl]){a[u]=false;s.push(u)}u++}var d={trimmed:a};if(s.length){var h=__spreadArray([],r,true);h.splice.apply(h,__spreadArray([e+1,0],s,false));d.items=h}return d}var Ql="grouping";function ec(e,t,r){var n={};for(var i in e){if(i===Ql){continue}var o=e[i];var a={};for(var s in o){var u=t[s];if(r){u=r[u]}if(o[s]){a[u]=true;if(u!==parseInt(s,10)){n[i]=a}}}}return n}var tc=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;return n}Object.defineProperty(t.prototype,"hasProps",{get:function(){var e,t,r;return((e=this.options)===null||e===void 0?void 0:e.props)&&((r=(t=this.options)===null||t===void 0?void 0:t.props)===null||r===void 0?void 0:r.length)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"store",{get:function(){return this.providers.dataProvider.stores[Dl].store},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rowItems",{get:function(){return this.store.get("items")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"trimmed",{get:function(){return this.store.get("trimmed")},enumerable:false,configurable:true});t.prototype.onFocus=function(e){if(Tl(e.detail.model)){e.preventDefault()}};t.prototype.onExpand=function(e){var t=e.virtualIndex;var r=this.getSource().source;var n=this.trimmed[Ql];var i=Ba(this.store,t);var o=r[i];var a=o[Ol];if(!a){var s=Jl(t,r,this.rowItems),u=s.trimmed,l=s.items;n=Object.assign(Object.assign({},n),u);if(l){Na(this.store,l)}}else{var u=Kl(i,r).trimmed;n=Object.assign(Object.assign({},n),u);this.revogrid.clearFocus()}this.store.set("source",r);this.revogrid.addTrimmed(n,Ql)};t.prototype.getSource=function(e){if(e===void 0){e=false}var t=this.store.get("source");var r=this.store.get("proxyItems");var n=0;return r.reduce((function(r,i){var o=t[i];if(!e){r.source.push(o);return r}if(!Tl(o)){r.source.push(o);r.oldNewIndexes[i]=n;n++}else{if(o[Ol]){r.prevExpanded[o[zl]]=true}}return r}),{source:[],prevExpanded:{},oldNewIndexes:{}})};t.prototype.setColumnGrouping=function(e){if(e===null||e===void 0?void 0:e.length){e[0][Rl]=true;return true}return false};t.prototype.setColumns=function(e){var t=e.columns;for(var r=0,n=Ga;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(t[i])){break}}};t.prototype.onDrag=function(e){var t=e.detail,r=t.from,n=t.to;var i=n-r>=0;var o=this.getSource().source;var a=this.rowItems;var s=i?r:n;var u=i?n:r;for(;s<u;s++){var l=o[a[s]];var c=Tl(l);if(c){e.preventDefault();return}}};t.prototype.beforeTrimmedApply=function(e,t){if(t===ou){var r=this.store.get("source");for(var n in e){if(e[n]&&Tl(r[n])){e[n]=false}}}};t.prototype.subscribe=function(){var e=this;this.addEventListener("beforesourceset",(function(t){var r=t.detail;return e.onDataSet(r)}));this.addEventListener("beforecolumnsset",(function(t){var r=t.detail;return e.setColumns(r)}));this.addEventListener("beforetrimmed",(function(t){var r=t.detail,n=r.trimmed,i=r.trimmedType;return e.beforeTrimmedApply(n,i)}));this.addEventListener("afterSortingApply",(function(){return e.doSourceUpdate(Object.assign({},e.options))}));this.addEventListener("beforecellfocus",(function(t){return e.onFocus(t)}));this.addEventListener("roworderchanged",(function(t){return e.onDrag(t)}));this.addEventListener(Pl,(function(t){var r=t.detail;return e.onExpand(r)}))};t.prototype.doSourceUpdate=function(e){var t;if(!this.hasProps){return}var r=this.getSource(true),n=r.source,i=r.prevExpanded,o=r.oldNewIndexes;var a=Al(n,((t=this.options)===null||t===void 0?void 0:t.props)||[],Object.assign({prevExpanded:i},e)),s=a.sourceWithGroups,u=a.depth,l=a.trimmed,c=a.oldNewIndexMap,f=a.childrenByGroup;this.providers.dataProvider.setData(s,Dl,{depth:u,customRenderer:e===null||e===void 0?void 0:e.groupLabelTemplate},true);this.updateTrimmed(l,f,o,c)};t.prototype.onDataSet=function(e){var t;if(!this.hasProps||!(e===null||e===void 0?void 0:e.source)||!e.source.length){return}var r=e.source.filter((function(e){return!Tl(e)}));var n=this.revogrid.grouping||{};var i=Al(r,((t=this.options)===null||t===void 0?void 0:t.props)||[],Object.assign({},n||{})),o=i.sourceWithGroups,a=i.depth,s=i.trimmed,u=i.oldNewIndexMap,l=i.childrenByGroup;e.source=o;this.providers.dataProvider.setGrouping({depth:a});this.updateTrimmed(s,l,u)};t.prototype.setGrouping=function(e){this.clearSubscriptions();this.options=e;if(!e.props||!Object.keys(e.props).length){this.clearGrouping();return}var t=this.getSource().source;if(t.length){this.doSourceUpdate(Object.assign({},e))}for(var r=0,n=Ga;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(this.providers.columnProvider.getColumns(i))){this.providers.columnProvider.refreshByType(i);break}}this.subscribe()};t.prototype.clearGrouping=function(){var e=this;Ga.forEach((function(t){var r=e.providers.columnProvider.getColumns(t);var n=false;r.forEach((function(e){if(Ml(e)){delete e[Rl];n=true}}));if(n){e.providers.columnProvider.refreshByType(t)}}));var t=this.getSource(true),r=t.source,n=t.oldNewIndexes;this.providers.dataProvider.setData(r,Dl,undefined,true);this.updateTrimmed(undefined,undefined,n)};t.prototype.updateTrimmed=function(e,t,r,n){if(e===void 0){e={}}if(t===void 0){t={}}var i=ec(this.trimmed,r,n);for(var o in i){this.revogrid.addTrimmed(i[o],o)}this.revogrid.addTrimmed(Object.assign({},e),Ql)};return t}(Ja);var rc=function(){function e(){this.parentY=0}e.prototype.start=function(e,t){var r=t.pos,n=t.text,i=t.event;var o;var a=e.getBoundingClientRect().top;this.parentY=a;if(this.text){this.text.innerText=n}this.move(r);this.moveTip({x:i.x,y:i.y});(o=this.el)===null||o===void 0?void 0:o.classList.remove("hidden")};e.prototype.end=function(){var e;(e=this.el)===null||e===void 0?void 0:e.classList.add("hidden")};e.prototype.move=function(e){this.moveElement(e.end-this.parentY)};e.prototype.moveTip=function(e){var t=e.x,r=e.y;if(!this.draggable){return}this.draggable.style.left="".concat(t,"px");this.draggable.style.top="".concat(r,"px")};e.prototype.moveElement=function(e){if(!this.rgRow){return}this.rgRow.style.transform="translateY(".concat(e,"px)")};return e}();var nc=function(e){var t=e.ref;var r=new rc;t(r);return i("div",{class:"draggable-wrapper hidden",ref:function(e){return r.el=e}},i("div",{class:"draggable",ref:function(e){return r.draggable=e}},i("span",{class:"revo-alt-icon"}),i("span",{ref:function(e){return r.text=e}})),i("div",{class:"drag-position",ref:function(e){return r.rgRow=e}}))};var ic=function(e,t){var r=e.viewports,n=e.dimensions,o=e.orderRef,a=e.nakedClick,s=e.registerElement,u=e.onScroll;var l=function(e,t){if(t===e.target){a(e)}};var c;return[i("div",{class:"main-viewport",ref:function(e){return c=e},onClick:function(e){return l(e,c)}},i("div",{class:"viewports"},t,i("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:r["rgRow"].store,dimensionStore:n["rgRow"].store,ref:function(e){return s(e,"rowScroll")},onScrollVirtual:function(e){return u(e.detail)}}),i(nc,{ref:o}))),i("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:r["rgCol"].store,dimensionStore:n["rgCol"].store,ref:function(e){return s(e,"colScroll")},onScrollVirtual:function(e){return u(e.detail)}})]};function oc(e){return e===vc}function ac(e,t){var r={};var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=e[a];return r}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=e[a]-t[a];return r}}return null}function sc(e,t){var r=Object.assign({},e);var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=0}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=t[a]-1}}return r}function uc(e,t){return e&&t?{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x1:Math.max(e.x,t.x),y1:Math.max(e.y,t.y)}:null}function lc(e){return e.x===e.x1&&e.y===e.y1}function cc(){return{range:null,tempRange:null,tempRangeType:null,focus:null,nextFocus:null,edit:null,lastCell:null}}var fc=function(){function e(){var e=this;this.unsubscribe=[];this.store=La(cc());this.store.on("set",(function(t,r){if(t==="tempRange"&&!r){e.store.set("tempRangeType",null)}}))}e.prototype.onChange=function(e,t){this.unsubscribe.push(this.store.onChange(e,t))};e.prototype.clearFocus=function(){Aa(this.store,{focus:null,range:null,edit:null,tempRange:null})};e.prototype.setFocus=function(e,t){Aa(this.store,{focus:e,range:uc(e,t),edit:null,tempRange:null})};e.prototype.nextFocus=function(e){Aa(this.store,{nextFocus:e})};e.prototype.setTempArea=function(e){Aa(this.store,{tempRange:e===null||e===void 0?void 0:e.area,tempRangeType:e===null||e===void 0?void 0:e.type,edit:null})};e.prototype.clearTemp=function(){Aa(this.store,{tempRange:null})};e.prototype.setRangeArea=function(e){Aa(this.store,{range:e,edit:null,tempRange:null})};e.prototype.setRange=function(e,t){this.setRangeArea(uc(e,t))};e.prototype.setLastCell=function(e){Aa(this.store,{lastCell:e})};e.prototype.setEdit=function(e){var t=this.store.get("focus");if(t&&typeof e==="string"){Aa(this.store,{edit:{x:t.x,y:t.y,val:e}});return}Aa(this.store,{edit:null})};e.prototype.dispose=function(){this.unsubscribe.forEach((function(e){return e()}));this.store.dispose()};return e}();var vc=-1;var dc=function(){function e(){this.dirty=false;this.stores={};this.columnStores={};this.rowStores={};this.sections=[]}Object.defineProperty(e.prototype,"focusedStore",{get:function(){var e;for(var t in this.stores){for(var r in this.stores[t]){var n=(e=this.stores[t][r])===null||e===void 0?void 0:e.store.get("focus");if(n){return{entity:this.stores[t][r],cell:n,position:{x:parseInt(r,10),y:parseInt(t,10)}}}}}return null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"edit",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedRange",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("range")},enumerable:false,configurable:true});e.prototype.registerSection=function(e){if(!e){this.sections.length=0;this.dirty=true;return}if(this.sections.indexOf(e)===-1){this.sections.push(e)}};e.prototype.beforeUpdate=function(){if(this.dirty){for(var e in this.stores){for(var t in this.stores[e]){this.stores[e][t].dispose()}}this.dirty=false}};e.prototype.registerColumn=function(e){if(oc(e)){return new fc}if(this.columnStores[e]){return this.columnStores[e]}this.columnStores[e]=new fc;return this.columnStores[e]};e.prototype.registerRow=function(e){if(oc(e)){return new fc}if(this.rowStores[e]){return this.rowStores[e]}this.rowStores[e]=new fc;return this.rowStores[e]};e.prototype.register=function(e){var t=this;var r=e.x,n=e.y;var i,o;if(oc(r)||oc(n)){return new fc}if(!this.stores[n]){this.stores[n]={}}if(this.stores[n][r]){return this.stores[n][r]}this.stores[n][r]=new fc;(i=this.stores[n][r])===null||i===void 0?void 0:i.onChange("range",(function(e){t.columnStores[r].setRangeArea(e);t.rowStores[n].setRangeArea(e)}));(o=this.stores[n][r])===null||o===void 0?void 0:o.store.on("dispose",(function(){var e,i;(e=t.columnStores[r])===null||e===void 0?void 0:e.dispose();(i=t.rowStores[n])===null||i===void 0?void 0:i.dispose();delete t.rowStores[n];delete t.columnStores[r];if(t.stores[n]){delete t.stores[n][r]}if(!Object.keys(t.stores[n]||{}).length){delete t.stores[n]}}));return this.stores[n][r]};e.prototype.setEditByCell=function(e,t){var r=e.x,n=e.y;var i=this.stores[n][r];this.focus(i,{focus:t,end:t});this.setEdit("")};e.prototype.beforeNextFocusCell=function(e){if(!this.focusedStore){return}var t=this.checkNextStore(e,this.focusedStore.position,this.focusedStore.entity.store.get("lastCell"));t.store.nextFocus(Object.assign(Object.assign({},e),t.item))};e.prototype.checkNextStore=function(e,t,r){var n=ac(e,r);var i=null;if(n){for(var o in n){var a=o;var s=void 0;switch(a){case"x":s=this.getXStores(t.y);break;case"y":s=this.getYStores(t.x);break}if(n[a]>=0){i=s[++t[a]]}else{i=s[--t[a]];var u=i===null||i===void 0?void 0:i.store.get("lastCell");if(u){n[a]=u[a]+n[a]}}}}return{store:i,item:n}};e.prototype.getCurrentStorePointer=function(e){var t;for(var r in this.stores){for(var n in this.stores[r]){var i=this.stores[r][n];if(i!==e){i.clearFocus()}else{t={x:parseInt(n,10),y:parseInt(r,10)}}}}return t};e.prototype.focus=function(e,t){var r=t.focus,n=t.end;var i=this.getCurrentStorePointer(e);if(!i){return}var o=e.store.get("lastCell");var a=this.checkNextStore(r,i,o);if(a===null||a===void 0?void 0:a.store){var s=Object.assign(Object.assign({},r),a.item);this.focus(a.store,{focus:s,end:s});return}r=sc(r,o);n=sc(r,o);e.setFocus(r,n)};e.prototype.clearAll=function(){var e;for(var t in this.stores){for(var r in this.stores[t]){(e=this.stores[t][r])===null||e===void 0?void 0:e.clearFocus()}}};e.prototype.setEdit=function(e){if(!this.focusedStore){return}this.focusedStore.entity.setEdit(e)};e.prototype.getXStores=function(e){return this.stores[e]};e.prototype.getYStores=function(e){var t={};for(var r in this.stores){t[r]=this.stores[r][e]}return t};return e}();var hc="header";var pc="footer";var gc="content";var mc="data";function Cc(e,t){return{x:e.viewports[e.colType].store.get("realCount"),y:e.viewports[t].store.get("realCount")}}var wc=f((function(e,t){(function(){var r;var n="4.17.21";var i=200;var o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`";var u="__lodash_hash_undefined__";var l=500;var c="__lodash_placeholder__";var f=1,v=2,d=4;var h=1,p=2;var g=1,m=2,C=4,w=8,b=16,L=32,x=64,_=128,S=256,E=512;var k=30,z="...";var R=800,O=16;var F=1,j=2,P=3;var D=1/0,A=9007199254740991,I=17976931348623157e292,T=0/0;var M=4294967295,B=M-1,H=M>>>1;var W=[["ary",_],["bind",g],["bindKey",m],["curry",w],["curryRight",b],["flip",E],["partial",L],["partialRight",x],["rearg",S]];var U="[object Arguments]",N="[object Array]",V="[object AsyncFunction]",Z="[object Boolean]",G="[object Date]",$="[object DOMException]",X="[object Error]",Y="[object Function]",q="[object GeneratorFunction]",K="[object Map]",J="[object Number]",Q="[object Null]",ee="[object Object]",te="[object Promise]",re="[object Proxy]",ne="[object RegExp]",ie="[object Set]",oe="[object String]",ae="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",le="[object WeakSet]";var ce="[object ArrayBuffer]",fe="[object DataView]",ve="[object Float32Array]",de="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",Ce="[object Uint8ClampedArray]",we="[object Uint16Array]",ye="[object Uint32Array]";var be=/\b__p \+= '';/g,Le=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var _e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Ee=RegExp(_e.source),ke=RegExp(Se.source);var ze=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g;var Fe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var De=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(De.source);var Ie=/^\s+/;var Te=/\s/;var Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /;var We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ue=/[()=,{}\[\]\/\s]/;var Ne=/\\(\\)?/g;var Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Ze=/\w*$/;var Ge=/^[-+]0x[0-9a-f]+$/i;var $e=/^0b[01]+$/i;var Xe=/^\[object .+?Constructor\]$/;var Ye=/^0o[0-7]+$/i;var qe=/^(?:0|[1-9]\d*)$/;var Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Je=/($^)/;var Qe=/['\n\r\u2028\u2029\\]/g;var et="\\ud800-\\udfff",tt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",nt="\\u20d0-\\u20ff",it=tt+rt+nt,ot="\\u2700-\\u27bf",at="a-z\\xdf-\\xf6\\xf8-\\xff",st="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lt="\\u2000-\\u206f",ct=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",vt="\\ufe0e\\ufe0f",dt=st+ut+lt+ct;var ht="['’]",pt="["+et+"]",gt="["+dt+"]",mt="["+it+"]",Ct="\\d+",wt="["+ot+"]",yt="["+at+"]",bt="[^"+et+dt+Ct+ot+at+ft+"]",Lt="\\ud83c[\\udffb-\\udfff]",xt="(?:"+mt+"|"+Lt+")",_t="[^"+et+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="["+ft+"]",zt="\\u200d";var Rt="(?:"+yt+"|"+bt+")",Ot="(?:"+kt+"|"+bt+")",Ft="(?:"+ht+"(?:d|ll|m|re|s|t|ve))?",jt="(?:"+ht+"(?:D|LL|M|RE|S|T|VE))?",Pt=xt+"?",Dt="["+vt+"]?",At="(?:"+zt+"(?:"+[_t,St,Et].join("|")+")"+Dt+Pt+")*",It="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mt=Dt+Pt+At,Bt="(?:"+[wt,St,Et].join("|")+")"+Mt,Ht="(?:"+[_t+mt+"?",mt,St,Et,pt].join("|")+")";var Wt=RegExp(ht,"g");var Ut=RegExp(mt,"g");var Nt=RegExp(Lt+"(?="+Lt+")|"+Ht+Mt,"g");var Vt=RegExp([kt+"?"+yt+"+"+Ft+"(?="+[gt,kt,"$"].join("|")+")",Ot+"+"+jt+"(?="+[gt,kt+Rt,"$"].join("|")+")",kt+"?"+Rt+"+"+Ft,kt+"+"+jt,Tt,It,Ct,Bt].join("|"),"g");var Zt=RegExp("["+zt+et+it+vt+"]");var Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var $t=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var Xt=-1;var Yt={};Yt[ve]=Yt[de]=Yt[he]=Yt[pe]=Yt[ge]=Yt[me]=Yt[Ce]=Yt[we]=Yt[ye]=true;Yt[U]=Yt[N]=Yt[ce]=Yt[Z]=Yt[fe]=Yt[G]=Yt[X]=Yt[Y]=Yt[K]=Yt[J]=Yt[ee]=Yt[ne]=Yt[ie]=Yt[oe]=Yt[ue]=false;var qt={};qt[U]=qt[N]=qt[ce]=qt[fe]=qt[Z]=qt[G]=qt[ve]=qt[de]=qt[he]=qt[pe]=qt[ge]=qt[K]=qt[J]=qt[ee]=qt[ne]=qt[ie]=qt[oe]=qt[ae]=qt[me]=qt[Ce]=qt[we]=qt[ye]=true;qt[X]=qt[Y]=qt[ue]=false;var Kt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};var Jt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var Qt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};var er={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var tr=parseFloat,rr=parseInt;var nr=typeof y=="object"&&y&&y.Object===Object&&y;var ir=typeof self=="object"&&self&&self.Object===Object&&self;var or=nr||ir||Function("return this")();var ar=t&&!t.nodeType&&t;var sr=ar&&"object"=="object"&&e&&!e.nodeType&&e;var ur=sr&&sr.exports===ar;var lr=ur&&nr.process;var cr=function(){try{var e=sr&&sr.require&&sr.require("util").types;if(e){return e}return lr&&lr.binding&&lr.binding("util")}catch(e){}}();var fr=cr&&cr.isArrayBuffer,vr=cr&&cr.isDate,dr=cr&&cr.isMap,hr=cr&&cr.isRegExp,pr=cr&&cr.isSet,gr=cr&&cr.isTypedArray;function mr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Cr(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}function wr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}function yr(e,t){var r=e==null?0:e.length;while(r--){if(t(e[r],r,e)===false){break}}return e}function br(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(!t(e[r],r,e)){return false}}return true}function Lr(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}function xr(e,t){var r=e==null?0:e.length;return!!r&&Ar(e,t,0)>-1}function _r(e,t,r){var n=-1,i=e==null?0:e.length;while(++n<i){if(r(t,e[n])){return true}}return false}function Sr(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function Er(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function kr(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}function zr(e,t,r,n){var i=e==null?0:e.length;if(n&&i){r=e[--i]}while(i--){r=t(r,e[i],i,e)}return r}function Rr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var Or=Br("length");function Fr(e){return e.split("")}function jr(e){return e.match(We)||[]}function Pr(e,t,r){var n;r(e,(function(e,r,i){if(t(e,r,i)){n=r;return false}}));return n}function Dr(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}function Ar(e,t,r){return t===t?vn(e,t,r):Dr(e,Tr,r)}function Ir(e,t,r,n){var i=r-1,o=e.length;while(++i<o){if(n(e[i],t)){return i}}return-1}function Tr(e){return e!==e}function Mr(e,t){var r=e==null?0:e.length;return r?Nr(e,t)/r:T}function Br(e){return function(t){return t==null?r:t[e]}}function Hr(e){return function(t){return e==null?r:e[t]}}function Wr(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}function Ur(e,t){var r=e.length;e.sort(t);while(r--){e[r]=e[r].value}return e}function Nr(e,t){var n,i=-1,o=e.length;while(++i<o){var a=t(e[i]);if(a!==r){n=n===r?a:n+a}}return n}function Vr(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}function Zr(e,t){return Sr(t,(function(t){return[t,e[t]]}))}function Gr(e){return e?e.slice(0,gn(e)+1).replace(Ie,""):e}function $r(e){return function(t){return e(t)}}function Xr(e,t){return Sr(t,(function(t){return e[t]}))}function Yr(e,t){return e.has(t)}function qr(e,t){var r=-1,n=e.length;while(++r<n&&Ar(t,e[r],0)>-1){}return r}function Kr(e,t){var r=e.length;while(r--&&Ar(t,e[r],0)>-1){}return r}function Jr(e,t){var r=e.length,n=0;while(r--){if(e[r]===t){++n}}return n}var Qr=Hr(Kt);var en=Hr(Jt);function tn(e){return"\\"+er[e]}function rn(e,t){return e==null?r:e[t]}function nn(e){return Zt.test(e)}function on(e){return Gt.test(e)}function an(e){var t,r=[];while(!(t=e.next()).done){r.push(t.value)}return r}function sn(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}function un(e,t){return function(r){return e(t(r))}}function ln(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r];if(a===t||a===c){e[r]=c;o[i++]=r}}return o}function cn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}function fn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=[e,e]}));return r}function vn(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function dn(e,t,r){var n=r+1;while(n--){if(e[n]===t){return n}}return n}function hn(e){return nn(e)?Cn(e):Or(e)}function pn(e){return nn(e)?wn(e):Fr(e)}function gn(e){var t=e.length;while(t--&&Te.test(e.charAt(t))){}return t}var mn=Hr(Qt);function Cn(e){var t=Nt.lastIndex=0;while(Nt.test(e)){++t}return t}function wn(e){return e.match(Nt)||[]}function yn(e){return e.match(Vt)||[]}var bn=function e(t){t=t==null?or:Ln.defaults(or.Object(),t,Ln.pick(or,$t));var y=t.Array,Te=t.Date,We=t.Error,et=t.Function,tt=t.Math,rt=t.Object,nt=t.RegExp,it=t.String,ot=t.TypeError;var at=y.prototype,st=et.prototype,ut=rt.prototype;var lt=t["__core-js_shared__"];var ct=st.toString;var ft=ut.hasOwnProperty;var vt=0;var dt=function(){var e=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ht=ut.toString;var pt=ct.call(rt);var gt=or._;var mt=nt("^"+ct.call(ft).replace(De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=ur?t.Buffer:r,wt=t.Symbol,yt=t.Uint8Array,bt=Ct?Ct.allocUnsafe:r,Lt=un(rt.getPrototypeOf,rt),xt=rt.create,_t=ut.propertyIsEnumerable,St=at.splice,Et=wt?wt.isConcatSpreadable:r,kt=wt?wt.iterator:r,zt=wt?wt.toStringTag:r;var Rt=function(){try{var e=$a(rt,"defineProperty");e({},"",{});return e}catch(e){}}();var Ot=t.clearTimeout!==or.clearTimeout&&t.clearTimeout,Ft=Te&&Te.now!==or.Date.now&&Te.now,jt=t.setTimeout!==or.setTimeout&&t.setTimeout;var Pt=tt.ceil,Dt=tt.floor,At=rt.getOwnPropertySymbols,It=Ct?Ct.isBuffer:r,Tt=t.isFinite,Mt=at.join,Bt=un(rt.keys,rt),Ht=tt.max,Nt=tt.min,Vt=Te.now,Zt=t.parseInt,Gt=tt.random,Kt=at.reverse;var Jt=$a(t,"DataView"),Qt=$a(t,"Map"),er=$a(t,"Promise"),nr=$a(t,"Set"),ir=$a(t,"WeakMap"),ar=$a(rt,"create");var sr=ir&&new ir;var lr={};var cr=js(Jt),Or=js(Qt),Fr=js(er),Hr=js(nr),vn=js(ir);var Cn=wt?wt.prototype:r,wn=Cn?Cn.valueOf:r,bn=Cn?Cn.toString:r;function xn(e){if(Sc(e)&&!uc(e)&&!(e instanceof kn)){if(e instanceof En){return e}if(ft.call(e,"__wrapped__")){return Ds(e)}}return new En(e)}var _n=function(){function e(){}return function(t){if(!_c(t)){return{}}if(xt){return xt(t)}e.prototype=t;var n=new e;e.prototype=r;return n}}();function Sn(){}function En(e,t){this.__wrapped__=e;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=r}xn.templateSettings={escape:ze,evaluate:Re,interpolate:Oe,variable:"",imports:{_:xn}};xn.prototype=Sn.prototype;xn.prototype.constructor=xn;En.prototype=_n(Sn.prototype);En.prototype.constructor=En;function kn(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=M;this.__views__=[]}function zn(){var e=new kn(this.__wrapped__);e.__actions__=ia(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=ia(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=ia(this.__views__);return e}function Rn(){if(this.__filtered__){var e=new kn(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function On(){var e=this.__wrapped__.value(),t=this.__dir__,r=uc(e),n=t<0,i=r?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=n?s:a-1,c=this.__iteratees__,f=c.length,v=0,d=Nt(u,this.__takeCount__);if(!r||!n&&i==u&&d==u){return Bo(e,this.__actions__)}var h=[];e:while(u--&&v<d){l+=t;var p=-1,g=e[l];while(++p<f){var m=c[p],C=m.iteratee,w=m.type,y=C(g);if(w==j){g=y}else if(!y){if(w==F){continue e}else{break e}}}h[v++]=g}return h}kn.prototype=_n(Sn.prototype);kn.prototype.constructor=kn;function Fn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function jn(){this.__data__=ar?ar(null):{};this.size=0}function Pn(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function Dn(e){var t=this.__data__;if(ar){var n=t[e];return n===u?r:n}return ft.call(t,e)?t[e]:r}function An(e){var t=this.__data__;return ar?t[e]!==r:ft.call(t,e)}function In(e,t){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=ar&&t===r?u:t;return this}Fn.prototype.clear=jn;Fn.prototype["delete"]=Pn;Fn.prototype.get=Dn;Fn.prototype.has=An;Fn.prototype.set=In;function Tn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Mn(){this.__data__=[];this.size=0}function Bn(e){var t=this.__data__,r=ci(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{St.call(t,r,1)}--this.size;return true}function Hn(e){var t=this.__data__,n=ci(t,e);return n<0?r:t[n][1]}function Wn(e){return ci(this.__data__,e)>-1}function Un(e,t){var r=this.__data__,n=ci(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}Tn.prototype.clear=Mn;Tn.prototype["delete"]=Bn;Tn.prototype.get=Hn;Tn.prototype.has=Wn;Tn.prototype.set=Un;function Nn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Vn(){this.size=0;this.__data__={hash:new Fn,map:new(Qt||Tn),string:new Fn}}function Zn(e){var t=Za(this,e)["delete"](e);this.size-=t?1:0;return t}function Gn(e){return Za(this,e).get(e)}function $n(e){return Za(this,e).has(e)}function Xn(e,t){var r=Za(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}Nn.prototype.clear=Vn;Nn.prototype["delete"]=Zn;Nn.prototype.get=Gn;Nn.prototype.has=$n;Nn.prototype.set=Xn;function Yn(e){var t=-1,r=e==null?0:e.length;this.__data__=new Nn;while(++t<r){this.add(e[t])}}function qn(e){this.__data__.set(e,u);return this}function Kn(e){return this.__data__.has(e)}Yn.prototype.add=Yn.prototype.push=qn;Yn.prototype.has=Kn;function Jn(e){var t=this.__data__=new Tn(e);this.size=t.size}function Qn(){this.__data__=new Tn;this.size=0}function ei(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function ti(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ni(e,t){var r=this.__data__;if(r instanceof Tn){var n=r.__data__;if(!Qt||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new Nn(n)}r.set(e,t);this.size=r.size;return this}Jn.prototype.clear=Qn;Jn.prototype["delete"]=ei;Jn.prototype.get=ti;Jn.prototype.has=ri;Jn.prototype.set=ni;function ii(e,t){var r=uc(e),n=!r&&sc(e),i=!r&&!n&&dc(e),o=!r&&!n&&!i&&Hc(e),a=r||n||i||o,s=a?Vr(e.length,it):[],u=s.length;for(var l in e){if((t||ft.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||as(l,u)))){s.push(l)}}return s}function oi(e){var t=e.length;return t?e[Co(0,t-1)]:r}function ai(e,t){return Rs(ia(e),gi(t,0,e.length))}function si(e){return Rs(ia(e))}function ui(e,t,n){if(n!==r&&!ic(e[t],n)||n===r&&!(t in e)){hi(e,t,n)}}function li(e,t,n){var i=e[t];if(!(ft.call(e,t)&&ic(i,n))||n===r&&!(t in e)){hi(e,t,n)}}function ci(e,t){var r=e.length;while(r--){if(ic(e[r][0],t)){return r}}return-1}function fi(e,t,r,n){Li(e,(function(e,i,o){t(n,e,r(e),o)}));return n}function vi(e,t){return e&&oa(t,xf(t),e)}function di(e,t){return e&&oa(t,_f(t),e)}function hi(e,t,r){if(t=="__proto__"&&Rt){Rt(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}function pi(e,t){var n=-1,i=t.length,o=y(i),a=e==null;while(++n<i){o[n]=a?r:mf(e,t[n])}return o}function gi(e,t,n){if(e===e){if(n!==r){e=e<=n?e:n}if(t!==r){e=e>=t?e:t}}return e}function mi(e,t,n,i,o,a){var s,u=t&f,l=t&v,c=t&d;if(n){s=o?n(e,i,o,a):n(e)}if(s!==r){return s}if(!_c(e)){return e}var h=uc(e);if(h){s=ts(e);if(!u){return ia(e,s)}}else{var p=Ka(e),g=p==Y||p==q;if(dc(e)){return Xo(e,u)}if(p==ee||p==U||g&&!o){s=l||g?{}:rs(e);if(!u){return l?sa(e,di(s,e)):aa(e,vi(s,e))}}else{if(!qt[p]){return o?e:{}}s=ns(e,p,u)}}a||(a=new Jn);var m=a.get(e);if(m){return m}a.set(e,s);if(Tc(e)){e.forEach((function(r){s.add(mi(r,t,n,r,e,a))}))}else if(Ec(e)){e.forEach((function(r,i){s.set(i,mi(r,t,n,i,e,a))}))}var C=c?l?Ha:Ba:l?_f:xf;var w=h?r:C(e);wr(w||e,(function(r,i){if(w){i=r;r=e[i]}li(s,i,mi(r,t,n,i,e,a))}));return s}function Ci(e){var t=xf(e);return function(r){return wi(r,e,t)}}function wi(e,t,n){var i=n.length;if(e==null){return!i}e=rt(e);while(i--){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s)){return false}}return true}function yi(e,t,n){if(typeof e!="function"){throw new ot(a)}return Ss((function(){e.apply(r,n)}),t)}function bi(e,t,r,n){var o=-1,a=xr,s=true,u=e.length,l=[],c=t.length;if(!u){return l}if(r){t=Sr(t,$r(r))}if(n){a=_r;s=false}else if(t.length>=i){a=Yr;s=false;t=new Yn(t)}e:while(++o<u){var f=e[o],v=r==null?f:r(f);f=n||f!==0?f:0;if(s&&v===v){var d=c;while(d--){if(t[d]===v){continue e}}l.push(f)}else if(!a(t,v,n)){l.push(f)}}return l}var Li=ca(Fi);var xi=ca(ji,true);function _i(e,t){var r=true;Li(e,(function(e,n,i){r=!!t(e,n,i);return r}));return r}function Si(e,t,n){var i=-1,o=e.length;while(++i<o){var a=e[i],s=t(a);if(s!=null&&(u===r?s===s&&!Bc(s):n(s,u))){var u=s,l=a}}return l}function Ei(e,t,n,i){var o=e.length;n=Xc(n);if(n<0){n=-n>o?0:o+n}i=i===r||i>o?o:Xc(i);if(i<0){i+=o}i=n>i?0:Yc(i);while(n<i){e[n++]=t}return e}function ki(e,t){var r=[];Li(e,(function(e,n,i){if(t(e,n,i)){r.push(e)}}));return r}function zi(e,t,r,n,i){var o=-1,a=e.length;r||(r=os);i||(i=[]);while(++o<a){var s=e[o];if(t>0&&r(s)){if(t>1){zi(s,t-1,r,n,i)}else{Er(i,s)}}else if(!n){i[i.length]=s}}return i}var Ri=fa();var Oi=fa(true);function Fi(e,t){return e&&Ri(e,t,xf)}function ji(e,t){return e&&Oi(e,t,xf)}function Pi(e,t){return Lr(t,(function(t){return bc(e[t])}))}function Di(e,t){t=Vo(t,e);var n=0,i=t.length;while(e!=null&&n<i){e=e[Fs(t[n++])]}return n&&n==i?e:r}function Ai(e,t,r){var n=t(e);return uc(e)?n:Er(n,r(e))}function Ii(e){if(e==null){return e===r?se:Q}return zt&&zt in rt(e)?Xa(e):ws(e)}function Ti(e,t){return e>t}function Mi(e,t){return e!=null&&ft.call(e,t)}function Bi(e,t){return e!=null&&t in rt(e)}function Hi(e,t,r){return e>=Nt(t,r)&&e<Ht(t,r)}function Wi(e,t,n){var i=n?_r:xr,o=e[0].length,a=e.length,s=a,u=y(a),l=Infinity,c=[];while(s--){var f=e[s];if(s&&t){f=Sr(f,$r(t))}l=Nt(f.length,l);u[s]=!n&&(t||o>=120&&f.length>=120)?new Yn(s&&f):r}f=e[0];var v=-1,d=u[0];e:while(++v<o&&c.length<l){var h=f[v],p=t?t(h):h;h=n||h!==0?h:0;if(!(d?Yr(d,p):i(c,p,n))){s=a;while(--s){var g=u[s];if(!(g?Yr(g,p):i(e[s],p,n))){continue e}}if(d){d.push(p)}c.push(h)}}return c}function Ui(e,t,r,n){Fi(e,(function(e,i,o){t(n,r(e),i,o)}));return n}function Ni(e,t,n){t=Vo(t,e);e=bs(e,t);var i=e==null?e:e[Fs(ou(t))];return i==null?r:mr(i,e,n)}function Vi(e){return Sc(e)&&Ii(e)==U}function Zi(e){return Sc(e)&&Ii(e)==ce}function Gi(e){return Sc(e)&&Ii(e)==G}function $i(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!Sc(e)&&!Sc(t)){return e!==e&&t!==t}return Xi(e,t,r,n,$i,i)}function Xi(e,t,r,n,i,o){var a=uc(e),s=uc(t),u=a?N:Ka(e),l=s?N:Ka(t);u=u==U?ee:u;l=l==U?ee:l;var c=u==ee,f=l==ee,v=u==l;if(v&&dc(e)){if(!dc(t)){return false}a=true;c=false}if(v&&!c){o||(o=new Jn);return a||Hc(e)?Aa(e,t,r,n,i,o):Ia(e,t,u,r,n,i,o)}if(!(r&h)){var d=c&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,m=p?t.value():t;o||(o=new Jn);return i(g,m,r,n,o)}}if(!v){return false}o||(o=new Jn);return Ta(e,t,r,n,i,o)}function Yi(e){return Sc(e)&&Ka(e)==K}function qi(e,t,n,i){var o=n.length,a=o,s=!i;if(e==null){return!a}e=rt(e);while(o--){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e)){return false}}while(++o<a){u=n[o];var l=u[0],c=e[l],f=u[1];if(s&&u[2]){if(c===r&&!(l in e)){return false}}else{var v=new Jn;if(i){var d=i(c,f,l,e,t,v)}if(!(d===r?$i(f,c,h|p,i,v):d)){return false}}}return true}function Ki(e){if(!_c(e)||fs(e)){return false}var t=bc(e)?mt:Xe;return t.test(js(e))}function Ji(e){return Sc(e)&&Ii(e)==ne}function Qi(e){return Sc(e)&&Ka(e)==ie}function eo(e){return Sc(e)&&xc(e.length)&&!!Yt[Ii(e)]}function to(e){if(typeof e=="function"){return e}if(e==null){return Fv}if(typeof e=="object"){return uc(e)?so(e[0],e[1]):ao(e)}return Vv(e)}function ro(e){if(!ds(e)){return Bt(e)}var t=[];for(var r in rt(e)){if(ft.call(e,r)&&r!="constructor"){t.push(r)}}return t}function no(e){if(!_c(e)){return Cs(e)}var t=ds(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!ft.call(e,n)))){r.push(n)}}return r}function io(e,t){return e<t}function oo(e,t){var r=-1,n=cc(e)?y(e.length):[];Li(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}function ao(e){var t=Ga(e);if(t.length==1&&t[0][2]){return ps(t[0][0],t[0][1])}return function(r){return r===e||qi(r,e,t)}}function so(e,t){if(us(e)&&hs(t)){return ps(Fs(e),t)}return function(n){var i=mf(n,e);return i===r&&i===t?wf(n,e):$i(t,i,h|p)}}function uo(e,t,n,i,o){if(e===t){return}Ri(t,(function(a,s){o||(o=new Jn);if(_c(a)){lo(e,t,s,n,uo,i,o)}else{var u=i?i(xs(e,s),a,s+"",e,t,o):r;if(u===r){u=a}ui(e,s,u)}}),_f)}function lo(e,t,n,i,o,a,s){var u=xs(e,n),l=xs(t,n),c=s.get(l);if(c){ui(e,n,c);return}var f=a?a(u,l,n+"",e,t,s):r;var v=f===r;if(v){var d=uc(l),h=!d&&dc(l),p=!d&&!h&&Hc(l);f=l;if(d||h||p){if(uc(u)){f=u}else if(fc(u)){f=ia(u)}else if(h){v=false;f=Xo(l,true)}else if(p){v=false;f=Qo(l,true)}else{f=[]}}else if(Dc(l)||sc(l)){f=u;if(sc(u)){f=Kc(u)}else if(!_c(u)||bc(u)){f=rs(l)}}else{v=false}}if(v){s.set(l,f);o(f,l,i,a,s);s["delete"](l)}ui(e,n,f)}function co(e,t){var n=e.length;if(!n){return}t+=t<0?n:0;return as(t,n)?e[t]:r}function fo(e,t,r){if(t.length){t=Sr(t,(function(e){if(uc(e)){return function(t){return Di(t,e.length===1?e[0]:e)}}return e}))}else{t=[Fv]}var n=-1;t=Sr(t,$r(Va()));var i=oo(e,(function(e,r,i){var o=Sr(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return Ur(i,(function(e,t){return ta(e,t,r)}))}function vo(e,t){return ho(e,t,(function(t,r){return wf(e,r)}))}function ho(e,t,r){var n=-1,i=t.length,o={};while(++n<i){var a=t[n],s=Di(e,a);if(r(s,a)){_o(o,Vo(a,e),s)}}return o}function po(e){return function(t){return Di(t,e)}}function go(e,t,r,n){var i=n?Ir:Ar,o=-1,a=t.length,s=e;if(e===t){t=ia(t)}if(r){s=Sr(e,$r(r))}while(++o<a){var u=0,l=t[o],c=r?r(l):l;while((u=i(s,c,u,n))>-1){if(s!==e){St.call(s,u,1)}St.call(e,u,1)}}return e}function mo(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==o){var o=i;if(as(i)){St.call(e,i,1)}else{Io(e,i)}}}return e}function Co(e,t){return e+Dt(Gt()*(t-e+1))}function wo(e,t,r,n){var i=-1,o=Ht(Pt((t-e)/(r||1)),0),a=y(o);while(o--){a[n?o:++i]=e;e+=r}return a}function yo(e,t){var r="";if(!e||t<1||t>A){return r}do{if(t%2){r+=e}t=Dt(t/2);if(t){e+=e}}while(t);return r}function bo(e,t){return Es(ys(e,t,Fv),e+"")}function Lo(e){return oi(Uf(e))}function xo(e,t){var r=Uf(e);return Rs(r,gi(t,0,r.length))}function _o(e,t,n,i){if(!_c(e)){return e}t=Vo(t,e);var o=-1,a=t.length,s=a-1,u=e;while(u!=null&&++o<a){var l=Fs(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype"){return e}if(o!=s){var f=u[l];c=i?i(f,l,u):r;if(c===r){c=_c(f)?f:as(t[o+1])?[]:{}}}li(u,l,c);u=u[l]}return e}var So=!sr?Fv:function(e,t){sr.set(e,t);return e};var Eo=!Rt?Fv:function(e,t){return Rt(e,"toString",{configurable:true,enumerable:false,value:kv(t),writable:true})};function ko(e){return Rs(Uf(e))}function zo(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=y(i);while(++n<i){o[n]=e[n+t]}return o}function Ro(e,t){var r;Li(e,(function(e,n,i){r=t(e,n,i);return!r}));return!!r}function Oo(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=H){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!Bc(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return Fo(e,t,Fv,r)}function Fo(e,t,n,i){var o=0,a=e==null?0:e.length;if(a===0){return 0}t=n(t);var s=t!==t,u=t===null,l=Bc(t),c=t===r;while(o<a){var f=Dt((o+a)/2),v=n(e[f]),d=v!==r,h=v===null,p=v===v,g=Bc(v);if(s){var m=i||p}else if(c){m=p&&(i||d)}else if(u){m=p&&d&&(i||!h)}else if(l){m=p&&d&&!h&&(i||!g)}else if(h||g){m=false}else{m=i?v<=t:v<t}if(m){o=f+1}else{a=f}}return Nt(a,B)}function jo(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r],s=t?t(a):a;if(!r||!ic(s,u)){var u=s;o[i++]=a===0?0:a}}return o}function Po(e){if(typeof e=="number"){return e}if(Bc(e)){return T}return+e}function Do(e){if(typeof e=="string"){return e}if(uc(e)){return Sr(e,Do)+""}if(Bc(e)){return bn?bn.call(e):""}var t=e+"";return t=="0"&&1/e==-D?"-0":t}function Ao(e,t,r){var n=-1,o=xr,a=e.length,s=true,u=[],l=u;if(r){s=false;o=_r}else if(a>=i){var c=t?null:Ra(e);if(c){return cn(c)}s=false;o=Yr;l=new Yn}else{l=t?[]:u}e:while(++n<a){var f=e[n],v=t?t(f):f;f=r||f!==0?f:0;if(s&&v===v){var d=l.length;while(d--){if(l[d]===v){continue e}}if(t){l.push(v)}u.push(f)}else if(!o(l,v,r)){if(l!==u){l.push(v)}u.push(f)}}return u}function Io(e,t){t=Vo(t,e);e=bs(e,t);return e==null||delete e[Fs(ou(t))]}function To(e,t,r,n){return _o(e,t,r(Di(e,t)),n)}function Mo(e,t,r,n){var i=e.length,o=n?i:-1;while((n?o--:++o<i)&&t(e[o],o,e)){}return r?zo(e,n?0:o,n?o+1:i):zo(e,n?o+1:0,n?i:o)}function Bo(e,t){var r=e;if(r instanceof kn){r=r.value()}return kr(t,(function(e,t){return t.func.apply(t.thisArg,Er([e],t.args))}),r)}function Ho(e,t,r){var n=e.length;if(n<2){return n?Ao(e[0]):[]}var i=-1,o=y(n);while(++i<n){var a=e[i],s=-1;while(++s<n){if(s!=i){o[i]=bi(o[i]||a,e[s],t,r)}}}return Ao(zi(o,1),t,r)}function Wo(e,t,n){var i=-1,o=e.length,a=t.length,s={};while(++i<o){var u=i<a?t[i]:r;n(s,e[i],u)}return s}function Uo(e){return fc(e)?e:[]}function No(e){return typeof e=="function"?e:Fv}function Vo(e,t){if(uc(e)){return e}return us(e,t)?[e]:Os(Qc(e))}var Zo=bo;function Go(e,t,n){var i=e.length;n=n===r?i:n;return!t&&n>=i?e:zo(e,t,n)}var $o=Ot||function(e){return or.clearTimeout(e)};function Xo(e,t){if(t){return e.slice()}var r=e.length,n=bt?bt(r):new e.constructor(r);e.copy(n);return n}function Yo(e){var t=new e.constructor(e.byteLength);new yt(t).set(new yt(e));return t}function qo(e,t){var r=t?Yo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Ko(e){var t=new e.constructor(e.source,Ze.exec(e));t.lastIndex=e.lastIndex;return t}function Jo(e){return wn?rt(wn.call(e)):{}}function Qo(e,t){var r=t?Yo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==r,i=e===null,o=e===e,a=Bc(e);var s=t!==r,u=t===null,l=t===t,c=Bc(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o){return 1}if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l){return-1}}return 0}function ta(e,t,r){var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;while(++n<a){var u=ea(i[n],o[n]);if(u){if(n>=s){return u}var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}function ra(e,t,r,n){var i=-1,o=e.length,a=r.length,s=-1,u=t.length,l=Ht(o-a,0),c=y(u+l),f=!n;while(++s<u){c[s]=t[s]}while(++i<a){if(f||i<o){c[r[i]]=e[i]}}while(l--){c[s++]=e[i++]}return c}function na(e,t,r,n){var i=-1,o=e.length,a=-1,s=r.length,u=-1,l=t.length,c=Ht(o-s,0),f=y(c+l),v=!n;while(++i<c){f[i]=e[i]}var d=i;while(++u<l){f[d+u]=t[u]}while(++a<s){if(v||i<o){f[d+r[a]]=e[i++]}}return f}function ia(e,t){var r=-1,n=e.length;t||(t=y(n));while(++r<n){t[r]=e[r]}return t}function oa(e,t,n,i){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var u=t[a];var l=i?i(n[u],e[u],u,n,e):r;if(l===r){l=e[u]}if(o){hi(n,u,l)}else{li(n,u,l)}}return n}function aa(e,t){return oa(e,Ya(e),t)}function sa(e,t){return oa(e,qa(e),t)}function ua(e,t){return function(r,n){var i=uc(r)?Cr:fi,o=t?t():{};return i(r,e,Va(n,2),o)}}function la(e){return bo((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;a=e.length>3&&typeof a=="function"?(o--,a):r;if(s&&ss(n[0],n[1],s)){a=o<3?r:a;o=1}t=rt(t);while(++i<o){var u=n[i];if(u){e(t,u,i,a)}}return t}))}function ca(e,t){return function(r,n){if(r==null){return r}if(!cc(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=rt(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}function fa(e){return function(t,r,n){var i=-1,o=rt(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}function va(e,t,r){var n=t&g,i=pa(e);function o(){var t=this&&this!==or&&this instanceof o?i:e;return t.apply(n?r:this,arguments)}return o}function da(e){return function(t){t=Qc(t);var n=nn(t)?pn(t):r;var i=n?n[0]:t.charAt(0);var o=n?Go(n,1).join(""):t.slice(1);return i[e]()+o}}function ha(e){return function(t){return kr(Lv(Yf(t).replace(Wt,"")),e,"")}}function pa(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=_n(e.prototype),n=e.apply(r,t);return _c(n)?n:r}}function ga(e,t,n){var i=pa(e);function o(){var a=arguments.length,s=y(a),u=a,l=Na(o);while(u--){s[u]=arguments[u]}var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:ln(s,l);a-=c.length;if(a<n){return ka(e,t,wa,o.placeholder,r,s,c,r,r,n-a)}var f=this&&this!==or&&this instanceof o?i:e;return mr(f,this,s)}return o}function ma(e){return function(t,n,i){var o=rt(t);if(!cc(t)){var a=Va(n,3);t=xf(t);n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function Ca(e){return Ma((function(t){var n=t.length,i=n,o=En.prototype.thru;if(e){t.reverse()}while(i--){var s=t[i];if(typeof s!="function"){throw new ot(a)}if(o&&!u&&Ua(s)=="wrapper"){var u=new En([],true)}}i=u?i:n;while(++i<n){s=t[i];var l=Ua(s),c=l=="wrapper"?Wa(s):r;if(c&&cs(c[0])&&c[1]==(_|w|L|S)&&!c[4].length&&c[9]==1){u=u[Ua(c[0])].apply(u,c[3])}else{u=s.length==1&&cs(s)?u[l]():u.thru(s)}}return function(){var e=arguments,r=e[0];if(u&&e.length==1&&uc(r)){return u.plant(r).value()}var i=0,o=n?t[i].apply(this,e):r;while(++i<n){o=t[i].call(this,o)}return o}}))}function wa(e,t,n,i,o,a,s,u,l,c){var f=t&_,v=t&g,d=t&m,h=t&(w|b),p=t&E,C=d?r:pa(e);function L(){var r=arguments.length,g=y(r),m=r;while(m--){g[m]=arguments[m]}if(h){var w=Na(L),b=Jr(g,w)}if(i){g=ra(g,i,o,h)}if(a){g=na(g,a,s,h)}r-=b;if(h&&r<c){var x=ln(g,w);return ka(e,t,wa,L.placeholder,n,g,x,u,l,c-r)}var _=v?n:this,S=d?_[e]:e;r=g.length;if(u){g=Ls(g,u)}else if(p&&r>1){g.reverse()}if(f&&l<r){g.length=l}if(this&&this!==or&&this instanceof L){S=C||pa(S)}return S.apply(_,g)}return L}function ya(e,t){return function(r,n){return Ui(r,e,t(n),{})}}function ba(e,t){return function(n,i){var o;if(n===r&&i===r){return t}if(n!==r){o=n}if(i!==r){if(o===r){return i}if(typeof n=="string"||typeof i=="string"){n=Do(n);i=Do(i)}else{n=Po(n);i=Po(i)}o=e(n,i)}return o}}function La(e){return Ma((function(t){t=Sr(t,$r(Va()));return bo((function(r){var n=this;return e(t,(function(e){return mr(e,n,r)}))}))}))}function xa(e,t){t=t===r?" ":Do(t);var n=t.length;if(n<2){return n?yo(t,e):t}var i=yo(t,Pt(e/hn(t)));return nn(t)?Go(pn(i),0,e).join(""):i.slice(0,e)}function _a(e,t,r,n){var i=t&g,o=pa(e);function a(){var t=-1,s=arguments.length,u=-1,l=n.length,c=y(l+s),f=this&&this!==or&&this instanceof a?o:e;while(++u<l){c[u]=n[u]}while(s--){c[u++]=arguments[++t]}return mr(f,i?r:this,c)}return a}function Sa(e){return function(t,n,i){if(i&&typeof i!="number"&&ss(t,n,i)){n=i=r}t=$c(t);if(n===r){n=t;t=0}else{n=$c(n)}i=i===r?t<n?1:-1:$c(i);return wo(t,n,i,e)}}function Ea(e){return function(t,r){if(!(typeof t=="string"&&typeof r=="string")){t=qc(t);r=qc(r)}return e(t,r)}}function ka(e,t,n,i,o,a,s,u,l,c){var f=t&w,v=f?s:r,d=f?r:s,h=f?a:r,p=f?r:a;t|=f?L:x;t&=~(f?x:L);if(!(t&C)){t&=~(g|m)}var y=[e,t,o,h,v,p,d,u,l,c];var b=n.apply(r,y);if(cs(e)){_s(b,y)}b.placeholder=i;return ks(b,e,t)}function za(e){var t=tt[e];return function(e,r){e=qc(e);r=r==null?0:Nt(Xc(r),292);if(r&&Tt(e)){var n=(Qc(e)+"e").split("e"),i=t(n[0]+"e"+(+n[1]+r));n=(Qc(i)+"e").split("e");return+(n[0]+"e"+(+n[1]-r))}return t(e)}}var Ra=!(nr&&1/cn(new nr([,-0]))[1]==D)?Bv:function(e){return new nr(e)};function Oa(e){return function(t){var r=Ka(t);if(r==K){return sn(t)}if(r==ie){return fn(t)}return Zr(t,e(t))}}function Fa(e,t,n,i,o,s,u,l){var c=t&m;if(!c&&typeof e!="function"){throw new ot(a)}var f=i?i.length:0;if(!f){t&=~(L|x);i=o=r}u=u===r?u:Ht(Xc(u),0);l=l===r?l:Xc(l);f-=o?o.length:0;if(t&x){var v=i,d=o;i=o=r}var h=c?r:Wa(e);var p=[e,t,n,i,o,v,d,s,u,l];if(h){ms(p,h)}e=p[0];t=p[1];n=p[2];i=p[3];o=p[4];l=p[9]=p[9]===r?c?0:e.length:Ht(p[9]-f,0);if(!l&&t&(w|b)){t&=~(w|b)}if(!t||t==g){var C=va(e,t,n)}else if(t==w||t==b){C=ga(e,t,l)}else if((t==L||t==(g|L))&&!o.length){C=_a(e,t,n,i)}else{C=wa.apply(r,p)}var y=h?So:_s;return ks(y(C,p),e,t)}function ja(e,t,n,i){if(e===r||ic(e,ut[n])&&!ft.call(i,n)){return t}return e}function Pa(e,t,n,i,o,a){if(_c(e)&&_c(t)){a.set(t,e);uo(e,t,r,Pa,a);a["delete"](t)}return e}function Da(e){return Dc(e)?r:e}function Aa(e,t,n,i,o,a){var s=n&h,u=e.length,l=t.length;if(u!=l&&!(s&&l>u)){return false}var c=a.get(e);var f=a.get(t);if(c&&f){return c==t&&f==e}var v=-1,d=true,g=n&p?new Yn:r;a.set(e,t);a.set(t,e);while(++v<u){var m=e[v],C=t[v];if(i){var w=s?i(C,m,v,t,e,a):i(m,C,v,e,t,a)}if(w!==r){if(w){continue}d=false;break}if(g){if(!Rr(t,(function(e,t){if(!Yr(g,t)&&(m===e||o(m,e,n,i,a))){return g.push(t)}}))){d=false;break}}else if(!(m===C||o(m,C,n,i,a))){d=false;break}}a["delete"](e);a["delete"](t);return d}function Ia(e,t,r,n,i,o,a){switch(r){case fe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case ce:if(e.byteLength!=t.byteLength||!o(new yt(e),new yt(t))){return false}return true;case Z:case G:case J:return ic(+e,+t);case X:return e.name==t.name&&e.message==t.message;case ne:case oe:return e==t+"";case K:var s=sn;case ie:var u=n&h;s||(s=cn);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=p;a.set(e,t);var c=Aa(s(e),s(t),n,i,o,a);a["delete"](e);return c;case ae:if(wn){return wn.call(e)==wn.call(t)}}return false}function Ta(e,t,n,i,o,a){var s=n&h,u=Ba(e),l=u.length,c=Ba(t),f=c.length;if(l!=f&&!s){return false}var v=l;while(v--){var d=u[v];if(!(s?d in t:ft.call(t,d))){return false}}var p=a.get(e);var g=a.get(t);if(p&&g){return p==t&&g==e}var m=true;a.set(e,t);a.set(t,e);var C=s;while(++v<l){d=u[v];var w=e[d],y=t[d];if(i){var b=s?i(y,w,d,t,e,a):i(w,y,d,e,t,a)}if(!(b===r?w===y||o(w,y,n,i,a):b)){m=false;break}C||(C=d=="constructor")}if(m&&!C){var L=e.constructor,x=t.constructor;if(L!=x&&("constructor"in e&&"constructor"in t)&&!(typeof L=="function"&&L instanceof L&&typeof x=="function"&&x instanceof x)){m=false}}a["delete"](e);a["delete"](t);return m}function Ma(e){return Es(ys(e,r,Xs),e+"")}function Ba(e){return Ai(e,xf,Ya)}function Ha(e){return Ai(e,_f,qa)}var Wa=!sr?Bv:function(e){return sr.get(e)};function Ua(e){var t=e.name+"",r=lr[t],n=ft.call(lr,t)?r.length:0;while(n--){var i=r[n],o=i.func;if(o==null||o==e){return i.name}}return t}function Na(e){var t=ft.call(xn,"placeholder")?xn:e;return t.placeholder}function Va(){var e=xn.iteratee||jv;e=e===jv?to:e;return arguments.length?e(arguments[0],arguments[1]):e}function Za(e,t){var r=e.__data__;return ls(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ga(e){var t=xf(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,hs(i)]}return t}function $a(e,t){var n=rn(e,t);return Ki(n)?n:r}function Xa(e){var t=ft.call(e,zt),n=e[zt];try{e[zt]=r;var i=true}catch(e){}var o=ht.call(e);if(i){if(t){e[zt]=n}else{delete e[zt]}}return o}var Ya=!At?Xv:function(e){if(e==null){return[]}e=rt(e);return Lr(At(e),(function(t){return _t.call(e,t)}))};var qa=!At?Xv:function(e){var t=[];while(e){Er(t,Ya(e));e=Lt(e)}return t};var Ka=Ii;if(Jt&&Ka(new Jt(new ArrayBuffer(1)))!=fe||Qt&&Ka(new Qt)!=K||er&&Ka(er.resolve())!=te||nr&&Ka(new nr)!=ie||ir&&Ka(new ir)!=ue){Ka=function(e){var t=Ii(e),n=t==ee?e.constructor:r,i=n?js(n):"";if(i){switch(i){case cr:return fe;case Or:return K;case Fr:return te;case Hr:return ie;case vn:return ue}}return t}}function Ja(e,t,r){var n=-1,i=r.length;while(++n<i){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Nt(t,e+a);break;case"takeRight":e=Ht(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(Be);return t?t[1].split(He):[]}function es(e,t,r){t=Vo(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=Fs(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&xc(i)&&as(a,i)&&(uc(e)||sc(e))}function ts(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&ft.call(e,"index")){r.index=e.index;r.input=e.input}return r}function rs(e){return typeof e.constructor=="function"&&!ds(e)?_n(Lt(e)):{}}function ns(e,t,r){var n=e.constructor;switch(t){case ce:return Yo(e);case Z:case G:return new n(+e);case fe:return qo(e,r);case ve:case de:case he:case pe:case ge:case me:case Ce:case we:case ye:return Qo(e,r);case K:return new n;case J:case oe:return new n(e);case ne:return Ko(e);case ie:return new n;case ae:return Jo(e)}}function is(e,t){var r=t.length;if(!r){return e}var n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Me,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return uc(e)||sc(e)||!!(Et&&e&&e[Et])}function as(e,t){var r=typeof e;t=t==null?A:t;return!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&(e>-1&&e%1==0&&e<t)}function ss(e,t,r){if(!_c(r)){return false}var n=typeof t;if(n=="number"?cc(r)&&as(t,r.length):n=="string"&&t in r){return ic(r[t],e)}return false}function us(e,t){if(uc(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||Bc(e)){return true}return je.test(e)||!Fe.test(e)||t!=null&&e in rt(t)}function ls(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cs(e){var t=Ua(e),r=xn[t];if(typeof r!="function"||!(t in kn.prototype)){return false}if(e===r){return true}var n=Wa(r);return!!n&&e===n[0]}function fs(e){return!!dt&&dt in e}var vs=lt?bc:Yv;function ds(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ut;return e===r}function hs(e){return e===e&&!_c(e)}function ps(e,t){return function(n){if(n==null){return false}return n[e]===t&&(t!==r||e in rt(n))}}function gs(e){var t=Hl(e,(function(e){if(r.size===l){r.clear()}return e}));var r=t.cache;return t}function ms(e,t){var r=e[1],n=t[1],i=r|n,o=i<(g|m|_);var a=n==_&&r==w||n==_&&r==S&&e[7].length<=t[8]||n==(_|S)&&t[7].length<=t[8]&&r==w;if(!(o||a)){return e}if(n&g){e[2]=t[2];i|=r&g?0:C}var s=t[3];if(s){var u=e[3];e[3]=u?ra(u,s,t[4]):s;e[4]=u?ln(e[3],c):t[4]}s=t[5];if(s){u=e[5];e[5]=u?na(u,s,t[6]):s;e[6]=u?ln(e[5],c):t[6]}s=t[7];if(s){e[7]=s}if(n&_){e[8]=e[8]==null?t[8]:Nt(e[8],t[8])}if(e[9]==null){e[9]=t[9]}e[0]=t[0];e[1]=i;return e}function Cs(e){var t=[];if(e!=null){for(var r in rt(e)){t.push(r)}}return t}function ws(e){return ht.call(e)}function ys(e,t,n){t=Ht(t===r?e.length-1:t,0);return function(){var r=arguments,i=-1,o=Ht(r.length-t,0),a=y(o);while(++i<o){a[i]=r[t+i]}i=-1;var s=y(t+1);while(++i<t){s[i]=r[i]}s[t]=n(a);return mr(e,this,s)}}function bs(e,t){return t.length<2?e:Di(e,zo(t,0,-1))}function Ls(e,t){var n=e.length,i=Nt(t.length,n),o=ia(e);while(i--){var a=t[i];e[i]=as(a,n)?o[a]:r}return e}function xs(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}var _s=zs(So);var Ss=jt||function(e,t){return or.setTimeout(e,t)};var Es=zs(Eo);function ks(e,t,r){var n=t+"";return Es(e,is(n,Ps(Qa(n),r)))}function zs(e){var t=0,n=0;return function(){var i=Vt(),o=O-(i-n);n=i;if(o>0){if(++t>=R){return arguments[0]}}else{t=0}return e.apply(r,arguments)}}function Rs(e,t){var n=-1,i=e.length,o=i-1;t=t===r?i:t;while(++n<t){var a=Co(n,o),s=e[a];e[a]=e[n];e[n]=s}e.length=t;return e}var Os=gs((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(Pe,(function(e,r,n,i){t.push(n?i.replace(Ne,"$1"):r||e)}));return t}));function Fs(e){if(typeof e=="string"||Bc(e)){return e}var t=e+"";return t=="0"&&1/e==-D?"-0":t}function js(e){if(e!=null){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ps(e,t){wr(W,(function(r){var n="_."+r[0];if(t&r[1]&&!xr(e,n)){e.push(n)}}));return e.sort()}function Ds(e){if(e instanceof kn){return e.clone()}var t=new En(e.__wrapped__,e.__chain__);t.__actions__=ia(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function As(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Ht(Xc(t),0)}var i=e==null?0:e.length;if(!i||t<1){return[]}var o=0,a=0,s=y(Pt(i/t));while(o<i){s[a++]=zo(e,o,o+=t)}return s}function Is(e){var t=-1,r=e==null?0:e.length,n=0,i=[];while(++t<r){var o=e[t];if(o){i[n++]=o}}return i}function Ts(){var e=arguments.length;if(!e){return[]}var t=y(e-1),r=arguments[0],n=e;while(n--){t[n-1]=arguments[n]}return Er(uc(r)?ia(r):[r],zi(t,1))}var Ms=bo((function(e,t){return fc(e)?bi(e,zi(t,1,fc,true)):[]}));var Bs=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,zi(t,1,fc,true),Va(n,2)):[]}));var Hs=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,zi(t,1,fc,true),r,n):[]}));function Ws(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);return zo(e,t<0?0:t,i)}function Us(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);t=i-t;return zo(e,0,t<0?0:t)}function Ns(e,t){return e&&e.length?Mo(e,Va(t,3),true,true):[]}function Vs(e,t){return e&&e.length?Mo(e,Va(t,3),true):[]}function Zs(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&ss(e,t,r)){r=0;n=i}return Ei(e,t,r,n)}function Gs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Xc(r);if(i<0){i=Ht(n+i,0)}return Dr(e,Va(t,3),i)}function $s(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i-1;if(n!==r){o=Xc(n);o=n<0?Ht(i+o,0):Nt(o,i-1)}return Dr(e,Va(t,3),o,true)}function Xs(e){var t=e==null?0:e.length;return t?zi(e,1):[]}function Ys(e){var t=e==null?0:e.length;return t?zi(e,D):[]}function qs(e,t){var n=e==null?0:e.length;if(!n){return[]}t=t===r?1:Xc(t);return zi(e,t)}function Ks(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var i=e[t];n[i[0]]=i[1]}return n}function Js(e){return e&&e.length?e[0]:r}function Qs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Xc(r);if(i<0){i=Ht(n+i,0)}return Ar(e,t,i)}function eu(e){var t=e==null?0:e.length;return t?zo(e,0,-1):[]}var tu=bo((function(e){var t=Sr(e,Uo);return t.length&&t[0]===e[0]?Wi(t):[]}));var ru=bo((function(e){var t=ou(e),n=Sr(e,Uo);if(t===ou(n)){t=r}else{n.pop()}return n.length&&n[0]===e[0]?Wi(n,Va(t,2)):[]}));var nu=bo((function(e){var t=ou(e),n=Sr(e,Uo);t=typeof t=="function"?t:r;if(t){n.pop()}return n.length&&n[0]===e[0]?Wi(n,r,t):[]}));function iu(e,t){return e==null?"":Mt.call(e,t)}function ou(e){var t=e==null?0:e.length;return t?e[t-1]:r}function au(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i;if(n!==r){o=Xc(n);o=o<0?Ht(i+o,0):Nt(o,i-1)}return t===t?dn(e,t,o):Dr(e,Tr,o,true)}function su(e,t){return e&&e.length?co(e,Xc(t)):r}var uu=bo(lu);function lu(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function cu(e,t,r){return e&&e.length&&t&&t.length?go(e,t,Va(r,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?go(e,t,r,n):e}var vu=Ma((function(e,t){var r=e==null?0:e.length,n=pi(e,t);mo(e,Sr(t,(function(e){return as(e,r)?+e:e})).sort(ea));return n}));function du(e,t){var r=[];if(!(e&&e.length)){return r}var n=-1,i=[],o=e.length;t=Va(t,3);while(++n<o){var a=e[n];if(t(a,n,e)){r.push(a);i.push(n)}}mo(e,i);return r}function hu(e){return e==null?e:Kt.call(e)}function pu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}if(n&&typeof n!="number"&&ss(e,t,n)){t=0;n=i}else{t=t==null?0:Xc(t);n=n===r?i:Xc(n)}return zo(e,t,n)}function gu(e,t){return Oo(e,t)}function mu(e,t,r){return Fo(e,t,Va(r,2))}function Cu(e,t){var r=e==null?0:e.length;if(r){var n=Oo(e,t);if(n<r&&ic(e[n],t)){return n}}return-1}function wu(e,t){return Oo(e,t,true)}function yu(e,t,r){return Fo(e,t,Va(r,2),true)}function bu(e,t){var r=e==null?0:e.length;if(r){var n=Oo(e,t,true)-1;if(ic(e[n],t)){return n}}return-1}function Lu(e){return e&&e.length?jo(e):[]}function xu(e,t){return e&&e.length?jo(e,Va(t,2)):[]}function _u(e){var t=e==null?0:e.length;return t?zo(e,1,t):[]}function Su(e,t,n){if(!(e&&e.length)){return[]}t=n||t===r?1:Xc(t);return zo(e,0,t<0?0:t)}function Eu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);t=i-t;return zo(e,t<0?0:t,i)}function ku(e,t){return e&&e.length?Mo(e,Va(t,3),false,true):[]}function zu(e,t){return e&&e.length?Mo(e,Va(t,3)):[]}var Ru=bo((function(e){return Ao(zi(e,1,fc,true))}));var Ou=bo((function(e){var t=ou(e);if(fc(t)){t=r}return Ao(zi(e,1,fc,true),Va(t,2))}));var Fu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return Ao(zi(e,1,fc,true),r,t)}));function ju(e){return e&&e.length?Ao(e):[]}function Pu(e,t){return e&&e.length?Ao(e,Va(t,2)):[]}function Du(e,t){t=typeof t=="function"?t:r;return e&&e.length?Ao(e,r,t):[]}function Au(e){if(!(e&&e.length)){return[]}var t=0;e=Lr(e,(function(e){if(fc(e)){t=Ht(e.length,t);return true}}));return Vr(t,(function(t){return Sr(e,Br(t))}))}function Iu(e,t){if(!(e&&e.length)){return[]}var n=Au(e);if(t==null){return n}return Sr(n,(function(e){return mr(t,r,e)}))}var Tu=bo((function(e,t){return fc(e)?bi(e,t):[]}));var Mu=bo((function(e){return Ho(Lr(e,fc))}));var Bu=bo((function(e){var t=ou(e);if(fc(t)){t=r}return Ho(Lr(e,fc),Va(t,2))}));var Hu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return Ho(Lr(e,fc),r,t)}));var Wu=bo(Au);function Uu(e,t){return Wo(e||[],t||[],li)}function Nu(e,t){return Wo(e||[],t||[],_o)}var Vu=bo((function(e){var t=e.length,n=t>1?e[t-1]:r;n=typeof n=="function"?(e.pop(),n):r;return Iu(e,n)}));function Zu(e){var t=xn(e);t.__chain__=true;return t}function Gu(e,t){t(e);return e}function $u(e,t){return t(e)}var Xu=Ma((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return pi(t,e)};if(t>1||this.__actions__.length||!(i instanceof kn)||!as(n)){return this.thru(o)}i=i.slice(n,+n+(t?1:0));i.__actions__.push({func:$u,args:[o],thisArg:r});return new En(i,this.__chain__).thru((function(e){if(t&&!e.length){e.push(r)}return e}))}));function Yu(){return Zu(this)}function qu(){return new En(this.value(),this.__chain__)}function Ku(){if(this.__values__===r){this.__values__=Gc(this.value())}var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Ju(){return this}function Qu(e){var t,n=this;while(n instanceof Sn){var i=Ds(n);i.__index__=0;i.__values__=r;if(t){o.__wrapped__=i}else{t=i}var o=i;n=n.__wrapped__}o.__wrapped__=e;return t}function el(){var e=this.__wrapped__;if(e instanceof kn){var t=e;if(this.__actions__.length){t=new kn(this)}t=t.reverse();t.__actions__.push({func:$u,args:[hu],thisArg:r});return new En(t,this.__chain__)}return this.thru(hu)}function tl(){return Bo(this.__wrapped__,this.__actions__)}var rl=ua((function(e,t,r){if(ft.call(e,r)){++e[r]}else{hi(e,r,1)}}));function nl(e,t,n){var i=uc(e)?br:_i;if(n&&ss(e,t,n)){t=r}return i(e,Va(t,3))}function il(e,t){var r=uc(e)?Lr:ki;return r(e,Va(t,3))}var ol=ma(Gs);var al=ma($s);function sl(e,t){return zi(gl(e,t),1)}function ul(e,t){return zi(gl(e,t),D)}function ll(e,t,n){n=n===r?1:Xc(n);return zi(gl(e,t),n)}function cl(e,t){var r=uc(e)?wr:Li;return r(e,Va(t,3))}function fl(e,t){var r=uc(e)?yr:xi;return r(e,Va(t,3))}var vl=ua((function(e,t,r){if(ft.call(e,r)){e[r].push(t)}else{hi(e,r,[t])}}));function dl(e,t,r,n){e=cc(e)?e:Uf(e);r=r&&!n?Xc(r):0;var i=e.length;if(r<0){r=Ht(i+r,0)}return Mc(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ar(e,t,r)>-1}var hl=bo((function(e,t,r){var n=-1,i=typeof t=="function",o=cc(e)?y(e.length):[];Li(e,(function(e){o[++n]=i?mr(t,e,r):Ni(e,t,r)}));return o}));var pl=ua((function(e,t,r){hi(e,r,t)}));function gl(e,t){var r=uc(e)?Sr:oo;return r(e,Va(t,3))}function ml(e,t,n,i){if(e==null){return[]}if(!uc(t)){t=t==null?[]:[t]}n=i?r:n;if(!uc(n)){n=n==null?[]:[n]}return fo(e,t,n)}var Cl=ua((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));function wl(e,t,r){var n=uc(e)?kr:Wr,i=arguments.length<3;return n(e,Va(t,4),r,i,Li)}function yl(e,t,r){var n=uc(e)?zr:Wr,i=arguments.length<3;return n(e,Va(t,4),r,i,xi)}function bl(e,t){var r=uc(e)?Lr:ki;return r(e,Wl(Va(t,3)))}function Ll(e){var t=uc(e)?oi:Lo;return t(e)}function xl(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Xc(t)}var i=uc(e)?ai:xo;return i(e,t)}function _l(e){var t=uc(e)?si:ko;return t(e)}function Sl(e){if(e==null){return 0}if(cc(e)){return Mc(e)?hn(e):e.length}var t=Ka(e);if(t==K||t==ie){return e.size}return ro(e).length}function El(e,t,n){var i=uc(e)?Rr:Ro;if(n&&ss(e,t,n)){t=r}return i(e,Va(t,3))}var kl=bo((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&ss(e,t[0],t[1])){t=[]}else if(r>2&&ss(t[0],t[1],t[2])){t=[t[0]]}return fo(e,zi(t,1),[])}));var zl=Ft||function(){return or.Date.now()};function Rl(e,t){if(typeof t!="function"){throw new ot(a)}e=Xc(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function Ol(e,t,n){t=n?r:t;t=e&&t==null?e.length:t;return Fa(e,_,r,r,r,r,t)}function Fl(e,t){var n;if(typeof t!="function"){throw new ot(a)}e=Xc(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=r}return n}}var jl=bo((function(e,t,r){var n=g;if(r.length){var i=ln(r,Na(jl));n|=L}return Fa(e,n,t,r,i)}));var Pl=bo((function(e,t,r){var n=g|m;if(r.length){var i=ln(r,Na(Pl));n|=L}return Fa(t,n,e,r,i)}));function Dl(e,t,n){t=n?r:t;var i=Fa(e,w,r,r,r,r,r,t);i.placeholder=Dl.placeholder;return i}function Al(e,t,n){t=n?r:t;var i=Fa(e,b,r,r,r,r,r,t);i.placeholder=Al.placeholder;return i}function Il(e,t,n){var i,o,s,u,l,c,f=0,v=false,d=false,h=true;if(typeof e!="function"){throw new ot(a)}t=qc(t)||0;if(_c(n)){v=!!n.leading;d="maxWait"in n;s=d?Ht(qc(n.maxWait)||0,t):s;h="trailing"in n?!!n.trailing:h}function p(t){var n=i,a=o;i=o=r;f=t;u=e.apply(a,n);return u}function g(e){f=e;l=Ss(w,t);return v?p(e):u}function m(e){var r=e-c,n=e-f,i=t-r;return d?Nt(i,s-n):i}function C(e){var n=e-c,i=e-f;return c===r||n>=t||n<0||d&&i>=s}function w(){var e=zl();if(C(e)){return y(e)}l=Ss(w,m(e))}function y(e){l=r;if(h&&i){return p(e)}i=o=r;return u}function b(){if(l!==r){$o(l)}f=0;i=c=o=l=r}function L(){return l===r?u:y(zl())}function x(){var e=zl(),n=C(e);i=arguments;o=this;c=e;if(n){if(l===r){return g(c)}if(d){$o(l);l=Ss(w,t);return p(c)}}if(l===r){l=Ss(w,t)}return u}x.cancel=b;x.flush=L;return x}var Tl=bo((function(e,t){return yi(e,1,t)}));var Ml=bo((function(e,t,r){return yi(e,qc(t)||0,r)}));function Bl(e){return Fa(e,E)}function Hl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new ot(a)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Hl.Cache||Nn);return r}Hl.Cache=Nn;function Wl(e){if(typeof e!="function"){throw new ot(a)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ul(e){return Fl(2,e)}var Nl=Zo((function(e,t){t=t.length==1&&uc(t[0])?Sr(t[0],$r(Va())):Sr(zi(t,1),$r(Va()));var r=t.length;return bo((function(n){var i=-1,o=Nt(n.length,r);while(++i<o){n[i]=t[i].call(this,n[i])}return mr(e,this,n)}))}));var Vl=bo((function(e,t){var n=ln(t,Na(Vl));return Fa(e,L,r,t,n)}));var Zl=bo((function(e,t){var n=ln(t,Na(Zl));return Fa(e,x,r,t,n)}));var Gl=Ma((function(e,t){return Fa(e,S,r,r,r,t)}));function $l(e,t){if(typeof e!="function"){throw new ot(a)}t=t===r?t:Xc(t);return bo(e,t)}function Xl(e,t){if(typeof e!="function"){throw new ot(a)}t=t==null?0:Ht(Xc(t),0);return bo((function(r){var n=r[t],i=Go(r,0,t);if(n){Er(i,n)}return mr(e,this,i)}))}function Yl(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new ot(a)}if(_c(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return Il(e,t,{leading:n,maxWait:t,trailing:i})}function ql(e){return Ol(e,1)}function Kl(e,t){return Vl(No(t),e)}function Jl(){if(!arguments.length){return[]}var e=arguments[0];return uc(e)?e:[e]}function Ql(e){return mi(e,d)}function ec(e,t){t=typeof t=="function"?t:r;return mi(e,d,t)}function tc(e){return mi(e,f|d)}function rc(e,t){t=typeof t=="function"?t:r;return mi(e,f|d,t)}function nc(e,t){return t==null||wi(e,t,xf(t))}function ic(e,t){return e===t||e!==e&&t!==t}var oc=Ea(Ti);var ac=Ea((function(e,t){return e>=t}));var sc=Vi(function(){return arguments}())?Vi:function(e){return Sc(e)&&ft.call(e,"callee")&&!_t.call(e,"callee")};var uc=y.isArray;var lc=fr?$r(fr):Zi;function cc(e){return e!=null&&xc(e.length)&&!bc(e)}function fc(e){return Sc(e)&&cc(e)}function vc(e){return e===true||e===false||Sc(e)&&Ii(e)==Z}var dc=It||Yv;var hc=vr?$r(vr):Gi;function pc(e){return Sc(e)&&e.nodeType===1&&!Dc(e)}function gc(e){if(e==null){return true}if(cc(e)&&(uc(e)||typeof e=="string"||typeof e.splice=="function"||dc(e)||Hc(e)||sc(e))){return!e.length}var t=Ka(e);if(t==K||t==ie){return!e.size}if(ds(e)){return!ro(e).length}for(var r in e){if(ft.call(e,r)){return false}}return true}function mc(e,t){return $i(e,t)}function Cc(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?$i(e,t,r,n):!!i}function wc(e){if(!Sc(e)){return false}var t=Ii(e);return t==X||t==$||typeof e.message=="string"&&typeof e.name=="string"&&!Dc(e)}function yc(e){return typeof e=="number"&&Tt(e)}function bc(e){if(!_c(e)){return false}var t=Ii(e);return t==Y||t==q||t==V||t==re}function Lc(e){return typeof e=="number"&&e==Xc(e)}function xc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=A}function _c(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Sc(e){return e!=null&&typeof e=="object"}var Ec=dr?$r(dr):Yi;function kc(e,t){return e===t||qi(e,t,Ga(t))}function zc(e,t,n){n=typeof n=="function"?n:r;return qi(e,t,Ga(t),n)}function Rc(e){return Pc(e)&&e!=+e}function Oc(e){if(vs(e)){throw new We(o)}return Ki(e)}function Fc(e){return e===null}function jc(e){return e==null}function Pc(e){return typeof e=="number"||Sc(e)&&Ii(e)==J}function Dc(e){if(!Sc(e)||Ii(e)!=ee){return false}var t=Lt(e);if(t===null){return true}var r=ft.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ct.call(r)==pt}var Ac=hr?$r(hr):Ji;function Ic(e){return Lc(e)&&e>=-A&&e<=A}var Tc=pr?$r(pr):Qi;function Mc(e){return typeof e=="string"||!uc(e)&&Sc(e)&&Ii(e)==oe}function Bc(e){return typeof e=="symbol"||Sc(e)&&Ii(e)==ae}var Hc=gr?$r(gr):eo;function Wc(e){return e===r}function Uc(e){return Sc(e)&&Ka(e)==ue}function Nc(e){return Sc(e)&&Ii(e)==le}var Vc=Ea(io);var Zc=Ea((function(e,t){return e<=t}));function Gc(e){if(!e){return[]}if(cc(e)){return Mc(e)?pn(e):ia(e)}if(kt&&e[kt]){return an(e[kt]())}var t=Ka(e),r=t==K?sn:t==ie?cn:Uf;return r(e)}function $c(e){if(!e){return e===0?e:0}e=qc(e);if(e===D||e===-D){var t=e<0?-1:1;return t*I}return e===e?e:0}function Xc(e){var t=$c(e),r=t%1;return t===t?r?t-r:t:0}function Yc(e){return e?gi(Xc(e),0,M):0}function qc(e){if(typeof e=="number"){return e}if(Bc(e)){return T}if(_c(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_c(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=Gr(e);var r=$e.test(e);return r||Ye.test(e)?rr(e.slice(2),r?2:8):Ge.test(e)?T:+e}function Kc(e){return oa(e,_f(e))}function Jc(e){return e?gi(Xc(e),-A,A):e===0?e:0}function Qc(e){return e==null?"":Do(e)}var ef=la((function(e,t){if(ds(t)||cc(t)){oa(t,xf(t),e);return}for(var r in t){if(ft.call(t,r)){li(e,r,t[r])}}}));var tf=la((function(e,t){oa(t,_f(t),e)}));var rf=la((function(e,t,r,n){oa(t,_f(t),e,n)}));var nf=la((function(e,t,r,n){oa(t,xf(t),e,n)}));var of=Ma(pi);function af(e,t){var r=_n(e);return t==null?r:vi(r,t)}var sf=bo((function(e,t){e=rt(e);var n=-1;var i=t.length;var o=i>2?t[2]:r;if(o&&ss(t[0],t[1],o)){i=1}while(++n<i){var a=t[n];var s=_f(a);var u=-1;var l=s.length;while(++u<l){var c=s[u];var f=e[c];if(f===r||ic(f,ut[c])&&!ft.call(e,c)){e[c]=a[c]}}}return e}));var uf=bo((function(e){e.push(r,Pa);return mr(zf,r,e)}));function lf(e,t){return Pr(e,Va(t,3),Fi)}function cf(e,t){return Pr(e,Va(t,3),ji)}function ff(e,t){return e==null?e:Ri(e,Va(t,3),_f)}function vf(e,t){return e==null?e:Oi(e,Va(t,3),_f)}function df(e,t){return e&&Fi(e,Va(t,3))}function hf(e,t){return e&&ji(e,Va(t,3))}function pf(e){return e==null?[]:Pi(e,xf(e))}function gf(e){return e==null?[]:Pi(e,_f(e))}function mf(e,t,n){var i=e==null?r:Di(e,t);return i===r?n:i}function Cf(e,t){return e!=null&&es(e,t,Mi)}function wf(e,t){return e!=null&&es(e,t,Bi)}var yf=ya((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}e[t]=r}),kv(Fv));var bf=ya((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}if(ft.call(e,t)){e[t].push(r)}else{e[t]=[r]}}),Va);var Lf=bo(Ni);function xf(e){return cc(e)?ii(e):ro(e)}function _f(e){return cc(e)?ii(e,true):no(e)}function Sf(e,t){var r={};t=Va(t,3);Fi(e,(function(e,n,i){hi(r,t(e,n,i),e)}));return r}function Ef(e,t){var r={};t=Va(t,3);Fi(e,(function(e,n,i){hi(r,n,t(e,n,i))}));return r}var kf=la((function(e,t,r){uo(e,t,r)}));var zf=la((function(e,t,r,n){uo(e,t,r,n)}));var Rf=Ma((function(e,t){var r={};if(e==null){return r}var n=false;t=Sr(t,(function(t){t=Vo(t,e);n||(n=t.length>1);return t}));oa(e,Ha(e),r);if(n){r=mi(r,f|v|d,Da)}var i=t.length;while(i--){Io(r,t[i])}return r}));function Of(e,t){return jf(e,Wl(Va(t)))}var Ff=Ma((function(e,t){return e==null?{}:vo(e,t)}));function jf(e,t){if(e==null){return{}}var r=Sr(Ha(e),(function(e){return[e]}));t=Va(t);return ho(e,r,(function(e,r){return t(e,r[0])}))}function Pf(e,t,n){t=Vo(t,e);var i=-1,o=t.length;if(!o){o=1;e=r}while(++i<o){var a=e==null?r:e[Fs(t[i])];if(a===r){i=o;a=n}e=bc(a)?a.call(e):a}return e}function Df(e,t,r){return e==null?e:_o(e,t,r)}function Af(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:_o(e,t,n,i)}var If=Oa(xf);var Tf=Oa(_f);function Mf(e,t,r){var n=uc(e),i=n||dc(e)||Hc(e);t=Va(t,4);if(r==null){var o=e&&e.constructor;if(i){r=n?new o:[]}else if(_c(e)){r=bc(o)?_n(Lt(e)):{}}else{r={}}}(i?wr:Fi)(e,(function(e,n,i){return t(r,e,n,i)}));return r}function Bf(e,t){return e==null?true:Io(e,t)}function Hf(e,t,r){return e==null?e:To(e,t,No(r))}function Wf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:To(e,t,No(n),i)}function Uf(e){return e==null?[]:Xr(e,xf(e))}function Nf(e){return e==null?[]:Xr(e,_f(e))}function Vf(e,t,n){if(n===r){n=t;t=r}if(n!==r){n=qc(n);n=n===n?n:0}if(t!==r){t=qc(t);t=t===t?t:0}return gi(qc(e),t,n)}function Zf(e,t,n){t=$c(t);if(n===r){n=t;t=0}else{n=$c(n)}e=qc(e);return Hi(e,t,n)}function Gf(e,t,n){if(n&&typeof n!="boolean"&&ss(e,t,n)){t=n=r}if(n===r){if(typeof t=="boolean"){n=t;t=r}else if(typeof e=="boolean"){n=e;e=r}}if(e===r&&t===r){e=0;t=1}else{e=$c(e);if(t===r){t=e;e=0}else{t=$c(t)}}if(e>t){var i=e;e=t;t=i}if(n||e%1||t%1){var o=Gt();return Nt(e+o*(t-e+tr("1e-"+((o+"").length-1))),t)}return Co(e,t)}var $f=ha((function(e,t,r){t=t.toLowerCase();return e+(r?Xf(t):t)}));function Xf(e){return bv(Qc(e).toLowerCase())}function Yf(e){e=Qc(e);return e&&e.replace(Ke,Qr).replace(Ut,"")}function qf(e,t,n){e=Qc(e);t=Do(t);var i=e.length;n=n===r?i:gi(Xc(n),0,i);var o=n;n-=t.length;return n>=0&&e.slice(n,o)==t}function Kf(e){e=Qc(e);return e&&ke.test(e)?e.replace(Se,en):e}function Jf(e){e=Qc(e);return e&&Ae.test(e)?e.replace(De,"\\$&"):e}var Qf=ha((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));var ev=ha((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));var tv=da("toLowerCase");function rv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;if(!t||n>=t){return e}var i=(t-n)/2;return xa(Dt(i),r)+e+xa(Pt(i),r)}function nv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;return t&&n<t?e+xa(t-n,r):e}function iv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;return t&&n<t?xa(t-n,r)+e:e}function ov(e,t,r){if(r||t==null){t=0}else if(t){t=+t}return Zt(Qc(e).replace(Ie,""),t||0)}function av(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Xc(t)}return yo(Qc(e),t)}function sv(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var uv=ha((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));function lv(e,t,n){if(n&&typeof n!="number"&&ss(e,t,n)){t=n=r}n=n===r?M:n>>>0;if(!n){return[]}e=Qc(e);if(e&&(typeof t=="string"||t!=null&&!Ac(t))){t=Do(t);if(!t&&nn(e)){return Go(pn(e),0,n)}}return e.split(t,n)}var cv=ha((function(e,t,r){return e+(r?" ":"")+bv(t)}));function fv(e,t,r){e=Qc(e);r=r==null?0:gi(Xc(r),0,e.length);t=Do(t);return e.slice(r,r+t.length)==t}function vv(e,t,n){var i=xn.templateSettings;if(n&&ss(e,t,n)){t=r}e=Qc(e);t=rf({},t,i,ja);var o=rf({},t.imports,i.imports,ja),a=xf(o),u=Xr(o,a);var l,c,f=0,v=t.interpolate||Je,d="__p += '";var h=nt((t.escape||Je).source+"|"+v.source+"|"+(v===Oe?Ve:Je).source+"|"+(t.evaluate||Je).source+"|$","g");var p="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(h,(function(t,r,n,i,o,a){n||(n=i);d+=e.slice(f,a).replace(Qe,tn);if(r){l=true;d+="' +\n__e("+r+") +\n'"}if(o){c=true;d+="';\n"+o+";\n__p += '"}if(n){d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=a+t.length;return t}));d+="';\n";var g=ft.call(t,"variable")&&t.variable;if(!g){d="with (obj) {\n"+d+"\n}\n"}else if(Ue.test(g)){throw new We(s)}d=(c?d.replace(be,""):d).replace(Le,"$1").replace(xe,"$1;");d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=xv((function(){return et(a,p+"return "+d).apply(r,u)}));m.source=d;if(wc(m)){throw m}return m}function dv(e){return Qc(e).toLowerCase()}function hv(e){return Qc(e).toUpperCase()}function pv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return Gr(e)}if(!e||!(t=Do(t))){return e}var i=pn(e),o=pn(t),a=qr(i,o),s=Kr(i,o)+1;return Go(i,a,s).join("")}function gv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.slice(0,gn(e)+1)}if(!e||!(t=Do(t))){return e}var i=pn(e),o=Kr(i,pn(t))+1;return Go(i,0,o).join("")}function mv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.replace(Ie,"")}if(!e||!(t=Do(t))){return e}var i=pn(e),o=qr(i,pn(t));return Go(i,o).join("")}function Cv(e,t){var n=k,i=z;if(_c(t)){var o="separator"in t?t.separator:o;n="length"in t?Xc(t.length):n;i="omission"in t?Do(t.omission):i}e=Qc(e);var a=e.length;if(nn(e)){var s=pn(e);a=s.length}if(n>=a){return e}var u=n-hn(i);if(u<1){return i}var l=s?Go(s,0,u).join(""):e.slice(0,u);if(o===r){return l+i}if(s){u+=l.length-u}if(Ac(o)){if(e.slice(u).search(o)){var c,f=l;if(!o.global){o=nt(o.source,Qc(Ze.exec(o))+"g")}o.lastIndex=0;while(c=o.exec(f)){var v=c.index}l=l.slice(0,v===r?u:v)}}else if(e.indexOf(Do(o),u)!=u){var d=l.lastIndexOf(o);if(d>-1){l=l.slice(0,d)}}return l+i}function wv(e){e=Qc(e);return e&&Ee.test(e)?e.replace(_e,mn):e}var yv=ha((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}));var bv=da("toUpperCase");function Lv(e,t,n){e=Qc(e);t=n?r:t;if(t===r){return on(e)?yn(e):jr(e)}return e.match(t)||[]}var xv=bo((function(e,t){try{return mr(e,r,t)}catch(e){return wc(e)?e:new We(e)}}));var _v=Ma((function(e,t){wr(t,(function(t){t=Fs(t);hi(e,t,jl(e[t],e))}));return e}));function Sv(e){var t=e==null?0:e.length,r=Va();e=!t?[]:Sr(e,(function(e){if(typeof e[1]!="function"){throw new ot(a)}return[r(e[0]),e[1]]}));return bo((function(r){var n=-1;while(++n<t){var i=e[n];if(mr(i[0],this,r)){return mr(i[1],this,r)}}}))}function Ev(e){return Ci(mi(e,f))}function kv(e){return function(){return e}}function zv(e,t){return e==null||e!==e?t:e}var Rv=Ca();var Ov=Ca(true);function Fv(e){return e}function jv(e){return to(typeof e=="function"?e:mi(e,f))}function Pv(e){return ao(mi(e,f))}function Dv(e,t){return so(e,mi(t,f))}var Av=bo((function(e,t){return function(r){return Ni(r,e,t)}}));var Iv=bo((function(e,t){return function(r){return Ni(e,r,t)}}));function Tv(e,t,r){var n=xf(t),i=Pi(t,n);if(r==null&&!(_c(t)&&(i.length||!n.length))){r=t;t=e;e=this;i=Pi(t,xf(t))}var o=!(_c(r)&&"chain"in r)||!!r.chain,a=bc(e);wr(i,(function(r){var n=t[r];e[r]=n;if(a){e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=ia(this.__actions__);i.push({func:n,args:arguments,thisArg:e});r.__chain__=t;return r}return n.apply(e,Er([this.value()],arguments))}}}));return e}function Mv(){if(or._===this){or._=gt}return this}function Bv(){}function Hv(e){e=Xc(e);return bo((function(t){return co(t,e)}))}var Wv=La(Sr);var Uv=La(br);var Nv=La(Rr);function Vv(e){return us(e)?Br(Fs(e)):po(e)}function Zv(e){return function(t){return e==null?r:Di(e,t)}}var Gv=Sa();var $v=Sa(true);function Xv(){return[]}function Yv(){return false}function qv(){return{}}function Kv(){return""}function Jv(){return true}function Qv(e,t){e=Xc(e);if(e<1||e>A){return[]}var r=M,n=Nt(e,M);t=Va(t);e-=M;var i=Vr(n,t);while(++r<e){t(r)}return i}function ed(e){if(uc(e)){return Sr(e,Fs)}return Bc(e)?[e]:ia(Os(Qc(e)))}function td(e){var t=++vt;return Qc(e)+t}var rd=ba((function(e,t){return e+t}),0);var nd=za("ceil");var id=ba((function(e,t){return e/t}),1);var od=za("floor");function ad(e){return e&&e.length?Si(e,Fv,Ti):r}function sd(e,t){return e&&e.length?Si(e,Va(t,2),Ti):r}function ud(e){return Mr(e,Fv)}function ld(e,t){return Mr(e,Va(t,2))}function cd(e){return e&&e.length?Si(e,Fv,io):r}function fd(e,t){return e&&e.length?Si(e,Va(t,2),io):r}var vd=ba((function(e,t){return e*t}),1);var dd=za("round");var hd=ba((function(e,t){return e-t}),0);function pd(e){return e&&e.length?Nr(e,Fv):0}function gd(e,t){return e&&e.length?Nr(e,Va(t,2)):0}xn.after=Rl;xn.ary=Ol;xn.assign=ef;xn.assignIn=tf;xn.assignInWith=rf;xn.assignWith=nf;xn.at=of;xn.before=Fl;xn.bind=jl;xn.bindAll=_v;xn.bindKey=Pl;xn.castArray=Jl;xn.chain=Zu;xn.chunk=As;xn.compact=Is;xn.concat=Ts;xn.cond=Sv;xn.conforms=Ev;xn.constant=kv;xn.countBy=rl;xn.create=af;xn.curry=Dl;xn.curryRight=Al;xn.debounce=Il;xn.defaults=sf;xn.defaultsDeep=uf;xn.defer=Tl;xn.delay=Ml;xn.difference=Ms;xn.differenceBy=Bs;xn.differenceWith=Hs;xn.drop=Ws;xn.dropRight=Us;xn.dropRightWhile=Ns;xn.dropWhile=Vs;xn.fill=Zs;xn.filter=il;xn.flatMap=sl;xn.flatMapDeep=ul;xn.flatMapDepth=ll;xn.flatten=Xs;xn.flattenDeep=Ys;xn.flattenDepth=qs;xn.flip=Bl;xn.flow=Rv;xn.flowRight=Ov;xn.fromPairs=Ks;xn.functions=pf;xn.functionsIn=gf;xn.groupBy=vl;xn.initial=eu;xn.intersection=tu;xn.intersectionBy=ru;xn.intersectionWith=nu;xn.invert=yf;xn.invertBy=bf;xn.invokeMap=hl;xn.iteratee=jv;xn.keyBy=pl;xn.keys=xf;xn.keysIn=_f;xn.map=gl;xn.mapKeys=Sf;xn.mapValues=Ef;xn.matches=Pv;xn.matchesProperty=Dv;xn.memoize=Hl;xn.merge=kf;xn.mergeWith=zf;xn.method=Av;xn.methodOf=Iv;xn.mixin=Tv;xn.negate=Wl;xn.nthArg=Hv;xn.omit=Rf;xn.omitBy=Of;xn.once=Ul;xn.orderBy=ml;xn.over=Wv;xn.overArgs=Nl;xn.overEvery=Uv;xn.overSome=Nv;xn.partial=Vl;xn.partialRight=Zl;xn.partition=Cl;xn.pick=Ff;xn.pickBy=jf;xn.property=Vv;xn.propertyOf=Zv;xn.pull=uu;xn.pullAll=lu;xn.pullAllBy=cu;xn.pullAllWith=fu;xn.pullAt=vu;xn.range=Gv;xn.rangeRight=$v;xn.rearg=Gl;xn.reject=bl;xn.remove=du;xn.rest=$l;xn.reverse=hu;xn.sampleSize=xl;xn.set=Df;xn.setWith=Af;xn.shuffle=_l;xn.slice=pu;xn.sortBy=kl;xn.sortedUniq=Lu;xn.sortedUniqBy=xu;xn.split=lv;xn.spread=Xl;xn.tail=_u;xn.take=Su;xn.takeRight=Eu;xn.takeRightWhile=ku;xn.takeWhile=zu;xn.tap=Gu;xn.throttle=Yl;xn.thru=$u;xn.toArray=Gc;xn.toPairs=If;xn.toPairsIn=Tf;xn.toPath=ed;xn.toPlainObject=Kc;xn.transform=Mf;xn.unary=ql;xn.union=Ru;xn.unionBy=Ou;xn.unionWith=Fu;xn.uniq=ju;xn.uniqBy=Pu;xn.uniqWith=Du;xn.unset=Bf;xn.unzip=Au;xn.unzipWith=Iu;xn.update=Hf;xn.updateWith=Wf;xn.values=Uf;xn.valuesIn=Nf;xn.without=Tu;xn.words=Lv;xn.wrap=Kl;xn.xor=Mu;xn.xorBy=Bu;xn.xorWith=Hu;xn.zip=Wu;xn.zipObject=Uu;xn.zipObjectDeep=Nu;xn.zipWith=Vu;xn.entries=If;xn.entriesIn=Tf;xn.extend=tf;xn.extendWith=rf;Tv(xn,xn);xn.add=rd;xn.attempt=xv;xn.camelCase=$f;xn.capitalize=Xf;xn.ceil=nd;xn.clamp=Vf;xn.clone=Ql;xn.cloneDeep=tc;xn.cloneDeepWith=rc;xn.cloneWith=ec;xn.conformsTo=nc;xn.deburr=Yf;xn.defaultTo=zv;xn.divide=id;xn.endsWith=qf;xn.eq=ic;xn.escape=Kf;xn.escapeRegExp=Jf;xn.every=nl;xn.find=ol;xn.findIndex=Gs;xn.findKey=lf;xn.findLast=al;xn.findLastIndex=$s;xn.findLastKey=cf;xn.floor=od;xn.forEach=cl;xn.forEachRight=fl;xn.forIn=ff;xn.forInRight=vf;xn.forOwn=df;xn.forOwnRight=hf;xn.get=mf;xn.gt=oc;xn.gte=ac;xn.has=Cf;xn.hasIn=wf;xn.head=Js;xn.identity=Fv;xn.includes=dl;xn.indexOf=Qs;xn.inRange=Zf;xn.invoke=Lf;xn.isArguments=sc;xn.isArray=uc;xn.isArrayBuffer=lc;xn.isArrayLike=cc;xn.isArrayLikeObject=fc;xn.isBoolean=vc;xn.isBuffer=dc;xn.isDate=hc;xn.isElement=pc;xn.isEmpty=gc;xn.isEqual=mc;xn.isEqualWith=Cc;xn.isError=wc;xn.isFinite=yc;xn.isFunction=bc;xn.isInteger=Lc;xn.isLength=xc;xn.isMap=Ec;xn.isMatch=kc;xn.isMatchWith=zc;xn.isNaN=Rc;xn.isNative=Oc;xn.isNil=jc;xn.isNull=Fc;xn.isNumber=Pc;xn.isObject=_c;xn.isObjectLike=Sc;xn.isPlainObject=Dc;xn.isRegExp=Ac;xn.isSafeInteger=Ic;xn.isSet=Tc;xn.isString=Mc;xn.isSymbol=Bc;xn.isTypedArray=Hc;xn.isUndefined=Wc;xn.isWeakMap=Uc;xn.isWeakSet=Nc;xn.join=iu;xn.kebabCase=Qf;xn.last=ou;xn.lastIndexOf=au;xn.lowerCase=ev;xn.lowerFirst=tv;xn.lt=Vc;xn.lte=Zc;xn.max=ad;xn.maxBy=sd;xn.mean=ud;xn.meanBy=ld;xn.min=cd;xn.minBy=fd;xn.stubArray=Xv;xn.stubFalse=Yv;xn.stubObject=qv;xn.stubString=Kv;xn.stubTrue=Jv;xn.multiply=vd;xn.nth=su;xn.noConflict=Mv;xn.noop=Bv;xn.now=zl;xn.pad=rv;xn.padEnd=nv;xn.padStart=iv;xn.parseInt=ov;xn.random=Gf;xn.reduce=wl;xn.reduceRight=yl;xn.repeat=av;xn.replace=sv;xn.result=Pf;xn.round=dd;xn.runInContext=e;xn.sample=Ll;xn.size=Sl;xn.snakeCase=uv;xn.some=El;xn.sortedIndex=gu;xn.sortedIndexBy=mu;xn.sortedIndexOf=Cu;xn.sortedLastIndex=wu;xn.sortedLastIndexBy=yu;xn.sortedLastIndexOf=bu;xn.startCase=cv;xn.startsWith=fv;xn.subtract=hd;xn.sum=pd;xn.sumBy=gd;xn.template=vv;xn.times=Qv;xn.toFinite=$c;xn.toInteger=Xc;xn.toLength=Yc;xn.toLower=dv;xn.toNumber=qc;xn.toSafeInteger=Jc;xn.toString=Qc;xn.toUpper=hv;xn.trim=pv;xn.trimEnd=gv;xn.trimStart=mv;xn.truncate=Cv;xn.unescape=wv;xn.uniqueId=td;xn.upperCase=yv;xn.upperFirst=bv;xn.each=cl;xn.eachRight=fl;xn.first=Js;Tv(xn,function(){var e={};Fi(xn,(function(t,r){if(!ft.call(xn.prototype,r)){e[r]=t}}));return e}(),{chain:false});xn.VERSION=n;wr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xn[e].placeholder=xn}));wr(["drop","take"],(function(e,t){kn.prototype[e]=function(n){n=n===r?1:Ht(Xc(n),0);var i=this.__filtered__&&!t?new kn(this):this.clone();if(i.__filtered__){i.__takeCount__=Nt(n,i.__takeCount__)}else{i.__views__.push({size:Nt(n,M),type:e+(i.__dir__<0?"Right":"")})}return i};kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}));wr(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=r==F||r==P;kn.prototype[e]=function(e){var t=this.clone();t.__iteratees__.push({iteratee:Va(e,3),type:r});t.__filtered__=t.__filtered__||n;return t}}));wr(["head","last"],(function(e,t){var r="take"+(t?"Right":"");kn.prototype[e]=function(){return this[r](1).value()[0]}}));wr(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");kn.prototype[e]=function(){return this.__filtered__?new kn(this):this[r](1)}}));kn.prototype.compact=function(){return this.filter(Fv)};kn.prototype.find=function(e){return this.filter(e).head()};kn.prototype.findLast=function(e){return this.reverse().find(e)};kn.prototype.invokeMap=bo((function(e,t){if(typeof e=="function"){return new kn(this)}return this.map((function(r){return Ni(r,e,t)}))}));kn.prototype.reject=function(e){return this.filter(Wl(Va(e)))};kn.prototype.slice=function(e,t){e=Xc(e);var n=this;if(n.__filtered__&&(e>0||t<0)){return new kn(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==r){t=Xc(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};kn.prototype.toArray=function(){return this.take(M)};Fi(kn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=xn[i?"take"+(t=="last"?"Right":""):t],a=i||/^find/.test(t);if(!o){return}xn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof kn,l=s[0],c=u||uc(t);var f=function(e){var t=o.apply(xn,Er([e],s));return i&&v?t[0]:t};if(c&&n&&typeof l=="function"&&l.length!=1){u=c=false}var v=this.__chain__,d=!!this.__actions__.length,h=a&&!v,p=u&&!d;if(!a&&c){t=p?t:new kn(this);var g=e.apply(t,s);g.__actions__.push({func:$u,args:[f],thisArg:r});return new En(g,v)}if(h&&p){return e.apply(this,s)}g=this.thru(f);return h?i?g.value()[0]:g.value():g}}));wr(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);xn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(uc(i)?i:[],e)}return this[r]((function(r){return t.apply(uc(r)?r:[],e)}))}}));Fi(kn.prototype,(function(e,t){var r=xn[t];if(r){var n=r.name+"";if(!ft.call(lr,n)){lr[n]=[]}lr[n].push({name:t,func:r})}}));lr[wa(r,m).name]=[{name:"wrapper",func:r}];kn.prototype.clone=zn;kn.prototype.reverse=Rn;kn.prototype.value=On;xn.prototype.at=Xu;xn.prototype.chain=Yu;xn.prototype.commit=qu;xn.prototype.next=Ku;xn.prototype.plant=Qu;xn.prototype.reverse=el;xn.prototype.toJSON=xn.prototype.valueOf=xn.prototype.value=tl;xn.prototype.first=xn.prototype.head;if(kt){xn.prototype[kt]=Ju}return xn};var Ln=bn();if(sr){(sr.exports=Ln)._=Ln;ar._=Ln}else{or._=Ln}}).call(y)}));var yc=function(){function e(e,t){var r,n;this.sv=e;this.storesByType={};this.storesXToType={};this.storesYToType={};(r=this.sv.selectionStoreConnector)===null||r===void 0?void 0:r.beforeUpdate();this.columns=this.getViewportColumnData(t);(n=this.sv.scrollingService)===null||n===void 0?void 0:n.unregister()}e.prototype.onColumnResize=function(e,t,r){var n;(n=this.sv.dimensionProvider)===null||n===void 0?void 0:n.setDimensionSize(e,t.detail);var i=wc.reduce(t.detail||{},(function(e,t,n){var i=Wa(r,parseInt(n,10));if(i){e[i.prop]=Object.assign(Object.assign({},i),{size:t})}return e}),{});this.sv.resize(i)};e.prototype.getViewportColumnData=function(e){var t=this;var r=[];var n=0;Ga.forEach((function(i){var o=t.sv.columnProvider.stores[i].store;if(!o.get("items").length){return}var a={colType:i,position:{x:n,y:1},contentHeight:e,fixWidth:i!=="rgCol",uuid:"".concat(t.sv.uuid,"-").concat(n),viewports:t.sv.viewportProvider.stores,dimensions:t.sv.dimensionProvider.stores,rowStores:t.sv.dataProvider.stores,colStore:o,onHeaderresize:function(e){return t.onColumnResize(i,e,o)}};if(i==="rgCol"){a.onResizeViewport=function(e){var r;return(r=t.sv.viewportProvider)===null||r===void 0?void 0:r.setViewport(e.detail.dimension,{virtualSize:e.detail.size})}}var s=t.gatherColumnData(a);var u=t.registerCol(s.position.x,i);var l=t.dataViewPort(a).reduce((function(e,r){var n=t.registerSegment(r.position);n.setLastCell(r.lastCell);var i=t.registerRow(r.position.y,r.type);var o=Object.assign(Object.assign({},r),{rowSelectionStore:i,segmentSelectionStore:n.store,ref:function(e){return t.sv.selectionStoreConnector.registerSection(e)},onSetRange:function(e){return n.setRangeArea(e.detail)},onSetTempRange:function(e){return n.setTempArea(e.detail)},onFocusCell:function(e){n.clearFocus();t.sv.selectionStoreConnector.focus(n,e.detail)}});e.push(o);return e}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:u,dataPorts:l}));n++}));return r};e.prototype.registerSegment=function(e){return this.sv.selectionStoreConnector.register(e)};e.prototype.registerRow=function(e,t){this.storesByType[t]=e;this.storesYToType[e]=t;return this.sv.selectionStoreConnector.registerRow(e).store};e.prototype.registerCol=function(e,t){this.storesByType[t]=e;this.storesXToType[e]=t;return this.sv.selectionStoreConnector.registerColumn(e).store};e.prototype.gatherColumnData=function(e){var t;var r=e.uuid;var n=e.dimensions[e.colType].store.get("realSize");var i=(t={contentWidth:n,class:e.colType},t["".concat(ll)]=e.uuid,t.contentHeight=e.contentHeight,t.key=e.colType,t.onResizeViewport=e.onResizeViewport,t);if(e.fixWidth){i.style={minWidth:"".concat(n,"px")}}var o={parent:r,colData:Ha(e.colStore),dimensionCol:e.dimensions[e.colType].store,groups:e.colStore.get("groups"),groupingDepth:e.colStore.get("groupingDepth"),onHeaderresize:e.onHeaderresize};return{prop:i,position:e.position,headerProp:o,parent:r,viewportCol:e.viewports[e.colType].store}};e.prototype.dataViewPort=function(e){var t=this;var r={rowPinStart:hc,rgRow:gc,rowPinEnd:pc};var n=0;return Za.reduce((function(i,o){var a=e.viewports[o].store.get("realCount")||o==="rgRow";var s=Object.assign(Object.assign({},e),{position:Object.assign(Object.assign({},e.position),{y:a?n:vc})});i.push(t.dataPartition(s,o,r[o],o!=="rgRow"));if(a){n++}return i}),[])};e.prototype.dataPartition=function(e,t,r,n){return{colData:e.colStore,viewportCol:e.viewports[e.colType].store,viewportRow:e.viewports[t].store,lastCell:Cc(e,t),slot:r,type:t,canDrag:!n,position:e.position,uuid:"".concat(e.uuid,"-").concat(e.position.x,"-").concat(e.position.y),dataStore:e.rowStores[t].store,dimensionCol:e.dimensions[e.colType].store,dimensionRow:e.dimensions[t].store,style:n?{height:"".concat(e.dimensions[t].store.get("realSize"),"px")}:undefined}};e.prototype.scrollToCell=function(e){for(var t in e){var r=e[t];this.sv.scrollingService.onScroll({dimension:t==="x"?"rgCol":"rgRow",coordinate:r})}};e.prototype.clearFocused=function(){this.sv.selectionStoreConnector.clearAll()};e.prototype.clearEdit=function(){this.sv.selectionStoreConnector.setEdit(false)};e.prototype.getFocused=function(){var e=this.sv.selectionStoreConnector.focusedStore;if(!e){return null}var t=this.storesXToType[e.position.x];var r=this.sv.columnProvider.getColumn(e.cell.x,t);var n=this.storesYToType[e.position.y];var i=this.sv.dataProvider.getModel(e.cell.y,n);return{column:r,model:i,cell:e.cell,colType:t,rowType:n}};e.prototype.getSelectedRange=function(){return this.sv.selectionStoreConnector.selectedRange};e.prototype.setEdit=function(e,t,r,n){var i;var o=this.storesByType;var a={x:o[r],y:o[n]};(i=this.sv.selectionStoreConnector)===null||i===void 0?void 0:i.setEditByCell(a,{x:t,y:e})};return e}();var bc=function(e){var t=e.resize,r=e.editors,n=e.rowClass,o=e.readonly,a=e.range,s=e.columns,u=e.useClipboard,l=e.columnFilter,c=e.registerElement,f=e.onEdit,v=e.onCancelEdit,d=e.onScroll;var h=[];var p=function(e){var s=[i("revogr-header",Object.assign({viewportCol:e.viewportCol},e.headerProp,{selectionStore:e.columnSelectionStore,slot:hc,columnFilter:l,canResize:t}))];e.dataPorts.forEach((function(t,l){var c;var d=e.prop.key+(l+1);var h=i("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:o,range:a,useClipboard:u,onCancelEdit:function(){return v()},onSetEdit:function(e){var t=e.detail;return f(t)}}),i("revogr-data",Object.assign({},t,(c={},c[ll]=t.uuid,c),{key:d,readonly:o,range:a,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:mc})),i("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),i("revogr-focus",{colData:t.colData,dataStore:t.dataStore,selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));s.push(h)}));h.push(i("revogr-viewport-scroll",Object.assign({},e.prop,{ref:function(t){return c(t,e.prop.key)},onScrollViewport:function(t){return d(t.detail,e.prop.key)}}),s))};for(var g=0,m=s;g<m.length;g++){var C=m[g];p(C)}return h};var Lc=function(){function e(e){this.setViewport=e;this.elements={}}e.prototype.onScroll=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,a,l;return __generator(this,(function(c){switch(c.label){case 0:for(n in this.elements){if(this.isPinnedColumn(t)&&e.dimension==="rgCol"){if(n===t||!e.delta){continue}for(i=0,o=this.elements[n];i<o.length;i++){a=o[i];a.changeScroll&&(r=a.changeScroll(e))}}else if(e.dimension==="rgCol"&&n==="headerRow"){continue}else{for(s=0,u=this.elements[n];s<u.length;s++){a=u[s];a.setScroll(e)}}}l=e;if(!r)return[3,2];return[4,r];case 1:l=c.sent();c.label=2;case 2:this.setViewport(l);return[2]}}))}))};e.prototype.isPinnedColumn=function(e){return["colPinStart","colPinEnd"].indexOf(e)>-1};e.prototype.registerElements=function(e){this.elements=e};e.prototype.registerElement=function(e,t){if(!this.elements[t]){this.elements[t]=[]}if(e){this.elements[t].push(e)}else if(this.elements[t]){delete this.elements[t]}};e.prototype.unregister=function(){delete this.elements;this.elements={}};return e}();var xc=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.dimensionProvider=r;n.stretchedColumn=null;n.scrollSize=ms(document);var i=function(e){var t=e.detail.columns;return n.applyStretch(t)};n.addEventListener("beforecolumnapplied",i);return n}t.prototype.setScroll=function(e){var t=e.type,r=e.hasScroll;var n;if(t==="rgRow"&&this.stretchedColumn&&((n=this.stretchedColumn)===null||n===void 0?void 0:n.initialSize)===this.stretchedColumn.size){if(r){this.stretchedColumn.size-=this.scrollSize;this.apply();this.dropChanges()}}};t.prototype.activateChanges=function(){var e=this;var t=function(t){var r=t.detail;return e.setScroll(r)};this.addEventListener("scrollchange",t)};t.prototype.dropChanges=function(){this.stretchedColumn=null;this.removeEventListener("scrollchange")};t.prototype.apply=function(){var e;if(!this.stretchedColumn){return}var t="rgCol";this.dimensionProvider.setDimensionSize(t,(e={},e[this.stretchedColumn.index]=this.stretchedColumn.size,e))};t.prototype.applyStretch=function(e){var t=this;this.dropChanges();var r=this.revogrid.clientWidth-1;wc.each(e,(function(e,n){var i=t.dimensionProvider.stores[n].store.get("realSize");r-=i}));if(r>0){var n=e.rgCol.length-1;var i=e.rgCol[n];var o=(i===null||i===void 0?void 0:i.size)||this.revogrid.colSize||0;var a=r+o-1;if(i&&!i.autoSize&&o<a){this.stretchedColumn={initialSize:a,index:n,size:a};this.apply();this.activateChanges()}}};return t}(Ja);function _c(e){return!!e.applyStretch}var Sc="column-drag-start";var Ec=function(){function e(){this.offset=0}e.prototype.renderAutoscroll=function(e,t){if(!t){return}this.autoscrollEl=document.createElement("div");this.autoscrollEl.classList.add("drag-auto-scroll-y");t.appendChild(this.autoscrollEl)};e.prototype.autoscroll=function(e,t,r){if(r===void 0){r="translateX"}if(!this.autoscrollEl){return}var n=10;var i=Math.min(e+n,t-3);this.autoscrollEl.style.transform="".concat(r,"(").concat(i,"px)");this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.start=function(e,t,r){var n=t.dataEl,i=t.gridRect,o=t.scrollEl,a=t.gridEl;if(r===void 0){r="left"}a.classList.add(Sc);var s=o.getBoundingClientRect();if(s){this.offset=s[r]-i[r]}this.renderAutoscroll(e,n)};e.prototype.stop=function(e){var t;e.classList.remove(Sc);if(this.element){this.element.hidden=true}this.offset=0;(t=this.autoscrollEl)===null||t===void 0?void 0:t.remove();this.autoscrollEl=undefined};e.prototype.showHandler=function(e,t,r){if(r===void 0){r="translateX"}if(!this.element){return}if(this.offset){e=Math.max(e,this.offset)}e=Math.min(e,t);this.element.style.transform="".concat(r,"(").concat(e,"px)");this.element.hidden=false};e.prototype.render=function(){var e=this;return i("div",{class:"drag-position-y",hidden:true,ref:function(t){return e.element=t}})};return e}();function kc(e,t,r){var n=new CustomEvent(t,{detail:r,cancelable:true,bubbles:true});e===null||e===void 0?void 0:e.dispatchEvent(n);return n}var zc="column-click";var Rc="column-mouse-move";var Oc="column-drag-end";var Fc="before-column-drag-end";var jc="column-drag-start";var Pc=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;n.moveFunc=b((function(e){return n.doMove(e)}),5);n.staticDragData=null;n.dragData=null;n.localSubscriptions={};n.orderUi=new Ec;t.registerVNode([n.orderUi.render()]);t.classList.add("column-draggable");n.localSubscriptions["mouseleave"]={target:document,callback:function(e){return n.onMouseOut(e)}};n.localSubscriptions["mouseup"]={target:document,callback:function(e){return n.onMouseUp(e)}};n.localSubscriptions["mousemove"]={target:document,callback:function(e){return n.move(e)}};n.addEventListener(zc,(function(e){var t=e.detail;return n.dragStart(t)}));return n}t.prototype.dragStart=function(e){var t=e.event,r=e.data;if(t.defaultPrevented){return}var n=kc(this.revogrid,jc,r).defaultPrevented;if(n){return}this.clearOrder();var i=this.localSubscriptions,o=i.mouseleave,a=i.mouseup,s=i.mousemove;o.target.addEventListener("mouseleave",o.callback);a.target.addEventListener("mouseup",a.callback);var u=t.target.closest("revogr-header");var l=t.target.closest("revogr-viewport-scroll");if(!u||!l){return}if(es(r)){return}var c=this.getDimension(r.pin||"rgCol");var f=this.revogrid.getBoundingClientRect();var v=u.getBoundingClientRect();var d=bs(c,Dc(t.x,f.left,v.left-f.left));this.staticDragData={startPos:t.x,startItem:d,data:r,dataEl:u,scrollEl:l,gridEl:this.revogrid,cols:c};this.dragData=this.getData(this.staticDragData);s.target.addEventListener("mousemove",s.callback);this.orderUi.start(t,Object.assign(Object.assign({},this.dragData),this.staticDragData))};t.prototype.doMove=function(e){if(!this.staticDragData){return}var t=this.dragData=this.getData(this.staticDragData);if(!t){return}var r=this.staticDragData.startPos;if(Math.abs(r-e.x)>10){var n=Dc(e.x,this.dragData.gridRect.left,this.dragData.scrollOffset);var i=bs(this.staticDragData.cols,n);this.orderUi.autoscroll(n,t.elRect.width);this.orderUi.showHandler(i.end+t.scrollOffset,t.gridRect.width)}};t.prototype.move=function(e){kc(this.revogrid,Rc,Object.assign({},e));this.moveFunc(e)};t.prototype.onMouseOut=function(e){this.clearOrder()};t.prototype.onMouseUp=function(e){if(this.dragData){var t=Dc(e.x,this.dragData.gridRect.left,this.dragData.scrollOffset);if(t<0){t=0}var r=bs(this.staticDragData.cols,t);var n=this.providers.column.stores[this.dragData.type].store;var i=__spreadArray([],n.get("items"),true);var o=kc(this.revogrid,Fc,Object.assign(Object.assign({},this.staticDragData),{startPosition:this.staticDragData.startItem,newPosition:r,newItem:n.get("source")[i[this.staticDragData.startItem.itemIndex]]})).defaultPrevented;if(!o){var a=i.splice(this.staticDragData.startItem.itemIndex,1);i.splice.apply(i,__spreadArray([r.itemIndex,0],a,false));n.set("items",i)}kc(this.revogrid,Oc,this.dragData)}this.clearOrder()};t.prototype.clearLocalSubscriptions=function(){Qo(this.localSubscriptions,(function(e,t){var r=e.target,n=e.callback;return r.removeEventListener(t,n)}))};t.prototype.clearOrder=function(){this.staticDragData=null;this.dragData=null;this.clearLocalSubscriptions();this.orderUi.stop(this.revogrid)};t.prototype.clearSubscriptions=function(){e.prototype.clearSubscriptions.call(this);this.clearLocalSubscriptions()};t.prototype.getData=function(e){var t=e.gridEl,r=e.dataEl,n=e.data;var i=t.getBoundingClientRect();var o=r.getBoundingClientRect();var a=o.left-i.left;return{elRect:o,gridRect:i,type:n.pin||"rgCol",scrollOffset:a}};t.prototype.getDimension=function(e){return this.providers.dimension.stores[e].getCurrentState()};return t}(Ja);function Dc(e,t,r){return e-t-r}var Ac=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revo-grid[theme=default]{font-size:12px}revo-grid[theme=default] revogr-header{text-align:center;line-height:30px;background-color:#f8f9fa}revo-grid[theme=default] revogr-header .group-rgRow{box-shadow:none}revo-grid[theme=default] revogr-header .header-rgRow,revo-grid[theme=default] revogr-header .group-rgRow{text-transform:uppercase;font-size:12px;color:#61656a}revo-grid[theme=default] revogr-header .header-rgRow{height:30px;box-shadow:0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell{box-shadow:-1px 0 0 0 #c0c0c0, -1px 0 0 0 #c0c0c0 inset, 0 -1px 0 0 #c0c0c0, 0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] .rowHeaders{background-color:#f8f9fa}revo-grid[theme=default] .rowHeaders revogr-data .rgCell{color:#61656a;box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] .rowHeaders revogr-header{box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart revogr-data .rgRow .rgCell:last-child{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinEnd,revo-grid[theme=default] revogr-viewport-scroll.colPinEnd revogr-header{box-shadow:1px 0 0 #c0c0c0 inset}revo-grid[theme=default] .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset, 0 -1px 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data{text-align:center}revo-grid[theme=default] revogr-data .rgRow{line-height:27px;box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] revogr-data .rgCell{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgCell.disabled{background-color:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=material]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=material] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=material] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=material] revogr-header .header-rgRow{height:50px}revo-grid[theme=material] revogr-data{text-align:left}revo-grid[theme=material] revogr-data .rgRow{line-height:42px}revo-grid[theme=material] revogr-data .rgCell{padding:0 15px}revo-grid[theme=material] .viewports{width:100%}revo-grid[theme=material] .rowHeaders{background-color:#f7faff}revo-grid[theme=material] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=material] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=material] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=material] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=material] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=material] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=material] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=material] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=darkMaterial]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkMaterial] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkMaterial] revogr-header .header-rgRow{height:50px}revo-grid[theme=darkMaterial] revogr-data{text-align:left}revo-grid[theme=darkMaterial] revogr-data .rgRow{line-height:42px}revo-grid[theme=darkMaterial] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkMaterial] .viewports{width:100%}revo-grid[theme=darkMaterial] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkMaterial] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkMaterial] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkMaterial] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkMaterial] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=darkCompact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkCompact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkCompact] revogr-header .header-rgRow{height:45px}revo-grid[theme=darkCompact] revogr-data{text-align:left}revo-grid[theme=darkCompact] revogr-data .rgRow{line-height:32px}revo-grid[theme=darkCompact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkCompact] .viewports{width:100%}revo-grid[theme=darkCompact] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkCompact] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkCompact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkCompact] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkCompact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkCompact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=compact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=compact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=compact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=compact] revogr-header .header-rgRow{height:45px}revo-grid[theme=compact] revogr-data{text-align:left}revo-grid[theme=compact] revogr-data .rgRow{line-height:32px}revo-grid[theme=compact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=compact] .viewports{width:100%}revo-grid[theme=compact] .rowHeaders{background-color:#f7faff}revo-grid[theme=compact] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=compact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=compact] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=compact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=compact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=compact] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=compact] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=compact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=compact] revo-dropdown .rv-dr-root{padding:0px 9px}revo-grid{display:block;height:100%;font-family:Helvetica, Arial, Sans-Serif, serif;font-size:14px;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;width:100%;height:100%}revo-grid.column-draggable.column-drag-start:hover,revo-grid.column-draggable.column-drag-start *:hover{cursor:grabbing}revo-grid .footer-wrapper,revo-grid .header-wrapper{width:100%}revo-grid .footer-wrapper revogr-data,revo-grid .header-wrapper revogr-data{z-index:3}revo-grid revo-dropdown{width:100%}revo-grid revo-dropdown .rv-dr-root{max-height:100%}revo-grid revo-dropdown.shrink label{opacity:0}revo-grid .viewports{max-height:100%;display:flex;flex-direction:row;align-items:flex-start;max-width:100%}revo-grid .main-viewport{flex-grow:1;height:0;display:flex;flex-direction:row}revo-grid .draggable{position:fixed;height:30px;line-height:30px;background:#fff;border-radius:3px;display:block;z-index:100;margin-top:5px;margin-right:-20px;box-shadow:0 4px 20px 0 rgba(0, 0, 0, 0.15);padding-left:20px;padding-right:5px}revo-grid .draggable.hidden{display:none}revo-grid .draggable .revo-alt-icon{background-color:black;position:absolute;left:5px;top:10px}revo-grid .draggable-wrapper.hidden{display:none}revo-grid .drag-position{position:absolute;left:0;right:0;height:1px;z-index:2;background:gray}revo-grid .drag-position-y{position:absolute;top:0;left:0;bottom:0;width:1px;z-index:2;background:gray}revo-grid .drag-auto-scroll-y{pointer-events:none;position:absolute;left:0;top:0;height:50px;width:1px}revo-grid .clipboard{position:absolute;left:0;top:0}revo-grid revogr-scroll-virtual{position:relative}revo-grid revogr-scroll-virtual.vertical,revo-grid revogr-scroll-virtual.horizontal{z-index:3}";var Ic=e("revo_grid",function(){function e(e){o(this,e);this.beforeedit=a(this,"beforeedit",7);this.beforerangeedit=a(this,"beforerangeedit",7);this.afteredit=a(this,"afteredit",7);this.beforeautofill=a(this,"beforeautofill",7);this.beforeaange=a(this,"beforeaange",7);this.afterfocus=a(this,"afterfocus",7);this.roworderchanged=a(this,"roworderchanged",7);this.beforesourcesortingapply=a(this,"beforesourcesortingapply",7);this.beforesortingapply=a(this,"beforesortingapply",7);this.beforesorting=a(this,"beforesorting",7);this.rowdragstart=a(this,"rowdragstart",7);this.headerclick=a(this,"headerclick",7);this.beforecellfocus=a(this,"beforecellfocus",7);this.beforefocuslost=a(this,"beforefocuslost",7);this.beforesourceset=a(this,"beforesourceset",7);this.aftersourceset=a(this,"aftersourceset",7);this.beforecolumnsset=a(this,"beforecolumnsset",7);this.beforecolumnapplied=a(this,"beforecolumnapplied",7);this.aftercolumnsset=a(this,"aftercolumnsset",7);this.beforefilterapply=a(this,"beforefilterapply",7);this.beforefiltertrimmed=a(this,"beforefiltertrimmed",7);this.beforetrimmed=a(this,"beforetrimmed",7);this.aftertrimmed=a(this,"aftertrimmed",7);this.viewportscroll=a(this,"viewportscroll",7);this.beforeexport=a(this,"beforeexport",7);this.beforeeditstart=a(this,"beforeeditstart",7);this.aftercolumnresize=a(this,"aftercolumnresize",7);this.frameSize=1;this.rowSize=0;this.colSize=100;this.range=false;this.readonly=false;this.resize=false;this.canFocus=true;this.useClipboard=true;this.columns=[];this.source=[];this.pinnedTopSource=[];this.pinnedBottomSource=[];this.rowDefinitions=[];this.editors={};this.columnTypes={};this.theme="default";this.rowClass="";this.autoSizeColumn=false;this.filter=false;this.canMoveColumns=false;this.trimmedRows={};this.exporting=false;this.stretch=true;this.extraElements=[];this.uuid=null;this.viewport=null;this.internalPlugins=[];this.subscribers={}}e.prototype.refresh=function(e){if(e===void 0){e="all"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.dataProvider.refresh(e);return[2]}))}))};e.prototype.scrollToRow=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgRow"});return[4,this.scrollToCoordinate({y:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnIndex=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnProp=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t=this.columnProvider.getColumnIndexByProp(e,"rgCol");if(t<0){return[2]}r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:r})];case 1:n.sent();return[2]}}))}))};e.prototype.updateColumns=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.columnProvider.updateColumns(e);return[2]}))}))};e.prototype.addTrimmed=function(e,t,r){if(t===void 0){t="external"}if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n;var i;return __generator(this,(function(o){n=this.beforetrimmed.emit({trimmed:e,trimmedType:t,type:r});if(n.defaultPrevented){return[2,n]}this.dataProvider.setTrimmed((i={},i[t]=n.detail.trimmed,i),r);this.aftertrimmed.emit();return[2,n]}))}))};e.prototype.scrollToCoordinate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.viewport)===null||t===void 0?void 0:t.scrollToCell(e);return[2]}))}))};e.prototype.setCellEdit=function(e,t,r){if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n,i,o;return __generator(this,(function(a){switch(a.label){case 0:i=ts.getColumnByProp(this.columns,t);if(!i){return[2]}return[4,ws()];case 1:a.sent();o=i.pin||"rgCol";(n=this.viewport)===null||n===void 0?void 0:n.setEdit(e,this.columnProvider.getColumnIndexByProp(t,o),o,r);return[2]}}))}))};e.prototype.registerVNode=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.extraElements).push.apply(t,e);this.extraElements=__spreadArray([],this.extraElements,true);return[2]}))}))};e.prototype.getSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store.get("source")]}))}))};e.prototype.getVisibleSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ha(this.dataProvider.stores[e].store)]}))}))};e.prototype.getSourceStore=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store]}))}))};e.prototype.getColumnStore=function(e){if(e===void 0){e="rgCol"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.columnProvider.stores[e].store]}))}))};e.prototype.updateColumnSorting=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.columnProvider.updateColumnSorting(e,t,r,n)]}))}))};e.prototype.clearSorting=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.columnProvider.clearSorting();return[2]}))}))};e.prototype.getColumns=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnProvider.getColumns()]}))}))};e.prototype.clearFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){r=(e=this.viewport)===null||e===void 0?void 0:e.getFocused();n=this.beforefocuslost.emit(r);if(n.defaultPrevented){return[2]}this.selectionStoreConnector.clearAll();(t=this.viewport)===null||t===void 0?void 0:t.clearFocused();return[2]}))}))};e.prototype.getPlugins=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,__spreadArray([],this.internalPlugins,true)]}))}))};e.prototype.getFocused=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getFocused()]}))}))};e.prototype.getSelectedRange=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getSelectedRange()]}))}))};e.prototype.handleOutsideClick=function(e){var t=e.target;if(!(t===null||t===void 0?void 0:t.closest("[".concat(ll,'="').concat(this.uuid,'"]')))){this.clearFocus()}};e.prototype.onRowDragStarted=function(e){var t;e.cancelBubble=true;var r=this.rowdragstart.emit(e.detail);if(r.defaultPrevented){e.preventDefault();return}(t=this.orderService)===null||t===void 0?void 0:t.start(this.element,Object.assign(Object.assign({},e.detail),r.detail))};e.prototype.onRowDragEnd=function(){var e;(e=this.orderService)===null||e===void 0?void 0:e.end()};e.prototype.onRowDrag=function(e){var t=e.detail;var r;(r=this.orderService)===null||r===void 0?void 0:r.move(t)};e.prototype.onRowMouseMove=function(e){var t;e.cancelBubble=true;(t=this.orderService)===null||t===void 0?void 0:t.moveTip(e.detail)};e.prototype.onBeforeEdit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(i){switch(i.label){case 0:e.cancelBubble=true;t=this.beforeedit.emit(e.detail),r=t.defaultPrevented,n=t.detail;return[4,ws()];case 1:i.sent();if(!r){this.dataProvider.setCellData(n);this.afteredit.emit(n)}return[2]}}))}))};e.prototype.onBeforeRangeEdit=function(e){e.cancelBubble=true;var t=this.beforerangeedit.emit(e.detail).defaultPrevented;if(t){e.preventDefault();return}this.afteredit.emit(e.detail)};e.prototype.onRangeChanged=function(e){e.cancelBubble=true;var t=this.beforeaange.emit(e.detail);if(t.defaultPrevented){e.preventDefault()}var r=this.beforeautofill.emit(e.detail);if(r.defaultPrevented){return}};e.prototype.onRowDropped=function(e){e.cancelBubble=true;var t=this.roworderchanged.emit(e.detail).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onHeaderClick=function(e){var t=this.headerclick.emit(Object.assign(Object.assign({},e.detail.column),{originalEvent:e.detail.originalEvent})).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onCellFocus=function(e){e.cancelBubble=true;var t=this.beforecellfocus.emit(e.detail).defaultPrevented;if(!this.canFocus||t){e.preventDefault()}};e.prototype.onCellStoreFocus=function(e){this.selectionStoreConnector.beforeNextFocusCell(e.detail)};e.prototype.columnChanged=function(e){if(e===void 0){e=[]}this.dimensionProvider.dropColumns();var t=ts.getColumns(e,0,this.columnTypes);this.beforecolumnsset.emit(t);for(var r=0,n=Ga;r<n.length;r++){var i=n[r];var o=t.columns[i];this.dimensionProvider.setColumns(i,o.length,ts.getSizes(o),i!=="rgCol")}this.beforecolumnapplied.emit(t);var a=this.columnProvider.setColumns(t);this.aftercolumnsset.emit({columns:a,order:this.columnProvider.order})};e.prototype.themeChanged=function(e){this.themeService.register(e);this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow");this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")};e.prototype.dataChanged=function(e){if(e===void 0){e=[]}var t=__spreadArray([],e,true);var r=this.beforesourceset.emit({type:"rgRow",source:t});t=r.detail.source;t=this.dataProvider.setData(t,"rgRow");this.aftersourceset.emit({type:"rgRow",source:t})};e.prototype.dataBottomChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinEnd")};e.prototype.dataTopChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinStart")};e.prototype.rowDefChanged=function(e){var t=this;if(e===void 0){e=[]}if(!e.length){return}var r=Go(e,(function(e,t){if(!e[t.type]){e[t.type]={}}if(t.size){if(!e[t.type].sizes){e[t.type].sizes={}}e[t.type].sizes[t.index]=t.size}return e}),{});Qo(r,(function(e,r){if(e.sizes){t.dimensionProvider.setDimensionSize(r,e.sizes)}}))};e.prototype.trimmedRowsChanged=function(e){if(e===void 0){e={}}this.addTrimmed(e)};e.prototype.groupingChanged=function(e){if(e===void 0){e={}}var t;for(var r=0,n=this.internalPlugins;r<n.length;r++){var i=n[r];var o=i;if(o.setGrouping){t=o;break}}if(!t){return}t.setGrouping(e||{})};e.prototype.applyStretch=function(e){if(e==="false"){e=false}var t=this.internalPlugins.filter((function(e){return _c(e)}))[0];if(e){if(!t){this.internalPlugins.push(new xc(this.element,this.dimensionProvider))}else{t.applyStretch(this.columnProvider.getRawColumns())}}else if(t){var r=this.internalPlugins.indexOf(t);this.internalPlugins.splice(r,1)}};e.prototype.connectedCallback=function(){var e=this;this.viewportProvider=new Ws;this.themeService=new z({rowSize:this.rowSize});this.dimensionProvider=new Es(this.viewportProvider);this.columnProvider=new ts;this.dataProvider=new rs(this.dimensionProvider);this.uuid="".concat((new Date).getTime(),"-rvgrid");var t={data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector};if(this.autoSizeColumn){this.internalPlugins.push(new Vs(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},typeof this.autoSizeColumn==="object"?this.autoSizeColumn:undefined))}if(this.filter){this.internalPlugins.push(new au(this.element,this.uuid,typeof this.filter==="object"?this.filter:undefined))}if(this.exporting){this.internalPlugins.push(new ql(this.element))}this.internalPlugins.push(new qu(this.element));if(this.plugins){this.plugins.forEach((function(r){e.internalPlugins.push(new r(e.element,t))}))}if(this.canMoveColumns){this.internalPlugins.push(new Pc(this.element,t))}this.internalPlugins.push(new tc(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider}));this.applyStretch(this.stretch);this.themeChanged(this.theme);this.columnChanged(this.columns);this.dataChanged(this.source);this.dataTopChanged(this.pinnedTopSource);this.dataBottomChanged(this.pinnedBottomSource);this.trimmedRowsChanged(this.trimmedRows);this.rowDefChanged(this.rowDefinitions);this.groupingChanged(this.grouping);this.selectionStoreConnector=new dc;this.scrollingService=new Lc((function(t){e.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension});e.viewportscroll.emit(t)}));this.subscribers={click:this.handleOutsideClick.bind(this)};for(var r in this.subscribers){document.addEventListener(r,this.subscribers[r])}};e.prototype.disconnectedCallback=function(){Qo(this.internalPlugins,(function(e){return e.destroy()}));this.internalPlugins=[];for(var e in this.subscribers){document.removeEventListener(e,this.subscribers[e]);delete this.subscribers[e]}};e.prototype.render=function(){var e;var t=this;var r=this.dimensionProvider.stores["rgRow"].store.get("realSize");this.viewport=new yc({columnProvider:this.columnProvider,dataProvider:this.dataProvider,dimensionProvider:this.dimensionProvider,viewportProvider:this.viewportProvider,uuid:this.uuid,scrollingService:this.scrollingService,orderService:this.orderService,selectionStoreConnector:this.selectionStoreConnector,resize:function(e){return t.aftercolumnresize.emit(e)}},r);var n=[];if(this.rowHeaders){var o=this.viewport.columns[0];n.push(i("revogr-row-headers",{height:r,resize:this.resize,dataPorts:o.dataPorts,headerProp:o.headerProp,uiid:o.prop[ll],rowHeaderColumn:typeof this.rowHeaders==="object"?this.rowHeaders:undefined,onScrollViewport:function(e){var r=e.detail;return t.scrollingService.onScroll(r,"headerRow")},onElementToScroll:function(e){var r=e.detail;return t.scrollingService.registerElement(r,"headerRow")}}))}n.push(i(bc,{columnFilter:!!this.filter,resize:this.resize,readonly:this.readonly,range:this.range,rowClass:this.rowClass,editors:this.editors,useClipboard:this.useClipboard,columns:this.viewport.columns,onCancelEdit:function(){t.selectionStoreConnector.setEdit(false)},onEdit:function(e){var r=t.beforeeditstart.emit(e);if(!r.defaultPrevented){t.selectionStoreConnector.setEdit(e.val)}},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},onScroll:function(e){return t.scrollingService.onScroll(e)}}));return i(s,Object.assign({},(e={},e["".concat(ll)]=this.uuid,e)),i(ic,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:function(e){return t.orderService=e},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},nakedClick:function(){return t.viewport.clearEdit()},onScroll:function(e){return t.scrollingService.onScroll(e)}},n),this.extraElements)};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}},enumerable:false,configurable:true});return e}());Ic.style=Ac;var Tc=function(){function e(e,t){var r=this;this.dataStore=e;this.source=t;this.unsubscribe=[];this.hasGrouping=false;this.unsubscribe.push(t.onChange("source",(function(e){return r.checkGrouping(e)})));this.checkGrouping(t.get("source"))}Object.defineProperty(e.prototype,"columns",{get:function(){return Ha(this.source)},enumerable:false,configurable:true});e.prototype.checkGrouping=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(Ml(n)){this.hasGrouping=true;return}this.hasGrouping=false}};e.prototype.isReadOnly=function(e,t){var r;var n=(r=this.columns[t])===null||r===void 0?void 0:r.readonly;if(typeof n==="function"){var i=this.rowDataModel(e,t);return n(i)}return n};e.doMerge=function(e,t){var r=Object.assign(Object.assign({},t),e);if(t.class){if(typeof t.class==="object"&&typeof r.class==="object"){r.class=Object.assign(Object.assign({},t.class),r.class)}else if(typeof t.class==="string"&&typeof r.class==="object"){r.class[t.class]=true}else if(typeof r.class==="string"){r.class+=" "+t.class}}if(t.style){r.style=Object.assign(Object.assign({},t.style),r.style)}return r};e.prototype.mergeProperties=function(t,r,n){var i;var o;var a=(i={},i[fl]=true,i[cl]=this.isReadOnly(t,r),i);var s=Object.assign(Object.assign({},n),{class:a});var u=(o=this.columns[r])===null||o===void 0?void 0:o.cellProperties;if(u){var l=this.rowDataModel(t,r);var c=u(l);if(!c){return s}return e.doMerge(s,c)}return s};e.prototype.customRenderer=function(e,t,r){var n;var o=(n=this.columns[t])===null||n===void 0?void 0:n.cellTemplate;if(o){return o(i,r)}return};e.prototype.getRowClass=function(e,t){var r=Wa(this.dataStore,e)||{};return r[t]||""};e.prototype.getCellData=function(t,r){var n=this.rowDataModel(t,r);return e.getData(n.model[n.prop])};e.prototype.getSaveData=function(e,t,r){if(typeof r==="undefined"){r=this.getCellData(e,t)}var n=this.rowDataModel(e,t);return{prop:n.prop,rowIndex:e,val:r,model:n.model,type:this.dataStore.get("type")}};e.prototype.getCellEditor=function(e,t,r){var n;var i=(n=this.columns[t])===null||n===void 0?void 0:n.editor;if(!i){return undefined}if(typeof i==="string"){return r[i]}return i};e.prototype.rowDataModel=function(e,t){var r=this.columns[t];var n=r===null||r===void 0?void 0:r.prop;var i=Wa(this.dataStore,e)||{};return{prop:n,model:i,data:this.dataStore.get("source"),column:r,rowIndex:e}};e.prototype.getRangeData=function(e){var t={};var r=e.oldProps.length;var n=this.copyRangeArray(e.oldRange,e.oldProps,this.dataStore);var i=n.length;for(var o=e.newRange.y,a=0;o<e.newRange.y1+1;o++,a++){var s=n[a%i];for(var u=e.newRange.x,l=0;u<e.newRange.x1+1;u++,l++){if(o>=e.oldRange.y&&o<=e.oldRange.y1&&u>=e.oldRange.x&&u<=e.oldRange.x1){continue}var c=this.columns[u].prop;var f=l%r;if(!this.isReadOnly(o,u)){if(!t[o]){t[o]={}}t[o][c]=s[f]}}}return t};e.prototype.getTransformedDataToApply=function(e,t){var r={};var n=t.length;var i=this.columns.length;var o=this.dataStore.get("items").length;var a=e.y;var s=0;for(var u=0;a<o&&u<n;a++,u++){var l=t[u%n];var c=(l===null||l===void 0?void 0:l.length)||0;var f=e.x;for(var v=0;f<i&&v<c;f++,v++){var d=this.columns[f].prop;var h=v%i;if(!this.isReadOnly(a,f)){if(!r[a]){r[a]={}}r[a][d]=l[h]}}s=Math.max(s,f-1)}var p=uc(e,{y:a-1,x:s});return{changed:r,range:p}};e.prototype.applyRangeData=function(e){var t={};for(var r in e){var n=t[r]=Wa(this.dataStore,parseInt(r,10));for(var i in e[r]){n[i]=e[r][i]}}Ua(this.dataStore,t)};e.prototype.getRangeStaticData=function(e,t){var r={};for(var n=e.y,i=0;n<e.y1+1;n++,i++){for(var o=e.x,a=0;o<e.x1+1;o++,a++){var s=this.columns[o].prop;if(!this.isReadOnly(n,o)){if(!r[n]){r[n]={}}r[n][s]=t}}}return r};e.prototype.copyRangeArray=function(e,t,r){var n=[];for(var i=e.y;i<e.y1+1;i++){var o=[];for(var a=0,s=t;a<s.length;a++){var u=s[a];var l=Wa(r,i);o.push(l[u])}n.push(o)}return n};e.getData=function(e){if(typeof e==="undefined"||e===null){return""}return e.toString()};e.prototype.destroy=function(){this.unsubscribe.forEach((function(e){return e()}))};return e}();var Mc=function(e){var t=e.model,r=e.canDrag,n=e.onDragStart;var o=[];if(t.column.rowDrag&&Bc(t.column.rowDrag,t)){if(r){o.push(i("span",{class:ml,onMouseDown:function(e){return n(e)}},i("span",{class:gl})))}else{o.push(i("span",{class:ml}))}}o.push("".concat(Tc.getData(t.model[t.prop])));return o};function Bc(e,t){if(typeof e==="function"){return e(t)}return!!e}var Hc=10;var Wc=function(e,t){var r=e.rowClass,n=e.size,o=e.start,a=e.style,s=e.depth;return i("div",{class:"rgRow ".concat(r||""),style:Object.assign(Object.assign({},a),{height:"".concat(n,"px"),transform:"translateY(".concat(o,"px)"),paddingLeft:s?"".concat(Hc*s,"px"):undefined})},t)};function Uc(e,t,r){var n=new CustomEvent(Pl,{detail:{model:t,virtualIndex:r},cancelable:true,bubbles:true});e.target.dispatchEvent(n)}var Nc=function(e){var t;var r=e.model,n=e.itemIndex,o=e.hasExpand,a=e.groupingCustomRenderer;var s=r[El];var u=r[Ol];var l=parseInt(r[Sl],10)||0;if(!o){return i(Wc,Object.assign({},e,{rowClass:"groupingRow",depth:l}))}if(a){return i(Wc,Object.assign({},e,{rowClass:"groupingRow",depth:l}),i("div",{onClick:function(e){return Uc(e,r,n)}},a(i,{name:s,itemIndex:n,expanded:u,depth:l})))}return i(Wc,Object.assign({},e,{rowClass:"groupingRow",depth:l}),i("button",{class:(t={},t[jl]=true,t),onClick:function(e){return Uc(e,r,n)}},i("svg",{"aria-hidden":"true",style:{transform:"rotate(".concat(!u?-90:0,"deg)")},focusable:"false",viewBox:"0 0 448 512"},i("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))),s)};var Vc=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-data{display:block;width:100%;position:relative}revogr-data .rgRow{position:absolute;width:100%;left:0}revogr-data .rgRow.groupingRow{font-weight:600}revogr-data .rgRow.groupingRow .group-expand{width:25px;height:100%;max-height:25px;margin-right:2px;background-color:transparent;border-color:transparent}revogr-data .rgRow.groupingRow .group-expand svg{width:7px}revogr-data .revo-draggable{border:none;height:32px;display:inline-flex;outline:0;padding:0;font-size:0.8125rem;box-sizing:border-box;align-items:center;white-space:nowrap;vertical-align:middle;justify-content:center;text-decoration:none;width:24px;height:100%;cursor:pointer}revogr-data .revo-draggable>.revo-drag-icon{vertical-align:middle;display:inline-block;pointer-events:none;transition:background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}revogr-data .rgCell{top:0;position:absolute;box-sizing:border-box;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}revogr-data .rgCell.align-center{text-align:center}revogr-data .rgCell.align-left{text-align:left}revogr-data .rgCell.align-right{text-align:right}";var Zc=e("revogr_data",function(){function e(e){o(this,e);this.dragStartCell=a(this,"dragStartCell",7);this.beforerowrender=a(this,"beforerowrender",7)}e.prototype.onStoreChange=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new Tc(this.dataStore,this.colData)};e.prototype.connectedCallback=function(){this.onStoreChange()};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy()};e.prototype.render=function(){var e;var t=this.viewportRow.get("items");var r=this.viewportCol.get("items");if(!this.columnService.columns.length||!t.length||!r.length){return""}var n=(e=this.rowSelectionStore)===null||e===void 0?void 0:e.get("range");var o=[];var a=this.dataStore.get("groupingDepth");var s=this.dataStore.get("groupingCustomRenderer");for(var u=0,l=t;u<l.length;u++){var c=l[u];var f=Wa(this.dataStore,c.itemIndex);if(Tl(f)){o.push(i(Nc,Object.assign({},c,{model:f,groupingCustomRenderer:s,hasExpand:this.columnService.hasGrouping})));continue}var v=[];var d=this.rowClass?this.columnService.getRowClass(c.itemIndex,this.rowClass):"";if(n&&c.itemIndex>=n.y&&c.itemIndex<=n.y1){d+=" focused-rgRow"}for(var h=0,p=r;h<p.length;h++){var g=p[h];v.push(this.getCellRenderer(c,g,this.canDrag,this.columnService.hasGrouping?a:0))}var m=i(Wc,{rowClass:d,size:c.size,start:c.start},v);this.beforerowrender.emit({row:m,model:f,rowIndex:c.itemIndex});o.push(m)}return o};e.prototype.getCellRenderer=function(e,t,r,n){var o;var a=this;if(r===void 0){r=false}if(n===void 0){n=0}var s=this.columnService.rowDataModel(e.itemIndex,t.itemIndex);var u=(o={},o[sl]=t.itemIndex,o[ul]=e.itemIndex,o.style={width:"".concat(t.size,"px"),transform:"translateX(".concat(t.start,"px)")},o);if(n&&!t.itemIndex){u.style.paddingLeft="".concat(Hc*n,"px")}var l=this.columnService.mergeProperties(e.itemIndex,t.itemIndex,u);var c=this.columnService.customRenderer(e.itemIndex,t.itemIndex,s);if(typeof c!=="undefined"){return i("div",Object.assign({},l),c)}if(!s.column){console.error("Investigate column problem");return}return i("div",Object.assign({},l),i(Mc,{model:s,canDrag:r,onDragStart:function(e){return a.dragStartCell.emit(e)}}))};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}},enumerable:false,configurable:true});return e}());Zc.style=Vc;var Gc;(function(e){e[e["MOUSE_LEFT"]=1]="MOUSE_LEFT";e[e["MOUSE_RIGHT"]=3]="MOUSE_RIGHT";e[e["MOUSE_MIDDLE"]=2]="MOUSE_MIDDLE";e[e["BACKSPACE"]=8]="BACKSPACE";e[e["COMMA"]=188]="COMMA";e[e["INSERT"]=45]="INSERT";e[e["DELETE"]=46]="DELETE";e[e["END"]=35]="END";e[e["ENTER"]=13]="ENTER";e[e["ESCAPE"]=27]="ESCAPE";e[e["CONTROL"]=17]="CONTROL";e[e["COMMAND_LEFT"]=91]="COMMAND_LEFT";e[e["COMMAND_RIGHT"]=93]="COMMAND_RIGHT";e[e["COMMAND_FIREFOX"]=224]="COMMAND_FIREFOX";e[e["ALT"]=18]="ALT";e[e["HOME"]=36]="HOME";e[e["PAGE_DOWN"]=34]="PAGE_DOWN";e[e["PAGE_UP"]=33]="PAGE_UP";e[e["PERIOD"]=190]="PERIOD";e[e["SPACE"]=32]="SPACE";e[e["SHIFT"]=16]="SHIFT";e[e["CAPS_LOCK"]=20]="CAPS_LOCK";e[e["TAB"]=9]="TAB";e[e["ARROW_RIGHT"]=39]="ARROW_RIGHT";e[e["ARROW_LEFT"]=37]="ARROW_LEFT";e[e["ARROW_UP"]=38]="ARROW_UP";e[e["ARROW_DOWN"]=40]="ARROW_DOWN";e[e["F1"]=112]="F1";e[e["F2"]=113]="F2";e[e["F3"]=114]="F3";e[e["F4"]=115]="F4";e[e["F5"]=116]="F5";e[e["F6"]=117]="F6";e[e["F7"]=118]="F7";e[e["F8"]=119]="F8";e[e["F9"]=120]="F9";e[e["F10"]=121]="F10";e[e["F11"]=122]="F11";e[e["F12"]=123]="F12";e[e["A"]=65]="A";e[e["C"]=67]="C";e[e["D"]=68]="D";e[e["F"]=70]="F";e[e["L"]=76]="L";e[e["O"]=79]="O";e[e["P"]=80]="P";e[e["S"]=83]="S";e[e["V"]=86]="V";e[e["X"]=88]="X"})(Gc||(Gc={}));var $c;(function(e){e["ENTER"]="Enter";e["ENTER_NUM"]="NumpadEnter";e["V"]="KeyV";e["C"]="KeyC";e["ESCAPE"]="Escape";e["TAB"]="Tab";e["BACKSPACE"]="Backspace";e["DELETE"]="Delete";e["ARROW_RIGHT"]="ArrowRight";e["ARROW_LEFT"]="ArrowLeft";e["ARROW_UP"]="ArrowUp";e["ARROW_DOWN"]="ArrowDown";e["SHIFT"]="Shift"})($c||($c={}));var Xc;(function(e){e["ENTER"]="Enter";e["TAB"]="Tab"})(Xc||(Xc={}));var Yc=Gc;var qc;(function(e){e["mac"]="Mac"})(qc||(qc={}));var Kc=qc;function Jc(e){return e!==e}var Qc=Jc;function ef(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}var tf=ef;function rf(e,t,r){return t===t?tf(e,t,r):na(e,Qc,r)}var nf=rf;function of(e,t){return oo(t,(function(t){return e[t]}))}var af=of;function sf(e){return e==null?[]:af(e,at(e))}var uf=sf;var lf=Math.max;function cf(e,t,r,n){e=it(e)?e:uf(e);r=r&&!n?la(r):0;var i=e.length;if(r<0){r=lf(i+r,0)}return lu(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&nf(e,t,r)>-1}var ff=cf;function vf(e){return e===32||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function df(e,t){if(t.includes(Kc.mac)){return ff([Yc.COMMAND_LEFT,Yc.COMMAND_RIGHT,Yc.COMMAND_FIREFOX],e)}return Yc.CONTROL===e}function hf(e){return $c.BACKSPACE===e||$c.DELETE===e}function pf(e){return Xc.TAB===e}function gf(e){return Xc.ENTER===e}var mf=function(){function e(e,t){this.column=e;this.saveCallback=t;this.element=null;this.editCell=null}e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.editInput)return[3,2];return[4,ws()];case 1:t.sent();(e=this.editInput)===null||e===void 0?void 0:e.focus();t.label=2;case 2:return[2]}}))}))};e.prototype.onKeyDown=function(e){var t=gf(e.key);var r=pf(e.key);if((r||t)&&e.target&&this.saveCallback&&!e.isComposing){this.editInput.blur();this.saveCallback(e.target.value,r)}};e.prototype.render=function(){var e=this;var t;return i("input",{type:"text",enterkeyhint:"enter",value:((t=this.editCell)===null||t===void 0?void 0:t.val)||"",ref:function(t){e.editInput=t},onKeyDown:function(t){return e.onKeyDown(t)}})};return e}();var Cf=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}";var wf=e("revogr_edit",function(){function e(e){o(this,e);this.cellEdit=a(this,"cellEdit",3);this.closeEdit=a(this,"closeEdit",3);this.currentEditor=null}e.prototype.onSave=function(e,t){if(this.editCell){this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:e,preventFocus:t})}};e.prototype.componentWillRender=function(){var e=this;if(!this.currentEditor){if(this.editor){this.currentEditor=new this.editor(this.column,(function(t,r){return e.onSave(t,r)}),(function(t){return e.closeEdit.emit(t)}))}else{this.currentEditor=new mf(this.column,(function(t,r){return e.onSave(t,r)}))}}};e.prototype.componentDidRender=function(){if(!this.currentEditor){return}this.currentEditor.element=this.element.firstElementChild;this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender()};e.prototype.disconnectedCallback=function(){if(!this.currentEditor){return}this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback();if(this.currentEditor.element){this.currentEditor.element=null}this.currentEditor=null};e.prototype.render=function(){if(this.currentEditor){this.currentEditor.editCell=this.editCell;return i(s,{class:Ll},this.currentEditor.render(i))}return""};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());wf.style=Cf;function yf(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,f=s.width;var v=n-u;if(v>=c){v=c-1}var d=r-l;if(d>=f){d=f-1}var h=bs(o,v);var p=bs(a,d);if(p.itemIndex<0){p.itemIndex=0}if(h.itemIndex<0){h.itemIndex=0}return{x:p.itemIndex,y:h.itemIndex}}function bf(e,t,r,n){if(n===void 0){n=false}var i=function(i){var o={x:e.x,y:e.y};var a=n?{x:e.x1,y:e.y1}:o;var s=a[i]>t[i]?a:o;s[i]+=r[i];return{start:o,end:a}};if(r.x){return i("x")}if(r.y){return i("y")}return null}function Lf(e,t){var r=e.x,n=e.y;var i=t.lastCell;return r>=i.x||n>=i.y}function xf(e){var t=e.x,r=e.y;return t<0||r<0}function _f(e){return{left:"".concat(e.left,"px"),top:"".concat(e.top,"px"),width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}}function Sf(e,t,r){var n=e.x,i=e.y,o=e.x1,a=e.y1;var s=Ls(t,i).start;var u=Ls(r,n).start;var l=Ls(t,a).end;var c=Ls(r,o).end;return{left:u,right:c,top:s,bottom:l,width:c-u,height:l-s}}function Ef(e,t,r){var n=Sf(e,t,r);return _f(n)}var kf=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-focus.focused-cell{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset;position:absolute;pointer-events:none;z-index:9;display:block}";var zf=e("revogr_focus",function(){function e(e){o(this,e);this.afterFocus=a(this,"afterfocus",7)}e.prototype.changed=function(e,t){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"});var r=Wa(this.dataStore,t.y);var n=Wa(this.colData,t.x);this.afterFocus.emit({model:r,column:n})};e.prototype.componentDidRender=function(){var e=this.selectionStore.get("focus");e&&this.el&&this.changed(this.el,e)};e.prototype.render=function(){var e=this.selectionStore.get("focus");if(e){var t=Ef(Object.assign(Object.assign({},e),{x1:e.x,y1:e.y}),this.dimensionRow.state,this.dimensionCol.state);return i(s,{class:Cl,style:t})}};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());zf.style=kf;var Rf=function(){try{var e=ar(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var Of=Rf;function Ff(e,t,r){if(t=="__proto__"&&Of){Of(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}var jf=Ff;function Pf(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}var Df=Pf;function Af(e,t,r,n){vt(e,(function(e,i,o){t(n,e,r(e),o)}));return n}var If=Af;function Tf(e,t){return function(r,n){var i=G(r)?Df:If,o=t?t():{};return i(r,e,Uo(n),o)}}var Mf=Tf;var Bf=Mf((function(e,t,r){jf(e,r,t)}));var Hf=Bf;var Wf=function(e){var t=e.column;var r;return i("i",{class:(r=t===null||t===void 0?void 0:t.order)!==null&&r!==void 0?r:"sort-off"})};var Uf;(function(e){e["start"]="resize:start";e["move"]="resize:move";e["end"]="resize:end"})(Uf||(Uf={}));var Nf={"resizable-r":{bit:1,cursor:"ew-resize"},"resizable-rb":{bit:3,cursor:"se-resize"},"resizable-b":{bit:2,cursor:"s-resize"},"resizable-lb":{bit:6,cursor:"sw-resize"},"resizable-l":{bit:4,cursor:"w-resize"},"resizable-lt":{bit:12,cursor:"nw-resize"},"resizable-t":{bit:8,cursor:"n-resize"},"resizable-rt":{bit:9,cursor:"ne-resize"}};var Vf={l:1,t:2,w:4,h:8};var Zf=function(e){return Object.assign(Object.assign({},e),{fitParent:e.fitParent||false,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})};var Gf=function(){function e(e,t){this.initialProps=e;this.$event=t;this.mouseX=0;this.mouseY=0;this.width=0;this.height=0;this.changeX=0;this.changeY=0;this.disableCalcMap=15;this.props=Zf(e);this.mouseMoveFunc=this.handleMove.bind(this);this.mouseUpFunc=this.handleUp.bind(this);this.minW=this.props.minWidth;this.minH=this.props.minHeight;this.maxW=this.props.maxWidth;this.maxH=this.props.maxHeight;this.parent={width:0,height:0};this.resizeState=0}e.prototype.set=function(e){var t=this;this.$el=e;this.props.disableAttributes.forEach((function(e){switch(e){case"l":t.disableCalcMap&=~Vf.l;break;case"t":t.disableCalcMap&=~Vf.t;break;case"w":t.disableCalcMap&=~Vf.w;break;case"h":t.disableCalcMap&=~Vf.h}}))};e.prototype.emitEvent=function(e,t){if(!this.$event){return}this.$event(Object.assign({eventName:e,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},t))};e.isTouchEvent=function(e){var t;var r=e;return((t=r.touches)===null||t===void 0?void 0:t.length)>=0};e.prototype.handleMove=function(t){if(!this.resizeState){return}var r,n;if(e.isTouchEvent(t)){r=t.touches[0].clientY;n=t.touches[0].clientX}else{r=t.clientY;n=t.clientX}var i=this.resizeState&Nf["resizable-r"].bit||this.resizeState&Nf["resizable-l"].bit;var o=this.resizeState&Nf["resizable-t"].bit||this.resizeState&Nf["resizable-b"].bit;if(o&&this.disableCalcMap&Vf.h){var a=r-this.mouseY;var s=this.changeY+a;var u=this.height+s;if(u<this.minH){s=-(this.height-this.minH)}if(this.maxH&&u>this.maxH){s=this.maxH-this.height}this.changeY=s;this.mouseY=r;if(this.activeResizer){this.activeResizer.style.bottom="".concat(-this.changeY,"px")}}if(i&&this.disableCalcMap&Vf.w){var l=n-this.mouseX;var c=this.changeX+l;var f=this.width+c;if(f<this.minW){c=-(this.width-this.minW)}if(this.maxW&&f>this.maxW){c=this.maxW-this.width}this.changeX=c;this.mouseX=n;if(this.activeResizer){this.activeResizer.style.right="".concat(-this.changeX,"px")}}this.emitEvent(Uf.move)};e.prototype.handleDown=function(t){if(t.defaultPrevented){return}t.preventDefault();this.dropInitial();for(var r in Nf){var n=t.target;if(this.$el.contains(n)&&(n===null||n===void 0?void 0:n.classList.contains(r))){document.body.style.cursor=Nf[r].cursor;if(e.isTouchEvent(t)){this.setInitials(t.touches[0],n)}else{t.preventDefault&&t.preventDefault();this.setInitials(t,n)}this.resizeState=Nf[r].bit;var i=Uf.start;this.emitEvent(i);break}}this.bindMove()};e.prototype.handleUp=function(e){e.preventDefault();if(this.resizeState!==0){this.resizeState=0;document.body.style.cursor="";var t=Uf.end;this.emitEvent(t)}this.dropInitial();this.unbindMove()};e.prototype.setInitials=function(e,t){var r=e.clientX,n=e.clientY;var i=getComputedStyle(this.$el);this.$el.classList.add("active");this.activeResizer=t;if(this.disableCalcMap&Vf.w){this.mouseX=r;this.width=this.$el.clientWidth;this.parent.width=this.$el.parentElement.clientWidth;var o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight);this.minW=Math.max(o,this.initialProps.minWidth||0);if(this.initialProps.maxWidth){this.maxW=Math.max(this.width,this.initialProps.maxWidth)}}if(this.disableCalcMap&Vf.h){this.mouseY=n;this.height=this.$el.clientHeight;this.parent.height=this.$el.parentElement.clientHeight;var a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom);this.minH=Math.max(a,this.initialProps.minHeight||0);if(this.initialProps.maxHeight){this.maxH=Math.max(this.height,this.initialProps.maxHeight)}}};e.prototype.dropInitial=function(){this.changeX=this.changeY=this.minW=this.minH;this.width=this.height=0;if(this.activeResizer){this.activeResizer.removeAttribute("style")}this.$el.classList.remove("active");this.activeResizer=null};e.prototype.bindMove=function(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,true);document.documentElement.addEventListener("touchend",this.mouseUpFunc,true);document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,true);document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,true);document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)};e.prototype.unbindMove=function(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,true);document.documentElement.removeEventListener("touchend",this.mouseUpFunc,true);document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,true);document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,true);document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)};return e}();var $f=function(e,t){var r=[];var n=e.canResize&&new Gf(e,(function(t){if(t.eventName===Uf.end){e.onResize&&e.onResize(t)}}))||null;if(e.canResize){if(e.active){for(var o in e.active){r.push(i("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},onMouseDown:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},onTouchStart:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},class:"resizable resizable-".concat(e.active[o])}))}}}else{if(e.active){for(var o in e.active){r.push(i("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},class:"no-resize resizable resizable-".concat(e.active[o])}))}}}return i("div",Object.assign({},e,{ref:function(e){return n===null||n===void 0?void 0:n.set(e)}}),t,r)};var Xf="column-click";var Yf=function(e,t){var r=e.data,n=e.props;var o=(r===null||r===void 0?void 0:r.name)||"";var a=n;if(r===null||r===void 0?void 0:r.columnTemplate){o=r.columnTemplate(i,r)}if(r===null||r===void 0?void 0:r.columnProperties){var s=r.columnProperties(r);if(s&&typeof s==="object"){a=Tc.doMerge(n,s)}}return i($f,Object.assign({},a,{onMouseDown:function(e){kc(e.currentTarget,Xf,{data:r,event:e})}}),i("div",{class:"header-content"},o),t)};var qf=function(e){var t,r;var n,o,a,s,u;var l=(t={},t[vl]=true,t[dl]=!!((n=e.data)===null||n===void 0?void 0:n.sortable),t);if((o=e.data)===null||o===void 0?void 0:o.order){l[e.data.order]=true}var c=(r={},r[sl]=e.column.itemIndex,r.canResize=e.canResize,r.minWidth=((a=e.data)===null||a===void 0?void 0:a.minSize)||al,r.maxWidth=(s=e.data)===null||s===void 0?void 0:s.maxSize,r.active=["r"],r.class=l,r.style={width:"".concat(e.column.size,"px"),transform:"translateX(".concat(e.column.start,"px)")},r.onResize=e.onResize,r.onDoubleClick=function(t){e.onDoubleClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r.onClick=function(t){if(t.defaultPrevented||!e.onClick){return}e.onClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r);if(e.range){if(e.column.itemIndex>=e.range.x&&e.column.itemIndex<=e.range.x1){if(typeof c.class==="object"){c.class[Cl]=true}}}return i(Yf,{data:e.data,props:c},i(Wf,{column:e.data}),e.canFilter&&((u=e.data)===null||u===void 0?void 0:u.filter)!==false?i(L,{column:e.data}):"")};var Kf=function(e){var t;var r={canResize:e.canResize,minWidth:e.group.ids.length*al,maxWidth:0,active:["r"],class:(t={},t[vl]=true,t),style:{transform:"translateX(".concat(e.start,"px)"),width:"".concat(e.end-e.start,"px")},onResize:e.onResize};return i(Yf,{data:e.group,props:r})};var Jf=function(e){var t=e.depth,r=e.groups,n=e.visibleProps,o=e.dimensionCol,a=e.canResize,s=e.onResize;var u=[];for(var l=0;l<t;l++){if(r[l]){var c=function(e){var t=va(e.ids,(function(e){return typeof n[e]==="number"}));if(t>-1){var r=n[e.ids[t]];var l=r-t;var c=l+e.ids.length-1;var f=Ls(o,l).start;var v=Ls(o,c).end;u.push(i(Kf,{start:f,end:v,group:e,canResize:a,onResize:function(e){return s(e.changedX,l,c)}}))}};for(var f=0,v=r[l];f<v.length;f++){var d=v[f];c(d)}}u.push(i("div",{class:"".concat(hl," group")}))}return u};var Qf="@charset \"UTF-8\";.revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-header{position:relative;z-index:5;display:block}revogr-header .rgHeaderCell{display:flex}revogr-header .rgHeaderCell.align-center{text-align:center}revogr-header .rgHeaderCell.align-left{text-align:left}revogr-header .rgHeaderCell.align-right{text-align:right}revogr-header .rgHeaderCell.sortable{cursor:pointer}revogr-header .rgHeaderCell i.asc:after,revogr-header .rgHeaderCell i.desc:after{font-size:13px}revogr-header .rgHeaderCell i.asc:after{content:\"↑\"}revogr-header .rgHeaderCell i.desc:after{content:\"↓\"}revogr-header .rgHeaderCell,revogr-header .grouped-cell{position:absolute;box-sizing:border-box;height:100%;z-index:1}revogr-header .header-rgRow{display:block;position:relative}revogr-header .header-rgRow.group{z-index:0}revogr-header .group-rgRow{position:relative}revogr-header .rgHeaderCell.active{z-index:10}revogr-header .rgHeaderCell.active .resizable{background-color:deepskyblue}revogr-header .rgHeaderCell .header-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}revogr-header .rgHeaderCell .resizable{display:block;position:absolute;z-index:90;touch-action:none;user-select:none}revogr-header .rgHeaderCell .resizable:hover{background-color:deepskyblue}revogr-header .rgHeaderCell>.resizable-r{cursor:ew-resize;width:6px;right:0;top:0;height:100%}revogr-header .rgHeaderCell>.resizable-rb{cursor:se-resize;width:6px;height:6px;right:0;bottom:0}revogr-header .rgHeaderCell>.resizable-b{cursor:s-resize;height:6px;bottom:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-lb{cursor:sw-resize;width:6px;height:6px;left:0;bottom:0}revogr-header .rgHeaderCell>.resizable-l{cursor:w-resize;width:6px;left:0;height:100%;top:0}revogr-header .rgHeaderCell>.resizable-lt{cursor:nw-resize;width:6px;height:6px;left:0;top:0}revogr-header .rgHeaderCell>.resizable-t{cursor:n-resize;height:6px;top:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-rt{cursor:ne-resize;width:6px;height:6px;right:0;top:0}revogr-header .rv-filter{visibility:hidden}";var ev=e("revogr_header",function(){function e(e){o(this,e);this.initialHeaderClick=a(this,"initialHeaderClick",7);this.headerresize=a(this,"headerresize",7);this.headerdblClick=a(this,"headerdblClick",7);this.parent="";this.groupingDepth=0}e.prototype.onResize=function(e,t){var r;var n=e.width;this.headerresize.emit((r={},r[t]=n||0,r))};e.prototype.onResizeGroup=function(e,t,r){var n={};var i=Hf(this.viewportCol.get("items"),"itemIndex");var o=e/(r-t+1);for(var a=t;a<=r;a++){var s=i[a];if(s){n[a]=s.size+o}}this.headerresize.emit(n)};e.prototype.render=function(){var e=this;var t;var r=this.viewportCol.get("items");var n=(t=this.selectionStore)===null||t===void 0?void 0:t.get("range");var o=[];var a={};var s=function(t){var r=u.colData[t.itemIndex];o.push(i(qf,{range:n,column:t,data:r,canFilter:!!u.columnFilter,canResize:u.canResize,onResize:function(r){return e.onResize(r,t.itemIndex)},onDoubleClick:function(t){return e.headerdblClick.emit(t)},onClick:function(t){return e.initialHeaderClick.emit(t)}}));a[r===null||r===void 0?void 0:r.prop]=t.itemIndex};var u=this;for(var l=0,c=r;l<c.length;l++){var f=c[l];s(f)}return[i("div",{class:"group-rgRow"},i(Jf,{canResize:this.canResize,visibleProps:a,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:function(t,r,n){return e.onResizeGroup(t,r,n)}})),i("div",{class:"".concat(hl," ").concat(pl)},o)]};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());ev.style=Qf;var tv=function(){function e(e){this.config=e;this.currentCell=null;this.previousRow=null}e.prototype.endOrder=function(e,t){if(this.currentCell===null){return}var r=this.getCell(e,t);if(r.y!==this.currentCell.y){if(r.y<0){r.y=0}else if(r.y<this.currentCell.y){r.y++}this.config.positionChanged(this.currentCell.y,r.y)}this.clear()};e.prototype.startOrder=function(e,t){this.currentCell=this.getCell(e,t);return this.currentCell};e.prototype.move=function(e,t){var r=this.getRow(e,t);if(this.previousRow===r.itemIndex||r.itemIndex<-1){return null}this.previousRow=r.itemIndex;return r};e.prototype.clear=function(){this.currentCell=null;this.previousRow=null};e.prototype.getRow=function(e,t){var r=t.el,n=t.rows;var i=r.getBoundingClientRect().top;var o=e-i;var a=bs(n,o);var s={itemIndex:a.itemIndex,start:a.start+i,end:a.end+i};return s};e.prototype.getCell=function(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left;var c=n-u;var f=r-l;var v=bs(o,c);var d=bs(a,f);return{x:d.itemIndex,y:v.itemIndex}};return e}();var rv=e("revogr_order_editor",function(){function e(e){var t=this;o(this,e);this.internalRowDragStart=a(this,"internalRowDragStart",7);this.internalRowDragEnd=a(this,"internalRowDragEnd",7);this.internalRowDrag=a(this,"internalRowDrag",7);this.internalRowMouseMove=a(this,"internalRowMouseMove",7);this.initialRowDropped=a(this,"initialRowDropped",7);this.rowMoveFunc=b((function(e){var r=t.rowOrderService.move(e,t.getData());if(r!==null){t.internalRowDrag.emit(r)}}),5)}e.prototype.onMouseOut=function(){this.clearOrder()};e.prototype.onMouseUp=function(e){this.endOrder(e)};e.prototype.dragStart=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i;var o=this;return __generator(this,(function(a){e.preventDefault();if(this.moveFunc){this.clearOrder()}t=this.getData();r=this.rowOrderService.startOrder(e,t);n=this.rowOrderService.getRow(e.y,t);i=this.internalRowDragStart.emit({cell:r,text:xl,pos:n,event:e});if(i.defaultPrevented){return[2]}this.moveFunc=function(e){return o.move(e)};document.addEventListener("mousemove",this.moveFunc);return[2]}))}))};e.prototype.endOrder=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.rowOrderService.endOrder(e,this.getData());this.clearOrder();return[2]}))}))};e.prototype.clearOrder=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rowOrderService.clear();document.removeEventListener("mousemove",this.moveFunc);this.moveFunc=null;this.internalRowDragEnd.emit();return[2]}))}))};e.prototype.move=function(e){var t=e.x,r=e.y;this.internalRowMouseMove.emit({x:t,y:r});this.rowMoveFunc(r)};e.prototype.connectedCallback=function(){var e=this;this.rowOrderService=new tv({positionChanged:function(t,r){return e.onPositionChanged(t,r)}})};e.prototype.onPositionChanged=function(e,t){var r=this.initialRowDropped.emit({from:e,to:t});if(r.defaultPrevented){return}var n=__spreadArray([],this.dataStore.get("items"),true);var i=n.splice(e,1);n.splice.apply(n,__spreadArray([t,0],i,false));Na(this.dataStore,n)};e.prototype.getData=function(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}};return e}());var nv=function(){function e(e,t){this.store=e;this.config=t;this.store=e}Object.defineProperty(e.prototype,"edited",{get:function(){return this.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){return this.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"ranged",{get:function(){return this.store.get("range")},enumerable:false,configurable:true});e.prototype.changeRange=function(e){return this.config.changeRange(e)};e.prototype.focus=function(e,t,r){if(t===void 0){t=false}if(r===void 0){r=0}if(!e){return false}var n=e;if(t){var i=this.store.get("focus");if(i){return this.config.changeRange(uc(i,n))}}return this.config.focus(e,n,r)};return e}();function iv(e){return!!(e===null||e===void 0?void 0:e.closest(".".concat(Ll)))}var ov=function(){function e(e){this.sv=e;this.ctrlDown=false}e.prototype.keyDown=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!this.sv.selectionStoreService.focused){return[2]}if(df(e.keyCode,navigator.platform)){this.ctrlDown=true}if($c.TAB===e.code){this.keyChangeSelection(e,t);return[2]}if(this.sv.selectionStoreService.edited){switch(e.code){case $c.ESCAPE:this.sv.cancelEdit();break}return[2]}if(hf(e.code)){this.sv.clearCell();return[2]}if(gf(e.key)){this.sv.doEdit();return[2]}if(this.isCopy(e)){return[2]}if(this.isPaste(e)){this.sv.internalPaste();return[2]}if(vf(e.keyCode)){this.sv.doEdit(e.key);return[2]}return[4,this.keyChangeSelection(e,t)];case 1:if(r.sent()){return[2]}return[2]}}))}))};e.prototype.keyChangeSelection=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=this.changeDirectionKey(e,t);if(!r){return[2,false]}return[4,ws()];case 1:o.sent();n=this.sv.selectionStore.get("range");i=this.sv.selectionStore.get("focus");return[2,this.keyPositionChange(r.changes,this.sv.getData(),n,i,r.isMulti)]}}))}))};e.prototype.keyPositionChange=function(e,t,r,n,i){if(i===void 0){i=false}if(!r||!n){return false}var o=bf(r,n,e,i);if(!o){return false}if(i){if(Lf(o.end,t)||xf(o.start)){return false}var a=uc(o.start,o.end);return this.sv.selectionStoreService.changeRange(a)}return this.sv.selectionStoreService.focus(o.start,false,Lf(o.start,t)?1:xf(o.start)?-1:0)};e.prototype.keyUp=function(e){if(df(e.keyCode,navigator.platform)){this.ctrlDown=false}};e.prototype.isCopy=function(e){return this.ctrlDown&&e.code==$c.C};e.prototype.isPaste=function(e){return this.ctrlDown&&e.code==$c.V};e.prototype.changeDirectionKey=function(e,t){var r=t&&e.shiftKey;switch(e.code){case $c.TAB:case $c.ARROW_UP:case $c.ARROW_DOWN:case $c.ARROW_LEFT:case $c.ARROW_RIGHT:e.preventDefault();break}switch(e.code){case $c.ARROW_UP:return{changes:{y:-1},isMulti:r};case $c.ARROW_DOWN:return{changes:{y:1},isMulti:r};case $c.ARROW_LEFT:return{changes:{x:-1},isMulti:r};case $c.TAB:case $c.ARROW_RIGHT:return{changes:{x:1},isMulti:r}}};return e}();function av(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=Array(i);while(++n<i){o[n]=e[n+t]}return o}var sv=av;function uv(e,t,r){var n=e==null?0:e.length;if(!n){return[]}if(r&&typeof r!="number"&&za(e,t,r)){t=0;r=n}else{t=t==null?0:la(t);r=r===undefined?n:la(r)}return sv(e,t,r)}var lv=uv;var cv;(function(e){e["selection"]="Selection";e["autoFill"]="AutoFill"})(cv||(cv={}));var fv=function(){function e(e){this.sv=e;this.autoFillType=null;this.autoFillInitial=null;this.autoFillStart=null;this.autoFillLast=null}e.prototype.renderAutofill=function(e,t){var r=this;var n;if(e){n=Sf(e,this.sv.dimensionRow.state,this.sv.dimensionCol.state)}else{n=Sf(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state)}return i("div",{class:bl,style:{left:"".concat(n.right,"px"),top:"".concat(n.bottom,"px")},onMouseDown:function(e){return r.selectionStart(e,r.sv.getData(),cv.autoFill)}})};Object.defineProperty(e.prototype,"isAutoFill",{get:function(){return!!this.autoFillType},enumerable:false,configurable:true});e.prototype.selectionMouseMove=function(e){var t=this;if(!this.onMouseMoveAutofill){this.onMouseMoveAutofill=b((function(e,r){return t.doAutofillMouseMove(e,r)}),5)}if(this.isAutoFill){this.onMouseMoveAutofill(e,this.sv.getData())}};e.prototype.getFocus=function(){var e=this.sv.selectionStoreService.focused;var t=this.sv.selectionStoreService.ranged;if(t){e={x:t.x,y:t.y}}if(!e&&!t){return null}return e};e.prototype.doAutofillMouseMove=function(e,t){var r=e.x,n=e.y;if(!this.autoFillInitial){return}var i=yf({x:r,y:n},t);if(!this.autoFillLast){if(!this.autoFillLast){this.autoFillLast=this.autoFillStart}}if(Lf(i,t)){return}this.autoFillLast=i;var o=i.x===this.autoFillInitial.x&&i.y===this.autoFillInitial.y;if(o){this.sv.setTempRange(null)}else{this.sv.setTempRange({area:uc(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})}};e.prototype.selectionStart=function(e,t,r){if(r===void 0){r=cv.selection}var n=e.target.getBoundingClientRect(),i=n.top,o=n.left;this.autoFillInitial=this.getFocus();this.autoFillType=r;this.autoFillStart=yf({x:o,y:i},t);e.preventDefault()};e.prototype.clearAutoFillSelection=function(){if(this.autoFillInitial){this.autoFillInitial=this.getFocus();if(this.autoFillType===cv.autoFill){this.applyRangeWithData(this.autoFillInitial,this.autoFillLast)}else{this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)}}this.autoFillType=null;this.autoFillInitial=null;this.autoFillLast=null;this.autoFillStart=null};e.prototype.onRangeApply=function(e,t){var r={};for(var n in e){r[n]=Wa(this.sv.dataStore,parseInt(n,10))}var i=this.sv.internalRangeDataApply({data:e,models:r,type:this.sv.dataStore.get("type")});if(!i.defaultPrevented){this.sv.columnService.applyRangeData(e)}this.sv.setRange(t)};e.prototype.applyRangeWithData=function(e,t){if(!e||!t){return}var r=this.sv.selectionStoreService.ranged;var n=uc(e,t);var i=__spreadArray([],this.sv.columnService.columns,true);var o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:r,newProps:lv(i,n.x,n.x1+1).map((function(e){return e.prop})),oldProps:lv(i,r.x,r.x1+1).map((function(e){return e.prop}))};o.newData=this.sv.columnService.getRangeData(o);var a=this.sv.internalSelectionChanged(o);if(a.defaultPrevented){this.sv.setTempRange(null);return}this.onRangeApply(o.newData,n)};e.prototype.applyRangeOnly=function(e,t){if(!e||!t){return}var r=uc(e,t);this.sv.setRange(r)};return e}();var vv=function(){function e(e){this.sv=e}e.prototype.onCopy=function(e){var t=this.sv.internalCopy();if(t.defaultPrevented){return false}var r=this.sv.selectionStoreService.focused;var n=this.sv.selectionStoreService.ranged;var i;if(!n){n=uc(r,r)}if(n){var o=__spreadArray([],this.sv.columnService.columns,true);var a=lv(o,n.x,n.x1+1).map((function(e){return e.prop}));i=this.sv.columnService.copyRangeArray(n,a,this.sv.dataStore)}this.clipboard.doCopy(e,i);return true};e.prototype.renderClipboard=function(){var e=this;return i("revogr-clipboard",{onCopyRegion:function(t){return e.onCopy(t.detail)},ref:function(t){return e.clipboard=t},onPasteRegion:function(t){return e.onPaste(t.detail)}})};e.prototype.onPaste=function(e){var t=this.sv.selectionStoreService.focused;var r=this.sv.selectionStoreService.edited!==null;if(!t||r){return}var n=this.sv.columnService.getTransformedDataToApply(t,e),i=n.changed,o=n.range;this.sv.onRangeApply(i,o)};return e}();var dv=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:10px;height:10px;background:#0d63e8;margin-left:-9px;margin-top:-9px;border:1px solid white;box-sizing:border-box;z-index:10;cursor:crosshair}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9}revogr-overlay-selection .selection-border-range{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection revogr-edit{z-index:10}";var hv=e("revogr_overlay_selection",function(){function e(e){o(this,e);this.internalCopy=a(this,"internalCopy",7);this.internalPaste=a(this,"internalPaste",7);this.internalCellEdit=a(this,"internalCellEdit",7);this.internalFocusCell=a(this,"internalFocusCell",7);this.internalNextStoreFocus=a(this,"internalNextStoreFocus",7);this.setEdit=a(this,"setEdit",3);this.cancelEdit=a(this,"cancelEdit",7);this.setRange=a(this,"setRange",7);this.setTempRange=a(this,"setTempRange",7);this.focusCell=a(this,"focusCell",3);this.internalSelectionChanged=a(this,"internalSelectionChanged",7);this.internalRangeDataApply=a(this,"internalRangeDataApply",7);this.keyboardService=null;this.autoFillService=null;this.clipboardService=null;this.unsubscribeSelectionStore=[]}e.prototype.onMouseMove=function(e){if(this.selectionStoreService.focused){this.autoFillService.selectionMouseMove(e)}};e.prototype.onMouseOut=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onMouseUp=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onCellDrag=function(e){var t;(t=this.orderEditor)===null||t===void 0?void 0:t.dragStart(e.detail)};e.prototype.onKeyUp=function(e){var t;(t=this.keyboardService)===null||t===void 0?void 0:t.keyUp(e)};e.prototype.onKeyDown=function(e){var t;if(e.defaultPrevented){return}(t=this.keyboardService)===null||t===void 0?void 0:t.keyDown(e,this.range)};e.prototype.focusCurrent=function(e,t){var r;var n=this.internalFocusCell.emit(this.columnService.getSaveData(e.y,e.x));if(n.defaultPrevented){return false}var i={focus:e,end:t};return!((r=this.focusCell.emit(i))===null||r===void 0?void 0:r.defaultPrevented)};e.prototype.selectionServiceSet=function(e){var t=this;this.unsubscribeSelectionStore.forEach((function(e){return e()}));this.unsubscribeSelectionStore=[];this.unsubscribeSelectionStore.push(e.onChange("nextFocus",(function(e){t.focusCurrent(e,e)})));this.selectionStoreService=new nv(e,{changeRange:function(e){var r;return!((r=t.setRange.emit(e))===null||r===void 0?void 0:r.defaultPrevented)},focus:function(e,r,n){if(!n){return t.focusCurrent(e,r)}else{t.internalNextStoreFocus.emit(e);return false}}});this.keyboardService=new ov({selectionStoreService:this.selectionStoreService,selectionStore:e,doEdit:function(e){return t.doEdit(e)},cancelEdit:function(){return t.closeEdit()},clearCell:function(){return t.clearCell()},getData:function(){return t.getData()},internalPaste:function(){return t.internalPaste.emit()}});this.createAutoFillService();this.createClipboardService()};e.prototype.createAutoFillService=function(){var e=this;this.autoFillService=new fv({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:function(t){return e.setTempRange.emit(t)},internalSelectionChanged:function(t){return e.internalSelectionChanged.emit(t)},internalRangeDataApply:function(t){return e.internalRangeDataApply.emit(t)},setRange:function(t){return e.setRange.emit(t)},getData:function(){return e.getData()}})};e.prototype.columnServiceSet=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new Tc(this.dataStore,this.colData);this.createAutoFillService();this.createClipboardService()};e.prototype.createClipboardService=function(){var e=this;this.clipboardService=new vv({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:function(t,r){return e.autoFillService.onRangeApply(t,r)},internalCopy:function(){return e.internalCopy.emit()}})};e.prototype.connectedCallback=function(){this.columnServiceSet();this.selectionServiceSet(this.selectionStore)};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.unsubscribeSelectionStore.forEach((function(e){return e()}));this.unsubscribeSelectionStore=[]};e.prototype.renderRange=function(e){var t=Ef(e,this.dimensionRow.state,this.dimensionCol.state);return[i("div",{class:wl,style:t})]};e.prototype.renderEditCell=function(){var e=this;var t=this.selectionStore.get("edit");if(this.readonly||!t){return}var r=t.val||this.columnService.getCellData(t.y,t.x);var n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r));var o=Ef(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return i("revogr-edit",{onCellEdit:function(t){return e.onCellEdit(t.detail)},onCloseEdit:function(t){return e.closeEdit(t)},editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:o})};e.prototype.render=function(){var e=this;var t=this.selectionStoreService.ranged;var r=this.selectionStoreService.focused;var n=[];if((t||r)&&this.useClipboard){n.push(this.clipboardService.renderClipboard())}if(t){n.push.apply(n,this.renderRange(t))}var o=this.renderEditCell();if(o){n.push(o)}if(r&&!this.readonly&&!o&&this.range){n.push(this.autoFillService.renderAutofill(t,r))}if(this.canDrag){n.push(i("revogr-order-editor",{ref:function(t){return e.orderEditor=t},dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:function(t){return e.onRowDragStart(t)}}))}return i(s,{onDblClick:function(){return e.doEdit()},onMouseDown:function(t){return e.onElementMouseDown(t)}},n,i("slot",{name:"data"}))};e.prototype.onElementMouseDown=function(e){if(iv(e.target)){return}var t=this.getData();if(e.defaultPrevented){return}var r=yf({x:e.x,y:e.y},t);this.selectionStoreService.focus(r,this.range&&e.shiftKey);if(this.range){this.autoFillService.selectionStart(e,t)}};e.prototype.doEdit=function(e){if(e===void 0){e=""}var t;if(this.canEdit()){var r=this.selectionStore.get("focus");var n=this.columnService.getSaveData(r.y,r.x);(t=this.setEdit)===null||t===void 0?void 0:t.emit(Object.assign(Object.assign({},n),{val:e}))}};e.prototype.closeEdit=function(e){this.cancelEdit.emit();if(e===null||e===void 0?void 0:e.detail){this.focusNext()}};e.prototype.focusNext=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:$c.ARROW_DOWN}),this.range)];case 1:e=t.sent();if(!e){this.closeEdit()}return[2]}}))}))};e.prototype.clearCell=function(){if(this.selectionStoreService.ranged&&!lc(this.selectionStoreService.ranged)){var e=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(e,this.selectionStoreService.ranged)}else if(this.canEdit()){var t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},true)}};e.prototype.onCellEdit=function(e,t){if(t===void 0){t=false}var r=this.columnService.getSaveData(e.rgRow,e.rgCol,e.val);this.internalCellEdit.emit(r);if(!t&&!e.preventFocus){this.focusNext()}};e.prototype.onRowDragStart=function(e){var t=e.detail;t.text=this.columnService.getCellData(t.cell.y,t.cell.x)};e.prototype.canEdit=function(){var e;if(this.readonly){return false}var t=this.selectionStoreService.focused;return t&&!((e=this.columnService)===null||e===void 0?void 0:e.isReadOnly(t.y,t.x))};e.prototype.getData=function(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}},enumerable:false,configurable:true});return e}());hv.style=dv;var pv=function(e){return function(t,r){var n=r.rowIndex;return e+n}};var gv=10;var mv=e("revogr_row_headers",function(){function e(e){o(this,e);this.scrollViewport=a(this,"scrollViewport",3);this.elementToScroll=a(this,"elementToScroll",3)}e.prototype.render=function(){var e;var t=this;var r;var n=[];var o=new Hs;var a=1;var u=function(e){var t=e.dataStore.get("items");var r=t.length;var s=e.dataStore.get("source");var u=t.map((function(e){return s[e]}));var c=new Ma(e.type);c.updateData(u);var f=new Ma("colPinStart");var v=Object.assign({cellTemplate:pv(a)},l.rowHeaderColumn);f.updateData([v]);var d=Object.assign(Object.assign({},e),{dataStore:c.store,colData:f.store,viewportCol:o.store,readonly:true,range:false});n.push(i("revogr-data",Object.assign({},d)));a+=r};var l=this;for(var c=0,f=this.dataPorts;c<f.length;c++){var v=f[c];u(v)}var d=((r=this.rowHeaderColumn)===null||r===void 0?void 0:r.size)||(a.toString().length+1)*gv;o.setViewport({realCount:1,virtualSize:0,items:[{size:d,start:0,end:d,itemIndex:0}]});var h="".concat(this.uiid,"-rowHeaders");var p=(e={},e[ll]=h,e.contentHeight=this.height,e.contentWidth=0,e.style={minWidth:"".concat(d,"px")},e.ref=function(e){return t.elementToScroll.emit(e)},e.onScrollViewport=function(e){return t.scrollViewport.emit(e.detail)},e);var g=Object.assign(Object.assign({},this.headerProp),{colData:typeof this.rowHeaderColumn==="object"?[this.rowHeaderColumn]:[],viewportCol:o.store,canResize:false,parent:h,slot:"header"});return i(s,{class:"rowHeaders",key:"rowHeaders"},i("revogr-viewport-scroll",Object.assign({},p),i("revogr-header",Object.assign({},g)),n))};return e}());var Cv={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};var wv=function(){function e(e){this.cfg=e;this.preventArtificialScroll={rgRow:null,rgCol:null};this.previousScroll={rgRow:0,rgCol:0};this.params={rgRow:Object.assign({},Cv),rgCol:Object.assign({},Cv)}}e.getVirtualContentSize=function(e,t,r){if(r===void 0){r=0}return e+(r?t-r:0)};e.prototype.setParams=function(t,r){var n=e.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:n-t.clientSize,virtualContentSize:n})};e.prototype.setScroll=function(e){var t=this;this.cancelScroll(e.dimension);this.preventArtificialScroll[e.dimension]=window.requestAnimationFrame((function(){var r=t.getParams(e.dimension);e.coordinate=Math.ceil(e.coordinate);t.previousScroll[e.dimension]=t.wrapCoordinate(e.coordinate,r);t.preventArtificialScroll[e.dimension]=null;t.cfg.afterScroll(Object.assign(Object.assign({},e),{coordinate:r.virtualSize?t.convert(e.coordinate,r,false):e.coordinate}))}))};e.prototype.scroll=function(e,t,r,n){if(r===void 0){r=false}this.cancelScroll(t);if(!r&&this.previousScroll[t]===e){this.previousScroll[t]=0;return}var i=this.getParams(t);this.cfg.beforeScroll({dimension:t,coordinate:i.virtualSize?this.convert(e,i):e,delta:n})};e.prototype.getParams=function(e){return this.params[e]};e.prototype.wrapCoordinate=function(e,t){if(e<0){return 0}if(e>t.maxSize){return t.maxSize}return e};e.prototype.cancelScroll=function(e){if(typeof this.preventArtificialScroll[e]==="number"){window.cancelAnimationFrame(this.preventArtificialScroll[e]);this.preventArtificialScroll[e]=null;return true}return false};e.prototype.convert=function(e,t,r){if(r===void 0){r=true}var n=t.clientSize;var i=[0,t.virtualContentSize-n];var o=[0,t.contentSize-t.virtualSize];if(r){return Cs(e,i,o)}return Cs(e,o,i)};return e}();var yv=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-scroll-virtual[auto-hide]{position:absolute;z-index:100}revogr-scroll-virtual[auto-hide].vertical{right:0;top:0}revogr-scroll-virtual[auto-hide].vertical:hover{min-width:20px}revogr-scroll-virtual[auto-hide].horizontal{bottom:0;left:0}revogr-scroll-virtual[auto-hide].horizontal:hover{min-height:20px}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}";var bv=e("revogr_scroll_virtual",function(){function e(e){o(this,e);this.scrollVirtual=a(this,"scrollVirtual",7);this.scrollSize=0;this.isAutoHide=false;this.autoHideTimeout=0;this.dimension="rgRow"}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){if(this.dimension!==e.dimension){return[2]}(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.element.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.element.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};Object.defineProperty(e.prototype,"size",{get:function(){if(this.dimension==="rgRow"){return this.element.clientHeight}return this.element.clientWidth},set:function(e){if(this.dimension==="rgRow"){this.element.style.minWidth="".concat(e,"px");return}this.element.style.minHeight="".concat(e,"px")},enumerable:false,configurable:true});e.prototype.connectedCallback=function(){var e=this;this.scrollService=new wv({beforeScroll:function(t){return e.scrollVirtual.emit(t)},afterScroll:function(t){var r=t.dimension==="rgRow"?"scrollTop":"scrollLeft";e.element[r]=t.coordinate}})};e.prototype.disconnectedCallback=function(){clearTimeout(this.autoHideTimeout)};e.prototype.componentWillLoad=function(){this.scrollSize=ms(document);this.isAutoHide=!this.scrollSize};e.prototype.componentDidRender=function(){var e=this.dimension==="rgRow"?"scrollHeight":"scrollWidth";if(this.element[e]>this.size){this.size=this.scrollSize}else{this.size=0}this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)};e.prototype.onScroll=function(e){var t;var r="scrollLeft";if(this.dimension==="rgRow"){r="scrollTop"}if(this.isAutoHide){this.size=20;this.autoHideTimeout=this.autoHide(this.autoHideTimeout)}var n=e.target;(t=this.scrollService)===null||t===void 0?void 0:t.scroll(n[r]||0,this.dimension)};e.prototype.autoHide=function(e){var t=this;clearTimeout(e);return setTimeout((function(){t.size=0}),6e3)};e.prototype.render=function(){var e;var t=this;var r=this.dimension==="rgRow"?"height":"width";return i(s,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:function(e){return t.onScroll(e)}}),i("div",{style:(e={},e[r]="".concat(this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize")),"px"),e)}))};e.prototype.extContentSize=function(e,t){return wv.getVirtualContentSize(t,this.size,e)};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());bv.style=yv;var Lv=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.temp-bg-range{display:block;position:absolute;pointer-events:none;z-index:9;border:1px solid #ff5e00;box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}";var xv=e("revogr_temp_range",function(){function e(e){var t=this;o(this,e);this.onChange=wc.throttle((function(e){return t.doChange(e)}),300)}e.prototype.doChange=function(e){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.componentDidRender=function(){if(this.el){this.onChange(this.el)}};e.prototype.render=function(){var e;var t=this;var r=this.selectionStore.get("tempRange");var n=this.selectionStore.get("tempRangeType");if(!r){return}var o="bottom";var a="right";var u=this.getRange();if(!u){return}if(r.y<u.y){o="top"}if(r.x<u.x){a="left"}var l="".concat(a," ").concat(o);var c=Ef(r,this.dimensionRow.state,this.dimensionCol.state);return i(s,{class:(e={},e[yl]=true,e[n||""]=true,e),style:c},i("div",{class:l,ref:function(e){return t.el=e}}))};e.prototype.getRange=function(){var e=this.selectionStore.get("range");if(e){return e}var t=this.selectionStore.get("focus");if(!t){return null}return Object.assign(Object.assign({},t),{x1:t.x,y1:t.y})};return e}());xv.style=Lv;var _v="Expected a function";function Sv(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new TypeError(_v)}if(h(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return b(e,t,{leading:n,maxWait:t,trailing:i})}var Ev=Sv;function kv(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(!!("ResizeObserver"in window))return[3,2];return[4,t.import("./resize-observer-8af0bc0e.system.js")];case 1:e=r.sent();window.ResizeObserver=e.ResizeObserver;r.label=2;case 2:return[2]}}))}))}var zv=function(){function e(e,t){var r=this;this.events=t;this.resizeObserver=null;this.resize=Ev((function(e,t){var n;return(n=r.events)===null||n===void 0?void 0:n.resize(e,t)}),10);this.init(e)}e.prototype.init=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,kv()];case 1:r.sent();this.resizeObserver=new ResizeObserver(this.resize);(t=this.resizeObserver)===null||t===void 0?void 0:t.observe(e);return[2]}}))}))};e.prototype.destroy=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.resizeObserver=null};return e}();var Rv=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}.rowHeaders revogr-data .rgCell{text-align:center}.rowHeaders .rgCell{padding:0 1em !important;min-width:100%}revogr-viewport-scroll{-ms-overflow-style:none;scrollbar-width:none;overflow-x:auto;overflow-y:hidden;position:relative;z-index:1;height:100%}revogr-viewport-scroll::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll.colPinStart,revogr-viewport-scroll.colPinEnd{z-index:2}revogr-viewport-scroll.rgCol{flex-grow:1}revogr-viewport-scroll .content-wrapper{overflow:hidden}revogr-viewport-scroll .inner-content-table{display:flex;flex-direction:column;max-height:100%;width:100%;min-width:100%;position:relative;z-index:0}revogr-viewport-scroll .vertical-inner{overflow-y:auto;position:relative;width:100%;flex-grow:1;-ms-overflow-style:none;scrollbar-width:none;}revogr-viewport-scroll .vertical-inner::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll .vertical-inner revogr-data,revogr-viewport-scroll .vertical-inner revogr-overlay-selection{height:100%}";var Ov=e("revogr_viewport_scroll",function(){function e(e){o(this,e);this.scrollViewport=a(this,"scrollViewport",3);this.resizeViewport=a(this,"resizeViewport",7);this.scrollchange=a(this,"scrollchange",7);this.scrollThrottling=30;this.contentWidth=0;this.contentHeight=0;this.oldValY=this.contentHeight;this.oldValX=this.contentWidth;this.mouseWheelScroll={rgCol:0,rgRow:0}}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){this.latestScrollUpdate(e.dimension);(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.horizontalScroll.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.verticalScroll.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};e.prototype.connectedCallback=function(){var e=this;if("ontouchstart"in document.documentElement){this.scrollThrottling=0}else{this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY");this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")}this.scrollService=new wv({beforeScroll:function(t){return e.scrollViewport.emit(t)},afterScroll:function(t){switch(t.dimension){case"rgCol":e.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":e.verticalScroll.scrollTop=t.coordinate;break}}})};e.prototype.componentDidLoad=function(){var e=this;this.horisontalResize=new zv(this.horizontalScroll,{resize:function(t){var r,n;var i=((r=t[0])===null||r===void 0?void 0:r.contentRect.height)||0;if(i){i-=e.header.clientHeight+e.footer.clientHeight}var o={rgRow:{size:i,contentSize:e.contentHeight,scroll:e.verticalScroll.scrollTop},rgCol:{size:((n=t[0])===null||n===void 0?void 0:n.contentRect.width)||0,contentSize:e.contentWidth,scroll:e.horizontalScroll.scrollLeft}};Qo(o,(function(t,r){var n;e.resizeViewport.emit({dimension:r,size:t.size});(n=e.scrollService)===null||n===void 0?void 0:n.scroll(t.scroll,r,true);e.setScrollVisibility(r,t.size,t.contentSize)}))}})};e.prototype.setScrollVisibility=function(e,t,r){var n=t<r;var i;var o;switch(e){case"rgCol":i=this.horizontalScroll;o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll;o=this.verticalMouseWheel;break}if(n){i.classList.add("scroll-".concat(e));i.addEventListener("mousewheel",o)}else{i.classList.remove("scroll-".concat(e));i.removeEventListener("mousewheel",o)}this.scrollchange.emit({type:e,hasScroll:n})};e.prototype.disconnectedCallback=function(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel);this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel);this.horisontalResize.destroy()};e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.contentHeight<this.oldValY&&this.verticalScroll){this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY}this.oldValY=this.contentHeight;if(this.contentWidth<this.oldValX){this.horizontalScroll.scrollLeft+=this.contentWidth-this.oldValX}this.oldValX=this.contentWidth;this.scrollService.setParams({contentSize:this.contentHeight,clientSize:this.verticalScroll.clientHeight,virtualSize:0},"rgRow");this.scrollService.setParams({contentSize:this.contentWidth,clientSize:this.horizontalScroll.clientWidth,virtualSize:0},"rgCol");this.setScrollVisibility("rgRow",this.verticalScroll.clientHeight,this.contentHeight);this.setScrollVisibility("rgCol",this.horizontalScroll.clientWidth,this.contentWidth);return[2]}))}))};e.prototype.render=function(){var e=this;return i(s,{onScroll:function(t){return e.onScroll("rgCol",t)}},i("div",{class:"inner-content-table",style:{width:"".concat(this.contentWidth,"px")}},i("div",{class:"header-wrapper",ref:function(t){return e.header=t}},i("slot",{name:hc})),i("div",{class:"vertical-inner",ref:function(t){return e.verticalScroll=t},onScroll:function(t){return e.onScroll("rgRow",t)}},i("div",{class:"content-wrapper",style:{height:"".concat(this.contentHeight,"px")}},i("slot",{name:gc}))),i("div",{class:"footer-wrapper",ref:function(t){return e.footer=t}},i("slot",{name:pc}))))};e.prototype.onScroll=function(e,t){var r;var n=t.target;var i=0;switch(e){case"rgCol":i=n===null||n===void 0?void 0:n.scrollLeft;break;case"rgRow":i=n===null||n===void 0?void 0:n.scrollTop;break}var o=(new Date).getTime()-this.mouseWheelScroll[e];if(o>this.scrollThrottling){(r=this.scrollService)===null||r===void 0?void 0:r.scroll(i,e)}};e.prototype.latestScrollUpdate=function(e){this.mouseWheelScroll[e]=(new Date).getTime()};e.prototype.onVerticalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.verticalScroll.scrollTop+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};e.prototype.onHorizontalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.horizontalScroll.scrollLeft+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};Object.defineProperty(e.prototype,"horizontalScroll",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());Ov.style=Rv}}}));
4
+ */System.register(["./index-f14b41a0.system.js","./debounce-8d28735f.system.js"],(function(e,t){"use strict";var r,n,i,o,a,s,u,l,c,f,v,d,h,p,g,m,C,w,y,b,L;return{setters:[function(e){r=e.g;n=e.f;i=e.h;o=e.r;a=e.c;s=e.H;u=e.e},function(e){l=e.i;c=e._;f=e.c;v=e.a;d=e.b;h=e.d;p=e.e;g=e.f;m=e.t;C=e.g;w=e.F;y=e.h;b=e.j;L=e.k}],execute:function(){var x=function(){function e(){this.defaultRowSize=32}return e}();var _=function(){function e(){this.defaultRowSize=27}return e}();var S=function(){function e(){this.defaultRowSize=42}return e}();var E="default";var k=[E,"material","compact","darkMaterial","darkCompact"];var z=function(){function e(e){this.customRowSize=0;this.customRowSize=e.rowSize;this.register("default")}Object.defineProperty(e.prototype,"theme",{get:function(){return this.currentTheme},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"rowSize",{get:function(){return this.customRowSize||this.currentTheme.defaultRowSize},set:function(e){this.customRowSize=e},enumerable:false,configurable:true});e.prototype.register=function(t){var r=e.getTheme(t);switch(r){case"material":case"darkMaterial":this.currentTheme=new S;break;case"compact":case"darkCompact":this.currentTheme=new x;break;default:this.currentTheme=new _;break}};e.getTheme=function(e){if(k.indexOf(e)>-1){return e}return E};return e}();function R(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}var O=R;function F(e){return function(t,r,n){var i=-1,o=Object(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}var j=F;var P=j();var D=P;function A(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}var I=A;var T="[object Arguments]";function M(e){return l(e)&&c(e)==T}var B=M;var H=Object.prototype;var W=H.hasOwnProperty;var U=H.propertyIsEnumerable;var N=B(function(){return arguments}())?B:function(e){return l(e)&&W.call(e,"callee")&&!U.call(e,"callee")};var V=N;var Z=Array.isArray;var G=Z;function $(){return false}var X=$;var Y=f((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i?v.Buffer:undefined;var a=o?o.isBuffer:undefined;var s=a||X;e.exports=s}));var q=9007199254740991;var K=/^(?:0|[1-9]\d*)$/;function J(e,t){var r=typeof e;t=t==null?q:t;return!!t&&(r=="number"||r!="symbol"&&K.test(e))&&(e>-1&&e%1==0&&e<t)}var Q=J;var ee=9007199254740991;function te(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ee}var re=te;var ne="[object Arguments]",ie="[object Array]",oe="[object Boolean]",ae="[object Date]",se="[object Error]",ue="[object Function]",le="[object Map]",ce="[object Number]",fe="[object Object]",ve="[object RegExp]",de="[object Set]",he="[object String]",pe="[object WeakMap]";var ge="[object ArrayBuffer]",me="[object DataView]",Ce="[object Float32Array]",we="[object Float64Array]",ye="[object Int8Array]",be="[object Int16Array]",Le="[object Int32Array]",xe="[object Uint8Array]",_e="[object Uint8ClampedArray]",Se="[object Uint16Array]",Ee="[object Uint32Array]";var ke={};ke[Ce]=ke[we]=ke[ye]=ke[be]=ke[Le]=ke[xe]=ke[_e]=ke[Se]=ke[Ee]=true;ke[ne]=ke[ie]=ke[ge]=ke[oe]=ke[me]=ke[ae]=ke[se]=ke[ue]=ke[le]=ke[ce]=ke[fe]=ke[ve]=ke[de]=ke[he]=ke[pe]=false;function ze(e){return l(e)&&re(e.length)&&!!ke[c(e)]}var Re=ze;function Oe(e){return function(t){return e(t)}}var Fe=Oe;var je=f((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i&&d.process;var a=function(){try{var e=n&&n.require&&n.require("util").types;if(e){return e}return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}));var Pe=je&&je.isTypedArray;var De=Pe?Fe(Pe):Re;var Ae=De;var Ie=Object.prototype;var Te=Ie.hasOwnProperty;function Me(e,t){var r=G(e),n=!r&&V(e),i=!r&&!n&&Y(e),o=!r&&!n&&!i&&Ae(e),a=r||n||i||o,s=a?I(e.length,String):[],u=s.length;for(var l in e){if((t||Te.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Q(l,u)))){s.push(l)}}return s}var Be=Me;var He=Object.prototype;function We(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||He;return e===r}var Ue=We;function Ne(e,t){return function(r){return e(t(r))}}var Ve=Ne;var Ze=Ve(Object.keys,Object);var Ge=Ze;var $e=Object.prototype;var Xe=$e.hasOwnProperty;function Ye(e){if(!Ue(e)){return Ge(e)}var t=[];for(var r in Object(e)){if(Xe.call(e,r)&&r!="constructor"){t.push(r)}}return t}var qe=Ye;var Ke="[object AsyncFunction]",Je="[object Function]",Qe="[object GeneratorFunction]",et="[object Proxy]";function tt(e){if(!h(e)){return false}var t=c(e);return t==Je||t==Qe||t==Ke||t==et}var rt=tt;function nt(e){return e!=null&&re(e.length)&&!rt(e)}var it=nt;function ot(e){return it(e)?Be(e):qe(e)}var at=ot;function st(e,t){return e&&D(e,t,at)}var ut=st;function lt(e,t){return function(r,n){if(r==null){return r}if(!it(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=Object(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}var ct=lt;var ft=ct(ut);var vt=ft;function dt(){this.__data__=[];this.size=0}var ht=dt;function pt(e,t){return e===t||e!==e&&t!==t}var gt=pt;function mt(e,t){var r=e.length;while(r--){if(gt(e[r][0],t)){return r}}return-1}var Ct=mt;var wt=Array.prototype;var yt=wt.splice;function bt(e){var t=this.__data__,r=Ct(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{yt.call(t,r,1)}--this.size;return true}var Lt=bt;function xt(e){var t=this.__data__,r=Ct(t,e);return r<0?undefined:t[r][1]}var _t=xt;function St(e){return Ct(this.__data__,e)>-1}var Et=St;function kt(e,t){var r=this.__data__,n=Ct(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}var zt=kt;function Rt(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Rt.prototype.clear=ht;Rt.prototype["delete"]=Lt;Rt.prototype.get=_t;Rt.prototype.has=Et;Rt.prototype.set=zt;var Ot=Rt;function Ft(){this.__data__=new Ot;this.size=0}var jt=Ft;function Pt(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}var Dt=Pt;function At(e){return this.__data__.get(e)}var It=At;function Tt(e){return this.__data__.has(e)}var Mt=Tt;var Bt=v["__core-js_shared__"];var Ht=Bt;var Wt=function(){var e=/[^.]+$/.exec(Ht&&Ht.keys&&Ht.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ut(e){return!!Wt&&Wt in e}var Nt=Ut;var Vt=Function.prototype;var Zt=Vt.toString;function Gt(e){if(e!=null){try{return Zt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $t=Gt;var Xt=/[\\^$.*+?()[\]{}|]/g;var Yt=/^\[object .+?Constructor\]$/;var qt=Function.prototype,Kt=Object.prototype;var Jt=qt.toString;var Qt=Kt.hasOwnProperty;var er=RegExp("^"+Jt.call(Qt).replace(Xt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tr(e){if(!h(e)||Nt(e)){return false}var t=rt(e)?er:Yt;return t.test($t(e))}var rr=tr;function nr(e,t){return e==null?undefined:e[t]}var ir=nr;function or(e,t){var r=ir(e,t);return rr(r)?r:undefined}var ar=or;var sr=ar(v,"Map");var ur=sr;var lr=ar(Object,"create");var cr=lr;function fr(){this.__data__=cr?cr(null):{};this.size=0}var vr=fr;function dr(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}var hr=dr;var pr="__lodash_hash_undefined__";var gr=Object.prototype;var mr=gr.hasOwnProperty;function Cr(e){var t=this.__data__;if(cr){var r=t[e];return r===pr?undefined:r}return mr.call(t,e)?t[e]:undefined}var wr=Cr;var yr=Object.prototype;var br=yr.hasOwnProperty;function Lr(e){var t=this.__data__;return cr?t[e]!==undefined:br.call(t,e)}var xr=Lr;var _r="__lodash_hash_undefined__";function Sr(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=cr&&t===undefined?_r:t;return this}var Er=Sr;function kr(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}kr.prototype.clear=vr;kr.prototype["delete"]=hr;kr.prototype.get=wr;kr.prototype.has=xr;kr.prototype.set=Er;var zr=kr;function Rr(){this.size=0;this.__data__={hash:new zr,map:new(ur||Ot),string:new zr}}var Or=Rr;function Fr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var jr=Fr;function Pr(e,t){var r=e.__data__;return jr(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Dr=Pr;function Ar(e){var t=Dr(this,e)["delete"](e);this.size-=t?1:0;return t}var Ir=Ar;function Tr(e){return Dr(this,e).get(e)}var Mr=Tr;function Br(e){return Dr(this,e).has(e)}var Hr=Br;function Wr(e,t){var r=Dr(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}var Ur=Wr;function Nr(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Nr.prototype.clear=Or;Nr.prototype["delete"]=Ir;Nr.prototype.get=Mr;Nr.prototype.has=Hr;Nr.prototype.set=Ur;var Vr=Nr;var Zr=200;function Gr(e,t){var r=this.__data__;if(r instanceof Ot){var n=r.__data__;if(!ur||n.length<Zr-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new Vr(n)}r.set(e,t);this.size=r.size;return this}var $r=Gr;function Xr(e){var t=this.__data__=new Ot(e);this.size=t.size}Xr.prototype.clear=jt;Xr.prototype["delete"]=Dt;Xr.prototype.get=It;Xr.prototype.has=Mt;Xr.prototype.set=$r;var Yr=Xr;var qr="__lodash_hash_undefined__";function Kr(e){this.__data__.set(e,qr);return this}var Jr=Kr;function Qr(e){return this.__data__.has(e)}var en=Qr;function tn(e){var t=-1,r=e==null?0:e.length;this.__data__=new Vr;while(++t<r){this.add(e[t])}}tn.prototype.add=tn.prototype.push=Jr;tn.prototype.has=en;var rn=tn;function nn(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var on=nn;function an(e,t){return e.has(t)}var sn=an;var un=1,ln=2;function cn(e,t,r,n,i,o){var a=r&un,s=e.length,u=t.length;if(s!=u&&!(a&&u>s)){return false}var l=o.get(e);var c=o.get(t);if(l&&c){return l==t&&c==e}var f=-1,v=true,d=r&ln?new rn:undefined;o.set(e,t);o.set(t,e);while(++f<s){var h=e[f],p=t[f];if(n){var g=a?n(p,h,f,t,e,o):n(h,p,f,e,t,o)}if(g!==undefined){if(g){continue}v=false;break}if(d){if(!on(t,(function(e,t){if(!sn(d,t)&&(h===e||i(h,e,r,n,o))){return d.push(t)}}))){v=false;break}}else if(!(h===p||i(h,p,r,n,o))){v=false;break}}o["delete"](e);o["delete"](t);return v}var fn=cn;var vn=v.Uint8Array;var dn=vn;function hn(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}var pn=hn;function gn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var mn=gn;var Cn=1,wn=2;var yn="[object Boolean]",bn="[object Date]",Ln="[object Error]",xn="[object Map]",_n="[object Number]",Sn="[object RegExp]",En="[object Set]",kn="[object String]",zn="[object Symbol]";var Rn="[object ArrayBuffer]",On="[object DataView]";var Fn=p?p.prototype:undefined,jn=Fn?Fn.valueOf:undefined;function Pn(e,t,r,n,i,o,a){switch(r){case On:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case Rn:if(e.byteLength!=t.byteLength||!o(new dn(e),new dn(t))){return false}return true;case yn:case bn:case _n:return gt(+e,+t);case Ln:return e.name==t.name&&e.message==t.message;case Sn:case kn:return e==t+"";case xn:var s=pn;case En:var u=n&Cn;s||(s=mn);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=wn;a.set(e,t);var c=fn(s(e),s(t),n,i,o,a);a["delete"](e);return c;case zn:if(jn){return jn.call(e)==jn.call(t)}}return false}var Dn=Pn;function An(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}var In=An;function Tn(e,t,r){var n=t(e);return G(e)?n:In(n,r(e))}var Mn=Tn;function Bn(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}var Hn=Bn;function Wn(){return[]}var Un=Wn;var Nn=Object.prototype;var Vn=Nn.propertyIsEnumerable;var Zn=Object.getOwnPropertySymbols;var Gn=!Zn?Un:function(e){if(e==null){return[]}e=Object(e);return Hn(Zn(e),(function(t){return Vn.call(e,t)}))};var $n=Gn;function Xn(e){return Mn(e,at,$n)}var Yn=Xn;var qn=1;var Kn=Object.prototype;var Jn=Kn.hasOwnProperty;function Qn(e,t,r,n,i,o){var a=r&qn,s=Yn(e),u=s.length,l=Yn(t),c=l.length;if(u!=c&&!a){return false}var f=u;while(f--){var v=s[f];if(!(a?v in t:Jn.call(t,v))){return false}}var d=o.get(e);var h=o.get(t);if(d&&h){return d==t&&h==e}var p=true;o.set(e,t);o.set(t,e);var g=a;while(++f<u){v=s[f];var m=e[v],C=t[v];if(n){var w=a?n(C,m,v,t,e,o):n(m,C,v,e,t,o)}if(!(w===undefined?m===C||i(m,C,r,n,o):w)){p=false;break}g||(g=v=="constructor")}if(p&&!g){var y=e.constructor,b=t.constructor;if(y!=b&&("constructor"in e&&"constructor"in t)&&!(typeof y=="function"&&y instanceof y&&typeof b=="function"&&b instanceof b)){p=false}}o["delete"](e);o["delete"](t);return p}var ei=Qn;var ti=ar(v,"DataView");var ri=ti;var ni=ar(v,"Promise");var ii=ni;var oi=ar(v,"Set");var ai=oi;var si=ar(v,"WeakMap");var ui=si;var li="[object Map]",ci="[object Object]",fi="[object Promise]",vi="[object Set]",di="[object WeakMap]";var hi="[object DataView]";var pi=$t(ri),gi=$t(ur),mi=$t(ii),Ci=$t(ai),wi=$t(ui);var yi=c;if(ri&&yi(new ri(new ArrayBuffer(1)))!=hi||ur&&yi(new ur)!=li||ii&&yi(ii.resolve())!=fi||ai&&yi(new ai)!=vi||ui&&yi(new ui)!=di){yi=function(e){var t=c(e),r=t==ci?e.constructor:undefined,n=r?$t(r):"";if(n){switch(n){case pi:return hi;case gi:return li;case mi:return fi;case Ci:return vi;case wi:return di}}return t}}var bi=yi;var Li=1;var xi="[object Arguments]",_i="[object Array]",Si="[object Object]";var Ei=Object.prototype;var ki=Ei.hasOwnProperty;function zi(e,t,r,n,i,o){var a=G(e),s=G(t),u=a?_i:bi(e),l=s?_i:bi(t);u=u==xi?Si:u;l=l==xi?Si:l;var c=u==Si,f=l==Si,v=u==l;if(v&&Y(e)){if(!Y(t)){return false}a=true;c=false}if(v&&!c){o||(o=new Yr);return a||Ae(e)?fn(e,t,r,n,i,o):Dn(e,t,u,r,n,i,o)}if(!(r&Li)){var d=c&&ki.call(e,"__wrapped__"),h=f&&ki.call(t,"__wrapped__");if(d||h){var p=d?e.value():e,g=h?t.value():t;o||(o=new Yr);return i(p,g,r,n,o)}}if(!v){return false}o||(o=new Yr);return ei(e,t,r,n,i,o)}var Ri=zi;function Oi(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!l(e)&&!l(t)){return e!==e&&t!==t}return Ri(e,t,r,n,Oi,i)}var Fi=Oi;var ji=1,Pi=2;function Di(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null){return!o}e=Object(e);while(i--){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e)){return false}}while(++i<o){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===undefined&&!(u in e)){return false}}else{var f=new Yr;if(n){var v=n(l,c,u,e,t,f)}if(!(v===undefined?Fi(c,l,ji|Pi,n,f):v)){return false}}}return true}var Ai=Di;function Ii(e){return e===e&&!h(e)}var Ti=Ii;function Mi(e){var t=at(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,Ti(i)]}return t}var Bi=Mi;function Hi(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}var Wi=Hi;function Ui(e){var t=Bi(e);if(t.length==1&&t[0][2]){return Wi(t[0][0],t[0][1])}return function(r){return r===e||Ai(r,e,t)}}var Ni=Ui;var Vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zi=/^\w*$/;function Gi(e,t){if(G(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||g(e)){return true}return Zi.test(e)||!Vi.test(e)||t!=null&&e in Object(t)}var $i=Gi;var Xi="Expected a function";function Yi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(Xi)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Yi.Cache||Vr);return r}Yi.Cache=Vr;var qi=Yi;var Ki=500;function Ji(e){var t=qi(e,(function(e){if(r.size===Ki){r.clear()}return e}));var r=t.cache;return t}var Qi=Ji;var eo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var to=/\\(\\)?/g;var ro=Qi((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(eo,(function(e,r,n,i){t.push(n?i.replace(to,"$1"):r||e)}));return t}));var no=ro;function io(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}var oo=io;var ao=1/0;var so=p?p.prototype:undefined,uo=so?so.toString:undefined;function lo(e){if(typeof e=="string"){return e}if(G(e)){return oo(e,lo)+""}if(g(e)){return uo?uo.call(e):""}var t=e+"";return t=="0"&&1/e==-ao?"-0":t}var co=lo;function fo(e){return e==null?"":co(e)}var vo=fo;function ho(e,t){if(G(e)){return e}return $i(e,t)?[e]:no(vo(e))}var po=ho;var go=1/0;function mo(e){if(typeof e=="string"||g(e)){return e}var t=e+"";return t=="0"&&1/e==-go?"-0":t}var Co=mo;function wo(e,t){t=po(t,e);var r=0,n=t.length;while(e!=null&&r<n){e=e[Co(t[r++])]}return r&&r==n?e:undefined}var yo=wo;function bo(e,t,r){var n=e==null?undefined:yo(e,t);return n===undefined?r:n}var Lo=bo;function xo(e,t){return e!=null&&t in Object(e)}var _o=xo;function So(e,t,r){t=po(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=Co(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&re(i)&&Q(a,i)&&(G(e)||V(e))}var Eo=So;function ko(e,t){return e!=null&&Eo(e,t,_o)}var zo=ko;var Ro=1,Oo=2;function Fo(e,t){if($i(e)&&Ti(t)){return Wi(Co(e),t)}return function(r){var n=Lo(r,e);return n===undefined&&n===t?zo(r,e):Fi(t,n,Ro|Oo)}}var jo=Fo;function Po(e){return e}var Do=Po;function Ao(e){return function(t){return t==null?undefined:t[e]}}var Io=Ao;function To(e){return function(t){return yo(t,e)}}var Mo=To;function Bo(e){return $i(e)?Io(Co(e)):Mo(e)}var Ho=Bo;function Wo(e){if(typeof e=="function"){return e}if(e==null){return Do}if(typeof e=="object"){return G(e)?jo(e[0],e[1]):Ni(e)}return Ho(e)}var Uo=Wo;function No(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}var Vo=No;function Zo(e,t,r){var n=G(e)?O:Vo,i=arguments.length<3;return n(e,Uo(t),r,i,vt)}var Go=Zo;function $o(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}var Xo=$o;function Yo(e){return typeof e=="function"?e:Do}var qo=Yo;function Ko(e,t){var r=G(e)?Xo:vt;return r(e,qo(t))}var Jo=Ko;var Qo=Jo;function ea(e){return function(t,r,n){var i=Object(t);if(!it(t)){var o=Uo(r);t=at(t);r=function(e){return o(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:undefined}}var ta=ea;function ra(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}var na=ra;var ia=1/0,oa=17976931348623157e292;function aa(e){if(!e){return e===0?e:0}e=m(e);if(e===ia||e===-ia){var t=e<0?-1:1;return t*oa}return e===e?e:0}var sa=aa;function ua(e){var t=sa(e),r=t%1;return t===t?r?t-r:t:0}var la=ua;var ca=Math.max;function fa(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:la(r);if(i<0){i=ca(n+i,0)}return na(e,Uo(t),i)}var va=fa;var da=ta(va);var ha=da;var pa=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var ga=function(e,t){var r;return function(){var n=[];for(var i=0;i<arguments.length;i++){n[i]=arguments[i]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var ma=function(e){return!("isConnected"in e)||e.isConnected};var Ca=ga((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(ma))}}),2e3);var wa=function(e){var t=e.on;var i=new Map;if(typeof r==="function"){t("dispose",(function(){i.clear()}));t("get",(function(e){var t=r();if(t){pa(i,e,t)}}));t("set",(function(e){var t=i.get(e);if(t){i.set(e,t.filter(n))}Ca(i)}));t("reset",(function(){i.forEach((function(e){return e.forEach(n)}));Ca(i)}))}};var ya=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var i=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var o=function(){n.dispose.forEach((function(e){return e()}));i()};var a=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var s=function(e,i){var o=r.get(e);if(t(i,o,e)){r.set(e,i);n.set.forEach((function(t){return t(e,i,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){s(t,r);return true}});var l=function(e,t){n[e].push(t);return function(){ba(n[e],t)}};var c=function(t,r){var n=l("set",(function(e,n){if(e===t){r(n)}}));var i=l("reset",(function(){return r(e[t])}));return function(){n();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){l("set",e.set)}if(e.get){l("get",e.get)}if(e.reset){l("reset",e.reset)}}))};return{state:u,get:a,set:s,on:l,onChange:c,use:f,dispose:o,reset:i}};var ba=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var La=function(e,t){var r=ya(e,t);wa(r);return r};var xa=Math.ceil,_a=Math.max;function Sa(e,t,r,n){var i=-1,o=_a(xa((t-e)/(r||1)),0),a=Array(o);while(o--){a[n?o:++i]=e;e+=r}return a}var Ea=Sa;function ka(e,t,r){if(!h(r)){return false}var n=typeof t;if(n=="number"?it(r)&&Q(t,r.length):n=="string"&&t in r){return gt(r[t],e)}return false}var za=ka;function Ra(e){return function(t,r,n){if(n&&typeof n!="number"&&za(t,r,n)){r=n=undefined}t=sa(t);if(r===undefined){r=t;t=0}else{r=sa(r)}n=n===undefined?t<r?1:-1:sa(n);return Ea(t,r,n,e)}}var Oa=Ra;var Fa=Oa();var ja=Fa;var Pa=function(e){return{set:function(t,r){switch(t){case"trimmed":var n=e.get("proxyItems");var i=Da(r);var o=n.reduce((function(e,t){if(!i[t]){e.push(t)}return e}),[]);e.set("items",o);break}}}};function Da(e){var t={};for(var r in e){for(var n in e[r]){t[n]=t[n]||e[r][n]}}return t}function Aa(e,t){for(var r in t){e.set(r,t[r])}}var Ia=function(e){return{set:function(t,r){if(!Ta(t)){return}var n=e.get("items").reduce((function(e,t){e[t]=true;return e}),{});var i=r.reduce((function(e,t){if(n[t]){e.push(t)}return e}),[]);e.set("items",i)}}};function Ta(e){return e==="proxyItems"}var Ma=function(){function e(e){var t=this.dataStore=La({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:e,trimmed:{}});t.use(Ia(t));t.use(Pa(t))}Object.defineProperty(e.prototype,"store",{get:function(){return this.dataStore},enumerable:false,configurable:true});e.prototype.updateData=function(e,t,r){if(r===void 0){r=false}if(!r){this.store.set("trimmed",{})}this.store.set("items",[]);var n=ja(0,(e===null||e===void 0?void 0:e.length)||0);Aa(this.store,{source:e,proxyItems:__spreadArray([],n,true)});this.store.set("items",n);if(t){Aa(this.store,{groupingDepth:t.depth,groups:t.groups,groupingCustomRenderer:t.customRenderer})}};e.prototype.addTrimmed=function(e){var t=this.store.get("trimmed");t=Object.assign(Object.assign({},t),e);Aa(this.store,{trimmed:t})};e.prototype.setData=function(e){var t=Object.assign({},e);Aa(this.store,t)};e.prototype.refresh=function(){var e=this.store.get("source");this.store.set("source",__spreadArray([],e,true))};return e}();function Ba(e,t){var r=e.get("items");return r[t]}function Ha(e){var t=e.get("source");return e.get("items").map((function(e){return t[e]}))}function Wa(e,t){var r=e.get("items");var n=e.get("source");return n[r[t]]}function Ua(e,t){var r=e.get("items");var n=e.get("source");for(var i in t){var o=r[i];n[o]=t[i]}e.set("source",__spreadArray([],n,true))}function Na(e,t){e.set("items",t)}function Va(e,t){var r=e.get("items");var n=e.get("source");var i=va(n,{prop:t});return r.indexOf(i)}var Za=["rowPinStart","rgRow","rowPinEnd"];var Ga=["colPinStart","rgCol","colPinEnd"];function $a(e){return Za.indexOf(e)>-1}function Xa(e,t){var r=-1,n=it(e)?Array(e.length):[];vt(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}var Ya=Xa;function qa(e,t){var r=G(e)?oo:Ya;return r(e,Uo(t))}var Ka=qa;var Ja=function(){function e(e){this.revogrid=e;this.subscriptions={}}e.prototype.addEventListener=function(e,t){this.revogrid.addEventListener(e,t);this.subscriptions[e]=t};e.prototype.removeEventListener=function(e){this.revogrid.removeEventListener(e,this.subscriptions[e]);delete this.subscriptions[e]};e.prototype.emit=function(e,t){var r=new CustomEvent(e,{detail:t,cancelable:true});this.revogrid.dispatchEvent(r);return r};e.prototype.clearSubscriptions=function(){for(var e in this.subscriptions){this.removeEventListener(e)}};e.prototype.destroy=function(){this.clearSubscriptions()};return e}();var Qa=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.gatherGroup=function(e,t,r,n){var i;if(n===void 0){n=0}var o=Object.assign(Object.assign({},t),{level:n,ids:[]});for(var a in r.columns){var s=a;var u=e.columns[s];var l=r.columns[s];if(G(u)&&G(l)){u.push.apply(u,l);if(l.length){e.columnGrouping[s].push(Object.assign(Object.assign({},o),{ids:Ka(l,"prop")}))}}}for(var a in r.columnGrouping){var s=a;var l=r.columnGrouping[s];(i=e.columnGrouping[s]).push.apply(i,l)}e.maxLevel=Math.max(e.maxLevel,r.maxLevel);e.sort=Object.assign(Object.assign({},e.sort),r.sort);return e};return t}(Ja);function es(e){return!!e.children}var ts=function(){function e(){this.sorting=null;this.dataSources=Go(Ga,(function(e,t){e[t]=new Ma(t);return e}),{})}Object.defineProperty(e.prototype,"order",{get:function(){return Go(this.sorting,(function(e,t,r){e[r]=t.order;return e}),{})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"stores",{get:function(){return this.dataSources},enumerable:false,configurable:true});e.prototype.column=function(e,t){return this.getColumn(e,t||"rgCol")};e.prototype.getColumn=function(e,t){return Wa(this.dataSources[t].store,e)};e.prototype.getRawColumns=function(){return Go(this.dataSources,(function(e,t,r){e[r]=t.store.get("source");return e}),{rgCol:[],colPinStart:[],colPinEnd:[]})};e.prototype.getColumns=function(e){var t=this;if(e===void 0){e="all"}if(e!=="all"){return this.dataSources[e].store.get("source")}return Ga.reduce((function(e,r){e.push.apply(e,t.dataSources[r].store.get("source"));return e}),[])};e.prototype.getColumnIndexByProp=function(e,t){return Va(this.dataSources[t].store,e)};e.prototype.getColumnByProp=function(e,t){var r=this.dataSources[t].store.get("source");return ha(r,{prop:e})};e.prototype.refreshByType=function(e){this.dataSources[e].refresh()};e.prototype.setColumns=function(e){var t=this;Qo(Ga,(function(r){t.dataSources[r].updateData(e.columns[r],{depth:e.maxLevel,groups:Go(e.columnGrouping[r],(function(e,t){if(!e[t.level]){e[t.level]=[]}e[t.level].push(t);return e}),{})})}));this.sorting=e.sort;return e};e.prototype.updateColumns=function(t){var r=this;var n=t.reduce((function(t,r){var n=e.getColumnType(r);if(!t[n]){t[n]={}}t[n][r.prop]=r;return t}),{});var i={};Qo(n,(function(e,t){var n=r.dataSources[t].store.get("source");i[t]=n.reduce((function(t,r,n){var i=e[r.prop];if(i){t[n]=i}return t}),{})}));Qo(i,(function(e,t){return Ua(r.dataSources[t].store,e)}))};e.prototype.updateColumn=function(t,r){var n;var i=e.getColumnType(t);Ua(this.dataSources[i].store,(n={},n[r]=t,n))};e.prototype.updateColumnSorting=function(e,t,r,n){if(!n){this.clearSorting()}e.order=r;this.sorting[e.prop]=e;this.updateColumn(e,t);return e};e.prototype.clearSorting=function(){var t=this;var r=Go(this.sorting,(function(t,r){var n=e.getColumnType(r);t[n]=true;return t}),{});Qo(r,(function(e,r){var n=t.dataSources[r].store.get("source");Qo(n,(function(e){return e.order=undefined}));t.dataSources[r].setData({source:__spreadArray([],n,true)})}));this.sorting={}};e.getSizes=function(e){return Go(e,(function(e,t,r){if(t.size){e[r]=t.size}return e}),{})};e.getColumnByProp=function(t,r){return ha(t,(function(t){if(es(t)){return e.getColumnByProp(t.children,r)}return t.prop===r}))};e.getColumns=function(t,r,n){if(r===void 0){r=0}return Go(t,(function(t,i){if(es(i)){return Qa.gatherGroup(t,i,e.getColumns(i.children,r+1,n),r)}var o=Object.assign(Object.assign({},i.columnType&&n&&n[i.columnType]),i);if(!o.pin){t.columns.rgCol.push(o)}else{t.columns[o.pin].push(o)}if(o.order){t.sort[o.prop]=o}o.beforeSetup&&o.beforeSetup(o);return t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})};e.getColumnType=function(e){if(e.pin){return e.pin}return"rgCol"};return e}();var rs=function(){function e(e){this.dimensionProvider=e;this.stores=Go(Za,(function(e,t){e[t]=new Ma(t);return e}),{})}e.prototype.setData=function(e,t,r,n){if(t===void 0){t="rgRow"}if(n===void 0){n=false}this.stores[t].updateData(__spreadArray([],e,true),r,n);this.dimensionProvider.setData(e,t,t!=="rgRow");return e};e.prototype.getModel=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t].store;return Wa(r,e)};e.prototype.setCellData=function(e){var t;var r=e.type,n=e.rowIndex,i=e.prop,o=e.val;var a=this.getModel(n,r);a[i]=o;Ua(this.stores[r].store,(t={},t[n]=a,t))};e.prototype.refresh=function(e){var t=this;if(e===void 0){e="all"}if($a(e)){this.refreshItems(e)}Za.forEach((function(e){return t.refreshItems(e)}))};e.prototype.refreshItems=function(e){if(e===void 0){e="rgRow"}var t=this.stores[e].store.get("items");this.stores[e].setData({items:__spreadArray([],t,true)})};e.prototype.setGrouping=function(e,t){var r=e.depth;if(t===void 0){t="rgRow"}this.stores[t].setData({groupingDepth:r})};e.prototype.setTrimmed=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t];r.addTrimmed(e);if(t==="rgRow"){this.dimensionProvider.setData(Ha(r.store),t)}};return e}();var ns=4294967295,is=ns-1;var os=Math.floor,as=Math.min;function ss(e,t,r,n){var i=0,o=e==null?0:e.length;if(o===0){return 0}t=r(t);var a=t!==t,s=t===null,u=g(t),l=t===undefined;while(i<o){var c=os((i+o)/2),f=r(e[c]),v=f!==undefined,d=f===null,h=f===f,p=g(f);if(a){var m=n||h}else if(l){m=h&&(n||v)}else if(s){m=h&&v&&(n||!d)}else if(u){m=h&&v&&!d&&(n||!p)}else if(d||p){m=false}else{m=n?f<=t:f<t}if(m){i=c+1}else{o=c}}return as(o,is)}var us=ss;var ls=4294967295,cs=ls>>>1;function fs(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=cs){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!g(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return us(e,t,Do,r)}var vs=fs;function ds(e,t){return vs(e,t)}var hs=ds;function ps(e,t){return e<t}function gs(e,t,r){if(r===void 0){r=ps}var n=[];var i=0;var o=0;var a=0;while(a<e.length+t.length){var s=i>=e.length;var u=o>=t.length;if(!s&&(u||r(e[i],t[o]))){n[a]=e[i];i++}else{n[a]=t[o];o++}a++}return n}function ms(e){var t=e.createElement("div");var r=t.style;r.visibility="hidden";r.overflow="scroll";r.msOverflowStyle="scrollbar";e.body.appendChild(t);var n=e.createElement("div");t.appendChild(n);var i=t.offsetWidth-n.offsetWidth;t.parentNode.removeChild(t);return i}function Cs(e,t,r){return(r[1]-r[0])*(e-t[0])/(t[1]-t[0])+r[0]}function ws(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){setTimeout((function(){return t()}),e)}))];case 1:t.sent();return[2]}}))}))}function ys(e,t){var r=[];var n={};var i={};var o=0;var a=Object.assign(Object.assign({},e.sizes),t);var s=[];Qo(t,(function(t,r){if(!e.sizes[r]){o+=t-(e.realSize?e.originItemSize:0);s.splice(hs(s,parseInt(r,10)),0,parseInt(r,10))}else{o+=t-e.sizes[r]}}));var u=gs(e.indexes,s);Go(u,(function(t,o,s){var u={itemIndex:o,start:0,end:0};if(t){u.start=(o-t.itemIndex-1)*e.originItemSize+t.end}else{u.start=o*e.originItemSize}u.end=u.start+a[o];r.push(u.start);i[o]=n[s]=u;return u}),undefined);return{indexes:u,positionIndexes:__spreadArray([],r,true),positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:e.realSize+o,sizes:a}}function bs(e,t){var r=e.indexes,n=e.positionIndexes,i=e.originItemSize,o=e.positionIndexToItem;var a={itemIndex:0,start:0,end:0};var s=r.length?hs(n,t):0;if(!s){a.itemIndex=Math.floor(t/i);a.start=a.itemIndex*i;a.end=a.start+i;return a}var u=o[s-1];if(u.end>t){return u}var l=t-u.end;var c=Math.floor(l/i);a.itemIndex=u.itemIndex+1+c;a.start=u.end+c*i;a.end=a.start+i;return a}function Ls(e,t){var r={itemIndex:t,start:0,end:0};if(e.indexToItem[t]){return e.indexToItem[t]}var n=e.indexes.length?hs(e.indexes,t):0;if(!n){r.start=r.itemIndex*e.originItemSize;r.end=r.start+e.originItemSize;return r}var i=e.indexToItem[e.indexes[n-1]];r.start=i.end+(t-i.itemIndex-1)*e.originItemSize;r.end=r.start+e.originItemSize;return r}function xs(){return{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}}function _s(){return Object.assign(Object.assign({},xs()),{realSize:0,originItemSize:0,frameOffset:0})}var Ss=function(){function e(){this.store=La(_s())}e.prototype.getCurrentState=function(){var e=this;var t=_s();var r=Object.keys(t);return Go(r,(function(t,r){var n=e.store.get(r);t[r]=n;return t}),t)};e.prototype.setRealSize=function(e){var t=0;for(var r=0;r<e;r++){t+=this.store.get("sizes")[r]||this.store.get("originItemSize")}Aa(this.store,{realSize:t})};e.prototype.setStore=function(e){Aa(this.store,e)};e.prototype.drop=function(){Aa(this.store,xs())};e.prototype.setDimensionSize=function(e){var t=ys(this.getCurrentState(),e);Aa(this.store,t);return t};return e}();var Es=function(){function e(e){this.viewports=e;this.stores=Go(__spreadArray(__spreadArray([],Za,true),Ga,true),(function(e,t){e[t]=new Ss;return e}),{})}e.prototype.setDimensionSize=function(e,t){this.stores[e].setDimensionSize(t);this.viewports.stores[e].setViewPortDimension(t)};e.prototype.setRealSize=function(e,t){this.viewports.stores[t].setViewport({realCount:e});this.stores[t].setRealSize(e)};e.prototype.setCustomSizes=function(e,t,r){if(r===void 0){r=false}var n=t;if(r){var i=this.stores[e].store.get("sizes");n=Object.assign(Object.assign({},i),t)}this.stores[e].setDimensionSize(n);this.viewports.stores[e].setViewPortDimension(n,!r?this.stores[e].store.get("originItemSize"):undefined)};e.prototype.setData=function(e,t,r){if(r===void 0){r=false}this.setRealSize(e.length,t);if(r){this.setNoVirtual(t)}this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})};e.prototype.setNoVirtual=function(e){var t=this.stores[e].getCurrentState();this.viewports.stores[e].setViewport({virtualSize:t.realSize})};e.prototype.dropColumns=function(){for(var e=0,t=Ga;e<t.length;e++){var r=t[e];this.stores[r].drop();this.viewports.stores[r].clear()}};e.prototype.setColumns=function(e,t,r,n){if(n===void 0){n=false}this.setRealSize(t,e);this.setCustomSizes(e,r);if(n){this.setNoVirtual(e)}this.setViewPortCoordinate({coordinate:this.viewports.stores[e].store.get("lastCoordinate"),type:e})};e.prototype.setViewPortCoordinate=function(e){var t=e.coordinate,r=e.type;var n=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,n)};e.prototype.getViewPortPos=function(e){var t=this.stores[e.dimension].getCurrentState();var r=Ls(t,e.coordinate);return r.start};e.prototype.setSettings=function(e,t){var r=[];switch(t){case"rgCol":r=Ga;break;case"rgRow":r=Za;break}for(var n=0,i=r;n<i.length;n++){var o=i[n];this.stores[o].setStore(e)}};return e}();function ks(e,t,r,n,i){var o=bs(i,e);var a=Is(t);var s;if(a){var u=o.itemIndex-(a.itemIndex||0);if(u){s=js(Math.abs(u),Object.assign(Object.assign({positiveDirection:u>-1},i),t))}}var l=zs(n,i.realSize,o);if(s){var c=Os(o,r,l,s,i);if(c.length){Rs(s.items,c,s)}}if(!s){var f=Fs({firstItemStart:o.start,firstItemIndex:o.itemIndex,origSize:i.originItemSize,maxSize:l,maxCount:r,sizes:i.sizes});s={items:f,start:0,end:f.length-1}}return s}function zs(e,t,r){return Math.min(e+(r.end-r.start),t)}function Rs(e,t,r){e.splice.apply(e,__spreadArray([r.end+1,0],t,false));if(r.start>=r.end&&!(r.start===r.end&&r.start===0)){r.start+=t.length}r.end+=t.length}function Os(e,t,r,n,i){var o=Ts(n);var a=Fs({sizes:i.sizes,firstItemStart:o.end,firstItemIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:r-(o.end-e.start),maxCount:t});return a}function Fs(e,t){if(t===void 0){t=0}var r=[];var n=e.firstItemIndex;var i=t;while(i<=e.maxSize&&n<e.maxCount){var o=Ps(n,e.sizes,e.origSize);r.push({start:e.firstItemStart+i,end:e.firstItemStart+i+o,itemIndex:n,size:o});i+=o;n++}return r}function js(e,t){var r=__spreadArray([],t.items,true);var n=r.length;var i={start:t.start,end:t.end};if(e>n){return null}if(t.positiveDirection){var o=Ts(t);var a=i.start;var s=a+e;for(;a<s;a++){var u=o.itemIndex+1;var l=Ps(u,t.sizes,t.originItemSize);if(o.end+l>t.realSize){break}var c=a%n;if(!r[c]){throw new Error("incorrect index")}r[c]=o={start:o.end,end:o.end+l,itemIndex:u,size:l};i.start++;i.end=c}}else{var f=Is(t);var v=i.end;for(var a=0;a<e;a++){var u=f.itemIndex-1;var d=Ps(u,t.sizes,t.originItemSize);var h=v-a;h=(h<0?n+h:h)%n;if(!r[h]){throw new Error("incorrect index")}r[h]=f={start:f.start-d,end:f.start,itemIndex:u,size:d};i.start=h;i.end--}}var p={start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n};return Object.assign({items:r},p)}function Ps(e,t,r){if(r===void 0){r=0}if(t&&t[e]){return t[e]}return r}function Ds(e,t,r,n){if(!r||!n){return false}return e>=r.start&&e<=r.end||e>r.end&&n.end===t}function As(e,t,r,n){if(!r){return false}return t+e>(n===null||n===void 0?void 0:n.end)}function Is(e){return e.items[e.start]}function Ts(e){return e.items[e.end]}function Ms(e,t,r,n){var i=__spreadArray([],e,true);var o=i.length;var a=n;var s=0;var u=t;if(!o){return[]}while(s<o){var l=i[u];l.start=a;l.size=r;l.end=l.start+r;a=l.end;u++;s++;if(u===o){u=0}}return i}function Bs(){return{items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}}var Hs=function(){function e(){var e=this;this.store=La(Bs());this.store.onChange("realCount",(function(){return e.clear()}))}e.prototype.setViewPortCoordinate=function(e,t){var r=this.store.get("virtualSize");if(!r){return}var n=t.frameOffset;var i=t.originItemSize*n;var o=i*2;r+=o;var a=0;if(t.realSize>r){a=t.realSize-r}var s={lastCoordinate:e};var u=e;u-=i;u=u<0?0:u<a?u:a;var l=this.getItems();var c=Is(l);var f=Ts(l);if(!Ds(u,t.realSize,c,f)){s=Object.assign(Object.assign({},s),ks(u,l,this.store.get("realCount"),r,t));this.setViewport(Object.assign({},s))}else if(As(u,r,c,f)){var v=Os(c,this.store.get("realCount"),r+u-c.start,l,t);if(v.length){var d=__spreadArray([],this.store.get("items"),true);var h={start:this.store.get("start"),end:this.store.get("end")};Rs(d,v,h);s=Object.assign(Object.assign(Object.assign({},s),{items:__spreadArray([],d,true)}),h);this.setViewport(Object.assign({},s))}}};e.prototype.setViewPortDimension=function(e,t){var r=this.store.get("items");var n=r.length;if(!n){return}var i=0;var o=0;var a=this.store.get("start");if(t){r=Ms(r,a,t,this.store.get("lastCoordinate"))}while(o<n){var s=r[a];if(i){s.start+=i;s.end+=i}var u=e[s.itemIndex];if(u){var l=u-s.size;i+=l;s.size=u;s.end=s.start+u}a++;o++;if(a===n){a=0}}this.setViewport({items:__spreadArray([],r,true)})};e.prototype.getItems=function(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}};e.prototype.setViewport=function(e){Aa(this.store,e)};e.prototype.clear=function(){this.store.set("items",[])};return e}();var Ws=function(){function e(){this.stores=Go(__spreadArray(__spreadArray([],Za,true),Ga,true),(function(e,t){e[t]=new Hs;return e}),{})}e.prototype.setViewport=function(e,t){this.stores[e].setViewport(t)};return e}();var Us=7;var Ns;(function(e){e["headerClickAutosize"]="headerClickAutoSize";e["autoSizeOnTextOverlap"]="autoSizeOnTextOverlap";e["autoSizeAll"]="autoSizeAll"})(Ns||(Ns={}));var Vs=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.providers=r;i.config=n;i.autoSizeColumns=null;i.dataResolve=null;i.dataReject=null;i.letterBlockSize=(n===null||n===void 0?void 0:n.letterBlockSize)||Us;if(n===null||n===void 0?void 0:n.preciseSize){i.precsizeCalculationArea=i.initiatePresizeElement();t.appendChild(i.precsizeCalculationArea)}var o=function(e){var t=e.detail.source;i.setSource(t)};var a=function(e){var t=e.detail;i.afteredit(t)};var s=function(e){var t=e.detail;i.afterEditAll(t)};var u=function(e){var t=e.detail.columns;i.columnSet(t)};var l=function(e){var t;var r=e.detail;var n=ts.getColumnType(r);var o=i.getColumnSize(r.index,n);if(o){i.providers.dimensionProvider.setDimensionSize(n,(t={},t[r.index]=o,t))}};i.addEventListener("beforecolumnsset",u);switch(n===null||n===void 0?void 0:n.mode){case Ns.autoSizeOnTextOverlap:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",a);break;case Ns.autoSizeAll:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",s);break;default:i.addEventListener("headerdblClick",l);break}return i}t.prototype.setSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;var i=this;return __generator(this,(function(o){switch(o.label){case 0:t=this.autoSizeColumns;if(this.dataReject){this.dataReject();this.clearPromise()}if(!!t)return[3,4];r=new Promise((function(e,t){i.dataResolve=e;i.dataReject=t}));o.label=1;case 1:o.trys.push([1,3,,4]);return[4,r];case 2:t=o.sent();return[3,4];case 3:n=o.sent();return[2];case 4:Qo(t,(function(r,n){var o={};Qo(t[n],(function(t){t.size=o[t.index]=e.reduce((function(e,r){return Math.max(e,i.getLength(r[t.prop]))}),i.getLength(t.name||""))}));i.providers.dimensionProvider.setDimensionSize(n,o)}));return[2]}}))}))};t.prototype.getLength=function(e){var t;var r=15;if(!e){return 0}try{var n=e.toString();if((t=this.config)===null||t===void 0?void 0:t.preciseSize){this.precsizeCalculationArea.innerText=n;return this.precsizeCalculationArea.scrollWidth+r*2}return n.length*this.letterBlockSize+r*2}catch(e){return 0}};t.prototype.afteredit=function(e){var t;var r=this;var n;if(this.isRangeEdit(e)){n=e.data}else{n={0:(t={},t[e.prop]=e.val,t)}}Qo(this.autoSizeColumns,(function(e,t){var i={};Qo(e,(function(e){var t=Go(n,(function(t,n){if(typeof n[e.prop]==="undefined"){return t}return Math.max(t||0,r.getLength(n[e.prop]))}),undefined);if(t&&e.size<t){e.size=i[e.index]=t}}));r.providers.dimensionProvider.setDimensionSize(t,i)}))};t.prototype.afterEditAll=function(e){var t=this;var r={};if(this.isRangeEdit(e)){Qo(e.data,(function(e){return Qo(e,(function(e,t){return r[t]=true}))}))}else{r[e.prop]=true}Qo(this.autoSizeColumns,(function(e,n){var i={};Qo(e,(function(e){if(r[e.prop]){var o=t.getColumnSize(e.index,n);if(o){i[e.index]=o}}}));t.providers.dimensionProvider.setDimensionSize(n,i)}))};t.prototype.getColumnSize=function(e,t){var r=this;var n=this.autoSizeColumns[t][e];if(!n){return 0}return Go(this.providers.dataProvider.stores,(function(e,t){var i=Go(t.store.get("items"),(function(e,i,o){var a=Wa(t.store,o);return Math.max(e||0,r.getLength(a[n.prop]))}),0);return Math.max(e,i)}),n.size||0)};t.prototype.columnSet=function(e){var t;for(var r=0,n=Ga;r<n.length;r++){var i=n[r];var o=i;var a=e[o];for(var s in a){if(a[s].autoSize||((t=this.config)===null||t===void 0?void 0:t.allColumns)){if(!this.autoSizeColumns){this.autoSizeColumns={}}if(!this.autoSizeColumns[o]){this.autoSizeColumns[o]={}}this.autoSizeColumns[o][s]=Object.assign(Object.assign({},a[s]),{index:parseInt(s,10)})}}}if(this.dataResolve){this.dataResolve(this.autoSizeColumns);this.clearPromise()}};t.prototype.clearPromise=function(){this.dataResolve=null;this.dataReject=null};t.prototype.isRangeEdit=function(e){return!!e.data};t.prototype.initiatePresizeElement=function(){var e={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"};var t=document.createElement("div");for(var r in e){t.style[r]=e[r]}t.classList.add("revo-test-container");return t};t.prototype.destroy=function(){var t;e.prototype.destroy.call(this);(t=this.precsizeCalculationArea)===null||t===void 0?void 0:t.remove()};return t}(Ja);var Zs=function(e,t){if(typeof e==="undefined"||e===null&&!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}var r=t.toString().toLocaleLowerCase();if(r.length===0){return true}return e.toLocaleLowerCase()===r};var Gs=function(e,t){return!Zs(e,t)};Gs.extra="input";Zs.extra="input";var $s=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e>r}return false};$s.extra="input";var Xs=function(e,t){return Zs(e,t)||$s(e,t)};Xs.extra="input";var Ys=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e<r}else{return false}};Ys.extra="input";var qs=function(e,t){return Zs(e,t)||Ys(e,t)};qs.extra="input";var Ks=function(e){return!(e===""||e===null||e===void 0)};var Js=function(e){return!Ks(e)};var Qs=function(e,t){if(!e){return false}if(!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}if(typeof t!=="string"){t=JSON.stringify(t)}return e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())===0};Qs.extra="input";var eu=function(e,t){if(!e){return false}if(t){if(typeof e!=="string"){e=JSON.stringify(e)}return e.toLocaleLowerCase().indexOf(t.toString().toLowerCase())>-1}return true};var tu=function(e,t){return!eu(e,t)};tu.extra="input";eu.extra="input";var ru={none:"None",empty:"Not set",notEmpty:"Set",eq:"Equal",notEq:"Not equal",begins:"Begins with",contains:"Contains",notContains:"Does not contain",eqN:"=",neqN:"!=",gt:">",gte:">=",lt:"<",lte:"<="};var nu={none:function(){return true},empty:Js,notEmpty:Ks,eq:Zs,notEq:Gs,begins:Qs,contains:eu,notContains:tu,eqN:Zs,neqN:Gs,gt:$s,gte:Xs,lt:Ys,lte:qs};var iu={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};var ou="filter";var au=function(e){__extends(t,e);function t(t,r,n){var o=this;var a;o=e.call(this,t)||this;o.revogrid=t;o.filterCollection={};o.multiFilterItems={};o.possibleFilters=Object.assign({},iu);o.possibleFilterNames=Object.assign({},ru);o.possibleFilterEntities=Object.assign({},nu);if(n){o.initConfig(n)}var s=function(e){return o.headerclick(e)};var u=function(){return __awaiter(o,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(r){switch(r.label){case 0:e=Object.keys(this.filterCollection);if(e.length>0){e.forEach((function(e,r){if(!t.multiFilterItems[e]){t.multiFilterItems[e]=[{id:r,type:t.filterCollection[e].type,value:t.filterCollection[e].value,relation:"and"}]}}))}return[4,this.runFiltering()];case 1:r.sent();return[2]}}))}))};o.addEventListener("headerclick",s);o.addEventListener("aftersourceset",u);o.revogrid.registerVNode([i("revogr-filter-panel",{uuid:"filter-".concat(r),filterItems:o.multiFilterItems,filterNames:o.possibleFilterNames,filterEntities:o.possibleFilterEntities,filterCaptions:(a=n===null||n===void 0?void 0:n.localization)===null||a===void 0?void 0:a.captions,onFilterChange:function(e){return o.onFilterChange(e.detail)},disableDynamicFiltering:n===null||n===void 0?void 0:n.disableDynamicFiltering,ref:function(e){return o.pop=e}})]);return o}t.prototype.initConfig=function(e){var t=this;if(e.collection){this.filterCollection=Object.assign({},e.collection)}if(e.multiFilterItems){this.multiFilterItems=Object.assign({},e.multiFilterItems)}if(e.customFilters){for(var r in e.customFilters){var n=e.customFilters[r];if(!this.possibleFilters[n.columnFilterType]){this.possibleFilters[n.columnFilterType]=[]}this.possibleFilters[n.columnFilterType].push(r);this.possibleFilterEntities[r]=n.func;this.possibleFilterNames[r]=n.name}}if(e.include){var i={};for(var o in this.possibleFilters){var a=this.possibleFilters[o].filter((function(t){return e.include.indexOf(t)>-1}));if(a.length){i[o]=a}}if(Object.keys(i).length>0){this.possibleFilters=i}}if(e.localization){if(e.localization.filterNames){Object.entries(e.localization.filterNames).forEach((function(e){var r=e[0],n=e[1];if(t.possibleFilterNames[r]!=void 0){t.possibleFilterNames[r]=n}}))}}};t.prototype.headerclick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a;var s=this;return __generator(this,(function(u){switch(u.label){case 0:r=(t=e.detail.originalEvent)===null||t===void 0?void 0:t.target;if(!C(r)){return[2]}e.preventDefault();return[4,this.pop.getChanges()];case 1:n=u.sent();if(n&&(n===null||n===void 0?void 0:n.prop)===e.detail.prop){this.pop.show();return[2]}i=this.revogrid.getBoundingClientRect();o=r.getBoundingClientRect();a=e.detail.prop;this.pop.filterTypes=this.getColumnFilter(e.detail.filter);this.pop.show(Object.assign(Object.assign({},this.filterCollection[a]),{x:-9999,y:o.y-i.y+o.height,prop:a}));setTimeout((function(){return __awaiter(s,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.pop.getBoundingClientRect().width;this.pop.style.left=Math.min(o.x-i.x,i.width-e-20)+"px";return[2]}))}))}));return[2]}}))}))};t.prototype.getColumnFilter=function(e){var t,r;var n=this;var i="string";if(!e){return t={},t[i]=this.possibleFilters[i],t}if(this.isValidType(e)){i=e}else if(typeof e==="object"&&e.length){return e.reduce((function(e,t){if(n.isValidType(t)){e[t]=n.possibleFilters[t]}return e}),{})}return r={},r[i]=this.possibleFilters[i],r};t.prototype.isValidType=function(e){return!!(typeof e==="string"&&this.possibleFilters[e])};t.prototype.onFilterChange=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.multiFilterItems=e;this.runFiltering();return[2]}))}))};t.prototype.doFiltering=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:i=[];r.forEach((function(e){var t=Object.assign({},e);var r=n[t.prop];if(t[w]&&!r){delete t[w];i.push(t)}if(!t[w]&&r){i.push(t);t[w]=true}}));o=this.getRowFilter(t,n);a=this.emit("beforefiltertrimmed",{collection:e,itemsToFilter:o,source:t,filterItems:n}),s=a.defaultPrevented,u=a.detail;if(s){return[2]}return[4,this.revogrid.addTrimmed(u.itemsToFilter,ou)];case 1:l=c.sent();if(l.defaultPrevented){return[2]}return[4,this.revogrid.updateColumns(i)];case 2:c.sent();this.emit("afterFilterApply");return[2]}}))}))};t.prototype.clearFiltering=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.multiFilterItems={};return[4,this.runFiltering()];case 1:e.sent();return[2]}}))}))};t.prototype.runFiltering=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a,s,u,l,c,f;return __generator(this,(function(v){switch(v.label){case 0:e={};t=Object.keys(this.multiFilterItems);for(r=0,n=t;r<n.length;r++){i=n[r];if(this.multiFilterItems[i].length>0){o=this.multiFilterItems[i][0];e[i]={filter:nu[o.type],type:o.type,value:o.value}}}this.filterCollection=e;return[4,this.getData()];case 1:a=v.sent(),s=a.source,u=a.columns;l=this.emit("beforefilterapply",{collection:this.filterCollection,source:s,columns:u,filterItems:this.multiFilterItems}),c=l.defaultPrevented,f=l.detail;if(c){return[2]}this.doFiltering(f.collection,f.source,f.columns,f.filterItems);return[2]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.revogrid.getSource()];case 1:e=r.sent();return[4,this.revogrid.getColumns()];case 2:t=r.sent();return[2,{source:e,columns:t}]}}))}))};t.prototype.getRowFilter=function(e,t){var r=this;var n=Object.keys(t);var i={};var o=0;var a=[];e.forEach((function(e,s){for(var u=0,l=n;u<l.length;u++){var c=l[u];var f=t[c];o=0;a=[];for(var v=0,d=f.entries();v<d.length;v++){var h=d[v],p=h[0],g=h[1];var m=r.possibleFilterEntities[g.type];if(g.relation==="or"){a=[];if(m(e[c],g.value)){continue}o++}else{a.push(!m(e[c],g.value));var C=f[p+1];if(!C||C.relation!=="and"){if(a.indexOf(true)===-1){a=[];continue}o+=a.length;a=[]}}}if(o===f.length)i[s]=true}}));return i};return t}(Ja);var su="[object String]";function uu(e){return typeof e=="string"||!G(e)&&l(e)&&c(e)==su}var lu=uu;var cu=Io("length");var fu=cu;var vu="\\ud800-\\udfff",du="\\u0300-\\u036f",hu="\\ufe20-\\ufe2f",pu="\\u20d0-\\u20ff",gu=du+hu+pu,mu="\\ufe0e\\ufe0f";var Cu="\\u200d";var wu=RegExp("["+Cu+vu+gu+mu+"]");function yu(e){return wu.test(e)}var bu=yu;var Lu="\\ud800-\\udfff",xu="\\u0300-\\u036f",_u="\\ufe20-\\ufe2f",Su="\\u20d0-\\u20ff",Eu=xu+_u+Su,ku="\\ufe0e\\ufe0f";var zu="["+Lu+"]",Ru="["+Eu+"]",Ou="\\ud83c[\\udffb-\\udfff]",Fu="(?:"+Ru+"|"+Ou+")",ju="[^"+Lu+"]",Pu="(?:\\ud83c[\\udde6-\\uddff]){2}",Du="[\\ud800-\\udbff][\\udc00-\\udfff]",Au="\\u200d";var Iu=Fu+"?",Tu="["+ku+"]?",Mu="(?:"+Au+"(?:"+[ju,Pu,Du].join("|")+")"+Tu+Iu+")*",Bu=Tu+Iu+Mu,Hu="(?:"+[ju+Ru+"?",Ru,Pu,Du,zu].join("|")+")";var Wu=RegExp(Ou+"(?="+Ou+")|"+Hu+Bu,"g");function Uu(e){var t=Wu.lastIndex=0;while(Wu.test(e)){++t}return t}var Nu=Uu;function Vu(e){return bu(e)?Nu(e):fu(e)}var Zu=Vu;var Gu="[object Map]",$u="[object Set]";function Xu(e){if(e==null){return 0}if(it(e)){return lu(e)?Zu(e):e.length}var t=bi(e);if(t==Gu||t==$u){return e.size}return qe(e).length}var Yu=Xu;var qu=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;r.revogrid=t;r.sorting=null;r.sortingFunc=null;var n=function(e){var t=e.detail;if(r.hasSorting){var n=r.emit("beforesourcesortingapply");if(n.defaultPrevented){return}}var i=r.setData(t.source,t.type);if(i){t.source=i}};var i=function(e){var t=e.detail.order;return __awaiter(r,void 0,void 0,(function(){var e,r,n,i,o;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.revogrid.getColumns()];case 1:e=a.sent();r={};for(n in t){i=ts.getColumnByProp(e,n);o=(i===null||i===void 0?void 0:i.cellCompare)||this.defaultCellCompare;r[n]=t[n]=="desc"?this.descCellCompare(o):o}this.sort(t,r);return[2]}}))}))};var o=function(e){return __awaiter(r,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){if(e.defaultPrevented){return[2]}if(!e.detail.column.sortable){return[2]}this.headerclick(e.detail.column,e.detail.index,(r=(t=e.detail)===null||t===void 0?void 0:t.originalEvent)===null||r===void 0?void 0:r.shiftKey);return[2]}))}))};r.addEventListener("beforesourceset",n);r.addEventListener("aftercolumnsset",i);r.addEventListener("initialHeaderClick",o);return r}Object.defineProperty(t.prototype,"hasSorting",{get:function(){return!!this.sorting},enumerable:false,configurable:true});t.prototype.headerclick=function(e,t,r){return __awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,l,c;var f,v;return __generator(this,(function(d){switch(d.label){case 0:n=this.getNextOrder(e.order);i=this.emit("beforesorting",{column:e,order:n,additive:r});if(i.defaultPrevented){return[2]}n=i.detail.order;return[4,this.revogrid.updateColumnSorting(i.detail.column,t,n,r)];case 1:o=d.sent();a=this.emit("beforesortingapply",{column:o,order:n,additive:r});if(a.defaultPrevented){return[2]}n=a.detail.order;s=(e===null||e===void 0?void 0:e.cellCompare)||this.defaultCellCompare;u=n=="asc"?s:n=="desc"?this.descCellCompare(s):undefined;if(r&&this.sorting){l={};c={};Object.assign(l,this.sorting);Object.assign(c,this.sortingFunc);if(e.prop in l&&Yu(l)>1&&n===undefined){delete l[e.prop];delete c[e.prop]}else{l[e.prop]=n;c[e.prop]=u}this.sort(l,c)}else{this.sort((f={},f[e.prop]=n,f),(v={},v[e.prop]=u,v))}return[2]}}))}))};t.prototype.setData=function(e,t){if(t==="rgRow"&&this.sortingFunc){return this.sortItems(e,this.sortingFunc)}};t.prototype.sort=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!Yu(e)){this.sorting=null;this.sortingFunc=null;return[2]}this.sorting=e;this.sortingFunc=t;return[4,this.revogrid.getSourceStore()];case 1:r=o.sent();n=r.get("source");i=this.sortIndexByItems(__spreadArray([],r.get("proxyItems"),true),n,this.sortingFunc);Aa(r,{proxyItems:i,source:__spreadArray([],n,true)});this.emit("afterSortingApply");return[2]}}))}))};t.prototype.defaultCellCompare=function(e,t,r){var n,i;var o=(n=t[e])===null||n===void 0?void 0:n.toString().toLowerCase();var a=(i=r[e])===null||i===void 0?void 0:i.toString().toLowerCase();return o==a?0:o>a?1:-1};t.prototype.descCellCompare=function(e){return function(t,r,n){return-1*e(t,r,n)}};t.prototype.sortIndexByItems=function(e,t,r){for(var n in r){if(typeof r[n]==="undefined"){return __spreadArray([],Array(e.length).keys(),true)}}return e.sort((function(e,n){var i=0;for(var o in r){var a=r[o];var s=t[e];var u=t[n];i=a(o,s,u);if(i){break}}return i}))};t.prototype.sortItems=function(e,t){return e.sort((function(e,r){var n=0;for(var i in t){var o=t[i];if(!o){continue}n=o(i,e,r);if(n){break}}return n}))};t.prototype.getNextOrder=function(e){switch(e){case undefined:return"asc";case"asc":return"desc";case"desc":return undefined}};return t}(Ja);function Ku(e,t,r){if(e===e){if(r!==undefined){e=e<=r?e:r}if(t!==undefined){e=e>=t?e:t}}return e}var Ju=Ku;var Qu=4294967295;function el(e){return e?Ju(la(e),0,Qu):0}var tl=el;function rl(e,t,r,n){var i=e.length;r=la(r);if(r<0){r=-r>i?0:i+r}n=n===undefined||n>i?i:la(n);if(n<0){n+=i}n=r>n?0:tl(n);while(r<n){e[r++]=t}return e}var nl=rl;function il(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&za(e,t,r)){r=0;n=i}return nl(e,t,r,n)}var ol=il;var al=30;var sl="data-rgCol";var ul="data-rgRow";var ll="grid-uuid";var cl="disabled";var fl="rgCell";var vl="rgHeaderCell";var dl="sortable";var hl="header-rgRow";var pl="actual-rgRow";var gl="revo-drag-icon";var ml="revo-draggable";var Cl="focused-cell";var wl="selection-border-range";var yl="temp-bg-range";var bl="autofill-handle";var Ll="edit-input-wrapper";var xl="Draggable item";var _l="__rvgr";var Sl="".concat(_l,"-depth");var El="".concat(_l,"-name");var kl="".concat(_l,"-id");var zl="".concat(_l,"-value");var Rl="".concat(_l,"-column");var Ol="".concat(_l,"-expanded");var Fl="".concat(_l,"-original-index");var jl="group-expand";var Pl="groupExpandClick";var Dl="rgRow";function Al(e,t,r){var n=r.prevExpanded,i=r.expandedAll;var o=new Map;e.forEach((function(e,r){var n=t.map((function(t){return e[t]||null}));var i=n.pop();var a=o;n.forEach((function(e){if(!a.has(e)){a.set(e,new Map)}a=a.get(e)}));if(!a.has(i)){a.set(i,[])}e[Fl]=r;var s=a.get(i);s.push(e)}));var a=-1;var s=t.length;var u={};var l={};var c={};var f=[];function v(e,t,r){var o=t.length;e.forEach((function(e,s){var d;var h=__spreadArray(__spreadArray([],t,true),[s],false);var p=h.join(",");var g=r&&(!!i||!!(n===null||n===void 0?void 0:n[p]));f.push((d={},d[El]=s,d[Sl]=o,d[kl]=JSON.stringify(h),d[zl]=p,d[Ol]=g,d));a+=1;if(!g&&o){u[a]=true}if(Array.isArray(e)){e.forEach((function(e){a+=1;if(!g){u[a]=true}l[e[Fl]]=a;var t=h.map((function(e,t){return h.slice(0,t+1).join(",")}));t.forEach((function(e){if(!c[e]){c[e]=[]}c[e].push(a)}))}));f.push.apply(f,e)}else{v(e,h,g)}}))}v(o,[],true);return{sourceWithGroups:f,depth:s,trimmed:u,oldNewIndexMap:l,childrenByGroup:c}}function Il(e){return e&&e[El]}function Tl(e){return e&&typeof e[El]!=="undefined"}function Ml(e){return e&&typeof e[Rl]!=="undefined"}function Bl(e,t){var r=e.length;var n=0;for(;n<r;n++){if(e[n]!==t[n]){return n}}return n}function Hl(e){var t=JSON.parse(e);if(!Array.isArray(t)){return null}return t}function Wl(e,t,r){var n=Hl(r[kl]);if(!n){return false}var i=Bl(e,n);return t[Sl]<i}var Ul={mime:"text/csv",fileKind:"csv",bom:true,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""};var Nl=String.fromCharCode(13);var Vl=String.fromCharCode(10);var Zl=String.fromCharCode(34);var Gl=String.fromCharCode(65279);var $l=new RegExp('"',"g");var Xl=function(){function e(e){if(e===void 0){e={}}this.options=Object.assign(Object.assign({},Ul),e)}e.prototype.doExport=function(e){var t=this;var r=e.data,n=e.headers,i=e.props;var o=this.options.bom?Gl:"";if((n===null||n===void 0?void 0:n.length)>0){n.forEach((function(e){if(!e.length){return}o+=t.prepareHeader(e,t.options.columnDelimiter);o+=t.options.rowDelimiter}))}r.forEach((function(e,r){if(r>0){o+=t.options.rowDelimiter}if(Tl(e)){o+=t.parseCell(Il(e),t.options.columnDelimiter);return}o+=i.map((function(r){return t.parseCell(e[r],t.options.columnDelimiter)})).join(t.options.columnDelimiter)}));return o};e.prototype.prepareHeader=function(e,t){var r=this;var n="";var i=e.map((function(e){return r.parseCell(e,t,true)}));n+=i.join(t);return n};e.prototype.parseCell=function(e,t,r){if(r===void 0){r=false}var n=e;if(typeof e!=="string"){n=JSON.stringify(e)}var i=[Nl,Zl,Vl,t];if(typeof n==="undefined"){return""}if(n!==""&&(r||i.some((function(e){return n.indexOf(e)>=0})))){return'"'.concat(n.replace($l,'""'),'"')}return n};return e}();var Yl;(function(e){e["csv"]="csv"})(Yl||(Yl={}));var ql=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.exportString=function(e,t){if(e===void 0){e={}}if(t===void 0){t=Yl.csv}return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,this.formatter(t,e).doExport(r)]}}))}))};t.prototype.exportBlob=function(e,t){if(e===void 0){e={}}if(t===void 0){t=Yl.csv}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getBlob(this.formatter(t,e))];case 1:return[2,r.sent()]}}))}))};t.prototype.exportFile=function(e,t){if(e===void 0){e={}}if(t===void 0){t=Yl.csv}return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,l,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.formatter(t,e);return[4,this.getBlob(r)];case 1:n=f.sent();i=window.URL||window.webkitURL;o=document.createElement("a");a=r.options,s=a.filename,u=a.fileKind;l="".concat(s,".").concat(u);c=i.createObjectURL(n);o.style.display="none";o.setAttribute("href",c);o.setAttribute("download",l);this.revogrid.appendChild(o);o.dispatchEvent(new MouseEvent("click"));this.revogrid.removeChild(o);return[4,ws(120)];case 2:f.sent();i.revokeObjectURL(c);return[2]}}))}))};t.prototype.getBlob=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t="".concat(e.options.mime,";charset=").concat(e.options.encoding);if(!(typeof Blob!=="undefined"))return[3,2];return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,new Blob([e.doExport(r)],{type:t})];case 2:return[2,null]}}))}))};t.prototype.beforeexport=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getData()];case 1:e=r.sent();t=this.emit("beforeexport",{data:e});if(t.defaultPrevented){return[2,null]}return[2,t.detail.data]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a;var s;var u=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getSource()];case 1:e=l.sent();t=[];r=[];Ga.forEach((function(e,n){r.push(u.getColPerSource(e).then((function(e){return t[n]=e})))}));return[4,Promise.all(r)];case 2:l.sent();n={headers:[],props:[]};for(i=0,o=t;i<o.length;i++){a=o[i];a.headers.forEach((function(e,t){var r;if(!n.headers[t]){n.headers[t]=[]}(r=n.headers[t]).push.apply(r,e)}));(s=n.props).push.apply(s,a.props)}return[2,Object.assign({data:e},n)]}}))}))};t.prototype.getColPerSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.revogrid.getColumnStore(e)];case 1:t=c.sent();r=t.get("source");n=t.get("items");i=t.get("groupingDepth");o=t.get("groups");a=[];s=[];u=n.reduce((function(e,t,n){var i=r[t].prop;a.push(r[t].name||"");s.push(i);e[i]=n;return e}),{});l=this.getGroupHeaders(i,o,n,u);l.push(a);return[2,{headers:l,props:s}]}}))}))};t.prototype.getGroupHeaders=function(e,t,r,n){var i=this;var o=[];var a=ol(new Array(r.length),"");var s=function(e){var r=__spreadArray([],a,true);o.push(r);if(!t[e]){return"continue"}var s=t[e];s.forEach((function(e){var t=i.findGroupStartIndex(e.ids,n);if(typeof t==="number"){r[t]=e.name}}))};for(var u=0;u<e;u++){s(u)}return o};t.prototype.findGroupStartIndex=function(e,t){var r;e.forEach((function(e){var n=t[e];if(typeof n==="number"){if(typeof r!=="number"||r>n){r=n}}}));return r};t.prototype.getSource=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var r=this;return __generator(this,(function(n){switch(n.label){case 0:e=[];t=[];Za.forEach((function(n){var i=[];e.push(i);var o=r.revogrid.getVisibleSource(n).then((function(e){return i.push.apply(i,e)}));t.push(o)}));return[4,Promise.all(t)];case 1:n.sent();return[2,e.reduce((function(e,t){e.push.apply(e,t);return e}),[])]}}))}))};t.prototype.formatter=function(e,t){if(t===void 0){t={}}switch(e){case Yl.csv:return new Xl(t);default:throw new Error("Unknown format")}};return t}(Ja);function Kl(e,t){var r=t[e];var n=r[zl];var i={};var o=e+1;var a=t.length;while(o<a){var s=t[o];if(Tl(s)){var u=s[zl];if(!u.length||!u.startsWith(n+",")){break}s[Ol]=false}i[o++]=true}r[Ol]=false;return{trimmed:i}}function Jl(e,t,r){var n=r[e];var i=t[n];var o=Hl(i[kl]);var a={};if(!o){return{trimmed:a}}var s=[];i[Ol]=true;var u=n+1;var l=t.length;var c=0;while(u<l){var f=t[u];var v=Tl(f);if(v){if(!Wl(o,i,f)){break}else if(!c){c=f[Sl]}}if(!c||v&&c===f[Sl]){a[u]=false;s.push(u)}u++}var d={trimmed:a};if(s.length){var h=__spreadArray([],r,true);h.splice.apply(h,__spreadArray([e+1,0],s,false));d.items=h}return d}var Ql="grouping";function ec(e,t,r){var n={};for(var i in e){if(i===Ql){continue}var o=e[i];var a={};for(var s in o){var u=t[s];if(r){u=r[u]}if(o[s]){a[u]=true;if(u!==parseInt(s,10)){n[i]=a}}}}return n}var tc=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;return n}Object.defineProperty(t.prototype,"hasProps",{get:function(){var e,t,r;return((e=this.options)===null||e===void 0?void 0:e.props)&&((r=(t=this.options)===null||t===void 0?void 0:t.props)===null||r===void 0?void 0:r.length)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"store",{get:function(){return this.providers.dataProvider.stores[Dl].store},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rowItems",{get:function(){return this.store.get("items")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"trimmed",{get:function(){return this.store.get("trimmed")},enumerable:false,configurable:true});t.prototype.onFocus=function(e){if(Tl(e.detail.model)){e.preventDefault()}};t.prototype.onExpand=function(e){var t=e.virtualIndex;var r=this.getSource().source;var n=this.trimmed[Ql];var i=Ba(this.store,t);var o=r[i];var a=o[Ol];if(!a){var s=Jl(t,r,this.rowItems),u=s.trimmed,l=s.items;n=Object.assign(Object.assign({},n),u);if(l){Na(this.store,l)}}else{var u=Kl(i,r).trimmed;n=Object.assign(Object.assign({},n),u);this.revogrid.clearFocus()}this.store.set("source",r);this.revogrid.addTrimmed(n,Ql)};t.prototype.getSource=function(e){if(e===void 0){e=false}var t=this.store.get("source");var r=this.store.get("proxyItems");var n=0;return r.reduce((function(r,i){var o=t[i];if(!e){r.source.push(o);return r}if(!Tl(o)){r.source.push(o);r.oldNewIndexes[i]=n;n++}else{if(o[Ol]){r.prevExpanded[o[zl]]=true}}return r}),{source:[],prevExpanded:{},oldNewIndexes:{}})};t.prototype.setColumnGrouping=function(e){if(e===null||e===void 0?void 0:e.length){e[0][Rl]=true;return true}return false};t.prototype.setColumns=function(e){var t=e.columns;for(var r=0,n=Ga;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(t[i])){break}}};t.prototype.onDrag=function(e){var t=e.detail,r=t.from,n=t.to;var i=n-r>=0;var o=this.getSource().source;var a=this.rowItems;var s=i?r:n;var u=i?n:r;for(;s<u;s++){var l=o[a[s]];var c=Tl(l);if(c){e.preventDefault();return}}};t.prototype.beforeTrimmedApply=function(e,t){if(t===ou){var r=this.store.get("source");for(var n in e){if(e[n]&&Tl(r[n])){e[n]=false}}}};t.prototype.subscribe=function(){var e=this;this.addEventListener("beforesourceset",(function(t){var r=t.detail;return e.onDataSet(r)}));this.addEventListener("beforecolumnsset",(function(t){var r=t.detail;return e.setColumns(r)}));this.addEventListener("beforetrimmed",(function(t){var r=t.detail,n=r.trimmed,i=r.trimmedType;return e.beforeTrimmedApply(n,i)}));this.addEventListener("afterSortingApply",(function(){return e.doSourceUpdate(Object.assign({},e.options))}));this.addEventListener("beforecellfocus",(function(t){return e.onFocus(t)}));this.addEventListener("roworderchanged",(function(t){return e.onDrag(t)}));this.addEventListener(Pl,(function(t){var r=t.detail;return e.onExpand(r)}))};t.prototype.doSourceUpdate=function(e){var t;if(!this.hasProps){return}var r=this.getSource(true),n=r.source,i=r.prevExpanded,o=r.oldNewIndexes;var a=Al(n,((t=this.options)===null||t===void 0?void 0:t.props)||[],Object.assign({prevExpanded:i},e)),s=a.sourceWithGroups,u=a.depth,l=a.trimmed,c=a.oldNewIndexMap,f=a.childrenByGroup;this.providers.dataProvider.setData(s,Dl,{depth:u,customRenderer:e===null||e===void 0?void 0:e.groupLabelTemplate},true);this.updateTrimmed(l,f,o,c)};t.prototype.onDataSet=function(e){var t;if(!this.hasProps||!(e===null||e===void 0?void 0:e.source)||!e.source.length){return}var r=e.source.filter((function(e){return!Tl(e)}));var n=this.revogrid.grouping||{};var i=Al(r,((t=this.options)===null||t===void 0?void 0:t.props)||[],Object.assign({},n||{})),o=i.sourceWithGroups,a=i.depth,s=i.trimmed,u=i.oldNewIndexMap,l=i.childrenByGroup;e.source=o;this.providers.dataProvider.setGrouping({depth:a});this.updateTrimmed(s,l,u)};t.prototype.setGrouping=function(e){this.clearSubscriptions();this.options=e;if(!e.props||!Object.keys(e.props).length){this.clearGrouping();return}var t=this.getSource().source;if(t.length){this.doSourceUpdate(Object.assign({},e))}for(var r=0,n=Ga;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(this.providers.columnProvider.getColumns(i))){this.providers.columnProvider.refreshByType(i);break}}this.subscribe()};t.prototype.clearGrouping=function(){var e=this;Ga.forEach((function(t){var r=e.providers.columnProvider.getColumns(t);var n=false;r.forEach((function(e){if(Ml(e)){delete e[Rl];n=true}}));if(n){e.providers.columnProvider.refreshByType(t)}}));var t=this.getSource(true),r=t.source,n=t.oldNewIndexes;this.providers.dataProvider.setData(r,Dl,undefined,true);this.updateTrimmed(undefined,undefined,n)};t.prototype.updateTrimmed=function(e,t,r,n){if(e===void 0){e={}}if(t===void 0){t={}}var i=ec(this.trimmed,r,n);for(var o in i){this.revogrid.addTrimmed(i[o],o)}this.revogrid.addTrimmed(Object.assign({},e),Ql)};return t}(Ja);var rc=function(){function e(){this.parentY=0}e.prototype.start=function(e,t){var r=t.pos,n=t.text,i=t.event;var o;var a=e.getBoundingClientRect().top;this.parentY=a;if(this.text){this.text.innerText=n}this.move(r);this.moveTip({x:i.x,y:i.y});(o=this.el)===null||o===void 0?void 0:o.classList.remove("hidden")};e.prototype.end=function(){var e;(e=this.el)===null||e===void 0?void 0:e.classList.add("hidden")};e.prototype.move=function(e){this.moveElement(e.end-this.parentY)};e.prototype.moveTip=function(e){var t=e.x,r=e.y;if(!this.draggable){return}this.draggable.style.left="".concat(t,"px");this.draggable.style.top="".concat(r,"px")};e.prototype.moveElement=function(e){if(!this.rgRow){return}this.rgRow.style.transform="translateY(".concat(e,"px)")};return e}();var nc=function(e){var t=e.ref;var r=new rc;t(r);return i("div",{class:"draggable-wrapper hidden",ref:function(e){return r.el=e}},i("div",{class:"draggable",ref:function(e){return r.draggable=e}},i("span",{class:"revo-alt-icon"}),i("span",{ref:function(e){return r.text=e}})),i("div",{class:"drag-position",ref:function(e){return r.rgRow=e}}))};var ic=function(e,t){var r=e.viewports,n=e.dimensions,o=e.orderRef,a=e.nakedClick,s=e.registerElement,u=e.onScroll;var l=function(e,t){if(t===e.target){a(e)}};var c;return[i("div",{class:"main-viewport",ref:function(e){return c=e},onClick:function(e){return l(e,c)}},i("div",{class:"viewports"},t,i("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:r["rgRow"].store,dimensionStore:n["rgRow"].store,ref:function(e){return s(e,"rowScroll")},onScrollVirtual:function(e){return u(e.detail)}}),i(nc,{ref:o}))),i("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:r["rgCol"].store,dimensionStore:n["rgCol"].store,ref:function(e){return s(e,"colScroll")},onScrollVirtual:function(e){return u(e.detail)}})]};function oc(e){return e===vc}function ac(e,t){var r={};var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=e[a];return r}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=e[a]-t[a];return r}}return null}function sc(e,t){var r=Object.assign({},e);var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=0}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=t[a]-1}}return r}function uc(e,t){return e&&t?{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x1:Math.max(e.x,t.x),y1:Math.max(e.y,t.y)}:null}function lc(e){return e.x===e.x1&&e.y===e.y1}function cc(){return{range:null,tempRange:null,tempRangeType:null,focus:null,nextFocus:null,edit:null,lastCell:null}}var fc=function(){function e(){var e=this;this.unsubscribe=[];this.store=La(cc());this.store.on("set",(function(t,r){if(t==="tempRange"&&!r){e.store.set("tempRangeType",null)}}))}e.prototype.onChange=function(e,t){this.unsubscribe.push(this.store.onChange(e,t))};e.prototype.clearFocus=function(){Aa(this.store,{focus:null,range:null,edit:null,tempRange:null})};e.prototype.setFocus=function(e,t){Aa(this.store,{focus:e,range:uc(e,t),edit:null,tempRange:null})};e.prototype.nextFocus=function(e){Aa(this.store,{nextFocus:e})};e.prototype.setTempArea=function(e){Aa(this.store,{tempRange:e===null||e===void 0?void 0:e.area,tempRangeType:e===null||e===void 0?void 0:e.type,edit:null})};e.prototype.clearTemp=function(){Aa(this.store,{tempRange:null})};e.prototype.setRangeArea=function(e){Aa(this.store,{range:e,edit:null,tempRange:null})};e.prototype.setRange=function(e,t){this.setRangeArea(uc(e,t))};e.prototype.setLastCell=function(e){Aa(this.store,{lastCell:e})};e.prototype.setEdit=function(e){var t=this.store.get("focus");if(t&&typeof e==="string"){Aa(this.store,{edit:{x:t.x,y:t.y,val:e}});return}Aa(this.store,{edit:null})};e.prototype.dispose=function(){this.unsubscribe.forEach((function(e){return e()}));this.store.dispose()};return e}();var vc=-1;var dc=function(){function e(){this.dirty=false;this.stores={};this.columnStores={};this.rowStores={};this.sections=[]}Object.defineProperty(e.prototype,"focusedStore",{get:function(){var e;for(var t in this.stores){for(var r in this.stores[t]){var n=(e=this.stores[t][r])===null||e===void 0?void 0:e.store.get("focus");if(n){return{entity:this.stores[t][r],cell:n,position:{x:parseInt(r,10),y:parseInt(t,10)}}}}}return null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"edit",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedRange",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("range")},enumerable:false,configurable:true});e.prototype.registerSection=function(e){if(!e){this.sections.length=0;this.dirty=true;return}if(this.sections.indexOf(e)===-1){this.sections.push(e)}};e.prototype.beforeUpdate=function(){if(this.dirty){for(var e in this.stores){for(var t in this.stores[e]){this.stores[e][t].dispose()}}this.dirty=false}};e.prototype.registerColumn=function(e){if(oc(e)){return new fc}if(this.columnStores[e]){return this.columnStores[e]}this.columnStores[e]=new fc;return this.columnStores[e]};e.prototype.registerRow=function(e){if(oc(e)){return new fc}if(this.rowStores[e]){return this.rowStores[e]}this.rowStores[e]=new fc;return this.rowStores[e]};e.prototype.register=function(e){var t=this;var r=e.x,n=e.y;var i,o;if(oc(r)||oc(n)){return new fc}if(!this.stores[n]){this.stores[n]={}}if(this.stores[n][r]){return this.stores[n][r]}this.stores[n][r]=new fc;(i=this.stores[n][r])===null||i===void 0?void 0:i.onChange("range",(function(e){t.columnStores[r].setRangeArea(e);t.rowStores[n].setRangeArea(e)}));(o=this.stores[n][r])===null||o===void 0?void 0:o.store.on("dispose",(function(){var e,i;(e=t.columnStores[r])===null||e===void 0?void 0:e.dispose();(i=t.rowStores[n])===null||i===void 0?void 0:i.dispose();delete t.rowStores[n];delete t.columnStores[r];if(t.stores[n]){delete t.stores[n][r]}if(!Object.keys(t.stores[n]||{}).length){delete t.stores[n]}}));return this.stores[n][r]};e.prototype.setEditByCell=function(e,t){var r=e.x,n=e.y;var i=this.stores[n][r];this.focus(i,{focus:t,end:t});this.setEdit("")};e.prototype.beforeNextFocusCell=function(e){var t;if(!this.focusedStore){return}var r=this.checkNextStore(e,this.focusedStore.position,this.focusedStore.entity.store.get("lastCell"));(t=r.store)===null||t===void 0?void 0:t.nextFocus(Object.assign(Object.assign({},e),r.item))};e.prototype.checkNextStore=function(e,t,r){var n=ac(e,r);var i=null;if(n){for(var o in n){var a=o;var s=void 0;switch(a){case"x":s=this.getXStores(t.y);break;case"y":s=this.getYStores(t.x);break}if(n[a]>=0){i=s[++t[a]]}else{i=s[--t[a]];var u=i===null||i===void 0?void 0:i.store.get("lastCell");if(u){n[a]=u[a]+n[a]}}}}return{store:i,item:n}};e.prototype.getCurrentStorePointer=function(e){var t;for(var r in this.stores){for(var n in this.stores[r]){var i=this.stores[r][n];if(i!==e){i.clearFocus()}else{t={x:parseInt(n,10),y:parseInt(r,10)}}}}return t};e.prototype.focus=function(e,t){var r=t.focus,n=t.end;var i=this.getCurrentStorePointer(e);if(!i){return}var o=e.store.get("lastCell");var a=this.checkNextStore(r,i,o);if(a===null||a===void 0?void 0:a.store){var s=Object.assign(Object.assign({},r),a.item);this.focus(a.store,{focus:s,end:s});return}r=sc(r,o);n=sc(r,o);e.setFocus(r,n)};e.prototype.clearAll=function(){var e;for(var t in this.stores){for(var r in this.stores[t]){(e=this.stores[t][r])===null||e===void 0?void 0:e.clearFocus()}}};e.prototype.setEdit=function(e){if(!this.focusedStore){return}this.focusedStore.entity.setEdit(e)};e.prototype.getXStores=function(e){return this.stores[e]};e.prototype.getYStores=function(e){var t={};for(var r in this.stores){t[r]=this.stores[r][e]}return t};return e}();var hc="header";var pc="footer";var gc="content";var mc="data";function Cc(e,t){return{x:e.viewports[e.colType].store.get("realCount"),y:e.viewports[t].store.get("realCount")}}var wc=f((function(e,t){(function(){var r;var n="4.17.21";var i=200;var o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`";var u="__lodash_hash_undefined__";var l=500;var c="__lodash_placeholder__";var f=1,v=2,d=4;var h=1,p=2;var g=1,m=2,C=4,w=8,b=16,L=32,x=64,_=128,S=256,E=512;var k=30,z="...";var R=800,O=16;var F=1,j=2,P=3;var D=1/0,A=9007199254740991,I=17976931348623157e292,T=0/0;var M=4294967295,B=M-1,H=M>>>1;var W=[["ary",_],["bind",g],["bindKey",m],["curry",w],["curryRight",b],["flip",E],["partial",L],["partialRight",x],["rearg",S]];var U="[object Arguments]",N="[object Array]",V="[object AsyncFunction]",Z="[object Boolean]",G="[object Date]",$="[object DOMException]",X="[object Error]",Y="[object Function]",q="[object GeneratorFunction]",K="[object Map]",J="[object Number]",Q="[object Null]",ee="[object Object]",te="[object Promise]",re="[object Proxy]",ne="[object RegExp]",ie="[object Set]",oe="[object String]",ae="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",le="[object WeakSet]";var ce="[object ArrayBuffer]",fe="[object DataView]",ve="[object Float32Array]",de="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",Ce="[object Uint8ClampedArray]",we="[object Uint16Array]",ye="[object Uint32Array]";var be=/\b__p \+= '';/g,Le=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var _e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Ee=RegExp(_e.source),ke=RegExp(Se.source);var ze=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g;var Fe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var De=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(De.source);var Ie=/^\s+/;var Te=/\s/;var Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /;var We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ue=/[()=,{}\[\]\/\s]/;var Ne=/\\(\\)?/g;var Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Ze=/\w*$/;var Ge=/^[-+]0x[0-9a-f]+$/i;var $e=/^0b[01]+$/i;var Xe=/^\[object .+?Constructor\]$/;var Ye=/^0o[0-7]+$/i;var qe=/^(?:0|[1-9]\d*)$/;var Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Je=/($^)/;var Qe=/['\n\r\u2028\u2029\\]/g;var et="\\ud800-\\udfff",tt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",nt="\\u20d0-\\u20ff",it=tt+rt+nt,ot="\\u2700-\\u27bf",at="a-z\\xdf-\\xf6\\xf8-\\xff",st="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lt="\\u2000-\\u206f",ct=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",vt="\\ufe0e\\ufe0f",dt=st+ut+lt+ct;var ht="['’]",pt="["+et+"]",gt="["+dt+"]",mt="["+it+"]",Ct="\\d+",wt="["+ot+"]",yt="["+at+"]",bt="[^"+et+dt+Ct+ot+at+ft+"]",Lt="\\ud83c[\\udffb-\\udfff]",xt="(?:"+mt+"|"+Lt+")",_t="[^"+et+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="["+ft+"]",zt="\\u200d";var Rt="(?:"+yt+"|"+bt+")",Ot="(?:"+kt+"|"+bt+")",Ft="(?:"+ht+"(?:d|ll|m|re|s|t|ve))?",jt="(?:"+ht+"(?:D|LL|M|RE|S|T|VE))?",Pt=xt+"?",Dt="["+vt+"]?",At="(?:"+zt+"(?:"+[_t,St,Et].join("|")+")"+Dt+Pt+")*",It="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mt=Dt+Pt+At,Bt="(?:"+[wt,St,Et].join("|")+")"+Mt,Ht="(?:"+[_t+mt+"?",mt,St,Et,pt].join("|")+")";var Wt=RegExp(ht,"g");var Ut=RegExp(mt,"g");var Nt=RegExp(Lt+"(?="+Lt+")|"+Ht+Mt,"g");var Vt=RegExp([kt+"?"+yt+"+"+Ft+"(?="+[gt,kt,"$"].join("|")+")",Ot+"+"+jt+"(?="+[gt,kt+Rt,"$"].join("|")+")",kt+"?"+Rt+"+"+Ft,kt+"+"+jt,Tt,It,Ct,Bt].join("|"),"g");var Zt=RegExp("["+zt+et+it+vt+"]");var Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var $t=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var Xt=-1;var Yt={};Yt[ve]=Yt[de]=Yt[he]=Yt[pe]=Yt[ge]=Yt[me]=Yt[Ce]=Yt[we]=Yt[ye]=true;Yt[U]=Yt[N]=Yt[ce]=Yt[Z]=Yt[fe]=Yt[G]=Yt[X]=Yt[Y]=Yt[K]=Yt[J]=Yt[ee]=Yt[ne]=Yt[ie]=Yt[oe]=Yt[ue]=false;var qt={};qt[U]=qt[N]=qt[ce]=qt[fe]=qt[Z]=qt[G]=qt[ve]=qt[de]=qt[he]=qt[pe]=qt[ge]=qt[K]=qt[J]=qt[ee]=qt[ne]=qt[ie]=qt[oe]=qt[ae]=qt[me]=qt[Ce]=qt[we]=qt[ye]=true;qt[X]=qt[Y]=qt[ue]=false;var Kt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};var Jt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var Qt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};var er={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var tr=parseFloat,rr=parseInt;var nr=typeof y=="object"&&y&&y.Object===Object&&y;var ir=typeof self=="object"&&self&&self.Object===Object&&self;var or=nr||ir||Function("return this")();var ar=t&&!t.nodeType&&t;var sr=ar&&"object"=="object"&&e&&!e.nodeType&&e;var ur=sr&&sr.exports===ar;var lr=ur&&nr.process;var cr=function(){try{var e=sr&&sr.require&&sr.require("util").types;if(e){return e}return lr&&lr.binding&&lr.binding("util")}catch(e){}}();var fr=cr&&cr.isArrayBuffer,vr=cr&&cr.isDate,dr=cr&&cr.isMap,hr=cr&&cr.isRegExp,pr=cr&&cr.isSet,gr=cr&&cr.isTypedArray;function mr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Cr(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}function wr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}function yr(e,t){var r=e==null?0:e.length;while(r--){if(t(e[r],r,e)===false){break}}return e}function br(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(!t(e[r],r,e)){return false}}return true}function Lr(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}function xr(e,t){var r=e==null?0:e.length;return!!r&&Ar(e,t,0)>-1}function _r(e,t,r){var n=-1,i=e==null?0:e.length;while(++n<i){if(r(t,e[n])){return true}}return false}function Sr(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function Er(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function kr(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}function zr(e,t,r,n){var i=e==null?0:e.length;if(n&&i){r=e[--i]}while(i--){r=t(r,e[i],i,e)}return r}function Rr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var Or=Br("length");function Fr(e){return e.split("")}function jr(e){return e.match(We)||[]}function Pr(e,t,r){var n;r(e,(function(e,r,i){if(t(e,r,i)){n=r;return false}}));return n}function Dr(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}function Ar(e,t,r){return t===t?vn(e,t,r):Dr(e,Tr,r)}function Ir(e,t,r,n){var i=r-1,o=e.length;while(++i<o){if(n(e[i],t)){return i}}return-1}function Tr(e){return e!==e}function Mr(e,t){var r=e==null?0:e.length;return r?Nr(e,t)/r:T}function Br(e){return function(t){return t==null?r:t[e]}}function Hr(e){return function(t){return e==null?r:e[t]}}function Wr(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}function Ur(e,t){var r=e.length;e.sort(t);while(r--){e[r]=e[r].value}return e}function Nr(e,t){var n,i=-1,o=e.length;while(++i<o){var a=t(e[i]);if(a!==r){n=n===r?a:n+a}}return n}function Vr(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}function Zr(e,t){return Sr(t,(function(t){return[t,e[t]]}))}function Gr(e){return e?e.slice(0,gn(e)+1).replace(Ie,""):e}function $r(e){return function(t){return e(t)}}function Xr(e,t){return Sr(t,(function(t){return e[t]}))}function Yr(e,t){return e.has(t)}function qr(e,t){var r=-1,n=e.length;while(++r<n&&Ar(t,e[r],0)>-1){}return r}function Kr(e,t){var r=e.length;while(r--&&Ar(t,e[r],0)>-1){}return r}function Jr(e,t){var r=e.length,n=0;while(r--){if(e[r]===t){++n}}return n}var Qr=Hr(Kt);var en=Hr(Jt);function tn(e){return"\\"+er[e]}function rn(e,t){return e==null?r:e[t]}function nn(e){return Zt.test(e)}function on(e){return Gt.test(e)}function an(e){var t,r=[];while(!(t=e.next()).done){r.push(t.value)}return r}function sn(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}function un(e,t){return function(r){return e(t(r))}}function ln(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r];if(a===t||a===c){e[r]=c;o[i++]=r}}return o}function cn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}function fn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=[e,e]}));return r}function vn(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function dn(e,t,r){var n=r+1;while(n--){if(e[n]===t){return n}}return n}function hn(e){return nn(e)?Cn(e):Or(e)}function pn(e){return nn(e)?wn(e):Fr(e)}function gn(e){var t=e.length;while(t--&&Te.test(e.charAt(t))){}return t}var mn=Hr(Qt);function Cn(e){var t=Nt.lastIndex=0;while(Nt.test(e)){++t}return t}function wn(e){return e.match(Nt)||[]}function yn(e){return e.match(Vt)||[]}var bn=function e(t){t=t==null?or:Ln.defaults(or.Object(),t,Ln.pick(or,$t));var y=t.Array,Te=t.Date,We=t.Error,et=t.Function,tt=t.Math,rt=t.Object,nt=t.RegExp,it=t.String,ot=t.TypeError;var at=y.prototype,st=et.prototype,ut=rt.prototype;var lt=t["__core-js_shared__"];var ct=st.toString;var ft=ut.hasOwnProperty;var vt=0;var dt=function(){var e=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ht=ut.toString;var pt=ct.call(rt);var gt=or._;var mt=nt("^"+ct.call(ft).replace(De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=ur?t.Buffer:r,wt=t.Symbol,yt=t.Uint8Array,bt=Ct?Ct.allocUnsafe:r,Lt=un(rt.getPrototypeOf,rt),xt=rt.create,_t=ut.propertyIsEnumerable,St=at.splice,Et=wt?wt.isConcatSpreadable:r,kt=wt?wt.iterator:r,zt=wt?wt.toStringTag:r;var Rt=function(){try{var e=$a(rt,"defineProperty");e({},"",{});return e}catch(e){}}();var Ot=t.clearTimeout!==or.clearTimeout&&t.clearTimeout,Ft=Te&&Te.now!==or.Date.now&&Te.now,jt=t.setTimeout!==or.setTimeout&&t.setTimeout;var Pt=tt.ceil,Dt=tt.floor,At=rt.getOwnPropertySymbols,It=Ct?Ct.isBuffer:r,Tt=t.isFinite,Mt=at.join,Bt=un(rt.keys,rt),Ht=tt.max,Nt=tt.min,Vt=Te.now,Zt=t.parseInt,Gt=tt.random,Kt=at.reverse;var Jt=$a(t,"DataView"),Qt=$a(t,"Map"),er=$a(t,"Promise"),nr=$a(t,"Set"),ir=$a(t,"WeakMap"),ar=$a(rt,"create");var sr=ir&&new ir;var lr={};var cr=js(Jt),Or=js(Qt),Fr=js(er),Hr=js(nr),vn=js(ir);var Cn=wt?wt.prototype:r,wn=Cn?Cn.valueOf:r,bn=Cn?Cn.toString:r;function xn(e){if(Sc(e)&&!uc(e)&&!(e instanceof kn)){if(e instanceof En){return e}if(ft.call(e,"__wrapped__")){return Ds(e)}}return new En(e)}var _n=function(){function e(){}return function(t){if(!_c(t)){return{}}if(xt){return xt(t)}e.prototype=t;var n=new e;e.prototype=r;return n}}();function Sn(){}function En(e,t){this.__wrapped__=e;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=r}xn.templateSettings={escape:ze,evaluate:Re,interpolate:Oe,variable:"",imports:{_:xn}};xn.prototype=Sn.prototype;xn.prototype.constructor=xn;En.prototype=_n(Sn.prototype);En.prototype.constructor=En;function kn(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=M;this.__views__=[]}function zn(){var e=new kn(this.__wrapped__);e.__actions__=ia(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=ia(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=ia(this.__views__);return e}function Rn(){if(this.__filtered__){var e=new kn(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function On(){var e=this.__wrapped__.value(),t=this.__dir__,r=uc(e),n=t<0,i=r?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=n?s:a-1,c=this.__iteratees__,f=c.length,v=0,d=Nt(u,this.__takeCount__);if(!r||!n&&i==u&&d==u){return Bo(e,this.__actions__)}var h=[];e:while(u--&&v<d){l+=t;var p=-1,g=e[l];while(++p<f){var m=c[p],C=m.iteratee,w=m.type,y=C(g);if(w==j){g=y}else if(!y){if(w==F){continue e}else{break e}}}h[v++]=g}return h}kn.prototype=_n(Sn.prototype);kn.prototype.constructor=kn;function Fn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function jn(){this.__data__=ar?ar(null):{};this.size=0}function Pn(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function Dn(e){var t=this.__data__;if(ar){var n=t[e];return n===u?r:n}return ft.call(t,e)?t[e]:r}function An(e){var t=this.__data__;return ar?t[e]!==r:ft.call(t,e)}function In(e,t){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=ar&&t===r?u:t;return this}Fn.prototype.clear=jn;Fn.prototype["delete"]=Pn;Fn.prototype.get=Dn;Fn.prototype.has=An;Fn.prototype.set=In;function Tn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Mn(){this.__data__=[];this.size=0}function Bn(e){var t=this.__data__,r=ci(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{St.call(t,r,1)}--this.size;return true}function Hn(e){var t=this.__data__,n=ci(t,e);return n<0?r:t[n][1]}function Wn(e){return ci(this.__data__,e)>-1}function Un(e,t){var r=this.__data__,n=ci(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}Tn.prototype.clear=Mn;Tn.prototype["delete"]=Bn;Tn.prototype.get=Hn;Tn.prototype.has=Wn;Tn.prototype.set=Un;function Nn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Vn(){this.size=0;this.__data__={hash:new Fn,map:new(Qt||Tn),string:new Fn}}function Zn(e){var t=Za(this,e)["delete"](e);this.size-=t?1:0;return t}function Gn(e){return Za(this,e).get(e)}function $n(e){return Za(this,e).has(e)}function Xn(e,t){var r=Za(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}Nn.prototype.clear=Vn;Nn.prototype["delete"]=Zn;Nn.prototype.get=Gn;Nn.prototype.has=$n;Nn.prototype.set=Xn;function Yn(e){var t=-1,r=e==null?0:e.length;this.__data__=new Nn;while(++t<r){this.add(e[t])}}function qn(e){this.__data__.set(e,u);return this}function Kn(e){return this.__data__.has(e)}Yn.prototype.add=Yn.prototype.push=qn;Yn.prototype.has=Kn;function Jn(e){var t=this.__data__=new Tn(e);this.size=t.size}function Qn(){this.__data__=new Tn;this.size=0}function ei(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function ti(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ni(e,t){var r=this.__data__;if(r instanceof Tn){var n=r.__data__;if(!Qt||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new Nn(n)}r.set(e,t);this.size=r.size;return this}Jn.prototype.clear=Qn;Jn.prototype["delete"]=ei;Jn.prototype.get=ti;Jn.prototype.has=ri;Jn.prototype.set=ni;function ii(e,t){var r=uc(e),n=!r&&sc(e),i=!r&&!n&&dc(e),o=!r&&!n&&!i&&Hc(e),a=r||n||i||o,s=a?Vr(e.length,it):[],u=s.length;for(var l in e){if((t||ft.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||as(l,u)))){s.push(l)}}return s}function oi(e){var t=e.length;return t?e[Co(0,t-1)]:r}function ai(e,t){return Rs(ia(e),gi(t,0,e.length))}function si(e){return Rs(ia(e))}function ui(e,t,n){if(n!==r&&!ic(e[t],n)||n===r&&!(t in e)){hi(e,t,n)}}function li(e,t,n){var i=e[t];if(!(ft.call(e,t)&&ic(i,n))||n===r&&!(t in e)){hi(e,t,n)}}function ci(e,t){var r=e.length;while(r--){if(ic(e[r][0],t)){return r}}return-1}function fi(e,t,r,n){Li(e,(function(e,i,o){t(n,e,r(e),o)}));return n}function vi(e,t){return e&&oa(t,xf(t),e)}function di(e,t){return e&&oa(t,_f(t),e)}function hi(e,t,r){if(t=="__proto__"&&Rt){Rt(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}function pi(e,t){var n=-1,i=t.length,o=y(i),a=e==null;while(++n<i){o[n]=a?r:mf(e,t[n])}return o}function gi(e,t,n){if(e===e){if(n!==r){e=e<=n?e:n}if(t!==r){e=e>=t?e:t}}return e}function mi(e,t,n,i,o,a){var s,u=t&f,l=t&v,c=t&d;if(n){s=o?n(e,i,o,a):n(e)}if(s!==r){return s}if(!_c(e)){return e}var h=uc(e);if(h){s=ts(e);if(!u){return ia(e,s)}}else{var p=Ka(e),g=p==Y||p==q;if(dc(e)){return Xo(e,u)}if(p==ee||p==U||g&&!o){s=l||g?{}:rs(e);if(!u){return l?sa(e,di(s,e)):aa(e,vi(s,e))}}else{if(!qt[p]){return o?e:{}}s=ns(e,p,u)}}a||(a=new Jn);var m=a.get(e);if(m){return m}a.set(e,s);if(Tc(e)){e.forEach((function(r){s.add(mi(r,t,n,r,e,a))}))}else if(Ec(e)){e.forEach((function(r,i){s.set(i,mi(r,t,n,i,e,a))}))}var C=c?l?Ha:Ba:l?_f:xf;var w=h?r:C(e);wr(w||e,(function(r,i){if(w){i=r;r=e[i]}li(s,i,mi(r,t,n,i,e,a))}));return s}function Ci(e){var t=xf(e);return function(r){return wi(r,e,t)}}function wi(e,t,n){var i=n.length;if(e==null){return!i}e=rt(e);while(i--){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s)){return false}}return true}function yi(e,t,n){if(typeof e!="function"){throw new ot(a)}return Ss((function(){e.apply(r,n)}),t)}function bi(e,t,r,n){var o=-1,a=xr,s=true,u=e.length,l=[],c=t.length;if(!u){return l}if(r){t=Sr(t,$r(r))}if(n){a=_r;s=false}else if(t.length>=i){a=Yr;s=false;t=new Yn(t)}e:while(++o<u){var f=e[o],v=r==null?f:r(f);f=n||f!==0?f:0;if(s&&v===v){var d=c;while(d--){if(t[d]===v){continue e}}l.push(f)}else if(!a(t,v,n)){l.push(f)}}return l}var Li=ca(Fi);var xi=ca(ji,true);function _i(e,t){var r=true;Li(e,(function(e,n,i){r=!!t(e,n,i);return r}));return r}function Si(e,t,n){var i=-1,o=e.length;while(++i<o){var a=e[i],s=t(a);if(s!=null&&(u===r?s===s&&!Bc(s):n(s,u))){var u=s,l=a}}return l}function Ei(e,t,n,i){var o=e.length;n=Xc(n);if(n<0){n=-n>o?0:o+n}i=i===r||i>o?o:Xc(i);if(i<0){i+=o}i=n>i?0:Yc(i);while(n<i){e[n++]=t}return e}function ki(e,t){var r=[];Li(e,(function(e,n,i){if(t(e,n,i)){r.push(e)}}));return r}function zi(e,t,r,n,i){var o=-1,a=e.length;r||(r=os);i||(i=[]);while(++o<a){var s=e[o];if(t>0&&r(s)){if(t>1){zi(s,t-1,r,n,i)}else{Er(i,s)}}else if(!n){i[i.length]=s}}return i}var Ri=fa();var Oi=fa(true);function Fi(e,t){return e&&Ri(e,t,xf)}function ji(e,t){return e&&Oi(e,t,xf)}function Pi(e,t){return Lr(t,(function(t){return bc(e[t])}))}function Di(e,t){t=Vo(t,e);var n=0,i=t.length;while(e!=null&&n<i){e=e[Fs(t[n++])]}return n&&n==i?e:r}function Ai(e,t,r){var n=t(e);return uc(e)?n:Er(n,r(e))}function Ii(e){if(e==null){return e===r?se:Q}return zt&&zt in rt(e)?Xa(e):ws(e)}function Ti(e,t){return e>t}function Mi(e,t){return e!=null&&ft.call(e,t)}function Bi(e,t){return e!=null&&t in rt(e)}function Hi(e,t,r){return e>=Nt(t,r)&&e<Ht(t,r)}function Wi(e,t,n){var i=n?_r:xr,o=e[0].length,a=e.length,s=a,u=y(a),l=Infinity,c=[];while(s--){var f=e[s];if(s&&t){f=Sr(f,$r(t))}l=Nt(f.length,l);u[s]=!n&&(t||o>=120&&f.length>=120)?new Yn(s&&f):r}f=e[0];var v=-1,d=u[0];e:while(++v<o&&c.length<l){var h=f[v],p=t?t(h):h;h=n||h!==0?h:0;if(!(d?Yr(d,p):i(c,p,n))){s=a;while(--s){var g=u[s];if(!(g?Yr(g,p):i(e[s],p,n))){continue e}}if(d){d.push(p)}c.push(h)}}return c}function Ui(e,t,r,n){Fi(e,(function(e,i,o){t(n,r(e),i,o)}));return n}function Ni(e,t,n){t=Vo(t,e);e=bs(e,t);var i=e==null?e:e[Fs(ou(t))];return i==null?r:mr(i,e,n)}function Vi(e){return Sc(e)&&Ii(e)==U}function Zi(e){return Sc(e)&&Ii(e)==ce}function Gi(e){return Sc(e)&&Ii(e)==G}function $i(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!Sc(e)&&!Sc(t)){return e!==e&&t!==t}return Xi(e,t,r,n,$i,i)}function Xi(e,t,r,n,i,o){var a=uc(e),s=uc(t),u=a?N:Ka(e),l=s?N:Ka(t);u=u==U?ee:u;l=l==U?ee:l;var c=u==ee,f=l==ee,v=u==l;if(v&&dc(e)){if(!dc(t)){return false}a=true;c=false}if(v&&!c){o||(o=new Jn);return a||Hc(e)?Aa(e,t,r,n,i,o):Ia(e,t,u,r,n,i,o)}if(!(r&h)){var d=c&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,m=p?t.value():t;o||(o=new Jn);return i(g,m,r,n,o)}}if(!v){return false}o||(o=new Jn);return Ta(e,t,r,n,i,o)}function Yi(e){return Sc(e)&&Ka(e)==K}function qi(e,t,n,i){var o=n.length,a=o,s=!i;if(e==null){return!a}e=rt(e);while(o--){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e)){return false}}while(++o<a){u=n[o];var l=u[0],c=e[l],f=u[1];if(s&&u[2]){if(c===r&&!(l in e)){return false}}else{var v=new Jn;if(i){var d=i(c,f,l,e,t,v)}if(!(d===r?$i(f,c,h|p,i,v):d)){return false}}}return true}function Ki(e){if(!_c(e)||fs(e)){return false}var t=bc(e)?mt:Xe;return t.test(js(e))}function Ji(e){return Sc(e)&&Ii(e)==ne}function Qi(e){return Sc(e)&&Ka(e)==ie}function eo(e){return Sc(e)&&xc(e.length)&&!!Yt[Ii(e)]}function to(e){if(typeof e=="function"){return e}if(e==null){return Fv}if(typeof e=="object"){return uc(e)?so(e[0],e[1]):ao(e)}return Vv(e)}function ro(e){if(!ds(e)){return Bt(e)}var t=[];for(var r in rt(e)){if(ft.call(e,r)&&r!="constructor"){t.push(r)}}return t}function no(e){if(!_c(e)){return Cs(e)}var t=ds(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!ft.call(e,n)))){r.push(n)}}return r}function io(e,t){return e<t}function oo(e,t){var r=-1,n=cc(e)?y(e.length):[];Li(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}function ao(e){var t=Ga(e);if(t.length==1&&t[0][2]){return ps(t[0][0],t[0][1])}return function(r){return r===e||qi(r,e,t)}}function so(e,t){if(us(e)&&hs(t)){return ps(Fs(e),t)}return function(n){var i=mf(n,e);return i===r&&i===t?wf(n,e):$i(t,i,h|p)}}function uo(e,t,n,i,o){if(e===t){return}Ri(t,(function(a,s){o||(o=new Jn);if(_c(a)){lo(e,t,s,n,uo,i,o)}else{var u=i?i(xs(e,s),a,s+"",e,t,o):r;if(u===r){u=a}ui(e,s,u)}}),_f)}function lo(e,t,n,i,o,a,s){var u=xs(e,n),l=xs(t,n),c=s.get(l);if(c){ui(e,n,c);return}var f=a?a(u,l,n+"",e,t,s):r;var v=f===r;if(v){var d=uc(l),h=!d&&dc(l),p=!d&&!h&&Hc(l);f=l;if(d||h||p){if(uc(u)){f=u}else if(fc(u)){f=ia(u)}else if(h){v=false;f=Xo(l,true)}else if(p){v=false;f=Qo(l,true)}else{f=[]}}else if(Dc(l)||sc(l)){f=u;if(sc(u)){f=Kc(u)}else if(!_c(u)||bc(u)){f=rs(l)}}else{v=false}}if(v){s.set(l,f);o(f,l,i,a,s);s["delete"](l)}ui(e,n,f)}function co(e,t){var n=e.length;if(!n){return}t+=t<0?n:0;return as(t,n)?e[t]:r}function fo(e,t,r){if(t.length){t=Sr(t,(function(e){if(uc(e)){return function(t){return Di(t,e.length===1?e[0]:e)}}return e}))}else{t=[Fv]}var n=-1;t=Sr(t,$r(Va()));var i=oo(e,(function(e,r,i){var o=Sr(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return Ur(i,(function(e,t){return ta(e,t,r)}))}function vo(e,t){return ho(e,t,(function(t,r){return wf(e,r)}))}function ho(e,t,r){var n=-1,i=t.length,o={};while(++n<i){var a=t[n],s=Di(e,a);if(r(s,a)){_o(o,Vo(a,e),s)}}return o}function po(e){return function(t){return Di(t,e)}}function go(e,t,r,n){var i=n?Ir:Ar,o=-1,a=t.length,s=e;if(e===t){t=ia(t)}if(r){s=Sr(e,$r(r))}while(++o<a){var u=0,l=t[o],c=r?r(l):l;while((u=i(s,c,u,n))>-1){if(s!==e){St.call(s,u,1)}St.call(e,u,1)}}return e}function mo(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==o){var o=i;if(as(i)){St.call(e,i,1)}else{Io(e,i)}}}return e}function Co(e,t){return e+Dt(Gt()*(t-e+1))}function wo(e,t,r,n){var i=-1,o=Ht(Pt((t-e)/(r||1)),0),a=y(o);while(o--){a[n?o:++i]=e;e+=r}return a}function yo(e,t){var r="";if(!e||t<1||t>A){return r}do{if(t%2){r+=e}t=Dt(t/2);if(t){e+=e}}while(t);return r}function bo(e,t){return Es(ys(e,t,Fv),e+"")}function Lo(e){return oi(Uf(e))}function xo(e,t){var r=Uf(e);return Rs(r,gi(t,0,r.length))}function _o(e,t,n,i){if(!_c(e)){return e}t=Vo(t,e);var o=-1,a=t.length,s=a-1,u=e;while(u!=null&&++o<a){var l=Fs(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype"){return e}if(o!=s){var f=u[l];c=i?i(f,l,u):r;if(c===r){c=_c(f)?f:as(t[o+1])?[]:{}}}li(u,l,c);u=u[l]}return e}var So=!sr?Fv:function(e,t){sr.set(e,t);return e};var Eo=!Rt?Fv:function(e,t){return Rt(e,"toString",{configurable:true,enumerable:false,value:kv(t),writable:true})};function ko(e){return Rs(Uf(e))}function zo(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=y(i);while(++n<i){o[n]=e[n+t]}return o}function Ro(e,t){var r;Li(e,(function(e,n,i){r=t(e,n,i);return!r}));return!!r}function Oo(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=H){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!Bc(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return Fo(e,t,Fv,r)}function Fo(e,t,n,i){var o=0,a=e==null?0:e.length;if(a===0){return 0}t=n(t);var s=t!==t,u=t===null,l=Bc(t),c=t===r;while(o<a){var f=Dt((o+a)/2),v=n(e[f]),d=v!==r,h=v===null,p=v===v,g=Bc(v);if(s){var m=i||p}else if(c){m=p&&(i||d)}else if(u){m=p&&d&&(i||!h)}else if(l){m=p&&d&&!h&&(i||!g)}else if(h||g){m=false}else{m=i?v<=t:v<t}if(m){o=f+1}else{a=f}}return Nt(a,B)}function jo(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r],s=t?t(a):a;if(!r||!ic(s,u)){var u=s;o[i++]=a===0?0:a}}return o}function Po(e){if(typeof e=="number"){return e}if(Bc(e)){return T}return+e}function Do(e){if(typeof e=="string"){return e}if(uc(e)){return Sr(e,Do)+""}if(Bc(e)){return bn?bn.call(e):""}var t=e+"";return t=="0"&&1/e==-D?"-0":t}function Ao(e,t,r){var n=-1,o=xr,a=e.length,s=true,u=[],l=u;if(r){s=false;o=_r}else if(a>=i){var c=t?null:Ra(e);if(c){return cn(c)}s=false;o=Yr;l=new Yn}else{l=t?[]:u}e:while(++n<a){var f=e[n],v=t?t(f):f;f=r||f!==0?f:0;if(s&&v===v){var d=l.length;while(d--){if(l[d]===v){continue e}}if(t){l.push(v)}u.push(f)}else if(!o(l,v,r)){if(l!==u){l.push(v)}u.push(f)}}return u}function Io(e,t){t=Vo(t,e);e=bs(e,t);return e==null||delete e[Fs(ou(t))]}function To(e,t,r,n){return _o(e,t,r(Di(e,t)),n)}function Mo(e,t,r,n){var i=e.length,o=n?i:-1;while((n?o--:++o<i)&&t(e[o],o,e)){}return r?zo(e,n?0:o,n?o+1:i):zo(e,n?o+1:0,n?i:o)}function Bo(e,t){var r=e;if(r instanceof kn){r=r.value()}return kr(t,(function(e,t){return t.func.apply(t.thisArg,Er([e],t.args))}),r)}function Ho(e,t,r){var n=e.length;if(n<2){return n?Ao(e[0]):[]}var i=-1,o=y(n);while(++i<n){var a=e[i],s=-1;while(++s<n){if(s!=i){o[i]=bi(o[i]||a,e[s],t,r)}}}return Ao(zi(o,1),t,r)}function Wo(e,t,n){var i=-1,o=e.length,a=t.length,s={};while(++i<o){var u=i<a?t[i]:r;n(s,e[i],u)}return s}function Uo(e){return fc(e)?e:[]}function No(e){return typeof e=="function"?e:Fv}function Vo(e,t){if(uc(e)){return e}return us(e,t)?[e]:Os(Qc(e))}var Zo=bo;function Go(e,t,n){var i=e.length;n=n===r?i:n;return!t&&n>=i?e:zo(e,t,n)}var $o=Ot||function(e){return or.clearTimeout(e)};function Xo(e,t){if(t){return e.slice()}var r=e.length,n=bt?bt(r):new e.constructor(r);e.copy(n);return n}function Yo(e){var t=new e.constructor(e.byteLength);new yt(t).set(new yt(e));return t}function qo(e,t){var r=t?Yo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Ko(e){var t=new e.constructor(e.source,Ze.exec(e));t.lastIndex=e.lastIndex;return t}function Jo(e){return wn?rt(wn.call(e)):{}}function Qo(e,t){var r=t?Yo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==r,i=e===null,o=e===e,a=Bc(e);var s=t!==r,u=t===null,l=t===t,c=Bc(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o){return 1}if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l){return-1}}return 0}function ta(e,t,r){var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;while(++n<a){var u=ea(i[n],o[n]);if(u){if(n>=s){return u}var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}function ra(e,t,r,n){var i=-1,o=e.length,a=r.length,s=-1,u=t.length,l=Ht(o-a,0),c=y(u+l),f=!n;while(++s<u){c[s]=t[s]}while(++i<a){if(f||i<o){c[r[i]]=e[i]}}while(l--){c[s++]=e[i++]}return c}function na(e,t,r,n){var i=-1,o=e.length,a=-1,s=r.length,u=-1,l=t.length,c=Ht(o-s,0),f=y(c+l),v=!n;while(++i<c){f[i]=e[i]}var d=i;while(++u<l){f[d+u]=t[u]}while(++a<s){if(v||i<o){f[d+r[a]]=e[i++]}}return f}function ia(e,t){var r=-1,n=e.length;t||(t=y(n));while(++r<n){t[r]=e[r]}return t}function oa(e,t,n,i){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var u=t[a];var l=i?i(n[u],e[u],u,n,e):r;if(l===r){l=e[u]}if(o){hi(n,u,l)}else{li(n,u,l)}}return n}function aa(e,t){return oa(e,Ya(e),t)}function sa(e,t){return oa(e,qa(e),t)}function ua(e,t){return function(r,n){var i=uc(r)?Cr:fi,o=t?t():{};return i(r,e,Va(n,2),o)}}function la(e){return bo((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;a=e.length>3&&typeof a=="function"?(o--,a):r;if(s&&ss(n[0],n[1],s)){a=o<3?r:a;o=1}t=rt(t);while(++i<o){var u=n[i];if(u){e(t,u,i,a)}}return t}))}function ca(e,t){return function(r,n){if(r==null){return r}if(!cc(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=rt(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}function fa(e){return function(t,r,n){var i=-1,o=rt(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}function va(e,t,r){var n=t&g,i=pa(e);function o(){var t=this&&this!==or&&this instanceof o?i:e;return t.apply(n?r:this,arguments)}return o}function da(e){return function(t){t=Qc(t);var n=nn(t)?pn(t):r;var i=n?n[0]:t.charAt(0);var o=n?Go(n,1).join(""):t.slice(1);return i[e]()+o}}function ha(e){return function(t){return kr(Lv(Yf(t).replace(Wt,"")),e,"")}}function pa(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=_n(e.prototype),n=e.apply(r,t);return _c(n)?n:r}}function ga(e,t,n){var i=pa(e);function o(){var a=arguments.length,s=y(a),u=a,l=Na(o);while(u--){s[u]=arguments[u]}var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:ln(s,l);a-=c.length;if(a<n){return ka(e,t,wa,o.placeholder,r,s,c,r,r,n-a)}var f=this&&this!==or&&this instanceof o?i:e;return mr(f,this,s)}return o}function ma(e){return function(t,n,i){var o=rt(t);if(!cc(t)){var a=Va(n,3);t=xf(t);n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function Ca(e){return Ma((function(t){var n=t.length,i=n,o=En.prototype.thru;if(e){t.reverse()}while(i--){var s=t[i];if(typeof s!="function"){throw new ot(a)}if(o&&!u&&Ua(s)=="wrapper"){var u=new En([],true)}}i=u?i:n;while(++i<n){s=t[i];var l=Ua(s),c=l=="wrapper"?Wa(s):r;if(c&&cs(c[0])&&c[1]==(_|w|L|S)&&!c[4].length&&c[9]==1){u=u[Ua(c[0])].apply(u,c[3])}else{u=s.length==1&&cs(s)?u[l]():u.thru(s)}}return function(){var e=arguments,r=e[0];if(u&&e.length==1&&uc(r)){return u.plant(r).value()}var i=0,o=n?t[i].apply(this,e):r;while(++i<n){o=t[i].call(this,o)}return o}}))}function wa(e,t,n,i,o,a,s,u,l,c){var f=t&_,v=t&g,d=t&m,h=t&(w|b),p=t&E,C=d?r:pa(e);function L(){var r=arguments.length,g=y(r),m=r;while(m--){g[m]=arguments[m]}if(h){var w=Na(L),b=Jr(g,w)}if(i){g=ra(g,i,o,h)}if(a){g=na(g,a,s,h)}r-=b;if(h&&r<c){var x=ln(g,w);return ka(e,t,wa,L.placeholder,n,g,x,u,l,c-r)}var _=v?n:this,S=d?_[e]:e;r=g.length;if(u){g=Ls(g,u)}else if(p&&r>1){g.reverse()}if(f&&l<r){g.length=l}if(this&&this!==or&&this instanceof L){S=C||pa(S)}return S.apply(_,g)}return L}function ya(e,t){return function(r,n){return Ui(r,e,t(n),{})}}function ba(e,t){return function(n,i){var o;if(n===r&&i===r){return t}if(n!==r){o=n}if(i!==r){if(o===r){return i}if(typeof n=="string"||typeof i=="string"){n=Do(n);i=Do(i)}else{n=Po(n);i=Po(i)}o=e(n,i)}return o}}function La(e){return Ma((function(t){t=Sr(t,$r(Va()));return bo((function(r){var n=this;return e(t,(function(e){return mr(e,n,r)}))}))}))}function xa(e,t){t=t===r?" ":Do(t);var n=t.length;if(n<2){return n?yo(t,e):t}var i=yo(t,Pt(e/hn(t)));return nn(t)?Go(pn(i),0,e).join(""):i.slice(0,e)}function _a(e,t,r,n){var i=t&g,o=pa(e);function a(){var t=-1,s=arguments.length,u=-1,l=n.length,c=y(l+s),f=this&&this!==or&&this instanceof a?o:e;while(++u<l){c[u]=n[u]}while(s--){c[u++]=arguments[++t]}return mr(f,i?r:this,c)}return a}function Sa(e){return function(t,n,i){if(i&&typeof i!="number"&&ss(t,n,i)){n=i=r}t=$c(t);if(n===r){n=t;t=0}else{n=$c(n)}i=i===r?t<n?1:-1:$c(i);return wo(t,n,i,e)}}function Ea(e){return function(t,r){if(!(typeof t=="string"&&typeof r=="string")){t=qc(t);r=qc(r)}return e(t,r)}}function ka(e,t,n,i,o,a,s,u,l,c){var f=t&w,v=f?s:r,d=f?r:s,h=f?a:r,p=f?r:a;t|=f?L:x;t&=~(f?x:L);if(!(t&C)){t&=~(g|m)}var y=[e,t,o,h,v,p,d,u,l,c];var b=n.apply(r,y);if(cs(e)){_s(b,y)}b.placeholder=i;return ks(b,e,t)}function za(e){var t=tt[e];return function(e,r){e=qc(e);r=r==null?0:Nt(Xc(r),292);if(r&&Tt(e)){var n=(Qc(e)+"e").split("e"),i=t(n[0]+"e"+(+n[1]+r));n=(Qc(i)+"e").split("e");return+(n[0]+"e"+(+n[1]-r))}return t(e)}}var Ra=!(nr&&1/cn(new nr([,-0]))[1]==D)?Bv:function(e){return new nr(e)};function Oa(e){return function(t){var r=Ka(t);if(r==K){return sn(t)}if(r==ie){return fn(t)}return Zr(t,e(t))}}function Fa(e,t,n,i,o,s,u,l){var c=t&m;if(!c&&typeof e!="function"){throw new ot(a)}var f=i?i.length:0;if(!f){t&=~(L|x);i=o=r}u=u===r?u:Ht(Xc(u),0);l=l===r?l:Xc(l);f-=o?o.length:0;if(t&x){var v=i,d=o;i=o=r}var h=c?r:Wa(e);var p=[e,t,n,i,o,v,d,s,u,l];if(h){ms(p,h)}e=p[0];t=p[1];n=p[2];i=p[3];o=p[4];l=p[9]=p[9]===r?c?0:e.length:Ht(p[9]-f,0);if(!l&&t&(w|b)){t&=~(w|b)}if(!t||t==g){var C=va(e,t,n)}else if(t==w||t==b){C=ga(e,t,l)}else if((t==L||t==(g|L))&&!o.length){C=_a(e,t,n,i)}else{C=wa.apply(r,p)}var y=h?So:_s;return ks(y(C,p),e,t)}function ja(e,t,n,i){if(e===r||ic(e,ut[n])&&!ft.call(i,n)){return t}return e}function Pa(e,t,n,i,o,a){if(_c(e)&&_c(t)){a.set(t,e);uo(e,t,r,Pa,a);a["delete"](t)}return e}function Da(e){return Dc(e)?r:e}function Aa(e,t,n,i,o,a){var s=n&h,u=e.length,l=t.length;if(u!=l&&!(s&&l>u)){return false}var c=a.get(e);var f=a.get(t);if(c&&f){return c==t&&f==e}var v=-1,d=true,g=n&p?new Yn:r;a.set(e,t);a.set(t,e);while(++v<u){var m=e[v],C=t[v];if(i){var w=s?i(C,m,v,t,e,a):i(m,C,v,e,t,a)}if(w!==r){if(w){continue}d=false;break}if(g){if(!Rr(t,(function(e,t){if(!Yr(g,t)&&(m===e||o(m,e,n,i,a))){return g.push(t)}}))){d=false;break}}else if(!(m===C||o(m,C,n,i,a))){d=false;break}}a["delete"](e);a["delete"](t);return d}function Ia(e,t,r,n,i,o,a){switch(r){case fe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case ce:if(e.byteLength!=t.byteLength||!o(new yt(e),new yt(t))){return false}return true;case Z:case G:case J:return ic(+e,+t);case X:return e.name==t.name&&e.message==t.message;case ne:case oe:return e==t+"";case K:var s=sn;case ie:var u=n&h;s||(s=cn);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=p;a.set(e,t);var c=Aa(s(e),s(t),n,i,o,a);a["delete"](e);return c;case ae:if(wn){return wn.call(e)==wn.call(t)}}return false}function Ta(e,t,n,i,o,a){var s=n&h,u=Ba(e),l=u.length,c=Ba(t),f=c.length;if(l!=f&&!s){return false}var v=l;while(v--){var d=u[v];if(!(s?d in t:ft.call(t,d))){return false}}var p=a.get(e);var g=a.get(t);if(p&&g){return p==t&&g==e}var m=true;a.set(e,t);a.set(t,e);var C=s;while(++v<l){d=u[v];var w=e[d],y=t[d];if(i){var b=s?i(y,w,d,t,e,a):i(w,y,d,e,t,a)}if(!(b===r?w===y||o(w,y,n,i,a):b)){m=false;break}C||(C=d=="constructor")}if(m&&!C){var L=e.constructor,x=t.constructor;if(L!=x&&("constructor"in e&&"constructor"in t)&&!(typeof L=="function"&&L instanceof L&&typeof x=="function"&&x instanceof x)){m=false}}a["delete"](e);a["delete"](t);return m}function Ma(e){return Es(ys(e,r,Xs),e+"")}function Ba(e){return Ai(e,xf,Ya)}function Ha(e){return Ai(e,_f,qa)}var Wa=!sr?Bv:function(e){return sr.get(e)};function Ua(e){var t=e.name+"",r=lr[t],n=ft.call(lr,t)?r.length:0;while(n--){var i=r[n],o=i.func;if(o==null||o==e){return i.name}}return t}function Na(e){var t=ft.call(xn,"placeholder")?xn:e;return t.placeholder}function Va(){var e=xn.iteratee||jv;e=e===jv?to:e;return arguments.length?e(arguments[0],arguments[1]):e}function Za(e,t){var r=e.__data__;return ls(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ga(e){var t=xf(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,hs(i)]}return t}function $a(e,t){var n=rn(e,t);return Ki(n)?n:r}function Xa(e){var t=ft.call(e,zt),n=e[zt];try{e[zt]=r;var i=true}catch(e){}var o=ht.call(e);if(i){if(t){e[zt]=n}else{delete e[zt]}}return o}var Ya=!At?Xv:function(e){if(e==null){return[]}e=rt(e);return Lr(At(e),(function(t){return _t.call(e,t)}))};var qa=!At?Xv:function(e){var t=[];while(e){Er(t,Ya(e));e=Lt(e)}return t};var Ka=Ii;if(Jt&&Ka(new Jt(new ArrayBuffer(1)))!=fe||Qt&&Ka(new Qt)!=K||er&&Ka(er.resolve())!=te||nr&&Ka(new nr)!=ie||ir&&Ka(new ir)!=ue){Ka=function(e){var t=Ii(e),n=t==ee?e.constructor:r,i=n?js(n):"";if(i){switch(i){case cr:return fe;case Or:return K;case Fr:return te;case Hr:return ie;case vn:return ue}}return t}}function Ja(e,t,r){var n=-1,i=r.length;while(++n<i){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Nt(t,e+a);break;case"takeRight":e=Ht(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(Be);return t?t[1].split(He):[]}function es(e,t,r){t=Vo(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=Fs(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&xc(i)&&as(a,i)&&(uc(e)||sc(e))}function ts(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&ft.call(e,"index")){r.index=e.index;r.input=e.input}return r}function rs(e){return typeof e.constructor=="function"&&!ds(e)?_n(Lt(e)):{}}function ns(e,t,r){var n=e.constructor;switch(t){case ce:return Yo(e);case Z:case G:return new n(+e);case fe:return qo(e,r);case ve:case de:case he:case pe:case ge:case me:case Ce:case we:case ye:return Qo(e,r);case K:return new n;case J:case oe:return new n(e);case ne:return Ko(e);case ie:return new n;case ae:return Jo(e)}}function is(e,t){var r=t.length;if(!r){return e}var n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Me,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return uc(e)||sc(e)||!!(Et&&e&&e[Et])}function as(e,t){var r=typeof e;t=t==null?A:t;return!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&(e>-1&&e%1==0&&e<t)}function ss(e,t,r){if(!_c(r)){return false}var n=typeof t;if(n=="number"?cc(r)&&as(t,r.length):n=="string"&&t in r){return ic(r[t],e)}return false}function us(e,t){if(uc(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||Bc(e)){return true}return je.test(e)||!Fe.test(e)||t!=null&&e in rt(t)}function ls(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cs(e){var t=Ua(e),r=xn[t];if(typeof r!="function"||!(t in kn.prototype)){return false}if(e===r){return true}var n=Wa(r);return!!n&&e===n[0]}function fs(e){return!!dt&&dt in e}var vs=lt?bc:Yv;function ds(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ut;return e===r}function hs(e){return e===e&&!_c(e)}function ps(e,t){return function(n){if(n==null){return false}return n[e]===t&&(t!==r||e in rt(n))}}function gs(e){var t=Hl(e,(function(e){if(r.size===l){r.clear()}return e}));var r=t.cache;return t}function ms(e,t){var r=e[1],n=t[1],i=r|n,o=i<(g|m|_);var a=n==_&&r==w||n==_&&r==S&&e[7].length<=t[8]||n==(_|S)&&t[7].length<=t[8]&&r==w;if(!(o||a)){return e}if(n&g){e[2]=t[2];i|=r&g?0:C}var s=t[3];if(s){var u=e[3];e[3]=u?ra(u,s,t[4]):s;e[4]=u?ln(e[3],c):t[4]}s=t[5];if(s){u=e[5];e[5]=u?na(u,s,t[6]):s;e[6]=u?ln(e[5],c):t[6]}s=t[7];if(s){e[7]=s}if(n&_){e[8]=e[8]==null?t[8]:Nt(e[8],t[8])}if(e[9]==null){e[9]=t[9]}e[0]=t[0];e[1]=i;return e}function Cs(e){var t=[];if(e!=null){for(var r in rt(e)){t.push(r)}}return t}function ws(e){return ht.call(e)}function ys(e,t,n){t=Ht(t===r?e.length-1:t,0);return function(){var r=arguments,i=-1,o=Ht(r.length-t,0),a=y(o);while(++i<o){a[i]=r[t+i]}i=-1;var s=y(t+1);while(++i<t){s[i]=r[i]}s[t]=n(a);return mr(e,this,s)}}function bs(e,t){return t.length<2?e:Di(e,zo(t,0,-1))}function Ls(e,t){var n=e.length,i=Nt(t.length,n),o=ia(e);while(i--){var a=t[i];e[i]=as(a,n)?o[a]:r}return e}function xs(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}var _s=zs(So);var Ss=jt||function(e,t){return or.setTimeout(e,t)};var Es=zs(Eo);function ks(e,t,r){var n=t+"";return Es(e,is(n,Ps(Qa(n),r)))}function zs(e){var t=0,n=0;return function(){var i=Vt(),o=O-(i-n);n=i;if(o>0){if(++t>=R){return arguments[0]}}else{t=0}return e.apply(r,arguments)}}function Rs(e,t){var n=-1,i=e.length,o=i-1;t=t===r?i:t;while(++n<t){var a=Co(n,o),s=e[a];e[a]=e[n];e[n]=s}e.length=t;return e}var Os=gs((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(Pe,(function(e,r,n,i){t.push(n?i.replace(Ne,"$1"):r||e)}));return t}));function Fs(e){if(typeof e=="string"||Bc(e)){return e}var t=e+"";return t=="0"&&1/e==-D?"-0":t}function js(e){if(e!=null){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ps(e,t){wr(W,(function(r){var n="_."+r[0];if(t&r[1]&&!xr(e,n)){e.push(n)}}));return e.sort()}function Ds(e){if(e instanceof kn){return e.clone()}var t=new En(e.__wrapped__,e.__chain__);t.__actions__=ia(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function As(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Ht(Xc(t),0)}var i=e==null?0:e.length;if(!i||t<1){return[]}var o=0,a=0,s=y(Pt(i/t));while(o<i){s[a++]=zo(e,o,o+=t)}return s}function Is(e){var t=-1,r=e==null?0:e.length,n=0,i=[];while(++t<r){var o=e[t];if(o){i[n++]=o}}return i}function Ts(){var e=arguments.length;if(!e){return[]}var t=y(e-1),r=arguments[0],n=e;while(n--){t[n-1]=arguments[n]}return Er(uc(r)?ia(r):[r],zi(t,1))}var Ms=bo((function(e,t){return fc(e)?bi(e,zi(t,1,fc,true)):[]}));var Bs=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,zi(t,1,fc,true),Va(n,2)):[]}));var Hs=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,zi(t,1,fc,true),r,n):[]}));function Ws(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);return zo(e,t<0?0:t,i)}function Us(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);t=i-t;return zo(e,0,t<0?0:t)}function Ns(e,t){return e&&e.length?Mo(e,Va(t,3),true,true):[]}function Vs(e,t){return e&&e.length?Mo(e,Va(t,3),true):[]}function Zs(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&ss(e,t,r)){r=0;n=i}return Ei(e,t,r,n)}function Gs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Xc(r);if(i<0){i=Ht(n+i,0)}return Dr(e,Va(t,3),i)}function $s(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i-1;if(n!==r){o=Xc(n);o=n<0?Ht(i+o,0):Nt(o,i-1)}return Dr(e,Va(t,3),o,true)}function Xs(e){var t=e==null?0:e.length;return t?zi(e,1):[]}function Ys(e){var t=e==null?0:e.length;return t?zi(e,D):[]}function qs(e,t){var n=e==null?0:e.length;if(!n){return[]}t=t===r?1:Xc(t);return zi(e,t)}function Ks(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var i=e[t];n[i[0]]=i[1]}return n}function Js(e){return e&&e.length?e[0]:r}function Qs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Xc(r);if(i<0){i=Ht(n+i,0)}return Ar(e,t,i)}function eu(e){var t=e==null?0:e.length;return t?zo(e,0,-1):[]}var tu=bo((function(e){var t=Sr(e,Uo);return t.length&&t[0]===e[0]?Wi(t):[]}));var ru=bo((function(e){var t=ou(e),n=Sr(e,Uo);if(t===ou(n)){t=r}else{n.pop()}return n.length&&n[0]===e[0]?Wi(n,Va(t,2)):[]}));var nu=bo((function(e){var t=ou(e),n=Sr(e,Uo);t=typeof t=="function"?t:r;if(t){n.pop()}return n.length&&n[0]===e[0]?Wi(n,r,t):[]}));function iu(e,t){return e==null?"":Mt.call(e,t)}function ou(e){var t=e==null?0:e.length;return t?e[t-1]:r}function au(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i;if(n!==r){o=Xc(n);o=o<0?Ht(i+o,0):Nt(o,i-1)}return t===t?dn(e,t,o):Dr(e,Tr,o,true)}function su(e,t){return e&&e.length?co(e,Xc(t)):r}var uu=bo(lu);function lu(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function cu(e,t,r){return e&&e.length&&t&&t.length?go(e,t,Va(r,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?go(e,t,r,n):e}var vu=Ma((function(e,t){var r=e==null?0:e.length,n=pi(e,t);mo(e,Sr(t,(function(e){return as(e,r)?+e:e})).sort(ea));return n}));function du(e,t){var r=[];if(!(e&&e.length)){return r}var n=-1,i=[],o=e.length;t=Va(t,3);while(++n<o){var a=e[n];if(t(a,n,e)){r.push(a);i.push(n)}}mo(e,i);return r}function hu(e){return e==null?e:Kt.call(e)}function pu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}if(n&&typeof n!="number"&&ss(e,t,n)){t=0;n=i}else{t=t==null?0:Xc(t);n=n===r?i:Xc(n)}return zo(e,t,n)}function gu(e,t){return Oo(e,t)}function mu(e,t,r){return Fo(e,t,Va(r,2))}function Cu(e,t){var r=e==null?0:e.length;if(r){var n=Oo(e,t);if(n<r&&ic(e[n],t)){return n}}return-1}function wu(e,t){return Oo(e,t,true)}function yu(e,t,r){return Fo(e,t,Va(r,2),true)}function bu(e,t){var r=e==null?0:e.length;if(r){var n=Oo(e,t,true)-1;if(ic(e[n],t)){return n}}return-1}function Lu(e){return e&&e.length?jo(e):[]}function xu(e,t){return e&&e.length?jo(e,Va(t,2)):[]}function _u(e){var t=e==null?0:e.length;return t?zo(e,1,t):[]}function Su(e,t,n){if(!(e&&e.length)){return[]}t=n||t===r?1:Xc(t);return zo(e,0,t<0?0:t)}function Eu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);t=i-t;return zo(e,t<0?0:t,i)}function ku(e,t){return e&&e.length?Mo(e,Va(t,3),false,true):[]}function zu(e,t){return e&&e.length?Mo(e,Va(t,3)):[]}var Ru=bo((function(e){return Ao(zi(e,1,fc,true))}));var Ou=bo((function(e){var t=ou(e);if(fc(t)){t=r}return Ao(zi(e,1,fc,true),Va(t,2))}));var Fu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return Ao(zi(e,1,fc,true),r,t)}));function ju(e){return e&&e.length?Ao(e):[]}function Pu(e,t){return e&&e.length?Ao(e,Va(t,2)):[]}function Du(e,t){t=typeof t=="function"?t:r;return e&&e.length?Ao(e,r,t):[]}function Au(e){if(!(e&&e.length)){return[]}var t=0;e=Lr(e,(function(e){if(fc(e)){t=Ht(e.length,t);return true}}));return Vr(t,(function(t){return Sr(e,Br(t))}))}function Iu(e,t){if(!(e&&e.length)){return[]}var n=Au(e);if(t==null){return n}return Sr(n,(function(e){return mr(t,r,e)}))}var Tu=bo((function(e,t){return fc(e)?bi(e,t):[]}));var Mu=bo((function(e){return Ho(Lr(e,fc))}));var Bu=bo((function(e){var t=ou(e);if(fc(t)){t=r}return Ho(Lr(e,fc),Va(t,2))}));var Hu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return Ho(Lr(e,fc),r,t)}));var Wu=bo(Au);function Uu(e,t){return Wo(e||[],t||[],li)}function Nu(e,t){return Wo(e||[],t||[],_o)}var Vu=bo((function(e){var t=e.length,n=t>1?e[t-1]:r;n=typeof n=="function"?(e.pop(),n):r;return Iu(e,n)}));function Zu(e){var t=xn(e);t.__chain__=true;return t}function Gu(e,t){t(e);return e}function $u(e,t){return t(e)}var Xu=Ma((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return pi(t,e)};if(t>1||this.__actions__.length||!(i instanceof kn)||!as(n)){return this.thru(o)}i=i.slice(n,+n+(t?1:0));i.__actions__.push({func:$u,args:[o],thisArg:r});return new En(i,this.__chain__).thru((function(e){if(t&&!e.length){e.push(r)}return e}))}));function Yu(){return Zu(this)}function qu(){return new En(this.value(),this.__chain__)}function Ku(){if(this.__values__===r){this.__values__=Gc(this.value())}var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Ju(){return this}function Qu(e){var t,n=this;while(n instanceof Sn){var i=Ds(n);i.__index__=0;i.__values__=r;if(t){o.__wrapped__=i}else{t=i}var o=i;n=n.__wrapped__}o.__wrapped__=e;return t}function el(){var e=this.__wrapped__;if(e instanceof kn){var t=e;if(this.__actions__.length){t=new kn(this)}t=t.reverse();t.__actions__.push({func:$u,args:[hu],thisArg:r});return new En(t,this.__chain__)}return this.thru(hu)}function tl(){return Bo(this.__wrapped__,this.__actions__)}var rl=ua((function(e,t,r){if(ft.call(e,r)){++e[r]}else{hi(e,r,1)}}));function nl(e,t,n){var i=uc(e)?br:_i;if(n&&ss(e,t,n)){t=r}return i(e,Va(t,3))}function il(e,t){var r=uc(e)?Lr:ki;return r(e,Va(t,3))}var ol=ma(Gs);var al=ma($s);function sl(e,t){return zi(gl(e,t),1)}function ul(e,t){return zi(gl(e,t),D)}function ll(e,t,n){n=n===r?1:Xc(n);return zi(gl(e,t),n)}function cl(e,t){var r=uc(e)?wr:Li;return r(e,Va(t,3))}function fl(e,t){var r=uc(e)?yr:xi;return r(e,Va(t,3))}var vl=ua((function(e,t,r){if(ft.call(e,r)){e[r].push(t)}else{hi(e,r,[t])}}));function dl(e,t,r,n){e=cc(e)?e:Uf(e);r=r&&!n?Xc(r):0;var i=e.length;if(r<0){r=Ht(i+r,0)}return Mc(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ar(e,t,r)>-1}var hl=bo((function(e,t,r){var n=-1,i=typeof t=="function",o=cc(e)?y(e.length):[];Li(e,(function(e){o[++n]=i?mr(t,e,r):Ni(e,t,r)}));return o}));var pl=ua((function(e,t,r){hi(e,r,t)}));function gl(e,t){var r=uc(e)?Sr:oo;return r(e,Va(t,3))}function ml(e,t,n,i){if(e==null){return[]}if(!uc(t)){t=t==null?[]:[t]}n=i?r:n;if(!uc(n)){n=n==null?[]:[n]}return fo(e,t,n)}var Cl=ua((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));function wl(e,t,r){var n=uc(e)?kr:Wr,i=arguments.length<3;return n(e,Va(t,4),r,i,Li)}function yl(e,t,r){var n=uc(e)?zr:Wr,i=arguments.length<3;return n(e,Va(t,4),r,i,xi)}function bl(e,t){var r=uc(e)?Lr:ki;return r(e,Wl(Va(t,3)))}function Ll(e){var t=uc(e)?oi:Lo;return t(e)}function xl(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Xc(t)}var i=uc(e)?ai:xo;return i(e,t)}function _l(e){var t=uc(e)?si:ko;return t(e)}function Sl(e){if(e==null){return 0}if(cc(e)){return Mc(e)?hn(e):e.length}var t=Ka(e);if(t==K||t==ie){return e.size}return ro(e).length}function El(e,t,n){var i=uc(e)?Rr:Ro;if(n&&ss(e,t,n)){t=r}return i(e,Va(t,3))}var kl=bo((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&ss(e,t[0],t[1])){t=[]}else if(r>2&&ss(t[0],t[1],t[2])){t=[t[0]]}return fo(e,zi(t,1),[])}));var zl=Ft||function(){return or.Date.now()};function Rl(e,t){if(typeof t!="function"){throw new ot(a)}e=Xc(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function Ol(e,t,n){t=n?r:t;t=e&&t==null?e.length:t;return Fa(e,_,r,r,r,r,t)}function Fl(e,t){var n;if(typeof t!="function"){throw new ot(a)}e=Xc(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=r}return n}}var jl=bo((function(e,t,r){var n=g;if(r.length){var i=ln(r,Na(jl));n|=L}return Fa(e,n,t,r,i)}));var Pl=bo((function(e,t,r){var n=g|m;if(r.length){var i=ln(r,Na(Pl));n|=L}return Fa(t,n,e,r,i)}));function Dl(e,t,n){t=n?r:t;var i=Fa(e,w,r,r,r,r,r,t);i.placeholder=Dl.placeholder;return i}function Al(e,t,n){t=n?r:t;var i=Fa(e,b,r,r,r,r,r,t);i.placeholder=Al.placeholder;return i}function Il(e,t,n){var i,o,s,u,l,c,f=0,v=false,d=false,h=true;if(typeof e!="function"){throw new ot(a)}t=qc(t)||0;if(_c(n)){v=!!n.leading;d="maxWait"in n;s=d?Ht(qc(n.maxWait)||0,t):s;h="trailing"in n?!!n.trailing:h}function p(t){var n=i,a=o;i=o=r;f=t;u=e.apply(a,n);return u}function g(e){f=e;l=Ss(w,t);return v?p(e):u}function m(e){var r=e-c,n=e-f,i=t-r;return d?Nt(i,s-n):i}function C(e){var n=e-c,i=e-f;return c===r||n>=t||n<0||d&&i>=s}function w(){var e=zl();if(C(e)){return y(e)}l=Ss(w,m(e))}function y(e){l=r;if(h&&i){return p(e)}i=o=r;return u}function b(){if(l!==r){$o(l)}f=0;i=c=o=l=r}function L(){return l===r?u:y(zl())}function x(){var e=zl(),n=C(e);i=arguments;o=this;c=e;if(n){if(l===r){return g(c)}if(d){$o(l);l=Ss(w,t);return p(c)}}if(l===r){l=Ss(w,t)}return u}x.cancel=b;x.flush=L;return x}var Tl=bo((function(e,t){return yi(e,1,t)}));var Ml=bo((function(e,t,r){return yi(e,qc(t)||0,r)}));function Bl(e){return Fa(e,E)}function Hl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new ot(a)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Hl.Cache||Nn);return r}Hl.Cache=Nn;function Wl(e){if(typeof e!="function"){throw new ot(a)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ul(e){return Fl(2,e)}var Nl=Zo((function(e,t){t=t.length==1&&uc(t[0])?Sr(t[0],$r(Va())):Sr(zi(t,1),$r(Va()));var r=t.length;return bo((function(n){var i=-1,o=Nt(n.length,r);while(++i<o){n[i]=t[i].call(this,n[i])}return mr(e,this,n)}))}));var Vl=bo((function(e,t){var n=ln(t,Na(Vl));return Fa(e,L,r,t,n)}));var Zl=bo((function(e,t){var n=ln(t,Na(Zl));return Fa(e,x,r,t,n)}));var Gl=Ma((function(e,t){return Fa(e,S,r,r,r,t)}));function $l(e,t){if(typeof e!="function"){throw new ot(a)}t=t===r?t:Xc(t);return bo(e,t)}function Xl(e,t){if(typeof e!="function"){throw new ot(a)}t=t==null?0:Ht(Xc(t),0);return bo((function(r){var n=r[t],i=Go(r,0,t);if(n){Er(i,n)}return mr(e,this,i)}))}function Yl(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new ot(a)}if(_c(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return Il(e,t,{leading:n,maxWait:t,trailing:i})}function ql(e){return Ol(e,1)}function Kl(e,t){return Vl(No(t),e)}function Jl(){if(!arguments.length){return[]}var e=arguments[0];return uc(e)?e:[e]}function Ql(e){return mi(e,d)}function ec(e,t){t=typeof t=="function"?t:r;return mi(e,d,t)}function tc(e){return mi(e,f|d)}function rc(e,t){t=typeof t=="function"?t:r;return mi(e,f|d,t)}function nc(e,t){return t==null||wi(e,t,xf(t))}function ic(e,t){return e===t||e!==e&&t!==t}var oc=Ea(Ti);var ac=Ea((function(e,t){return e>=t}));var sc=Vi(function(){return arguments}())?Vi:function(e){return Sc(e)&&ft.call(e,"callee")&&!_t.call(e,"callee")};var uc=y.isArray;var lc=fr?$r(fr):Zi;function cc(e){return e!=null&&xc(e.length)&&!bc(e)}function fc(e){return Sc(e)&&cc(e)}function vc(e){return e===true||e===false||Sc(e)&&Ii(e)==Z}var dc=It||Yv;var hc=vr?$r(vr):Gi;function pc(e){return Sc(e)&&e.nodeType===1&&!Dc(e)}function gc(e){if(e==null){return true}if(cc(e)&&(uc(e)||typeof e=="string"||typeof e.splice=="function"||dc(e)||Hc(e)||sc(e))){return!e.length}var t=Ka(e);if(t==K||t==ie){return!e.size}if(ds(e)){return!ro(e).length}for(var r in e){if(ft.call(e,r)){return false}}return true}function mc(e,t){return $i(e,t)}function Cc(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?$i(e,t,r,n):!!i}function wc(e){if(!Sc(e)){return false}var t=Ii(e);return t==X||t==$||typeof e.message=="string"&&typeof e.name=="string"&&!Dc(e)}function yc(e){return typeof e=="number"&&Tt(e)}function bc(e){if(!_c(e)){return false}var t=Ii(e);return t==Y||t==q||t==V||t==re}function Lc(e){return typeof e=="number"&&e==Xc(e)}function xc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=A}function _c(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Sc(e){return e!=null&&typeof e=="object"}var Ec=dr?$r(dr):Yi;function kc(e,t){return e===t||qi(e,t,Ga(t))}function zc(e,t,n){n=typeof n=="function"?n:r;return qi(e,t,Ga(t),n)}function Rc(e){return Pc(e)&&e!=+e}function Oc(e){if(vs(e)){throw new We(o)}return Ki(e)}function Fc(e){return e===null}function jc(e){return e==null}function Pc(e){return typeof e=="number"||Sc(e)&&Ii(e)==J}function Dc(e){if(!Sc(e)||Ii(e)!=ee){return false}var t=Lt(e);if(t===null){return true}var r=ft.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ct.call(r)==pt}var Ac=hr?$r(hr):Ji;function Ic(e){return Lc(e)&&e>=-A&&e<=A}var Tc=pr?$r(pr):Qi;function Mc(e){return typeof e=="string"||!uc(e)&&Sc(e)&&Ii(e)==oe}function Bc(e){return typeof e=="symbol"||Sc(e)&&Ii(e)==ae}var Hc=gr?$r(gr):eo;function Wc(e){return e===r}function Uc(e){return Sc(e)&&Ka(e)==ue}function Nc(e){return Sc(e)&&Ii(e)==le}var Vc=Ea(io);var Zc=Ea((function(e,t){return e<=t}));function Gc(e){if(!e){return[]}if(cc(e)){return Mc(e)?pn(e):ia(e)}if(kt&&e[kt]){return an(e[kt]())}var t=Ka(e),r=t==K?sn:t==ie?cn:Uf;return r(e)}function $c(e){if(!e){return e===0?e:0}e=qc(e);if(e===D||e===-D){var t=e<0?-1:1;return t*I}return e===e?e:0}function Xc(e){var t=$c(e),r=t%1;return t===t?r?t-r:t:0}function Yc(e){return e?gi(Xc(e),0,M):0}function qc(e){if(typeof e=="number"){return e}if(Bc(e)){return T}if(_c(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_c(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=Gr(e);var r=$e.test(e);return r||Ye.test(e)?rr(e.slice(2),r?2:8):Ge.test(e)?T:+e}function Kc(e){return oa(e,_f(e))}function Jc(e){return e?gi(Xc(e),-A,A):e===0?e:0}function Qc(e){return e==null?"":Do(e)}var ef=la((function(e,t){if(ds(t)||cc(t)){oa(t,xf(t),e);return}for(var r in t){if(ft.call(t,r)){li(e,r,t[r])}}}));var tf=la((function(e,t){oa(t,_f(t),e)}));var rf=la((function(e,t,r,n){oa(t,_f(t),e,n)}));var nf=la((function(e,t,r,n){oa(t,xf(t),e,n)}));var of=Ma(pi);function af(e,t){var r=_n(e);return t==null?r:vi(r,t)}var sf=bo((function(e,t){e=rt(e);var n=-1;var i=t.length;var o=i>2?t[2]:r;if(o&&ss(t[0],t[1],o)){i=1}while(++n<i){var a=t[n];var s=_f(a);var u=-1;var l=s.length;while(++u<l){var c=s[u];var f=e[c];if(f===r||ic(f,ut[c])&&!ft.call(e,c)){e[c]=a[c]}}}return e}));var uf=bo((function(e){e.push(r,Pa);return mr(zf,r,e)}));function lf(e,t){return Pr(e,Va(t,3),Fi)}function cf(e,t){return Pr(e,Va(t,3),ji)}function ff(e,t){return e==null?e:Ri(e,Va(t,3),_f)}function vf(e,t){return e==null?e:Oi(e,Va(t,3),_f)}function df(e,t){return e&&Fi(e,Va(t,3))}function hf(e,t){return e&&ji(e,Va(t,3))}function pf(e){return e==null?[]:Pi(e,xf(e))}function gf(e){return e==null?[]:Pi(e,_f(e))}function mf(e,t,n){var i=e==null?r:Di(e,t);return i===r?n:i}function Cf(e,t){return e!=null&&es(e,t,Mi)}function wf(e,t){return e!=null&&es(e,t,Bi)}var yf=ya((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}e[t]=r}),kv(Fv));var bf=ya((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}if(ft.call(e,t)){e[t].push(r)}else{e[t]=[r]}}),Va);var Lf=bo(Ni);function xf(e){return cc(e)?ii(e):ro(e)}function _f(e){return cc(e)?ii(e,true):no(e)}function Sf(e,t){var r={};t=Va(t,3);Fi(e,(function(e,n,i){hi(r,t(e,n,i),e)}));return r}function Ef(e,t){var r={};t=Va(t,3);Fi(e,(function(e,n,i){hi(r,n,t(e,n,i))}));return r}var kf=la((function(e,t,r){uo(e,t,r)}));var zf=la((function(e,t,r,n){uo(e,t,r,n)}));var Rf=Ma((function(e,t){var r={};if(e==null){return r}var n=false;t=Sr(t,(function(t){t=Vo(t,e);n||(n=t.length>1);return t}));oa(e,Ha(e),r);if(n){r=mi(r,f|v|d,Da)}var i=t.length;while(i--){Io(r,t[i])}return r}));function Of(e,t){return jf(e,Wl(Va(t)))}var Ff=Ma((function(e,t){return e==null?{}:vo(e,t)}));function jf(e,t){if(e==null){return{}}var r=Sr(Ha(e),(function(e){return[e]}));t=Va(t);return ho(e,r,(function(e,r){return t(e,r[0])}))}function Pf(e,t,n){t=Vo(t,e);var i=-1,o=t.length;if(!o){o=1;e=r}while(++i<o){var a=e==null?r:e[Fs(t[i])];if(a===r){i=o;a=n}e=bc(a)?a.call(e):a}return e}function Df(e,t,r){return e==null?e:_o(e,t,r)}function Af(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:_o(e,t,n,i)}var If=Oa(xf);var Tf=Oa(_f);function Mf(e,t,r){var n=uc(e),i=n||dc(e)||Hc(e);t=Va(t,4);if(r==null){var o=e&&e.constructor;if(i){r=n?new o:[]}else if(_c(e)){r=bc(o)?_n(Lt(e)):{}}else{r={}}}(i?wr:Fi)(e,(function(e,n,i){return t(r,e,n,i)}));return r}function Bf(e,t){return e==null?true:Io(e,t)}function Hf(e,t,r){return e==null?e:To(e,t,No(r))}function Wf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:To(e,t,No(n),i)}function Uf(e){return e==null?[]:Xr(e,xf(e))}function Nf(e){return e==null?[]:Xr(e,_f(e))}function Vf(e,t,n){if(n===r){n=t;t=r}if(n!==r){n=qc(n);n=n===n?n:0}if(t!==r){t=qc(t);t=t===t?t:0}return gi(qc(e),t,n)}function Zf(e,t,n){t=$c(t);if(n===r){n=t;t=0}else{n=$c(n)}e=qc(e);return Hi(e,t,n)}function Gf(e,t,n){if(n&&typeof n!="boolean"&&ss(e,t,n)){t=n=r}if(n===r){if(typeof t=="boolean"){n=t;t=r}else if(typeof e=="boolean"){n=e;e=r}}if(e===r&&t===r){e=0;t=1}else{e=$c(e);if(t===r){t=e;e=0}else{t=$c(t)}}if(e>t){var i=e;e=t;t=i}if(n||e%1||t%1){var o=Gt();return Nt(e+o*(t-e+tr("1e-"+((o+"").length-1))),t)}return Co(e,t)}var $f=ha((function(e,t,r){t=t.toLowerCase();return e+(r?Xf(t):t)}));function Xf(e){return bv(Qc(e).toLowerCase())}function Yf(e){e=Qc(e);return e&&e.replace(Ke,Qr).replace(Ut,"")}function qf(e,t,n){e=Qc(e);t=Do(t);var i=e.length;n=n===r?i:gi(Xc(n),0,i);var o=n;n-=t.length;return n>=0&&e.slice(n,o)==t}function Kf(e){e=Qc(e);return e&&ke.test(e)?e.replace(Se,en):e}function Jf(e){e=Qc(e);return e&&Ae.test(e)?e.replace(De,"\\$&"):e}var Qf=ha((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));var ev=ha((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));var tv=da("toLowerCase");function rv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;if(!t||n>=t){return e}var i=(t-n)/2;return xa(Dt(i),r)+e+xa(Pt(i),r)}function nv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;return t&&n<t?e+xa(t-n,r):e}function iv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;return t&&n<t?xa(t-n,r)+e:e}function ov(e,t,r){if(r||t==null){t=0}else if(t){t=+t}return Zt(Qc(e).replace(Ie,""),t||0)}function av(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Xc(t)}return yo(Qc(e),t)}function sv(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var uv=ha((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));function lv(e,t,n){if(n&&typeof n!="number"&&ss(e,t,n)){t=n=r}n=n===r?M:n>>>0;if(!n){return[]}e=Qc(e);if(e&&(typeof t=="string"||t!=null&&!Ac(t))){t=Do(t);if(!t&&nn(e)){return Go(pn(e),0,n)}}return e.split(t,n)}var cv=ha((function(e,t,r){return e+(r?" ":"")+bv(t)}));function fv(e,t,r){e=Qc(e);r=r==null?0:gi(Xc(r),0,e.length);t=Do(t);return e.slice(r,r+t.length)==t}function vv(e,t,n){var i=xn.templateSettings;if(n&&ss(e,t,n)){t=r}e=Qc(e);t=rf({},t,i,ja);var o=rf({},t.imports,i.imports,ja),a=xf(o),u=Xr(o,a);var l,c,f=0,v=t.interpolate||Je,d="__p += '";var h=nt((t.escape||Je).source+"|"+v.source+"|"+(v===Oe?Ve:Je).source+"|"+(t.evaluate||Je).source+"|$","g");var p="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(h,(function(t,r,n,i,o,a){n||(n=i);d+=e.slice(f,a).replace(Qe,tn);if(r){l=true;d+="' +\n__e("+r+") +\n'"}if(o){c=true;d+="';\n"+o+";\n__p += '"}if(n){d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=a+t.length;return t}));d+="';\n";var g=ft.call(t,"variable")&&t.variable;if(!g){d="with (obj) {\n"+d+"\n}\n"}else if(Ue.test(g)){throw new We(s)}d=(c?d.replace(be,""):d).replace(Le,"$1").replace(xe,"$1;");d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=xv((function(){return et(a,p+"return "+d).apply(r,u)}));m.source=d;if(wc(m)){throw m}return m}function dv(e){return Qc(e).toLowerCase()}function hv(e){return Qc(e).toUpperCase()}function pv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return Gr(e)}if(!e||!(t=Do(t))){return e}var i=pn(e),o=pn(t),a=qr(i,o),s=Kr(i,o)+1;return Go(i,a,s).join("")}function gv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.slice(0,gn(e)+1)}if(!e||!(t=Do(t))){return e}var i=pn(e),o=Kr(i,pn(t))+1;return Go(i,0,o).join("")}function mv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.replace(Ie,"")}if(!e||!(t=Do(t))){return e}var i=pn(e),o=qr(i,pn(t));return Go(i,o).join("")}function Cv(e,t){var n=k,i=z;if(_c(t)){var o="separator"in t?t.separator:o;n="length"in t?Xc(t.length):n;i="omission"in t?Do(t.omission):i}e=Qc(e);var a=e.length;if(nn(e)){var s=pn(e);a=s.length}if(n>=a){return e}var u=n-hn(i);if(u<1){return i}var l=s?Go(s,0,u).join(""):e.slice(0,u);if(o===r){return l+i}if(s){u+=l.length-u}if(Ac(o)){if(e.slice(u).search(o)){var c,f=l;if(!o.global){o=nt(o.source,Qc(Ze.exec(o))+"g")}o.lastIndex=0;while(c=o.exec(f)){var v=c.index}l=l.slice(0,v===r?u:v)}}else if(e.indexOf(Do(o),u)!=u){var d=l.lastIndexOf(o);if(d>-1){l=l.slice(0,d)}}return l+i}function wv(e){e=Qc(e);return e&&Ee.test(e)?e.replace(_e,mn):e}var yv=ha((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}));var bv=da("toUpperCase");function Lv(e,t,n){e=Qc(e);t=n?r:t;if(t===r){return on(e)?yn(e):jr(e)}return e.match(t)||[]}var xv=bo((function(e,t){try{return mr(e,r,t)}catch(e){return wc(e)?e:new We(e)}}));var _v=Ma((function(e,t){wr(t,(function(t){t=Fs(t);hi(e,t,jl(e[t],e))}));return e}));function Sv(e){var t=e==null?0:e.length,r=Va();e=!t?[]:Sr(e,(function(e){if(typeof e[1]!="function"){throw new ot(a)}return[r(e[0]),e[1]]}));return bo((function(r){var n=-1;while(++n<t){var i=e[n];if(mr(i[0],this,r)){return mr(i[1],this,r)}}}))}function Ev(e){return Ci(mi(e,f))}function kv(e){return function(){return e}}function zv(e,t){return e==null||e!==e?t:e}var Rv=Ca();var Ov=Ca(true);function Fv(e){return e}function jv(e){return to(typeof e=="function"?e:mi(e,f))}function Pv(e){return ao(mi(e,f))}function Dv(e,t){return so(e,mi(t,f))}var Av=bo((function(e,t){return function(r){return Ni(r,e,t)}}));var Iv=bo((function(e,t){return function(r){return Ni(e,r,t)}}));function Tv(e,t,r){var n=xf(t),i=Pi(t,n);if(r==null&&!(_c(t)&&(i.length||!n.length))){r=t;t=e;e=this;i=Pi(t,xf(t))}var o=!(_c(r)&&"chain"in r)||!!r.chain,a=bc(e);wr(i,(function(r){var n=t[r];e[r]=n;if(a){e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=ia(this.__actions__);i.push({func:n,args:arguments,thisArg:e});r.__chain__=t;return r}return n.apply(e,Er([this.value()],arguments))}}}));return e}function Mv(){if(or._===this){or._=gt}return this}function Bv(){}function Hv(e){e=Xc(e);return bo((function(t){return co(t,e)}))}var Wv=La(Sr);var Uv=La(br);var Nv=La(Rr);function Vv(e){return us(e)?Br(Fs(e)):po(e)}function Zv(e){return function(t){return e==null?r:Di(e,t)}}var Gv=Sa();var $v=Sa(true);function Xv(){return[]}function Yv(){return false}function qv(){return{}}function Kv(){return""}function Jv(){return true}function Qv(e,t){e=Xc(e);if(e<1||e>A){return[]}var r=M,n=Nt(e,M);t=Va(t);e-=M;var i=Vr(n,t);while(++r<e){t(r)}return i}function ed(e){if(uc(e)){return Sr(e,Fs)}return Bc(e)?[e]:ia(Os(Qc(e)))}function td(e){var t=++vt;return Qc(e)+t}var rd=ba((function(e,t){return e+t}),0);var nd=za("ceil");var id=ba((function(e,t){return e/t}),1);var od=za("floor");function ad(e){return e&&e.length?Si(e,Fv,Ti):r}function sd(e,t){return e&&e.length?Si(e,Va(t,2),Ti):r}function ud(e){return Mr(e,Fv)}function ld(e,t){return Mr(e,Va(t,2))}function cd(e){return e&&e.length?Si(e,Fv,io):r}function fd(e,t){return e&&e.length?Si(e,Va(t,2),io):r}var vd=ba((function(e,t){return e*t}),1);var dd=za("round");var hd=ba((function(e,t){return e-t}),0);function pd(e){return e&&e.length?Nr(e,Fv):0}function gd(e,t){return e&&e.length?Nr(e,Va(t,2)):0}xn.after=Rl;xn.ary=Ol;xn.assign=ef;xn.assignIn=tf;xn.assignInWith=rf;xn.assignWith=nf;xn.at=of;xn.before=Fl;xn.bind=jl;xn.bindAll=_v;xn.bindKey=Pl;xn.castArray=Jl;xn.chain=Zu;xn.chunk=As;xn.compact=Is;xn.concat=Ts;xn.cond=Sv;xn.conforms=Ev;xn.constant=kv;xn.countBy=rl;xn.create=af;xn.curry=Dl;xn.curryRight=Al;xn.debounce=Il;xn.defaults=sf;xn.defaultsDeep=uf;xn.defer=Tl;xn.delay=Ml;xn.difference=Ms;xn.differenceBy=Bs;xn.differenceWith=Hs;xn.drop=Ws;xn.dropRight=Us;xn.dropRightWhile=Ns;xn.dropWhile=Vs;xn.fill=Zs;xn.filter=il;xn.flatMap=sl;xn.flatMapDeep=ul;xn.flatMapDepth=ll;xn.flatten=Xs;xn.flattenDeep=Ys;xn.flattenDepth=qs;xn.flip=Bl;xn.flow=Rv;xn.flowRight=Ov;xn.fromPairs=Ks;xn.functions=pf;xn.functionsIn=gf;xn.groupBy=vl;xn.initial=eu;xn.intersection=tu;xn.intersectionBy=ru;xn.intersectionWith=nu;xn.invert=yf;xn.invertBy=bf;xn.invokeMap=hl;xn.iteratee=jv;xn.keyBy=pl;xn.keys=xf;xn.keysIn=_f;xn.map=gl;xn.mapKeys=Sf;xn.mapValues=Ef;xn.matches=Pv;xn.matchesProperty=Dv;xn.memoize=Hl;xn.merge=kf;xn.mergeWith=zf;xn.method=Av;xn.methodOf=Iv;xn.mixin=Tv;xn.negate=Wl;xn.nthArg=Hv;xn.omit=Rf;xn.omitBy=Of;xn.once=Ul;xn.orderBy=ml;xn.over=Wv;xn.overArgs=Nl;xn.overEvery=Uv;xn.overSome=Nv;xn.partial=Vl;xn.partialRight=Zl;xn.partition=Cl;xn.pick=Ff;xn.pickBy=jf;xn.property=Vv;xn.propertyOf=Zv;xn.pull=uu;xn.pullAll=lu;xn.pullAllBy=cu;xn.pullAllWith=fu;xn.pullAt=vu;xn.range=Gv;xn.rangeRight=$v;xn.rearg=Gl;xn.reject=bl;xn.remove=du;xn.rest=$l;xn.reverse=hu;xn.sampleSize=xl;xn.set=Df;xn.setWith=Af;xn.shuffle=_l;xn.slice=pu;xn.sortBy=kl;xn.sortedUniq=Lu;xn.sortedUniqBy=xu;xn.split=lv;xn.spread=Xl;xn.tail=_u;xn.take=Su;xn.takeRight=Eu;xn.takeRightWhile=ku;xn.takeWhile=zu;xn.tap=Gu;xn.throttle=Yl;xn.thru=$u;xn.toArray=Gc;xn.toPairs=If;xn.toPairsIn=Tf;xn.toPath=ed;xn.toPlainObject=Kc;xn.transform=Mf;xn.unary=ql;xn.union=Ru;xn.unionBy=Ou;xn.unionWith=Fu;xn.uniq=ju;xn.uniqBy=Pu;xn.uniqWith=Du;xn.unset=Bf;xn.unzip=Au;xn.unzipWith=Iu;xn.update=Hf;xn.updateWith=Wf;xn.values=Uf;xn.valuesIn=Nf;xn.without=Tu;xn.words=Lv;xn.wrap=Kl;xn.xor=Mu;xn.xorBy=Bu;xn.xorWith=Hu;xn.zip=Wu;xn.zipObject=Uu;xn.zipObjectDeep=Nu;xn.zipWith=Vu;xn.entries=If;xn.entriesIn=Tf;xn.extend=tf;xn.extendWith=rf;Tv(xn,xn);xn.add=rd;xn.attempt=xv;xn.camelCase=$f;xn.capitalize=Xf;xn.ceil=nd;xn.clamp=Vf;xn.clone=Ql;xn.cloneDeep=tc;xn.cloneDeepWith=rc;xn.cloneWith=ec;xn.conformsTo=nc;xn.deburr=Yf;xn.defaultTo=zv;xn.divide=id;xn.endsWith=qf;xn.eq=ic;xn.escape=Kf;xn.escapeRegExp=Jf;xn.every=nl;xn.find=ol;xn.findIndex=Gs;xn.findKey=lf;xn.findLast=al;xn.findLastIndex=$s;xn.findLastKey=cf;xn.floor=od;xn.forEach=cl;xn.forEachRight=fl;xn.forIn=ff;xn.forInRight=vf;xn.forOwn=df;xn.forOwnRight=hf;xn.get=mf;xn.gt=oc;xn.gte=ac;xn.has=Cf;xn.hasIn=wf;xn.head=Js;xn.identity=Fv;xn.includes=dl;xn.indexOf=Qs;xn.inRange=Zf;xn.invoke=Lf;xn.isArguments=sc;xn.isArray=uc;xn.isArrayBuffer=lc;xn.isArrayLike=cc;xn.isArrayLikeObject=fc;xn.isBoolean=vc;xn.isBuffer=dc;xn.isDate=hc;xn.isElement=pc;xn.isEmpty=gc;xn.isEqual=mc;xn.isEqualWith=Cc;xn.isError=wc;xn.isFinite=yc;xn.isFunction=bc;xn.isInteger=Lc;xn.isLength=xc;xn.isMap=Ec;xn.isMatch=kc;xn.isMatchWith=zc;xn.isNaN=Rc;xn.isNative=Oc;xn.isNil=jc;xn.isNull=Fc;xn.isNumber=Pc;xn.isObject=_c;xn.isObjectLike=Sc;xn.isPlainObject=Dc;xn.isRegExp=Ac;xn.isSafeInteger=Ic;xn.isSet=Tc;xn.isString=Mc;xn.isSymbol=Bc;xn.isTypedArray=Hc;xn.isUndefined=Wc;xn.isWeakMap=Uc;xn.isWeakSet=Nc;xn.join=iu;xn.kebabCase=Qf;xn.last=ou;xn.lastIndexOf=au;xn.lowerCase=ev;xn.lowerFirst=tv;xn.lt=Vc;xn.lte=Zc;xn.max=ad;xn.maxBy=sd;xn.mean=ud;xn.meanBy=ld;xn.min=cd;xn.minBy=fd;xn.stubArray=Xv;xn.stubFalse=Yv;xn.stubObject=qv;xn.stubString=Kv;xn.stubTrue=Jv;xn.multiply=vd;xn.nth=su;xn.noConflict=Mv;xn.noop=Bv;xn.now=zl;xn.pad=rv;xn.padEnd=nv;xn.padStart=iv;xn.parseInt=ov;xn.random=Gf;xn.reduce=wl;xn.reduceRight=yl;xn.repeat=av;xn.replace=sv;xn.result=Pf;xn.round=dd;xn.runInContext=e;xn.sample=Ll;xn.size=Sl;xn.snakeCase=uv;xn.some=El;xn.sortedIndex=gu;xn.sortedIndexBy=mu;xn.sortedIndexOf=Cu;xn.sortedLastIndex=wu;xn.sortedLastIndexBy=yu;xn.sortedLastIndexOf=bu;xn.startCase=cv;xn.startsWith=fv;xn.subtract=hd;xn.sum=pd;xn.sumBy=gd;xn.template=vv;xn.times=Qv;xn.toFinite=$c;xn.toInteger=Xc;xn.toLength=Yc;xn.toLower=dv;xn.toNumber=qc;xn.toSafeInteger=Jc;xn.toString=Qc;xn.toUpper=hv;xn.trim=pv;xn.trimEnd=gv;xn.trimStart=mv;xn.truncate=Cv;xn.unescape=wv;xn.uniqueId=td;xn.upperCase=yv;xn.upperFirst=bv;xn.each=cl;xn.eachRight=fl;xn.first=Js;Tv(xn,function(){var e={};Fi(xn,(function(t,r){if(!ft.call(xn.prototype,r)){e[r]=t}}));return e}(),{chain:false});xn.VERSION=n;wr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xn[e].placeholder=xn}));wr(["drop","take"],(function(e,t){kn.prototype[e]=function(n){n=n===r?1:Ht(Xc(n),0);var i=this.__filtered__&&!t?new kn(this):this.clone();if(i.__filtered__){i.__takeCount__=Nt(n,i.__takeCount__)}else{i.__views__.push({size:Nt(n,M),type:e+(i.__dir__<0?"Right":"")})}return i};kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}));wr(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=r==F||r==P;kn.prototype[e]=function(e){var t=this.clone();t.__iteratees__.push({iteratee:Va(e,3),type:r});t.__filtered__=t.__filtered__||n;return t}}));wr(["head","last"],(function(e,t){var r="take"+(t?"Right":"");kn.prototype[e]=function(){return this[r](1).value()[0]}}));wr(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");kn.prototype[e]=function(){return this.__filtered__?new kn(this):this[r](1)}}));kn.prototype.compact=function(){return this.filter(Fv)};kn.prototype.find=function(e){return this.filter(e).head()};kn.prototype.findLast=function(e){return this.reverse().find(e)};kn.prototype.invokeMap=bo((function(e,t){if(typeof e=="function"){return new kn(this)}return this.map((function(r){return Ni(r,e,t)}))}));kn.prototype.reject=function(e){return this.filter(Wl(Va(e)))};kn.prototype.slice=function(e,t){e=Xc(e);var n=this;if(n.__filtered__&&(e>0||t<0)){return new kn(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==r){t=Xc(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};kn.prototype.toArray=function(){return this.take(M)};Fi(kn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=xn[i?"take"+(t=="last"?"Right":""):t],a=i||/^find/.test(t);if(!o){return}xn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof kn,l=s[0],c=u||uc(t);var f=function(e){var t=o.apply(xn,Er([e],s));return i&&v?t[0]:t};if(c&&n&&typeof l=="function"&&l.length!=1){u=c=false}var v=this.__chain__,d=!!this.__actions__.length,h=a&&!v,p=u&&!d;if(!a&&c){t=p?t:new kn(this);var g=e.apply(t,s);g.__actions__.push({func:$u,args:[f],thisArg:r});return new En(g,v)}if(h&&p){return e.apply(this,s)}g=this.thru(f);return h?i?g.value()[0]:g.value():g}}));wr(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);xn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(uc(i)?i:[],e)}return this[r]((function(r){return t.apply(uc(r)?r:[],e)}))}}));Fi(kn.prototype,(function(e,t){var r=xn[t];if(r){var n=r.name+"";if(!ft.call(lr,n)){lr[n]=[]}lr[n].push({name:t,func:r})}}));lr[wa(r,m).name]=[{name:"wrapper",func:r}];kn.prototype.clone=zn;kn.prototype.reverse=Rn;kn.prototype.value=On;xn.prototype.at=Xu;xn.prototype.chain=Yu;xn.prototype.commit=qu;xn.prototype.next=Ku;xn.prototype.plant=Qu;xn.prototype.reverse=el;xn.prototype.toJSON=xn.prototype.valueOf=xn.prototype.value=tl;xn.prototype.first=xn.prototype.head;if(kt){xn.prototype[kt]=Ju}return xn};var Ln=bn();if(sr){(sr.exports=Ln)._=Ln;ar._=Ln}else{or._=Ln}}).call(y)}));var yc=function(){function e(e,t){var r,n;this.sv=e;this.storesByType={};this.storesXToType={};this.storesYToType={};(r=this.sv.selectionStoreConnector)===null||r===void 0?void 0:r.beforeUpdate();this.columns=this.getViewportColumnData(t);(n=this.sv.scrollingService)===null||n===void 0?void 0:n.unregister()}e.prototype.onColumnResize=function(e,t,r){var n;(n=this.sv.dimensionProvider)===null||n===void 0?void 0:n.setDimensionSize(e,t.detail);var i=wc.reduce(t.detail||{},(function(e,t,n){var i=Wa(r,parseInt(n,10));if(i){e[i.prop]=Object.assign(Object.assign({},i),{size:t})}return e}),{});this.sv.resize(i)};e.prototype.getViewportColumnData=function(e){var t=this;var r=[];var n=0;Ga.forEach((function(i){var o=t.sv.columnProvider.stores[i].store;if(!o.get("items").length){return}var a={colType:i,position:{x:n,y:1},contentHeight:e,fixWidth:i!=="rgCol",uuid:"".concat(t.sv.uuid,"-").concat(n),viewports:t.sv.viewportProvider.stores,dimensions:t.sv.dimensionProvider.stores,rowStores:t.sv.dataProvider.stores,colStore:o,onHeaderresize:function(e){return t.onColumnResize(i,e,o)}};if(i==="rgCol"){a.onResizeViewport=function(e){var r;return(r=t.sv.viewportProvider)===null||r===void 0?void 0:r.setViewport(e.detail.dimension,{virtualSize:e.detail.size})}}var s=t.gatherColumnData(a);var u=t.registerCol(s.position.x,i);var l=t.dataViewPort(a).reduce((function(e,r){var n=t.registerSegment(r.position);n.setLastCell(r.lastCell);var i=t.registerRow(r.position.y,r.type);var o=Object.assign(Object.assign({},r),{rowSelectionStore:i,segmentSelectionStore:n.store,ref:function(e){return t.sv.selectionStoreConnector.registerSection(e)},onSetRange:function(e){return n.setRangeArea(e.detail)},onSetTempRange:function(e){return n.setTempArea(e.detail)},onFocusCell:function(e){n.clearFocus();t.sv.selectionStoreConnector.focus(n,e.detail)}});e.push(o);return e}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:u,dataPorts:l}));n++}));return r};e.prototype.registerSegment=function(e){return this.sv.selectionStoreConnector.register(e)};e.prototype.registerRow=function(e,t){this.storesByType[t]=e;this.storesYToType[e]=t;return this.sv.selectionStoreConnector.registerRow(e).store};e.prototype.registerCol=function(e,t){this.storesByType[t]=e;this.storesXToType[e]=t;return this.sv.selectionStoreConnector.registerColumn(e).store};e.prototype.gatherColumnData=function(e){var t;var r=e.uuid;var n=e.dimensions[e.colType].store.get("realSize");var i=(t={contentWidth:n,class:e.colType},t["".concat(ll)]=e.uuid,t.contentHeight=e.contentHeight,t.key=e.colType,t.onResizeViewport=e.onResizeViewport,t);if(e.fixWidth){i.style={minWidth:"".concat(n,"px")}}var o={parent:r,colData:Ha(e.colStore),dimensionCol:e.dimensions[e.colType].store,groups:e.colStore.get("groups"),groupingDepth:e.colStore.get("groupingDepth"),onHeaderresize:e.onHeaderresize};return{prop:i,position:e.position,headerProp:o,parent:r,viewportCol:e.viewports[e.colType].store}};e.prototype.dataViewPort=function(e){var t=this;var r={rowPinStart:hc,rgRow:gc,rowPinEnd:pc};var n=0;return Za.reduce((function(i,o){var a=e.viewports[o].store.get("realCount")||o==="rgRow";var s=Object.assign(Object.assign({},e),{position:Object.assign(Object.assign({},e.position),{y:a?n:vc})});i.push(t.dataPartition(s,o,r[o],o!=="rgRow"));if(a){n++}return i}),[])};e.prototype.dataPartition=function(e,t,r,n){return{colData:e.colStore,viewportCol:e.viewports[e.colType].store,viewportRow:e.viewports[t].store,lastCell:Cc(e,t),slot:r,type:t,canDrag:!n,position:e.position,uuid:"".concat(e.uuid,"-").concat(e.position.x,"-").concat(e.position.y),dataStore:e.rowStores[t].store,dimensionCol:e.dimensions[e.colType].store,dimensionRow:e.dimensions[t].store,style:n?{height:"".concat(e.dimensions[t].store.get("realSize"),"px")}:undefined}};e.prototype.scrollToCell=function(e){for(var t in e){var r=e[t];this.sv.scrollingService.onScroll({dimension:t==="x"?"rgCol":"rgRow",coordinate:r})}};e.prototype.clearFocused=function(){this.sv.selectionStoreConnector.clearAll()};e.prototype.clearEdit=function(){this.sv.selectionStoreConnector.setEdit(false)};e.prototype.getFocused=function(){var e=this.sv.selectionStoreConnector.focusedStore;if(!e){return null}var t=this.storesXToType[e.position.x];var r=this.sv.columnProvider.getColumn(e.cell.x,t);var n=this.storesYToType[e.position.y];var i=this.sv.dataProvider.getModel(e.cell.y,n);return{column:r,model:i,cell:e.cell,colType:t,rowType:n}};e.prototype.getSelectedRange=function(){return this.sv.selectionStoreConnector.selectedRange};e.prototype.setEdit=function(e,t,r,n){var i;var o=this.storesByType;var a={x:o[r],y:o[n]};(i=this.sv.selectionStoreConnector)===null||i===void 0?void 0:i.setEditByCell(a,{x:t,y:e})};return e}();var bc=function(e){var t=e.resize,r=e.editors,n=e.rowClass,o=e.readonly,a=e.range,s=e.columns,u=e.useClipboard,l=e.columnFilter,c=e.registerElement,f=e.onEdit,v=e.onCancelEdit,d=e.onScroll;var h=[];var p=function(e){var s=[i("revogr-header",Object.assign({viewportCol:e.viewportCol},e.headerProp,{selectionStore:e.columnSelectionStore,slot:hc,columnFilter:l,canResize:t}))];e.dataPorts.forEach((function(t,l){var c;var d=e.prop.key+(l+1);var h=i("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:o,range:a,useClipboard:u,onCancelEdit:function(){return v()},onSetEdit:function(e){var t=e.detail;return f(t)}}),i("revogr-data",Object.assign({},t,(c={},c[ll]=t.uuid,c),{key:d,readonly:o,range:a,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:mc})),i("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),i("revogr-focus",{colData:t.colData,dataStore:t.dataStore,selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));s.push(h)}));h.push(i("revogr-viewport-scroll",Object.assign({},e.prop,{ref:function(t){return c(t,e.prop.key)},onScrollViewport:function(t){return d(t.detail,e.prop.key)}}),s))};for(var g=0,m=s;g<m.length;g++){var C=m[g];p(C)}return h};var Lc=function(){function e(e){this.setViewport=e;this.elements={}}e.prototype.onScroll=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,a,l;return __generator(this,(function(c){switch(c.label){case 0:for(n in this.elements){if(this.isPinnedColumn(t)&&e.dimension==="rgCol"){if(n===t||!e.delta){continue}for(i=0,o=this.elements[n];i<o.length;i++){a=o[i];a.changeScroll&&(r=a.changeScroll(e))}}else if(e.dimension==="rgCol"&&n==="headerRow"){continue}else{for(s=0,u=this.elements[n];s<u.length;s++){a=u[s];a.setScroll(e)}}}l=e;if(!r)return[3,2];return[4,r];case 1:l=c.sent();c.label=2;case 2:this.setViewport(l);return[2]}}))}))};e.prototype.isPinnedColumn=function(e){return["colPinStart","colPinEnd"].indexOf(e)>-1};e.prototype.registerElements=function(e){this.elements=e};e.prototype.registerElement=function(e,t){if(!this.elements[t]){this.elements[t]=[]}if(e){this.elements[t].push(e)}else if(this.elements[t]){delete this.elements[t]}};e.prototype.unregister=function(){delete this.elements;this.elements={}};return e}();var xc=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.dimensionProvider=r;n.stretchedColumn=null;n.scrollSize=ms(document);var i=function(e){var t=e.detail.columns;return n.applyStretch(t)};n.addEventListener("beforecolumnapplied",i);return n}t.prototype.setScroll=function(e){var t=e.type,r=e.hasScroll;var n;if(t==="rgRow"&&this.stretchedColumn&&((n=this.stretchedColumn)===null||n===void 0?void 0:n.initialSize)===this.stretchedColumn.size){if(r){this.stretchedColumn.size-=this.scrollSize;this.apply();this.dropChanges()}}};t.prototype.activateChanges=function(){var e=this;var t=function(t){var r=t.detail;return e.setScroll(r)};this.addEventListener("scrollchange",t)};t.prototype.dropChanges=function(){this.stretchedColumn=null;this.removeEventListener("scrollchange")};t.prototype.apply=function(){var e;if(!this.stretchedColumn){return}var t="rgCol";this.dimensionProvider.setDimensionSize(t,(e={},e[this.stretchedColumn.index]=this.stretchedColumn.size,e))};t.prototype.applyStretch=function(e){var t=this;this.dropChanges();var r=this.revogrid.clientWidth-1;wc.each(e,(function(e,n){var i=t.dimensionProvider.stores[n].store.get("realSize");r-=i}));if(r>0){var n=e.rgCol.length-1;var i=e.rgCol[n];var o=(i===null||i===void 0?void 0:i.size)||this.revogrid.colSize||0;var a=r+o-1;if(i&&!i.autoSize&&o<a){this.stretchedColumn={initialSize:a,index:n,size:a};this.apply();this.activateChanges()}}};return t}(Ja);function _c(e){return!!e.applyStretch}var Sc="column-drag-start";var Ec=function(){function e(){this.offset=0}e.prototype.renderAutoscroll=function(e,t){if(!t){return}this.autoscrollEl=document.createElement("div");this.autoscrollEl.classList.add("drag-auto-scroll-y");t.appendChild(this.autoscrollEl)};e.prototype.autoscroll=function(e,t,r){if(r===void 0){r="translateX"}if(!this.autoscrollEl){return}var n=10;var i=Math.min(e+n,t-3);this.autoscrollEl.style.transform="".concat(r,"(").concat(i,"px)");this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.start=function(e,t,r){var n=t.dataEl,i=t.gridRect,o=t.scrollEl,a=t.gridEl;if(r===void 0){r="left"}a.classList.add(Sc);var s=o.getBoundingClientRect();if(s){this.offset=s[r]-i[r]}this.renderAutoscroll(e,n)};e.prototype.stop=function(e){var t;e.classList.remove(Sc);if(this.element){this.element.hidden=true}this.offset=0;(t=this.autoscrollEl)===null||t===void 0?void 0:t.remove();this.autoscrollEl=undefined};e.prototype.showHandler=function(e,t,r){if(r===void 0){r="translateX"}if(!this.element){return}if(this.offset){e=Math.max(e,this.offset)}e=Math.min(e,t);this.element.style.transform="".concat(r,"(").concat(e,"px)");this.element.hidden=false};e.prototype.render=function(){var e=this;return i("div",{class:"drag-position-y",hidden:true,ref:function(t){return e.element=t}})};return e}();function kc(e,t,r){var n=new CustomEvent(t,{detail:r,cancelable:true,bubbles:true});e===null||e===void 0?void 0:e.dispatchEvent(n);return n}var zc="column-click";var Rc="column-mouse-move";var Oc="column-drag-end";var Fc="before-column-drag-end";var jc="column-drag-start";var Pc=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;n.moveFunc=b((function(e){return n.doMove(e)}),5);n.staticDragData=null;n.dragData=null;n.localSubscriptions={};n.orderUi=new Ec;t.registerVNode([n.orderUi.render()]);t.classList.add("column-draggable");n.localSubscriptions["mouseleave"]={target:document,callback:function(e){return n.onMouseOut(e)}};n.localSubscriptions["mouseup"]={target:document,callback:function(e){return n.onMouseUp(e)}};n.localSubscriptions["mousemove"]={target:document,callback:function(e){return n.move(e)}};n.addEventListener(zc,(function(e){var t=e.detail;return n.dragStart(t)}));return n}t.prototype.dragStart=function(e){var t=e.event,r=e.data;if(t.defaultPrevented){return}var n=kc(this.revogrid,jc,r).defaultPrevented;if(n){return}this.clearOrder();var i=this.localSubscriptions,o=i.mouseleave,a=i.mouseup,s=i.mousemove;o.target.addEventListener("mouseleave",o.callback);a.target.addEventListener("mouseup",a.callback);var u=t.target.closest("revogr-header");var l=t.target.closest("revogr-viewport-scroll");if(!u||!l){return}if(es(r)){return}var c=this.getDimension(r.pin||"rgCol");var f=this.revogrid.getBoundingClientRect();var v=u.getBoundingClientRect();var d=bs(c,Dc(t.x,f.left,v.left-f.left));this.staticDragData={startPos:t.x,startItem:d,data:r,dataEl:u,scrollEl:l,gridEl:this.revogrid,cols:c};this.dragData=this.getData(this.staticDragData);s.target.addEventListener("mousemove",s.callback);this.orderUi.start(t,Object.assign(Object.assign({},this.dragData),this.staticDragData))};t.prototype.doMove=function(e){if(!this.staticDragData){return}var t=this.dragData=this.getData(this.staticDragData);if(!t){return}var r=this.staticDragData.startPos;if(Math.abs(r-e.x)>10){var n=Dc(e.x,this.dragData.gridRect.left,this.dragData.scrollOffset);var i=bs(this.staticDragData.cols,n);this.orderUi.autoscroll(n,t.elRect.width);this.orderUi.showHandler(i.end+t.scrollOffset,t.gridRect.width)}};t.prototype.move=function(e){kc(this.revogrid,Rc,Object.assign({},e));this.moveFunc(e)};t.prototype.onMouseOut=function(e){this.clearOrder()};t.prototype.onMouseUp=function(e){if(this.dragData){var t=Dc(e.x,this.dragData.gridRect.left,this.dragData.scrollOffset);if(t<0){t=0}var r=bs(this.staticDragData.cols,t);var n=this.providers.column.stores[this.dragData.type].store;var i=__spreadArray([],n.get("items"),true);var o=kc(this.revogrid,Fc,Object.assign(Object.assign({},this.staticDragData),{startPosition:this.staticDragData.startItem,newPosition:r,newItem:n.get("source")[i[this.staticDragData.startItem.itemIndex]]})).defaultPrevented;if(!o){var a=i.splice(this.staticDragData.startItem.itemIndex,1);i.splice.apply(i,__spreadArray([r.itemIndex,0],a,false));n.set("items",i)}kc(this.revogrid,Oc,this.dragData)}this.clearOrder()};t.prototype.clearLocalSubscriptions=function(){Qo(this.localSubscriptions,(function(e,t){var r=e.target,n=e.callback;return r.removeEventListener(t,n)}))};t.prototype.clearOrder=function(){this.staticDragData=null;this.dragData=null;this.clearLocalSubscriptions();this.orderUi.stop(this.revogrid)};t.prototype.clearSubscriptions=function(){e.prototype.clearSubscriptions.call(this);this.clearLocalSubscriptions()};t.prototype.getData=function(e){var t=e.gridEl,r=e.dataEl,n=e.data;var i=t.getBoundingClientRect();var o=r.getBoundingClientRect();var a=o.left-i.left;return{elRect:o,gridRect:i,type:n.pin||"rgCol",scrollOffset:a}};t.prototype.getDimension=function(e){return this.providers.dimension.stores[e].getCurrentState()};return t}(Ja);function Dc(e,t,r){return e-t-r}var Ac=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revo-grid[theme=default]{font-size:12px}revo-grid[theme=default] revogr-header{text-align:center;line-height:30px;background-color:#f8f9fa}revo-grid[theme=default] revogr-header .group-rgRow{box-shadow:none}revo-grid[theme=default] revogr-header .header-rgRow,revo-grid[theme=default] revogr-header .group-rgRow{text-transform:uppercase;font-size:12px;color:#61656a}revo-grid[theme=default] revogr-header .header-rgRow{height:30px;box-shadow:0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell{box-shadow:-1px 0 0 0 #c0c0c0, -1px 0 0 0 #c0c0c0 inset, 0 -1px 0 0 #c0c0c0, 0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] .rowHeaders{background-color:#f8f9fa}revo-grid[theme=default] .rowHeaders revogr-data .rgCell{color:#61656a;box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] .rowHeaders revogr-header{box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart revogr-data .rgRow .rgCell:last-child{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinEnd,revo-grid[theme=default] revogr-viewport-scroll.colPinEnd revogr-header{box-shadow:1px 0 0 #c0c0c0 inset}revo-grid[theme=default] .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset, 0 -1px 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data{text-align:center}revo-grid[theme=default] revogr-data .rgRow{line-height:27px;box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] revogr-data .rgCell{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgCell.disabled{background-color:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=material]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=material] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=material] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=material] revogr-header .header-rgRow{height:50px}revo-grid[theme=material] revogr-data{text-align:left}revo-grid[theme=material] revogr-data .rgRow{line-height:42px}revo-grid[theme=material] revogr-data .rgCell{padding:0 15px}revo-grid[theme=material] .viewports{width:100%}revo-grid[theme=material] .rowHeaders{background-color:#f7faff}revo-grid[theme=material] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=material] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=material] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=material] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=material] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=material] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=material] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=material] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=darkMaterial]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkMaterial] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkMaterial] revogr-header .header-rgRow{height:50px}revo-grid[theme=darkMaterial] revogr-data{text-align:left}revo-grid[theme=darkMaterial] revogr-data .rgRow{line-height:42px}revo-grid[theme=darkMaterial] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkMaterial] .viewports{width:100%}revo-grid[theme=darkMaterial] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkMaterial] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkMaterial] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkMaterial] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkMaterial] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=darkCompact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkCompact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkCompact] revogr-header .header-rgRow{height:45px}revo-grid[theme=darkCompact] revogr-data{text-align:left}revo-grid[theme=darkCompact] revogr-data .rgRow{line-height:32px}revo-grid[theme=darkCompact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkCompact] .viewports{width:100%}revo-grid[theme=darkCompact] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkCompact] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkCompact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkCompact] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkCompact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkCompact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=compact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=compact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=compact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=compact] revogr-header .header-rgRow{height:45px}revo-grid[theme=compact] revogr-data{text-align:left}revo-grid[theme=compact] revogr-data .rgRow{line-height:32px}revo-grid[theme=compact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=compact] .viewports{width:100%}revo-grid[theme=compact] .rowHeaders{background-color:#f7faff}revo-grid[theme=compact] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=compact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=compact] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=compact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=compact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=compact] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=compact] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=compact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=compact] revo-dropdown .rv-dr-root{padding:0px 9px}revo-grid{display:block;height:100%;font-family:Helvetica, Arial, Sans-Serif, serif;font-size:14px;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;width:100%;height:100%}revo-grid.column-draggable.column-drag-start:hover,revo-grid.column-draggable.column-drag-start *:hover{cursor:grabbing}revo-grid .footer-wrapper,revo-grid .header-wrapper{width:100%}revo-grid .footer-wrapper revogr-data,revo-grid .header-wrapper revogr-data{z-index:3}revo-grid revo-dropdown{width:100%}revo-grid revo-dropdown .rv-dr-root{max-height:100%}revo-grid revo-dropdown.shrink label{opacity:0}revo-grid .viewports{max-height:100%;display:flex;flex-direction:row;align-items:flex-start;max-width:100%}revo-grid .main-viewport{flex-grow:1;height:0;display:flex;flex-direction:row}revo-grid .draggable{position:fixed;height:30px;line-height:30px;background:#fff;border-radius:3px;display:block;z-index:100;margin-top:5px;margin-right:-20px;box-shadow:0 4px 20px 0 rgba(0, 0, 0, 0.15);padding-left:20px;padding-right:5px}revo-grid .draggable.hidden{display:none}revo-grid .draggable .revo-alt-icon{background-color:black;position:absolute;left:5px;top:10px}revo-grid .draggable-wrapper.hidden{display:none}revo-grid .drag-position{position:absolute;left:0;right:0;height:1px;z-index:2;background:gray}revo-grid .drag-position-y{position:absolute;top:0;left:0;bottom:0;width:1px;z-index:2;background:gray}revo-grid .drag-auto-scroll-y{pointer-events:none;position:absolute;left:0;top:0;height:50px;width:1px}revo-grid .clipboard{position:absolute;left:0;top:0}revo-grid revogr-scroll-virtual{position:relative}revo-grid revogr-scroll-virtual.vertical,revo-grid revogr-scroll-virtual.horizontal{z-index:3}";var Ic=e("revo_grid",function(){function e(e){o(this,e);this.beforeedit=a(this,"beforeedit",7);this.beforerangeedit=a(this,"beforerangeedit",7);this.afteredit=a(this,"afteredit",7);this.beforeautofill=a(this,"beforeautofill",7);this.beforeaange=a(this,"beforeaange",7);this.afterfocus=a(this,"afterfocus",7);this.roworderchanged=a(this,"roworderchanged",7);this.beforesourcesortingapply=a(this,"beforesourcesortingapply",7);this.beforesortingapply=a(this,"beforesortingapply",7);this.beforesorting=a(this,"beforesorting",7);this.rowdragstart=a(this,"rowdragstart",7);this.headerclick=a(this,"headerclick",7);this.beforecellfocus=a(this,"beforecellfocus",7);this.beforefocuslost=a(this,"beforefocuslost",7);this.beforesourceset=a(this,"beforesourceset",7);this.aftersourceset=a(this,"aftersourceset",7);this.beforecolumnsset=a(this,"beforecolumnsset",7);this.beforecolumnapplied=a(this,"beforecolumnapplied",7);this.aftercolumnsset=a(this,"aftercolumnsset",7);this.beforefilterapply=a(this,"beforefilterapply",7);this.beforefiltertrimmed=a(this,"beforefiltertrimmed",7);this.beforetrimmed=a(this,"beforetrimmed",7);this.aftertrimmed=a(this,"aftertrimmed",7);this.viewportscroll=a(this,"viewportscroll",7);this.beforeexport=a(this,"beforeexport",7);this.beforeeditstart=a(this,"beforeeditstart",7);this.aftercolumnresize=a(this,"aftercolumnresize",7);this.frameSize=1;this.rowSize=0;this.colSize=100;this.range=false;this.readonly=false;this.resize=false;this.canFocus=true;this.useClipboard=true;this.columns=[];this.source=[];this.pinnedTopSource=[];this.pinnedBottomSource=[];this.rowDefinitions=[];this.editors={};this.columnTypes={};this.theme="default";this.rowClass="";this.autoSizeColumn=false;this.filter=false;this.canMoveColumns=false;this.trimmedRows={};this.exporting=false;this.stretch=true;this.extraElements=[];this.uuid=null;this.viewport=null;this.internalPlugins=[];this.subscribers={}}e.prototype.refresh=function(e){if(e===void 0){e="all"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.dataProvider.refresh(e);return[2]}))}))};e.prototype.scrollToRow=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgRow"});return[4,this.scrollToCoordinate({y:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnIndex=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnProp=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t=this.columnProvider.getColumnIndexByProp(e,"rgCol");if(t<0){return[2]}r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:r})];case 1:n.sent();return[2]}}))}))};e.prototype.updateColumns=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.columnProvider.updateColumns(e);return[2]}))}))};e.prototype.addTrimmed=function(e,t,r){if(t===void 0){t="external"}if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n;var i;return __generator(this,(function(o){n=this.beforetrimmed.emit({trimmed:e,trimmedType:t,type:r});if(n.defaultPrevented){return[2,n]}this.dataProvider.setTrimmed((i={},i[t]=n.detail.trimmed,i),r);this.aftertrimmed.emit();return[2,n]}))}))};e.prototype.scrollToCoordinate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.viewport)===null||t===void 0?void 0:t.scrollToCell(e);return[2]}))}))};e.prototype.setCellEdit=function(e,t,r){if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n,i,o;return __generator(this,(function(a){switch(a.label){case 0:i=ts.getColumnByProp(this.columns,t);if(!i){return[2]}return[4,ws()];case 1:a.sent();o=i.pin||"rgCol";(n=this.viewport)===null||n===void 0?void 0:n.setEdit(e,this.columnProvider.getColumnIndexByProp(t,o),o,r);return[2]}}))}))};e.prototype.registerVNode=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.extraElements).push.apply(t,e);this.extraElements=__spreadArray([],this.extraElements,true);return[2]}))}))};e.prototype.getSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store.get("source")]}))}))};e.prototype.getVisibleSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ha(this.dataProvider.stores[e].store)]}))}))};e.prototype.getSourceStore=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store]}))}))};e.prototype.getColumnStore=function(e){if(e===void 0){e="rgCol"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.columnProvider.stores[e].store]}))}))};e.prototype.updateColumnSorting=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.columnProvider.updateColumnSorting(e,t,r,n)]}))}))};e.prototype.clearSorting=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.columnProvider.clearSorting();return[2]}))}))};e.prototype.getColumns=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnProvider.getColumns()]}))}))};e.prototype.clearFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){r=(e=this.viewport)===null||e===void 0?void 0:e.getFocused();n=this.beforefocuslost.emit(r);if(n.defaultPrevented){return[2]}this.selectionStoreConnector.clearAll();(t=this.viewport)===null||t===void 0?void 0:t.clearFocused();return[2]}))}))};e.prototype.getPlugins=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,__spreadArray([],this.internalPlugins,true)]}))}))};e.prototype.getFocused=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getFocused()]}))}))};e.prototype.getSelectedRange=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getSelectedRange()]}))}))};e.prototype.handleOutsideClick=function(e){var t=e.target;if(!(t===null||t===void 0?void 0:t.closest("[".concat(ll,'="').concat(this.uuid,'"]')))){this.clearFocus()}};e.prototype.onRowDragStarted=function(e){var t;e.cancelBubble=true;var r=this.rowdragstart.emit(e.detail);if(r.defaultPrevented){e.preventDefault();return}(t=this.orderService)===null||t===void 0?void 0:t.start(this.element,Object.assign(Object.assign({},e.detail),r.detail))};e.prototype.onRowDragEnd=function(){var e;(e=this.orderService)===null||e===void 0?void 0:e.end()};e.prototype.onRowDrag=function(e){var t=e.detail;var r;(r=this.orderService)===null||r===void 0?void 0:r.move(t)};e.prototype.onRowMouseMove=function(e){var t;e.cancelBubble=true;(t=this.orderService)===null||t===void 0?void 0:t.moveTip(e.detail)};e.prototype.onBeforeEdit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(i){switch(i.label){case 0:e.cancelBubble=true;t=this.beforeedit.emit(e.detail),r=t.defaultPrevented,n=t.detail;return[4,ws()];case 1:i.sent();if(!r){this.dataProvider.setCellData(n);this.afteredit.emit(n)}return[2]}}))}))};e.prototype.onBeforeRangeEdit=function(e){e.cancelBubble=true;var t=this.beforerangeedit.emit(e.detail).defaultPrevented;if(t){e.preventDefault();return}this.afteredit.emit(e.detail)};e.prototype.onRangeChanged=function(e){e.cancelBubble=true;var t=this.beforeaange.emit(e.detail);if(t.defaultPrevented){e.preventDefault()}var r=this.beforeautofill.emit(e.detail);if(r.defaultPrevented){return}};e.prototype.onRowDropped=function(e){e.cancelBubble=true;var t=this.roworderchanged.emit(e.detail).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onHeaderClick=function(e){var t=this.headerclick.emit(Object.assign(Object.assign({},e.detail.column),{originalEvent:e.detail.originalEvent})).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onCellFocus=function(e){e.cancelBubble=true;var t=this.beforecellfocus.emit(e.detail).defaultPrevented;if(!this.canFocus||t){e.preventDefault()}};e.prototype.onCellStoreFocus=function(e){this.selectionStoreConnector.beforeNextFocusCell(e.detail)};e.prototype.columnChanged=function(e){if(e===void 0){e=[]}this.dimensionProvider.dropColumns();var t=ts.getColumns(e,0,this.columnTypes);this.beforecolumnsset.emit(t);for(var r=0,n=Ga;r<n.length;r++){var i=n[r];var o=t.columns[i];this.dimensionProvider.setColumns(i,o.length,ts.getSizes(o),i!=="rgCol")}this.beforecolumnapplied.emit(t);var a=this.columnProvider.setColumns(t);this.aftercolumnsset.emit({columns:a,order:this.columnProvider.order})};e.prototype.themeChanged=function(e){this.themeService.register(e);this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow");this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")};e.prototype.dataChanged=function(e){if(e===void 0){e=[]}var t=__spreadArray([],e,true);var r=this.beforesourceset.emit({type:"rgRow",source:t});t=r.detail.source;t=this.dataProvider.setData(t,"rgRow");this.aftersourceset.emit({type:"rgRow",source:t})};e.prototype.dataBottomChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinEnd")};e.prototype.dataTopChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinStart")};e.prototype.rowDefChanged=function(e){var t=this;if(e===void 0){e=[]}if(!e.length){return}var r=Go(e,(function(e,t){if(!e[t.type]){e[t.type]={}}if(t.size){if(!e[t.type].sizes){e[t.type].sizes={}}e[t.type].sizes[t.index]=t.size}return e}),{});Qo(r,(function(e,r){if(e.sizes){t.dimensionProvider.setDimensionSize(r,e.sizes)}}))};e.prototype.trimmedRowsChanged=function(e){if(e===void 0){e={}}this.addTrimmed(e)};e.prototype.groupingChanged=function(e){if(e===void 0){e={}}var t;for(var r=0,n=this.internalPlugins;r<n.length;r++){var i=n[r];var o=i;if(o.setGrouping){t=o;break}}if(!t){return}t.setGrouping(e||{})};e.prototype.applyStretch=function(e){if(e==="false"){e=false}var t=this.internalPlugins.filter((function(e){return _c(e)}))[0];if(e){if(!t){this.internalPlugins.push(new xc(this.element,this.dimensionProvider))}else{t.applyStretch(this.columnProvider.getRawColumns())}}else if(t){var r=this.internalPlugins.indexOf(t);this.internalPlugins.splice(r,1)}};e.prototype.connectedCallback=function(){var e=this;this.viewportProvider=new Ws;this.themeService=new z({rowSize:this.rowSize});this.dimensionProvider=new Es(this.viewportProvider);this.columnProvider=new ts;this.dataProvider=new rs(this.dimensionProvider);this.uuid="".concat((new Date).getTime(),"-rvgrid");var t={data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector};if(this.autoSizeColumn){this.internalPlugins.push(new Vs(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},typeof this.autoSizeColumn==="object"?this.autoSizeColumn:undefined))}if(this.filter){this.internalPlugins.push(new au(this.element,this.uuid,typeof this.filter==="object"?this.filter:undefined))}if(this.exporting){this.internalPlugins.push(new ql(this.element))}this.internalPlugins.push(new qu(this.element));if(this.plugins){this.plugins.forEach((function(r){e.internalPlugins.push(new r(e.element,t))}))}if(this.canMoveColumns){this.internalPlugins.push(new Pc(this.element,t))}this.internalPlugins.push(new tc(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider}));this.applyStretch(this.stretch);this.themeChanged(this.theme);this.columnChanged(this.columns);this.dataChanged(this.source);this.dataTopChanged(this.pinnedTopSource);this.dataBottomChanged(this.pinnedBottomSource);this.trimmedRowsChanged(this.trimmedRows);this.rowDefChanged(this.rowDefinitions);this.groupingChanged(this.grouping);this.selectionStoreConnector=new dc;this.scrollingService=new Lc((function(t){e.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension});e.viewportscroll.emit(t)}));this.subscribers={click:this.handleOutsideClick.bind(this)};for(var r in this.subscribers){document.addEventListener(r,this.subscribers[r])}};e.prototype.disconnectedCallback=function(){Qo(this.internalPlugins,(function(e){return e.destroy()}));this.internalPlugins=[];for(var e in this.subscribers){document.removeEventListener(e,this.subscribers[e]);delete this.subscribers[e]}};e.prototype.render=function(){var e;var t=this;var r=this.dimensionProvider.stores["rgRow"].store.get("realSize");this.viewport=new yc({columnProvider:this.columnProvider,dataProvider:this.dataProvider,dimensionProvider:this.dimensionProvider,viewportProvider:this.viewportProvider,uuid:this.uuid,scrollingService:this.scrollingService,orderService:this.orderService,selectionStoreConnector:this.selectionStoreConnector,resize:function(e){return t.aftercolumnresize.emit(e)}},r);var n=[];if(this.rowHeaders){var o=this.viewport.columns[0];n.push(i("revogr-row-headers",{height:r,resize:this.resize,dataPorts:o.dataPorts,headerProp:o.headerProp,uiid:o.prop[ll],rowHeaderColumn:typeof this.rowHeaders==="object"?this.rowHeaders:undefined,onScrollViewport:function(e){var r=e.detail;return t.scrollingService.onScroll(r,"headerRow")},onElementToScroll:function(e){var r=e.detail;return t.scrollingService.registerElement(r,"headerRow")}}))}n.push(i(bc,{columnFilter:!!this.filter,resize:this.resize,readonly:this.readonly,range:this.range,rowClass:this.rowClass,editors:this.editors,useClipboard:this.useClipboard,columns:this.viewport.columns,onCancelEdit:function(){t.selectionStoreConnector.setEdit(false)},onEdit:function(e){var r=t.beforeeditstart.emit(e);if(!r.defaultPrevented){t.selectionStoreConnector.setEdit(e.val)}},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},onScroll:function(e){return t.scrollingService.onScroll(e)}}));return i(s,Object.assign({},(e={},e["".concat(ll)]=this.uuid,e)),i(ic,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:function(e){return t.orderService=e},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},nakedClick:function(){return t.viewport.clearEdit()},onScroll:function(e){return t.scrollingService.onScroll(e)}},n),this.extraElements)};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}},enumerable:false,configurable:true});return e}());Ic.style=Ac;var Tc=function(){function e(e,t){var r=this;this.dataStore=e;this.source=t;this.unsubscribe=[];this.hasGrouping=false;this.unsubscribe.push(t.onChange("source",(function(e){return r.checkGrouping(e)})));this.checkGrouping(t.get("source"))}Object.defineProperty(e.prototype,"columns",{get:function(){return Ha(this.source)},enumerable:false,configurable:true});e.prototype.checkGrouping=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(Ml(n)){this.hasGrouping=true;return}this.hasGrouping=false}};e.prototype.isReadOnly=function(e,t){var r;var n=(r=this.columns[t])===null||r===void 0?void 0:r.readonly;if(typeof n==="function"){var i=this.rowDataModel(e,t);return n(i)}return n};e.doMerge=function(e,t){var r=Object.assign(Object.assign({},t),e);if(t.class){if(typeof t.class==="object"&&typeof r.class==="object"){r.class=Object.assign(Object.assign({},t.class),r.class)}else if(typeof t.class==="string"&&typeof r.class==="object"){r.class[t.class]=true}else if(typeof r.class==="string"){r.class+=" "+t.class}}if(t.style){r.style=Object.assign(Object.assign({},t.style),r.style)}return r};e.prototype.mergeProperties=function(t,r,n){var i;var o;var a=(i={},i[fl]=true,i[cl]=this.isReadOnly(t,r),i);var s=Object.assign(Object.assign({},n),{class:a});var u=(o=this.columns[r])===null||o===void 0?void 0:o.cellProperties;if(u){var l=this.rowDataModel(t,r);var c=u(l);if(!c){return s}return e.doMerge(s,c)}return s};e.prototype.customRenderer=function(e,t,r){var n;var o=(n=this.columns[t])===null||n===void 0?void 0:n.cellTemplate;if(o){return o(i,r)}return};e.prototype.getRowClass=function(e,t){var r=Wa(this.dataStore,e)||{};return r[t]||""};e.prototype.getCellData=function(t,r){var n=this.rowDataModel(t,r);return e.getData(n.model[n.prop])};e.prototype.getSaveData=function(e,t,r){if(typeof r==="undefined"){r=this.getCellData(e,t)}var n=this.rowDataModel(e,t);return{prop:n.prop,rowIndex:e,val:r,model:n.model,type:this.dataStore.get("type")}};e.prototype.getCellEditor=function(e,t,r){var n;var i=(n=this.columns[t])===null||n===void 0?void 0:n.editor;if(!i){return undefined}if(typeof i==="string"){return r[i]}return i};e.prototype.rowDataModel=function(e,t){var r=this.columns[t];var n=r===null||r===void 0?void 0:r.prop;var i=Wa(this.dataStore,e)||{};return{prop:n,model:i,data:this.dataStore.get("source"),column:r,rowIndex:e}};e.prototype.getRangeData=function(e){var t={};var r=e.oldProps.length;var n=this.copyRangeArray(e.oldRange,e.oldProps,this.dataStore);var i=n.length;for(var o=e.newRange.y,a=0;o<e.newRange.y1+1;o++,a++){var s=n[a%i];for(var u=e.newRange.x,l=0;u<e.newRange.x1+1;u++,l++){if(o>=e.oldRange.y&&o<=e.oldRange.y1&&u>=e.oldRange.x&&u<=e.oldRange.x1){continue}var c=this.columns[u].prop;var f=l%r;if(!this.isReadOnly(o,u)){if(!t[o]){t[o]={}}t[o][c]=s[f]}}}return t};e.prototype.getTransformedDataToApply=function(e,t){var r={};var n=t.length;var i=this.columns.length;var o=this.dataStore.get("items").length;var a=e.y;var s=0;for(var u=0;a<o&&u<n;a++,u++){var l=t[u%n];var c=(l===null||l===void 0?void 0:l.length)||0;var f=e.x;for(var v=0;f<i&&v<c;f++,v++){var d=this.columns[f].prop;var h=v%i;if(!this.isReadOnly(a,f)){if(!r[a]){r[a]={}}r[a][d]=l[h]}}s=Math.max(s,f-1)}var p=uc(e,{y:a-1,x:s});return{changed:r,range:p}};e.prototype.applyRangeData=function(e){var t={};for(var r in e){var n=t[r]=Wa(this.dataStore,parseInt(r,10));for(var i in e[r]){n[i]=e[r][i]}}Ua(this.dataStore,t)};e.prototype.getRangeStaticData=function(e,t){var r={};for(var n=e.y,i=0;n<e.y1+1;n++,i++){for(var o=e.x,a=0;o<e.x1+1;o++,a++){var s=this.columns[o].prop;if(!this.isReadOnly(n,o)){if(!r[n]){r[n]={}}r[n][s]=t}}}return r};e.prototype.copyRangeArray=function(e,t,r){var n=[];for(var i=e.y;i<e.y1+1;i++){var o=[];for(var a=0,s=t;a<s.length;a++){var u=s[a];var l=Wa(r,i);o.push(l[u])}n.push(o)}return n};e.getData=function(e){if(typeof e==="undefined"||e===null){return""}return e.toString()};e.prototype.destroy=function(){this.unsubscribe.forEach((function(e){return e()}))};return e}();var Mc=function(e){var t=e.model,r=e.canDrag,n=e.onDragStart;var o=[];if(t.column.rowDrag&&Bc(t.column.rowDrag,t)){if(r){o.push(i("span",{class:ml,onMouseDown:function(e){return n(e)}},i("span",{class:gl})))}else{o.push(i("span",{class:ml}))}}o.push("".concat(Tc.getData(t.model[t.prop])));return o};function Bc(e,t){if(typeof e==="function"){return e(t)}return!!e}var Hc=10;var Wc=function(e,t){var r=e.rowClass,n=e.size,o=e.start,a=e.style,s=e.depth;return i("div",{class:"rgRow ".concat(r||""),style:Object.assign(Object.assign({},a),{height:"".concat(n,"px"),transform:"translateY(".concat(o,"px)"),paddingLeft:s?"".concat(Hc*s,"px"):undefined})},t)};function Uc(e,t,r){var n=new CustomEvent(Pl,{detail:{model:t,virtualIndex:r},cancelable:true,bubbles:true});e.target.dispatchEvent(n)}var Nc=function(e){var t;var r=e.model,n=e.itemIndex,o=e.hasExpand,a=e.groupingCustomRenderer;var s=r[El];var u=r[Ol];var l=parseInt(r[Sl],10)||0;if(!o){return i(Wc,Object.assign({},e,{rowClass:"groupingRow",depth:l}))}if(a){return i(Wc,Object.assign({},e,{rowClass:"groupingRow",depth:l}),i("div",{onClick:function(e){return Uc(e,r,n)}},a(i,{name:s,itemIndex:n,expanded:u,depth:l})))}return i(Wc,Object.assign({},e,{rowClass:"groupingRow",depth:l}),i("button",{class:(t={},t[jl]=true,t),onClick:function(e){return Uc(e,r,n)}},i("svg",{"aria-hidden":"true",style:{transform:"rotate(".concat(!u?-90:0,"deg)")},focusable:"false",viewBox:"0 0 448 512"},i("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))),s)};var Vc=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-data{display:block;width:100%;position:relative}revogr-data .rgRow{position:absolute;width:100%;left:0}revogr-data .rgRow.groupingRow{font-weight:600}revogr-data .rgRow.groupingRow .group-expand{width:25px;height:100%;max-height:25px;margin-right:2px;background-color:transparent;border-color:transparent}revogr-data .rgRow.groupingRow .group-expand svg{width:7px}revogr-data .revo-draggable{border:none;height:32px;display:inline-flex;outline:0;padding:0;font-size:0.8125rem;box-sizing:border-box;align-items:center;white-space:nowrap;vertical-align:middle;justify-content:center;text-decoration:none;width:24px;height:100%;cursor:pointer}revogr-data .revo-draggable>.revo-drag-icon{vertical-align:middle;display:inline-block;pointer-events:none;transition:background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}revogr-data .rgCell{top:0;position:absolute;box-sizing:border-box;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}revogr-data .rgCell.align-center{text-align:center}revogr-data .rgCell.align-left{text-align:left}revogr-data .rgCell.align-right{text-align:right}";var Zc=e("revogr_data",function(){function e(e){o(this,e);this.dragStartCell=a(this,"dragStartCell",7);this.beforerowrender=a(this,"beforerowrender",7)}e.prototype.onStoreChange=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new Tc(this.dataStore,this.colData)};e.prototype.connectedCallback=function(){this.onStoreChange()};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy()};e.prototype.render=function(){var e;var t=this.viewportRow.get("items");var r=this.viewportCol.get("items");if(!this.columnService.columns.length||!t.length||!r.length){return""}var n=(e=this.rowSelectionStore)===null||e===void 0?void 0:e.get("range");var o=[];var a=this.dataStore.get("groupingDepth");var s=this.dataStore.get("groupingCustomRenderer");for(var u=0,l=t;u<l.length;u++){var c=l[u];var f=Wa(this.dataStore,c.itemIndex);if(Tl(f)){o.push(i(Nc,Object.assign({},c,{model:f,groupingCustomRenderer:s,hasExpand:this.columnService.hasGrouping})));continue}var v=[];var d=this.rowClass?this.columnService.getRowClass(c.itemIndex,this.rowClass):"";if(n&&c.itemIndex>=n.y&&c.itemIndex<=n.y1){d+=" focused-rgRow"}for(var h=0,p=r;h<p.length;h++){var g=p[h];v.push(this.getCellRenderer(c,g,this.canDrag,this.columnService.hasGrouping?a:0))}var m=i(Wc,{rowClass:d,size:c.size,start:c.start},v);this.beforerowrender.emit({row:m,model:f,rowIndex:c.itemIndex});o.push(m)}return o};e.prototype.getCellRenderer=function(e,t,r,n){var o;var a=this;if(r===void 0){r=false}if(n===void 0){n=0}var s=this.columnService.rowDataModel(e.itemIndex,t.itemIndex);var u=(o={},o[sl]=t.itemIndex,o[ul]=e.itemIndex,o.style={width:"".concat(t.size,"px"),transform:"translateX(".concat(t.start,"px)")},o);if(n&&!t.itemIndex){u.style.paddingLeft="".concat(Hc*n,"px")}var l=this.columnService.mergeProperties(e.itemIndex,t.itemIndex,u);var c=this.columnService.customRenderer(e.itemIndex,t.itemIndex,s);if(typeof c!=="undefined"){return i("div",Object.assign({},l),c)}if(!s.column){console.error("Investigate column problem");return}return i("div",Object.assign({},l),i(Mc,{model:s,canDrag:r,onDragStart:function(e){return a.dragStartCell.emit(e)}}))};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}},enumerable:false,configurable:true});return e}());Zc.style=Vc;var Gc;(function(e){e[e["MOUSE_LEFT"]=1]="MOUSE_LEFT";e[e["MOUSE_RIGHT"]=3]="MOUSE_RIGHT";e[e["MOUSE_MIDDLE"]=2]="MOUSE_MIDDLE";e[e["BACKSPACE"]=8]="BACKSPACE";e[e["COMMA"]=188]="COMMA";e[e["INSERT"]=45]="INSERT";e[e["DELETE"]=46]="DELETE";e[e["END"]=35]="END";e[e["ENTER"]=13]="ENTER";e[e["ESCAPE"]=27]="ESCAPE";e[e["CONTROL"]=17]="CONTROL";e[e["COMMAND_LEFT"]=91]="COMMAND_LEFT";e[e["COMMAND_RIGHT"]=93]="COMMAND_RIGHT";e[e["COMMAND_FIREFOX"]=224]="COMMAND_FIREFOX";e[e["ALT"]=18]="ALT";e[e["HOME"]=36]="HOME";e[e["PAGE_DOWN"]=34]="PAGE_DOWN";e[e["PAGE_UP"]=33]="PAGE_UP";e[e["PERIOD"]=190]="PERIOD";e[e["SPACE"]=32]="SPACE";e[e["SHIFT"]=16]="SHIFT";e[e["CAPS_LOCK"]=20]="CAPS_LOCK";e[e["TAB"]=9]="TAB";e[e["ARROW_RIGHT"]=39]="ARROW_RIGHT";e[e["ARROW_LEFT"]=37]="ARROW_LEFT";e[e["ARROW_UP"]=38]="ARROW_UP";e[e["ARROW_DOWN"]=40]="ARROW_DOWN";e[e["F1"]=112]="F1";e[e["F2"]=113]="F2";e[e["F3"]=114]="F3";e[e["F4"]=115]="F4";e[e["F5"]=116]="F5";e[e["F6"]=117]="F6";e[e["F7"]=118]="F7";e[e["F8"]=119]="F8";e[e["F9"]=120]="F9";e[e["F10"]=121]="F10";e[e["F11"]=122]="F11";e[e["F12"]=123]="F12";e[e["A"]=65]="A";e[e["C"]=67]="C";e[e["D"]=68]="D";e[e["F"]=70]="F";e[e["L"]=76]="L";e[e["O"]=79]="O";e[e["P"]=80]="P";e[e["S"]=83]="S";e[e["V"]=86]="V";e[e["X"]=88]="X"})(Gc||(Gc={}));var $c;(function(e){e["ENTER"]="Enter";e["ENTER_NUM"]="NumpadEnter";e["V"]="KeyV";e["C"]="KeyC";e["ESCAPE"]="Escape";e["TAB"]="Tab";e["BACKSPACE"]="Backspace";e["DELETE"]="Delete";e["ARROW_RIGHT"]="ArrowRight";e["ARROW_LEFT"]="ArrowLeft";e["ARROW_UP"]="ArrowUp";e["ARROW_DOWN"]="ArrowDown";e["SHIFT"]="Shift"})($c||($c={}));var Xc;(function(e){e["ENTER"]="Enter";e["TAB"]="Tab"})(Xc||(Xc={}));var Yc=Gc;var qc;(function(e){e["mac"]="Mac"})(qc||(qc={}));var Kc=qc;function Jc(e){return e!==e}var Qc=Jc;function ef(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}var tf=ef;function rf(e,t,r){return t===t?tf(e,t,r):na(e,Qc,r)}var nf=rf;function of(e,t){return oo(t,(function(t){return e[t]}))}var af=of;function sf(e){return e==null?[]:af(e,at(e))}var uf=sf;var lf=Math.max;function cf(e,t,r,n){e=it(e)?e:uf(e);r=r&&!n?la(r):0;var i=e.length;if(r<0){r=lf(i+r,0)}return lu(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&nf(e,t,r)>-1}var ff=cf;function vf(e){return e===32||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function df(e,t){if(t.includes(Kc.mac)){return ff([Yc.COMMAND_LEFT,Yc.COMMAND_RIGHT,Yc.COMMAND_FIREFOX],e)}return Yc.CONTROL===e}function hf(e){return $c.BACKSPACE===e||$c.DELETE===e}function pf(e){return Xc.TAB===e}function gf(e){return Xc.ENTER===e}var mf=function(){function e(e,t){this.column=e;this.saveCallback=t;this.element=null;this.editCell=null}e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.editInput)return[3,2];return[4,ws()];case 1:t.sent();(e=this.editInput)===null||e===void 0?void 0:e.focus();t.label=2;case 2:return[2]}}))}))};e.prototype.onKeyDown=function(e){var t=gf(e.key);var r=pf(e.key);if((r||t)&&e.target&&this.saveCallback&&!e.isComposing){this.editInput.blur();this.saveCallback(e.target.value,r)}};e.prototype.render=function(){var e=this;var t;return i("input",{type:"text",enterkeyhint:"enter",value:((t=this.editCell)===null||t===void 0?void 0:t.val)||"",ref:function(t){e.editInput=t},onKeyDown:function(t){return e.onKeyDown(t)}})};return e}();var Cf=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}";var wf=e("revogr_edit",function(){function e(e){o(this,e);this.cellEdit=a(this,"cellEdit",3);this.closeEdit=a(this,"closeEdit",3);this.currentEditor=null}e.prototype.onSave=function(e,t){if(this.editCell){this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:e,preventFocus:t})}};e.prototype.componentWillRender=function(){var e=this;if(!this.currentEditor){if(this.editor){this.currentEditor=new this.editor(this.column,(function(t,r){return e.onSave(t,r)}),(function(t){return e.closeEdit.emit(t)}))}else{this.currentEditor=new mf(this.column,(function(t,r){return e.onSave(t,r)}))}}};e.prototype.componentDidRender=function(){if(!this.currentEditor){return}this.currentEditor.element=this.element.firstElementChild;this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender()};e.prototype.disconnectedCallback=function(){if(!this.currentEditor){return}this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback();if(this.currentEditor.element){this.currentEditor.element=null}this.currentEditor=null};e.prototype.render=function(){if(this.currentEditor){this.currentEditor.editCell=this.editCell;return i(s,{class:Ll},this.currentEditor.render(i))}return""};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());wf.style=Cf;function yf(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,f=s.width;var v=n-u;if(v>=c){v=c-1}var d=r-l;if(d>=f){d=f-1}var h=bs(o,v);var p=bs(a,d);if(p.itemIndex<0){p.itemIndex=0}if(h.itemIndex<0){h.itemIndex=0}return{x:p.itemIndex,y:h.itemIndex}}function bf(e,t,r,n){if(n===void 0){n=false}var i=function(i){var o={x:e.x,y:e.y};var a=n?{x:e.x1,y:e.y1}:o;var s=a[i]>t[i]?a:o;s[i]+=r[i];return{start:o,end:a}};if(r.x){return i("x")}if(r.y){return i("y")}return null}function Lf(e,t){var r=e.x,n=e.y;var i=t.lastCell;return r>=i.x||n>=i.y}function xf(e){var t=e.x,r=e.y;return t<0||r<0}function _f(e){return{left:"".concat(e.left,"px"),top:"".concat(e.top,"px"),width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}}function Sf(e,t,r){var n=e.x,i=e.y,o=e.x1,a=e.y1;var s=Ls(t,i).start;var u=Ls(r,n).start;var l=Ls(t,a).end;var c=Ls(r,o).end;return{left:u,right:c,top:s,bottom:l,width:c-u,height:l-s}}function Ef(e,t,r){var n=Sf(e,t,r);return _f(n)}var kf=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-focus.focused-cell{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset;position:absolute;pointer-events:none;z-index:9;display:block}";var zf=e("revogr_focus",function(){function e(e){o(this,e);this.afterFocus=a(this,"afterfocus",7)}e.prototype.changed=function(e,t){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"});var r=Wa(this.dataStore,t.y);var n=Wa(this.colData,t.x);this.afterFocus.emit({model:r,column:n})};e.prototype.componentDidRender=function(){var e=this.selectionStore.get("focus");e&&this.el&&this.changed(this.el,e)};e.prototype.render=function(){var e=this.selectionStore.get("focus");if(e){var t=Ef(Object.assign(Object.assign({},e),{x1:e.x,y1:e.y}),this.dimensionRow.state,this.dimensionCol.state);return i(s,{class:Cl,style:t})}};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());zf.style=kf;var Rf=function(){try{var e=ar(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var Of=Rf;function Ff(e,t,r){if(t=="__proto__"&&Of){Of(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}var jf=Ff;function Pf(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}var Df=Pf;function Af(e,t,r,n){vt(e,(function(e,i,o){t(n,e,r(e),o)}));return n}var If=Af;function Tf(e,t){return function(r,n){var i=G(r)?Df:If,o=t?t():{};return i(r,e,Uo(n),o)}}var Mf=Tf;var Bf=Mf((function(e,t,r){jf(e,r,t)}));var Hf=Bf;var Wf=function(e){var t=e.column;var r;return i("i",{class:(r=t===null||t===void 0?void 0:t.order)!==null&&r!==void 0?r:"sort-off"})};var Uf;(function(e){e["start"]="resize:start";e["move"]="resize:move";e["end"]="resize:end"})(Uf||(Uf={}));var Nf={"resizable-r":{bit:1,cursor:"ew-resize"},"resizable-rb":{bit:3,cursor:"se-resize"},"resizable-b":{bit:2,cursor:"s-resize"},"resizable-lb":{bit:6,cursor:"sw-resize"},"resizable-l":{bit:4,cursor:"w-resize"},"resizable-lt":{bit:12,cursor:"nw-resize"},"resizable-t":{bit:8,cursor:"n-resize"},"resizable-rt":{bit:9,cursor:"ne-resize"}};var Vf={l:1,t:2,w:4,h:8};var Zf=function(e){return Object.assign(Object.assign({},e),{fitParent:e.fitParent||false,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})};var Gf=function(){function e(e,t){this.initialProps=e;this.$event=t;this.mouseX=0;this.mouseY=0;this.width=0;this.height=0;this.changeX=0;this.changeY=0;this.disableCalcMap=15;this.props=Zf(e);this.mouseMoveFunc=this.handleMove.bind(this);this.mouseUpFunc=this.handleUp.bind(this);this.minW=this.props.minWidth;this.minH=this.props.minHeight;this.maxW=this.props.maxWidth;this.maxH=this.props.maxHeight;this.parent={width:0,height:0};this.resizeState=0}e.prototype.set=function(e){var t=this;this.$el=e;this.props.disableAttributes.forEach((function(e){switch(e){case"l":t.disableCalcMap&=~Vf.l;break;case"t":t.disableCalcMap&=~Vf.t;break;case"w":t.disableCalcMap&=~Vf.w;break;case"h":t.disableCalcMap&=~Vf.h}}))};e.prototype.emitEvent=function(e,t){if(!this.$event){return}this.$event(Object.assign({eventName:e,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},t))};e.isTouchEvent=function(e){var t;var r=e;return((t=r.touches)===null||t===void 0?void 0:t.length)>=0};e.prototype.handleMove=function(t){if(!this.resizeState){return}var r,n;if(e.isTouchEvent(t)){r=t.touches[0].clientY;n=t.touches[0].clientX}else{r=t.clientY;n=t.clientX}var i=this.resizeState&Nf["resizable-r"].bit||this.resizeState&Nf["resizable-l"].bit;var o=this.resizeState&Nf["resizable-t"].bit||this.resizeState&Nf["resizable-b"].bit;if(o&&this.disableCalcMap&Vf.h){var a=r-this.mouseY;var s=this.changeY+a;var u=this.height+s;if(u<this.minH){s=-(this.height-this.minH)}if(this.maxH&&u>this.maxH){s=this.maxH-this.height}this.changeY=s;this.mouseY=r;if(this.activeResizer){this.activeResizer.style.bottom="".concat(-this.changeY,"px")}}if(i&&this.disableCalcMap&Vf.w){var l=n-this.mouseX;var c=this.changeX+l;var f=this.width+c;if(f<this.minW){c=-(this.width-this.minW)}if(this.maxW&&f>this.maxW){c=this.maxW-this.width}this.changeX=c;this.mouseX=n;if(this.activeResizer){this.activeResizer.style.right="".concat(-this.changeX,"px")}}this.emitEvent(Uf.move)};e.prototype.handleDown=function(t){if(t.defaultPrevented){return}t.preventDefault();this.dropInitial();for(var r in Nf){var n=t.target;if(this.$el.contains(n)&&(n===null||n===void 0?void 0:n.classList.contains(r))){document.body.style.cursor=Nf[r].cursor;if(e.isTouchEvent(t)){this.setInitials(t.touches[0],n)}else{t.preventDefault&&t.preventDefault();this.setInitials(t,n)}this.resizeState=Nf[r].bit;var i=Uf.start;this.emitEvent(i);break}}this.bindMove()};e.prototype.handleUp=function(e){e.preventDefault();if(this.resizeState!==0){this.resizeState=0;document.body.style.cursor="";var t=Uf.end;this.emitEvent(t)}this.dropInitial();this.unbindMove()};e.prototype.setInitials=function(e,t){var r=e.clientX,n=e.clientY;var i=getComputedStyle(this.$el);this.$el.classList.add("active");this.activeResizer=t;if(this.disableCalcMap&Vf.w){this.mouseX=r;this.width=this.$el.clientWidth;this.parent.width=this.$el.parentElement.clientWidth;var o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight);this.minW=Math.max(o,this.initialProps.minWidth||0);if(this.initialProps.maxWidth){this.maxW=Math.max(this.width,this.initialProps.maxWidth)}}if(this.disableCalcMap&Vf.h){this.mouseY=n;this.height=this.$el.clientHeight;this.parent.height=this.$el.parentElement.clientHeight;var a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom);this.minH=Math.max(a,this.initialProps.minHeight||0);if(this.initialProps.maxHeight){this.maxH=Math.max(this.height,this.initialProps.maxHeight)}}};e.prototype.dropInitial=function(){this.changeX=this.changeY=this.minW=this.minH;this.width=this.height=0;if(this.activeResizer){this.activeResizer.removeAttribute("style")}this.$el.classList.remove("active");this.activeResizer=null};e.prototype.bindMove=function(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,true);document.documentElement.addEventListener("touchend",this.mouseUpFunc,true);document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,true);document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,true);document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)};e.prototype.unbindMove=function(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,true);document.documentElement.removeEventListener("touchend",this.mouseUpFunc,true);document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,true);document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,true);document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)};return e}();var $f=function(e,t){var r=[];var n=e.canResize&&new Gf(e,(function(t){if(t.eventName===Uf.end){e.onResize&&e.onResize(t)}}))||null;if(e.canResize){if(e.active){for(var o in e.active){r.push(i("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},onMouseDown:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},onTouchStart:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},class:"resizable resizable-".concat(e.active[o])}))}}}else{if(e.active){for(var o in e.active){r.push(i("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},class:"no-resize resizable resizable-".concat(e.active[o])}))}}}return i("div",Object.assign({},e,{ref:function(e){return n===null||n===void 0?void 0:n.set(e)}}),t,r)};var Xf="column-click";var Yf=function(e,t){var r=e.data,n=e.props;var o=(r===null||r===void 0?void 0:r.name)||"";var a=n;if(r===null||r===void 0?void 0:r.columnTemplate){o=r.columnTemplate(i,r)}if(r===null||r===void 0?void 0:r.columnProperties){var s=r.columnProperties(r);if(s&&typeof s==="object"){a=Tc.doMerge(n,s)}}return i($f,Object.assign({},a,{onMouseDown:function(e){kc(e.currentTarget,Xf,{data:r,event:e})}}),i("div",{class:"header-content"},o),t)};var qf=function(e){var t,r;var n,o,a,s,u;var l=(t={},t[vl]=true,t[dl]=!!((n=e.data)===null||n===void 0?void 0:n.sortable),t);if((o=e.data)===null||o===void 0?void 0:o.order){l[e.data.order]=true}var c=(r={},r[sl]=e.column.itemIndex,r.canResize=e.canResize,r.minWidth=((a=e.data)===null||a===void 0?void 0:a.minSize)||al,r.maxWidth=(s=e.data)===null||s===void 0?void 0:s.maxSize,r.active=["r"],r.class=l,r.style={width:"".concat(e.column.size,"px"),transform:"translateX(".concat(e.column.start,"px)")},r.onResize=e.onResize,r.onDoubleClick=function(t){e.onDoubleClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r.onClick=function(t){if(t.defaultPrevented||!e.onClick){return}e.onClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r);if(e.range){if(e.column.itemIndex>=e.range.x&&e.column.itemIndex<=e.range.x1){if(typeof c.class==="object"){c.class[Cl]=true}}}return i(Yf,{data:e.data,props:c},i(Wf,{column:e.data}),e.canFilter&&((u=e.data)===null||u===void 0?void 0:u.filter)!==false?i(L,{column:e.data}):"")};var Kf=function(e){var t;var r={canResize:e.canResize,minWidth:e.group.ids.length*al,maxWidth:0,active:["r"],class:(t={},t[vl]=true,t),style:{transform:"translateX(".concat(e.start,"px)"),width:"".concat(e.end-e.start,"px")},onResize:e.onResize};return i(Yf,{data:e.group,props:r})};var Jf=function(e){var t=e.depth,r=e.groups,n=e.visibleProps,o=e.dimensionCol,a=e.canResize,s=e.onResize;var u=[];for(var l=0;l<t;l++){if(r[l]){var c=function(e){var t=va(e.ids,(function(e){return typeof n[e]==="number"}));if(t>-1){var r=n[e.ids[t]];var l=r-t;var c=l+e.ids.length-1;var f=Ls(o,l).start;var v=Ls(o,c).end;u.push(i(Kf,{start:f,end:v,group:e,canResize:a,onResize:function(e){return s(e.changedX,l,c)}}))}};for(var f=0,v=r[l];f<v.length;f++){var d=v[f];c(d)}}u.push(i("div",{class:"".concat(hl," group")}))}return u};var Qf="@charset \"UTF-8\";.revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-header{position:relative;z-index:5;display:block}revogr-header .rgHeaderCell{display:flex}revogr-header .rgHeaderCell.align-center{text-align:center}revogr-header .rgHeaderCell.align-left{text-align:left}revogr-header .rgHeaderCell.align-right{text-align:right}revogr-header .rgHeaderCell.sortable{cursor:pointer}revogr-header .rgHeaderCell i.asc:after,revogr-header .rgHeaderCell i.desc:after{font-size:13px}revogr-header .rgHeaderCell i.asc:after{content:\"↑\"}revogr-header .rgHeaderCell i.desc:after{content:\"↓\"}revogr-header .rgHeaderCell,revogr-header .grouped-cell{position:absolute;box-sizing:border-box;height:100%;z-index:1}revogr-header .header-rgRow{display:block;position:relative}revogr-header .header-rgRow.group{z-index:0}revogr-header .group-rgRow{position:relative}revogr-header .rgHeaderCell.active{z-index:10}revogr-header .rgHeaderCell.active .resizable{background-color:deepskyblue}revogr-header .rgHeaderCell .header-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}revogr-header .rgHeaderCell .resizable{display:block;position:absolute;z-index:90;touch-action:none;user-select:none}revogr-header .rgHeaderCell .resizable:hover{background-color:deepskyblue}revogr-header .rgHeaderCell>.resizable-r{cursor:ew-resize;width:6px;right:0;top:0;height:100%}revogr-header .rgHeaderCell>.resizable-rb{cursor:se-resize;width:6px;height:6px;right:0;bottom:0}revogr-header .rgHeaderCell>.resizable-b{cursor:s-resize;height:6px;bottom:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-lb{cursor:sw-resize;width:6px;height:6px;left:0;bottom:0}revogr-header .rgHeaderCell>.resizable-l{cursor:w-resize;width:6px;left:0;height:100%;top:0}revogr-header .rgHeaderCell>.resizable-lt{cursor:nw-resize;width:6px;height:6px;left:0;top:0}revogr-header .rgHeaderCell>.resizable-t{cursor:n-resize;height:6px;top:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-rt{cursor:ne-resize;width:6px;height:6px;right:0;top:0}revogr-header .rv-filter{visibility:hidden}";var ev=e("revogr_header",function(){function e(e){o(this,e);this.initialHeaderClick=a(this,"initialHeaderClick",7);this.headerresize=a(this,"headerresize",7);this.headerdblClick=a(this,"headerdblClick",7);this.parent="";this.groupingDepth=0}e.prototype.onResize=function(e,t){var r;var n=e.width;this.headerresize.emit((r={},r[t]=n||0,r))};e.prototype.onResizeGroup=function(e,t,r){var n={};var i=Hf(this.viewportCol.get("items"),"itemIndex");var o=e/(r-t+1);for(var a=t;a<=r;a++){var s=i[a];if(s){n[a]=s.size+o}}this.headerresize.emit(n)};e.prototype.render=function(){var e=this;var t;var r=this.viewportCol.get("items");var n=(t=this.selectionStore)===null||t===void 0?void 0:t.get("range");var o=[];var a={};var s=function(t){var r=u.colData[t.itemIndex];o.push(i(qf,{range:n,column:t,data:r,canFilter:!!u.columnFilter,canResize:u.canResize,onResize:function(r){return e.onResize(r,t.itemIndex)},onDoubleClick:function(t){return e.headerdblClick.emit(t)},onClick:function(t){return e.initialHeaderClick.emit(t)}}));a[r===null||r===void 0?void 0:r.prop]=t.itemIndex};var u=this;for(var l=0,c=r;l<c.length;l++){var f=c[l];s(f)}return[i("div",{class:"group-rgRow"},i(Jf,{canResize:this.canResize,visibleProps:a,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:function(t,r,n){return e.onResizeGroup(t,r,n)}})),i("div",{class:"".concat(hl," ").concat(pl)},o)]};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());ev.style=Qf;var tv=function(){function e(e){this.config=e;this.currentCell=null;this.previousRow=null}e.prototype.endOrder=function(e,t){if(this.currentCell===null){return}var r=this.getCell(e,t);if(r.y!==this.currentCell.y){if(r.y<0){r.y=0}else if(r.y<this.currentCell.y){r.y++}this.config.positionChanged(this.currentCell.y,r.y)}this.clear()};e.prototype.startOrder=function(e,t){this.currentCell=this.getCell(e,t);return this.currentCell};e.prototype.move=function(e,t){var r=this.getRow(e,t);if(this.previousRow===r.itemIndex||r.itemIndex<-1){return null}this.previousRow=r.itemIndex;return r};e.prototype.clear=function(){this.currentCell=null;this.previousRow=null};e.prototype.getRow=function(e,t){var r=t.el,n=t.rows;var i=r.getBoundingClientRect().top;var o=e-i;var a=bs(n,o);var s={itemIndex:a.itemIndex,start:a.start+i,end:a.end+i};return s};e.prototype.getCell=function(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left;var c=n-u;var f=r-l;var v=bs(o,c);var d=bs(a,f);return{x:d.itemIndex,y:v.itemIndex}};return e}();var rv=e("revogr_order_editor",function(){function e(e){var t=this;o(this,e);this.internalRowDragStart=a(this,"internalRowDragStart",7);this.internalRowDragEnd=a(this,"internalRowDragEnd",7);this.internalRowDrag=a(this,"internalRowDrag",7);this.internalRowMouseMove=a(this,"internalRowMouseMove",7);this.initialRowDropped=a(this,"initialRowDropped",7);this.rowMoveFunc=b((function(e){var r=t.rowOrderService.move(e,t.getData());if(r!==null){t.internalRowDrag.emit(r)}}),5)}e.prototype.onMouseOut=function(){this.clearOrder()};e.prototype.onMouseUp=function(e){this.endOrder(e)};e.prototype.dragStart=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i;var o=this;return __generator(this,(function(a){e.preventDefault();if(this.moveFunc){this.clearOrder()}t=this.getData();r=this.rowOrderService.startOrder(e,t);n=this.rowOrderService.getRow(e.y,t);i=this.internalRowDragStart.emit({cell:r,text:xl,pos:n,event:e});if(i.defaultPrevented){return[2]}this.moveFunc=function(e){return o.move(e)};document.addEventListener("mousemove",this.moveFunc);return[2]}))}))};e.prototype.endOrder=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.rowOrderService.endOrder(e,this.getData());this.clearOrder();return[2]}))}))};e.prototype.clearOrder=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rowOrderService.clear();document.removeEventListener("mousemove",this.moveFunc);this.moveFunc=null;this.internalRowDragEnd.emit();return[2]}))}))};e.prototype.move=function(e){var t=e.x,r=e.y;this.internalRowMouseMove.emit({x:t,y:r});this.rowMoveFunc(r)};e.prototype.connectedCallback=function(){var e=this;this.rowOrderService=new tv({positionChanged:function(t,r){return e.onPositionChanged(t,r)}})};e.prototype.onPositionChanged=function(e,t){var r=this.initialRowDropped.emit({from:e,to:t});if(r.defaultPrevented){return}var n=__spreadArray([],this.dataStore.get("items"),true);var i=n.splice(e,1);n.splice.apply(n,__spreadArray([t,0],i,false));Na(this.dataStore,n)};e.prototype.getData=function(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}};return e}());var nv=function(){function e(e,t){this.store=e;this.config=t;this.store=e}Object.defineProperty(e.prototype,"edited",{get:function(){return this.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){return this.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"ranged",{get:function(){return this.store.get("range")},enumerable:false,configurable:true});e.prototype.changeRange=function(e){return this.config.changeRange(e)};e.prototype.focus=function(e,t,r){if(t===void 0){t=false}if(r===void 0){r=0}if(!e){return false}var n=e;if(t){var i=this.store.get("focus");if(i){return this.config.changeRange(uc(i,n))}}return this.config.focus(e,n,r)};return e}();function iv(e){return!!(e===null||e===void 0?void 0:e.closest(".".concat(Ll)))}var ov=function(){function e(e){this.sv=e;this.ctrlDown=false}e.prototype.keyDown=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!this.sv.selectionStoreService.focused){return[2]}if(df(e.keyCode,navigator.platform)){this.ctrlDown=true}if($c.TAB===e.code){this.keyChangeSelection(e,t);return[2]}if(this.sv.selectionStoreService.edited){switch(e.code){case $c.ESCAPE:this.sv.cancelEdit();break}return[2]}if(hf(e.code)){this.sv.clearCell();return[2]}if(gf(e.key)){this.sv.doEdit();return[2]}if(this.isCopy(e)){return[2]}if(this.isPaste(e)){this.sv.internalPaste();return[2]}if(vf(e.keyCode)){this.sv.doEdit(e.key);return[2]}return[4,this.keyChangeSelection(e,t)];case 1:if(r.sent()){return[2]}return[2]}}))}))};e.prototype.keyChangeSelection=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=this.changeDirectionKey(e,t);if(!r){return[2,false]}return[4,ws()];case 1:o.sent();n=this.sv.selectionStore.get("range");i=this.sv.selectionStore.get("focus");return[2,this.keyPositionChange(r.changes,this.sv.getData(),n,i,r.isMulti)]}}))}))};e.prototype.keyPositionChange=function(e,t,r,n,i){if(i===void 0){i=false}if(!r||!n){return false}var o=bf(r,n,e,i);if(!o){return false}if(i){if(Lf(o.end,t)||xf(o.start)){return false}var a=uc(o.start,o.end);return this.sv.selectionStoreService.changeRange(a)}return this.sv.selectionStoreService.focus(o.start,false,Lf(o.start,t)?1:xf(o.start)?-1:0)};e.prototype.keyUp=function(e){if(df(e.keyCode,navigator.platform)){this.ctrlDown=false}};e.prototype.isCopy=function(e){return this.ctrlDown&&e.code==$c.C};e.prototype.isPaste=function(e){return this.ctrlDown&&e.code==$c.V};e.prototype.changeDirectionKey=function(e,t){var r=t&&e.shiftKey;switch(e.code){case $c.TAB:case $c.ARROW_UP:case $c.ARROW_DOWN:case $c.ARROW_LEFT:case $c.ARROW_RIGHT:e.preventDefault();break}if(e.shiftKey){switch(e.code){case $c.TAB:return{changes:{x:-1},isMulti:false}}}switch(e.code){case $c.ARROW_UP:return{changes:{y:-1},isMulti:r};case $c.ARROW_DOWN:return{changes:{y:1},isMulti:r};case $c.ARROW_LEFT:return{changes:{x:-1},isMulti:r};case $c.TAB:case $c.ARROW_RIGHT:return{changes:{x:1},isMulti:r}}};return e}();function av(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=Array(i);while(++n<i){o[n]=e[n+t]}return o}var sv=av;function uv(e,t,r){var n=e==null?0:e.length;if(!n){return[]}if(r&&typeof r!="number"&&za(e,t,r)){t=0;r=n}else{t=t==null?0:la(t);r=r===undefined?n:la(r)}return sv(e,t,r)}var lv=uv;var cv;(function(e){e["selection"]="Selection";e["autoFill"]="AutoFill"})(cv||(cv={}));var fv=function(){function e(e){this.sv=e;this.autoFillType=null;this.autoFillInitial=null;this.autoFillStart=null;this.autoFillLast=null}e.prototype.renderAutofill=function(e,t){var r=this;var n;if(e){n=Sf(e,this.sv.dimensionRow.state,this.sv.dimensionCol.state)}else{n=Sf(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state)}return i("div",{class:bl,style:{left:"".concat(n.right,"px"),top:"".concat(n.bottom,"px")},onMouseDown:function(e){return r.selectionStart(e,r.sv.getData(),cv.autoFill)}})};Object.defineProperty(e.prototype,"isAutoFill",{get:function(){return!!this.autoFillType},enumerable:false,configurable:true});e.prototype.selectionMouseMove=function(e){var t=this;if(!this.onMouseMoveAutofill){this.onMouseMoveAutofill=b((function(e,r){return t.doAutofillMouseMove(e,r)}),5)}if(this.isAutoFill){this.onMouseMoveAutofill(e,this.sv.getData())}};e.prototype.getFocus=function(){var e=this.sv.selectionStoreService.focused;var t=this.sv.selectionStoreService.ranged;if(t){e={x:t.x,y:t.y}}if(!e&&!t){return null}return e};e.prototype.doAutofillMouseMove=function(e,t){var r=e.x,n=e.y;if(!this.autoFillInitial){return}var i=yf({x:r,y:n},t);if(!this.autoFillLast){if(!this.autoFillLast){this.autoFillLast=this.autoFillStart}}if(Lf(i,t)){return}this.autoFillLast=i;var o=i.x===this.autoFillInitial.x&&i.y===this.autoFillInitial.y;if(o){this.sv.setTempRange(null)}else{this.sv.setTempRange({area:uc(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})}};e.prototype.selectionStart=function(e,t,r){if(r===void 0){r=cv.selection}var n=e.target.getBoundingClientRect(),i=n.top,o=n.left;this.autoFillInitial=this.getFocus();this.autoFillType=r;this.autoFillStart=yf({x:o,y:i},t);e.preventDefault()};e.prototype.clearAutoFillSelection=function(){if(this.autoFillInitial){this.autoFillInitial=this.getFocus();if(this.autoFillType===cv.autoFill){this.applyRangeWithData(this.autoFillInitial,this.autoFillLast)}else{this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)}}this.autoFillType=null;this.autoFillInitial=null;this.autoFillLast=null;this.autoFillStart=null};e.prototype.onRangeApply=function(e,t){var r={};for(var n in e){r[n]=Wa(this.sv.dataStore,parseInt(n,10))}var i=this.sv.internalRangeDataApply({data:e,models:r,type:this.sv.dataStore.get("type")});if(!i.defaultPrevented){this.sv.columnService.applyRangeData(e)}this.sv.setRange(t)};e.prototype.applyRangeWithData=function(e,t){if(!e||!t){return}var r=this.sv.selectionStoreService.ranged;var n=uc(e,t);var i=__spreadArray([],this.sv.columnService.columns,true);var o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:r,newProps:lv(i,n.x,n.x1+1).map((function(e){return e.prop})),oldProps:lv(i,r.x,r.x1+1).map((function(e){return e.prop}))};o.newData=this.sv.columnService.getRangeData(o);var a=this.sv.internalSelectionChanged(o);if(a.defaultPrevented){this.sv.setTempRange(null);return}this.onRangeApply(o.newData,n)};e.prototype.applyRangeOnly=function(e,t){if(!e||!t){return}var r=uc(e,t);this.sv.setRange(r)};return e}();var vv=function(){function e(e){this.sv=e}e.prototype.onCopy=function(e){var t=this.sv.internalCopy();if(t.defaultPrevented){return false}var r=this.sv.selectionStoreService.focused;var n=this.sv.selectionStoreService.ranged;var i;if(!n){n=uc(r,r)}if(n){var o=__spreadArray([],this.sv.columnService.columns,true);var a=lv(o,n.x,n.x1+1).map((function(e){return e.prop}));i=this.sv.columnService.copyRangeArray(n,a,this.sv.dataStore)}this.clipboard.doCopy(e,i);return true};e.prototype.renderClipboard=function(){var e=this;return i("revogr-clipboard",{onCopyRegion:function(t){return e.onCopy(t.detail)},ref:function(t){return e.clipboard=t},onPasteRegion:function(t){return e.onPaste(t.detail)}})};e.prototype.onPaste=function(e){var t=this.sv.selectionStoreService.focused;var r=this.sv.selectionStoreService.edited!==null;if(!t||r){return}var n=this.sv.columnService.getTransformedDataToApply(t,e),i=n.changed,o=n.range;this.sv.onRangeApply(i,o)};return e}();var dv=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:10px;height:10px;background:#0d63e8;margin-left:-9px;margin-top:-9px;border:1px solid white;box-sizing:border-box;z-index:10;cursor:crosshair}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9}revogr-overlay-selection .selection-border-range{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection revogr-edit{z-index:10}";var hv=e("revogr_overlay_selection",function(){function e(e){o(this,e);this.internalCopy=a(this,"internalCopy",7);this.internalPaste=a(this,"internalPaste",7);this.internalCellEdit=a(this,"internalCellEdit",7);this.internalFocusCell=a(this,"internalFocusCell",7);this.internalNextStoreFocus=a(this,"internalNextStoreFocus",7);this.setEdit=a(this,"setEdit",3);this.cancelEdit=a(this,"cancelEdit",7);this.setRange=a(this,"setRange",7);this.setTempRange=a(this,"setTempRange",7);this.focusCell=a(this,"focusCell",3);this.internalSelectionChanged=a(this,"internalSelectionChanged",7);this.internalRangeDataApply=a(this,"internalRangeDataApply",7);this.keyboardService=null;this.autoFillService=null;this.clipboardService=null;this.unsubscribeSelectionStore=[]}e.prototype.onMouseMove=function(e){if(this.selectionStoreService.focused){this.autoFillService.selectionMouseMove(e)}};e.prototype.onMouseOut=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onMouseUp=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onCellDrag=function(e){var t;(t=this.orderEditor)===null||t===void 0?void 0:t.dragStart(e.detail)};e.prototype.onKeyUp=function(e){var t;(t=this.keyboardService)===null||t===void 0?void 0:t.keyUp(e)};e.prototype.onKeyDown=function(e){var t;if(e.defaultPrevented){return}(t=this.keyboardService)===null||t===void 0?void 0:t.keyDown(e,this.range)};e.prototype.focusCurrent=function(e,t){var r;var n=this.internalFocusCell.emit(this.columnService.getSaveData(e.y,e.x));if(n.defaultPrevented){return false}var i={focus:e,end:t};return!((r=this.focusCell.emit(i))===null||r===void 0?void 0:r.defaultPrevented)};e.prototype.selectionServiceSet=function(e){var t=this;this.unsubscribeSelectionStore.forEach((function(e){return e()}));this.unsubscribeSelectionStore=[];this.unsubscribeSelectionStore.push(e.onChange("nextFocus",(function(e){t.focusCurrent(e,e)})));this.selectionStoreService=new nv(e,{changeRange:function(e){var r;return!((r=t.setRange.emit(e))===null||r===void 0?void 0:r.defaultPrevented)},focus:function(e,r,n){if(!n){return t.focusCurrent(e,r)}else{t.internalNextStoreFocus.emit(e);return false}}});this.keyboardService=new ov({selectionStoreService:this.selectionStoreService,selectionStore:e,doEdit:function(e){return t.doEdit(e)},cancelEdit:function(){return t.closeEdit()},clearCell:function(){return t.clearCell()},getData:function(){return t.getData()},internalPaste:function(){return t.internalPaste.emit()}});this.createAutoFillService();this.createClipboardService()};e.prototype.createAutoFillService=function(){var e=this;this.autoFillService=new fv({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:function(t){return e.setTempRange.emit(t)},internalSelectionChanged:function(t){return e.internalSelectionChanged.emit(t)},internalRangeDataApply:function(t){return e.internalRangeDataApply.emit(t)},setRange:function(t){return e.setRange.emit(t)},getData:function(){return e.getData()}})};e.prototype.columnServiceSet=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new Tc(this.dataStore,this.colData);this.createAutoFillService();this.createClipboardService()};e.prototype.createClipboardService=function(){var e=this;this.clipboardService=new vv({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:function(t,r){return e.autoFillService.onRangeApply(t,r)},internalCopy:function(){return e.internalCopy.emit()}})};e.prototype.connectedCallback=function(){this.columnServiceSet();this.selectionServiceSet(this.selectionStore)};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.unsubscribeSelectionStore.forEach((function(e){return e()}));this.unsubscribeSelectionStore=[]};e.prototype.renderRange=function(e){var t=Ef(e,this.dimensionRow.state,this.dimensionCol.state);return[i("div",{class:wl,style:t})]};e.prototype.renderEditCell=function(){var e=this;var t=this.selectionStore.get("edit");if(this.readonly||!t){return}var r=t.val||this.columnService.getCellData(t.y,t.x);var n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r));var o=Ef(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return i("revogr-edit",{onCellEdit:function(t){return e.onCellEdit(t.detail)},onCloseEdit:function(t){return e.closeEdit(t)},editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:o})};e.prototype.render=function(){var e=this;var t=this.selectionStoreService.ranged;var r=this.selectionStoreService.focused;var n=[];if((t||r)&&this.useClipboard){n.push(this.clipboardService.renderClipboard())}if(t){n.push.apply(n,this.renderRange(t))}var o=this.renderEditCell();if(o){n.push(o)}if(r&&!this.readonly&&!o&&this.range){n.push(this.autoFillService.renderAutofill(t,r))}if(this.canDrag){n.push(i("revogr-order-editor",{ref:function(t){return e.orderEditor=t},dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:function(t){return e.onRowDragStart(t)}}))}return i(s,{onDblClick:function(){return e.doEdit()},onMouseDown:function(t){return e.onElementMouseDown(t)}},n,i("slot",{name:"data"}))};e.prototype.onElementMouseDown=function(e){if(iv(e.target)){return}var t=this.getData();if(e.defaultPrevented){return}var r=yf({x:e.x,y:e.y},t);this.selectionStoreService.focus(r,this.range&&e.shiftKey);if(this.range){this.autoFillService.selectionStart(e,t)}};e.prototype.doEdit=function(e){if(e===void 0){e=""}var t;if(this.canEdit()){var r=this.selectionStore.get("focus");var n=this.columnService.getSaveData(r.y,r.x);(t=this.setEdit)===null||t===void 0?void 0:t.emit(Object.assign(Object.assign({},n),{val:e}))}};e.prototype.closeEdit=function(e){this.cancelEdit.emit();if(e===null||e===void 0?void 0:e.detail){this.focusNext()}};e.prototype.focusNext=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:$c.ARROW_DOWN}),this.range)];case 1:e=t.sent();if(!e){this.closeEdit()}return[2]}}))}))};e.prototype.clearCell=function(){if(this.selectionStoreService.ranged&&!lc(this.selectionStoreService.ranged)){var e=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(e,this.selectionStoreService.ranged)}else if(this.canEdit()){var t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},true)}};e.prototype.onCellEdit=function(e,t){if(t===void 0){t=false}var r=this.columnService.getSaveData(e.rgRow,e.rgCol,e.val);this.internalCellEdit.emit(r);if(!t&&!e.preventFocus){this.focusNext()}};e.prototype.onRowDragStart=function(e){var t=e.detail;t.text=this.columnService.getCellData(t.cell.y,t.cell.x)};e.prototype.canEdit=function(){var e;if(this.readonly){return false}var t=this.selectionStoreService.focused;return t&&!((e=this.columnService)===null||e===void 0?void 0:e.isReadOnly(t.y,t.x))};e.prototype.getData=function(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}},enumerable:false,configurable:true});return e}());hv.style=dv;var pv=function(e){return function(t,r){var n=r.rowIndex;return e+n}};var gv=10;var mv=e("revogr_row_headers",function(){function e(e){o(this,e);this.scrollViewport=a(this,"scrollViewport",3);this.elementToScroll=a(this,"elementToScroll",3)}e.prototype.render=function(){var e;var t=this;var r;var n=[];var o=new Hs;var a=1;var u=function(e){var t=e.dataStore.get("items");var r=t.length;var s=e.dataStore.get("source");var u=t.map((function(e){return s[e]}));var c=new Ma(e.type);c.updateData(u);var f=new Ma("colPinStart");var v=Object.assign({cellTemplate:pv(a)},l.rowHeaderColumn);f.updateData([v]);var d=Object.assign(Object.assign({},e),{dataStore:c.store,colData:f.store,viewportCol:o.store,readonly:true,range:false});n.push(i("revogr-data",Object.assign({},d)));a+=r};var l=this;for(var c=0,f=this.dataPorts;c<f.length;c++){var v=f[c];u(v)}var d=((r=this.rowHeaderColumn)===null||r===void 0?void 0:r.size)||(a.toString().length+1)*gv;o.setViewport({realCount:1,virtualSize:0,items:[{size:d,start:0,end:d,itemIndex:0}]});var h="".concat(this.uiid,"-rowHeaders");var p=(e={},e[ll]=h,e.contentHeight=this.height,e.contentWidth=0,e.style={minWidth:"".concat(d,"px")},e.ref=function(e){return t.elementToScroll.emit(e)},e.onScrollViewport=function(e){return t.scrollViewport.emit(e.detail)},e);var g=Object.assign(Object.assign({},this.headerProp),{colData:typeof this.rowHeaderColumn==="object"?[this.rowHeaderColumn]:[],viewportCol:o.store,canResize:false,parent:h,slot:"header"});return i(s,{class:"rowHeaders",key:"rowHeaders"},i("revogr-viewport-scroll",Object.assign({},p),i("revogr-header",Object.assign({},g)),n))};return e}());var Cv={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};var wv=function(){function e(e){this.cfg=e;this.preventArtificialScroll={rgRow:null,rgCol:null};this.previousScroll={rgRow:0,rgCol:0};this.params={rgRow:Object.assign({},Cv),rgCol:Object.assign({},Cv)}}e.getVirtualContentSize=function(e,t,r){if(r===void 0){r=0}return e+(r?t-r:0)};e.prototype.setParams=function(t,r){var n=e.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:n-t.clientSize,virtualContentSize:n})};e.prototype.setScroll=function(e){var t=this;this.cancelScroll(e.dimension);this.preventArtificialScroll[e.dimension]=window.requestAnimationFrame((function(){var r=t.getParams(e.dimension);e.coordinate=Math.ceil(e.coordinate);t.previousScroll[e.dimension]=t.wrapCoordinate(e.coordinate,r);t.preventArtificialScroll[e.dimension]=null;t.cfg.afterScroll(Object.assign(Object.assign({},e),{coordinate:r.virtualSize?t.convert(e.coordinate,r,false):e.coordinate}))}))};e.prototype.scroll=function(e,t,r,n){if(r===void 0){r=false}this.cancelScroll(t);if(!r&&this.previousScroll[t]===e){this.previousScroll[t]=0;return}var i=this.getParams(t);this.cfg.beforeScroll({dimension:t,coordinate:i.virtualSize?this.convert(e,i):e,delta:n})};e.prototype.getParams=function(e){return this.params[e]};e.prototype.wrapCoordinate=function(e,t){if(e<0){return 0}if(e>t.maxSize){return t.maxSize}return e};e.prototype.cancelScroll=function(e){if(typeof this.preventArtificialScroll[e]==="number"){window.cancelAnimationFrame(this.preventArtificialScroll[e]);this.preventArtificialScroll[e]=null;return true}return false};e.prototype.convert=function(e,t,r){if(r===void 0){r=true}var n=t.clientSize;var i=[0,t.virtualContentSize-n];var o=[0,t.contentSize-t.virtualSize];if(r){return Cs(e,i,o)}return Cs(e,o,i)};return e}();var yv=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-scroll-virtual[auto-hide]{position:absolute;z-index:100}revogr-scroll-virtual[auto-hide].vertical{right:0;top:0}revogr-scroll-virtual[auto-hide].vertical:hover{min-width:20px}revogr-scroll-virtual[auto-hide].horizontal{bottom:0;left:0}revogr-scroll-virtual[auto-hide].horizontal:hover{min-height:20px}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}";var bv=e("revogr_scroll_virtual",function(){function e(e){o(this,e);this.scrollVirtual=a(this,"scrollVirtual",7);this.scrollSize=0;this.isAutoHide=false;this.autoHideTimeout=0;this.dimension="rgRow"}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){if(this.dimension!==e.dimension){return[2]}(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.element.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.element.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};Object.defineProperty(e.prototype,"size",{get:function(){if(this.dimension==="rgRow"){return this.element.clientHeight}return this.element.clientWidth},set:function(e){if(this.dimension==="rgRow"){this.element.style.minWidth="".concat(e,"px");return}this.element.style.minHeight="".concat(e,"px")},enumerable:false,configurable:true});e.prototype.connectedCallback=function(){var e=this;this.scrollService=new wv({beforeScroll:function(t){return e.scrollVirtual.emit(t)},afterScroll:function(t){var r=t.dimension==="rgRow"?"scrollTop":"scrollLeft";e.element[r]=t.coordinate}})};e.prototype.disconnectedCallback=function(){clearTimeout(this.autoHideTimeout)};e.prototype.componentWillLoad=function(){this.scrollSize=ms(document);this.isAutoHide=!this.scrollSize};e.prototype.componentDidRender=function(){var e=this.dimension==="rgRow"?"scrollHeight":"scrollWidth";if(this.element[e]>this.size){this.size=this.scrollSize}else{this.size=0}this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)};e.prototype.onScroll=function(e){var t;var r="scrollLeft";if(this.dimension==="rgRow"){r="scrollTop"}if(this.isAutoHide){this.size=20;this.autoHideTimeout=this.autoHide(this.autoHideTimeout)}var n=e.target;(t=this.scrollService)===null||t===void 0?void 0:t.scroll(n[r]||0,this.dimension)};e.prototype.autoHide=function(e){var t=this;clearTimeout(e);return setTimeout((function(){t.size=0}),6e3)};e.prototype.render=function(){var e;var t=this;var r=this.dimension==="rgRow"?"height":"width";return i(s,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:function(e){return t.onScroll(e)}}),i("div",{style:(e={},e[r]="".concat(this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize")),"px"),e)}))};e.prototype.extContentSize=function(e,t){return wv.getVirtualContentSize(t,this.size,e)};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());bv.style=yv;var Lv=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.temp-bg-range{display:block;position:absolute;pointer-events:none;z-index:9;border:1px solid #ff5e00;box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}";var xv=e("revogr_temp_range",function(){function e(e){var t=this;o(this,e);this.onChange=wc.throttle((function(e){return t.doChange(e)}),300)}e.prototype.doChange=function(e){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.componentDidRender=function(){if(this.el){this.onChange(this.el)}};e.prototype.render=function(){var e;var t=this;var r=this.selectionStore.get("tempRange");var n=this.selectionStore.get("tempRangeType");if(!r){return}var o="bottom";var a="right";var u=this.getRange();if(!u){return}if(r.y<u.y){o="top"}if(r.x<u.x){a="left"}var l="".concat(a," ").concat(o);var c=Ef(r,this.dimensionRow.state,this.dimensionCol.state);return i(s,{class:(e={},e[yl]=true,e[n||""]=true,e),style:c},i("div",{class:l,ref:function(e){return t.el=e}}))};e.prototype.getRange=function(){var e=this.selectionStore.get("range");if(e){return e}var t=this.selectionStore.get("focus");if(!t){return null}return Object.assign(Object.assign({},t),{x1:t.x,y1:t.y})};return e}());xv.style=Lv;var _v="Expected a function";function Sv(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new TypeError(_v)}if(h(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return b(e,t,{leading:n,maxWait:t,trailing:i})}var Ev=Sv;function kv(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(!!("ResizeObserver"in window))return[3,2];return[4,t.import("./resize-observer-8af0bc0e.system.js")];case 1:e=r.sent();window.ResizeObserver=e.ResizeObserver;r.label=2;case 2:return[2]}}))}))}var zv=function(){function e(e,t){var r=this;this.events=t;this.resizeObserver=null;this.resize=Ev((function(e,t){var n;return(n=r.events)===null||n===void 0?void 0:n.resize(e,t)}),10);this.init(e)}e.prototype.init=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,kv()];case 1:r.sent();this.resizeObserver=new ResizeObserver(this.resize);(t=this.resizeObserver)===null||t===void 0?void 0:t.observe(e);return[2]}}))}))};e.prototype.destroy=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.resizeObserver=null};return e}();var Rv=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}.rowHeaders revogr-data .rgCell{text-align:center}.rowHeaders .rgCell{padding:0 1em !important;min-width:100%}revogr-viewport-scroll{-ms-overflow-style:none;scrollbar-width:none;overflow-x:auto;overflow-y:hidden;position:relative;z-index:1;height:100%}revogr-viewport-scroll::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll.colPinStart,revogr-viewport-scroll.colPinEnd{z-index:2}revogr-viewport-scroll.rgCol{flex-grow:1}revogr-viewport-scroll .content-wrapper{overflow:hidden}revogr-viewport-scroll .inner-content-table{display:flex;flex-direction:column;max-height:100%;width:100%;min-width:100%;position:relative;z-index:0}revogr-viewport-scroll .vertical-inner{overflow-y:auto;position:relative;width:100%;flex-grow:1;-ms-overflow-style:none;scrollbar-width:none;}revogr-viewport-scroll .vertical-inner::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll .vertical-inner revogr-data,revogr-viewport-scroll .vertical-inner revogr-overlay-selection{height:100%}";var Ov=e("revogr_viewport_scroll",function(){function e(e){o(this,e);this.scrollViewport=a(this,"scrollViewport",3);this.resizeViewport=a(this,"resizeViewport",7);this.scrollchange=a(this,"scrollchange",7);this.scrollThrottling=30;this.contentWidth=0;this.contentHeight=0;this.oldValY=this.contentHeight;this.oldValX=this.contentWidth;this.mouseWheelScroll={rgCol:0,rgRow:0}}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){this.latestScrollUpdate(e.dimension);(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.horizontalScroll.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.verticalScroll.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};e.prototype.connectedCallback=function(){var e=this;if("ontouchstart"in document.documentElement){this.scrollThrottling=0}else{this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY");this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")}this.scrollService=new wv({beforeScroll:function(t){return e.scrollViewport.emit(t)},afterScroll:function(t){switch(t.dimension){case"rgCol":e.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":e.verticalScroll.scrollTop=t.coordinate;break}}})};e.prototype.componentDidLoad=function(){var e=this;this.horisontalResize=new zv(this.horizontalScroll,{resize:function(t){var r,n;var i=((r=t[0])===null||r===void 0?void 0:r.contentRect.height)||0;if(i){i-=e.header.clientHeight+e.footer.clientHeight}var o={rgRow:{size:i,contentSize:e.contentHeight,scroll:e.verticalScroll.scrollTop},rgCol:{size:((n=t[0])===null||n===void 0?void 0:n.contentRect.width)||0,contentSize:e.contentWidth,scroll:e.horizontalScroll.scrollLeft}};Qo(o,(function(t,r){var n;e.resizeViewport.emit({dimension:r,size:t.size});(n=e.scrollService)===null||n===void 0?void 0:n.scroll(t.scroll,r,true);e.setScrollVisibility(r,t.size,t.contentSize)}))}})};e.prototype.setScrollVisibility=function(e,t,r){var n=t<r;var i;var o;switch(e){case"rgCol":i=this.horizontalScroll;o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll;o=this.verticalMouseWheel;break}if(n){i.classList.add("scroll-".concat(e));i.addEventListener("mousewheel",o)}else{i.classList.remove("scroll-".concat(e));i.removeEventListener("mousewheel",o)}this.scrollchange.emit({type:e,hasScroll:n})};e.prototype.disconnectedCallback=function(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel);this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel);this.horisontalResize.destroy()};e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.contentHeight<this.oldValY&&this.verticalScroll){this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY}this.oldValY=this.contentHeight;if(this.contentWidth<this.oldValX){this.horizontalScroll.scrollLeft+=this.contentWidth-this.oldValX}this.oldValX=this.contentWidth;this.scrollService.setParams({contentSize:this.contentHeight,clientSize:this.verticalScroll.clientHeight,virtualSize:0},"rgRow");this.scrollService.setParams({contentSize:this.contentWidth,clientSize:this.horizontalScroll.clientWidth,virtualSize:0},"rgCol");this.setScrollVisibility("rgRow",this.verticalScroll.clientHeight,this.contentHeight);this.setScrollVisibility("rgCol",this.horizontalScroll.clientWidth,this.contentWidth);return[2]}))}))};e.prototype.render=function(){var e=this;return i(s,{onScroll:function(t){return e.onScroll("rgCol",t)}},i("div",{class:"inner-content-table",style:{width:"".concat(this.contentWidth,"px")}},i("div",{class:"header-wrapper",ref:function(t){return e.header=t}},i("slot",{name:hc})),i("div",{class:"vertical-inner",ref:function(t){return e.verticalScroll=t},onScroll:function(t){return e.onScroll("rgRow",t)}},i("div",{class:"content-wrapper",style:{height:"".concat(this.contentHeight,"px")}},i("slot",{name:gc}))),i("div",{class:"footer-wrapper",ref:function(t){return e.footer=t}},i("slot",{name:pc}))))};e.prototype.onScroll=function(e,t){var r;var n=t.target;var i=0;switch(e){case"rgCol":i=n===null||n===void 0?void 0:n.scrollLeft;break;case"rgRow":i=n===null||n===void 0?void 0:n.scrollTop;break}var o=(new Date).getTime()-this.mouseWheelScroll[e];if(o>this.scrollThrottling){(r=this.scrollService)===null||r===void 0?void 0:r.scroll(i,e)}};e.prototype.latestScrollUpdate=function(e){this.mouseWheelScroll[e]=(new Date).getTime()};e.prototype.onVerticalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.verticalScroll.scrollTop+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};e.prototype.onHorizontalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.horizontalScroll.scrollLeft+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};Object.defineProperty(e.prototype,"horizontalScroll",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());Ov.style=Rv}}}));