jquery.dgtable 2.0.21 → 2.0.22
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.
- package/dist/lib.cjs.js +1 -1
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +1 -1
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +1 -1
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +1 -1
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +1 -1
- package/dist/lib.umd.min.js.map +1 -1
- package/package.json +2 -2
package/dist/lib.umd.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).DGTableJQuery=t(e.jQuery)}(this,function(e){"use strict";var t,r,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={};function o(){if(r)return t;r=1;var e=function(e){return e&&e.Math===Math&&e};return t=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}var l,s,a,u,c,d,h,f,m={};function p(){return s?l:(s=1,l=function(e){try{return!!e()}catch(e){return!0}})}function v(){if(u)return a;u=1;var e=p();return a=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function g(){if(d)return c;d=1;var e=p();return c=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function b(){if(f)return h;f=1;var e=g(),t=Function.prototype.call;return h=e?t.bind(t):function(){return t.apply(t,arguments)},h}var y,w,C,S,x,_,R,I,W,P,E,N,k,L,O,T,F,A,H,M,z,j,U,B,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le={};function se(){if(y)return le;y=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return le.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,le}function ae(){return C?w:(C=1,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function ue(){if(x)return S;x=1;var e=g(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return S=e?n:function(e){return function(){return r.apply(e,arguments)}},S}function ce(){if(R)return _;R=1;var e=ue(),t=e({}.toString),r=e("".slice);return _=function(e){return r(t(e),8,-1)}}function de(){if(W)return I;W=1;var e=ue(),t=p(),r=ce(),n=Object,i=e("".split);return I=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function he(){return E?P:(E=1,P=function(e){return null==e})}function fe(){if(k)return N;k=1;var e=he(),t=TypeError;return N=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function me(){if(O)return L;O=1;var e=de(),t=fe();return L=function(r){return e(t(r))}}function pe(){if(F)return T;F=1;var e="object"==typeof document&&document.all;return T=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ve(){if(H)return A;H=1;var e=pe();return A=function(t){return"object"==typeof t?null!==t:e(t)}}function ge(){if(z)return M;z=1;var e=o(),t=pe();return M=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},M}function be(){if(U)return j;U=1;var e=ue();return j=e({}.isPrototypeOf)}function ye(){if(q)return B;q=1;var e=o().navigator,t=e&&e.userAgent;return B=t?String(t):""}function we(){if(V)return D;V=1;var e,t,r=o(),n=ye(),i=r.process,l=r.Deno,s=i&&i.versions||l&&l.version,a=s&&s.v8;return a&&(t=(e=a.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),D=t}function Ce(){if(G)return $;G=1;var e=we(),t=p(),r=o().String;return $=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Se(){if(Y)return X;Y=1;var e=Ce();return X=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function xe(){if(K)return J;K=1;var e=ge(),t=pe(),r=be(),n=Se(),i=Object;return J=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function _e(){if(Z)return Q;Z=1;var e=String;return Q=function(t){try{return e(t)}catch(e){return"Object"}}}function Re(){if(te)return ee;te=1;var e=pe(),t=_e(),r=TypeError;return ee=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ie(){if(ne)return re;ne=1;var e=Re(),t=he();return re=function(r,n){var i=r[n];return t(i)?void 0:e(i)},re}function We(){if(oe)return ie;oe=1;var e=b(),t=pe(),r=ve(),n=TypeError;return ie=function(i,o){var l,s;if("string"===o&&t(l=i.toString)&&!r(s=e(l,i)))return s;if(t(l=i.valueOf)&&!r(s=e(l,i)))return s;if("string"!==o&&t(l=i.toString)&&!r(s=e(l,i)))return s;throw new n("Can't convert object to primitive value")}}var Pe,Ee,Ne,ke,Le,Oe,Te,Fe,Ae,He,Me,ze,je,Ue,Be,qe,De,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe={exports:{}};function Ze(){return Ee?Pe:(Ee=1,Pe=!1)}function et(){if(ke)return Ne;ke=1;var e=o(),t=Object.defineProperty;return Ne=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function tt(){if(Le)return Qe.exports;Le=1;var e=Ze(),t=o(),r=et(),n="__core-js_shared__",i=Qe.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Qe.exports}function rt(){if(Te)return Oe;Te=1;var e=tt();return Oe=function(t,r){return e[t]||(e[t]=r||{})}}function nt(){if(Ae)return Fe;Ae=1;var e=fe(),t=Object;return Fe=function(r){return t(e(r))}}function it(){if(Me)return He;Me=1;var e=ue(),t=nt(),r=e({}.hasOwnProperty);return He=Object.hasOwn||function(e,n){return r(t(e),n)}}function ot(){if(je)return ze;je=1;var e=ue(),t=0,r=Math.random(),n=e(1.1.toString);return ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function lt(){if(Be)return Ue;Be=1;var e=o(),t=rt(),r=it(),n=ot(),i=Ce(),l=Se(),s=e.Symbol,a=t("wks"),u=l?s.for||s:s&&s.withoutSetter||n;return Ue=function(e){return r(a,e)||(a[e]=i&&r(s,e)?s[e]:u("Symbol."+e)),a[e]}}function st(){if(De)return qe;De=1;var e=b(),t=ve(),r=xe(),n=Ie(),i=We(),o=lt(),l=TypeError,s=o("toPrimitive");return qe=function(o,a){if(!t(o)||r(o))return o;var u,c=n(o,s);if(c){if(void 0===a&&(a="default"),u=e(c,o,a),!t(u)||r(u))return u;throw new l("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function at(){if($e)return Ve;$e=1;var e=st(),t=xe();return Ve=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ut(){if(Xe)return Ge;Xe=1;var e=o(),t=ve(),r=e.document,n=t(r)&&t(r.createElement);return Ge=function(e){return n?r.createElement(e):{}}}function ct(){if(Je)return Ye;Je=1;var e=v(),t=p(),r=ut();return Ye=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function dt(){if(Ke)return m;Ke=1;var e=v(),t=b(),r=se(),n=ae(),i=me(),o=at(),l=it(),s=ct(),a=Object.getOwnPropertyDescriptor;return m.f=e?a:function(e,u){if(e=i(e),u=o(u),s)try{return a(e,u)}catch(e){}if(l(e,u))return n(!t(r.f,e,u),e[u])},m}var ht,ft,mt,pt,vt,gt,bt,yt={};function wt(){if(ft)return ht;ft=1;var e=v(),t=p();return ht=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Ct(){if(pt)return mt;pt=1;var e=ve(),t=String,r=TypeError;return mt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function St(){if(vt)return yt;vt=1;var e=v(),t=ct(),r=wt(),n=Ct(),i=at(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return yt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var o=s(e,t);o&&o[c]&&(e[t]=r.value,r={configurable:u in r?r[u]:o[u],enumerable:a in r?r[a]:o[a],writable:!1})}return l(e,t,r)}:l:function(e,r,s){if(n(e),r=i(r),n(s),t)try{return l(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[r]=s.value),e},yt}function xt(){if(bt)return gt;bt=1;var e=v(),t=St(),r=ae();return gt=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var _t,Rt,It,Wt,Pt,Et,Nt,kt,Lt,Ot,Tt,Ft,At,Ht,Mt,zt={exports:{}};function jt(){if(Rt)return _t;Rt=1;var e=v(),t=it(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&"something"===function(){}.name,l=i&&(!e||e&&n(r,"name").configurable);return _t={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Ut(){if(Wt)return It;Wt=1;var e=ue(),t=pe(),r=tt(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),It=r.inspectSource}function Bt(){if(kt)return Nt;kt=1;var e=rt(),t=ot(),r=e("keys");return Nt=function(e){return r[e]||(r[e]=t(e))}}function qt(){return Ot?Lt:(Ot=1,Lt={})}function Dt(){if(Ft)return Tt;Ft=1;var e,t,r,n=function(){if(Et)return Pt;Et=1;var e=o(),t=pe(),r=e.WeakMap;return Pt=t(r)&&/native code/.test(String(r))}(),i=o(),l=ve(),s=xt(),a=it(),u=tt(),c=Bt(),d=qt(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||u.state){var p=u.state||(u.state=new m);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(h);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var v=c("state");d[v]=!0,e=function(e,t){if(a(e,v))throw new f(h);return t.facade=e,s(e,v,t),t},t=function(e){return a(e,v)?e[v]:{}},r=function(e){return a(e,v)}}return Tt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!l(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Vt(){if(At)return zt.exports;At=1;var e=ue(),t=p(),r=pe(),n=it(),i=v(),o=jt().CONFIGURABLE,l=Ut(),s=Dt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),m=e([].join),g=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),y=zt.exports=function(e,t,r){"Symbol("===h(c(t),0,7)&&(t="["+f(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=m(b,"string"==typeof t?t:"")),e};return Function.prototype.toString=y(function(){return r(this)&&u(this).source||l(this)},"toString"),zt.exports}function $t(){if(Mt)return Ht;Mt=1;var e=pe(),t=St(),r=Vt(),n=et();return Ht=function(i,o,l,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:o;if(e(l)&&r(l,u,s),s.global)a?i[o]=l:n(o,l);else{try{s.unsafe?i[o]&&(a=!0):delete i[o]}catch(e){}a?i[o]=l:t.f(i,o,{value:l,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i},Ht}var Gt,Xt,Yt,Jt,Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr={};function dr(){if(Jt)return Yt;Jt=1;var e=function(){if(Xt)return Gt;Xt=1;var e=Math.ceil,t=Math.floor;return Gt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Gt}();return Yt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function hr(){if(Qt)return Kt;Qt=1;var e=dr(),t=Math.max,r=Math.min;return Kt=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function fr(){if(er)return Zt;er=1;var e=dr(),t=Math.min;return Zt=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function mr(){if(rr)return tr;rr=1;var e=fr();return tr=function(t){return e(t.length)}}function pr(){if(lr)return or;lr=1;var e=ue(),t=it(),r=me(),n=function(){if(ir)return nr;ir=1;var e=me(),t=hr(),r=mr(),n=function(n){return function(i,o,l){var s=e(i),a=r(s);if(0===a)return!n&&-1;var u,c=t(l,a);if(n&&o!=o){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((n||c in s)&&s[c]===o)return n||c||0;return!n&&-1}};return nr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=qt(),o=e([].push);return or=function(e,l){var s,a=r(e),u=0,c=[];for(s in a)!t(i,s)&&t(a,s)&&o(c,s);for(;l.length>u;)t(a,s=l[u++])&&(~n(c,s)||o(c,s));return c},or}function vr(){return ar?sr:(ar=1,sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var gr,br,yr,wr,Cr,Sr,xr,_r,Rr,Ir,Wr,Pr,Er,Nr,kr,Lr,Or,Tr,Fr={};function Ar(){return gr||(gr=1,Fr.f=Object.getOwnPropertySymbols),Fr}function Hr(){if(yr)return br;yr=1;var e=ge(),t=ue(),r=function(){if(ur)return cr;ur=1;var e=pr(),t=vr().concat("length","prototype");return cr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},cr}(),n=Ar(),i=Ct(),o=t([].concat);return br=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function Mr(){if(Cr)return wr;Cr=1;var e=it(),t=Hr(),r=dt(),n=St();return wr=function(i,o,l){for(var s=t(o),a=n.f,u=r.f,c=0;c<s.length;c++){var d=s[c];e(i,d)||l&&e(l,d)||a(i,d,u(o,d))}}}function zr(){if(Rr)return _r;Rr=1;var e=o(),t=dt().f,r=xt(),n=$t(),i=et(),l=Mr(),s=function(){if(xr)return Sr;xr=1;var e=p(),t=pe(),r=/#|\.prototype\./,n=function(r,n){var a=o[i(r)];return a===s||a!==l&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=n.data={},l=n.NATIVE="N",s=n.POLYFILL="P";return Sr=n}();return _r=function(o,a){var u,c,d,h,f,m=o.target,p=o.global,v=o.stat;if(u=p?e:v?e[m]||i(m,{}):e[m]&&e[m].prototype)for(c in a){if(h=a[c],d=o.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!s(p?c:m+(v?".":"#")+c,o.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(o.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,o)}}}function jr(){if(Er)return Pr;Er=1;var e=function(){if(Wr)return Ir;Wr=1;var e={};return e[lt()("toStringTag")]="z",Ir="[object z]"===String(e)}(),t=pe(),r=ce(),n=lt()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Pr=e?r:function(e){var l,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(l=i(e),n))?s:o?r(l):"Object"===(a=r(l))&&t(l.callee)?"Arguments":a},Pr}function Ur(){if(kr)return Nr;kr=1;var e=jr(),t=String;return Nr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Br(){if(Or)return Lr;Or=1;var e=Vt(),t=St();return Lr=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)}}!function(){if(Tr)return i;Tr=1;var e=zr(),t=v(),r=o(),n=ue(),l=it(),s=pe(),a=be(),u=Ur(),c=Br(),d=Mr(),h=r.Symbol,f=h&&h.prototype;if(t&&s(h)&&(!("description"in f)||void 0!==h().description)){var m={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=a(f,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};d(p,h),p.prototype=f,f.constructor=p;var g="Symbol(description detection)"===String(h("description detection")),b=n(f.valueOf),y=n(f.toString),w=/^Symbol\((.*)\)[^)]+$/,C=n("".replace),S=n("".slice);c(f,"description",{configurable:!0,get:function(){var e=b(this);if(l(m,e))return"";var t=y(e),r=g?S(t,7,-1):C(t,w,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}}();var qr,Dr,Vr,$r,Gr,Xr,Yr,Jr,Kr,Qr,Zr,en,tn,rn,nn,on={};function ln(){if(Dr)return qr;Dr=1;var e=_e(),t=TypeError;return qr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))},qr}function sn(){if($r)return Vr;$r=1;var e=ue();return Vr=e([].slice)}function an(){if(Xr)return Gr;Xr=1;var e=sn(),t=Math.floor,r=function(n,i){var o=n.length;if(o<8)for(var l,s,a=1;a<o;){for(s=a,l=n[a];s&&i(n[s-1],l)>0;)n[s]=n[--s];s!==a++&&(n[s]=l)}else for(var u=t(o/2),c=r(e(n,0,u),i),d=r(e(n,u),i),h=c.length,f=d.length,m=0,p=0;m<h||p<f;)n[m+p]=m<h&&p<f?i(c[m],d[p])<=0?c[m++]:d[p++]:m<h?c[m++]:d[p++];return n};return Gr=r}function un(){if(Jr)return Yr;Jr=1;var e=p();return Yr=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(nn)return on;nn=1;var e=zr(),t=ue(),r=Re(),n=nt(),i=mr(),o=ln(),l=Ur(),s=p(),a=an(),u=un(),c=function(){if(Qr)return Kr;Qr=1;var e=ye().match(/firefox\/(\d+)/i);return Kr=!!e&&+e[1]}(),d=function(){if(en)return Zr;en=1;var e=ye();return Zr=/MSIE|Trident/.test(e)}(),h=we(),f=function(){if(rn)return tn;rn=1;var e=ye().match(/AppleWebKit\/(\d+)\./);return tn=!!e&&+e[1]}(),m=[],v=t(m.sort),g=t(m.push),b=s(function(){m.sort(void 0)}),y=s(function(){m.sort(null)}),w=u("sort"),C=!s(function(){if(h)return h<70;if(!(c&&c>3)){if(d)return!0;if(f)return f<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)m.push({k:t+n,v:r})}for(m.sort(function(e,t){return t.v-e.v}),n=0;n<m.length;n++)t=m[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!w||!C},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(C)return void 0===e?v(t):v(t,e);var s,u,c=[],d=i(t);for(u=0;u<d;u++)u in t&&g(c,t[u]);for(a(c,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),s=i(c),u=0;u<s;)t[u]=c[u++];for(;u<d;)o(t,u++);return t}})}();var cn,dn,hn,fn,mn={};function pn(){if(dn)return cn;dn=1;var e=Ct();return cn=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}var vn,gn,bn,yn,wn,Cn,Sn,xn,_n,Rn,In,Wn,Pn,En,Nn={};function kn(){if(gn)return vn;gn=1;var e=pr(),t=vr();return vn=Object.keys||function(r){return e(r,t)},vn}function Ln(){if(wn)return yn;wn=1;var e=ge();return yn=e("document","documentElement")}function On(){if(Sn)return Cn;Sn=1;var e,t=Ct(),r=function(){if(bn)return Nn;bn=1;var e=v(),t=wt(),r=St(),n=Ct(),i=me(),o=kn();return Nn.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var l,s=i(t),a=o(t),u=a.length,c=0;u>c;)r.f(e,l=a[c++],s[l]);return e},Nn}(),n=vr(),i=qt(),o=Ln(),l=ut(),s=Bt(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},h=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;m="undefined"!=typeof document?document.domain&&e?f(e):(r=l("iframe"),i="java"+u+":",r.style.display="none",o.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var s=n.length;s--;)delete m[a][n[s]];return m()};return i[c]=!0,Cn=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=m(),void 0===n?i:r.f(i,n)},Cn}function Tn(){if(Pn)return Wn;Pn=1;var e,t,r=b(),n=ue(),i=Ur(),l=pn(),s=function(){if(fn)return hn;fn=1;var e=p(),t=o().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),i=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return hn={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=rt(),u=On(),c=Dt().get,d=function(){if(_n)return xn;_n=1;var e=p(),t=o().RegExp;return xn=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),xn}(),h=function(){if(In)return Rn;In=1;var e=p(),t=o().RegExp;return Rn=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Rn}(),f=a("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,g=n("".charAt),y=n("".indexOf),w=n("".replace),C=n("".slice),S=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),x=s.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];return(S||_||x||d||h)&&(v=function(e){var t,n,o,s,a,d,h,p=this,b=c(p),R=i(e),I=b.raw;if(I)return I.lastIndex=p.lastIndex,t=r(v,I,R),p.lastIndex=I.lastIndex,t;var W=b.groups,P=x&&p.sticky,E=r(l,p),N=p.source,k=0,L=R;if(P&&(E=w(E,"y",""),-1===y(E,"g")&&(E+="g"),L=C(R,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(R,p.lastIndex-1))&&(N="(?: "+N+")",L=" "+L,k++),n=new RegExp("^(?:"+N+")",E)),_&&(n=new RegExp("^"+N+"$(?!\\s)",E)),S&&(o=p.lastIndex),s=r(m,P?n:p,L),P?s?(s.input=C(s.input,k),s[0]=C(s[0],k),s.index=p.lastIndex,p.lastIndex+=s[0].length):p.lastIndex=0:S&&s&&(p.lastIndex=p.global?s.index+s[0].length:o),_&&s&&s.length>1&&r(f,s[0],n,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(s[a]=void 0)}),s&&W)for(s.groups=d=u(null),a=0;a<W.length;a++)d[(h=W[a])[0]]=s[h[1]];return s}),Wn=v}function Fn(){if(En)return mn;En=1;var e=zr(),t=Tn();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),mn}Fn();var An,Hn,Mn,zn,jn,Un,Bn,qn,Dn,Vn,$n,Gn,Xn,Yn,Jn,Kn,Qn,Zn={};function ei(){if(Un)return jn;Un=1;var e=ue(),t=dr(),r=Ur(),n=fe(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),h=t(a),f=d.length;return h<0||h>=f?e?"":void 0:(u=o(d,h))<55296||u>56319||h+1===f||(c=o(d,h+1))<56320||c>57343?e?i(d,h):u:e?l(d,h,h+2):c-56320+(u-55296<<10)+65536}};return jn={codeAt:s(!1),charAt:s(!0)}}function ti(){if(qn)return Bn;qn=1;var e=ei().charAt;return Bn=function(t,r,n){return r+(n?e(t,r).length:1)},Bn}function ri(){if(Vn)return Dn;Vn=1;var e=ue(),t=nt(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Dn=function(e,a,u,c,d,h){var f=u+e.length,m=c.length,p=s;return void 0!==d&&(d=t(d),p=l),i(h,p,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,f);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>m){var h=r(s/10);return 0===h?t:h<=m?void 0===c[h-1]?n(i,1):c[h-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})},Dn}!function(){if(Qn)return Zn;Qn=1;var e=function(){if(Hn)return An;Hn=1;var e=g(),t=Function.prototype,r=t.apply,n=t.call;return An="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),An}(),t=b(),r=ue(),n=function(){if(zn)return Mn;zn=1,Fn();var e=b(),t=$t(),r=Tn(),n=p(),i=lt(),o=xt(),l=i("species"),s=RegExp.prototype;return Mn=function(a,u,c,d){var h=i(a),f=!n(function(){var e={};return e[h]=function(){return 7},7!==""[a](e)}),m=f&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!m||c){var p=/./[h],v=u(h,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?f&&!l?{done:!0,value:e(p,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,v[0]),t(s,h,v[1])}d&&o(s[h],"sham",!0)},Mn}(),i=p(),l=Ct(),s=pe(),a=ve(),u=dr(),c=fr(),d=Ur(),h=fe(),f=ti(),m=Ie(),v=ri(),y=function(){if(Yn)return Xn;Yn=1;var e=b(),t=it(),r=be(),n=function(){if(Gn)return $n;Gn=1;var e=o(),t=p(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(l.hasIndices="d"),l)o(s,l[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==i||n!==i});return $n={correct:n}}(),i=pn(),l=RegExp.prototype;return Xn=n.correct?function(e){return e.flags}:function(o){return n.correct||!r(l,o)||t(o,"flags")?o.flags:e(i,o)}}(),w=function(){if(Kn)return Jn;Kn=1;var e=b(),t=Ct(),r=pe(),n=ce(),i=Tn(),o=TypeError;return Jn=function(l,s){var a=l.exec;if(r(a)){var u=e(a,l,s);return null!==u&&t(u),u}if("RegExp"===n(l))return e(i,l,s);throw new o("RegExp#exec called on incompatible receiver")},Jn}(),C=lt()("replace"),S=Math.max,x=Math.min,_=r([].concat),R=r([].push),I=r("".indexOf),W=r("".slice),P=function(e){return void 0===e?e:String(e)},E="$0"==="a".replace(/./,"$0"),N=!!/./[C]&&""===/./[C]("a","$0"),k=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});n("replace",function(r,n,i){var o=N?"$":"$0";return[function(e,r){var i=h(this),o=a(e)?m(e,C):void 0;return o?t(o,e,i,r):t(n,d(i),e,r)},function(t,r){var a=l(this),h=d(t);if("string"==typeof r&&-1===I(r,o)&&-1===I(r,"$<")){var m=i(n,a,h,r);if(m.done)return m.value}var p=s(r);p||(r=d(r));var g,b=d(y(a)),C=-1!==I(b,"g");C&&(g=-1!==I(b,"u"),a.lastIndex=0);for(var E,N=[];null!==(E=w(a,h))&&(R(N,E),C);)""===d(E[0])&&(a.lastIndex=f(h,c(a.lastIndex),g));for(var k="",L=0,O=0;O<N.length;O++){for(var T,F=d((E=N[O])[0]),A=S(x(u(E.index),h.length),0),H=[],M=1;M<E.length;M++)R(H,P(E[M]));var z=E.groups;if(p){var j=_([F],H,A,h);void 0!==z&&R(j,z),T=d(e(r,void 0,j))}else T=v(F,h,A,H,z,r);A>=L&&(k+=W(h,L,A)+T,L=A+F.length)}return k+W(h,L)}]},!k||!E||N)}();var ni,ii,oi,li,si,ai,ui,ci,di,hi,fi,mi,pi,vi,gi,bi,yi,wi,Ci,Si,xi,_i,Ri,Ii,Wi,Pi,Ei,Ni,ki,Li,Oi,Ti,Fi,Ai={};function Hi(){if(ai)return si;ai=1;var e=lt(),t=On(),r=St().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),si=function(e){i[n][e]=!0}}function Mi(){return ci?ui:(ci=1,ui={})}function zi(){if(mi)return fi;mi=1;var e=it(),t=pe(),r=nt(),n=Bt(),i=function(){if(hi)return di;hi=1;var e=p();return di=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),di}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return fi=i?l.getPrototypeOf:function(n){var i=r(n);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof l?s:null},fi}function ji(){if(vi)return pi;vi=1;var e,t,r,n=p(),i=pe(),o=ve(),l=On(),s=zi(),a=$t(),u=lt(),c=Ze(),d=u("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):h=!0),!o(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=l(e)),i(e[d])||a(e,d,function(){return this}),pi={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function Ui(){if(bi)return gi;bi=1;var e=St().f,t=it(),r=lt()("toStringTag");return gi=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function Bi(){if(wi)return yi;wi=1;var e=ji().IteratorPrototype,t=On(),r=ae(),n=Ui(),i=Mi(),o=function(){return this};return yi=function(l,s,a,u){var c=s+" Iterator";return l.prototype=t(e,{next:r(+!u,a)}),n(l,c,!1,!0),i[c]=o,l}}function qi(){if(_i)return xi;_i=1;var e=ve();return xi=function(t){return e(t)||null===t}}function Di(){if(Ii)return Ri;Ii=1;var e=qi(),t=String,r=TypeError;return Ri=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function Vi(){if(Ni)return Ei;Ni=1;var e=zr(),t=b(),r=Ze(),n=jt(),i=pe(),o=Bi(),l=zi(),s=function(){if(Pi)return Wi;Pi=1;var e=function(){if(Si)return Ci;Si=1;var e=ue(),t=Re();return Ci=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ve(),r=fe(),n=Di();return Wi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,l={};try{(i=e(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch(e){}return function(e,l){return r(e),n(l),t(e)?(o?i(e,l):e.__proto__=l,e):e}}():void 0),Wi}(),a=Ui(),u=xt(),c=$t(),d=lt(),h=Mi(),f=ji(),m=n.PROPER,p=n.CONFIGURABLE,v=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,y=d("iterator"),w="keys",C="values",S="entries",x=function(){return this};return Ei=function(n,d,f,b,_,R,I){o(f,d,b);var W,P,E,N=function(e){if(e===_&&F)return F;if(!g&&e&&e in O)return O[e];switch(e){case w:case C:case S:return function(){return new f(this,e)}}return function(){return new f(this)}},k=d+" Iterator",L=!1,O=n.prototype,T=O[y]||O["@@iterator"]||_&&O[_],F=!g&&T||N(_),A="Array"===d&&O.entries||T;if(A&&(W=l(A.call(new n)))!==Object.prototype&&W.next&&(r||l(W)===v||(s?s(W,v):i(W[y])||c(W,y,x)),a(W,k,!0,!0),r&&(h[k]=x)),m&&_===C&&T&&T.name!==C&&(!r&&p?u(O,"name",C):(L=!0,F=function(){return t(T,this)})),_)if(P={values:N(C),keys:R?F:N(w),entries:N(S)},I)for(E in P)(g||L||!(E in O))&&c(O,E,P[E]);else e({target:d,proto:!0,forced:g||L},P);return r&&!I||O[y]===F||c(O,y,F,{name:_}),h[d]=F,P}}function $i(){return Li?ki:(Li=1,ki=function(e,t){return{value:e,done:t}})}function Gi(){if(Ti)return Oi;Ti=1;var e=me(),t=Hi(),r=Mi(),n=Dt(),i=St().f,o=Vi(),l=$i(),s=Ze(),a=v(),u="Array Iterator",c=n.set,d=n.getterFor(u);Oi=o(Array,"Array",function(t,r){c(this,{type:u,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return Oi}!function(){if(Fi)return Ai;Fi=1;var e=o(),t=ii?ni:(ii=1,ni={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(li)return oi;li=1;var e=ut()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return oi=t===Object.prototype?void 0:t}(),n=Gi(),i=xt(),l=Ui(),s=lt()("iterator"),a=n.values,u=function(e,r){if(e){if(e[s]!==a)try{i(e,s,a)}catch(t){e[s]=a}if(l(e,r,!0),t[r])for(var o in n)if(e[o]!==n[o])try{i(e,o,n[o])}catch(t){e[o]=n[o]}}};for(var c in t)u(e[c]&&e[c].prototype,c);u(r,"DOMTokenList")}();var Xi,Yi,Ji,Ki,Qi,Zi,eo,to,ro,no,io,oo,lo,so,ao,uo,co,ho,fo,mo,po,vo,go,bo,yo,wo,Co,So,xo,_o,Ro,Io,Wo,Po,Eo,No={},ko={};function Lo(){if(Ji)return Yi;Ji=1;var e=p(),t=lt(),r=v(),n=Ze(),i=t("iterator");return Yi=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),l="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),l+=r+e}),o.delete("a",2),o.delete("b",void 0),n&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(n||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==l||"x"!==new URL("https://x",void 0).host})}function Oo(){if(eo)return Zi;eo=1;var e=function(){if(Qi)return Ki;Qi=1;var e=ce(),t=ue();return Ki=function(r){if("Function"===e(r))return t(r)}}(),t=Re(),r=g(),n=e(e.bind);return Zi=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},Zi}function To(){if(ro)return to;ro=1;var e=be(),t=TypeError;return to=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function Fo(){if(lo)return oo;lo=1;var e=b(),t=Ct(),r=Ie();return oo=function(n,i,o){var l,s;t(n);try{if(!(l=r(n,"return"))){if("throw"===i)throw o;return o}l=e(l,n)}catch(e){s=!0,l=e}if("throw"===i)throw o;if(s)throw l;return t(l),o}}function Ao(){if(ao)return so;ao=1;var e=Ct(),t=Fo();return so=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function Ho(){if(co)return uo;co=1;var e=lt(),t=Mi(),r=e("iterator"),n=Array.prototype;return uo=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function Mo(){if(fo)return ho;fo=1;var e=ue(),t=p(),r=pe(),n=jr(),i=ge(),o=Ut(),l=function(){},s=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,u=e(a.exec),c=!a.test(l),d=function(e){if(!r(e))return!1;try{return s(l,[],e),!0}catch(e){return!1}},h=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(a,o(e))}catch(e){return!0}};return h.sham=!0,ho=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function zo(){if(po)return mo;po=1;var e=v(),t=St(),r=ae();return mo=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function jo(){if(go)return vo;go=1;var e=ce();return vo=Array.isArray||function(t){return"Array"===e(t)}}function Uo(){if(Co)return wo;Co=1;var e=jr(),t=Ie(),r=he(),n=Mi(),i=lt()("iterator");return wo=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function Bo(){if(xo)return So;xo=1;var e=b(),t=Re(),r=Ct(),n=_e(),i=Uo(),o=TypeError;return So=function(l,s){var a=arguments.length<2?i(l):s;if(t(a))return r(e(a,l));throw new o(n(l)+" is not iterable")},So}function qo(){if(Ro)return _o;Ro=1;var e=Oo(),t=b(),r=nt(),n=Ao(),i=Ho(),o=Mo(),l=mr(),s=zo(),a=function(){if(yo)return bo;yo=1;var e=v(),t=jo(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return bo=i?function(e,i){if(t(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t},bo}(),u=Bo(),c=Uo(),d=Array;return _o=function(h){var f=r(h),m=o(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=e(v,p>2?arguments[2]:void 0));var b,y,w,C,S,x,_=c(f),R=0;if(!_||this===d&&i(_))for(b=l(f),y=m?new this(b):d(b);b>R;R++)x=g?v(f[R],R):f[R],s(y,R,x);else for(y=m?new this:[],S=(C=u(f,_)).next;!(w=t(S,C)).done;R++)x=g?n(C,v,[w.value,R],!0):w.value,s(y,R,x);return a(y,R),y},_o}function Do(){if(Eo)return Po;Eo=1;var e=TypeError;return Po=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var Vo,$o,Go,Xo,Yo,Jo,Ko,Qo,Zo,el={};function tl(){if(Go)return $o;Go=1;var e=o(),t=v(),r=Object.getOwnPropertyDescriptor;return $o=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function rl(){if(Yo)return Xo;Yo=1;var e=$t();return Xo=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function nl(){if(Ko)return Jo;Ko=1,Gi(),function(){if(Vo)return el;Vo=1;var e=zr(),t=ue(),r=hr(),n=RangeError,i=String.fromCharCode,o=String.fromCodePoint,l=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,a=0;s>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw new n(t+" is not a valid code point");o[a]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return l(o,"")}})}();var e=zr(),t=o(),r=tl(),n=ge(),i=b(),l=ue(),s=v(),a=Lo(),u=$t(),c=Br(),d=rl(),h=Ui(),f=Bi(),m=Dt(),p=To(),g=pe(),y=it(),w=Oo(),C=jr(),S=Ct(),x=ve(),_=Ur(),R=On(),I=ae(),W=Bo(),P=Uo(),E=$i(),N=Do(),k=lt(),L=an(),O=k("iterator"),T="URLSearchParams",F=T+"Iterator",A=m.set,H=m.getterFor(T),M=m.getterFor(F),z=r("fetch"),j=r("Request"),U=r("Headers"),B=j&&j.prototype,q=U&&U.prototype,D=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=l("".charAt),J=l([].join),K=l([].push),Q=l("".replace),Z=l([].shift),ee=l([].splice),te=l("".split),re=l("".slice),ne=l(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,le=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?X(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ce=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},de=function(e){for(var t=(e=Q(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=le(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=se(o);if(0===l)i=$(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==Y(e,n));){var u=le(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;K(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=ce(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},he=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(e){return fe[e]},be=function(e){return Q(V(e),he,me)},ye=f(function(e,t){A(this,{type:F,target:H(e).entries,index:0,kind:t})},T,function(){var e=M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,E(void 0,!0);var n=t[r];switch(e.kind){case"keys":return E(n.key,!1);case"values":return E(n.value,!1)}return E([n.key,n.value],!1)},!0),we=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:_(e)))};we.prototype={type:T,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=P(e);if(c)for(r=(t=W(e,c)).next;!(n=i(r,t)).done;){if(l=(o=W(S(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new D("Expected sequence with length 2");K(u,{key:_(s.value),value:_(a.value)})}else for(var d in e)y(e,d)&&K(u,{key:d,value:_(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:de(Z(r)),value:de(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,be(e.key)+"="+be(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ce=function(){p(this,Se);var e=A(this,new we(arguments.length>0?arguments[0]:void 0));s||(this.size=e.entries.length)},Se=Ce.prototype;if(d(Se,{append:function(e,t){var r=H(this);N(arguments.length,2),K(r.entries,{key:_(e),value:_(t)}),s||this.size++,r.updateURL()},delete:function(e){for(var t=H(this),r=N(arguments.length,1),n=t.entries,i=_(e),o=r<2?void 0:arguments[1],l=void 0===o?o:_(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==l&&u.value!==l)a++;else if(ee(n,a,1),void 0!==l)break}s||(this.size=n.length),t.updateURL()},get:function(e){var t=H(this).entries;N(arguments.length,1);for(var r=_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=H(this).entries;N(arguments.length,1);for(var r=_(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=H(this).entries,r=N(arguments.length,1),n=_(e),i=r<2?void 0:arguments[1],o=void 0===i?i:_(i),l=0;l<t.length;){var s=t[l++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=H(this);N(arguments.length,1);for(var n,i=r.entries,o=!1,l=_(e),a=_(t),u=0;u<i.length;u++)(n=i[u]).key===l&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:l,value:a}),s||(this.size=i.length),r.updateURL()},sort:function(){var e=H(this);L(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=H(this).entries,n=w(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new ye(this,"keys")},values:function(){return new ye(this,"values")},entries:function(){return new ye(this,"entries")}},{enumerable:!0}),u(Se,O,Se.entries,{name:"entries"}),u(Se,"toString",function(){return H(this).serialize()},{enumerable:!0}),s&&c(Se,"size",{get:function(){return H(this).entries.length},configurable:!0,enumerable:!0}),h(Ce,T),e({global:!0,constructor:!0,forced:!a},{URLSearchParams:Ce}),!a&&g(U)){var xe=l(q.has),_e=l(q.set),Re=function(e){if(x(e)){var t,r=e.body;if(C(r)===T)return t=e.headers?new U(e.headers):new U,xe(t,"content-type")||_e(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),R(e,{body:I(0,_(r)),headers:I(0,t)})}return e};if(g(z)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return z(e,arguments.length>1?Re(arguments[1]):{})}}),g(j)){var Ie=function(e){return p(this,B),new j(e,arguments.length>1?Re(arguments[1]):{})};B.constructor=Ie,Ie.prototype=B,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ie})}}return Jo={URLSearchParams:Ce,getState:H}}Zo||(Zo=1,function(){if(Qo)return No;Qo=1,function(){if(Xi)return ko;Xi=1;var e=ei().charAt,t=Ur(),r=Dt(),n=Vi(),i=$i(),o="String Iterator",l=r.set,s=r.getterFor(o);n(String,"String",function(e){l(this,{type:o,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(t=e(n,o),r.index+=t.length,i(t,!1))})}();var e,t=zr(),r=v(),n=Lo(),i=o(),l=Oo(),s=ue(),a=$t(),u=Br(),c=To(),d=it(),h=function(){if(io)return no;io=1;var e=v(),t=ue(),r=b(),n=p(),i=kn(),o=Ar(),l=se(),s=nt(),a=de(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return no=!u||n(function(){if(e&&1!==u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(e){r[e]=e}),7!==u({},t)[n]||i(u({},r)).join("")!==o})?function(t,n){for(var u=s(t),c=arguments.length,h=1,f=o.f,m=l.f;c>h;)for(var p,v=a(arguments[h++]),g=f?d(i(v),f(v)):i(v),b=g.length,y=0;b>y;)p=g[y++],e&&!r(m,v,p)||(u[p]=v[p]);return u}:u,no}(),f=qo(),m=sn(),g=ei().codeAt,y=function(){if(Wo)return Io;Wo=1;var e=ue(),t=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,l=e(n.exec),s=Math.floor,a=String.fromCharCode,u=e("".charCodeAt),c=e([].join),d=e([].push),h=e("".replace),f=e("".split),m=e("".toLowerCase),p=function(e){return e+22+75*(e<26)},v=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,h=e.length,f=128,m=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,y=b;for(b&&d(r,"-");y<h;){var w=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<w&&(w=l);var C=y+1;if(w-f>s((t-m)/C))throw new o(i);for(m+=(w-f)*C,f=w,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,x=36;;){var _=x<=g?1:x>=g+26?26:x-g;if(S<_)break;var R=S-_,I=36-_;d(r,a(p(_+R%I))),S=s(R/I),x+=36}d(r,a(p(S))),g=v(m,C,y===b),m=0,y++}}m++,f++}return c(r,"")};return Io=function(e){var t,i,o=[],s=f(h(m(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),w=Ur(),C=Ui(),S=Do(),x=nl(),_=Dt(),R=_.set,I=_.getterFor("URL"),W=x.URLSearchParams,P=x.getState,E=i.URL,N=i.TypeError,k=i.parseInt,L=Math.floor,O=Math.pow,T=s("".charAt),F=s(/./.exec),A=s([].join),H=s(1.1.toString),M=s([].pop),z=s([].push),j=s("".replace),U=s([].shift),B=s("".split),q=s("".slice),D=s("".toLowerCase),V=s([].unshift),$="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,le=/[\t\n\r]/g,ae=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=L(e/256);return A(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=H(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ce={},he=h({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=h({},he,{"#":1,"?":1,"{":1,"}":1}),me=h({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pe=function(e,t){var r=g(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var r;return 2===e.length&&F(Y,T(e,0))&&(":"===(r=T(e,1))||!t&&"|"===r)},be=function(e){var t;return e.length>1&&ge(q(e,0,2))&&(2===e.length||"/"===(t=T(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===D(e)},we=function(e){return".."===(e=D(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ce={},Se={},xe={},_e={},Re={},Ie={},We={},Pe={},Ee={},Ne={},ke={},Le={},Oe={},Te={},Fe={},Ae={},He={},Me={},ze={},je={},Ue={},Be=function(e,t,r){var n,i,o,l=w(e);if(t){if(i=this.parse(l))throw new N(i);this.searchParams=null}else{if(void 0!==r&&(n=new Be(r,!0)),i=this.parse(l,null,n))throw new N(i);(o=P(new W)).bindURL(this),this.searchParams=o}};Be.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ce,c=0,h="",p=!1,v=!1,g=!1;for(t=w(t),r||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,t=j(t,ie,""),t=j(t,oe,"$1")),t=j(t,le,""),i=f(t);c<=i.length;){switch(o=i[c],u){case Ce:if(!o||!F(Y,o)){if(r)return $;u=xe;continue}h+=D(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))h+=D(o);else{if(":"!==o){if(r)return $;h="",u=xe,c=0;continue}if(r&&(a.isSpecial()!==d(ve,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&ve[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Te:a.isSpecial()&&n&&n.scheme===a.scheme?u=_e:a.isSpecial()?u=Pe:"/"===i[c+1]?(u=Re,c++):(a.cannotBeABaseURL=!0,z(a.path,""),u=ze)}break;case xe:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=m(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Ue;break}u="file"===n.scheme?Te:Ie;continue;case _e:if("/"!==o||"/"!==i[c+1]){u=Ie;continue}u=Ee,c++;break;case Re:if("/"===o){u=Ne;break}u=Me;continue;case Ie:if(a.scheme=n.scheme,o===e)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query;else if("/"===o||"\\"===o&&a.isSpecial())u=We;else if("?"===o)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query="",u=je;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.path.length--,u=Me;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query,a.fragment="",u=Ue}break;case We:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Me;continue}u=Ne}else u=Ee;break;case Pe:if(u=Ee,"/"!==o||"/"!==T(h,c+1))continue;c++;break;case Ee:if("/"!==o&&"\\"!==o){u=Ne;continue}break;case Ne:if("@"===o){p&&(h="%40"+h),p=!0,l=f(h);for(var b=0;b<l.length;b++){var y=l[b];if(":"!==y||g){var C=pe(y,me);g?a.password+=C:a.username+=C}else g=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(p&&""===h)return"Invalid authority";c-=f(h).length+1,h="",u=ke}else h+=o;break;case ke:case Le:if(r&&"file"===a.scheme){u=Ae;continue}if(":"!==o||v){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===h)return G;if(r&&""===h&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(h))return s;if(h="",u=He,r)return;continue}"["===o?v=!0:"]"===o&&(v=!1),h+=o}else{if(""===h)return G;if(s=a.parseHost(h))return s;if(h="",u=Oe,r===Le)return}break;case Oe:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=k(h,10);if(S>65535)return X;a.port=a.isSpecial()&&S===ve[a.scheme]?null:S,h=""}if(r)return;u=He;continue}return X}h+=o;break;case Te:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=Me;continue}switch(o){case e:a.host=n.host,a.path=m(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=m(n.path),a.query="",u=je;break;case"#":a.host=n.host,a.path=m(n.path),a.query=n.query,a.fragment="",u=Ue;break;default:be(A(m(i,c),""))||(a.host=n.host,a.path=m(n.path),a.shortenPath()),u=Me;continue}}break;case Fe:if("/"===o||"\\"===o){u=Ae;break}n&&"file"===n.scheme&&!be(A(m(i,c),""))&&(ge(n.path[0],!0)?z(a.path,n.path[0]):a.host=n.host),u=Me;continue;case Ae:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ge(h))u=Me;else if(""===h){if(a.host="",r)return;u=He}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=He}continue}h+=o;break;case He:if(a.isSpecial()){if(u=Me,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Me,"/"!==o))continue}else a.fragment="",u=Ue;else a.query="",u=je;break;case Me:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(we(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||z(a.path,"")):ye(h)?"/"===o||"\\"===o&&a.isSpecial()||z(a.path,""):("file"===a.scheme&&!a.path.length&&ge(h)&&(a.host&&(a.host=""),h=T(h,0)+":"),z(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)U(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Ue)}else h+=pe(o,fe);break;case ze:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Ue):o!==e&&(a.path[0]+=pe(o,ce));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":pe(o,ce)):(a.fragment="",u=Ue);break;case Ue:o!==e&&(a.fragment+=pe(o,he))}c++}},parseHost:function(e){var t,r,n;if("["===T(e,0)){if("]"!==T(e,e.length-1))return G;if(t=function(e){var t,r,n,i,o,l,s,a=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return T(e,d)};if(":"===h()){if(":"!==T(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&F(te,h());)t=16*t+k(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!F(K,h()))return;for(;F(K,h());){if(o=k(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}a[u]=256*a[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;a[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(l=u-c,u=7;0!==u&&l>0;)s=a[u],a[u--]=a[c+l-1],a[c+--l]=s;else if(8!==u)return;return a}(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=y(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=B(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return e;if(o=10,i.length>1&&"0"===T(i,0)&&(o=F(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=k(i,o)}z(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=O(256,5-t))return null}else if(l>255)return null;for(s=M(r),n=0;n<r.length;n++)s+=r[n]*O(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(F(ne,e))return G;for(t="",r=f(e),n=0;n<r.length;n++)t+=pe(r[n],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,l=e.path,s=e.query,a=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=ae(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+A(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new N(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(w(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=f(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=pe(t[r],me)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=pe(t[r],me)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Le)},getPort:function(){var e=this.port;return null===e?"":w(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=w(e))?this.port=null:this.parse(e,Oe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+A(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,He))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=w(e))?this.query=null:("?"===T(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=w(e))?("#"===T(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Ue)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=c(this,De),n=S(arguments.length,1)>1?arguments[1]:void 0,i=R(t,new Be(e,!1,n));r||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},De=qe.prototype,Ve=function(e,t){return{get:function(){return I(this)[e]()},set:t&&function(e){return I(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(u(De,"href",Ve("serialize","setHref")),u(De,"origin",Ve("getOrigin")),u(De,"protocol",Ve("getProtocol","setProtocol")),u(De,"username",Ve("getUsername","setUsername")),u(De,"password",Ve("getPassword","setPassword")),u(De,"host",Ve("getHost","setHost")),u(De,"hostname",Ve("getHostname","setHostname")),u(De,"port",Ve("getPort","setPort")),u(De,"pathname",Ve("getPathname","setPathname")),u(De,"search",Ve("getSearch","setSearch")),u(De,"searchParams",Ve("getSearchParams")),u(De,"hash",Ve("getHash","setHash"))),a(De,"toJSON",function(){return I(this).serialize()},{enumerable:!0}),a(De,"toString",function(){return I(this).serialize()},{enumerable:!0}),E){var $e=E.createObjectURL,Ge=E.revokeObjectURL;$e&&a(qe,"createObjectURL",l($e,E)),Ge&&a(qe,"revokeObjectURL",l(Ge,E))}C(qe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:qe})}());var il,ol,ll={};let sl;!function(){if(il)return ll;il=1;var e=zr(),t=b();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),ol||(ol=1,nl());const al=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function ul(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===sl&&(sl=al()),!t)return e.scrollLeft;switch(sl){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function cl(e,t,r){e.scrollLeft=function(e,t,r){return void 0===r&&(r="rtl"===getComputedStyle(e).direction),function(e,t,r){if(void 0===r&&(r="rtl"===getComputedStyle(e).direction),!0===r&&void 0===sl&&(sl=al()),!r)return t;switch(sl){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}(e,r?e.scrollWidth-e.clientWidth-t:t,r)}(e,t,r)}var dl,hl,fl,ml,pl,vl,gl,bl={};function yl(){return hl?dl:(hl=1,dl="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(gl)return bl;gl=1;var e=zr(),t=function(){if(ml)return fl;ml=1;var e=ue(),t=fe(),r=Ur(),n=yl(),i=e("".replace),o=RegExp("^["+n+"]+"),l=RegExp("(^|[^"+n+"])["+n+"]+$"),s=function(e){return function(n){var s=r(t(n));return 1&e&&(s=i(s,o,"")),2&e&&(s=i(s,l,"$1")),s}};return fl={start:s(1),end:s(2),trim:s(3)}}().trim,r=function(){if(vl)return pl;vl=1;var e=jt().PROPER,t=p(),r=yl();return pl=function(n){return t(function(){return!!r[n]()||"
"!=="
"[n]()||e&&r[n].name!==n})}}();e({target:"String",proto:!0,forced:r("trim")},{trim:function(){return t(this)}})}();const wl=function(e,t){for(let[r,n]of Object.entries(t))e.style[r]=null==n?"":String(n)},Cl=function(e,t,r,n,i){return function(){let o,l,s,a,u=arguments.length<=0?void 0:arguments[0];if(e?(o=arguments.length<=1?void 0:arguments[1],l=!!(arguments.length<=2?void 0:arguments[2]),s=!!(arguments.length<=3?void 0:arguments[3]),a=!!(arguments.length<=4?void 0:arguments[4])):(l=!!(arguments.length<=1?void 0:arguments[1]),s=!!(arguments.length<=2?void 0:arguments[2]),a=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(r)];if(9===u.nodeType){const e=u.documentElement,t=u.body;return Math.max(t["scroll".concat(r)],e["scroll".concat(r)],t["offset".concat(r)],e["offset".concat(r)],e["client".concat(r)])}{let c,d,h=!1,f=!1;if(!e&&"getBoundingClientRect"in u&&(c=u.getBoundingClientRect()[t],h=!0,f=!0),(void 0===c||a||h!==l||f!==s)&&(d=e?getComputedStyle(u,o):getComputedStyle(u)),void 0===c){let e=d[t];"auto"===e?(c=u["client".concat(r)],h=!0):c=parseFloat(e),"border-box"===d.boxSizing&&(h=!0,f=!0)}if(l!==h){let e=parseFloat(d["padding-".concat(n)]||0)+parseFloat(d["padding-".concat(i)]||0);l?c+=e:c-=e}if(s!==f){let e=parseFloat(d["border-".concat(n,"-width")]||0)+parseFloat(d["border-".concat(i,"-width")]||0);s?c+=e:c-=e}return c<0&&(c=0),a&&(c+=parseFloat(d["margin-".concat(n)]||0)+parseFloat(d["margin-".concat(i)]||0)),c}}},Sl=Cl(!1,"width","Width","left","right"),xl=Cl(!1,"height","Height","top","bottom"),_l=(Rl="left",Il="right",function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e===window)return;if(9===e.nodeType)return;const o=getComputedStyle(e);let l=!1;if("border-box"===o.boxSizing&&(l=!0),r=!!r,n=!!n,i=!!i,i&&(t-=(parseFloat(o["margin-".concat(Rl)])||0)+(parseFloat(o["margin-".concat(Il)])||0)),r!==l){let e=parseFloat(o["padding-".concat(Rl)]||0)+parseFloat(o["padding-".concat(Il)]||0);r?t-=e:t+=e}if(n!==l){let e=(parseFloat(o["border-".concat(Rl,"-width")])||0)+(parseFloat(o["border-".concat(Il,"-width")])||0);n?t-=e:t+=e}t<0&&(t=0),e.style.width=t+"px"});var Rl,Il;const Wl=e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;return{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}};let Pl=null;const El=function(e,t){if(null===Pl&&(()=>{try{document.createElement("div").querySelector(":scope > div"),Pl=!0}catch(e){Pl=!1}})(),!0===Pl)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let r=e.id;const n="ID_"+Date.now();e.id=n,t=t.replace(/((?:^|,)\s*)/g,"$1#"+n);try{return e.querySelectorAll(t)}finally{this.id=r}}};class Nl{constructor(){this._events=[]}add(e,t,r,n){let i=t.split("."),o=i[0],l=i[1];e.addEventListener(o,r,n||!1);let s=!0===n||"object"==typeof n&&!0===n.capture;return this._events.push({el:e,name:o,namespace:l,handler:r,useCapture:s}),this}remove(e,t,r,n){let i=t?t.split("."):"",o=i[0],l=i[1],s=!0===n||"object"==typeof n&&!0===n.capture,a=[],u=[];if(e||o||l||r||void 0!==n)for(let t of this._events)e&&t.el!==e||o&&t.name!==o||l&&t.namespace!==l||r&&t.handler!==r||void 0!==n&&t.useCapture!==s?a.push(t):u.push(t);else u=this._events;this._events=a;for(let e of u)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}const kl=Object.prototype.hasOwnProperty,Ll=void 0!==Element.prototype.insertAdjacentElement;function Ol(e,t,r){t?!1===Ll||e instanceof DocumentFragment?r.insertBefore(e,t):t.insertAdjacentElement("beforebegin",e):r.appendChild(e)}function Tl(e,t,r,n){return e.parentNode!==n?(t||(t=document.createDocumentFragment()),t.appendChild(e)):(t&&t.childNodes.length>0&&(Ol(t,r,n),t=null),e.nextSibling!==r&&Ol(e,r,n)),t}const Fl=Symbol("destroyed");class Al{constructor(e){var t;const r=this._p={list:e.list||null,hookScrollEvent:void 0===e.hookScrollEvent||!!e.hookScrollEvent,count:e.count||0,virtual:void 0===e.virtual||!!e.virtual,userItemsParent:e.itemsParent||null,setVirtualWrapperWidth:null===(t=e.autoVirtualWrapperWidth)||void 0===t||t,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:zl,onItemRender:null,onItemUnrender:null,onScrollHeightChange:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};r.currentItemsParent=r.userItemsParent||r.list,this._hookEvents(),"number"==typeof e.count&&this.setCount(e.count),"boolean"==typeof e.virtual&&this.setVirtual(e.virtual),"number"==typeof e.estimatedItemHeight&&this.setEstimatedItemHeight(e.estimatedItemHeight),"number"==typeof e.buffer&&this.setBuffer(e.buffer),"function"==typeof e.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(e.itemHeightEstimatorFn),"function"==typeof e.itemElementCreatorFn&&this.setItemElementCreatorFn(e.itemElementCreatorFn),"function"==typeof e.onItemRender&&this.setOnItemRender(e.onItemRender),"function"==typeof e.onItemUnrender&&this.setOnItemUnrender(e.onItemUnrender),"function"==typeof e.onScrollHeightChange&&this.setOnScrollHeightChange(e.onScrollHeightChange)}destroy(){this[Fl]||(this[Fl]=!0,this._unhookEvents().invalidate()._destroyElements())}setHookScrollEvent(e){const t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}isHookScrollEventEnabled(){return this._p.hookScrollEvent}setCount(e){return this._p.count=e,this.invalidate()}getCount(){return this._p.count}setVirtual(e){const t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}isVirtual(){return this._p.virtual}setEstimatedItemHeight(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}getEstimatedItemHeight(){return this._p.estimatedItemHeight}setAutoVirtualWrapperWidth(e){const t=this._p;return t.autoVirtualWrapperWidth=void 0===e||!!e,t.virtualWrapper&&t.autoVirtualWrapperWidth!==t.virtualWrapperWidthWasSet&&(t.virtualWrapper.style.width=t.autoVirtualWrapperWidth?"100%":"",t.virtualWrapperWidthWasSet=t.autoVirtualWrapperWidth),this}isAutoVirtualWrapperWidth(){return this._p.autoVirtualWrapperWidth}setBuffer(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}getBuffer(){return this._p.buffer}setItemHeightEstimatorFn(e){return this._p.itemHeightEstimatorFn=e,this}setItemElementCreatorFn(e){return this._p.itemElementCreatorFn=e||zl,this}setOnItemRender(e){return this._p.onItemRender=e,this}setOnItemUnrender(e){return this._p.onItemUnrender=e,this}setOnScrollHeightChange(e){return this._p.onScrollHeightChange=e,this}estimateFullHeight(){const e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;{const t=e.existingEls;if(e.count===t.length){let e=t[0].getBoundingClientRect(),r=t[t.length-1].getBoundingClientRect();return r.top-e.top+r.height}return this._calculateItemPosition(e.count)||0}}invalidatePositions(){const e=this._p;return e.itemPositionsNeedsUpdate=0,e.cachedItemHeights=[],e.cachedItemEstimatedHeights=[],e.cachedItemPositions=[],e.cachedItemHeights.length=e.count,e.cachedItemEstimatedHeights.length=e.count,e.cachedItemPositions.length=e.count,this}invalidate(){const e=this._p;this.invalidatePositions(),e.virtual||this._destroyElements();for(let t of e.existingEls)delete t[Hl];return this}render(){if(this[Fl])return;const e=this._p,t=e.list,r=e.virtual;let n=e.virtualWrapper,i=e.currentItemsParent,o=t.scrollTop,l=o+t.clientHeight,s=e.count,a=e.buffer,u=e.onItemUnrender,c=e.existingEls,d=c.length;if(r){const r=t.clientWidth;n||(n=e.virtualWrapper=e.userItemsParent,n||(n=e.virtualWrapper=document.createElement("div"),t.appendChild(n)),this._resetCurrentItemsParent(),i=e.currentItemsParent,e.autoVirtualWrapperWidth?(n.style.width="100%",e.virtualWrapperWidthWasSet=!0):e.virtualWrapperWidthWasSet=!1);for(let e=0;e<d;e++)c[e][Ml]=!0;this._calculateItemPosition(e.count-1);let u=this._getExistingElsRange(),f=jl(e.cachedItemPositions,o),m=Math.max(0,f-a),p=m,v=this._calculateItemPosition(p),g=a,b=Math.max(p,jl(e.cachedItemPositions,l-1)+1+a),y=[],w=null,C=n.childNodes[0];const S=function(e){let t;return-1!==u.firstIndex&&e>=u.firstIndex&&e<=u.lastIndex&&(t=c.find(t=>t[Hl]===e&&!0===t[Ml])),void 0===t&&(t=(u.firstIndex<m||u.firstValidArrayIndex>0?c.find(e=>(e[Hl]<m||!1===kl.call(e,Hl))&&!0===e[Ml]):void 0)||Bl(c,e=>!0===e[Ml])),void 0!==t&&delete t[Ml],t};for(;p<s&&p<b;p++){let e=S(p);C&&C===e&&(C=C.nextSibling);const t=this._dequeueElementForIndex(e,p,C,!0);y.push([t,p]),w=Tl(t,w,C,i)}w&&w.childNodes.length>0&&Ol(w,C,i);for(let t of y){const r=t[1];this._insertItemAndFlow(t[0],r,!1),v=e.cachedItemPositions[r]+e.cachedItemHeights[r]}if(v<l)for(;(v<l||g-- >0)&&p<s;p++){let t=S(p);C&&C===t&&(C=C.nextSibling),this._dequeueElementForIndex(t,p,C,!1),v=e.cachedItemPositions[p]+e.cachedItemHeights[p]}let x=this.estimateFullHeight(),_=x+"px";var h;n.style.height!==_&&(n.style.height=_,null===(h=e.onScrollHeightChange)||void 0===h||h.call(e,x)),r!==t.clientWidth&&this.render()}else if(s!==c.length){for(let e=0;e<d;e++)c[e][Ml]=!0;let e=i.childNodes[0],t=null;for(let r=0;r<s;r++){let n=c.find(e=>e[Hl]===r&&!0===e[Ml]);void 0!==n&&delete n[Ml],e&&e===n&&(e=e.nextSibling),t=Tl(this._dequeueElementForIndex(n,r,e,!0),t,e,i)}t&&t.childNodes.length>0&&Ol(t,e,i)}d=c.length;for(let e=0;e<d;e++){const t=c[e];if(!0!==t[Ml])continue;let r=t.parentNode;r&&r.removeChild(t),u&&void 0!==t[Hl]&&u(t),c.splice(e,1),e--,d--}}addItemsAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if("number"!=typeof e||e<=0)return this;const r=this._p;if((t<0||t>=r.count)&&(t=r.count),r.count+=e,r.virtual)t>=0&&t<r.count&&this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count-e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;const o=r.currentItemsParent;let l=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);let s=n[l-1]?n[l-1].nextSibling:n[0],a=null;for(let r=t,n=t+e;r<n;r++)a=Tl(this._dequeueElementForIndex(void 0,r,s,!0),a,s,o);a&&a.childNodes.length>0&&Ol(a,s,o)}return this}removeItemsAt(e,t){const r=this._p;if("number"!=typeof e||"number"!=typeof t||e<=0||t<0||t>=r.count)return this;if(r.count-=Math.min(e,r.count-t),r.virtual)this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count+e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);const o=r.onItemUnrender;let l=i.firstValidArrayIndex+t-i.firstIndex;if(l<n.length){for(let t=0;t<e;t++){let e=n[l+t],r=e.parentNode;r&&r.removeChild(e),o&&void 0!==e[Hl]&&o(e)}n.splice(l,e)}}return this}refreshItemAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{let r=t.existingEls;if(r.length!==t.count)return this;let n=this._getExistingElsRange();if(e>=n.firstIndex&&e<=n.lastIndex){let t=r[n.firstValidArrayIndex+e-n.firstIndex];delete t[Hl],this._dequeueElementForIndex(t,e,t.nextSibling,!1)}}return this}isItemRendered(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;let r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}getItemElementAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.existingEls,n=this._getExistingElsRange();return e>=n.firstIndex&&e<=n.lastIndex?r[n.firstValidArrayIndex+e-n.firstIndex]:void 0}getItemPosition(e){const t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);{let r=this.getItemElementAt(e);if(void 0===r)return;const n=t.list;return Wl(r).top-Wl(n).top+n.scrollTop}}}getItemIndexFromElement(e){return e?e[Hl]:void 0}getItemSize(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.cachedItemHeights[e-1];return void 0===r&&(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof r&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=r),r}getVisibleItemCount(){const e=this._p,t=e.list;let r,n,i=t.scrollTop,o=t.clientHeight;if(e.virtual)r=jl(e.cachedItemPositions,i),n=jl(e.cachedItemPositions,i+o,r);else{const t=e=>{let t=this.getItemPosition(e);return void 0===t&&(t=1/0),t};r=Ul(e.count,t,i),n=Ul(e.count,t,i+o,r)}return this.getItemPosition(n)===i+o&&n--,n-r+1}createGhostItemElement(e,t,r){const n=this._p;let i=this._dequeueElementForIndex(null,e,!1,!0);try{t&&n.currentItemsParent.appendChild(i),r(i)}finally{if(t){let e=i.parentNode;e&&e.removeChild(i)}n.onItemUnrender&&n.onItemUnrender(i)}}_resetCurrentItemsParent(){var e,t;const r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}_destroyElements(){const e=this._p,t=e.onItemUnrender,r=e.existingEls;for(let e=0;e<r.length;e++){const n=r[e];let i=n.parentNode;i&&i.removeChild(n),t&&void 0!==n[Hl]&&t(n)}return r.length=0,e.virtualWrapper&&(e.virtualWrapper!==e.userItemsParent&&e.virtualWrapper.parentNode&&e.virtualWrapper.parentNode.removeChild(e.virtualWrapper),e.virtualWrapper=null,this._resetCurrentItemsParent()),this}_invalidateItemIndexesAt(e,t){const r=this._p;this._setItemPositionsNeedsUpdate(e);let n=r.existingEls,i=n.length,o=this._getExistingElsRange();if(-1!==o.firstValidArrayIndex&&(-1===t&&(t=n.length),e>=o.firstIndex&&e<=o.lastIndex))for(let r=o.firstValidArrayIndex+e-o.firstIndex,l=0;r<i&&l<t;r++,l++)delete n[r][Hl]}_pushItemIndexesAt(e,t){let r=this._p.existingEls,n=r.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&e>=i.firstIndex&&e<=i.lastIndex)for(let o=i.firstValidArrayIndex+e-i.firstIndex;o<n;o++)r[o][Hl]+=t}_hookEvents(){const e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}_unhookEvents(){const e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}_setItemPositionsNeedsUpdate(e){const t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}_calculateItemPosition(e){const t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){const n=t.count,i=t.cachedItemHeights,o=t.cachedItemEstimatedHeights,l=t.estimatedItemHeight,s=t.itemHeightEstimatorFn;i.length!==n&&(i.length=n,o.length=n,r.length=n);let a=t.itemPositionsNeedsUpdate,u=Math.min(e,n),c=0;a>0&&(c=r[a-1]);for(let e=a;e<=u;e++){if(0===e){r[e]=c;continue}const t=e-1;let n=i[t];void 0===n&&(n=s?s(t):null,"number"!=typeof n&&(n=l),o[t]=n),c+=n,r[e]=c}t.itemPositionsNeedsUpdate=u+1}if(e>0&&e===t.count){let n=t.cachedItemHeights[e-1];return void 0===n&&(n=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof n&&(n=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=n),r[e-1]+n}return r[e]}_dequeueElementForIndex(e,t,r,n){const i=this._p,o=i.virtualWrapper;i.currentItemsParent;const l=i.existingEls,s=i.onItemRender,a=i.onItemUnrender,u=!e,c=u||t!==e[Hl];if(e?a&&c&&a(e):(e=i.itemElementCreatorFn(),o&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),c&&(e.innerHTML="",s&&s(e,t)),!1!==r){if(r instanceof Node||(r=null),!u){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}let i=r?l.indexOf(r):-1;-1===i?l.push(e):l.splice(i,0,e),n||this._insertItemAndFlow(e,t,r)}return e[Hl]=t,e}_insertItemAndFlow(e,t,r){const n=this._p,i=n.virtualWrapper,o=n.currentItemsParent;if(!1!==r&&(r instanceof Node||(r=null),e.parentNode===o&&e.nextSibling===r||Ol(e,r,o)),i){let r=e.getBoundingClientRect().height,i=n.cachedItemHeights[t];i!==r&&(n.cachedItemHeights[t]=r),(void 0!==i&&r!==i||void 0===i&&r!==n.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);let o=this._calculateItemPosition(t);const l=Dl();!1===l?e.style.top="".concat(o,"px"):e.style[l]="translateY(".concat(o,"px)")}}_getExistingElsRange(){const e=this._p.existingEls;let t=-1,r=-1;for(let r=0,n=e.length;r<n;r++)if(!1!==kl.call(e[r],Hl)){t=r;break}for(let t=e.length-1;t>=0;t--)if(!1!==kl.call(e[t],Hl)){r=t;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][Hl]:-1,lastIndex:-1!==r?e[r][Hl]:-1}}}const Hl=Symbol("index"),Ml=Symbol("reuse"),zl=()=>document.createElement("li"),jl=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,i=e.length;if(n<0&&(n+=i),n<=r)return n;for(;r<=n;){let o=Math.floor(r+(n-r)/2),l=e[o];if(l===t||l<=t&&o<i&&e[o+1]>t){for(;o>0&&e[o-1]===l;)o--;return o}l<t?r=o+1:n=o-1}return-1===n?0:i-1},Ul=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(i<0&&(i+=e),i<=n)return i;for(;n<=i;){let o=Math.floor(n+(i-n)/2),l=t(o);if(l===r||l<=r&&o<e&&t(o+1)>r){for(;o>0&&t(o-1)===l;)o--;return o}l<r?n=o+1:i=o-1}return-1===i?0:t(e-1)},Bl=(e,t)=>{for(let r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]};let ql=null;const Dl=()=>{if(null===ql){let e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t=document.createElement("div");ql=!1;for(let r of e)if(t&&void 0!==t.style[r]){ql=r;break}}return ql};function Vl(e,t){for(let r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]}function $l(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}const Gl=Symbol("safe"),Xl=Symbol("hover_in"),Yl=Symbol("hover_out"),Jl=Symbol("row_click"),Kl=Symbol("preview_cell"),Ql=Symbol("cell"),Zl=Symbol("related_touch"),es=Symbol("original_row_index"),ts=Symbol("destroyed");class rs extends Array{constructor(e){var t,r,n;super(),this.onComparatorRequired=null,this.customSortingProvider=null,e=e||{},this.sortColumn=null!==(t=e.sortColumn)&&void 0!==t?t:[],this.onComparatorRequired=null!==(r=e.onComparatorRequired)&&void 0!==r?r:null,this.customSortingProvider=null!==(n=e.customSortingProvider)&&void 0!==n?n:null}add(e,t){if(Array.isArray(e)){const r=e;if("number"==typeof t)for(let e=0,n=r.length;e<n;e++)this.splice(t++,0,r[e]);else for(let e=0,t=r.length;e<t;e++)this.push(r[e])}else{const r=e;"number"==typeof t?this.splice(t,0,r):this.push(r)}}reset(e){this.length=0,e&&this.add(e)}filteredCollection(e,t){if(e&&t){const r=new rs({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let n=0,i=this.length;n<i;n++){const i=this[n];e(i,t)&&(i[es]=n,r.push(i))}return r}return null}sort(e){let t;if("function"==typeof e)return super.sort(e);if(this.sortColumn.length){const e=[];for(let t=0;t<this.sortColumn.length;t++){const r=ns(this.sortColumn[t],this.sortColumn[t].descending);let n=null;this.onComparatorRequired&&(n=this.onComparatorRequired(this.sortColumn[t].column,this.sortColumn[t].descending,r)),n||(n=r),e.push(n.bind(this))}if(1===e.length)t=e[0];else{const r=e.length;t=(t,n)=>{let i=0;for(let o=0;o<r;o++)if(i=e[o](t,n),0!==i)return i;return i}}const r=e=>(e.sort(t),e);if(this.customSortingProvider){const e=this.customSortingProvider(this,r);e!==this&&this.splice(0,this.length,...e)}else r(this)}return this}}function ns(e,t){let r=e.comparePath;"string"==typeof r&&(r=r.split("."));const n=r.length,i=n>1,o=t?1:-1,l=t?-1:1;return function(e,t){let s=e[r[0]],a=t[r[0]];if(i)for(let e=1;e<n;e++)s=s&&s[r[e]],a=a&&a[r[e]];return s===a?0:null==s?o:null==a?l:s<a?o:l}}class is extends Array{constructor(){super()}get(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null}indexOf(e){const t="string"==typeof e?e:e.name;for(let e=0,r=this.length;e<r;e++)if(this[e].name===t)return e;return-1}getByOrder(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null}normalizeOrder(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0);for(let t=0;t<e.length;t++)e[t].order=t;return this}getColumns(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getVisibleColumns(){const e=[];for(let t=0;t<this.length;t++){const r=this[t];r.visible&&e.push(r)}return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getMaxOrder(){let e=0;for(let t=0;t<this.length;t++){const r=this[t];r.order>e&&(e=r.order)}return e}moveColumn(e,t){if(e&&t){const r=e.order,n=t.order;if(r<n)for(let e=r+1;e<=n;e++){const t=this.getByOrder(e);t&&t.order--}else for(let e=r-1;e>=n;e--){const t=this.getByOrder(e);t&&t.order++}e.order=n}return this}}function os(e,t){const r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;let i=e[r];if(null==i)return!1;let o=i.toString(),l=n;return t.caseSensitive||(o=o.toLowerCase(),l=l.toLowerCase()),-1!==o.indexOf(l)}const ls={NONE:"none",AUTO:"auto",SCROLL:"scroll"},ss=document.createElement.bind(document);function as(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function us(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function cs(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function ds(e){const t=e.style;t["-webkit-touch-callout"]="none",t["-webkit-user-select"]="none",t["-moz-user-select"]="none",t["-ms-user-select"]="none",t["-o-user-select"]="none",t["user-select"]="none"}function hs(e,t){const r=e._o.tableClassName,n=ss("div");n.className=e.el.className;const i=ss("div");i.className=r+"-header";const o=ss("div");o.className=r+"-header-row";const l=ss("div");l.className=r+"-header-cell";const s=ss("div");s.textContent=t,l.appendChild(s),o.appendChild(l),i.appendChild(o),n.appendChild(i),wl(n,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(n);const a=Sl(l);return n.remove(),a}function fs(e){const t=e._o,r=e._p;let n,i=0,o=0;r.table&&(i=r.table?r.table.scrollTop:0,o=r.table?r.table.scrollLeft:0,t.virtualTable&&(n=r.table.style.display,r.table.style.display="none"));let l=Sl(e.el);r.table&&(t.virtualTable&&void 0!==n&&(r.table.style.display=n),r.table.scrollTop=i,r.table.scrollLeft=o,r.header&&(r.header.scrollLeft=o));const s=t.tableClassName,a=ss("div");a.className=e.el.className,wl(a,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const u=ss("div");u.className="".concat(s,"-header"),a.appendChild(u);const c=ss("div");c.index=null,c.vIndex=null,c.className="".concat(s,"-header-row"),u.appendChild(c);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=ss("div");n.className="".concat(s,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(ss("div")),c.appendChild(n)}document.body.appendChild(a),l-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(c);const d=c.querySelectorAll("div.".concat(s,"-header-cell"));for(const e of d){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){l-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+cs(e);const n=e.columnName,i=r.columns.get(n);i&&(l-=i.arrowProposedWidth||0)}}return a.remove(),Math.max(0,l)}function ms(e){const t=e._p,r=e._o.tableClassName,n=r+"-row",i=r+"-cell",o=t.visibleColumns,l=o.length,s=ss("div");s.className=n,s.style.float="left";let a=0;for(let e=0;e<l;e++){var u,c;const t=o[e],r=ss("div");r.className=i,r.style.width=(null!==(u=t.actualWidth)&&void 0!==u?u:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(ss("div")),s.appendChild(r),a+=null!==(c=t.actualWidth)&&void 0!==c?c:0}const d=ss("div");d.className=e.el.className,wl(d,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const h=ss("div");h.className=r,d.appendChild(h);const f=ss("div");f.className=r+"-body",f.style.width=a+1e4+"px",h.appendChild(f),f.appendChild(s),document.body.appendChild(d);const m=ss("div");wl(m,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(m);const p=parseFloat(getComputedStyle(m).borderWidth),v=Math.round(p)!==p;m.remove();let g=Sl(s,!0,!0,!0);return g-=t.scrollbarWidth||0,v&&g++,d.remove(),g}function ps(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function vs(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class gs{static saveSelection(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const r=t.getRangeAt(0);if(e!==r.commonAncestorContainer&&!function(e,t){let r=e;for(;(r=null!==(n=null===(i=r)||void 0===i?void 0:i.parentNode)&&void 0!==n?n:null)&&r!==t;)var n,i;return!!r}(r.commonAncestorContainer,e))return null;const n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString().length;return{start:i,end:i+r.toString().length}}static restoreSelection(e,t){let r=0;const n=[e];let i,o=!1,l=!1;const s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!l&&(i=n.pop());)if(i.nodeType===Node.TEXT_NODE){const e=r+i.length;!o&&t.start>=r&&t.start<=e&&(s.setStart(i,t.start-r),o=!0),o&&t.end>=r&&t.end<=e&&(s.setEnd(i,t.end-r),l=!0),r=e}else{let e=i.childNodes.length;for(;e--;)n.push(i.childNodes[e])}const a=window.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}}const bs=document.createElement.bind(document);function ys(e,t){var r,n,i;const o=e._o,l=ps(e);let s=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!s)return null;s[Ql]&&(s=s[Ql]);let a=s.previousSibling;for(;a&&1!==a.nodeType;)a=a.previousSibling;const u=!a,c=t,d=null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=c.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t,h=(d.pageX||d.clientX||0)-Wl(s).left;if(l){var f,m,p;if(!u&&Sl(s,!0,!0,!0)-h<=o.resizeAreaWidth/2)return null!==(f=null===(m=a)||void 0===m?void 0:m.columnName)&&void 0!==f?f:null;if(h<=o.resizeAreaWidth/2)return null!==(p=s.columnName)&&void 0!==p?p:null}else{var v,g,b;if(!u&&h<=o.resizeAreaWidth/2)return null!==(v=null===(g=a)||void 0===g?void 0:g.columnName)&&void 0!==v?v:null;if(Sl(s,!0,!0,!0)-h<=o.resizeAreaWidth/2)return null!==(b=s.columnName)&&void 0!==b?b:null}return null}function ws(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function Cs(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const n=e._o,i=e._p,o=ys(e,t);if(o){const r=i.columns.get(o);if(!n.resizableColumns||!r||!r.resizable)return!1;const l=ps(e);i.resizer&&i.resizer.remove(),i.resizer=bs("div"),i.resizer.className=n.resizerClassName,wl(i.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(i.resizer);const s=r.element,a=i.resizer.parentNode,u=getComputedStyle(a),c=getComputedStyle(s),d=Wl(s),h=Wl(a);h.left+=parseFloat(u.borderLeftWidth)||0,h.top+=parseFloat(u.borderTopWidth)||0,d.left-=h.left,d.top-=h.top,d.top-=parseFloat(c.borderTopWidth)||0;const f=Sl(i.resizer,!0,!0,!0);l?(d.left-=Math.ceil((parseFloat(c.borderLeftWidth)||0)/2),d.left-=Math.ceil(f/2)):(d.left+=Sl(s,!0,!0,!0),d.left+=Math.ceil((parseFloat(c.borderRightWidth)||0)/2),d.left-=Math.ceil(f/2)),wl(i.resizer,{"z-index":"10",visibility:"visible",left:d.left+"px",top:d.top+"px",height:xl(e.el,!1,!1,!1)+"px"}),i.resizer.columnName=s.columnName;try{i.resizer.style.zIndex=""}catch(e){}i.eventsSink.add(document,"mousemove.colresize",t=>Ss(e,t)).add(document,"touchmove.colresize",t=>Ss(e,t)).add(document,"mouseup.colresize",t=>xs(e,t)).add(document,"touchend.colresize",t=>xs(e,t)),t.preventDefault()}}function Ss(e,t){var r,n,i;const o=e._p;if(!o.resizer)return;const l=o.columns.get(o.resizer.columnName);if(!l)return;const s=ps(e),a=l.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),h=Wl(a),f=Wl(u);f.left+=parseFloat(c.borderLeftWidth)||0,h.left-=f.left;const m=Sl(o.resizer,!0,!0,!0),p="border-box"===d.boxSizing,v=t;let g=(null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=v.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-f.left,b=h.left;b-=Math.ceil(m/2),s?(b+=Sl(a,!0,!0,!0),b-=l.ignoreMin?0:e._o.minColumnWidth,p||(b-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),b-=cs(a)),g>b&&(g=b)):(b+=l.ignoreMin?0:e._o.minColumnWidth,p||(b+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),b+=cs(a)),g<b&&(g=b)),o.resizer.style.left=g+"px"}function xs(e,t){var r,n,i;const o=e._o,l=e._p;if(!l.resizer)return;l.eventsSink.remove(document,".colresize");const s=l.columns.get(l.resizer.columnName);if(!s)return l.resizer.remove(),void(l.resizer=null);const a=ps(e),u=s.element,c=u.firstChild,d=l.resizer.parentNode,h=getComputedStyle(d),f=getComputedStyle(u),m=Wl(u),p=Wl(d);p.left+=parseFloat(h.borderLeftWidth)||0,m.left-=p.left;const v=Sl(l.resizer,!0,!0,!0),g="border-box"===f.boxSizing,b=t;let y=(null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=b.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-p.left,w=m.left,C=0;if(w-=Math.ceil(v/2),a){if(!g){y+=cs(u);const e=getComputedStyle(c||u);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=s.arrowProposedWidth||0}w+=Sl(u,!0,!0,!0);const t=w-(s.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),C=w-y}else{if(!g){y-=cs(u);const e=getComputedStyle(c||u);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=s.arrowProposedWidth||0}const t=w+(s.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),C=y-w}l.resizer.remove(),l.resizer=null;let S=C;if(2===s.widthMode){let t=fs(e),r=0,n=0;for(let e=0;e<l.visibleColumns.length;e++){var x;const i=l.visibleColumns[e];i.name!==s.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&l.table&&(t=l.table.clientWidth),S=C/t,n>0){const e=S/((1-S)/r);r+=S,(r<1&&o.relativeWidthGrowsToFillWidth||r>1&&o.relativeWidthShrinksToFillWidth)&&(S=e)}S*=100,S+="%"}e.setColumnWidth(s.name,S)}function _s(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=ys(e,t),l=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));l&&(o&&null!==(r=i.columns.get(o))&&void 0!==r&&r.resizable?l.style.cursor="e-resize":l.style.cursor="")}function Rs(e,t){var r,n,i;const o=e._o,l=t,s=t,a=null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=l.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:{pageX:s.pageX,pageY:s.pageY},u=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!u)return;const c=Wl(u);c.width=Sl(u,!0,!0,!0),c.height=xl(u,!0,!0,!0),e.emit("headercontextmenu",{columnName:u.columnName,pageX:a.pageX,pageY:a.pageY,bounds:c})}function Is(e,t){if(us(t))return;if(ys(e,t))return;const r=e._o,n=e._p,i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return;if(!r.sortableColumns)return;const o=n.columns.get(i.columnName),l=n.rows.sortColumn;if(o&&o.sortable){let t=!0;const n=l.length?l[l.length-1]:null;n&&n.column===o.name&&(n.descending&&r.allowCancelSort?(t=!1,l.splice(l.length-1,1)):n.descending=!n.descending);const i=e;t?i.sort(o.name,void 0,!0).render():i.sort()}}const Ws=Array.prototype.indexOf,Ps=document.createElement.bind(document);function Es(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function Ns(e){const t=e._o,r=e._p;if(!r.tbody)return e;if(t.virtualTable&&r.virtualListHelper){const e=r.virtualListHelper.estimateFullHeight();r._lastVirtualScrollHeight=e,r.tbody.style.height=e+"px"}else r.tbody.style.height="";return e}function ks(e,t){const r=e._p;if(!r.table)return e;const n=r.table.offsetWidth-r.table.clientWidth;if(n!==r.scrollbarWidth||t){var i;r.scrollbarWidth=n;for(let e=0;e<r.columns.length;e++)r.columns[e].actualWidthConsideringScrollbarWidth=null;if(r.scrollbarWidth>0&&r.visibleColumns.length>0&&r.tbody&&r.headerRow){var o;const e=r.visibleColumns.length-1;r.visibleColumns[e].actualWidthConsideringScrollbarWidth=(null!==(o=r.visibleColumns[e].actualWidth)&&void 0!==o?o:0)-r.scrollbarWidth;const t=r.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[e].style.width=t)}r.headerRow.childNodes[e].style.width=t}Os(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function Ls(e,t){const r=e._o,n=e._p;if(!n.tbody||!n.table||!n.headerRow)return e;const i=ms(e);if(n.tbody.style.minWidth=i+"px",n.headerRow.style.minWidth=i+(n.scrollbarWidth||0)+"px",n.eventsSink.remove(n.table,"scroll"),r.width===ls.AUTO)_l(n.table,Sl(n.tbody,!0,!0,!0)),_l(e.el,Sl(n.table,!0,!0,!0));else if(r.width===ls.SCROLL){if(t){const t=n.table?n.table.scrollTop:0,r=n.table?n.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),n.table.scrollTop=t,n.table.scrollLeft=r,n.header&&(n.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,Ts(e)}(e);n.eventsSink.add(n.table,"scroll",r)}return e}function Os(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=ps(e);r.lastIsRtl=l;const s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],h=[];let f=null,m=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){var p;const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var v;e.className+=" "+i,e.style.position="sticky";let t=null!==(v=n.actualWidth)&&void 0!==v?v:0,r=null;if(null===c&&(r=getComputedStyle(e),c=r.boxSizing),"content-box"===c&&(null===r&&(r=getComputedStyle(e)),t+=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0)),"start"===n.sticky){const r=n.stickyPos={direction:"start",absDirection:l?"right":"left",offset:a};e.style[r.absDirection]=a+"px",a+=t,m.length=0,f=[e],d.push(f)}else{const r=n.stickyPos={direction:"end",absDirection:l?"left":"right",offset:u};e.style[r.absDirection]=u+s+"px",u+=t,h.push([e,...m]),m.length=0}}else delete n.stickyPos,null!==(p=f)&&void 0!==p&&p.push(e),null!=m&&m.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}r.stickiesStart=d,r.stickiesEnd=h,Ts(e)}function Ts(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesStart,n=t.stickiesEnd,i=t.stickiesSetStart,o=t.stickiesSetEnd,l=t.stickiesSetStart=new Set,s=t.stickiesSetEnd=new Set;if(null!=r&&r.length||null!=n&&n.length){const e=t.table.scrollLeft;if(e===t.lastStickyScrollLeft)return;t.lastStickyScrollLeft=e;const i=t.headerRow.children,o=1.5,a=t.lastIsRtl,u=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],u=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const c=e.getBoundingClientRect(),d=t!==a;let h=!1;if(s&&u){const e=s.getBoundingClientRect(),r=u.getBoundingClientRect();h=t?a?c.right-o>r.left&&c.left+o<e.right:c.right-o>e.left&&c.left+o<r.right:a?c.left+o<e.right&&c.right-o>r.left:c.left+o<r.right&&c.right-o>e.left}e.classList.toggle(d?"is-sticky-left":"is-sticky-right",h),h&&r.add(Ws.call(i,e))}};u(r,!0,l),u(n,!1,s)}const a=[],u=[];for(const e of l)(null==i?void 0:i.has(e))||a.push({index:e,start:!0});for(const e of s)(null==o?void 0:o.has(e))||a.push({index:e,start:!1});if(i)for(const e of i)l.has(e)||u.push({index:e,start:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,start:!1});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const r of u){var d;null===(d=e[r.index])||void 0===d||d.classList.remove(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}for(const r of a){var h;null===(h=e[r.index])||void 0===h||h.classList.add(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"start");for(const e of s)t.isStickyColumns.set(e,"end")}function Fs(e,t){const r=e._p,n=e._o;if(!r.headerRow||!r.tbody)return e;const i=r.headerRow.querySelectorAll("div.".concat(n.tableClassName,"-header-cell"))[t];if(!i)return e;const o=r.columns.get(i.columnName);if(o){i.style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px";const e=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[t].style.width=e)}}return e}function As(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,i=El(t.headerRow,">div.".concat(e,"-header-cell.sorted")),o=Array.prototype.slice.call(i,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of o){var n;const r=null===(n=e.parentNode)||void 0===n?void 0:n.parentNode;if(r){const e=t.columns.get(r.columnName);e&&(e.arrowProposedWidth=0)}e.remove()}for(const e of i)e.classList.remove("sorted","desc")}return e}function Hs(e,t,r){var n;const i=e._p,o=e._o,l=i.columns.get(t);if(!l)return!1;const s=Ps("span");return s.className="sort-arrow",l.element&&(l.element.className+=r?" sorted desc":" sorted",null!==(n=l.element.firstChild)&&void 0!==n&&n.insertBefore(s,l.element.firstChild.firstChild)),2!==l.widthMode&&o.adjustColumnWidthForSortArrow&&(l.arrowProposedWidth=s.scrollWidth+(parseFloat(getComputedStyle(s).marginRight)||0)+(parseFloat(getComputedStyle(s).marginLeft)||0)),!0}function Ms(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>Cs(e,t)),t.addEventListener("mousemove",t=>_s(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Rs(e,t)}(e,t)),t.addEventListener("mouseleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));n&&(n.style.cursor="")}(e,t)),t.addEventListener("touchstart",t=>function(e,t){const r=e._p;if(r.currentTouchId)return;const n=t.changedTouches[0];r.currentTouchId=n.identifier;const i=t.currentTarget,o={x:n.pageX,y:n.pageY};let l,s=o;const a=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(l)};t[Zl]=t.changedTouches[0],Cs(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{us(e)||e.preventDefault(),r.eventsSink.remove(i,".colheader")},{once:!0}).add(i,"touchcancel.colheader",e=>{r.eventsSink.remove(i,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9&&(ws(e),Rs(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=Vl(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),us(t)||t.preventDefault(),s={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9||r.resizer)&&(n[Zl]=i,Is(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=Vl(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[Zl]=i,_s(e,n)))})}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;const e=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!e)return void t.preventDefault();const o=n.columns.get(e.columnName);o&&o.movable?(e.style.opacity="0.35",n.dragId=161061273*Math.random(),null===(i=t.dataTransfer)||void 0===i||i.setData("text",JSON.stringify({dragId:n.dragId,column:o.name}))):t.preventDefault()}else t.preventDefault()}(e,t)),t.addEventListener("click",t=>Is(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),r.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let e=null;const o=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(o)try{e=JSON.parse(o)}catch(t){e=null}const l=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!l)return;if(!e||n.dragId===e.dragId&&l.columnName!==e.column){const e=n.columns.get(l.columnName);e&&(e.movable||e!==n.visibleColumns[0])&&l.classList.add("drag-over")}}}(e,t)),r.addEventListener("dragover",e=>{e.preventDefault()}),r.addEventListener("dragleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!n)return;const i=t.relatedTarget;(null==i?void 0:i.contains(n.firstChild))||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t,r){t.preventDefault();const n=e._o,i=e._p,o=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text");if(!o)return;let l;try{l=JSON.parse(o)}catch(e){return}const s=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));if(s){if(n.movableColumns&&l.dragId===i.dragId){const t=l.column,r=s.columnName,n=i.columns.get(t),o=i.columns.get(r);n&&o&&n.movable&&(o.movable||o!==i.visibleColumns[0])&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function zs(e,t){let r=Math.max(0,parseFloat(e)||0),n=0;return r>0&&(e===r+"%"?(n=2,r/=100):r>0&&r<1?n=2:(r<t&&(r=t),n=1)),{width:r,mode:n}}function js(e,t){var r;let n=zs(t.width,t.ignoreMin?0:e.minColumnWidth),i={name:t.name,label:void 0===t.label?t.name:t.label,width:n.width,widthMode:n.mode,resizable:void 0===t.resizable||t.resizable,sortable:void 0===t.sortable||t.sortable,movable:void 0===t.movable||t.movable,visible:void 0===t.visible||t.visible,cellClasses:void 0===t.cellClasses?e.cellClasses:t.cellClasses,ignoreMin:void 0!==t.ignoreMin&&!!t.ignoreMin,sticky:void 0===t.sticky?null:t.sticky||null,allowPreview:!(null!==(r=t.allowPreview)&&void 0!==r&&!r),dataPath:[],comparePath:[],order:0};const o=void 0===t.dataPath?i.name:t.dataPath,l=void 0===t.comparePath?o:t.comparePath;return i.dataPath="string"==typeof o?o.split("."):o,i.comparePath="string"==typeof l?l.split("."):l,i}function Us(e){const t=e._p;0===t.visibleColumns.length&&t.columns.length&&(t.columns[0].visible=!0,t.visibleColumns.push(t.columns[0]),e.emit("showcolumn",t.columns[0].name))}function Bs(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||os;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function qs(e,t,r){let n=r.dataPath,i=t[n[0]];for(let e=1;e<n.length&&null!=i;e++)i=i&&i[n[e]];const o=e.cellFormatter;let l;if(o[Gl])l=o(i,r.name,t);else try{l=o(i,r.name,t)}catch(e){l="[ERROR]",console.error("Failed to generate content for cell "+r.name,e)}return null==l&&(l=""),l}const Ds=Array.prototype.indexOf,Vs=document.createElement.bind(document);function $s(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[Ql];let o;try{o=gs.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&gs.restoreSelection(i,o)}catch(e){}e.emit("cellpreviewdestroy",{el:n.firstChild,name:n.columnName,rowIndex:null!==(r=n.rowIndex)&&void 0!==r?r:null,rowData:null==n.rowIndex?null:t.rows[n.rowIndex],cell:i,cellEl:null==i?void 0:i.firstChild}),i&&delete i[Kl],delete n[Ql],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const Gs=Object.prototype.hasOwnProperty;class Xs{constructor(e){var t,r;this.VERSION=Xs.VERSION;const n=this._o={},i=this._p={eventsSink:new Nl,mitt:{all:o=o||new Map,on:function(e,t){var r=o.get(e);r?r.push(t):o.set(e,[t])},off:function(e,t){var r=o.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):o.set(e,[]))},emit:function(e,t){var r=o.get(e);r&&r.slice().map(function(e){e(t)}),(r=o.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var o;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),i.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),n.virtualTable=void 0===e.virtualTable||!!e.virtualTable,n.estimatedRowHeight=e.estimatedRowHeight||void 0,n.rowsBufferSize=e.rowsBufferSize||3,n.minColumnWidth=Math.max(e.minColumnWidth||35,0),n.resizeAreaWidth=e.resizeAreaWidth||8,n.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,n.movableColumns=void 0===e.movableColumns||!!e.movableColumns;const l=null!==(t=e.maxColumnsSortCount)&&void 0!==t?t:e.sortableColumns;n.sortableColumns=void 0===l?1:Number(l)||1,n.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,n.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,n.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,n.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,n.cellClasses=void 0===e.cellClasses?"":e.cellClasses,n.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,n.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,n.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,n.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,n.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,n.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,n.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,n.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,n.width=void 0===e.width?ls.NONE:e.width,n.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,n.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),n.height=e.height,this.setColumns(e.columns||[],!1);let s=[];const a=null!==(r=e.sortedColumns)&&void 0!==r?r:e.sortColumn;if(a){let e=Array.isArray(a)?a:[a];for(let t=0,r=e.length;t<r;t++){var u;let r=e[t];"string"==typeof r&&(r={column:r,descending:!1});let n=i.columns.get(r.column);n&&s.push({column:r.column,comparePath:n.comparePath||n.dataPath,descending:null!==(u=r.descending)&&void 0!==u&&u})}}i.rows=new rs({sortColumn:s}),i.rows.onComparatorRequired=(e,t,r)=>{if(n.onComparatorRequired)return n.onComparatorRequired(e,t,r)},i.rows.customSortingProvider=(e,t)=>n.customSortingProvider?n.customSortingProvider(e,t):t(e),i.filteredRows=null,i.scrollbarWidth=0,i._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,n=t.relatedTarget;n===r||r.contains(n)||r[Kl]&&(n===r[Kl]||r[Kl].contains(n))||function(e,t,r,n){const i=e._o,o=e._p,l=t.firstElementChild;if(!l)return;if(!(l.scrollWidth-l.clientWidth>1||l.scrollHeight-l.clientHeight>1))return;$s(e),o.abortCellPreview=!1;const s=t.parentElement;if(!s)return;const a=null===(r=o.visibleColumns[Ds.call(s.childNodes,t)])||void 0===r?void 0:r.name,u=a?o.columns.get(a):null;if(!u||!1===u.allowPreview)return;const c=Vs("div");c.innerHTML=t.innerHTML,c.className=i.cellPreviewClassName;const d=t.classList.contains("".concat(i.tableClassName,"-header-cell"));d&&(c.classList.add("header"),t.classList.contains("sortable")&&c.classList.add("sortable"),c.draggable=!0,Ms(e,c));const h=getComputedStyle(t),f=getComputedStyle(l),m="right"===h.float,p=m?"right":"left",v=parseFloat(h.paddingLeft)||0,g=parseFloat(h.paddingRight)||0,b=parseFloat(h.paddingTop)||0,y=parseFloat(h.paddingBottom)||0;let w=l.scrollWidth+(t.clientWidth-l.offsetWidth);const C="border-box"===h.boxSizing;if(C?c.style.boxSizing="border-box":(w-=v+g,c.style.marginTop=(parseFloat(h.borderTopWidth)||0)+"px"),!o.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",o.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const S={"box-sizing":C?"border-box":"content-box",width:w+"px","min-height":Math.max(xl(t),/%/.test(h.minHeight)?0:parseFloat(h.minHeight)||0)+"px","padding-left":v+"px","padding-right":g+"px","padding-top":b+"px","padding-bottom":y+"px",overflow:"hidden",position:"absolute","z-index":"-1",[p]:"0",top:"0",cursor:h.cursor};let x=h.backgroundColor;x!==o.transparentBgColor1&&x!==o.transparentBgColor2||(x=getComputedStyle(s).backgroundColor),x!==o.transparentBgColor1&&x!==o.transparentBgColor2||(x="#fff"),S["background-color"]=x,wl(c,S),c.firstChild&&wl(c.firstChild,{direction:f.direction,"white-space":f.whiteSpace,"min-height":f.minHeight,"line-height":f.lineHeight,font:f.font}),e.el.appendChild(c),d&&ds(c),c.rowVIndex=s.vIndex;const _=c.rowIndex=s.index;c.columnName=a;try{const e=gs.saveSelection(t);e&&gs.restoreSelection(c,e)}catch(e){}if(e.emit("cellpreview",{el:c.firstElementChild,name:c.columnName,rowIndex:null!=_?_:null,rowData:null==_?null:o.rows[_],cell:t,cellEl:l}),o.abortCellPreview)return void c.remove();null!=_&&c.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:s.vIndex,rowIndex:_,rowEl:s,rowData:o.rows[_]})});const R=e.el,I=R===window?document:R,W=getComputedStyle(R),P=Wl(t),E=Wl(R);if(m){const e=window.innerWidth;P.right=e-(P.left+Sl(t,!0,!0,!0)),E.right=e-(E.left+Sl(R,!0,!0,!0))}P.left-=parseFloat(W.borderLeftWidth)||0,"right"===p&&void 0!==P.right&&void 0!==E.right&&(P.right-=parseFloat(W.borderRightWidth)||0),P.top-=parseFloat(W.borderTopWidth)||0,"left"===p?P.left+=parseFloat(h.borderLeftWidth)||0:void 0!==P.right&&(P.right+=parseFloat(h.borderRightWidth)||0),P.top+=parseFloat(h.borderTopWidth)||parseFloat(h.borderBottomWidth)||0,P.left-=E.left,"right"===p&&void 0!==P.right&&void 0!==E.right&&(P.right-=E.right),P.top-=E.top;const N=Sl(R,!1,!1,!1)-Sl(c,!0,!0,!0),k="left"===p?P.left:null!==(n=P.right)&&void 0!==n?n:0,L=k<0?0:k>N?N:k;"left"===p?P.left=L:P.right=L;const O=xl(t,!0,!0,!0),T=("scrollTop"in I?I.scrollTop:0)+xl(R,!0)-O;P.top>T&&(P.top=Math.max(0,T));const F={top:P.top+"px","z-index":9999};F[p]=("left"===p?P.left:P.right)+"px",wl(c,F),c[Ql]=t,o.cellPreviewCell=c,t[Kl]=c,o._bindCellHoverOut(t),o._bindCellHoverOut(c),c.addEventListener("wheel",()=>{$s(e)})}(e,r)},n=t=>{let r=t.currentTarget[Ql]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[Kl]&&(n===r[Kl]||r[Kl].contains(n))||function(e){$s(e)}(e)};t._bindCellHoverIn=e=>{e[Xl]||e.addEventListener("mouseover",e[Xl]=r)},t._unbindCellHoverIn=e=>{e[Xl]&&(e.removeEventListener("mouseover",e[Xl]),e[Xl]=null)},t._bindCellHoverOut=e=>{e[Yl]||e.addEventListener("mouseout",e[Yl]=n)},t._unbindCellHoverOut=e=>{e[Yl]&&(e.removeEventListener("mouseout",e[Yl]),e[Yl]=null)}}(this)}on(e,t){return this[ts]||this._p.mitt.on(e,t),this}once(e,t){if(this[ts])return this;const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return this[ts]||(e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear()),this}emit(e,t){return this[ts]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[ts]||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null!==(e=n.virtualListHelper)&&void 0!==e&&e.destroy(),n.virtualListHelper=null,Es(this),null!==(t=n.table)&&void 0!==t&&t.remove(),null!==(r=n.tbody)&&void 0!==r&&r.remove(),n.workerListeners){for(let e=0;e<n.workerListeners.length;e++){let t=n.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}n.workerListeners.length=0}n.rows.length=n.columns.length=0,n._deferredRender&&clearTimeout(n._deferredRender);for(let e in this)Gs.call(this,e)&&(this[e]=null);return this[ts]=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const e=this._o,t=this._p;if(!this.el.offsetParent)return t._deferredRender||(t._deferredRender=setTimeout(()=>{t._deferredRender=null,!this[ts]&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var r;t.tableSkeletonNeedsRendering=!1,e.width===ls.AUTO&&As(this);let o=t.table&&t.table.parentNode?t.table.scrollTop:NaN,l=t.table&&t.table.parentNode?(n=t.table,void 0===i&&(i="rtl"===getComputedStyle(n).direction),i?n.scrollWidth-n.clientWidth-ul(n,i):ul(n,i)):NaN;!function(e,t){const r=e._p,n=e._o;null!==(t=r.virtualListHelper)&&void 0!==t&&t.destroy(),r.virtualListHelper=null,r.table&&n.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Es(e),r.currentTouchId=null,r.header&&r.header.remove();const i=n.tableClassName,o=Ps("div"),l=Ps("div");o.className="".concat(i,"-header"),l.className="".concat(i,"-header-row"),r.header=o,r.headerRow=l,o.appendChild(l),e.el.prepend(o),as(e.el),n.width===ls.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!n.height&&n.virtualTable&&(n.height=xl(e.el,!0))}(this),function(e){const t=e._p,r=e._o,n=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Ps("div"),t=e.appendChild(Ps("div")),r=t.appendChild(Ps("div"));return e.className="".concat(n,"-row"),t.className="".concat(n,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},i=Ps("div");i.className=e.el.className,wl(i,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const o=Ps("div");o.className=n,i.appendChild(o);const l=Ps("div");l.className="".concat(n,"-body"),l.style.width="99999px",o.appendChild(l),document.body.appendChild(i);const s=r(),a=r(),u=r();l.appendChild(s),l.appendChild(a),l.appendChild(u),t.virtualRowHeight=xl(a,!0,!0,!0),i.remove()}if(!t.table){var i;const o=document.createDocumentFragment(),l=Ps("div");l.className=n,r.virtualTable&&(l.className+=" virtual");const s=getComputedStyle(l);let a=(null!==(i=r.height)&&void 0!==i?i:0)-xl(t.header,!0,!0,!0);"border-box"!==s.boxSizing&&(a-=parseFloat(s.borderTopWidth)||0,a-=parseFloat(s.borderBottomWidth)||0,a-=parseFloat(s.paddingTop)||0,a-=parseFloat(s.paddingBottom)||0),wl(l,{height:r.height?a+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===ls.SCROLL?"auto":"hidden"}),o.appendChild(l);const u=Ps("div");u.className=r.tableClassName+"-body",u.style.minHeight="1px",t.table=l,t.tbody=u,as(u),as(l),l.appendChild(u),e.el.appendChild(o),function(e,t){const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",l=i+"-row-alt",s=i+"-cell",a=i+"-sticky";let u=r.visibleColumns,c=u.length;r.notifyRendererOfColumnsConfig=()=>{u=r.visibleColumns,c=u.length;for(let e=0;e<c;e++){const t=u[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new Al({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Ps("div"),onItemRender:(t,i)=>{const d=r.filteredRows||r.rows,h=!!r.filteredRows,f=n.allowCellPreview,m=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+l);const p=d[i],v=h?p[es]:i;t.vIndex=i,t.index=v;for(let e=0;e<c;e++){var g;const i=u[e],o=Ps("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=s,o.style.width=(null!==(g=i._finalWidth)&&void 0!==g?g:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+a,o.style.position="sticky",o.style[i.stickyPos.absDirection]=i.stickyPos.offset+"px";const t=null==m?void 0:m.get(e);"start"===t&&!r.lastIsRtl||"end"===t&&r.lastIsRtl?o.classList.add("is-sticky-left"):("start"===t&&r.lastIsRtl||"end"===t&&!r.lastIsRtl)&&o.classList.add("is-sticky-right")}f&&r._bindCellHoverIn(o),o.appendChild(Ps("div")).innerHTML=qs(n,p,i),t.appendChild(o)}t.addEventListener("click",t[Jl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:v,rowEl:t,rowData:p})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:v,rowEl:t,rowData:p})},onItemUnrender:t=>{t[Jl]&&t.removeEventListener("click",t[Jl]),function(e,t){const r=e._p;for(let e=0,n=t.childNodes,i=n.length;e<i;e++)r._unbindCellHoverIn(n[e])}(e,t),e.emit("rowdestroy",t)},onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&ks(e),r._lastVirtualScrollHeight=t}}),r.virtualListHelper.setCount((null!==(t=r.filteredRows)&&void 0!==t?t:r.rows).length),r.notifyRendererOfColumnsConfig()}(e)}}(this),this.tableWidthChanged(!0,!1),function(e){const t=e._p,r=e._o,n=r.allowCellPreview,i=r.allowHeaderCellPreview,o=r.tableClassName+"-header-cell",l=t.headerRow;for(let a=0;a<t.visibleColumns.length;a++){const u=t.visibleColumns[a];if(u.visible){var s;const c=Ps("div");c.draggable=!0,c.className=o,c.style.width=(null!==(s=u.actualWidth)&&void 0!==s?s:0)+"px",r.sortableColumns&&u.sortable&&(c.className+=" sortable"),c.columnName=u.name,c.setAttribute("data-column",u.name);const d=Ps("div");d.innerHTML=r.headerCellFormatter(u.label,u.name),c.appendChild(d),n&&i&&t._bindCellHoverIn(c),l.appendChild(c),t.visibleColumns[a].element=c,Ms(e,c),ds(c)}}Os(e),e.emit("headerrowcreate",l)}(this),t.virtualListHelper.setCount((null!==(r=t.filteredRows)&&void 0!==r?r:t.rows).length),Ns(this),ks(this,!0),Ls(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)Hs(this,t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(o)||(t.table.scrollTop=o),isNaN(l)||(cl(t.table,l),cl(t.header,l)),this.emit("renderskeleton")}var n,i;return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(e){var t;let r=this._p;return r.tableSkeletonNeedsRendering=!0,null!==(t=r.notifyRendererOfColumnsConfig)&&void 0!==t&&t.call(r),(void 0===e||e)&&this.render(),this}setColumns(e,t){const r=this._p;e=e||[];let n=new is;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=js(this._o,i);void 0!==i.order?(i.order>r&&(r=i.order+1),o.order=i.order):o.order=r++,n.push(o)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),Us(this),this.clearAndRender(t),this}addColumn(e,t,r){const n=this._p;let i=n.columns;if(e&&!i.get(e.name)){let o=null;void 0!==t&&(o="string"==typeof t?i.get(t):i.getByOrder(t));let l=js(this._o,e);l.order=o?o.order:i.getMaxOrder()+1;for(let e=i.getMaxOrder(),t=l.order;e>=t;e--){let t=i.getByOrder(e);t&&t.order++}i.push(l),i.normalizeOrder(),n.visibleColumns=i.getVisibleColumns(),Us(this),this.clearAndRender(r),this.emit("addcolumn",l.name)}return this}removeColumn(e,t){const r=this._p;let n=r.columns,i=n.indexOf(e);return i>-1&&(n.splice(i,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),Us(this),this.clearAndRender(t),this.emit("removecolumn",e)),this}setColumnLabel(e,t){let r=this._p.columns.get(e);if(r&&(r.label=void 0===t?r.name:t,r.element))for(let e=0;e<r.element.firstChild.childNodes.length;e++){let t=r.element.firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this}moveColumn(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._o,i=this._p;let o,l,s=i.columns,a=r?i.visibleColumns:s.getColumns();if("string"==typeof e?o=s.get(e):"number"==typeof e&&(o=a[e]),"string"==typeof t?l=s.get(t):"number"==typeof t&&(l=a[t]),o&&l&&e!==t){let e=o.order,t=l.order,r=s.moveColumn(o,l).getVisibleColumns();if(i.visibleColumns.length!==r.length||i.visibleColumns.some((e,t)=>e!==r[t]))if(i.visibleColumns=r,Us(this),n.virtualTable)this.clearAndRender();else{var u,c;const r=El(i.headerRow,">div.".concat(n.tableClassName,"-header-cell"));let o=e<t?t+1:t,l=e;r[0].parentNode.insertBefore(r[l],r[o]);let s=i.visibleColumns[e],a=(null!==(u=s.actualWidthConsideringScrollbarWidth||s.actualWidth)&&void 0!==u?u:0)+"px",d=i.visibleColumns[t],h=(null!==(c=d.actualWidthConsideringScrollbarWidth||d.actualWidth)&&void 0!==c?c:0)+"px",f=i.tbody.childNodes;for(let r=0,n=f.length;r<n;r++){let n=f[r];1===n.nodeType&&(n.insertBefore(n.childNodes[l],n.childNodes[o]),n.childNodes[t].firstChild.style.width=h,n.childNodes[e].firstChild.style.width=a)}}this.emit("movecolumn",{name:o.name,src:e,dest:t})}return this}setColumnVisible(e,t){const r=this._p;let n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),Us(this),this.clearAndRender()),this}isColumnVisible(e){let t=this._p.columns.get(e);return!!t&&t.visible}setMinColumnWidth(e){let t=this._o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this}getMinColumnWidth(){return this._o.minColumnWidth}setColumnWidth(e,t){let r=this._p.columns.get(e),n=zs(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=vs(r);r.width=n.width,r.widthMode=n.mode;let t=vs(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?vs(t):null}getColumnConfig(e){var t,r;let n=this._p.columns.get(e);return n?{name:n.name,label:n.label,width:vs(n),dataPath:null===(t=n.dataPath)||void 0===t?void 0:t.join("."),comparePath:null===(r=n.comparePath)||void 0===r?void 0:r.join("."),resizable:n.resizable,movable:n.movable,sortable:n.sortable,visible:n.visible,cellClasses:n.cellClasses,ignoreMin:n.ignoreMin,sticky:n.sticky,order:n.order}:null}getColumnsConfig(){const e=this._p;let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t}setMaxColumnSortCount(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=El(t.headerRow,">div.".concat(r.tableClassName,"-header-cell"));for(let n=0,i=e.length;n<i;n++)e[n].classList[r.sortableColumns>0&&t.visibleColumns[n].sortable?"add":"remove"]("sortable")}return this}getMaxColumnSortCount(){return this._o.sortableColumns}setSortableColumns(e){return this.setMaxColumnSortCount(e)}getSortableColumns(){return this.getMaxColumnSortCount()}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}getConvertColumnWidthsToRelative(){return this._o.convertColumnWidthsToRelative}setConvertColumnWidthsToRelative(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._o;return e=!!e,r.convertColumnWidthsToRelative!==e&&(r.convertColumnWidthsToRelative=e,t&&this.tableWidthChanged(!0)),this}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}sort(e,t,r){const n=this._o,i=this._p;let o=i.columns.get(e),l=i.rows.sortColumn.map(e=>({column:e.column,descending:e.descending}));if(o){if(r){for(let e=0;e<l.length;e++)if(l[e].column===o.name){e<l.length-1?l.length=0:(t=l[l.length-1].descending,l.splice(l.length-1,1));break}(n.sortableColumns>0&&l.length>=n.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:o.name,descending:!!t})}else l.length=0;return this.setSortedColumns(l)}resort(){const e=this._p;let t=e.columns,r=e.rows.sortColumn;if(r.length){for(let e=0;e<r.length;e++)t.get(r[e].column)||r.splice(e--,1);e.rows.sortColumn=r,r.length&&(e.rows.sort(),e.filteredRows&&e.filteredRows.sort());let n=[];for(let e=0;e<r.length;e++)n.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:n,resort:!0})}return this}setSortedColumns(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{immediate:!0,render:!0};const n=this._o,i=this._p;let o=i.columns,l=e.filter(e=>o.get(e.column)).map(e=>{let t=o.get(e.column);return{column:t.name,comparePath:t.comparePath||t.dataPath,descending:!!e.descending}});n.sortableColumns>0&&l.length>n.sortableColumns&&(l.length=n.sortableColumns),As(this);for(let e=0;e<l.length;e++)Hs(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&r.immediate&&(i.rows.sort(),i.filteredRows&&i.filteredRows.sort()),null!==(t=i.virtualListHelper)&&void 0!==t&&t.invalidate(),i.virtualListHelper&&r.render&&i.virtualListHelper.render();let s=[];for(let e=0;e<l.length;e++)s.push({column:l[e].column,descending:l[e].descending});return this.emit("sort",{sorts:s}),this}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t}setCellFormatter(e){if(!e){const t=e=>"string"==typeof e?$l(e):e;t[Gl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?$l(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||os;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let n=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Object.assign({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(n||t.filteredRows)&&(this.clearAndRender(),this.emit("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}clearFilter(){const e=this._p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let n=r.columns.get(t);if(!n)return null;let i=r.rows[e];return qs(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?qs(this._o,e,r):null}getRowYPos(e){return this._p.virtualListHelper.getItemPosition(e)||null}getDataForRow(e){const t=this._p;return e<0||e>t.rows.length-1?null:t.rows[e]}getRowCount(){const e=this._p;return e.rows?e.rows.length:0}getIndexForRow(e){return this._p.rows.indexOf(e)}getFilteredRowCount(){const e=this._p;return(e.filteredRows||e.rows).length}getIndexForFilteredRow(e){const t=this._p;return(t.filteredRows||t.rows).indexOf(e)}getDataForFilteredRow(e){const t=this._p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]}getHeaderRowElement(){return this._p.headerRow}addRows(e,t,r,n){let i=this._p;"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),n=void 0===n||!!n;const o=(Array.isArray(e)?e:[e]).length;return e&&(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length?(r&&i.rows.sortColumn.length?this.resort():Bs(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(Ns(this),ks(this),this.render(),Ls(this,!1)):i.tbody&&(this.render(),ks(this),Ls(this,!0))),this.emit("addrows",{count:o,clear:!1})),this}removeRows(e,t,r){let n=this._p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(Bs(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(Ns(this),ks(this),this.render(),Ls(this,!1)):(this.render(),ks(this),Ls(this,!0)))),this}removeRow(e,t){return this.removeRows(e,1,t)}refreshRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._p;if(e<0||e>r.rows.length-1)return this;let n=-1;return r.filteredRows&&-1===(n=r.filteredRows.indexOf(r.rows[e]))||(-1===n&&(n=e),r.virtualListHelper.refreshItemAt(n),t&&r.virtualListHelper.render()),this}getRowElement(e){let t=this._p;if(e<0||e>t.rows.length-1)return null;let r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))?null:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)}refreshAllVirtualRows(){return this._p.virtualListHelper.invalidate().render(),this}setRows(e,t){let r=this._p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():Bs(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=fs(this),o=i,l=0;if(!n.table)return this;t=void 0===t||t;let s=0;if(n.tbody||(t=!1),t&&(s=parseFloat(n.tbody.style.minWidth)||0),o!==n.lastDetectedWidth||e){var a;n.lastDetectedWidth=i;let e=0,u=[],c=0;for(let e=0;e<n.columns.length;e++)n.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<n.visibleColumns.length;t++){let i=n.visibleColumns[t];if(1===i.widthMode){let n=i.width;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,u.push(t))}else if(0===i.widthMode){let n=hs(this,i.label)+20;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,r.convertColumnWidthsToRelative||u.push(t))}else 2===i.widthMode&&(c+=i.width,l++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];0===r.widthMode&&(r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,c+=r.width,l++)}if(l&&(c<1&&r.relativeWidthGrowsToFillWidth||c>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(t.width/=c)}let d=Math.max(0,o);0===d&&(d=n.table.clientWidth);let h=r.minColumnWidth/d;if(isNaN(h)&&(h=0),h>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];2===r.widthMode&&!r.ignoreMin&&r.width<h&&(t+=h-r.width,r.width=h)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>h&&t>0&&(e=Math.min(t,i.width-h),i.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];i.resizable||1!==i.widthMode||(e+=i.width),2===i.widthMode&&(t-=Math.round(d*i.width))}let r=(i-e)/(i-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||1!==t.widthMode)if(2===t.widthMode)t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(d*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,u.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null!==(a=n.notifyRendererOfColumnsConfig)&&void 0!==a&&a.call(n),t){let e=ms(this);s<e&&Ls(this,!1);for(let e=0;e<u.length;e++)Fs(this,u[e]);s>e&&Ls(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let n=xl(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return n!==e.height&&(e.height=n,t.tbody&&(t.tbody.style.height=Math.max(e.height-xl(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return $s(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return ws(this),this}getUrlForElementContent(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e||""]);else{const r=window,n=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder;if(!n)return null;const i=new n;i.append(e||""),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null}isWorkerSupported(){return window.Worker instanceof Function}createWebWorker(e,t,r){if(this.isWorkerSupported()){let n=this._p,i=new Worker(e),o=e=>{e.data.append?this.addRows(e.data.rows,r):this.setRows(e.data.rows,r)};return i.addEventListener("message",o,!1),n.workerListeners||(n.workerListeners=[]),n.workerListeners.push({worker:i,listener:o}),(t||void 0===t)&&i.postMessage(null),i}return null}unbindWebWorker(e){let t=this._p;if(t.workerListeners)for(let r=0;r<t.workerListeners.length;r++)t.workerListeners[r].worker===e&&(e.removeEventListener("message",t.workerListeners[r].listener,!1),t.workerListeners.splice(r,1),r--);return this}}return Xs.VERSION="@@VERSION",Xs.Width=ls,class extends Xs{constructor(t){super(t),this.$el=e(this.el).data("dgtable",this).on("remove",()=>this.destroy()),this.on("headerrowdestroy",()=>{var t;const r=null===(t=this._p)||void 0===t?void 0:t.headerRow;r&&e(r).find("div.".concat(this._o.tableClassName,"-header-cell")).remove()})}destroy(){var t,r;return null!==(t=this._p)&&void 0!==t&&t.table&&e(this._p.table).empty(),null!==(r=this._p)&&void 0!==r&&r.tbody&&e(this._p.tbody).empty(),super.destroy()}}});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).DGTableJQuery=t(e.jQuery)}(this,function(e){"use strict";var t,r,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={};function o(){if(r)return t;r=1;var e=function(e){return e&&e.Math===Math&&e};return t=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}var l,s,a,u,c,d,h,f,m={};function p(){return s?l:(s=1,l=function(e){try{return!!e()}catch(e){return!0}})}function v(){if(u)return a;u=1;var e=p();return a=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function g(){if(d)return c;d=1;var e=p();return c=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function b(){if(f)return h;f=1;var e=g(),t=Function.prototype.call;return h=e?t.bind(t):function(){return t.apply(t,arguments)},h}var y,w,C,S,x,_,R,I,W,P,E,N,k,L,O,T,F,A,H,M,z,j,U,B,q,D,V,$,G,X,Y,J,K,Q,Z,ee,te,re,ne,ie,oe,le={};function se(){if(y)return le;y=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return le.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,le}function ae(){return C?w:(C=1,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function ue(){if(x)return S;x=1;var e=g(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return S=e?n:function(e){return function(){return r.apply(e,arguments)}},S}function ce(){if(R)return _;R=1;var e=ue(),t=e({}.toString),r=e("".slice);return _=function(e){return r(t(e),8,-1)}}function de(){if(W)return I;W=1;var e=ue(),t=p(),r=ce(),n=Object,i=e("".split);return I=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function he(){return E?P:(E=1,P=function(e){return null==e})}function fe(){if(k)return N;k=1;var e=he(),t=TypeError;return N=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function me(){if(O)return L;O=1;var e=de(),t=fe();return L=function(r){return e(t(r))}}function pe(){if(F)return T;F=1;var e="object"==typeof document&&document.all;return T=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function ve(){if(H)return A;H=1;var e=pe();return A=function(t){return"object"==typeof t?null!==t:e(t)}}function ge(){if(z)return M;z=1;var e=o(),t=pe();return M=function(r,n){return arguments.length<2?(i=e[r],t(i)?i:void 0):e[r]&&e[r][n];var i},M}function be(){if(U)return j;U=1;var e=ue();return j=e({}.isPrototypeOf)}function ye(){if(q)return B;q=1;var e=o().navigator,t=e&&e.userAgent;return B=t?String(t):""}function we(){if(V)return D;V=1;var e,t,r=o(),n=ye(),i=r.process,l=r.Deno,s=i&&i.versions||l&&l.version,a=s&&s.v8;return a&&(t=(e=a.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),D=t}function Ce(){if(G)return $;G=1;var e=we(),t=p(),r=o().String;return $=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Se(){if(Y)return X;Y=1;var e=Ce();return X=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function xe(){if(K)return J;K=1;var e=ge(),t=pe(),r=be(),n=Se(),i=Object;return J=n?function(e){return"symbol"==typeof e}:function(n){var o=e("Symbol");return t(o)&&r(o.prototype,i(n))}}function _e(){if(Z)return Q;Z=1;var e=String;return Q=function(t){try{return e(t)}catch(e){return"Object"}}}function Re(){if(te)return ee;te=1;var e=pe(),t=_e(),r=TypeError;return ee=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Ie(){if(ne)return re;ne=1;var e=Re(),t=he();return re=function(r,n){var i=r[n];return t(i)?void 0:e(i)},re}function We(){if(oe)return ie;oe=1;var e=b(),t=pe(),r=ve(),n=TypeError;return ie=function(i,o){var l,s;if("string"===o&&t(l=i.toString)&&!r(s=e(l,i)))return s;if(t(l=i.valueOf)&&!r(s=e(l,i)))return s;if("string"!==o&&t(l=i.toString)&&!r(s=e(l,i)))return s;throw new n("Can't convert object to primitive value")}}var Pe,Ee,Ne,ke,Le,Oe,Te,Fe,Ae,He,Me,ze,je,Ue,Be,qe,De,Ve,$e,Ge,Xe,Ye,Je,Ke,Qe={exports:{}};function Ze(){return Ee?Pe:(Ee=1,Pe=!1)}function et(){if(ke)return Ne;ke=1;var e=o(),t=Object.defineProperty;return Ne=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function tt(){if(Le)return Qe.exports;Le=1;var e=Ze(),t=o(),r=et(),n="__core-js_shared__",i=Qe.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Qe.exports}function rt(){if(Te)return Oe;Te=1;var e=tt();return Oe=function(t,r){return e[t]||(e[t]=r||{})}}function nt(){if(Ae)return Fe;Ae=1;var e=fe(),t=Object;return Fe=function(r){return t(e(r))}}function it(){if(Me)return He;Me=1;var e=ue(),t=nt(),r=e({}.hasOwnProperty);return He=Object.hasOwn||function(e,n){return r(t(e),n)}}function ot(){if(je)return ze;je=1;var e=ue(),t=0,r=Math.random(),n=e(1.1.toString);return ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function lt(){if(Be)return Ue;Be=1;var e=o(),t=rt(),r=it(),n=ot(),i=Ce(),l=Se(),s=e.Symbol,a=t("wks"),u=l?s.for||s:s&&s.withoutSetter||n;return Ue=function(e){return r(a,e)||(a[e]=i&&r(s,e)?s[e]:u("Symbol."+e)),a[e]}}function st(){if(De)return qe;De=1;var e=b(),t=ve(),r=xe(),n=Ie(),i=We(),o=lt(),l=TypeError,s=o("toPrimitive");return qe=function(o,a){if(!t(o)||r(o))return o;var u,c=n(o,s);if(c){if(void 0===a&&(a="default"),u=e(c,o,a),!t(u)||r(u))return u;throw new l("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function at(){if($e)return Ve;$e=1;var e=st(),t=xe();return Ve=function(r){var n=e(r,"string");return t(n)?n:n+""}}function ut(){if(Xe)return Ge;Xe=1;var e=o(),t=ve(),r=e.document,n=t(r)&&t(r.createElement);return Ge=function(e){return n?r.createElement(e):{}}}function ct(){if(Je)return Ye;Je=1;var e=v(),t=p(),r=ut();return Ye=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function dt(){if(Ke)return m;Ke=1;var e=v(),t=b(),r=se(),n=ae(),i=me(),o=at(),l=it(),s=ct(),a=Object.getOwnPropertyDescriptor;return m.f=e?a:function(e,u){if(e=i(e),u=o(u),s)try{return a(e,u)}catch(e){}if(l(e,u))return n(!t(r.f,e,u),e[u])},m}var ht,ft,mt,pt,vt,gt,bt,yt={};function wt(){if(ft)return ht;ft=1;var e=v(),t=p();return ht=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Ct(){if(pt)return mt;pt=1;var e=ve(),t=String,r=TypeError;return mt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function St(){if(vt)return yt;vt=1;var e=v(),t=ct(),r=wt(),n=Ct(),i=at(),o=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";return yt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var o=s(e,t);o&&o[c]&&(e[t]=r.value,r={configurable:u in r?r[u]:o[u],enumerable:a in r?r[a]:o[a],writable:!1})}return l(e,t,r)}:l:function(e,r,s){if(n(e),r=i(r),n(s),t)try{return l(e,r,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[r]=s.value),e},yt}function xt(){if(bt)return gt;bt=1;var e=v(),t=St(),r=ae();return gt=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}var _t,Rt,It,Wt,Pt,Et,Nt,kt,Lt,Ot,Tt,Ft,At,Ht,Mt,zt={exports:{}};function jt(){if(Rt)return _t;Rt=1;var e=v(),t=it(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&"something"===function(){}.name,l=i&&(!e||e&&n(r,"name").configurable);return _t={EXISTS:i,PROPER:o,CONFIGURABLE:l}}function Ut(){if(Wt)return It;Wt=1;var e=ue(),t=pe(),r=tt(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),It=r.inspectSource}function Bt(){if(kt)return Nt;kt=1;var e=rt(),t=ot(),r=e("keys");return Nt=function(e){return r[e]||(r[e]=t(e))}}function qt(){return Ot?Lt:(Ot=1,Lt={})}function Dt(){if(Ft)return Tt;Ft=1;var e,t,r,n=function(){if(Et)return Pt;Et=1;var e=o(),t=pe(),r=e.WeakMap;return Pt=t(r)&&/native code/.test(String(r))}(),i=o(),l=ve(),s=xt(),a=it(),u=tt(),c=Bt(),d=qt(),h="Object already initialized",f=i.TypeError,m=i.WeakMap;if(n||u.state){var p=u.state||(u.state=new m);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(h);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var v=c("state");d[v]=!0,e=function(e,t){if(a(e,v))throw new f(h);return t.facade=e,s(e,v,t),t},t=function(e){return a(e,v)?e[v]:{}},r=function(e){return a(e,v)}}return Tt={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!l(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Vt(){if(At)return zt.exports;At=1;var e=ue(),t=p(),r=pe(),n=it(),i=v(),o=jt().CONFIGURABLE,l=Ut(),s=Dt(),a=s.enforce,u=s.get,c=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),m=e([].join),g=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),y=zt.exports=function(e,t,r){"Symbol("===h(c(t),0,7)&&(t="["+f(c(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=a(e);return n(l,"source")||(l.source=m(b,"string"==typeof t?t:"")),e};return Function.prototype.toString=y(function(){return r(this)&&u(this).source||l(this)},"toString"),zt.exports}function $t(){if(Mt)return Ht;Mt=1;var e=pe(),t=St(),r=Vt(),n=et();return Ht=function(i,o,l,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:o;if(e(l)&&r(l,u,s),s.global)a?i[o]=l:n(o,l);else{try{s.unsafe?i[o]&&(a=!0):delete i[o]}catch(e){}a?i[o]=l:t.f(i,o,{value:l,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i},Ht}var Gt,Xt,Yt,Jt,Kt,Qt,Zt,er,tr,rr,nr,ir,or,lr,sr,ar,ur,cr={};function dr(){if(Jt)return Yt;Jt=1;var e=function(){if(Xt)return Gt;Xt=1;var e=Math.ceil,t=Math.floor;return Gt=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)},Gt}();return Yt=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function hr(){if(Qt)return Kt;Qt=1;var e=dr(),t=Math.max,r=Math.min;return Kt=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)}}function fr(){if(er)return Zt;er=1;var e=dr(),t=Math.min;return Zt=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function mr(){if(rr)return tr;rr=1;var e=fr();return tr=function(t){return e(t.length)}}function pr(){if(lr)return or;lr=1;var e=ue(),t=it(),r=me(),n=function(){if(ir)return nr;ir=1;var e=me(),t=hr(),r=mr(),n=function(n){return function(i,o,l){var s=e(i),a=r(s);if(0===a)return!n&&-1;var u,c=t(l,a);if(n&&o!=o){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((n||c in s)&&s[c]===o)return n||c||0;return!n&&-1}};return nr={includes:n(!0),indexOf:n(!1)}}().indexOf,i=qt(),o=e([].push);return or=function(e,l){var s,a=r(e),u=0,c=[];for(s in a)!t(i,s)&&t(a,s)&&o(c,s);for(;l.length>u;)t(a,s=l[u++])&&(~n(c,s)||o(c,s));return c},or}function vr(){return ar?sr:(ar=1,sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var gr,br,yr,wr,Cr,Sr,xr,_r,Rr,Ir,Wr,Pr,Er,Nr,kr,Lr,Or,Tr,Fr={};function Ar(){return gr||(gr=1,Fr.f=Object.getOwnPropertySymbols),Fr}function Hr(){if(yr)return br;yr=1;var e=ge(),t=ue(),r=function(){if(ur)return cr;ur=1;var e=pr(),t=vr().concat("length","prototype");return cr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},cr}(),n=Ar(),i=Ct(),o=t([].concat);return br=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),l=n.f;return l?o(t,l(e)):t}}function Mr(){if(Cr)return wr;Cr=1;var e=it(),t=Hr(),r=dt(),n=St();return wr=function(i,o,l){for(var s=t(o),a=n.f,u=r.f,c=0;c<s.length;c++){var d=s[c];e(i,d)||l&&e(l,d)||a(i,d,u(o,d))}}}function zr(){if(Rr)return _r;Rr=1;var e=o(),t=dt().f,r=xt(),n=$t(),i=et(),l=Mr(),s=function(){if(xr)return Sr;xr=1;var e=p(),t=pe(),r=/#|\.prototype\./,n=function(r,n){var a=o[i(r)];return a===s||a!==l&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=n.data={},l=n.NATIVE="N",s=n.POLYFILL="P";return Sr=n}();return _r=function(o,a){var u,c,d,h,f,m=o.target,p=o.global,v=o.stat;if(u=p?e:v?e[m]||i(m,{}):e[m]&&e[m].prototype)for(c in a){if(h=a[c],d=o.dontCallGetSet?(f=t(u,c))&&f.value:u[c],!s(p?c:m+(v?".":"#")+c,o.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(o.sham||d&&d.sham)&&r(h,"sham",!0),n(u,c,h,o)}}}function jr(){if(Er)return Pr;Er=1;var e=function(){if(Wr)return Ir;Wr=1;var e={};return e[lt()("toStringTag")]="z",Ir="[object z]"===String(e)}(),t=pe(),r=ce(),n=lt()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Pr=e?r:function(e){var l,s,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(l=i(e),n))?s:o?r(l):"Object"===(a=r(l))&&t(l.callee)?"Arguments":a},Pr}function Ur(){if(kr)return Nr;kr=1;var e=jr(),t=String;return Nr=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function Br(){if(Or)return Lr;Or=1;var e=Vt(),t=St();return Lr=function(r,n,i){return i.get&&e(i.get,n,{getter:!0}),i.set&&e(i.set,n,{setter:!0}),t.f(r,n,i)}}!function(){if(Tr)return i;Tr=1;var e=zr(),t=v(),r=o(),n=ue(),l=it(),s=pe(),a=be(),u=Ur(),c=Br(),d=Mr(),h=r.Symbol,f=h&&h.prototype;if(t&&s(h)&&(!("description"in f)||void 0!==h().description)){var m={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=a(f,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};d(p,h),p.prototype=f,f.constructor=p;var g="Symbol(description detection)"===String(h("description detection")),b=n(f.valueOf),y=n(f.toString),w=/^Symbol\((.*)\)[^)]+$/,C=n("".replace),S=n("".slice);c(f,"description",{configurable:!0,get:function(){var e=b(this);if(l(m,e))return"";var t=y(e),r=g?S(t,7,-1):C(t,w,"$1");return""===r?void 0:r}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}}();var qr,Dr,Vr,$r,Gr,Xr,Yr,Jr,Kr,Qr,Zr,en,tn,rn,nn,on={};function ln(){if(Dr)return qr;Dr=1;var e=_e(),t=TypeError;return qr=function(r,n){if(!delete r[n])throw new t("Cannot delete property "+e(n)+" of "+e(r))},qr}function sn(){if($r)return Vr;$r=1;var e=ue();return Vr=e([].slice)}function an(){if(Xr)return Gr;Xr=1;var e=sn(),t=Math.floor,r=function(n,i){var o=n.length;if(o<8)for(var l,s,a=1;a<o;){for(s=a,l=n[a];s&&i(n[s-1],l)>0;)n[s]=n[--s];s!==a++&&(n[s]=l)}else for(var u=t(o/2),c=r(e(n,0,u),i),d=r(e(n,u),i),h=c.length,f=d.length,m=0,p=0;m<h||p<f;)n[m+p]=m<h&&p<f?i(c[m],d[p])<=0?c[m++]:d[p++]:m<h?c[m++]:d[p++];return n};return Gr=r}function un(){if(Jr)return Yr;Jr=1;var e=p();return Yr=function(t,r){var n=[][t];return!!n&&e(function(){n.call(null,r||function(){return 1},1)})}}!function(){if(nn)return on;nn=1;var e=zr(),t=ue(),r=Re(),n=nt(),i=mr(),o=ln(),l=Ur(),s=p(),a=an(),u=un(),c=function(){if(Qr)return Kr;Qr=1;var e=ye().match(/firefox\/(\d+)/i);return Kr=!!e&&+e[1]}(),d=function(){if(en)return Zr;en=1;var e=ye();return Zr=/MSIE|Trident/.test(e)}(),h=we(),f=function(){if(rn)return tn;rn=1;var e=ye().match(/AppleWebKit\/(\d+)\./);return tn=!!e&&+e[1]}(),m=[],v=t(m.sort),g=t(m.push),b=s(function(){m.sort(void 0)}),y=s(function(){m.sort(null)}),w=u("sort"),C=!s(function(){if(h)return h<70;if(!(c&&c>3)){if(d)return!0;if(f)return f<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)m.push({k:t+n,v:r})}for(m.sort(function(e,t){return t.v-e.v}),n=0;n<m.length;n++)t=m[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:b||!y||!w||!C},{sort:function(e){void 0!==e&&r(e);var t=n(this);if(C)return void 0===e?v(t):v(t,e);var s,u,c=[],d=i(t);for(u=0;u<d;u++)u in t&&g(c,t[u]);for(a(c,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:l(t)>l(r)?1:-1}}(e)),s=i(c),u=0;u<s;)t[u]=c[u++];for(;u<d;)o(t,u++);return t}})}();var cn,dn,hn,fn,mn={};function pn(){if(dn)return cn;dn=1;var e=Ct();return cn=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}}var vn,gn,bn,yn,wn,Cn,Sn,xn,_n,Rn,In,Wn,Pn,En,Nn={};function kn(){if(gn)return vn;gn=1;var e=pr(),t=vr();return vn=Object.keys||function(r){return e(r,t)},vn}function Ln(){if(wn)return yn;wn=1;var e=ge();return yn=e("document","documentElement")}function On(){if(Sn)return Cn;Sn=1;var e,t=Ct(),r=function(){if(bn)return Nn;bn=1;var e=v(),t=wt(),r=St(),n=Ct(),i=me(),o=kn();return Nn.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var l,s=i(t),a=o(t),u=a.length,c=0;u>c;)r.f(e,l=a[c++],s[l]);return e},Nn}(),n=vr(),i=qt(),o=Ln(),l=ut(),s=Bt(),a="prototype",u="script",c=s("IE_PROTO"),d=function(){},h=function(e){return"<"+u+">"+e+"</"+u+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;m="undefined"!=typeof document?document.domain&&e?f(e):(r=l("iframe"),i="java"+u+":",r.style.display="none",o.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var s=n.length;s--;)delete m[a][n[s]];return m()};return i[c]=!0,Cn=Object.create||function(e,n){var i;return null!==e?(d[a]=t(e),i=new d,d[a]=null,i[c]=e):i=m(),void 0===n?i:r.f(i,n)},Cn}function Tn(){if(Pn)return Wn;Pn=1;var e,t,r=b(),n=ue(),i=Ur(),l=pn(),s=function(){if(fn)return hn;fn=1;var e=p(),t=o().RegExp,r=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),n=r||e(function(){return!t("a","y").sticky}),i=r||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return hn={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:r}}(),a=rt(),u=On(),c=Dt().get,d=function(){if(_n)return xn;_n=1;var e=p(),t=o().RegExp;return xn=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),xn}(),h=function(){if(In)return Rn;In=1;var e=p(),t=o().RegExp;return Rn=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Rn}(),f=a("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,g=n("".charAt),y=n("".indexOf),w=n("".replace),C=n("".slice),S=(t=/b*/g,r(m,e=/a/,"a"),r(m,t,"a"),0!==e.lastIndex||0!==t.lastIndex),x=s.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];return(S||_||x||d||h)&&(v=function(e){var t,n,o,s,a,d,h,p=this,b=c(p),R=i(e),I=b.raw;if(I)return I.lastIndex=p.lastIndex,t=r(v,I,R),p.lastIndex=I.lastIndex,t;var W=b.groups,P=x&&p.sticky,E=r(l,p),N=p.source,k=0,L=R;if(P&&(E=w(E,"y",""),-1===y(E,"g")&&(E+="g"),L=C(R,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(R,p.lastIndex-1))&&(N="(?: "+N+")",L=" "+L,k++),n=new RegExp("^(?:"+N+")",E)),_&&(n=new RegExp("^"+N+"$(?!\\s)",E)),S&&(o=p.lastIndex),s=r(m,P?n:p,L),P?s?(s.input=C(s.input,k),s[0]=C(s[0],k),s.index=p.lastIndex,p.lastIndex+=s[0].length):p.lastIndex=0:S&&s&&(p.lastIndex=p.global?s.index+s[0].length:o),_&&s&&s.length>1&&r(f,s[0],n,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(s[a]=void 0)}),s&&W)for(s.groups=d=u(null),a=0;a<W.length;a++)d[(h=W[a])[0]]=s[h[1]];return s}),Wn=v}function Fn(){if(En)return mn;En=1;var e=zr(),t=Tn();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),mn}Fn();var An,Hn,Mn,zn,jn,Un,Bn,qn,Dn,Vn,$n,Gn,Xn,Yn,Jn,Kn,Qn,Zn={};function ei(){if(Un)return jn;Un=1;var e=ue(),t=dr(),r=Ur(),n=fe(),i=e("".charAt),o=e("".charCodeAt),l=e("".slice),s=function(e){return function(s,a){var u,c,d=r(n(s)),h=t(a),f=d.length;return h<0||h>=f?e?"":void 0:(u=o(d,h))<55296||u>56319||h+1===f||(c=o(d,h+1))<56320||c>57343?e?i(d,h):u:e?l(d,h,h+2):c-56320+(u-55296<<10)+65536}};return jn={codeAt:s(!1),charAt:s(!0)}}function ti(){if(qn)return Bn;qn=1;var e=ei().charAt;return Bn=function(t,r,n){return r+(n?e(t,r).length:1)},Bn}function ri(){if(Vn)return Dn;Vn=1;var e=ue(),t=nt(),r=Math.floor,n=e("".charAt),i=e("".replace),o=e("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Dn=function(e,a,u,c,d,h){var f=u+e.length,m=c.length,p=s;return void 0!==d&&(d=t(d),p=l),i(h,p,function(t,i){var l;switch(n(i,0)){case"$":return"$";case"&":return e;case"`":return o(a,0,u);case"'":return o(a,f);case"<":l=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>m){var h=r(s/10);return 0===h?t:h<=m?void 0===c[h-1]?n(i,1):c[h-1]+n(i,1):t}l=c[s-1]}return void 0===l?"":l})},Dn}!function(){if(Qn)return Zn;Qn=1;var e=function(){if(Hn)return An;Hn=1;var e=g(),t=Function.prototype,r=t.apply,n=t.call;return An="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),An}(),t=b(),r=ue(),n=function(){if(zn)return Mn;zn=1,Fn();var e=b(),t=$t(),r=Tn(),n=p(),i=lt(),o=xt(),l=i("species"),s=RegExp.prototype;return Mn=function(a,u,c,d){var h=i(a),f=!n(function(){var e={};return e[h]=function(){return 7},7!==""[a](e)}),m=f&&!n(function(){var e=!1,t=/a/;if("split"===a){var r={};r[l]=function(){return t},(t={constructor:r,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!m||c){var p=/./[h],v=u(h,""[a],function(t,n,i,o,l){var a=n.exec;return a===r||a===s.exec?f&&!l?{done:!0,value:e(p,n,i,o)}:{done:!0,value:e(t,i,n,o)}:{done:!1}});t(String.prototype,a,v[0]),t(s,h,v[1])}d&&o(s[h],"sham",!0)},Mn}(),i=p(),l=Ct(),s=pe(),a=ve(),u=dr(),c=fr(),d=Ur(),h=fe(),f=ti(),m=Ie(),v=ri(),y=function(){if(Yn)return Xn;Yn=1;var e=b(),t=it(),r=be(),n=function(){if(Gn)return $n;Gn=1;var e=o(),t=p(),r=e.RegExp,n=!t(function(){var e=!0;try{r(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(l.hasIndices="d"),l)o(s,l[s]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(t)!==i||n!==i});return $n={correct:n}}(),i=pn(),l=RegExp.prototype;return Xn=n.correct?function(e){return e.flags}:function(o){return n.correct||!r(l,o)||t(o,"flags")?o.flags:e(i,o)}}(),w=function(){if(Kn)return Jn;Kn=1;var e=b(),t=Ct(),r=pe(),n=ce(),i=Tn(),o=TypeError;return Jn=function(l,s){var a=l.exec;if(r(a)){var u=e(a,l,s);return null!==u&&t(u),u}if("RegExp"===n(l))return e(i,l,s);throw new o("RegExp#exec called on incompatible receiver")},Jn}(),C=lt()("replace"),S=Math.max,x=Math.min,_=r([].concat),R=r([].push),I=r("".indexOf),W=r("".slice),P=function(e){return void 0===e?e:String(e)},E="$0"==="a".replace(/./,"$0"),N=!!/./[C]&&""===/./[C]("a","$0"),k=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});n("replace",function(r,n,i){var o=N?"$":"$0";return[function(e,r){var i=h(this),o=a(e)?m(e,C):void 0;return o?t(o,e,i,r):t(n,d(i),e,r)},function(t,r){var a=l(this),h=d(t);if("string"==typeof r&&-1===I(r,o)&&-1===I(r,"$<")){var m=i(n,a,h,r);if(m.done)return m.value}var p=s(r);p||(r=d(r));var g,b=d(y(a)),C=-1!==I(b,"g");C&&(g=-1!==I(b,"u"),a.lastIndex=0);for(var E,N=[];null!==(E=w(a,h))&&(R(N,E),C);)""===d(E[0])&&(a.lastIndex=f(h,c(a.lastIndex),g));for(var k="",L=0,O=0;O<N.length;O++){for(var T,F=d((E=N[O])[0]),A=S(x(u(E.index),h.length),0),H=[],M=1;M<E.length;M++)R(H,P(E[M]));var z=E.groups;if(p){var j=_([F],H,A,h);void 0!==z&&R(j,z),T=d(e(r,void 0,j))}else T=v(F,h,A,H,z,r);A>=L&&(k+=W(h,L,A)+T,L=A+F.length)}return k+W(h,L)}]},!k||!E||N)}();var ni,ii,oi,li,si,ai,ui,ci,di,hi,fi,mi,pi,vi,gi,bi,yi,wi,Ci,Si,xi,_i,Ri,Ii,Wi,Pi,Ei,Ni,ki,Li,Oi,Ti,Fi,Ai={};function Hi(){if(ai)return si;ai=1;var e=lt(),t=On(),r=St().f,n=e("unscopables"),i=Array.prototype;return void 0===i[n]&&r(i,n,{configurable:!0,value:t(null)}),si=function(e){i[n][e]=!0}}function Mi(){return ci?ui:(ci=1,ui={})}function zi(){if(mi)return fi;mi=1;var e=it(),t=pe(),r=nt(),n=Bt(),i=function(){if(hi)return di;hi=1;var e=p();return di=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),di}(),o=n("IE_PROTO"),l=Object,s=l.prototype;return fi=i?l.getPrototypeOf:function(n){var i=r(n);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof l?s:null},fi}function ji(){if(vi)return pi;vi=1;var e,t,r,n=p(),i=pe(),o=ve(),l=On(),s=zi(),a=$t(),u=lt(),c=Ze(),d=u("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):h=!0),!o(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:c&&(e=l(e)),i(e[d])||a(e,d,function(){return this}),pi={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function Ui(){if(bi)return gi;bi=1;var e=St().f,t=it(),r=lt()("toStringTag");return gi=function(n,i,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:i})}}function Bi(){if(wi)return yi;wi=1;var e=ji().IteratorPrototype,t=On(),r=ae(),n=Ui(),i=Mi(),o=function(){return this};return yi=function(l,s,a,u){var c=s+" Iterator";return l.prototype=t(e,{next:r(+!u,a)}),n(l,c,!1,!0),i[c]=o,l}}function qi(){if(_i)return xi;_i=1;var e=ve();return xi=function(t){return e(t)||null===t}}function Di(){if(Ii)return Ri;Ii=1;var e=qi(),t=String,r=TypeError;return Ri=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function Vi(){if(Ni)return Ei;Ni=1;var e=zr(),t=b(),r=Ze(),n=jt(),i=pe(),o=Bi(),l=zi(),s=function(){if(Pi)return Wi;Pi=1;var e=function(){if(Si)return Ci;Si=1;var e=ue(),t=Re();return Ci=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}(),t=ve(),r=fe(),n=Di();return Wi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,l={};try{(i=e(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch(e){}return function(e,l){return r(e),n(l),t(e)?(o?i(e,l):e.__proto__=l,e):e}}():void 0),Wi}(),a=Ui(),u=xt(),c=$t(),d=lt(),h=Mi(),f=ji(),m=n.PROPER,p=n.CONFIGURABLE,v=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,y=d("iterator"),w="keys",C="values",S="entries",x=function(){return this};return Ei=function(n,d,f,b,_,R,I){o(f,d,b);var W,P,E,N=function(e){if(e===_&&F)return F;if(!g&&e&&e in O)return O[e];switch(e){case w:case C:case S:return function(){return new f(this,e)}}return function(){return new f(this)}},k=d+" Iterator",L=!1,O=n.prototype,T=O[y]||O["@@iterator"]||_&&O[_],F=!g&&T||N(_),A="Array"===d&&O.entries||T;if(A&&(W=l(A.call(new n)))!==Object.prototype&&W.next&&(r||l(W)===v||(s?s(W,v):i(W[y])||c(W,y,x)),a(W,k,!0,!0),r&&(h[k]=x)),m&&_===C&&T&&T.name!==C&&(!r&&p?u(O,"name",C):(L=!0,F=function(){return t(T,this)})),_)if(P={values:N(C),keys:R?F:N(w),entries:N(S)},I)for(E in P)(g||L||!(E in O))&&c(O,E,P[E]);else e({target:d,proto:!0,forced:g||L},P);return r&&!I||O[y]===F||c(O,y,F,{name:_}),h[d]=F,P}}function $i(){return Li?ki:(Li=1,ki=function(e,t){return{value:e,done:t}})}function Gi(){if(Ti)return Oi;Ti=1;var e=me(),t=Hi(),r=Mi(),n=Dt(),i=St().f,o=Vi(),l=$i(),s=Ze(),a=v(),u="Array Iterator",c=n.set,d=n.getterFor(u);Oi=o(Array,"Array",function(t,r){c(this,{type:u,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return Oi}!function(){if(Fi)return Ai;Fi=1;var e=o(),t=ii?ni:(ii=1,ni={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(li)return oi;li=1;var e=ut()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return oi=t===Object.prototype?void 0:t}(),n=Gi(),i=xt(),l=Ui(),s=lt()("iterator"),a=n.values,u=function(e,r){if(e){if(e[s]!==a)try{i(e,s,a)}catch(t){e[s]=a}if(l(e,r,!0),t[r])for(var o in n)if(e[o]!==n[o])try{i(e,o,n[o])}catch(t){e[o]=n[o]}}};for(var c in t)u(e[c]&&e[c].prototype,c);u(r,"DOMTokenList")}();var Xi,Yi,Ji,Ki,Qi,Zi,eo,to,ro,no,io,oo,lo,so,ao,uo,co,ho,fo,mo,po,vo,go,bo,yo,wo,Co,So,xo,_o,Ro,Io,Wo,Po,Eo,No={},ko={};function Lo(){if(Ji)return Yi;Ji=1;var e=p(),t=lt(),r=v(),n=Ze(),i=t("iterator");return Yi=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),l="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),l+=r+e}),o.delete("a",2),o.delete("b",void 0),n&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(n||!r)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==l||"x"!==new URL("https://x",void 0).host})}function Oo(){if(eo)return Zi;eo=1;var e=function(){if(Qi)return Ki;Qi=1;var e=ce(),t=ue();return Ki=function(r){if("Function"===e(r))return t(r)}}(),t=Re(),r=g(),n=e(e.bind);return Zi=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},Zi}function To(){if(ro)return to;ro=1;var e=be(),t=TypeError;return to=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function Fo(){if(lo)return oo;lo=1;var e=b(),t=Ct(),r=Ie();return oo=function(n,i,o){var l,s;t(n);try{if(!(l=r(n,"return"))){if("throw"===i)throw o;return o}l=e(l,n)}catch(e){s=!0,l=e}if("throw"===i)throw o;if(s)throw l;return t(l),o}}function Ao(){if(ao)return so;ao=1;var e=Ct(),t=Fo();return so=function(r,n,i,o){try{return o?n(e(i)[0],i[1]):n(i)}catch(e){t(r,"throw",e)}}}function Ho(){if(co)return uo;co=1;var e=lt(),t=Mi(),r=e("iterator"),n=Array.prototype;return uo=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function Mo(){if(fo)return ho;fo=1;var e=ue(),t=p(),r=pe(),n=jr(),i=ge(),o=Ut(),l=function(){},s=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,u=e(a.exec),c=!a.test(l),d=function(e){if(!r(e))return!1;try{return s(l,[],e),!0}catch(e){return!1}},h=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(a,o(e))}catch(e){return!0}};return h.sham=!0,ho=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function zo(){if(po)return mo;po=1;var e=v(),t=St(),r=ae();return mo=function(n,i,o){e?t.f(n,i,r(0,o)):n[i]=o}}function jo(){if(go)return vo;go=1;var e=ce();return vo=Array.isArray||function(t){return"Array"===e(t)}}function Uo(){if(Co)return wo;Co=1;var e=jr(),t=Ie(),r=he(),n=Mi(),i=lt()("iterator");return wo=function(o){if(!r(o))return t(o,i)||t(o,"@@iterator")||n[e(o)]}}function Bo(){if(xo)return So;xo=1;var e=b(),t=Re(),r=Ct(),n=_e(),i=Uo(),o=TypeError;return So=function(l,s){var a=arguments.length<2?i(l):s;if(t(a))return r(e(a,l));throw new o(n(l)+" is not iterable")},So}function qo(){if(Ro)return _o;Ro=1;var e=Oo(),t=b(),r=nt(),n=Ao(),i=Ho(),o=Mo(),l=mr(),s=zo(),a=function(){if(yo)return bo;yo=1;var e=v(),t=jo(),r=TypeError,n=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return bo=i?function(e,i){if(t(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t},bo}(),u=Bo(),c=Uo(),d=Array;return _o=function(h){var f=r(h),m=o(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=e(v,p>2?arguments[2]:void 0));var b,y,w,C,S,x,_=c(f),R=0;if(!_||this===d&&i(_))for(b=l(f),y=m?new this(b):d(b);b>R;R++)x=g?v(f[R],R):f[R],s(y,R,x);else for(y=m?new this:[],S=(C=u(f,_)).next;!(w=t(S,C)).done;R++)x=g?n(C,v,[w.value,R],!0):w.value,s(y,R,x);return a(y,R),y},_o}function Do(){if(Eo)return Po;Eo=1;var e=TypeError;return Po=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}var Vo,$o,Go,Xo,Yo,Jo,Ko,Qo,Zo,el={};function tl(){if(Go)return $o;Go=1;var e=o(),t=v(),r=Object.getOwnPropertyDescriptor;return $o=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value}}function rl(){if(Yo)return Xo;Yo=1;var e=$t();return Xo=function(t,r,n){for(var i in r)e(t,i,r[i],n);return t}}function nl(){if(Ko)return Jo;Ko=1,Gi(),function(){if(Vo)return el;Vo=1;var e=zr(),t=ue(),r=hr(),n=RangeError,i=String.fromCharCode,o=String.fromCodePoint,l=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,a=0;s>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw new n(t+" is not a valid code point");o[a]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return l(o,"")}})}();var e=zr(),t=o(),r=tl(),n=ge(),i=b(),l=ue(),s=v(),a=Lo(),u=$t(),c=Br(),d=rl(),h=Ui(),f=Bi(),m=Dt(),p=To(),g=pe(),y=it(),w=Oo(),C=jr(),S=Ct(),x=ve(),_=Ur(),R=On(),I=ae(),W=Bo(),P=Uo(),E=$i(),N=Do(),k=lt(),L=an(),O=k("iterator"),T="URLSearchParams",F=T+"Iterator",A=m.set,H=m.getterFor(T),M=m.getterFor(F),z=r("fetch"),j=r("Request"),U=r("Headers"),B=j&&j.prototype,q=U&&U.prototype,D=t.TypeError,V=t.encodeURIComponent,$=String.fromCharCode,G=n("String","fromCodePoint"),X=parseInt,Y=l("".charAt),J=l([].join),K=l([].push),Q=l("".replace),Z=l([].shift),ee=l([].splice),te=l("".split),re=l("".slice),ne=l(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,le=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?X(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ce=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},de=function(e){for(var t=(e=Q(e,ie," ")).length,r="",n=0;n<t;){var i=Y(e,n);if("%"===i){if("%"===Y(e,n+1)||n+3>t){r+="%",n++;continue}var o=le(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var l=se(o);if(0===l)i=$(o);else{if(1===l||l>4){r+="�",n++;continue}for(var s=[o],a=1;a<l&&!(3+ ++n>t||"%"!==Y(e,n));){var u=le(e,n+1);if(u!=u){n+=3;break}if(u>191||u<128)break;K(s,u),n+=2,a++}if(s.length!==l){r+="�";continue}var c=ce(s);null===c?r+="�":i=G(c)}}r+=i,n++}return r},he=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(e){return fe[e]},be=function(e){return Q(V(e),he,me)},ye=f(function(e,t){A(this,{type:F,target:H(e).entries,index:0,kind:t})},T,function(){var e=M(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,E(void 0,!0);var n=t[r];switch(e.kind){case"keys":return E(n.key,!1);case"values":return E(n.value,!1)}return E([n.key,n.value],!1)},!0),we=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?re(e,1):e:_(e)))};we.prototype={type:T,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,l,s,a,u=this.entries,c=P(e);if(c)for(r=(t=W(e,c)).next;!(n=i(r,t)).done;){if(l=(o=W(S(n.value))).next,(s=i(l,o)).done||(a=i(l,o)).done||!i(l,o).done)throw new D("Expected sequence with length 2");K(u,{key:_(s.value),value:_(a.value)})}else for(var d in e)y(e,d)&&K(u,{key:d,value:_(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:de(Z(r)),value:de(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,be(e.key)+"="+be(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ce=function(){p(this,Se);var e=A(this,new we(arguments.length>0?arguments[0]:void 0));s||(this.size=e.entries.length)},Se=Ce.prototype;if(d(Se,{append:function(e,t){var r=H(this);N(arguments.length,2),K(r.entries,{key:_(e),value:_(t)}),s||this.size++,r.updateURL()},delete:function(e){for(var t=H(this),r=N(arguments.length,1),n=t.entries,i=_(e),o=r<2?void 0:arguments[1],l=void 0===o?o:_(o),a=0;a<n.length;){var u=n[a];if(u.key!==i||void 0!==l&&u.value!==l)a++;else if(ee(n,a,1),void 0!==l)break}s||(this.size=n.length),t.updateURL()},get:function(e){var t=H(this).entries;N(arguments.length,1);for(var r=_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=H(this).entries;N(arguments.length,1);for(var r=_(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=H(this).entries,r=N(arguments.length,1),n=_(e),i=r<2?void 0:arguments[1],o=void 0===i?i:_(i),l=0;l<t.length;){var s=t[l++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=H(this);N(arguments.length,1);for(var n,i=r.entries,o=!1,l=_(e),a=_(t),u=0;u<i.length;u++)(n=i[u]).key===l&&(o?ee(i,u--,1):(o=!0,n.value=a));o||K(i,{key:l,value:a}),s||(this.size=i.length),r.updateURL()},sort:function(){var e=H(this);L(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=H(this).entries,n=w(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new ye(this,"keys")},values:function(){return new ye(this,"values")},entries:function(){return new ye(this,"entries")}},{enumerable:!0}),u(Se,O,Se.entries,{name:"entries"}),u(Se,"toString",function(){return H(this).serialize()},{enumerable:!0}),s&&c(Se,"size",{get:function(){return H(this).entries.length},configurable:!0,enumerable:!0}),h(Ce,T),e({global:!0,constructor:!0,forced:!a},{URLSearchParams:Ce}),!a&&g(U)){var xe=l(q.has),_e=l(q.set),Re=function(e){if(x(e)){var t,r=e.body;if(C(r)===T)return t=e.headers?new U(e.headers):new U,xe(t,"content-type")||_e(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),R(e,{body:I(0,_(r)),headers:I(0,t)})}return e};if(g(z)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return z(e,arguments.length>1?Re(arguments[1]):{})}}),g(j)){var Ie=function(e){return p(this,B),new j(e,arguments.length>1?Re(arguments[1]):{})};B.constructor=Ie,Ie.prototype=B,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ie})}}return Jo={URLSearchParams:Ce,getState:H}}Zo||(Zo=1,function(){if(Qo)return No;Qo=1,function(){if(Xi)return ko;Xi=1;var e=ei().charAt,t=Ur(),r=Dt(),n=Vi(),i=$i(),o="String Iterator",l=r.set,s=r.getterFor(o);n(String,"String",function(e){l(this,{type:o,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,o=r.index;return o>=n.length?i(void 0,!0):(t=e(n,o),r.index+=t.length,i(t,!1))})}();var e,t=zr(),r=v(),n=Lo(),i=o(),l=Oo(),s=ue(),a=$t(),u=Br(),c=To(),d=it(),h=function(){if(io)return no;io=1;var e=v(),t=ue(),r=b(),n=p(),i=kn(),o=Ar(),l=se(),s=nt(),a=de(),u=Object.assign,c=Object.defineProperty,d=t([].concat);return no=!u||n(function(){if(e&&1!==u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(e){r[e]=e}),7!==u({},t)[n]||i(u({},r)).join("")!==o})?function(t,n){for(var u=s(t),c=arguments.length,h=1,f=o.f,m=l.f;c>h;)for(var p,v=a(arguments[h++]),g=f?d(i(v),f(v)):i(v),b=g.length,y=0;b>y;)p=g[y++],e&&!r(m,v,p)||(u[p]=v[p]);return u}:u,no}(),f=qo(),m=sn(),g=ei().codeAt,y=function(){if(Wo)return Io;Wo=1;var e=ue(),t=2147483647,r=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,l=e(n.exec),s=Math.floor,a=String.fromCharCode,u=e("".charCodeAt),c=e([].join),d=e([].push),h=e("".replace),f=e("".split),m=e("".toLowerCase),p=function(e){return e+22+75*(e<26)},v=function(e,t,r){var n=0;for(e=r?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),n+=36;return s(n+36*e/(e+38))},g=function(e){var r=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=u(e,r++);if(i>=55296&&i<=56319&&r<n){var o=u(e,r++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),r--)}else d(t,i)}return t}(e);var n,l,h=e.length,f=128,m=0,g=72;for(n=0;n<e.length;n++)(l=e[n])<128&&d(r,a(l));var b=r.length,y=b;for(b&&d(r,"-");y<h;){var w=t;for(n=0;n<e.length;n++)(l=e[n])>=f&&l<w&&(w=l);var C=y+1;if(w-f>s((t-m)/C))throw new o(i);for(m+=(w-f)*C,f=w,n=0;n<e.length;n++){if((l=e[n])<f&&++m>t)throw new o(i);if(l===f){for(var S=m,x=36;;){var _=x<=g?1:x>=g+26?26:x-g;if(S<_)break;var R=S-_,I=36-_;d(r,a(p(_+R%I))),S=s(R/I),x+=36}d(r,a(p(S))),g=v(m,C,y===b),m=0,y++}}m++,f++}return c(r,"")};return Io=function(e){var t,i,o=[],s=f(h(m(e),n,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,l(r,i)?"xn--"+g(i):i);return c(o,".")}}(),w=Ur(),C=Ui(),S=Do(),x=nl(),_=Dt(),R=_.set,I=_.getterFor("URL"),W=x.URLSearchParams,P=x.getState,E=i.URL,N=i.TypeError,k=i.parseInt,L=Math.floor,O=Math.pow,T=s("".charAt),F=s(/./.exec),A=s([].join),H=s(1.1.toString),M=s([].pop),z=s([].push),j=s("".replace),U=s([].shift),B=s("".split),q=s("".slice),D=s("".toLowerCase),V=s([].unshift),$="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,le=/[\t\n\r]/g,ae=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)V(t,e%256),e=L(e/256);return A(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=H(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ce={},he=h({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=h({},he,{"#":1,"?":1,"{":1,"}":1}),me=h({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pe=function(e,t){var r=g(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var r;return 2===e.length&&F(Y,T(e,0))&&(":"===(r=T(e,1))||!t&&"|"===r)},be=function(e){var t;return e.length>1&&ge(q(e,0,2))&&(2===e.length||"/"===(t=T(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===D(e)},we=function(e){return".."===(e=D(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Ce={},Se={},xe={},_e={},Re={},Ie={},We={},Pe={},Ee={},Ne={},ke={},Le={},Oe={},Te={},Fe={},Ae={},He={},Me={},ze={},je={},Ue={},Be=function(e,t,r){var n,i,o,l=w(e);if(t){if(i=this.parse(l))throw new N(i);this.searchParams=null}else{if(void 0!==r&&(n=new Be(r,!0)),i=this.parse(l,null,n))throw new N(i);(o=P(new W)).bindURL(this),this.searchParams=o}};Be.prototype={type:"URL",parse:function(t,r,n){var i,o,l,s,a=this,u=r||Ce,c=0,h="",p=!1,v=!1,g=!1;for(t=w(t),r||(a.scheme="",a.username="",a.password="",a.host=null,a.port=null,a.path=[],a.query=null,a.fragment=null,a.cannotBeABaseURL=!1,t=j(t,ie,""),t=j(t,oe,"$1")),t=j(t,le,""),i=f(t);c<=i.length;){switch(o=i[c],u){case Ce:if(!o||!F(Y,o)){if(r)return $;u=xe;continue}h+=D(o),u=Se;break;case Se:if(o&&(F(J,o)||"+"===o||"-"===o||"."===o))h+=D(o);else{if(":"!==o){if(r)return $;h="",u=xe,c=0;continue}if(r&&(a.isSpecial()!==d(ve,h)||"file"===h&&(a.includesCredentials()||null!==a.port)||"file"===a.scheme&&!a.host))return;if(a.scheme=h,r)return void(a.isSpecial()&&ve[a.scheme]===a.port&&(a.port=null));h="","file"===a.scheme?u=Te:a.isSpecial()&&n&&n.scheme===a.scheme?u=_e:a.isSpecial()?u=Pe:"/"===i[c+1]?(u=Re,c++):(a.cannotBeABaseURL=!0,z(a.path,""),u=ze)}break;case xe:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){a.scheme=n.scheme,a.path=m(n.path),a.query=n.query,a.fragment="",a.cannotBeABaseURL=!0,u=Ue;break}u="file"===n.scheme?Te:Ie;continue;case _e:if("/"!==o||"/"!==i[c+1]){u=Ie;continue}u=Ee,c++;break;case Re:if("/"===o){u=Ne;break}u=Me;continue;case Ie:if(a.scheme=n.scheme,o===e)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query;else if("/"===o||"\\"===o&&a.isSpecial())u=We;else if("?"===o)a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query="",u=je;else{if("#"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.path.length--,u=Me;continue}a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,a.path=m(n.path),a.query=n.query,a.fragment="",u=Ue}break;case We:if(!a.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){a.username=n.username,a.password=n.password,a.host=n.host,a.port=n.port,u=Me;continue}u=Ne}else u=Ee;break;case Pe:if(u=Ee,"/"!==o||"/"!==T(h,c+1))continue;c++;break;case Ee:if("/"!==o&&"\\"!==o){u=Ne;continue}break;case Ne:if("@"===o){p&&(h="%40"+h),p=!0,l=f(h);for(var b=0;b<l.length;b++){var y=l[b];if(":"!==y||g){var C=pe(y,me);g?a.password+=C:a.username+=C}else g=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(p&&""===h)return"Invalid authority";c-=f(h).length+1,h="",u=ke}else h+=o;break;case ke:case Le:if(r&&"file"===a.scheme){u=Ae;continue}if(":"!==o||v){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()){if(a.isSpecial()&&""===h)return G;if(r&&""===h&&(a.includesCredentials()||null!==a.port))return;if(s=a.parseHost(h))return s;if(h="",u=He,r)return;continue}"["===o?v=!0:"]"===o&&(v=!1),h+=o}else{if(""===h)return G;if(s=a.parseHost(h))return s;if(h="",u=Oe,r===Le)return}break;case Oe:if(!F(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&a.isSpecial()||r){if(""!==h){var S=k(h,10);if(S>65535)return X;a.port=a.isSpecial()&&S===ve[a.scheme]?null:S,h=""}if(r)return;u=He;continue}return X}h+=o;break;case Te:if(a.scheme="file","/"===o||"\\"===o)u=Fe;else{if(!n||"file"!==n.scheme){u=Me;continue}switch(o){case e:a.host=n.host,a.path=m(n.path),a.query=n.query;break;case"?":a.host=n.host,a.path=m(n.path),a.query="",u=je;break;case"#":a.host=n.host,a.path=m(n.path),a.query=n.query,a.fragment="",u=Ue;break;default:be(A(m(i,c),""))||(a.host=n.host,a.path=m(n.path),a.shortenPath()),u=Me;continue}}break;case Fe:if("/"===o||"\\"===o){u=Ae;break}n&&"file"===n.scheme&&!be(A(m(i,c),""))&&(ge(n.path[0],!0)?z(a.path,n.path[0]):a.host=n.host),u=Me;continue;case Ae:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!r&&ge(h))u=Me;else if(""===h){if(a.host="",r)return;u=He}else{if(s=a.parseHost(h))return s;if("localhost"===a.host&&(a.host=""),r)return;h="",u=He}continue}h+=o;break;case He:if(a.isSpecial()){if(u=Me,"/"!==o&&"\\"!==o)continue}else if(r||"?"!==o)if(r||"#"!==o){if(o!==e&&(u=Me,"/"!==o))continue}else a.fragment="",u=Ue;else a.query="",u=je;break;case Me:if(o===e||"/"===o||"\\"===o&&a.isSpecial()||!r&&("?"===o||"#"===o)){if(we(h)?(a.shortenPath(),"/"===o||"\\"===o&&a.isSpecial()||z(a.path,"")):ye(h)?"/"===o||"\\"===o&&a.isSpecial()||z(a.path,""):("file"===a.scheme&&!a.path.length&&ge(h)&&(a.host&&(a.host=""),h=T(h,0)+":"),z(a.path,h)),h="","file"===a.scheme&&(o===e||"?"===o||"#"===o))for(;a.path.length>1&&""===a.path[0];)U(a.path);"?"===o?(a.query="",u=je):"#"===o&&(a.fragment="",u=Ue)}else h+=pe(o,fe);break;case ze:"?"===o?(a.query="",u=je):"#"===o?(a.fragment="",u=Ue):o!==e&&(a.path[0]+=pe(o,ce));break;case je:r||"#"!==o?o!==e&&("'"===o&&a.isSpecial()?a.query+="%27":a.query+="#"===o?"%23":pe(o,ce)):(a.fragment="",u=Ue);break;case Ue:o!==e&&(a.fragment+=pe(o,he))}c++}},parseHost:function(e){var t,r,n;if("["===T(e,0)){if("]"!==T(e,e.length-1))return G;if(t=function(e){var t,r,n,i,o,l,s,a=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return T(e,d)};if(":"===h()){if(":"!==T(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=r=0;r<4&&F(te,h());)t=16*t+k(h(),16),d++,r++;if("."===h()){if(0===r)return;if(d-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;d++}if(!F(K,h()))return;for(;F(K,h());){if(o=k(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}a[u]=256*a[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;a[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(l=u-c,u=7;0!==u&&l>0;)s=a[u],a[u--]=a[c+l-1],a[c+--l]=s;else if(8!==u)return;return a}(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=y(e),F(re,e))return G;if(t=function(e){var t,r,n,i,o,l,s,a=B(e,".");if(a.length&&""===a[a.length-1]&&a.length--,(t=a.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=a[n]))return e;if(o=10,i.length>1&&"0"===T(i,0)&&(o=F(Q,i)?16:8,i=q(i,8===o?1:2)),""===i)l=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;l=k(i,o)}z(r,l)}for(n=0;n<t;n++)if(l=r[n],n===t-1){if(l>=O(256,5-t))return null}else if(l>255)return null;for(s=M(r),n=0;n<r.length;n++)s+=r[n]*O(256,3-n);return s}(e),null===t)return G;this.host=t}else{if(F(ne,e))return G;for(t="",r=f(e),n=0;n<r.length;n++)t+=pe(r[n],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,l=e.path,s=e.query,a=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=ae(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?l[0]:l.length?"/"+A(l,"/"):"",null!==s&&(u+="?"+s),null!==a&&(u+="#"+a),u},setHref:function(e){var t=this.parse(e);if(t)throw new N(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new qe(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(w(e)+":",Ce)},getUsername:function(){return this.username},setUsername:function(e){var t=f(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=pe(t[r],me)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=pe(t[r],me)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Le)},getPort:function(){var e=this.port;return null===e?"":w(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=w(e))?this.port=null:this.parse(e,Oe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+A(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,He))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=w(e))?this.query=null:("?"===T(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=w(e))?("#"===T(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Ue)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=c(this,De),n=S(arguments.length,1)>1?arguments[1]:void 0,i=R(t,new Be(e,!1,n));r||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},De=qe.prototype,Ve=function(e,t){return{get:function(){return I(this)[e]()},set:t&&function(e){return I(this)[t](e)},configurable:!0,enumerable:!0}};if(r&&(u(De,"href",Ve("serialize","setHref")),u(De,"origin",Ve("getOrigin")),u(De,"protocol",Ve("getProtocol","setProtocol")),u(De,"username",Ve("getUsername","setUsername")),u(De,"password",Ve("getPassword","setPassword")),u(De,"host",Ve("getHost","setHost")),u(De,"hostname",Ve("getHostname","setHostname")),u(De,"port",Ve("getPort","setPort")),u(De,"pathname",Ve("getPathname","setPathname")),u(De,"search",Ve("getSearch","setSearch")),u(De,"searchParams",Ve("getSearchParams")),u(De,"hash",Ve("getHash","setHash"))),a(De,"toJSON",function(){return I(this).serialize()},{enumerable:!0}),a(De,"toString",function(){return I(this).serialize()},{enumerable:!0}),E){var $e=E.createObjectURL,Ge=E.revokeObjectURL;$e&&a(qe,"createObjectURL",l($e,E)),Ge&&a(qe,"revokeObjectURL",l(Ge,E))}C(qe,"URL"),t({global:!0,constructor:!0,forced:!n,sham:!r},{URL:qe})}());var il,ol,ll={};let sl;!function(){if(il)return ll;il=1;var e=zr(),t=b();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),ol||(ol=1,nl());const al=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===Math.floor(e.scrollLeft)&&(t="negative")),e.parentNode.removeChild(e),t};function ul(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===sl&&(sl=al()),!t)return e.scrollLeft;switch(sl){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function cl(e,t,r){e.scrollLeft=function(e,t,r){return void 0===r&&(r="rtl"===getComputedStyle(e).direction),function(e,t,r){if(void 0===r&&(r="rtl"===getComputedStyle(e).direction),!0===r&&void 0===sl&&(sl=al()),!r)return t;switch(sl){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}(e,r?e.scrollWidth-e.clientWidth-t:t,r)}(e,t,r)}var dl,hl,fl,ml,pl,vl,gl,bl={};function yl(){return hl?dl:(hl=1,dl="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(gl)return bl;gl=1;var e=zr(),t=function(){if(ml)return fl;ml=1;var e=ue(),t=fe(),r=Ur(),n=yl(),i=e("".replace),o=RegExp("^["+n+"]+"),l=RegExp("(^|[^"+n+"])["+n+"]+$"),s=function(e){return function(n){var s=r(t(n));return 1&e&&(s=i(s,o,"")),2&e&&(s=i(s,l,"$1")),s}};return fl={start:s(1),end:s(2),trim:s(3)}}().trim,r=function(){if(vl)return pl;vl=1;var e=jt().PROPER,t=p(),r=yl();return pl=function(n){return t(function(){return!!r[n]()||"
"!=="
"[n]()||e&&r[n].name!==n})}}();e({target:"String",proto:!0,forced:r("trim")},{trim:function(){return t(this)}})}();const wl=function(e,t){for(let[r,n]of Object.entries(t))e.style[r]=null==n?"":String(n)},Cl=function(e,t,r,n,i){return function(){let o,l,s,a,u=arguments.length<=0?void 0:arguments[0];if(e?(o=arguments.length<=1?void 0:arguments[1],l=!!(arguments.length<=2?void 0:arguments[2]),s=!!(arguments.length<=3?void 0:arguments[3]),a=!!(arguments.length<=4?void 0:arguments[4])):(l=!!(arguments.length<=1?void 0:arguments[1]),s=!!(arguments.length<=2?void 0:arguments[2]),a=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(r)];if(9===u.nodeType){const e=u.documentElement,t=u.body;return Math.max(t["scroll".concat(r)],e["scroll".concat(r)],t["offset".concat(r)],e["offset".concat(r)],e["client".concat(r)])}{let c,d,h=!1,f=!1;if(!e&&"getBoundingClientRect"in u&&(c=u.getBoundingClientRect()[t],h=!0,f=!0),(void 0===c||a||h!==l||f!==s)&&(d=e?getComputedStyle(u,o):getComputedStyle(u)),void 0===c){let e=d[t];"auto"===e?(c=u["client".concat(r)],h=!0):c=parseFloat(e),"border-box"===d.boxSizing&&(h=!0,f=!0)}if(l!==h){let e=parseFloat(d["padding-".concat(n)]||0)+parseFloat(d["padding-".concat(i)]||0);l?c+=e:c-=e}if(s!==f){let e=parseFloat(d["border-".concat(n,"-width")]||0)+parseFloat(d["border-".concat(i,"-width")]||0);s?c+=e:c-=e}return c<0&&(c=0),a&&(c+=parseFloat(d["margin-".concat(n)]||0)+parseFloat(d["margin-".concat(i)]||0)),c}}},Sl=Cl(!1,"width","Width","left","right"),xl=Cl(!1,"height","Height","top","bottom"),_l=(Rl="left",Il="right",function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e===window)return;if(9===e.nodeType)return;const o=getComputedStyle(e);let l=!1;if("border-box"===o.boxSizing&&(l=!0),r=!!r,n=!!n,i=!!i,i&&(t-=(parseFloat(o["margin-".concat(Rl)])||0)+(parseFloat(o["margin-".concat(Il)])||0)),r!==l){let e=parseFloat(o["padding-".concat(Rl)]||0)+parseFloat(o["padding-".concat(Il)]||0);r?t-=e:t+=e}if(n!==l){let e=(parseFloat(o["border-".concat(Rl,"-width")])||0)+(parseFloat(o["border-".concat(Il,"-width")])||0);n?t-=e:t+=e}t<0&&(t=0),e.style.width=t+"px"});var Rl,Il;const Wl=e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;return{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}};let Pl=null;const El=function(e,t){if(null===Pl&&(()=>{try{document.createElement("div").querySelector(":scope > div"),Pl=!0}catch(e){Pl=!1}})(),!0===Pl)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let r=e.id;const n="ID_"+Date.now();e.id=n,t=t.replace(/((?:^|,)\s*)/g,"$1#"+n);try{return e.querySelectorAll(t)}finally{this.id=r}}};class Nl{constructor(){this._events=[]}add(e,t,r,n){let i=t.split("."),o=i[0],l=i[1];e.addEventListener(o,r,n||!1);let s=!0===n||"object"==typeof n&&!0===n.capture;return this._events.push({el:e,name:o,namespace:l,handler:r,useCapture:s}),this}remove(e,t,r,n){let i=t?t.split("."):"",o=i[0],l=i[1],s=!0===n||"object"==typeof n&&!0===n.capture,a=[],u=[];if(e||o||l||r||void 0!==n)for(let t of this._events)e&&t.el!==e||o&&t.name!==o||l&&t.namespace!==l||r&&t.handler!==r||void 0!==n&&t.useCapture!==s?a.push(t):u.push(t);else u=this._events;this._events=a;for(let e of u)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}const kl=Object.prototype.hasOwnProperty,Ll=void 0!==Element.prototype.insertAdjacentElement;function Ol(e,t,r){t?!1===Ll||e instanceof DocumentFragment?r.insertBefore(e,t):t.insertAdjacentElement("beforebegin",e):r.appendChild(e)}function Tl(e,t,r,n){return e.parentNode!==n?(t||(t=document.createDocumentFragment()),t.appendChild(e)):(t&&t.childNodes.length>0&&(Ol(t,r,n),t=null),e.nextSibling!==r&&Ol(e,r,n)),t}const Fl=Symbol("destroyed");class Al{constructor(e){var t;const r=this._p={list:e.list||null,hookScrollEvent:void 0===e.hookScrollEvent||!!e.hookScrollEvent,count:e.count||0,virtual:void 0===e.virtual||!!e.virtual,userItemsParent:e.itemsParent||null,setVirtualWrapperWidth:null===(t=e.autoVirtualWrapperWidth)||void 0===t||t,estimatedItemHeight:20,buffer:5,itemHeightEstimatorFn:null,itemElementCreatorFn:zl,onItemRender:null,onItemUnrender:null,onScrollHeightChange:null,virtualWrapper:null,currentItemsParent:null,cachedItemHeights:[],cachedItemEstimatedHeights:[],cachedItemPositions:[],itemPositionsNeedsUpdate:0,boundRender:this.render.bind(this),existingEls:[]};r.currentItemsParent=r.userItemsParent||r.list,this._hookEvents(),"number"==typeof e.count&&this.setCount(e.count),"boolean"==typeof e.virtual&&this.setVirtual(e.virtual),"number"==typeof e.estimatedItemHeight&&this.setEstimatedItemHeight(e.estimatedItemHeight),"number"==typeof e.buffer&&this.setBuffer(e.buffer),"function"==typeof e.itemHeightEstimatorFn&&this.setItemHeightEstimatorFn(e.itemHeightEstimatorFn),"function"==typeof e.itemElementCreatorFn&&this.setItemElementCreatorFn(e.itemElementCreatorFn),"function"==typeof e.onItemRender&&this.setOnItemRender(e.onItemRender),"function"==typeof e.onItemUnrender&&this.setOnItemUnrender(e.onItemUnrender),"function"==typeof e.onScrollHeightChange&&this.setOnScrollHeightChange(e.onScrollHeightChange)}destroy(){this[Fl]||(this[Fl]=!0,this._unhookEvents().invalidate()._destroyElements())}setHookScrollEvent(e){const t=this._p;return e=void 0===e||!!e,t.hookScrollEvent===e||(t.hookScrollEvent=e,this._unhookEvents()._hookEvents()),this}isHookScrollEventEnabled(){return this._p.hookScrollEvent}setCount(e){return this._p.count=e,this.invalidate()}getCount(){return this._p.count}setVirtual(e){const t=this._p;return e=void 0===e||!!e,t.virtual===e||(t.virtual=e,this._hookEvents().invalidate()._destroyElements()),this}isVirtual(){return this._p.virtual}setEstimatedItemHeight(e){return this._p.estimatedItemHeight=Math.abs(("number"==typeof e?e:Number(e))||20),this}getEstimatedItemHeight(){return this._p.estimatedItemHeight}setAutoVirtualWrapperWidth(e){const t=this._p;return t.autoVirtualWrapperWidth=void 0===e||!!e,t.virtualWrapper&&t.autoVirtualWrapperWidth!==t.virtualWrapperWidthWasSet&&(t.virtualWrapper.style.width=t.autoVirtualWrapperWidth?"100%":"",t.virtualWrapperWidthWasSet=t.autoVirtualWrapperWidth),this}isAutoVirtualWrapperWidth(){return this._p.autoVirtualWrapperWidth}setBuffer(e){return this._p.buffer=Math.abs("number"==typeof e?e:Number(e)||5),this}getBuffer(){return this._p.buffer}setItemHeightEstimatorFn(e){return this._p.itemHeightEstimatorFn=e,this}setItemElementCreatorFn(e){return this._p.itemElementCreatorFn=e||zl,this}setOnItemRender(e){return this._p.onItemRender=e,this}setOnItemUnrender(e){return this._p.onItemUnrender=e,this}setOnScrollHeightChange(e){return this._p.onScrollHeightChange=e,this}estimateFullHeight(){const e=this._p;if(0===e.count)return 0;if(e.virtual)return this._calculateItemPosition(e.count)||0;{const t=e.existingEls;if(e.count===t.length){let e=t[0].getBoundingClientRect(),r=t[t.length-1].getBoundingClientRect();return r.top-e.top+r.height}return this._calculateItemPosition(e.count)||0}}invalidatePositions(){const e=this._p;return e.itemPositionsNeedsUpdate=0,e.cachedItemHeights=[],e.cachedItemEstimatedHeights=[],e.cachedItemPositions=[],e.cachedItemHeights.length=e.count,e.cachedItemEstimatedHeights.length=e.count,e.cachedItemPositions.length=e.count,this}invalidate(){const e=this._p;this.invalidatePositions(),e.virtual||this._destroyElements();for(let t of e.existingEls)delete t[Hl];return this}render(){if(this[Fl])return;const e=this._p,t=e.list,r=e.virtual;let n=e.virtualWrapper,i=e.currentItemsParent,o=t.scrollTop,l=o+t.clientHeight,s=e.count,a=e.buffer,u=e.onItemUnrender,c=e.existingEls,d=c.length;if(r){const r=t.clientWidth;n||(n=e.virtualWrapper=e.userItemsParent,n||(n=e.virtualWrapper=document.createElement("div"),t.appendChild(n)),this._resetCurrentItemsParent(),i=e.currentItemsParent,e.autoVirtualWrapperWidth?(n.style.width="100%",e.virtualWrapperWidthWasSet=!0):e.virtualWrapperWidthWasSet=!1);for(let e=0;e<d;e++)c[e][Ml]=!0;this._calculateItemPosition(e.count-1);let u=this._getExistingElsRange(),f=jl(e.cachedItemPositions,o),m=Math.max(0,f-a),p=m,v=this._calculateItemPosition(p),g=a,b=Math.max(p,jl(e.cachedItemPositions,l-1)+1+a),y=[],w=null,C=n.childNodes[0];const S=function(e){let t;return-1!==u.firstIndex&&e>=u.firstIndex&&e<=u.lastIndex&&(t=c.find(t=>t[Hl]===e&&!0===t[Ml])),void 0===t&&(t=(u.firstIndex<m||u.firstValidArrayIndex>0?c.find(e=>(e[Hl]<m||!1===kl.call(e,Hl))&&!0===e[Ml]):void 0)||Bl(c,e=>!0===e[Ml])),void 0!==t&&delete t[Ml],t};for(;p<s&&p<b;p++){let e=S(p);C&&C===e&&(C=C.nextSibling);const t=this._dequeueElementForIndex(e,p,C,!0);y.push([t,p]),w=Tl(t,w,C,i)}w&&w.childNodes.length>0&&Ol(w,C,i);for(let t of y){const r=t[1];this._insertItemAndFlow(t[0],r,!1),v=e.cachedItemPositions[r]+e.cachedItemHeights[r]}if(v<l)for(;(v<l||g-- >0)&&p<s;p++){let t=S(p);C&&C===t&&(C=C.nextSibling),this._dequeueElementForIndex(t,p,C,!1),v=e.cachedItemPositions[p]+e.cachedItemHeights[p]}let x=this.estimateFullHeight(),_=x+"px";var h;n.style.height!==_&&(n.style.height=_,null===(h=e.onScrollHeightChange)||void 0===h||h.call(e,x)),r!==t.clientWidth&&this.render()}else if(s!==c.length){for(let e=0;e<d;e++)c[e][Ml]=!0;let e=i.childNodes[0],t=null;for(let r=0;r<s;r++){let n=c.find(e=>e[Hl]===r&&!0===e[Ml]);void 0!==n&&delete n[Ml],e&&e===n&&(e=e.nextSibling),t=Tl(this._dequeueElementForIndex(n,r,e,!0),t,e,i)}t&&t.childNodes.length>0&&Ol(t,e,i)}d=c.length;for(let e=0;e<d;e++){const t=c[e];if(!0!==t[Ml])continue;let r=t.parentNode;r&&r.removeChild(t),u&&void 0!==t[Hl]&&u(t),c.splice(e,1),e--,d--}}addItemsAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if("number"!=typeof e||e<=0)return this;const r=this._p;if((t<0||t>=r.count)&&(t=r.count),r.count+=e,r.virtual)t>=0&&t<r.count&&this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count-e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;const o=r.currentItemsParent;let l=i.firstValidArrayIndex+t-i.firstIndex;this._pushItemIndexesAt(t,e);let s=n[l-1]?n[l-1].nextSibling:n[0],a=null;for(let r=t,n=t+e;r<n;r++)a=Tl(this._dequeueElementForIndex(void 0,r,s,!0),a,s,o);a&&a.childNodes.length>0&&Ol(a,s,o)}return this}removeItemsAt(e,t){const r=this._p;if("number"!=typeof e||"number"!=typeof t||e<=0||t<0||t>=r.count)return this;if(r.count-=Math.min(e,r.count-t),r.virtual)this._invalidateItemIndexesAt(t,-1);else{let n=r.existingEls;if(n.length!==r.count+e)return this;let i=this._getExistingElsRange();if(-1===i.firstValidArrayIndex)return this;this._pushItemIndexesAt(t+e,-e);const o=r.onItemUnrender;let l=i.firstValidArrayIndex+t-i.firstIndex;if(l<n.length){for(let t=0;t<e;t++){let e=n[l+t],r=e.parentNode;r&&r.removeChild(e),o&&void 0!==e[Hl]&&o(e)}n.splice(l,e)}}return this}refreshItemAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return this;if(t.virtual)this._invalidateItemIndexesAt(e,1);else{let r=t.existingEls;if(r.length!==t.count)return this;let n=this._getExistingElsRange();if(e>=n.firstIndex&&e<=n.lastIndex){let t=r[n.firstValidArrayIndex+e-n.firstIndex];delete t[Hl],this._dequeueElementForIndex(t,e,t.nextSibling,!1)}}return this}isItemRendered(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return!1;let r=this._getExistingElsRange();return e>=r.firstIndex&&e<=r.lastIndex}getItemElementAt(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.existingEls,n=this._getExistingElsRange();return e>=n.firstIndex&&e<=n.lastIndex?r[n.firstValidArrayIndex+e-n.firstIndex]:void 0}getItemPosition(e){const t=this._p;if(!("number"!=typeof e||e<0||e>=t.count)){if(t.virtual)return this._calculateItemPosition(e);{let r=this.getItemElementAt(e);if(void 0===r)return;const n=t.list;return Wl(r).top-Wl(n).top+n.scrollTop}}}getItemIndexFromElement(e){return e?e[Hl]:void 0}getItemSize(e){const t=this._p;if("number"!=typeof e||e<0||e>=t.count)return;let r=t.cachedItemHeights[e-1];return void 0===r&&(r=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof r&&(r=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=r),r}getVisibleItemCount(){const e=this._p,t=e.list;let r,n,i=t.scrollTop,o=t.clientHeight;if(e.virtual)r=jl(e.cachedItemPositions,i),n=jl(e.cachedItemPositions,i+o,r);else{const t=e=>{let t=this.getItemPosition(e);return void 0===t&&(t=1/0),t};r=Ul(e.count,t,i),n=Ul(e.count,t,i+o,r)}return this.getItemPosition(n)===i+o&&n--,n-r+1}createGhostItemElement(e,t,r){const n=this._p;let i=this._dequeueElementForIndex(null,e,!1,!0);try{t&&n.currentItemsParent.appendChild(i),r(i)}finally{if(t){let e=i.parentNode;e&&e.removeChild(i)}n.onItemUnrender&&n.onItemUnrender(i)}}_resetCurrentItemsParent(){var e,t;const r=this._p;r.currentItemsParent=null!==(e=null!==(t=r.virtualWrapper)&&void 0!==t?t:r.userItemsParent)&&void 0!==e?e:r.list}_destroyElements(){const e=this._p,t=e.onItemUnrender,r=e.existingEls;for(let e=0;e<r.length;e++){const n=r[e];let i=n.parentNode;i&&i.removeChild(n),t&&void 0!==n[Hl]&&t(n)}return r.length=0,e.virtualWrapper&&(e.virtualWrapper!==e.userItemsParent&&e.virtualWrapper.parentNode&&e.virtualWrapper.parentNode.removeChild(e.virtualWrapper),e.virtualWrapper=null,this._resetCurrentItemsParent()),this}_invalidateItemIndexesAt(e,t){const r=this._p;this._setItemPositionsNeedsUpdate(e);let n=r.existingEls,i=n.length,o=this._getExistingElsRange();if(-1!==o.firstValidArrayIndex&&(-1===t&&(t=n.length),e>=o.firstIndex&&e<=o.lastIndex))for(let r=o.firstValidArrayIndex+e-o.firstIndex,l=0;r<i&&l<t;r++,l++)delete n[r][Hl]}_pushItemIndexesAt(e,t){let r=this._p.existingEls,n=r.length,i=this._getExistingElsRange();if(-1!==i.firstValidArrayIndex&&e>=i.firstIndex&&e<=i.lastIndex)for(let o=i.firstValidArrayIndex+e-i.firstIndex;o<n;o++)r[o][Hl]+=t}_hookEvents(){const e=this._p;return this._unhookEvents(),e.virtual&&e.hookScrollEvent&&e.list&&e.list.addEventListener("scroll",e.boundRender),this}_unhookEvents(){const e=this._p;return e.list&&e.list.removeEventListener("scroll",e.boundRender),this}_setItemPositionsNeedsUpdate(e){const t=this._p;e<t.itemPositionsNeedsUpdate&&(t.itemPositionsNeedsUpdate=e)}_calculateItemPosition(e){const t=this._p,r=t.cachedItemPositions;if(e>=t.itemPositionsNeedsUpdate){const n=t.count,i=t.cachedItemHeights,o=t.cachedItemEstimatedHeights,l=t.estimatedItemHeight,s=t.itemHeightEstimatorFn;i.length!==n&&(i.length=n,o.length=n,r.length=n);let a=t.itemPositionsNeedsUpdate,u=Math.min(e,n),c=0;a>0&&(c=r[a-1]);for(let e=a;e<=u;e++){if(0===e){r[e]=c;continue}const t=e-1;let n=i[t];void 0===n&&(n=s?s(t):null,"number"!=typeof n&&(n=l),o[t]=n),c+=n,r[e]=c}t.itemPositionsNeedsUpdate=u+1}if(e>0&&e===t.count){let n=t.cachedItemHeights[e-1];return void 0===n&&(n=t.itemHeightEstimatorFn?t.itemHeightEstimatorFn(e-1):null,"number"!=typeof n&&(n=t.estimatedItemHeight),t.cachedItemEstimatedHeights[e-1]=n),r[e-1]+n}return r[e]}_dequeueElementForIndex(e,t,r,n){const i=this._p,o=i.virtualWrapper;i.currentItemsParent;const l=i.existingEls,s=i.onItemRender,a=i.onItemUnrender,u=!e,c=u||t!==e[Hl];if(e?a&&c&&a(e):(e=i.itemElementCreatorFn(),o&&!1!==r&&(e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.right="0")),c&&(e.innerHTML="",s&&s(e,t)),!1!==r){if(r instanceof Node||(r=null),!u){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}let i=r?l.indexOf(r):-1;-1===i?l.push(e):l.splice(i,0,e),n||this._insertItemAndFlow(e,t,r)}return e[Hl]=t,e}_insertItemAndFlow(e,t,r){const n=this._p,i=n.virtualWrapper,o=n.currentItemsParent;if(!1!==r&&(r instanceof Node||(r=null),e.parentNode===o&&e.nextSibling===r||Ol(e,r,o)),i){let r=e.getBoundingClientRect().height,i=n.cachedItemHeights[t];i!==r&&(n.cachedItemHeights[t]=r),(void 0!==i&&r!==i||void 0===i&&r!==n.cachedItemEstimatedHeights[t])&&this._setItemPositionsNeedsUpdate(t+1);let o=this._calculateItemPosition(t);const l=Dl();!1===l?e.style.top="".concat(o,"px"):e.style[l]="translateY(".concat(o,"px)")}}_getExistingElsRange(){const e=this._p.existingEls;let t=-1,r=-1;for(let r=0,n=e.length;r<n;r++)if(!1!==kl.call(e[r],Hl)){t=r;break}for(let t=e.length-1;t>=0;t--)if(!1!==kl.call(e[t],Hl)){r=t;break}return{firstValidArrayIndex:t,lastValidArrayIndex:r,firstIndex:-1!==t?e[t][Hl]:-1,lastIndex:-1!==r?e[r][Hl]:-1}}}const Hl=Symbol("index"),Ml=Symbol("reuse"),zl=()=>document.createElement("li"),jl=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,i=e.length;if(n<0&&(n+=i),n<=r)return n;for(;r<=n;){let o=Math.floor(r+(n-r)/2),l=e[o];if(l===t||l<=t&&o<i&&e[o+1]>t){for(;o>0&&e[o-1]===l;)o--;return o}l<t?r=o+1:n=o-1}return-1===n?0:i-1},Ul=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(i<0&&(i+=e),i<=n)return i;for(;n<=i;){let o=Math.floor(n+(i-n)/2),l=t(o);if(l===r||l<=r&&o<e&&t(o+1)>r){for(;o>0&&t(o-1)===l;)o--;return o}l<r?n=o+1:i=o-1}return-1===i?0:t(e-1)},Bl=(e,t)=>{for(let r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]};let ql=null;const Dl=()=>{if(null===ql){let e=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],t=document.createElement("div");ql=!1;for(let r of e)if(t&&void 0!==t.style[r]){ql=r;break}}return ql};function Vl(e,t){for(let r=0,n=e.length;r>=0&&r<n;r+=1)if(t(e[r],r,e))return e[r]}function $l(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}const Gl=Symbol("safe"),Xl=Symbol("hover_in"),Yl=Symbol("hover_out"),Jl=Symbol("row_click"),Kl=Symbol("preview_cell"),Ql=Symbol("cell"),Zl=Symbol("related_touch"),es=Symbol("original_row_index"),ts=Symbol("destroyed");class rs extends Array{constructor(e){var t,r,n;super(),this.onComparatorRequired=null,this.customSortingProvider=null,e=e||{},this.sortColumn=null!==(t=e.sortColumn)&&void 0!==t?t:[],this.onComparatorRequired=null!==(r=e.onComparatorRequired)&&void 0!==r?r:null,this.customSortingProvider=null!==(n=e.customSortingProvider)&&void 0!==n?n:null}add(e,t){if(Array.isArray(e)){const r=e;if("number"==typeof t)for(let e=0,n=r.length;e<n;e++)this.splice(t++,0,r[e]);else for(let e=0,t=r.length;e<t;e++)this.push(r[e])}else{const r=e;"number"==typeof t?this.splice(t,0,r):this.push(r)}}reset(e){this.length=0,e&&this.add(e)}filteredCollection(e,t){if(e&&t){const r=new rs({sortColumn:this.sortColumn,onComparatorRequired:this.onComparatorRequired,customSortingProvider:this.customSortingProvider});for(let n=0,i=this.length;n<i;n++){const i=this[n];e(i,t)&&(i[es]=n,r.push(i))}return r}return null}sort(e){let t;if("function"==typeof e)return super.sort(e);if(this.sortColumn.length){const e=[];for(let t=0;t<this.sortColumn.length;t++){const r=ns(this.sortColumn[t],this.sortColumn[t].descending);let n=null;this.onComparatorRequired&&(n=this.onComparatorRequired(this.sortColumn[t].column,this.sortColumn[t].descending,r)),n||(n=r),e.push(n.bind(this))}if(1===e.length)t=e[0];else{const r=e.length;t=(t,n)=>{let i=0;for(let o=0;o<r;o++)if(i=e[o](t,n),0!==i)return i;return i}}const r=e=>(e.sort(t),e);if(this.customSortingProvider){const e=this.customSortingProvider(this,r);e!==this&&this.splice(0,this.length,...e)}else r(this)}return this}}function ns(e,t){let r=e.comparePath;"string"==typeof r&&(r=r.split("."));const n=r.length,i=n>1,o=t?1:-1,l=t?-1:1;return function(e,t){let s=e[r[0]],a=t[r[0]];if(i)for(let e=1;e<n;e++)s=s&&s[r[e]],a=a&&a[r[e]];return s===a?0:null==s?o:null==a?l:s<a?o:l}}class is extends Array{constructor(){super()}get(e){for(let t=0,r=this.length;t<r;t++)if(this[t].name===e)return this[t];return null}indexOf(e){const t="string"==typeof e?e:e.name;for(let e=0,r=this.length;e<r;e++)if(this[e].name===t)return e;return-1}getByOrder(e){for(let t=0,r=this.length;t<r;t++)if(this[t].order===e)return this[t];return null}normalizeOrder(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0);for(let t=0;t<e.length;t++)e[t].order=t;return this}getColumns(){const e=[];for(let t=0;t<this.length;t++)e.push(this[t]);return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getVisibleColumns(){const e=[];for(let t=0;t<this.length;t++){const r=this[t];r.visible&&e.push(r)}return e.sort((e,t)=>e.order<t.order?-1:e.order>t.order?1:0),e}getMaxOrder(){let e=0;for(let t=0;t<this.length;t++){const r=this[t];r.order>e&&(e=r.order)}return e}moveColumn(e,t){if(e&&t){const r=e.order,n=t.order;if(r<n)for(let e=r+1;e<=n;e++){const t=this.getByOrder(e);t&&t.order--}else for(let e=r-1;e>=n;e--){const t=this.getByOrder(e);t&&t.order++}e.order=n}return this}}function os(e,t){const r=t.column,n=null==t.keyword?"":t.keyword.toString();if(!n||!r)return!0;let i=e[r];if(null==i)return!1;let o=i.toString(),l=n;return t.caseSensitive||(o=o.toLowerCase(),l=l.toLowerCase()),-1!==o.indexOf(l)}const ls={NONE:"none",AUTO:"auto",SCROLL:"scroll"},ss=document.createElement.bind(document);function as(e){["relative","absolute","fixed"].includes(getComputedStyle(e).position)||(e.style.position="relative")}function us(e){const t=e.target;return/^(?:INPUT|TEXTAREA|BUTTON|SELECT)$/.test(t.tagName)}function cs(e){const t=getComputedStyle(e);return(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)}function ds(e){const t=e.style;t["-webkit-touch-callout"]="none",t["-webkit-user-select"]="none",t["-moz-user-select"]="none",t["-ms-user-select"]="none",t["-o-user-select"]="none",t["user-select"]="none"}function hs(e,t){const r=e._o.tableClassName,n=ss("div");n.className=e.el.className;const i=ss("div");i.className=r+"-header";const o=ss("div");o.className=r+"-header-row";const l=ss("div");l.className=r+"-header-cell";const s=ss("div");s.textContent=t,l.appendChild(s),o.appendChild(l),i.appendChild(o),n.appendChild(i),wl(n,{position:"absolute",top:"-9999px",visibility:"hidden"}),document.body.appendChild(n);const a=Sl(l);return n.remove(),a}function fs(e){const t=e._o,r=e._p;let n,i=0,o=0;r.table&&(i=r.table?r.table.scrollTop:0,o=r.table?r.table.scrollLeft:0,t.virtualTable&&(n=r.table.style.display,r.table.style.display="none"));let l=Sl(e.el);r.table&&(t.virtualTable&&void 0!==n&&(r.table.style.display=n),r.table.scrollTop=i,r.table.scrollLeft=o,r.header&&(r.header.scrollLeft=o));const s=t.tableClassName,a=ss("div");a.className=e.el.className,wl(a,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px"});const u=ss("div");u.className="".concat(s,"-header"),a.appendChild(u);const c=ss("div");c.index=null,c.vIndex=null,c.className="".concat(s,"-header-row"),u.appendChild(c);for(let e=0;e<r.visibleColumns.length;e++){const t=r.visibleColumns[e],n=ss("div");n.className="".concat(s,"-header-cell ").concat(t.cellClasses||""),n.columnName=t.name,n.appendChild(ss("div")),c.appendChild(n)}document.body.appendChild(a),l-=function(e){const t=getComputedStyle(e);return(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0)}(c);const d=c.querySelectorAll("div.".concat(s,"-header-cell"));for(const e of d){const t=getComputedStyle(e);if("border-box"!==t.boxSizing){l-=(parseFloat(t.borderRightWidth)||0)+(parseFloat(t.borderLeftWidth)||0)+cs(e);const n=e.columnName,i=r.columns.get(n);i&&(l-=i.arrowProposedWidth||0)}}return a.remove(),Math.max(0,l)}function ms(e){const t=e._p,r=e._o.tableClassName,n=r+"-row",i=r+"-cell",o=t.visibleColumns,l=o.length,s=ss("div");s.className=n,s.style.float="left";let a=0;for(let e=0;e<l;e++){var u,c;const t=o[e],r=ss("div");r.className=i,r.style.width=(null!==(u=t.actualWidth)&&void 0!==u?u:0)+"px",t.cellClasses&&(r.className+=" "+t.cellClasses),r.appendChild(ss("div")),s.appendChild(r),a+=null!==(c=t.actualWidth)&&void 0!==c?c:0}const d=ss("div");d.className=e.el.className,wl(d,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",float:"left",width:"1px",overflow:"hidden"});const h=ss("div");h.className=r,d.appendChild(h);const f=ss("div");f.className=r+"-body",f.style.width=a+1e4+"px",h.appendChild(f),f.appendChild(s),document.body.appendChild(d);const m=ss("div");wl(m,{border:"1.5px solid #000",width:"0",height:"0",position:"absolute",left:"0",top:"-9999px"}),document.body.appendChild(m);const p=parseFloat(getComputedStyle(m).borderWidth),v=Math.round(p)!==p;m.remove();let g=Sl(s,!0,!0,!0);return g-=t.scrollbarWidth||0,v&&g++,d.remove(),g}function ps(e){const t=e._p;return!!t.table&&"rtl"===getComputedStyle(t.table).direction}function vs(e){return 0===e.widthMode?"auto":2===e.widthMode?100*e.width+"%":e.width}class gs{static saveSelection(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const r=t.getRangeAt(0);if(e!==r.commonAncestorContainer&&!function(e,t){let r=e;for(;(r=null!==(n=null===(i=r)||void 0===i?void 0:i.parentNode)&&void 0!==n?n:null)&&r!==t;)var n,i;return!!r}(r.commonAncestorContainer,e))return null;const n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString().length;return{start:i,end:i+r.toString().length}}static restoreSelection(e,t){let r=0;const n=[e];let i,o=!1,l=!1;const s=document.createRange();for(s.setStart(e,0),s.collapse(!0);!l&&(i=n.pop());)if(i.nodeType===Node.TEXT_NODE){const e=r+i.length;!o&&t.start>=r&&t.start<=e&&(s.setStart(i,t.start-r),o=!0),o&&t.end>=r&&t.end<=e&&(s.setEnd(i,t.end-r),l=!0),r=e}else{let e=i.childNodes.length;for(;e--;)n.push(i.childNodes[e])}const a=window.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}}const bs=document.createElement.bind(document);function ys(e,t){var r,n,i;const o=e._o,l=ps(e);let s=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!s)return null;s[Ql]&&(s=s[Ql]);let a=s.previousSibling;for(;a&&1!==a.nodeType;)a=a.previousSibling;const u=!a,c=t,d=null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=c.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t,h=(d.pageX||d.clientX||0)-Wl(s).left;if(l){var f,m,p;if(!u&&Sl(s,!0,!0,!0)-h<=o.resizeAreaWidth/2)return null!==(f=null===(m=a)||void 0===m?void 0:m.columnName)&&void 0!==f?f:null;if(h<=o.resizeAreaWidth/2)return null!==(p=s.columnName)&&void 0!==p?p:null}else{var v,g,b;if(!u&&h<=o.resizeAreaWidth/2)return null!==(v=null===(g=a)||void 0===g?void 0:g.columnName)&&void 0!==v?v:null;if(Sl(s,!0,!0,!0)-h<=o.resizeAreaWidth/2)return null!==(b=s.columnName)&&void 0!==b?b:null}return null}function ws(e){const t=e._p;return t.resizer&&(t.resizer.remove(),t.resizer=null,t.eventsSink.remove(document,".colresize")),e}function Cs(e,t){const r=t;if("mousedown"===t.type&&0!==r.button)return;const n=e._o,i=e._p,o=ys(e,t);if(o){const r=i.columns.get(o);if(!n.resizableColumns||!r||!r.resizable)return!1;const l=ps(e);i.resizer&&i.resizer.remove(),i.resizer=bs("div"),i.resizer.className=n.resizerClassName,wl(i.resizer,{position:"absolute",display:"block",zIndex:"-1",visibility:"hidden",width:"2px",background:"#000",opacity:"0.7"}),e.el.appendChild(i.resizer);const s=r.element,a=i.resizer.parentNode,u=getComputedStyle(a),c=getComputedStyle(s),d=Wl(s),h=Wl(a);h.left+=parseFloat(u.borderLeftWidth)||0,h.top+=parseFloat(u.borderTopWidth)||0,d.left-=h.left,d.top-=h.top,d.top-=parseFloat(c.borderTopWidth)||0;const f=Sl(i.resizer,!0,!0,!0);l?(d.left-=Math.ceil((parseFloat(c.borderLeftWidth)||0)/2),d.left-=Math.ceil(f/2)):(d.left+=Sl(s,!0,!0,!0),d.left+=Math.ceil((parseFloat(c.borderRightWidth)||0)/2),d.left-=Math.ceil(f/2)),wl(i.resizer,{"z-index":"10",visibility:"visible",left:d.left+"px",top:d.top+"px",height:xl(e.el,!1,!1,!1)+"px"}),i.resizer.columnName=s.columnName;try{i.resizer.style.zIndex=""}catch(e){}i.eventsSink.add(document,"mousemove.colresize",t=>Ss(e,t)).add(document,"touchmove.colresize",t=>Ss(e,t)).add(document,"mouseup.colresize",t=>xs(e,t)).add(document,"touchend.colresize",t=>xs(e,t)),t.preventDefault()}}function Ss(e,t){var r,n,i;const o=e._p;if(!o.resizer)return;const l=o.columns.get(o.resizer.columnName);if(!l)return;const s=ps(e),a=l.element,u=o.resizer.parentNode,c=getComputedStyle(u),d=getComputedStyle(a),h=Wl(a),f=Wl(u);f.left+=parseFloat(c.borderLeftWidth)||0,h.left-=f.left;const m=Sl(o.resizer,!0,!0,!0),p="border-box"===d.boxSizing,v=t;let g=(null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=v.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-f.left,b=h.left;b-=Math.ceil(m/2),s?(b+=Sl(a,!0,!0,!0),b-=l.ignoreMin?0:e._o.minColumnWidth,p||(b-=Math.ceil((parseFloat(d.borderLeftWidth)||0)/2),b-=cs(a)),g>b&&(g=b)):(b+=l.ignoreMin?0:e._o.minColumnWidth,p||(b+=Math.ceil((parseFloat(d.borderRightWidth)||0)/2),b+=cs(a)),g<b&&(g=b)),o.resizer.style.left=g+"px"}function xs(e,t){var r,n,i;const o=e._o,l=e._p;if(!l.resizer)return;l.eventsSink.remove(document,".colresize");const s=l.columns.get(l.resizer.columnName);if(!s)return l.resizer.remove(),void(l.resizer=null);const a=ps(e),u=s.element,c=u.firstChild,d=l.resizer.parentNode,h=getComputedStyle(d),f=getComputedStyle(u),m=Wl(u),p=Wl(d);p.left+=parseFloat(h.borderLeftWidth)||0,m.left-=p.left;const v=Sl(l.resizer,!0,!0,!0),g="border-box"===f.boxSizing,b=t;let y=(null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=b.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:t).pageX-p.left,w=m.left,C=0;if(w-=Math.ceil(v/2),a){if(!g){y+=cs(u);const e=getComputedStyle(c||u);y+=parseFloat(e.borderLeftWidth)||0,y+=parseFloat(e.borderRightWidth)||0,y+=s.arrowProposedWidth||0}w+=Sl(u,!0,!0,!0);const t=w-(s.ignoreMin?0:e._o.minColumnWidth);y>t&&(y=t),C=w-y}else{if(!g){y-=cs(u);const e=getComputedStyle(c||u);y-=parseFloat(e.borderLeftWidth)||0,y-=parseFloat(e.borderRightWidth)||0,y-=s.arrowProposedWidth||0}const t=w+(s.ignoreMin?0:e._o.minColumnWidth);y<t&&(y=t),C=y-w}l.resizer.remove(),l.resizer=null;let S=C;if(2===s.widthMode){let t=fs(e),r=0,n=0;for(let e=0;e<l.visibleColumns.length;e++){var x;const i=l.visibleColumns[e];i.name!==s.name&&(2===i.widthMode?(r+=i.width,n++):t-=null!==(x=i.actualWidth)&&void 0!==x?x:0)}if(t=Math.max(1,t),1===t&&l.table&&(t=l.table.clientWidth),S=C/t,n>0){const e=S/((1-S)/r);r+=S,(r<1&&o.relativeWidthGrowsToFillWidth||r>1&&o.relativeWidthShrinksToFillWidth)&&(S=e)}S*=100,S+="%"}e.setColumnWidth(s.name,S)}function _s(e,t){var r;const n=e._o,i=e._p;if(!n.resizableColumns)return;const o=ys(e,t),l=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));l&&(o&&null!==(r=i.columns.get(o))&&void 0!==r&&r.resizable?l.style.cursor="e-resize":l.style.cursor="")}function Rs(e,t){var r,n,i;const o=e._o,l=t,s=t,a=null!==(r=null!==(n=t[Zl])&&void 0!==n?n:null===(i=l.changedTouches)||void 0===i?void 0:i[0])&&void 0!==r?r:{pageX:s.pageX,pageY:s.pageY},u=t.target.closest("div.".concat(o.tableClassName,"-header-cell,div.").concat(o.cellPreviewClassName));if(!u)return;const c=Wl(u);c.width=Sl(u,!0,!0,!0),c.height=xl(u,!0,!0,!0),e.emit("headercontextmenu",{columnName:u.columnName,pageX:a.pageX,pageY:a.pageY,bounds:c})}function Is(e,t){if(us(t))return;if(ys(e,t))return;const r=e._o,n=e._p,i=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!i)return;if(!r.sortableColumns)return;const o=n.columns.get(i.columnName),l=n.rows.sortColumn;if(o&&o.sortable){let t=!0;const n=l.length?l[l.length-1]:null;n&&n.column===o.name&&(n.descending&&r.allowCancelSort?(t=!1,l.splice(l.length-1,1)):n.descending=!n.descending);const i=e;t?i.sort(o.name,void 0,!0).render():i.sort()}}const Ws=Array.prototype.indexOf,Ps=document.createElement.bind(document);function Es(e){const t=e._p;return t.headerRow&&(t.headerRow=void 0),e}function Ns(e){const t=e._o,r=e._p;if(!r.tbody)return e;if(t.virtualTable&&r.virtualListHelper){const e=r.virtualListHelper.estimateFullHeight();r._lastVirtualScrollHeight=e,r.tbody.style.height=e+"px"}else r.tbody.style.height="";return e}function ks(e,t){const r=e._p;if(!r.table)return e;const n=r.table.offsetWidth-r.table.clientWidth;if(n!==r.scrollbarWidth||t){var i;r.scrollbarWidth=n;for(let e=0;e<r.columns.length;e++)r.columns[e].actualWidthConsideringScrollbarWidth=null;if(r.scrollbarWidth>0&&r.visibleColumns.length>0&&r.tbody&&r.headerRow){var o;const e=r.visibleColumns.length-1;r.visibleColumns[e].actualWidthConsideringScrollbarWidth=(null!==(o=r.visibleColumns[e].actualWidth)&&void 0!==o?o:0)-r.scrollbarWidth;const t=r.visibleColumns[e].actualWidthConsideringScrollbarWidth+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[e].style.width=t)}r.headerRow.childNodes[e].style.width=t}Os(e),null===(i=r.notifyRendererOfColumnsConfig)||void 0===i||i.call(r)}return e}function Ls(e,t){const r=e._o,n=e._p;if(!n.tbody||!n.table||!n.headerRow)return e;const i=ms(e);if(n.tbody.style.minWidth=i+"px",n.headerRow.style.minWidth=i+(n.scrollbarWidth||0)+"px",n.eventsSink.remove(n.table,"scroll"),r.width===ls.AUTO)_l(n.table,Sl(n.tbody,!0,!0,!0)),_l(e.el,Sl(n.table,!0,!0,!0));else if(r.width===ls.SCROLL){if(t){const t=n.table?n.table.scrollTop:0,r=n.table?n.table.scrollLeft:0;!function(e){const t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}(e.el),n.table.scrollTop=t,n.table.scrollLeft=r,n.header&&(n.header.scrollLeft=r)}const r=()=>function(e){const t=e._p;t.header.scrollLeft=t.table.scrollLeft,Ts(e)}(e);n.eventsSink.add(n.table,"scroll",r)}return e}function Os(e){var t;const r=e._p,n=e._o;if(!r.headerRow)return;const i=n.tableClassName+"-sticky",o=r.headerRow,l=ps(e);r.lastIsRtl=l;const s=null!==(t=r.scrollbarWidth)&&void 0!==t?t:0;let a=0,u=0,c=null;const d=[],h=[];let f=null,m=[];for(let e=o.firstElementChild;e;e=e.nextElementSibling){var p;const t=e.getAttribute("data-column");if(!t)continue;const n=r.columns.get(t);if(n)if("start"===n.sticky||"end"===n.sticky){var v;e.className+=" "+i,e.style.position="sticky";let t=null!==(v=n.actualWidth)&&void 0!==v?v:0,r=null;if(null===c&&(r=getComputedStyle(e),c=r.boxSizing),"content-box"===c&&(null===r&&(r=getComputedStyle(e)),t+=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0)),"start"===n.sticky){const r=n.stickyPos={direction:"start",absDirection:l?"right":"left",offset:a};e.style[r.absDirection]=a+"px",a+=t,m.length=0,f=[e],d.push(f)}else{const r=n.stickyPos={direction:"end",absDirection:l?"left":"right",offset:u};e.style[r.absDirection]=u+s+"px",u+=t,h.push([e,...m]),m.length=0}}else delete n.stickyPos,null!==(p=f)&&void 0!==p&&p.push(e),null!=m&&m.push(e),"sticky"===e.style.position&&(e.classList.remove(i),e.style.position="",e.style.left="",e.style.right="")}r.stickiesStart=d,r.stickiesEnd=h,Ts(e)}function Ts(e){const t=e._p;if(!t.table||!t.headerRow||!t.tbody)return;const r=t.stickiesStart,n=t.stickiesEnd,i=t.stickiesSetStart,o=t.stickiesSetEnd,l=t.stickiesSetStart=new Set,s=t.stickiesSetEnd=new Set;if(null!=r&&r.length||null!=n&&n.length){const e=t.table.scrollLeft;if(e===t.lastStickyScrollLeft)return;t.lastStickyScrollLeft=e;const i=t.headerRow.children,o=1.5,a=t.lastIsRtl,u=(e,t,r)=>{if(e&&e.length)for(const n of e){const e=n[0],l=n.slice(1),s=l[0],u=l[l.length-1];if(!e||!e.getBoundingClientRect)continue;const c=e.getBoundingClientRect(),d=t!==a;let h=!1;if(s&&u){const e=s.getBoundingClientRect(),r=u.getBoundingClientRect();h=t?a?c.right-o>r.left&&c.left+o<e.right:c.right-o>e.left&&c.left+o<r.right:a?c.left+o<e.right&&c.right-o>r.left:c.left+o<r.right&&c.right-o>e.left}e.classList.toggle(d?"is-sticky-left":"is-sticky-right",h),h&&r.add(Ws.call(i,e))}};u(r,!0,l),u(n,!1,s)}const a=[],u=[];for(const e of l)(null==i?void 0:i.has(e))||a.push({index:e,start:!0});for(const e of s)(null==o?void 0:o.has(e))||a.push({index:e,start:!1});if(i)for(const e of i)l.has(e)||u.push({index:e,start:!0});if(o)for(const e of o)s.has(e)||u.push({index:e,start:!1});if(!a.length&&!u.length)return;let c=t.tbody.firstElementChild;for(;c;){const e=c.children;for(const r of u){var d;null===(d=e[r.index])||void 0===d||d.classList.remove(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}for(const r of a){var h;null===(h=e[r.index])||void 0===h||h.classList.add(r.start!==t.lastIsRtl?"is-sticky-left":"is-sticky-right")}c=c.nextElementSibling}t.isStickyColumns=new Map;for(const e of l)t.isStickyColumns.set(e,"start");for(const e of s)t.isStickyColumns.set(e,"end")}function Fs(e,t){const r=e._p,n=e._o;if(!r.headerRow||!r.tbody)return e;const i=r.headerRow.querySelectorAll("div.".concat(n.tableClassName,"-header-cell"))[t];if(!i)return e;const o=r.columns.get(i.columnName);if(o){i.style.width=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px";const e=(o.actualWidthConsideringScrollbarWidth||o.actualWidth||0)+"px",n=r.tbody.childNodes;for(let r=0,i=n.length;r<i;r++){const i=n[r];1===i.nodeType&&(i.childNodes[t].style.width=e)}}return e}function As(e){const t=e._p,r=e._o;if(t.table&&t.headerRow){const e=r.tableClassName,i=El(t.headerRow,">div.".concat(e,"-header-cell.sorted")),o=Array.prototype.slice.call(i,0).map(e=>e.querySelector(":scope>div>.sort-arrow")).filter(e=>!!e);for(const e of o){var n;const r=null===(n=e.parentNode)||void 0===n?void 0:n.parentNode;if(r){const e=t.columns.get(r.columnName);e&&(e.arrowProposedWidth=0)}e.remove()}for(const e of i)e.classList.remove("sorted","desc")}return e}function Hs(e,t,r){var n;const i=e._p,o=e._o,l=i.columns.get(t);if(!l)return!1;const s=Ps("span");return s.className="sort-arrow",l.element&&(l.element.className+=r?" sorted desc":" sorted",null!==(n=l.element.firstChild)&&void 0!==n&&n.insertBefore(s,l.element.firstChild.firstChild)),2!==l.widthMode&&o.adjustColumnWidthForSortArrow&&(l.arrowProposedWidth=s.scrollWidth+(parseFloat(getComputedStyle(s).marginRight)||0)+(parseFloat(getComputedStyle(s).marginLeft)||0)),!0}function Ms(e,t){const r=t.firstChild;t.addEventListener("mousedown",t=>Cs(e,t)),t.addEventListener("mousemove",t=>_s(e,t)),t.addEventListener("mouseup",t=>function(e,t){2===t.button&&Rs(e,t)}(e,t)),t.addEventListener("mouseleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));n&&(n.style.cursor="")}(e,t)),t.addEventListener("touchstart",t=>function(e,t){const r=e._p;if(r.currentTouchId)return;const n=t.changedTouches[0];r.currentTouchId=n.identifier;const i=t.currentTarget,o={x:n.pageX,y:n.pageY};let l,s=o;const a=function(){r.currentTouchId=null,r.eventsSink.remove(i,".colheader"),clearTimeout(l)};t[Zl]=t.changedTouches[0],Cs(e,t),l=setTimeout(()=>{a(),r.eventsSink.add(i,"touchend.colheader",e=>{us(e)||e.preventDefault(),r.eventsSink.remove(i,".colheader")},{once:!0}).add(i,"touchcancel.colheader",e=>{r.eventsSink.remove(i,".colheader")},{once:!0}),Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9&&(ws(e),Rs(e,t))},500),r.eventsSink.add(i,"touchend.colheader",t=>{const n=t,i=Vl(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(a(),us(t)||t.preventDefault(),s={x:i.pageX,y:i.pageY},(Math.sqrt(Math.pow(Math.abs(s.x-o.x),2)+Math.pow(Math.abs(s.y-o.y),2))<9||r.resizer)&&(n[Zl]=i,Is(e,n)))}).add(i,"touchcancel.colheader",a).add(i,"touchmove.colheader",t=>{const n=t,i=Vl(Array.from(n.changedTouches),e=>e.identifier===r.currentTouchId);i&&(s={x:i.pageX,y:i.pageY},r.resizer&&(t.preventDefault(),n[Zl]=i,_s(e,n)))})}(e,t)),t.addEventListener("dragstart",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;const e=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!e)return void t.preventDefault();const o=n.columns.get(e.columnName);o&&o.movable?(e.style.opacity="0.35",n.dragId=161061273*Math.random(),null===(i=t.dataTransfer)||void 0===i||i.setData("text",JSON.stringify({dragId:n.dragId,column:o.name}))):t.preventDefault()}else t.preventDefault()}(e,t)),t.addEventListener("click",t=>Is(e,t)),t.addEventListener("contextmenu",e=>e.preventDefault()),r.addEventListener("dragenter",t=>function(e,t){const r=e._o,n=e._p;if(r.movableColumns){var i;let e=null;const o=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text");if(o)try{e=JSON.parse(o)}catch(t){e=null}const l=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!l)return;if(!e||n.dragId===e.dragId&&l.columnName!==e.column){const e=n.columns.get(l.columnName);e&&(e.movable||e!==n.visibleColumns[0])&&l.classList.add("drag-over")}}}(e,t)),r.addEventListener("dragover",e=>{e.preventDefault()}),r.addEventListener("dragleave",t=>function(e,t){const r=e._o,n=t.target.closest("div.".concat(r.tableClassName,"-header-cell,div.").concat(r.cellPreviewClassName));if(!n)return;const i=t.relatedTarget;(null==i?void 0:i.contains(n.firstChild))||n.classList.remove("drag-over")}(e,t)),r.addEventListener("drop",t=>function(e,t,r){t.preventDefault();const n=e._o,i=e._p,o=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text");if(!o)return;let l;try{l=JSON.parse(o)}catch(e){return}const s=t.target.closest("div.".concat(n.tableClassName,"-header-cell,div.").concat(n.cellPreviewClassName));if(s){if(n.movableColumns&&l.dragId===i.dragId){const t=l.column,r=s.columnName,n=i.columns.get(t),o=i.columns.get(r);n&&o&&n.movable&&(o.movable||o!==i.visibleColumns[0])&&e.moveColumn(t,r)}s.classList.remove("drag-over")}}(e,t))}function zs(e,t){let r=Math.max(0,parseFloat(e)||0),n=0;return r>0&&(e===r+"%"?(n=2,r/=100):r>0&&r<1?n=2:(r<t&&(r=t),n=1)),{width:r,mode:n}}function js(e,t){var r;let n=zs(t.width,t.ignoreMin?0:e.minColumnWidth),i={name:t.name,label:void 0===t.label?t.name:t.label,width:n.width,widthMode:n.mode,resizable:void 0===t.resizable||t.resizable,sortable:void 0===t.sortable||t.sortable,movable:void 0===t.movable||t.movable,visible:void 0===t.visible||t.visible,cellClasses:void 0===t.cellClasses?e.cellClasses:t.cellClasses,ignoreMin:void 0!==t.ignoreMin&&!!t.ignoreMin,sticky:void 0===t.sticky?null:t.sticky||null,allowPreview:!(null!==(r=t.allowPreview)&&void 0!==r&&!r),dataPath:[],comparePath:[],order:0};const o=void 0===t.dataPath?i.name:t.dataPath,l=void 0===t.comparePath?o:t.comparePath;return i.dataPath="string"==typeof o?o.split("."):o,i.comparePath="string"==typeof l?l.split("."):l,i}function Us(e){const t=e._p;0===t.visibleColumns.length&&t.columns.length&&(t.columns[0].visible=!0,t.visibleColumns.push(t.columns[0]),e.emit("showcolumn",t.columns[0].name))}function Bs(e){const t=e._p;if(t.filteredRows&&t.filterArgs){let r=e._o.filter||os;t.filteredRows=t.rows.filteredCollection(r,t.filterArgs)}}function qs(e,t,r){let n=r.dataPath,i=t[n[0]];for(let e=1;e<n.length&&null!=i;e++)i=i&&i[n[e]];const o=e.cellFormatter;let l;if(o[Gl])l=o(i,r.name,t);else try{l=o(i,r.name,t)}catch(e){l="[ERROR]",console.error("Failed to generate content for cell "+r.name,e)}return null==l&&(l=""),l}const Ds=Array.prototype.indexOf,Vs=document.createElement.bind(document);function $s(e){const t=e._p;if(t.cellPreviewCell){var r;const n=t.cellPreviewCell,i=n[Ql];let o;try{o=gs.saveSelection(n)}catch(e){}t.cellPreviewCell.remove(),i&&t._unbindCellHoverOut(i),t._unbindCellHoverOut(n);try{o&&i&&gs.restoreSelection(i,o)}catch(e){}e.emit("cellpreviewdestroy",{el:n.firstChild,name:n.columnName,rowIndex:null!==(r=n.rowIndex)&&void 0!==r?r:null,rowData:null==n.rowIndex?null:t.rows[n.rowIndex],cell:i,cellEl:null==i?void 0:i.firstChild}),i&&delete i[Kl],delete n[Ql],t.cellPreviewCell=null,t.abortCellPreview=!1}else t.abortCellPreview=!0;return e}const Gs=Object.prototype.hasOwnProperty;class Xs{constructor(e){var t,r;this.VERSION=Xs.VERSION;const n=this._o={},i=this._p={eventsSink:new Nl,mitt:{all:o=o||new Map,on:function(e,t){var r=o.get(e);r?r.push(t):o.set(e,[t])},off:function(e,t){var r=o.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):o.set(e,[]))},emit:function(e,t){var r=o.get(e);r&&r.slice().map(function(e){e(t)}),(r=o.get("*"))&&r.slice().map(function(r){r(e,t)})}},tableSkeletonNeedsRendering:!0};var o;this.el=e.el&&e.el instanceof HTMLElement?e.el:document.createElement("div"),this.el!==e.el&&this.el.classList.add(e.className||"dgtable-wrapper"),i.eventsSink.add(this.el,"dragend.colresize",e=>{return t=e,void(this._p.resizer||(t.target.style.opacity=""));var t}),n.virtualTable=void 0===e.virtualTable||!!e.virtualTable,n.estimatedRowHeight=e.estimatedRowHeight||void 0,n.rowsBufferSize=e.rowsBufferSize||3,n.minColumnWidth=Math.max(e.minColumnWidth||35,0),n.resizeAreaWidth=e.resizeAreaWidth||8,n.resizableColumns=void 0===e.resizableColumns||!!e.resizableColumns,n.movableColumns=void 0===e.movableColumns||!!e.movableColumns;const l=null!==(t=e.maxColumnsSortCount)&&void 0!==t?t:e.sortableColumns;n.sortableColumns=void 0===l?1:Number(l)||1,n.adjustColumnWidthForSortArrow=void 0===e.adjustColumnWidthForSortArrow||!!e.adjustColumnWidthForSortArrow,n.convertColumnWidthsToRelative=void 0!==e.convertColumnWidthsToRelative&&!!e.convertColumnWidthsToRelative,n.autoFillTableWidth=void 0!==e.autoFillTableWidth&&!!e.autoFillTableWidth,n.allowCancelSort=void 0===e.allowCancelSort||!!e.allowCancelSort,n.cellClasses=void 0===e.cellClasses?"":e.cellClasses,n.resizerClassName=void 0===e.resizerClassName?"dgtable-resize":e.resizerClassName,n.tableClassName=void 0===e.tableClassName?"dgtable":e.tableClassName,n.allowCellPreview=void 0===e.allowCellPreview||e.allowCellPreview,n.allowHeaderCellPreview=void 0===e.allowHeaderCellPreview||e.allowHeaderCellPreview,n.cellPreviewClassName=void 0===e.cellPreviewClassName?"dgtable-cell-preview":e.cellPreviewClassName,n.cellPreviewAutoBackground=void 0===e.cellPreviewAutoBackground||e.cellPreviewAutoBackground,n.onComparatorRequired=void 0===e.onComparatorRequired?null:e.onComparatorRequired,n.customSortingProvider=void 0===e.customSortingProvider?null:e.customSortingProvider,n.width=void 0===e.width?ls.NONE:e.width,n.relativeWidthGrowsToFillWidth=void 0===e.relativeWidthGrowsToFillWidth||!!e.relativeWidthGrowsToFillWidth,n.relativeWidthShrinksToFillWidth=void 0!==e.relativeWidthShrinksToFillWidth&&!!e.relativeWidthShrinksToFillWidth,this.setCellFormatter(e.cellFormatter),this.setHeaderCellFormatter(e.headerCellFormatter),this.setFilter(e.filter),n.height=e.height,this.setColumns(e.columns||[],!1);let s=[];const a=null!==(r=e.sortedColumns)&&void 0!==r?r:e.sortColumn;if(a){let e=Array.isArray(a)?a:[a];for(let t=0,r=e.length;t<r;t++){var u;let r=e[t];"string"==typeof r&&(r={column:r,descending:!1});let n=i.columns.get(r.column);n&&s.push({column:r.column,comparePath:n.comparePath||n.dataPath,descending:null!==(u=r.descending)&&void 0!==u&&u})}}i.rows=new rs({sortColumn:s}),i.rows.onComparatorRequired=(e,t,r)=>{if(n.onComparatorRequired)return n.onComparatorRequired(e,t,r)},i.rows.customSortingProvider=(e,t)=>n.customSortingProvider?n.customSortingProvider(e,t):t(e),i.filteredRows=null,i.scrollbarWidth=0,i._lastVirtualScrollHeight=0,function(e){const t=e._p,r=t=>{let r=t.currentTarget,n=t.relatedTarget;n===r||r.contains(n)||r[Kl]&&(n===r[Kl]||r[Kl].contains(n))||function(e,t,r,n){const i=e._o,o=e._p,l=t.firstElementChild;if(!l)return;if(!(l.scrollWidth-l.clientWidth>1||l.scrollHeight-l.clientHeight>1))return;$s(e),o.abortCellPreview=!1;const s=t.parentElement;if(!s)return;const a=null===(r=o.visibleColumns[Ds.call(s.childNodes,t)])||void 0===r?void 0:r.name,u=a?o.columns.get(a):null;if(!u||!1===u.allowPreview)return;const c=Vs("div");c.innerHTML=t.innerHTML,c.className=i.cellPreviewClassName;const d=t.classList.contains("".concat(i.tableClassName,"-header-cell"));d&&(c.classList.add("header"),t.classList.contains("sortable")&&c.classList.add("sortable"),c.draggable=!0,Ms(e,c));const h=getComputedStyle(t),f=getComputedStyle(l),m="right"===h.float,p=m?"right":"left",v=parseFloat(h.paddingLeft)||0,g=parseFloat(h.paddingRight)||0,b=parseFloat(h.paddingTop)||0,y=parseFloat(h.paddingBottom)||0;let w=l.scrollWidth+(t.clientWidth-l.offsetWidth);const C="border-box"===h.boxSizing;if(C?c.style.boxSizing="border-box":(w-=v+g,c.style.marginTop=(parseFloat(h.borderTopWidth)||0)+"px"),!o.transparentBgColor1){const e=document.createElement("div");document.body.appendChild(e),e.style.backgroundColor="transparent",o.transparentBgColor1=getComputedStyle(e).backgroundColor,e.style.backgroundColor="rgba(0,0,0,0)",o.transparentBgColor2=getComputedStyle(e).backgroundColor,e.remove()}const S={"box-sizing":C?"border-box":"content-box",width:w+"px","min-height":Math.max(xl(t),/%/.test(h.minHeight)?0:parseFloat(h.minHeight)||0)+"px","padding-left":v+"px","padding-right":g+"px","padding-top":b+"px","padding-bottom":y+"px",overflow:"hidden",position:"absolute","z-index":"-1",[p]:"0",top:"0",cursor:h.cursor};let x=h.backgroundColor;x!==o.transparentBgColor1&&x!==o.transparentBgColor2||(x=getComputedStyle(s).backgroundColor),x!==o.transparentBgColor1&&x!==o.transparentBgColor2||(x="#fff"),S["background-color"]=x,wl(c,S),c.firstChild&&wl(c.firstChild,{direction:f.direction,"white-space":f.whiteSpace,"min-height":f.minHeight,"line-height":f.lineHeight,font:f.font}),e.el.appendChild(c),d&&ds(c),c.rowVIndex=s.vIndex;const _=c.rowIndex=s.index;c.columnName=a;try{const e=gs.saveSelection(t);e&&gs.restoreSelection(c,e)}catch(e){}if(e.emit("cellpreview",{el:c.firstElementChild,name:c.columnName,rowIndex:null!=_?_:null,rowData:null==_?null:o.rows[_],cell:t,cellEl:l}),o.abortCellPreview)return void c.remove();null!=_&&c.addEventListener("click",t=>{e.emit("rowclick",{event:t,filteredRowIndex:s.vIndex,rowIndex:_,rowEl:s,rowData:o.rows[_]})});const R=e.el,I=R===window?document:R,W=getComputedStyle(R),P=Wl(t),E=Wl(R);if(m){const e=window.innerWidth;P.right=e-(P.left+Sl(t,!0,!0,!0)),E.right=e-(E.left+Sl(R,!0,!0,!0))}P.left-=parseFloat(W.borderLeftWidth)||0,"right"===p&&void 0!==P.right&&void 0!==E.right&&(P.right-=parseFloat(W.borderRightWidth)||0),P.top-=parseFloat(W.borderTopWidth)||0,"left"===p?P.left+=parseFloat(h.borderLeftWidth)||0:void 0!==P.right&&(P.right+=parseFloat(h.borderRightWidth)||0),P.top+=parseFloat(h.borderTopWidth)||parseFloat(h.borderBottomWidth)||0,P.left-=E.left,"right"===p&&void 0!==P.right&&void 0!==E.right&&(P.right-=E.right),P.top-=E.top;const N=Sl(R,!1,!1,!1)-Sl(c,!0,!0,!0),k="left"===p?P.left:null!==(n=P.right)&&void 0!==n?n:0,L=k<0?0:k>N?N:k;"left"===p?P.left=L:P.right=L;const O=xl(t,!0,!0,!0),T=("scrollTop"in I?I.scrollTop:0)+xl(R,!0)-O;P.top>T&&(P.top=Math.max(0,T));const F={top:P.top+"px","z-index":9999};F[p]=("left"===p?P.left:P.right)+"px",wl(c,F),c[Ql]=t,o.cellPreviewCell=c,t[Kl]=c,o._bindCellHoverOut(t),o._bindCellHoverOut(c),c.addEventListener("wheel",()=>{$s(e)})}(e,r)},n=t=>{let r=t.currentTarget[Ql]||t.currentTarget,n=t.relatedTarget;n===e.el||r.contains(n)||r[Kl]&&(n===r[Kl]||r[Kl].contains(n))||function(e){$s(e)}(e)};t._bindCellHoverIn=e=>{e[Xl]||e.addEventListener("mouseover",e[Xl]=r)},t._unbindCellHoverIn=e=>{e[Xl]&&(e.removeEventListener("mouseover",e[Xl]),e[Xl]=null)},t._bindCellHoverOut=e=>{e[Yl]||e.addEventListener("mouseout",e[Yl]=n)},t._unbindCellHoverOut=e=>{e[Yl]&&(e.removeEventListener("mouseout",e[Yl]),e[Yl]=null)}}(this)}on(e,t){return this[ts]||this._p.mitt.on(e,t),this}once(e,t){if(this[ts])return this;const r=n=>{this._p.mitt.off(e,r),t(n)};return this._p.mitt.on(e,r),this}off(e,t){return this[ts]||(e||t?this._p.mitt.off(e,t):this._p.mitt.all.clear()),this}emit(e,t){return this[ts]||this._p.mitt.emit(e,t),this}destroy(){var e,t,r;const n=this._p,i=this.el;if(this[ts]||!n)return this;if(n.resizer&&(n.resizer.remove(),n.resizer=null),null!==(e=n.virtualListHelper)&&void 0!==e&&e.destroy(),n.virtualListHelper=null,Es(this),null!==(t=n.table)&&void 0!==t&&t.remove(),null!==(r=n.tbody)&&void 0!==r&&r.remove(),n.workerListeners){for(let e=0;e<n.workerListeners.length;e++){let t=n.workerListeners[e];t.worker.removeEventListener("message",t.listener,!1)}n.workerListeners.length=0}n.rows.length=n.columns.length=0,n._deferredRender&&clearTimeout(n._deferredRender);for(let e in this)Gs.call(this,e)&&(this[e]=null);return this[ts]=!0,i&&i.remove(),this}close(){this.destroy()}remove(){this.destroy()}render(){const e=this._o,t=this._p;if(!this.el.offsetParent)return t._deferredRender||(t._deferredRender=setTimeout(()=>{t._deferredRender=null,!this[ts]&&this.el.offsetParent&&this.render()})),this;if(!0===t.tableSkeletonNeedsRendering){var r;t.tableSkeletonNeedsRendering=!1,e.width===ls.AUTO&&As(this);let o=t.table&&t.table.parentNode?t.table.scrollTop:NaN,l=t.table&&t.table.parentNode?(n=t.table,void 0===i&&(i="rtl"===getComputedStyle(n).direction),i?n.scrollWidth-n.clientWidth-ul(n,i):ul(n,i)):NaN;!function(e,t){const r=e._p,n=e._o;null!==(t=r.virtualListHelper)&&void 0!==t&&t.destroy(),r.virtualListHelper=null,r.table&&n.virtualTable&&(r.table.remove(),r.table=void 0,r.tbody=void 0),Es(e),r.currentTouchId=null,r.header&&r.header.remove();const i=n.tableClassName,o=Ps("div"),l=Ps("div");o.className="".concat(i,"-header"),l.className="".concat(i,"-header-row"),r.header=o,r.headerRow=l,o.appendChild(l),e.el.prepend(o),as(e.el),n.width===ls.SCROLL?e.el.style.overflow="hidden":e.el.style.overflow="",!n.height&&n.virtualTable&&(n.height=xl(e.el,!0))}(this),function(e){const t=e._p,r=e._o,n=r.tableClassName;if(r.virtualTable&&!t.virtualRowHeight){const r=()=>{const e=Ps("div"),t=e.appendChild(Ps("div")),r=t.appendChild(Ps("div"));return e.className="".concat(n,"-row"),t.className="".concat(n,"-cell"),r.innerHTML="0",e.style.visibility="hidden",e.style.position="absolute",e},i=Ps("div");i.className=e.el.className,wl(i,{"z-index":"-1",position:"absolute",left:"0",top:"-9999px",width:"1px",overflow:"hidden"});const o=Ps("div");o.className=n,i.appendChild(o);const l=Ps("div");l.className="".concat(n,"-body"),l.style.width="99999px",o.appendChild(l),document.body.appendChild(i);const s=r(),a=r(),u=r();l.appendChild(s),l.appendChild(a),l.appendChild(u),t.virtualRowHeight=xl(a,!0,!0,!0),i.remove()}if(!t.table){var i;const o=document.createDocumentFragment(),l=Ps("div");l.className=n,r.virtualTable&&(l.className+=" virtual");const s=getComputedStyle(l);let a=(null!==(i=r.height)&&void 0!==i?i:0)-xl(t.header,!0,!0,!0);"border-box"!==s.boxSizing&&(a-=parseFloat(s.borderTopWidth)||0,a-=parseFloat(s.borderBottomWidth)||0,a-=parseFloat(s.paddingTop)||0,a-=parseFloat(s.paddingBottom)||0),wl(l,{height:r.height?a+"px":"auto",display:"block",overflowY:"auto",overflowX:r.width===ls.SCROLL?"auto":"hidden"}),o.appendChild(l);const u=Ps("div");u.className=r.tableClassName+"-body",u.style.minHeight="1px",t.table=l,t.tbody=u,as(u),as(l),l.appendChild(u),e.el.appendChild(o),function(e,t){const r=e._p,n=e._o,i=n.tableClassName,o=i+"-row",l=i+"-row-alt",s=i+"-cell",a=i+"-sticky";let u=r.visibleColumns,c=u.length;r.notifyRendererOfColumnsConfig=()=>{u=r.visibleColumns,c=u.length;for(let e=0;e<c;e++){const t=u[e];t._finalWidth=t.actualWidthConsideringScrollbarWidth||t.actualWidth}},r.virtualListHelper=new Al({list:r.table,itemsParent:r.tbody,autoVirtualWrapperWidth:!1,virtual:n.virtualTable,buffer:n.rowsBufferSize,estimatedItemHeight:n.estimatedRowHeight?n.estimatedRowHeight:r.virtualRowHeight||40,itemElementCreatorFn:()=>Ps("div"),onItemRender:(t,i)=>{const d=r.filteredRows||r.rows,h=!!r.filteredRows,f=n.allowCellPreview,m=r.isStickyColumns;t.className=o,i%2==1&&(t.className+=" "+l);const p=d[i],v=h?p[es]:i;t.vIndex=i,t.index=v;for(let e=0;e<c;e++){var g;const i=u[e],o=Ps("div");if(o.columnName=i.name,o.setAttribute("data-column",i.name),o.className=s,o.style.width=(null!==(g=i._finalWidth)&&void 0!==g?g:0)+"px",i.cellClasses&&(o.className+=" "+i.cellClasses),i.stickyPos){o.className+=" "+a,o.style.position="sticky",o.style[i.stickyPos.absDirection]=i.stickyPos.offset+"px";const t=null==m?void 0:m.get(e);"start"===t&&!r.lastIsRtl||"end"===t&&r.lastIsRtl?o.classList.add("is-sticky-left"):("start"===t&&r.lastIsRtl||"end"===t&&!r.lastIsRtl)&&o.classList.add("is-sticky-right")}f&&r._bindCellHoverIn(o),o.appendChild(Ps("div")).innerHTML=qs(n,p,i),t.appendChild(o)}t.addEventListener("click",t[Jl]=r=>{e.emit("rowclick",{event:r,filteredRowIndex:i,rowIndex:v,rowEl:t,rowData:p})}),e.emit("rowcreate",{filteredRowIndex:i,rowIndex:v,rowEl:t,rowData:p})},onItemUnrender:t=>{t[Jl]&&t.removeEventListener("click",t[Jl]),function(e,t){const r=e._p;for(let e=0,n=t.childNodes,i=n.length;e<i;e++)r._unbindCellHoverIn(n[e])}(e,t),e.emit("rowdestroy",t)},onScrollHeightChange:t=>{t>r._lastVirtualScrollHeight&&!r.scrollbarWidth&&ks(e),r._lastVirtualScrollHeight=t}}),r.virtualListHelper.setCount((null!==(t=r.filteredRows)&&void 0!==t?t:r.rows).length),r.notifyRendererOfColumnsConfig()}(e)}}(this),this.tableWidthChanged(!0,!1),function(e){const t=e._p,r=e._o,n=r.allowCellPreview,i=r.allowHeaderCellPreview,o=r.tableClassName+"-header-cell",l=t.headerRow;for(let a=0;a<t.visibleColumns.length;a++){const u=t.visibleColumns[a];if(u.visible){var s;const c=Ps("div");c.draggable=!0,c.className=o,c.style.width=(null!==(s=u.actualWidth)&&void 0!==s?s:0)+"px",r.sortableColumns&&u.sortable&&(c.className+=" sortable"),c.columnName=u.name,c.setAttribute("data-column",u.name);const d=Ps("div");d.innerHTML=r.headerCellFormatter(u.label,u.name),c.appendChild(d),n&&i&&t._bindCellHoverIn(c),l.appendChild(c),t.visibleColumns[a].element=c,Ms(e,c),ds(c)}}Os(e),e.emit("headerrowcreate",l)}(this),t.virtualListHelper.setCount((null!==(r=t.filteredRows)&&void 0!==r?r:t.rows).length),Ns(this),ks(this,!0),Ls(this,!0);for(let e=0;e<t.rows.sortColumn.length;e++)Hs(this,t.rows.sortColumn[e].column,t.rows.sortColumn[e].descending);e.adjustColumnWidthForSortArrow&&t.rows.sortColumn.length?this.tableWidthChanged(!0):e.virtualTable||this.tableWidthChanged(),isNaN(o)||(t.table.scrollTop=o),isNaN(l)||(cl(t.table,l),cl(t.header,l)),this.emit("renderskeleton")}var n,i;return t.virtualListHelper.render(),this.emit("render"),this}clearAndRender(e){var t;let r=this._p;return r.tableSkeletonNeedsRendering=!0,null!==(t=r.notifyRendererOfColumnsConfig)&&void 0!==t&&t.call(r),(void 0===e||e)&&this.render(),this}setColumns(e,t){const r=this._p;e=e||[];let n=new is;for(let t=0,r=0;t<e.length;t++){let i=e[t],o=js(this._o,i);void 0!==i.order?(i.order>r&&(r=i.order+1),o.order=i.order):o.order=r++,n.push(o)}return n.normalizeOrder(),r.columns=n,r.visibleColumns=n.getVisibleColumns(),Us(this),this.clearAndRender(t),this}addColumn(e,t,r){const n=this._p;let i=n.columns;if(e&&!i.get(e.name)){let o=null;void 0!==t&&(o="string"==typeof t?i.get(t):i.getByOrder(t));let l=js(this._o,e);l.order=o?o.order:i.getMaxOrder()+1;for(let e=i.getMaxOrder(),t=l.order;e>=t;e--){let t=i.getByOrder(e);t&&t.order++}i.push(l),i.normalizeOrder(),n.visibleColumns=i.getVisibleColumns(),Us(this),this.clearAndRender(r),this.emit("addcolumn",l.name)}return this}removeColumn(e,t){const r=this._p;let n=r.columns,i=n.indexOf(e);return i>-1&&(n.splice(i,1),n.normalizeOrder(),r.visibleColumns=n.getVisibleColumns(),Us(this),this.clearAndRender(t),this.emit("removecolumn",e)),this}setColumnLabel(e,t){let r=this._p.columns.get(e);if(r&&(r.label=void 0===t?r.name:t,r.element))for(let e=0;e<r.element.firstChild.childNodes.length;e++){let t=r.element.firstChild.childNodes[e];if(3===t.nodeType){t.textContent=r.label;break}}return this}moveColumn(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=this._o,i=this._p;let o,l,s=i.columns,a=r?i.visibleColumns:s.getColumns();if("string"==typeof e?o=s.get(e):"number"==typeof e&&(o=a[e]),"string"==typeof t?l=s.get(t):"number"==typeof t&&(l=a[t]),o&&l&&e!==t){let e=o.order,t=l.order,r=s.moveColumn(o,l).getVisibleColumns();if(i.visibleColumns.length!==r.length||i.visibleColumns.some((e,t)=>e!==r[t]))if(i.visibleColumns=r,Us(this),n.virtualTable)this.clearAndRender();else{var u,c;const r=El(i.headerRow,">div.".concat(n.tableClassName,"-header-cell"));let o=e<t?t+1:t,l=e;r[0].parentNode.insertBefore(r[l],r[o]);let s=i.visibleColumns[e],a=(null!==(u=s.actualWidthConsideringScrollbarWidth||s.actualWidth)&&void 0!==u?u:0)+"px",d=i.visibleColumns[t],h=(null!==(c=d.actualWidthConsideringScrollbarWidth||d.actualWidth)&&void 0!==c?c:0)+"px",f=i.tbody.childNodes;for(let r=0,n=f.length;r<n;r++){let n=f[r];1===n.nodeType&&(n.insertBefore(n.childNodes[l],n.childNodes[o]),n.childNodes[t].firstChild.style.width=h,n.childNodes[e].firstChild.style.width=a)}}this.emit("movecolumn",{name:o.name,src:e,dest:t})}return this}setColumnVisible(e,t){const r=this._p;let n=r.columns.get(e);return t=!!t,n&&!!n.visible!==t&&(n.visible=t,r.visibleColumns=r.columns.getVisibleColumns(),this.emit(t?"showcolumn":"hidecolumn",e),Us(this),this.clearAndRender()),this}isColumnVisible(e){let t=this._p.columns.get(e);return!!t&&t.visible}setMinColumnWidth(e){let t=this._o;return e=Math.max(e,0),t.minColumnWidth!==e&&(t.minColumnWidth=e,this.tableWidthChanged(!0)),this}getMinColumnWidth(){return this._o.minColumnWidth}setColumnWidth(e,t){let r=this._p.columns.get(e),n=zs(t,r.ignoreMin?0:this._o.minColumnWidth);if(r){let e=vs(r);r.width=n.width,r.widthMode=n.mode;let t=vs(r);e!==t&&this.tableWidthChanged(!0),this.emit("columnwidth",{name:r.name,width:t,oldWidth:e})}return this}getColumnWidth(e){let t=this._p.columns.get(e);return t?vs(t):null}getColumnConfig(e){var t,r;let n=this._p.columns.get(e);return n?{name:n.name,label:n.label,width:vs(n),dataPath:null===(t=n.dataPath)||void 0===t?void 0:t.join("."),comparePath:null===(r=n.comparePath)||void 0===r?void 0:r.join("."),resizable:n.resizable,movable:n.movable,sortable:n.sortable,visible:n.visible,cellClasses:n.cellClasses,ignoreMin:n.ignoreMin,sticky:n.sticky,order:n.order}:null}getColumnsConfig(){const e=this._p;let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r].name]=this.getColumnConfig(e.columns[r].name);return t}setMaxColumnSortCount(e){const t=this._p,r=this._o;if(r.sortableColumns!==e&&(r.sortableColumns=e,t.table)){const e=El(t.headerRow,">div.".concat(r.tableClassName,"-header-cell"));for(let n=0,i=e.length;n<i;n++)e[n].classList[r.sortableColumns>0&&t.visibleColumns[n].sortable?"add":"remove"]("sortable")}return this}getMaxColumnSortCount(){return this._o.sortableColumns}setSortableColumns(e){return this.setMaxColumnSortCount(e)}getSortableColumns(){return this.getMaxColumnSortCount()}setMovableColumns(e){let t=this._o;return e=void 0===e||!!e,t.movableColumns!==e&&(t.movableColumns=e),this}getMovableColumns(){return this._o.movableColumns}setResizableColumns(e){let t=this._o;return e=void 0===e||!!e,t.resizableColumns!==e&&(t.resizableColumns=e),this}getResizableColumns(){return this._o.resizableColumns}getConvertColumnWidthsToRelative(){return this._o.convertColumnWidthsToRelative}setConvertColumnWidthsToRelative(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._o;return e=!!e,r.convertColumnWidthsToRelative!==e&&(r.convertColumnWidthsToRelative=e,t&&this.tableWidthChanged(!0)),this}setOnComparatorRequired(e){let t=this._o;return t.onComparatorRequired!==e&&(t.onComparatorRequired=e),this}setCustomSortingProvider(e){let t=this._o;return t.customSortingProvider!==e&&(t.customSortingProvider=e),this}sort(e,t,r){const n=this._o,i=this._p;let o=i.columns.get(e),l=i.rows.sortColumn.map(e=>({column:e.column,descending:e.descending}));if(o){if(r){for(let e=0;e<l.length;e++)if(l[e].column===o.name){e<l.length-1?l.length=0:(t=l[l.length-1].descending,l.splice(l.length-1,1));break}(n.sortableColumns>0&&l.length>=n.sortableColumns||l.length>=i.visibleColumns.length)&&(l.length=0)}else l.length=0;t=void 0!==t&&t,l.push({column:o.name,descending:!!t})}else l.length=0;return this.setSortedColumns(l)}resort(){const e=this._p;let t=e.columns,r=e.rows.sortColumn;if(r.length){var n;for(let e=0;e<r.length;e++)t.get(r[e].column)||r.splice(e--,1);e.rows.sortColumn=r,r.length&&(e.rows.sort(),e.filteredRows&&e.filteredRows.sort()),null===(n=e.virtualListHelper)||void 0===n||n.invalidate();let i=[];for(let e=0;e<r.length;e++)i.push({column:r[e].column,descending:r[e].descending});this.emit("sort",{sorts:i,resort:!0})}return this}setSortedColumns(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{immediate:!0,render:!0};const n=this._o,i=this._p;let o=i.columns,l=e.filter(e=>o.get(e.column)).map(e=>{let t=o.get(e.column);return{column:t.name,comparePath:t.comparePath||t.dataPath,descending:!!e.descending}});n.sortableColumns>0&&l.length>n.sortableColumns&&(l.length=n.sortableColumns),As(this);for(let e=0;e<l.length;e++)Hs(this,l[e].column,l[e].descending);n.adjustColumnWidthForSortArrow&&!i.tableSkeletonNeedsRendering&&this.tableWidthChanged(!0),i.rows.sortColumn=l,l.length&&r.immediate&&(i.rows.sort(),i.filteredRows&&i.filteredRows.sort(),null!==(t=i.virtualListHelper)&&void 0!==t&&t.invalidate(),i.virtualListHelper&&r.render&&i.virtualListHelper.render());let s=[];for(let e=0;e<l.length;e++)s.push({column:l[e].column,descending:l[e].descending});return this.emit("sort",{sorts:s}),this}getSortedColumns(){const e=this._p;let t=[];for(let r=0;r<e.rows.sortColumn.length;r++){let n=e.rows.sortColumn[r];t.push({column:n.column,descending:n.descending})}return t}setCellFormatter(e){if(!e){const t=e=>"string"==typeof e?$l(e):e;t[Gl]=!0,e=t}return this._o.cellFormatter=e,this}setHeaderCellFormatter(e){return this._o.headerCellFormatter=e||function(e){return"string"==typeof e?$l(e):e},this}setFilter(e){return this._o.filter=e,this}filter(e){const t=this._p;let r=this._o.filter||os;"string"==typeof arguments[0]&&"string"==typeof arguments[1]&&(e={column:arguments[0],keyword:arguments[1],caseSensitive:arguments[2]});let n=!!t.filteredRows;return t.filteredRows&&(t.filteredRows=null),t.filterArgs=null==e?null:"object"!=typeof e||Array.isArray(e)?e:Object.assign({},e),null!==t.filterArgs?(t.filteredRows=t.rows.filteredCollection(r,t.filterArgs),(n||t.filteredRows)&&(this.clearAndRender(),this.emit("filter",e))):(t.filterArgs=null,t.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}clearFilter(){const e=this._p;return e.filteredRows&&(e.filterArgs=null,e.filteredRows=null,this.clearAndRender(),this.emit("filterclear",{})),this}getHtmlForRowCell(e,t){const r=this._p;if(e<0||e>r.rows.length-1)return null;let n=r.columns.get(t);if(!n)return null;let i=r.rows[e];return qs(this._o,i,n)}getHtmlForRowDataCell(e,t){let r=this._p.columns.get(t);return r?qs(this._o,e,r):null}getRowYPos(e){return this._p.virtualListHelper.getItemPosition(e)||null}getDataForRow(e){const t=this._p;return e<0||e>t.rows.length-1?null:t.rows[e]}getRowCount(){const e=this._p;return e.rows?e.rows.length:0}getIndexForRow(e){return this._p.rows.indexOf(e)}getFilteredRowCount(){const e=this._p;return(e.filteredRows||e.rows).length}getIndexForFilteredRow(e){const t=this._p;return(t.filteredRows||t.rows).indexOf(e)}getDataForFilteredRow(e){const t=this._p;return e<0||e>(t.filteredRows||t.rows).length-1?null:(t.filteredRows||t.rows)[e]}getHeaderRowElement(){return this._p.headerRow}addRows(e,t,r,n){let i=this._p;"boolean"==typeof t&&(n=r,r=t,t=-1),"number"!=typeof t&&(t=-1),(t<0||t>i.rows.length)&&(t=i.rows.length),n=void 0===n||!!n;const o=(Array.isArray(e)?e:[e]).length;return e&&(i.rows.add(e,t),i.filteredRows||r&&i.rows.sortColumn.length?(r&&i.rows.sortColumn.length?this.resort():Bs(this),i.tableSkeletonNeedsRendering=!0,n&&this.render()):n&&(i.virtualListHelper.addItemsAt(o,t),this._o.virtualTable?(Ns(this),ks(this),this.render(),Ls(this,!1)):i.tbody&&(this.render(),ks(this),Ls(this,!0))),this.emit("addrows",{count:o,clear:!1})),this}removeRows(e,t,r){let n=this._p;return"number"!=typeof t||t<=0||e<0||e>n.rows.length-1||(n.rows.splice(e,t),r=void 0===r||!!r,n.filteredRows?(Bs(this),n.tableSkeletonNeedsRendering=!0,r&&this.render()):r&&(n.virtualListHelper.removeItemsAt(t,e),this._o.virtualTable?(Ns(this),ks(this),this.render(),Ls(this,!1)):(this.render(),ks(this),Ls(this,!0)))),this}removeRow(e,t){return this.removeRows(e,1,t)}refreshRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._p;if(e<0||e>r.rows.length-1)return this;let n=-1;return r.filteredRows&&-1===(n=r.filteredRows.indexOf(r.rows[e]))||(-1===n&&(n=e),r.virtualListHelper.refreshItemAt(n),t&&r.virtualListHelper.render()),this}getRowElement(e){let t=this._p;if(e<0||e>t.rows.length-1)return null;let r=-1;return t.filteredRows&&-1===(r=t.filteredRows.indexOf(t.rows[e]))?null:(-1===r&&(r=e),t.virtualListHelper.getItemElementAt(r)||null)}refreshAllVirtualRows(){return this._p.virtualListHelper.invalidate().render(),this}setRows(e,t){let r=this._p;return r.rows.reset(e),t&&r.rows.sortColumn.length?this.resort():Bs(this),this.clearAndRender().emit("addrows",{count:e.length,clear:!0}),this}tableWidthChanged(e,t){let r=this._o,n=this._p,i=fs(this),o=i,l=0;if(!n.table)return this;t=void 0===t||t;let s=0;if(n.tbody||(t=!1),t&&(s=parseFloat(n.tbody.style.minWidth)||0),o!==n.lastDetectedWidth||e){var a;n.lastDetectedWidth=i;let e=0,u=[],c=0;for(let e=0;e<n.columns.length;e++)n.columns[e].actualWidthConsideringScrollbarWidth=null;for(let t=0;t<n.visibleColumns.length;t++){let i=n.visibleColumns[t];if(1===i.widthMode){let n=i.width;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,u.push(t))}else if(0===i.widthMode){let n=hs(this,i.label)+20;n+=i.arrowProposedWidth||0,!i.ignoreMin&&n<r.minColumnWidth&&(n=r.minColumnWidth),o-=n,e+=n,n!==i.actualWidth&&(i.actualWidth=n,r.convertColumnWidthsToRelative||u.push(t))}else 2===i.widthMode&&(c+=i.width,l++)}if(r.convertColumnWidthsToRelative)for(let t=0;t<n.visibleColumns.length;t++){let r=n.visibleColumns[t];0===r.widthMode&&(r.widthMode=2,o+=r.actualWidth,r.width=r.actualWidth/e,c+=r.width,l++)}if(l&&(c<1&&r.relativeWidthGrowsToFillWidth||c>1&&r.relativeWidthShrinksToFillWidth))for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];2===t.widthMode&&(t.width/=c)}let d=Math.max(0,o);0===d&&(d=n.table.clientWidth);let h=r.minColumnWidth/d;if(isNaN(h)&&(h=0),h>0){let e,t=0;for(let e=0;e<n.visibleColumns.length;e++){let r=n.visibleColumns[e];2===r.widthMode&&!r.ignoreMin&&r.width<h&&(t+=h-r.width,r.width=h)}for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];2===i.widthMode&&!i.ignoreMin&&i.width>h&&t>0&&(e=Math.min(t,i.width-h),i.width-=e,t-=e)}}if(r.autoFillTableWidth&&o>0){let e=0,t=o;for(let r=0;r<n.visibleColumns.length;r++){let i=n.visibleColumns[r];i.resizable||1!==i.widthMode||(e+=i.width),2===i.widthMode&&(t-=Math.round(d*i.width))}let r=(i-e)/(i-t-e)||NaN;for(let e=0;e<n.visibleColumns.length&&t>0;e++){let t=n.visibleColumns[e];if(t.resizable||1!==t.widthMode)if(2===t.widthMode)t.width*=r;else{let n=t.actualWidth*r;t.actualWidth!==n&&(t.actualWidth=n,-1===u.indexOf(e)&&u.push(e))}}}for(let e=0;e<n.visibleColumns.length;e++){let t=n.visibleColumns[e];if(2===t.widthMode){let r=Math.round(d*t.width);o-=r,l--,0===l&&1===o&&(r++,o--),-1===o&&(r--,o++),r!==t.actualWidth&&(t.actualWidth=r,u.push(e))}}if(n.visibleColumns.length&&(n.visibleColumns[n.visibleColumns.length-1].actualWidthConsideringScrollbarWidth=n.visibleColumns[n.visibleColumns.length-1].actualWidth-(n.scrollbarWidth||0)),null!==(a=n.notifyRendererOfColumnsConfig)&&void 0!==a&&a.call(n),t){let e=ms(this);s<e&&Ls(this,!1);for(let e=0;e<u.length;e++)Fs(this,u[e]);s>e&&Ls(this,!1)}}return this}tableHeightChanged(){let e=this._o,t=this._p;if(!t.table)return this;const r=getComputedStyle(t.table);let n=xl(this.el,!0)-(parseFloat(r.borderTopWidth)||0)-(parseFloat(r.borderBottomWidth)||0);return n!==e.height&&(e.height=n,t.tbody&&(t.tbody.style.height=Math.max(e.height-xl(t.header,!0,!0,!0),1)+"px"),e.virtualTable&&this.clearAndRender()),this}hideCellPreview(){return $s(this),this}abortCellPreview(){return this.hideCellPreview(),this}cancelColumnResize(){return ws(this),this}getUrlForElementContent(e){let t,r=document.getElementById(e);if(r){let e=r.textContent;if("function"==typeof Blob)t=new Blob([e||""]);else{const r=window,n=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder;if(!n)return null;const i=new n;i.append(e||""),t=i.getBlob()}return(window.URL||window.webkitURL).createObjectURL(t)}return null}isWorkerSupported(){return window.Worker instanceof Function}createWebWorker(e,t,r){if(this.isWorkerSupported()){let n=this._p,i=new Worker(e),o=e=>{e.data.append?this.addRows(e.data.rows,r):this.setRows(e.data.rows,r)};return i.addEventListener("message",o,!1),n.workerListeners||(n.workerListeners=[]),n.workerListeners.push({worker:i,listener:o}),(t||void 0===t)&&i.postMessage(null),i}return null}unbindWebWorker(e){let t=this._p;if(t.workerListeners)for(let r=0;r<t.workerListeners.length;r++)t.workerListeners[r].worker===e&&(e.removeEventListener("message",t.workerListeners[r].listener,!1),t.workerListeners.splice(r,1),r--);return this}}return Xs.VERSION="@@VERSION",Xs.Width=ls,class extends Xs{constructor(t){super(t),this.$el=e(this.el).data("dgtable",this).on("remove",()=>this.destroy()),this.on("headerrowdestroy",()=>{var t;const r=null===(t=this._p)||void 0===t?void 0:t.headerRow;r&&e(r).find("div.".concat(this._o.tableClassName,"-header-cell")).remove()})}destroy(){var t,r;return null!==(t=this._p)&&void 0!==t&&t.table&&e(this._p.table).empty(),null!==(r=this._p)&&void 0!==r&&r.tbody&&e(this._p.tbody).empty(),super.destroy()}}});
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=lib.umd.min.js.map
|