Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simplebar

Package Overview
Dependencies
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplebar - npm Package Compare versions

Comparing version 6.0.0-beta.0 to 6.0.0-beta.1

LICENSE

17

dist/simplebar-core.esm.js
/**
* SimpleBar.js - v5.0.8-6.0.0-beta-0.0
* SimpleBar.js - v6.0.0-beta.1
* Scrollbars, simpler.

@@ -19,5 +19,3 @@ * https://grsmto.github.io/simplebar/

import 'core-js/modules/web.dom-collections.iterator';
import throttle from 'lodash.throttle';
import debounce from 'lodash.debounce';
import memoize from 'lodash.memoize';
import { throttle, debounce, memoize } from 'lodash-es';
import canUseDOM from 'can-use-dom';

@@ -381,4 +379,3 @@ import 'core-js/modules/es.array.reduce';

var elDocument = getElementDocument(this.el); // make sure this element doesn't have the elements yet
// make sure this element doesn't have the elements yet
if (Array.prototype.filter.call(this.el.children, function (child) {

@@ -509,5 +506,5 @@ return child.classList.contains(_this2.classNames.wrapper);

this.isRtl = this.elStyles.direction === 'rtl';
var contentElOffsetWidth = this.contentEl.offsetWidth;
var isHeightAuto = this.heightAutoObserverEl.offsetHeight <= 1;
var isWidthAuto = this.heightAutoObserverEl.offsetWidth <= 1;
var contentElOffsetWidth = this.contentEl.offsetWidth;
var isWidthAuto = this.heightAutoObserverEl.offsetWidth <= 1 || contentElOffsetWidth > 0;
var contentWrapperElOffsetWidth = this.contentWrapperEl.offsetWidth;

@@ -522,6 +519,6 @@ var elOverflowX = this.elStyles.overflowX;

this.placeholderEl.style.width = isWidthAuto ? contentElOffsetWidth + "px" : 'auto';
this.placeholderEl.style.width = isWidthAuto ? (contentElOffsetWidth || contentElScrollWidth) + "px" : 'auto';
this.placeholderEl.style.height = contentElScrollHeight + "px";
var contentWrapperElOffsetHeight = this.contentWrapperEl.offsetHeight;
this.axis.x.isOverflowing = contentElScrollWidth > contentElOffsetWidth;
this.axis.x.isOverflowing = contentElOffsetWidth !== 0 && contentElScrollWidth > contentElOffsetWidth;
this.axis.y.isOverflowing = contentElScrollHeight > contentWrapperElOffsetHeight; // Set isOverflowing to false if user explicitely set hidden overflow

@@ -528,0 +525,0 @@

/**
* SimpleBar.js - v5.0.8-6.0.0-beta-0.0
* SimpleBar.js - v6.0.0-beta.1
* Scrollbars, simpler.

@@ -21,5 +21,3 @@ * https://grsmto.github.io/simplebar/

import 'core-js/modules/web.dom-collections.iterator';
import throttle from 'lodash.throttle';
import debounce from 'lodash.debounce';
import memoize from 'lodash.memoize';
import { throttle, debounce, memoize } from 'lodash-es';
import 'core-js/modules/es.array.reduce';

@@ -414,4 +412,3 @@ import 'core-js/modules/es.function.name';

var elDocument = getElementDocument(this.el); // make sure this element doesn't have the elements yet
// make sure this element doesn't have the elements yet
if (Array.prototype.filter.call(this.el.children, function (child) {

@@ -542,5 +539,5 @@ return child.classList.contains(_this2.classNames.wrapper);

this.isRtl = this.elStyles.direction === 'rtl';
var contentElOffsetWidth = this.contentEl.offsetWidth;
var isHeightAuto = this.heightAutoObserverEl.offsetHeight <= 1;
var isWidthAuto = this.heightAutoObserverEl.offsetWidth <= 1;
var contentElOffsetWidth = this.contentEl.offsetWidth;
var isWidthAuto = this.heightAutoObserverEl.offsetWidth <= 1 || contentElOffsetWidth > 0;
var contentWrapperElOffsetWidth = this.contentWrapperEl.offsetWidth;

@@ -555,6 +552,6 @@ var elOverflowX = this.elStyles.overflowX;

this.placeholderEl.style.width = isWidthAuto ? contentElOffsetWidth + "px" : 'auto';
this.placeholderEl.style.width = isWidthAuto ? (contentElOffsetWidth || contentElScrollWidth) + "px" : 'auto';
this.placeholderEl.style.height = contentElScrollHeight + "px";
var contentWrapperElOffsetHeight = this.contentWrapperEl.offsetHeight;
this.axis.x.isOverflowing = contentElScrollWidth > contentElOffsetWidth;
this.axis.x.isOverflowing = contentElOffsetWidth !== 0 && contentElScrollWidth > contentElOffsetWidth;
this.axis.y.isOverflowing = contentElScrollHeight > contentWrapperElOffsetHeight; // Set isOverflowing to false if user explicitely set hidden overflow

@@ -561,0 +558,0 @@

/**
* SimpleBar.js - v5.0.8-6.0.0-beta-0.0
* SimpleBar.js - v6.0.0-beta.1
* Scrollbars, simpler.

@@ -10,2 +10,2 @@ * https://grsmto.github.io/simplebar/

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r,i,n,o="object",s=function(t){return t&&t.Math==Math&&t},a=s(typeof globalThis==o&&globalThis)||s(typeof window==o&&window)||s(typeof self==o&&self)||s(typeof t==o&&t)||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},c=!l((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,h={f:f&&!u.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:u},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,v=function(t){return p.call(t).slice(8,-1)},g="".split,y=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return y(b(t))},x=function(t){return"object"==typeof t?null!==t:"function"==typeof t},E=function(t,e){if(!x(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!x(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!x(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!x(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")},w={}.hasOwnProperty,O=function(t,e){return w.call(t,e)},S=a.document,A=x(S)&&x(S.createElement),k=function(t){return A?S.createElement(t):{}},L=!c&&!l((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),_=Object.getOwnPropertyDescriptor,M={f:c?_:function(t,e){if(t=m(t),e=E(e,!0),L)try{return _(t,e)}catch(t){}if(O(t,e))return d(!h.f.call(t,e),t[e])}},j=function(t){if(!x(t))throw TypeError(String(t)+" is not an object");return t},T=Object.defineProperty,R={f:c?T:function(t,e,r){if(j(t),e=E(e,!0),j(r),L)try{return T(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},W=c?function(t,e,r){return R.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},z=function(t,e){try{W(a,t,e)}catch(r){a[t]=e}return e},C=e((function(t){var e=a["__core-js_shared__"]||z("__core-js_shared__",{});(t.exports=function(t,r){return e[t]||(e[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),N=C("native-function-to-string",Function.toString),I=a.WeakMap,D="function"==typeof I&&/native code/.test(N.call(I)),P=0,V=Math.random(),F=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++P+V).toString(36)},B=C("keys"),H=function(t){return B[t]||(B[t]=F(t))},$={},q=a.WeakMap;if(D){var X=new q,Y=X.get,G=X.has,U=X.set;r=function(t,e){return U.call(X,t,e),e},i=function(t){return Y.call(X,t)||{}},n=function(t){return G.call(X,t)}}else{var Q=H("state");$[Q]=!0,r=function(t,e){return W(t,Q,e),e},i=function(t){return O(t,Q)?t[Q]:{}},n=function(t){return O(t,Q)}}var K={set:r,get:i,has:n,enforce:function(t){return n(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var r;if(!x(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},J=e((function(t){var e=K.get,r=K.enforce,i=String(N).split("toString");C("inspectSource",(function(t){return N.call(t)})),(t.exports=function(t,e,n,o){var s=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof e||O(n,"name")||W(n,"name",e),r(n).source=i.join("string"==typeof e?e:"")),t!==a?(s?!c&&t[e]&&(l=!0):delete t[e],l?t[e]=n:W(t,e,n)):l?t[e]=n:z(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||N.call(this)}))})),Z=a,tt=function(t){return"function"==typeof t?t:void 0},et=function(t,e){return arguments.length<2?tt(Z[t])||tt(a[t]):Z[t]&&Z[t][e]||a[t]&&a[t][e]},rt=Math.ceil,it=Math.floor,nt=function(t){return isNaN(t=+t)?0:(t>0?it:rt)(t)},ot=Math.min,st=function(t){return t>0?ot(nt(t),9007199254740991):0},at=Math.max,lt=Math.min,ct=function(t){return function(e,r,i){var n,o=m(e),s=st(o.length),a=function(t,e){var r=nt(t);return r<0?at(r+e,0):lt(r,e)}(i,s);if(t&&r!=r){for(;s>a;)if((n=o[a++])!=n)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},ut={includes:ct(!0),indexOf:ct(!1)}.indexOf,ft=function(t,e){var r,i=m(t),n=0,o=[];for(r in i)!O($,r)&&O(i,r)&&o.push(r);for(;e.length>n;)O(i,r=e[n++])&&(~ut(o,r)||o.push(r));return o},ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dt=ht.concat("length","prototype"),pt={f:Object.getOwnPropertyNames||function(t){return ft(t,dt)}},vt={f:Object.getOwnPropertySymbols},gt=et("Reflect","ownKeys")||function(t){var e=pt.f(j(t)),r=vt.f;return r?e.concat(r(t)):e},yt=function(t,e){for(var r=gt(e),i=R.f,n=M.f,o=0;o<r.length;o++){var s=r[o];O(t,s)||i(t,s,n(e,s))}},bt=/#|\.prototype\./,mt=function(t,e){var r=Et[xt(t)];return r==Ot||r!=wt&&("function"==typeof e?l(e):!!e)},xt=mt.normalize=function(t){return String(t).replace(bt,".").toLowerCase()},Et=mt.data={},wt=mt.NATIVE="N",Ot=mt.POLYFILL="P",St=mt,At=M.f,kt=function(t,e){var r,i,n,o,s,l=t.target,c=t.global,u=t.stat;if(r=c?a:u?a[l]||z(l,{}):(a[l]||{}).prototype)for(i in e){if(o=e[i],n=t.noTargetGet?(s=At(r,i))&&s.value:r[i],!St(c?i:l+(u?".":"#")+i,t.forced)&&void 0!==n){if(typeof o==typeof n)continue;yt(o,n)}(t.sham||n&&n.sham)&&W(o,"sham",!0),J(r,i,o,t)}},Lt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},_t=function(t,e,r){if(Lt(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,i){return t.call(e,r,i)};case 3:return function(r,i,n){return t.call(e,r,i,n)}}return function(){return t.apply(e,arguments)}},Mt=function(t){return Object(b(t))},jt=Array.isArray||function(t){return"Array"==v(t)},Tt=!!Object.getOwnPropertySymbols&&!l((function(){return!String(Symbol())})),Rt=a.Symbol,Wt=C("wks"),zt=function(t){return Wt[t]||(Wt[t]=Tt&&Rt[t]||(Tt?Rt:F)("Symbol."+t))},Ct=zt("species"),Nt=function(t,e){var r;return jt(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!jt(r.prototype)?x(r)&&null===(r=r[Ct])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},It=[].push,Dt=function(t){var e=1==t,r=2==t,i=3==t,n=4==t,o=6==t,s=5==t||o;return function(a,l,c,u){for(var f,h,d=Mt(a),p=y(d),v=_t(l,c,3),g=st(p.length),b=0,m=u||Nt,x=e?m(a,g):r?m(a,0):void 0;g>b;b++)if((s||b in p)&&(h=v(f=p[b],b,d),t))if(e)x[b]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:It.call(x,f)}else if(n)return!1;return o?-1:i||n?n:x}},Pt={forEach:Dt(0),map:Dt(1),filter:Dt(2),some:Dt(3),every:Dt(4),find:Dt(5),findIndex:Dt(6)},Vt=function(t,e){var r=[][t];return!r||!l((function(){r.call(null,e||function(){throw 1},1)}))},Ft=Pt.forEach,Bt=Vt("forEach")?function(t){return Ft(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;kt({target:"Array",proto:!0,forced:[].forEach!=Bt},{forEach:Bt});var Ht={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};for(var $t in Ht){var qt=a[$t],Xt=qt&&qt.prototype;if(Xt&&Xt.forEach!==Bt)try{W(Xt,"forEach",Bt)}catch(t){Xt.forEach=Bt}}var Yt=!("undefined"==typeof window||!window.document||!window.document.createElement),Gt=zt("species"),Ut=Pt.filter;kt({target:"Array",proto:!0,forced:!function(t){return!l((function(){var e=[];return(e.constructor={})[Gt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("filter")},{filter:function(t){return Ut(this,t,arguments.length>1?arguments[1]:void 0)}});var Qt=Object.keys||function(t){return ft(t,ht)},Kt=c?Object.defineProperties:function(t,e){j(t);for(var r,i=Qt(e),n=i.length,o=0;n>o;)R.f(t,r=i[o++],e[r]);return t},Jt=et("document","documentElement"),Zt=H("IE_PROTO"),te=function(){},ee=function(){var t,e=k("iframe"),r=ht.length;for(e.style.display="none",Jt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),ee=t.F;r--;)delete ee.prototype[ht[r]];return ee()},re=Object.create||function(t,e){var r;return null!==t?(te.prototype=j(t),r=new te,te.prototype=null,r[Zt]=t):r=ee(),void 0===e?r:Kt(r,e)};$[Zt]=!0;var ie=zt("unscopables"),ne=Array.prototype;null==ne[ie]&&W(ne,ie,re(null));var oe,se,ae,le=function(t){ne[ie][t]=!0},ce={},ue=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),fe=H("IE_PROTO"),he=Object.prototype,de=ue?Object.getPrototypeOf:function(t){return t=Mt(t),O(t,fe)?t[fe]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?he:null},pe=zt("iterator"),ve=!1;[].keys&&("next"in(ae=[].keys())?(se=de(de(ae)))!==Object.prototype&&(oe=se):ve=!0),null==oe&&(oe={}),O(oe,pe)||W(oe,pe,(function(){return this}));var ge={IteratorPrototype:oe,BUGGY_SAFARI_ITERATORS:ve},ye=R.f,be=zt("toStringTag"),me=function(t,e,r){t&&!O(t=r?t:t.prototype,be)&&ye(t,be,{configurable:!0,value:e})},xe=ge.IteratorPrototype,Ee=function(){return this},we=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return j(r),function(t){if(!x(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(r,i):r.__proto__=i,r}}():void 0),Oe=ge.IteratorPrototype,Se=ge.BUGGY_SAFARI_ITERATORS,Ae=zt("iterator"),ke=function(){return this},Le=function(t,e,r,i,n,o,s){!function(t,e,r){var i=e+" Iterator";t.prototype=re(xe,{next:d(1,r)}),me(t,i,!1),ce[i]=Ee}(r,e,i);var a,l,c,u=function(t){if(t===n&&g)return g;if(!Se&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",h=!1,p=t.prototype,v=p[Ae]||p["@@iterator"]||n&&p[n],g=!Se&&v||u(n),y="Array"==e&&p.entries||v;if(y&&(a=de(y.call(new t)),Oe!==Object.prototype&&a.next&&(de(a)!==Oe&&(we?we(a,Oe):"function"!=typeof a[Ae]&&W(a,Ae,ke)),me(a,f,!0))),"values"==n&&v&&"values"!==v.name&&(h=!0,g=function(){return v.call(this)}),p[Ae]!==g&&W(p,Ae,g),ce[e]=g,n)if(l={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},s)for(c in l)!Se&&!h&&c in p||J(p,c,l[c]);else kt({target:e,proto:!0,forced:Se||h},l);return l},_e=K.set,Me=K.getterFor("Array Iterator"),je=Le(Array,"Array",(function(t,e){_e(this,{type:"Array Iterator",target:m(t),index:0,kind:e})}),(function(){var t=Me(this),e=t.target,r=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:i,done:!1}:"values"==r?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values");ce.Arguments=ce.Array,le("keys"),le("values"),le("entries");var Te=Object.assign,Re=!Te||l((function(){var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Te({},t)[r]||"abcdefghijklmnopqrst"!=Qt(Te({},e)).join("")}))?function(t,e){for(var r=Mt(t),i=arguments.length,n=1,o=vt.f,s=h.f;i>n;)for(var a,l=y(arguments[n++]),u=o?Qt(l).concat(o(l)):Qt(l),f=u.length,d=0;f>d;)a=u[d++],c&&!s.call(l,a)||(r[a]=l[a]);return r}:Te;kt({target:"Object",stat:!0,forced:Object.assign!==Re},{assign:Re});var We=zt("toStringTag"),ze="Arguments"==v(function(){return arguments}()),Ce=function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),We))?r:ze?v(e):"Object"==(i=v(e))&&"function"==typeof e.callee?"Arguments":i},Ne={};Ne[zt("toStringTag")]="z";var Ie="[object z]"!==String(Ne)?function(){return"[object "+Ce(this)+"]"}:Ne.toString,De=Object.prototype;Ie!==De.toString&&J(De,"toString",Ie,{unsafe:!0});var Pe="\t\n\v\f\r                 \u2028\u2029\ufeff",Ve="["+Pe+"]",Fe=RegExp("^"+Ve+Ve+"*"),Be=RegExp(Ve+Ve+"*$"),He=function(t){return function(e){var r=String(b(e));return 1&t&&(r=r.replace(Fe,"")),2&t&&(r=r.replace(Be,"")),r}},$e={start:He(1),end:He(2),trim:He(3)}.trim,qe=a.parseInt,Xe=/^[+-]?0[Xx]/,Ye=8!==qe(Pe+"08")||22!==qe(Pe+"0x16")?function(t,e){var r=$e(String(t));return qe(r,e>>>0||(Xe.test(r)?16:10))}:qe;kt({global:!0,forced:parseInt!=Ye},{parseInt:Ye});var Ge=function(t){return function(e,r){var i,n,o=String(b(e)),s=nt(r),a=o.length;return s<0||s>=a?t?"":void 0:(i=o.charCodeAt(s))<55296||i>56319||s+1===a||(n=o.charCodeAt(s+1))<56320||n>57343?t?o.charAt(s):i:t?o.slice(s,s+2):n-56320+(i-55296<<10)+65536}},Ue={codeAt:Ge(!1),charAt:Ge(!0)},Qe=Ue.charAt,Ke=K.set,Je=K.getterFor("String Iterator");Le(String,"String",(function(t){Ke(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Je(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=Qe(r,i),e.index+=t.length,{value:t,done:!1})}));var Ze=function(t,e,r){for(var i in e)J(t,i,e[i],r);return t},tr=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),er=e((function(t){var e=R.f,r=F("meta"),i=0,n=Object.isExtensible||function(){return!0},o=function(t){e(t,r,{value:{objectID:"O"+ ++i,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!x(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!O(t,r)){if(!n(t))return"F";if(!e)return"E";o(t)}return t[r].objectID},getWeakData:function(t,e){if(!O(t,r)){if(!n(t))return!0;if(!e)return!1;o(t)}return t[r].weakData},onFreeze:function(t){return tr&&s.REQUIRED&&n(t)&&!O(t,r)&&o(t),t}};$[r]=!0})),rr=(er.REQUIRED,er.fastKey,er.getWeakData,er.onFreeze,zt("iterator")),ir=Array.prototype,nr=zt("iterator"),or=function(t,e,r,i){try{return i?e(j(r)[0],r[1]):e(r)}catch(e){var n=t.return;throw void 0!==n&&j(n.call(t)),e}},sr=e((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,r,i,n,o){var s,a,l,c,u,f,h,d=_t(r,i,n?2:1);if(o)s=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[nr]||t["@@iterator"]||ce[Ce(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=a)&&(ce.Array===h||ir[rr]===h)){for(l=0,c=st(t.length);c>l;l++)if((u=n?d(j(f=t[l])[0],f[1]):d(t[l]))&&u instanceof e)return u;return new e(!1)}s=a.call(t)}for(;!(f=s.next()).done;)if((u=or(s,d,f.value,n))&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),ar=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},lr=zt("iterator"),cr=!1;try{var ur=0,fr={next:function(){return{done:!!ur++}},return:function(){cr=!0}};fr[lr]=function(){return this},Array.from(fr,(function(){throw 2}))}catch(t){}var hr=function(t,e,r,i,n){var o=a[t],s=o&&o.prototype,c=o,u=i?"set":"add",f={},h=function(t){var e=s[t];J(s,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(n&&!x(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return n&&!x(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(n&&!x(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(St(t,"function"!=typeof o||!(n||s.forEach&&!l((function(){(new o).entries().next()})))))c=r.getConstructor(e,t,i,u),er.REQUIRED=!0;else if(St(t,!0)){var d=new c,p=d[u](n?{}:-0,1)!=d,v=l((function(){d.has(1)})),g=function(t,e){if(!e&&!cr)return!1;var r=!1;try{var i={};i[lr]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}((function(t){new o(t)})),y=!n&&l((function(){for(var t=new o,e=5;e--;)t[u](e,e);return!t.has(-0)}));g||((c=e((function(e,r){ar(e,c,t);var n=function(t,e,r){var i,n;return we&&"function"==typeof(i=e.constructor)&&i!==r&&x(n=i.prototype)&&n!==r.prototype&&we(t,n),t}(new o,e,c);return null!=r&&sr(r,n[u],n,i),n}))).prototype=s,s.constructor=c),(v||y)&&(h("delete"),h("has"),i&&h("get")),(y||p)&&h(u),n&&s.clear&&delete s.clear}return f[t]=c,kt({global:!0,forced:c!=o},f),me(c,t),n||r.setStrong(c,t,i),c},dr=er.getWeakData,pr=K.set,vr=K.getterFor,gr=Pt.find,yr=Pt.findIndex,br=0,mr=function(t){return t.frozen||(t.frozen=new xr)},xr=function(){this.entries=[]},Er=function(t,e){return gr(t.entries,(function(t){return t[0]===e}))};xr.prototype={get:function(t){var e=Er(this,t);if(e)return e[1]},has:function(t){return!!Er(this,t)},set:function(t,e){var r=Er(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=yr(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}};var wr={getConstructor:function(t,e,r,i){var n=t((function(t,o){ar(t,n,e),pr(t,{type:e,id:br++,frozen:void 0}),null!=o&&sr(o,t[i],t,r)})),o=vr(e),s=function(t,e,r){var i=o(t),n=dr(j(e),!0);return!0===n?mr(i).set(e,r):n[i.id]=r,t};return Ze(n.prototype,{delete:function(t){var e=o(this);if(!x(t))return!1;var r=dr(t);return!0===r?mr(e).delete(t):r&&O(r,e.id)&&delete r[e.id]},has:function(t){var e=o(this);if(!x(t))return!1;var r=dr(t);return!0===r?mr(e).has(t):r&&O(r,e.id)}}),Ze(n.prototype,r?{get:function(t){var e=o(this);if(x(t)){var r=dr(t);return!0===r?mr(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),n}},Or=(e((function(t){var e,r=K.enforce,i=!a.ActiveXObject&&"ActiveXObject"in a,n=Object.isExtensible,o=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},s=t.exports=hr("WeakMap",o,wr,!0,!0);if(D&&i){e=wr.getConstructor(o,"WeakMap",!0),er.REQUIRED=!0;var l=s.prototype,c=l.delete,u=l.has,f=l.get,h=l.set;Ze(l,{delete:function(t){if(x(t)&&!n(t)){var i=r(this);return i.frozen||(i.frozen=new e),c.call(this,t)||i.frozen.delete(t)}return c.call(this,t)},has:function(t){if(x(t)&&!n(t)){var i=r(this);return i.frozen||(i.frozen=new e),u.call(this,t)||i.frozen.has(t)}return u.call(this,t)},get:function(t){if(x(t)&&!n(t)){var i=r(this);return i.frozen||(i.frozen=new e),u.call(this,t)?f.call(this,t):i.frozen.get(t)}return f.call(this,t)},set:function(t,i){if(x(t)&&!n(t)){var o=r(this);o.frozen||(o.frozen=new e),u.call(this,t)?h.call(this,t,i):o.frozen.set(t,i)}else h.call(this,t,i);return this}})}})),zt("iterator")),Sr=zt("toStringTag"),Ar=je.values;for(var kr in Ht){var Lr=a[kr],_r=Lr&&Lr.prototype;if(_r){if(_r[Or]!==Ar)try{W(_r,Or,Ar)}catch(t){_r[Or]=Ar}if(_r[Sr]||W(_r,Sr,kr),Ht[kr])for(var Mr in je)if(_r[Mr]!==je[Mr])try{W(_r,Mr,je[Mr])}catch(t){_r[Mr]=je[Mr]}}}var jr="Expected a function",Tr=NaN,Rr="[object Symbol]",Wr=/^\s+|\s+$/g,zr=/^[-+]0x[0-9a-f]+$/i,Cr=/^0b[01]+$/i,Nr=/^0o[0-7]+$/i,Ir=parseInt,Dr="object"==typeof t&&t&&t.Object===Object&&t,Pr="object"==typeof self&&self&&self.Object===Object&&self,Vr=Dr||Pr||Function("return this")(),Fr=Object.prototype.toString,Br=Math.max,Hr=Math.min,$r=function(){return Vr.Date.now()};function qr(t,e,r){var i,n,o,s,a,l,c=0,u=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError(jr);function d(e){var r=i,o=n;return i=n=void 0,c=e,s=t.apply(o,r)}function p(t){var r=t-l;return void 0===l||r>=e||r<0||f&&t-c>=o}function v(){var t=$r();if(p(t))return g(t);a=setTimeout(v,function(t){var r=e-(t-l);return f?Hr(r,o-(t-c)):r}(t))}function g(t){return a=void 0,h&&i?d(t):(i=n=void 0,s)}function y(){var t=$r(),r=p(t);if(i=arguments,n=this,l=t,r){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(f)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=Yr(e)||0,Xr(r)&&(u=!!r.leading,o=(f="maxWait"in r)?Br(Yr(r.maxWait)||0,e):o,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=n=a=void 0},y.flush=function(){return void 0===a?s:g($r())},y}function Xr(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Yr(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Fr.call(t)==Rr}(t))return Tr;if(Xr(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Xr(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Wr,"");var r=Cr.test(t);return r||Nr.test(t)?Ir(t.slice(2),r?2:8):zr.test(t)?Tr:+t}var Gr=function(t,e,r){var i=!0,n=!0;if("function"!=typeof t)throw new TypeError(jr);return Xr(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),qr(t,e,{leading:i,maxWait:e,trailing:n})},Ur="Expected a function",Qr=NaN,Kr="[object Symbol]",Jr=/^\s+|\s+$/g,Zr=/^[-+]0x[0-9a-f]+$/i,ti=/^0b[01]+$/i,ei=/^0o[0-7]+$/i,ri=parseInt,ii="object"==typeof t&&t&&t.Object===Object&&t,ni="object"==typeof self&&self&&self.Object===Object&&self,oi=ii||ni||Function("return this")(),si=Object.prototype.toString,ai=Math.max,li=Math.min,ci=function(){return oi.Date.now()};function ui(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function fi(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&si.call(t)==Kr}(t))return Qr;if(ui(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ui(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Jr,"");var r=ti.test(t);return r||ei.test(t)?ri(t.slice(2),r?2:8):Zr.test(t)?Qr:+t}var hi=function(t,e,r){var i,n,o,s,a,l,c=0,u=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError(Ur);function d(e){var r=i,o=n;return i=n=void 0,c=e,s=t.apply(o,r)}function p(t){var r=t-l;return void 0===l||r>=e||r<0||f&&t-c>=o}function v(){var t=ci();if(p(t))return g(t);a=setTimeout(v,function(t){var r=e-(t-l);return f?li(r,o-(t-c)):r}(t))}function g(t){return a=void 0,h&&i?d(t):(i=n=void 0,s)}function y(){var t=ci(),r=p(t);if(i=arguments,n=this,l=t,r){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(f)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=fi(e)||0,ui(r)&&(u=!!r.leading,o=(f="maxWait"in r)?ai(fi(r.maxWait)||0,e):o,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=n=a=void 0},y.flush=function(){return void 0===a?s:g(ci())},y},di="Expected a function",pi="__lodash_hash_undefined__",vi="[object Function]",gi="[object GeneratorFunction]",yi=/^\[object .+?Constructor\]$/,bi="object"==typeof t&&t&&t.Object===Object&&t,mi="object"==typeof self&&self&&self.Object===Object&&self,xi=bi||mi||Function("return this")();var Ei=Array.prototype,wi=Function.prototype,Oi=Object.prototype,Si=xi["__core-js_shared__"],Ai=function(){var t=/[^.]+$/.exec(Si&&Si.keys&&Si.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ki=wi.toString,Li=Oi.hasOwnProperty,_i=Oi.toString,Mi=RegExp("^"+ki.call(Li).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ji=Ei.splice,Ti=Pi(xi,"Map"),Ri=Pi(Object,"create");function Wi(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function zi(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function Ci(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function Ni(t,e){for(var r,i,n=t.length;n--;)if((r=t[n][0])===(i=e)||r!=r&&i!=i)return n;return-1}function Ii(t){return!(!Fi(t)||(e=t,Ai&&Ai in e))&&(function(t){var e=Fi(t)?_i.call(t):"";return e==vi||e==gi}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?Mi:yi).test(function(t){if(null!=t){try{return ki.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Di(t,e){var r,i,n=t.__data__;return("string"==(i=typeof(r=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?n["string"==typeof e?"string":"hash"]:n.map}function Pi(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Ii(r)?r:void 0}function Vi(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(di);var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var s=t.apply(this,i);return r.cache=o.set(n,s),s};return r.cache=new(Vi.Cache||Ci),r}function Fi(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}Wi.prototype.clear=function(){this.__data__=Ri?Ri(null):{}},Wi.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Wi.prototype.get=function(t){var e=this.__data__;if(Ri){var r=e[t];return r===pi?void 0:r}return Li.call(e,t)?e[t]:void 0},Wi.prototype.has=function(t){var e=this.__data__;return Ri?void 0!==e[t]:Li.call(e,t)},Wi.prototype.set=function(t,e){return this.__data__[t]=Ri&&void 0===e?pi:e,this},zi.prototype.clear=function(){this.__data__=[]},zi.prototype.delete=function(t){var e=this.__data__,r=Ni(e,t);return!(r<0)&&(r==e.length-1?e.pop():ji.call(e,r,1),!0)},zi.prototype.get=function(t){var e=this.__data__,r=Ni(e,t);return r<0?void 0:e[r][1]},zi.prototype.has=function(t){return Ni(this.__data__,t)>-1},zi.prototype.set=function(t,e){var r=this.__data__,i=Ni(r,t);return i<0?r.push([t,e]):r[i][1]=e,this},Ci.prototype.clear=function(){this.__data__={hash:new Wi,map:new(Ti||zi),string:new Wi}},Ci.prototype.delete=function(t){return Di(this,t).delete(t)},Ci.prototype.get=function(t){return Di(this,t).get(t)},Ci.prototype.has=function(t){return Di(this,t).has(t)},Ci.prototype.set=function(t,e){return Di(this,t).set(t,e),this},Vi.Cache=Ci;var Bi=Vi,Hi=null,$i=null;function qi(){if(null===Hi){if("undefined"==typeof document)return Hi=0;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var r=e.getBoundingClientRect().right;t.removeChild(e),Hi=r}return Hi}Yt&&window.addEventListener("resize",(function(){$i!==window.devicePixelRatio&&($i=window.devicePixelRatio,Hi=null)}));var Xi=function(t){return function(e,r,i,n){Lt(r);var o=Mt(e),s=y(o),a=st(o.length),l=t?a-1:0,c=t?-1:1;if(i<2)for(;;){if(l in s){n=s[l],l+=c;break}if(l+=c,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=c)l in s&&(n=r(n,s[l],l,o));return n}},Yi={left:Xi(!1),right:Xi(!0)}.left;kt({target:"Array",proto:!0,forced:Vt("reduce")},{reduce:function(t){return Yi(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Gi=R.f,Ui=Function.prototype,Qi=Ui.toString,Ki=/^\s*function ([^ (]*)/;!c||"name"in Ui||Gi(Ui,"name",{configurable:!0,get:function(){try{return Qi.call(this).match(Ki)[1]}catch(t){return""}}});var Ji,Zi,tn=function(){var t=j(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},en=RegExp.prototype.exec,rn=String.prototype.replace,nn=en,on=(Ji=/a/,Zi=/b*/g,en.call(Ji,"a"),en.call(Zi,"a"),0!==Ji.lastIndex||0!==Zi.lastIndex),sn=void 0!==/()??/.exec("")[1];(on||sn)&&(nn=function(t){var e,r,i,n,o=this;return sn&&(r=new RegExp("^"+o.source+"$(?!\\s)",tn.call(o))),on&&(e=o.lastIndex),i=en.call(o,t),on&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),sn&&i&&i.length>1&&rn.call(i[0],r,(function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(i[n]=void 0)})),i});var an=nn;kt({target:"RegExp",proto:!0,forced:/./.exec!==an},{exec:an});var ln=zt("species"),cn=!l((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),un=!l((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),fn=function(t,e,r,i){var n=zt(t),o=!l((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),s=o&&!l((function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[ln]=function(){return r}),r[n](""),!e}));if(!o||!s||"replace"===t&&!cn||"split"===t&&!un){var a=/./[n],c=r(n,""[t],(function(t,e,r,i,n){return e.exec===an?o&&!n?{done:!0,value:a.call(e,r,i)}:{done:!0,value:t.call(r,e,i)}:{done:!1}})),u=c[0],f=c[1];J(String.prototype,t,u),J(RegExp.prototype,n,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}),i&&W(RegExp.prototype[n],"sham",!0)}},hn=Ue.charAt,dn=function(t,e,r){return e+(r?hn(t,e).length:1)},pn=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==v(t))throw TypeError("RegExp#exec called on incompatible receiver");return an.call(t,e)};fn("match",1,(function(t,e,r){return[function(e){var r=b(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,r):new RegExp(e)[t](String(r))},function(t){var i=r(e,t,this);if(i.done)return i.value;var n=j(t),o=String(this);if(!n.global)return pn(n,o);var s=n.unicode;n.lastIndex=0;for(var a,l=[],c=0;null!==(a=pn(n,o));){var u=String(a[0]);l[c]=u,""===u&&(n.lastIndex=dn(o,st(n.lastIndex),s)),c++}return 0===c?null:l}]}));var vn=Math.max,gn=Math.min,yn=Math.floor,bn=/\$([$&'`]|\d\d?|<[^>]*>)/g,mn=/\$([$&'`]|\d\d?)/g;fn("replace",2,(function(t,e,r){return[function(r,i){var n=b(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,n,i):e.call(String(n),r,i)},function(t,n){var o=r(e,t,this,n);if(o.done)return o.value;var s=j(t),a=String(this),l="function"==typeof n;l||(n=String(n));var c=s.global;if(c){var u=s.unicode;s.lastIndex=0}for(var f=[];;){var h=pn(s,a);if(null===h)break;if(f.push(h),!c)break;""===String(h[0])&&(s.lastIndex=dn(a,st(s.lastIndex),u))}for(var d,p="",v=0,g=0;g<f.length;g++){h=f[g];for(var y=String(h[0]),b=vn(gn(nt(h.index),a.length),0),m=[],x=1;x<h.length;x++)m.push(void 0===(d=h[x])?d:String(d));var E=h.groups;if(l){var w=[y].concat(m,b,a);void 0!==E&&w.push(E);var O=String(n.apply(void 0,w))}else O=i(y,a,b,m,E,n);b>=v&&(p+=a.slice(v,b)+O,v=b+y.length)}return p+a.slice(v)}];function i(t,r,i,n,o,s){var a=i+t.length,l=n.length,c=mn;return void 0!==o&&(o=Mt(o),c=bn),e.call(s,c,(function(e,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,i);case"'":return r.slice(a);case"<":c=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return e;if(u>l){var f=yn(u/10);return 0===f?e:f<=l?void 0===n[f-1]?s.charAt(1):n[f-1]+s.charAt(1):e}c=n[u-1]}return void 0===c?"":c}))}}));var xn=function(t){return Array.prototype.reduce.call(t,(function(t,e){var r=e.name.match(/data-simplebar-(.+)/);if(r){var i=r[1].replace(/\W+(.)/g,(function(t,e){return e.toUpperCase()}));switch(e.value){case"true":t[i]=!0;break;case"false":t[i]=!1;break;case void 0:t[i]=!0;break;default:t[i]=e.value}}return t}),{})};function En(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function wn(t){return t&&t.ownerDocument?t.ownerDocument:document}var On=function(){function t(e,r){var i=this;this.onScroll=function(){var t=En(i.el);i.scrollXTicking||(t.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(t.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0)},this.scrollX=function(){i.axis.x.isOverflowing&&(i.showScrollbar("x"),i.positionScrollbar("x")),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&(i.showScrollbar("y"),i.positionScrollbar("y")),i.scrollYTicking=!1},this.onMouseEnter=function(){i.showScrollbar("x"),i.showScrollbar("y")},this.onMouseMove=function(t){i.mouseX=t.clientX,i.mouseY=t.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this.onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.hideScrollbars=function(){i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.track.rect)||(i.axis.y.scrollbar.el.classList.remove(i.classNames.visible),i.axis.y.isVisible=!1),i.isWithinBounds(i.axis.x.track.rect)||(i.axis.x.scrollbar.el.classList.remove(i.classNames.visible),i.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,r;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(e=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(r=i.isWithinBounds(i.axis.y.track.rect)),(e||r)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(t,"x"):i.onTrackClick(t,"x")),r&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(t,"y"):i.onTrackClick(t,"y"))))},this.drag=function(e){var r=i.axis[i.draggedAxis].track,n=r.rect[i.axis[i.draggedAxis].sizeAttr],o=i.axis[i.draggedAxis].scrollbar,s=i.contentWrapperEl[i.axis[i.draggedAxis].scrollSizeAttr],a=parseInt(i.elStyles[i.axis[i.draggedAxis].sizeAttr],10);e.preventDefault(),e.stopPropagation();var l=(("y"===i.draggedAxis?e.pageY:e.pageX)-r.rect[i.axis[i.draggedAxis].offsetAttr]-i.axis[i.draggedAxis].dragOffset)/(n-o.size)*(s-a);"x"===i.draggedAxis&&(l=i.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l-(n+o.size):l,l=i.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-l:l),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=l},this.onEndDrag=function(t){var e=wn(i.el),r=En(i.el);t.preventDefault(),t.stopPropagation(),i.el.classList.remove(i.classNames.dragging),e.removeEventListener("mousemove",i.drag,!0),e.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=r.setTimeout((function(){e.removeEventListener("click",i.preventClick,!0),e.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null}))},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=e,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},r),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el)||(this.recalculate=Gr(this.recalculate.bind(this),64),this.onMouseMove=Gr(this.onMouseMove.bind(this),64),this.hideScrollbars=hi(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=hi(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=Bi(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var r=e.firstElementChild;document.body.appendChild(r);var i=r.firstElementChild;r.scrollLeft=0;var n=t.getOffset(r),o=t.getOffset(i);r.scrollLeft=999;var s=t.getOffset(i);return{isRtlScrollingInverted:n.left!==o.left&&o.left-s.left!=0,isRtlScrollbarInverted:n.left!==o.left}},t.getOffset=function(t){var e=t.getBoundingClientRect(),r=wn(t),i=En(t);return{top:e.top+(i.pageYOffset||r.documentElement.scrollTop),left:e.left+(i.pageXOffset||r.documentElement.scrollLeft)}};var e=t.prototype;return e.init=function(){t.instances.set(this.el,this),Yt&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.initDOM=function(){var t=this;wn(this.el);if(Array.prototype.filter.call(this.el.children,(function(e){return e.classList.contains(t.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),r=document.createElement("div");e.classList.add(this.classNames.track),r.classList.add(this.classNames.scrollbar),e.appendChild(r),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},e.initListeners=function(){var t=this,e=En(this.el);if(this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize),window.ResizeObserver){var r=!1,i=e.ResizeObserver||ResizeObserver;this.resizeObserver=new i((function(){r&&t.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame((function(){r=!0}))}this.mutationObserver=new e.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},e.recalculate=function(){var t=En(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var e=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1,i=this.contentEl.offsetWidth,n=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var a=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=r?i+"px":"auto",this.placeholderEl.style.height=a+"px";var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l>i,this.axis.y.isOverflowing=a>c,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==s&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>n-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&a>c-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},e.getScrollbarSize=function(t){if(void 0===t&&(t="y"),!this.axis[t].isOverflowing)return 0;var e,r=this.contentEl[this.axis[t].scrollSizeAttr],i=this.axis[t].track.el[this.axis[t].offsetSizeAttr],n=i/r;return e=Math.max(~~(n*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(e=Math.min(e,this.options.scrollbarMaxSize)),e},e.positionScrollbar=function(e){if(void 0===e&&(e="y"),this.axis[e].isOverflowing){var r=this.contentWrapperEl[this.axis[e].scrollSizeAttr],i=this.axis[e].track.el[this.axis[e].offsetSizeAttr],n=parseInt(this.elStyles[this.axis[e].sizeAttr],10),o=this.axis[e].scrollbar,s=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],a=(s="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s)/(r-n),l=~~((i-o.size)*a);l="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l+(i-o.size):l,o.el.style.transform="x"===e?"translate3d("+l+"px, 0, 0)":"translate3d(0, "+l+"px, 0)"}},e.toggleTrackVisibility=function(t){void 0===t&&(t="y");var e=this.axis[t].track.el,r=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none"},e.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},e.onMouseMoveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)},e.onMouseLeaveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)},e.showScrollbar=function(t){void 0===t&&(t="y");var e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},e.onDragStart=function(t,e){void 0===e&&(e="y");var r=wn(this.el),i=En(this.el),n=this.axis[e].scrollbar,o="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=o-n.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.onTrackClick=function(t,e){var r=this;if(void 0===e&&(e="y"),this.options.clickOnTrack){var i=En(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();var n=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr],o=parseInt(this.elStyles[this.axis[e].sizeAttr],10),s=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],a=("y"===e?this.mouseY-n:this.mouseX-n)<0?-1:1,l=-1===a?s-o:s+o;!function t(){var n,o;-1===a?s>l&&(s-=40,r.contentWrapperEl.scrollTo(((n={})[r.axis[e].offsetAttr]=s,n)),i.requestAnimationFrame(t)):s<l&&(s+=40,r.contentWrapperEl.scrollTo(((o={})[r.axis[e].offsetAttr]=s,o)),i.requestAnimationFrame(t))}()}},e.getContentElement=function(){return this.contentEl},e.getScrollElement=function(){return this.contentWrapperEl},e.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:qi()}catch(t){return qi()}},e.removeListeners=function(){var t=this,e=En(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.removeEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.removeEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},e.unMount=function(){this.removeListeners(),t.instances.delete(this.el)},e.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.findChild=function(t,e){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,(function(t){return r.call(t,e)}))[0]},t}();return On.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},On.instances=new WeakMap,On.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll('[data-simplebar]:not([data-simplebar="init"])'),(function(t){On.instances.has(t)||new On(t,xn(t.attributes))}))},On.removeObserver=function(){this.globalObserver.disconnect()},On.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(On.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},On.handleMutations=function(t){t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes,(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!On.instances.has(t)&&new On(t,xn(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar]:not([data-simplebar="init"])'),(function(t){!On.instances.has(t)&&new On(t,xn(t.attributes))})))})),Array.prototype.forEach.call(t.removedNodes,(function(t){1===t.nodeType&&(t.hasAttribute('[data-simplebar="init"]')?On.instances.has(t)&&On.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),(function(t){On.instances.has(t)&&On.instances.get(t).unMount()})))}))}))},On.getOptions=xn,Yt&&On.initHtmlApi(),On}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},i=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),n=function(t){try{return!!t()}catch(t){return!0}},o=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!s.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:s},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u={}.toString,f=function(t){return u.call(t).slice(8,-1)},h="".split,d=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==f(t)?h.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return d(p(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!g(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!g(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!g(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!g(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,m=function(t,e){return b.call(t,e)},x=i.document,E=g(x)&&g(x.createElement),S=function(t){return E?x.createElement(t):{}},w=!o&&!n((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,A={f:o?O:function(t,e){if(t=v(t),e=y(e,!0),w)try{return O(t,e)}catch(t){}if(m(t,e))return c(!l.f.call(t,e),t[e])}},k=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},L=Object.defineProperty,_={f:o?L:function(t,e,r){if(k(t),e=y(e,!0),k(r),w)try{return L(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},R=o?function(t,e,r){return _.f(t,e,c(1,r))}:function(t,e,r){return t[e]=r,t},T=function(t,e){try{R(i,t,e)}catch(r){i[t]=e}return e},M=i["__core-js_shared__"]||T("__core-js_shared__",{}),j=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return j.call(t)});var C,z,W,I=M.inspectSource,N=i.WeakMap,P="function"==typeof N&&/native code/.test(I(N)),D=e((function(t){(t.exports=function(t,e){return M[t]||(M[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),F=0,V=Math.random(),B=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++F+V).toString(36)},$=D("keys"),H=function(t){return $[t]||($[t]=B(t))},U={},X=i.WeakMap;if(P){var q=new X,Y=q.get,G=q.has,K=q.set;C=function(t,e){return K.call(q,t,e),e},z=function(t){return Y.call(q,t)||{}},W=function(t){return G.call(q,t)}}else{var Q=H("state");U[Q]=!0,C=function(t,e){return R(t,Q,e),e},z=function(t){return m(t,Q)?t[Q]:{}},W=function(t){return m(t,Q)}}var J={set:C,get:z,has:W,enforce:function(t){return W(t)?z(t):C(t,{})},getterFor:function(t){return function(e){var r;if(!g(e)||(r=z(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Z=e((function(t){var e=J.get,r=J.enforce,n=String(String).split("String");(t.exports=function(t,e,o,s){var a=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,c=!!s&&!!s.noTargetGet;"function"==typeof o&&("string"!=typeof e||m(o,"name")||R(o,"name",e),r(o).source=n.join("string"==typeof e?e:"")),t!==i?(a?!c&&t[e]&&(l=!0):delete t[e],l?t[e]=o:R(t,e,o)):l?t[e]=o:T(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||I(this)}))})),tt=i,et=function(t){return"function"==typeof t?t:void 0},rt=function(t,e){return arguments.length<2?et(tt[t])||et(i[t]):tt[t]&&tt[t][e]||i[t]&&i[t][e]},it=Math.ceil,nt=Math.floor,ot=function(t){return isNaN(t=+t)?0:(t>0?nt:it)(t)},st=Math.min,at=function(t){return t>0?st(ot(t),9007199254740991):0},lt=Math.max,ct=Math.min,ut=function(t){return function(e,r,i){var n,o=v(e),s=at(o.length),a=function(t,e){var r=ot(t);return r<0?lt(r+e,0):ct(r,e)}(i,s);if(t&&r!=r){for(;s>a;)if((n=o[a++])!=n)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},ft={includes:ut(!0),indexOf:ut(!1)}.indexOf,ht=function(t,e){var r,i=v(t),n=0,o=[];for(r in i)!m(U,r)&&m(i,r)&&o.push(r);for(;e.length>n;)m(i,r=e[n++])&&(~ft(o,r)||o.push(r));return o},dt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pt=dt.concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return ht(t,pt)}},gt={f:Object.getOwnPropertySymbols},yt=rt("Reflect","ownKeys")||function(t){var e=vt.f(k(t)),r=gt.f;return r?e.concat(r(t)):e},bt=function(t,e){for(var r=yt(e),i=_.f,n=A.f,o=0;o<r.length;o++){var s=r[o];m(t,s)||i(t,s,n(e,s))}},mt=/#|\.prototype\./,xt=function(t,e){var r=St[Et(t)];return r==Ot||r!=wt&&("function"==typeof e?n(e):!!e)},Et=xt.normalize=function(t){return String(t).replace(mt,".").toLowerCase()},St=xt.data={},wt=xt.NATIVE="N",Ot=xt.POLYFILL="P",At=xt,kt=A.f,Lt=function(t,e){var r,n,o,s,a,l=t.target,c=t.global,u=t.stat;if(r=c?i:u?i[l]||T(l,{}):(i[l]||{}).prototype)for(n in e){if(s=e[n],o=t.noTargetGet?(a=kt(r,n))&&a.value:r[n],!At(c?n:l+(u?".":"#")+n,t.forced)&&void 0!==o){if(typeof s==typeof o)continue;bt(s,o)}(t.sham||o&&o.sham)&&R(s,"sham",!0),Z(r,n,s,t)}},_t=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Rt=function(t,e,r){if(_t(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,i){return t.call(e,r,i)};case 3:return function(r,i,n){return t.call(e,r,i,n)}}return function(){return t.apply(e,arguments)}},Tt=function(t){return Object(p(t))},Mt=Array.isArray||function(t){return"Array"==f(t)},jt=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())})),Ct=jt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zt=D("wks"),Wt=i.Symbol,It=Ct?Wt:Wt&&Wt.withoutSetter||B,Nt=function(t){return m(zt,t)||(jt&&m(Wt,t)?zt[t]=Wt[t]:zt[t]=It("Symbol."+t)),zt[t]},Pt=Nt("species"),Dt=function(t,e){var r;return Mt(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Mt(r.prototype)?g(r)&&null===(r=r[Pt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},Ft=[].push,Vt=function(t){var e=1==t,r=2==t,i=3==t,n=4==t,o=6==t,s=5==t||o;return function(a,l,c,u){for(var f,h,p=Tt(a),v=d(p),g=Rt(l,c,3),y=at(v.length),b=0,m=u||Dt,x=e?m(a,y):r?m(a,0):void 0;y>b;b++)if((s||b in v)&&(h=g(f=v[b],b,p),t))if(e)x[b]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:Ft.call(x,f)}else if(n)return!1;return o?-1:i||n?n:x}},Bt={forEach:Vt(0),map:Vt(1),filter:Vt(2),some:Vt(3),every:Vt(4),find:Vt(5),findIndex:Vt(6)},$t=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))},Ht=Object.defineProperty,Ut={},Xt=function(t){throw t},qt=function(t,e){if(m(Ut,t))return Ut[t];e||(e={});var r=[][t],i=!!m(e,"ACCESSORS")&&e.ACCESSORS,s=m(e,0)?e[0]:Xt,a=m(e,1)?e[1]:void 0;return Ut[t]=!!r&&!n((function(){if(i&&!o)return!0;var t={length:-1};i?Ht(t,1,{enumerable:!0,get:Xt}):t[1]=1,r.call(t,s,a)}))},Yt=Bt.forEach,Gt=$t("forEach"),Kt=qt("forEach"),Qt=Gt&&Kt?[].forEach:function(t){return Yt(this,t,arguments.length>1?arguments[1]:void 0)};Lt({target:"Array",proto:!0,forced:[].forEach!=Qt},{forEach:Qt});var Jt={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};for(var Zt in Jt){var te=i[Zt],ee=te&&te.prototype;if(ee&&ee.forEach!==Qt)try{R(ee,"forEach",Qt)}catch(t){ee.forEach=Qt}}var re,ie,ne=!("undefined"==typeof window||!window.document||!window.document.createElement),oe=rt("navigator","userAgent")||"",se=i.process,ae=se&&se.versions,le=ae&&ae.v8;le?ie=(re=le.split("."))[0]+re[1]:oe&&(!(re=oe.match(/Edge\/(\d+)/))||re[1]>=74)&&(re=oe.match(/Chrome\/(\d+)/))&&(ie=re[1]);var ce=ie&&+ie,ue=Nt("species"),fe=Bt.filter,he=function(t){return ce>=51||!n((function(){var e=[];return(e.constructor={})[ue]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("filter"),de=qt("filter");Lt({target:"Array",proto:!0,forced:!he||!de},{filter:function(t){return fe(this,t,arguments.length>1?arguments[1]:void 0)}});var pe,ve=Object.keys||function(t){return ht(t,dt)},ge=o?Object.defineProperties:function(t,e){k(t);for(var r,i=ve(e),n=i.length,o=0;n>o;)_.f(t,r=i[o++],e[r]);return t},ye=rt("document","documentElement"),be=H("IE_PROTO"),me=function(){},xe=function(t){return"<script>"+t+"<\/script>"},Ee=function(){try{pe=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Ee=pe?function(t){t.write(xe("")),t.close();var e=t.parentWindow.Object;return t=null,e}(pe):((e=S("iframe")).style.display="none",ye.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(xe("document.F=Object")),t.close(),t.F);for(var r=dt.length;r--;)delete Ee.prototype[dt[r]];return Ee()};U[be]=!0;var Se=Object.create||function(t,e){var r;return null!==t?(me.prototype=k(t),r=new me,me.prototype=null,r[be]=t):r=Ee(),void 0===e?r:ge(r,e)},we=Nt("unscopables"),Oe=Array.prototype;null==Oe[we]&&_.f(Oe,we,{configurable:!0,value:Se(null)});var Ae,ke,Le,_e=function(t){Oe[we][t]=!0},Re={},Te=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Me=H("IE_PROTO"),je=Object.prototype,Ce=Te?Object.getPrototypeOf:function(t){return t=Tt(t),m(t,Me)?t[Me]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?je:null},ze=Nt("iterator"),We=!1;[].keys&&("next"in(Le=[].keys())?(ke=Ce(Ce(Le)))!==Object.prototype&&(Ae=ke):We=!0),null==Ae&&(Ae={}),m(Ae,ze)||R(Ae,ze,(function(){return this}));var Ie={IteratorPrototype:Ae,BUGGY_SAFARI_ITERATORS:We},Ne=_.f,Pe=Nt("toStringTag"),De=function(t,e,r){t&&!m(t=r?t:t.prototype,Pe)&&Ne(t,Pe,{configurable:!0,value:e})},Fe=Ie.IteratorPrototype,Ve=function(){return this},Be=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return k(r),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(r,i):r.__proto__=i,r}}():void 0),$e=Ie.IteratorPrototype,He=Ie.BUGGY_SAFARI_ITERATORS,Ue=Nt("iterator"),Xe=function(){return this},qe=function(t,e,r,i,n,o,s){!function(t,e,r){var i=e+" Iterator";t.prototype=Se(Fe,{next:c(1,r)}),De(t,i,!1),Re[i]=Ve}(r,e,i);var a,l,u,f=function(t){if(t===n&&g)return g;if(!He&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",d=!1,p=t.prototype,v=p[Ue]||p["@@iterator"]||n&&p[n],g=!He&&v||f(n),y="Array"==e&&p.entries||v;if(y&&(a=Ce(y.call(new t)),$e!==Object.prototype&&a.next&&(Ce(a)!==$e&&(Be?Be(a,$e):"function"!=typeof a[Ue]&&R(a,Ue,Xe)),De(a,h,!0))),"values"==n&&v&&"values"!==v.name&&(d=!0,g=function(){return v.call(this)}),p[Ue]!==g&&R(p,Ue,g),Re[e]=g,n)if(l={values:f("values"),keys:o?g:f("keys"),entries:f("entries")},s)for(u in l)!He&&!d&&u in p||Z(p,u,l[u]);else Lt({target:e,proto:!0,forced:He||d},l);return l},Ye=J.set,Ge=J.getterFor("Array Iterator"),Ke=qe(Array,"Array",(function(t,e){Ye(this,{type:"Array Iterator",target:v(t),index:0,kind:e})}),(function(){var t=Ge(this),e=t.target,r=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:i,done:!1}:"values"==r?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values");Re.Arguments=Re.Array,_e("keys"),_e("values"),_e("entries");var Qe=Object.assign,Je=Object.defineProperty,Ze=!Qe||n((function(){if(o&&1!==Qe({b:1},Qe(Je({},"a",{enumerable:!0,get:function(){Je(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Qe({},t)[r]||"abcdefghijklmnopqrst"!=ve(Qe({},e)).join("")}))?function(t,e){for(var r=Tt(t),i=arguments.length,n=1,s=gt.f,a=l.f;i>n;)for(var c,u=d(arguments[n++]),f=s?ve(u).concat(s(u)):ve(u),h=f.length,p=0;h>p;)c=f[p++],o&&!a.call(u,c)||(r[c]=u[c]);return r}:Qe;Lt({target:"Object",stat:!0,forced:Object.assign!==Ze},{assign:Ze});var tr={};tr[Nt("toStringTag")]="z";var er="[object z]"===String(tr),rr=Nt("toStringTag"),ir="Arguments"==f(function(){return arguments}()),nr=er?f:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),rr))?r:ir?f(e):"Object"==(i=f(e))&&"function"==typeof e.callee?"Arguments":i},or=er?{}.toString:function(){return"[object "+nr(this)+"]"};er||Z(Object.prototype,"toString",or,{unsafe:!0});var sr="\t\n\v\f\r                 \u2028\u2029\ufeff",ar="["+sr+"]",lr=RegExp("^"+ar+ar+"*"),cr=RegExp(ar+ar+"*$"),ur=function(t){return function(e){var r=String(p(e));return 1&t&&(r=r.replace(lr,"")),2&t&&(r=r.replace(cr,"")),r}},fr={start:ur(1),end:ur(2),trim:ur(3)}.trim,hr=i.parseInt,dr=/^[+-]?0[Xx]/,pr=8!==hr(sr+"08")||22!==hr(sr+"0x16")?function(t,e){var r=fr(String(t));return hr(r,e>>>0||(dr.test(r)?16:10))}:hr;Lt({global:!0,forced:parseInt!=pr},{parseInt:pr});var vr=function(t){return function(e,r){var i,n,o=String(p(e)),s=ot(r),a=o.length;return s<0||s>=a?t?"":void 0:(i=o.charCodeAt(s))<55296||i>56319||s+1===a||(n=o.charCodeAt(s+1))<56320||n>57343?t?o.charAt(s):i:t?o.slice(s,s+2):n-56320+(i-55296<<10)+65536}},gr={codeAt:vr(!1),charAt:vr(!0)},yr=gr.charAt,br=J.set,mr=J.getterFor("String Iterator");qe(String,"String",(function(t){br(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=mr(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=yr(r,i),e.index+=t.length,{value:t,done:!1})}));var xr=function(t,e,r){for(var i in e)Z(t,i,e[i],r);return t},Er=!n((function(){return Object.isExtensible(Object.preventExtensions({}))})),Sr=e((function(t){var e=_.f,r=B("meta"),i=0,n=Object.isExtensible||function(){return!0},o=function(t){e(t,r,{value:{objectID:"O"+ ++i,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!g(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!m(t,r)){if(!n(t))return"F";if(!e)return"E";o(t)}return t[r].objectID},getWeakData:function(t,e){if(!m(t,r)){if(!n(t))return!0;if(!e)return!1;o(t)}return t[r].weakData},onFreeze:function(t){return Er&&s.REQUIRED&&n(t)&&!m(t,r)&&o(t),t}};U[r]=!0})),wr=(Sr.REQUIRED,Sr.fastKey,Sr.getWeakData,Sr.onFreeze,Nt("iterator")),Or=Array.prototype,Ar=Nt("iterator"),kr=function(t,e,r,i){try{return i?e(k(r)[0],r[1]):e(r)}catch(e){var n=t.return;throw void 0!==n&&k(n.call(t)),e}},Lr=e((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,r,i,n,o){var s,a,l,c,u,f,h,d,p=Rt(r,i,n?2:1);if(o)s=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[Ar]||t["@@iterator"]||Re[nr(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(d=a)&&(Re.Array===d||Or[wr]===d)){for(l=0,c=at(t.length);c>l;l++)if((u=n?p(k(h=t[l])[0],h[1]):p(t[l]))&&u instanceof e)return u;return new e(!1)}s=a.call(t)}for(f=s.next;!(h=f.call(s)).done;)if("object"==typeof(u=kr(s,p,h.value,n))&&u&&u instanceof e)return u;return new e(!1)}).stop=function(t){return new e(!0,t)}})),_r=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Rr=Nt("iterator"),Tr=!1;try{var Mr=0,jr={next:function(){return{done:!!Mr++}},return:function(){Tr=!0}};jr[Rr]=function(){return this},Array.from(jr,(function(){throw 2}))}catch(t){}var Cr=function(t,e,r){var o=-1!==t.indexOf("Map"),s=-1!==t.indexOf("Weak"),a=o?"set":"add",l=i[t],c=l&&l.prototype,u=l,f={},h=function(t){var e=c[t];Z(c,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(s&&!g(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return s&&!g(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(s&&!g(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(At(t,"function"!=typeof l||!(s||c.forEach&&!n((function(){(new l).entries().next()})))))u=r.getConstructor(e,t,o,a),Sr.REQUIRED=!0;else if(At(t,!0)){var d=new u,p=d[a](s?{}:-0,1)!=d,v=n((function(){d.has(1)})),y=function(t,e){if(!e&&!Tr)return!1;var r=!1;try{var i={};i[Rr]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}((function(t){new l(t)})),b=!s&&n((function(){for(var t=new l,e=5;e--;)t[a](e,e);return!t.has(-0)}));y||((u=e((function(e,r){_r(e,u,t);var i=function(t,e,r){var i,n;return Be&&"function"==typeof(i=e.constructor)&&i!==r&&g(n=i.prototype)&&n!==r.prototype&&Be(t,n),t}(new l,e,u);return null!=r&&Lr(r,i[a],i,o),i}))).prototype=c,c.constructor=u),(v||b)&&(h("delete"),h("has"),o&&h("get")),(b||p)&&h(a),s&&c.clear&&delete c.clear}return f[t]=u,Lt({global:!0,forced:u!=l},f),De(u,t),s||r.setStrong(u,t,o),u},zr=Sr.getWeakData,Wr=J.set,Ir=J.getterFor,Nr=Bt.find,Pr=Bt.findIndex,Dr=0,Fr=function(t){return t.frozen||(t.frozen=new Vr)},Vr=function(){this.entries=[]},Br=function(t,e){return Nr(t.entries,(function(t){return t[0]===e}))};Vr.prototype={get:function(t){var e=Br(this,t);if(e)return e[1]},has:function(t){return!!Br(this,t)},set:function(t,e){var r=Br(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Pr(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}};var $r={getConstructor:function(t,e,r,i){var n=t((function(t,o){_r(t,n,e),Wr(t,{type:e,id:Dr++,frozen:void 0}),null!=o&&Lr(o,t[i],t,r)})),o=Ir(e),s=function(t,e,r){var i=o(t),n=zr(k(e),!0);return!0===n?Fr(i).set(e,r):n[i.id]=r,t};return xr(n.prototype,{delete:function(t){var e=o(this);if(!g(t))return!1;var r=zr(t);return!0===r?Fr(e).delete(t):r&&m(r,e.id)&&delete r[e.id]},has:function(t){var e=o(this);if(!g(t))return!1;var r=zr(t);return!0===r?Fr(e).has(t):r&&m(r,e.id)}}),xr(n.prototype,r?{get:function(t){var e=o(this);if(g(t)){var r=zr(t);return!0===r?Fr(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),n}},Hr=(e((function(t){var e,r=J.enforce,n=!i.ActiveXObject&&"ActiveXObject"in i,o=Object.isExtensible,s=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},a=t.exports=Cr("WeakMap",s,$r);if(P&&n){e=$r.getConstructor(s,"WeakMap",!0),Sr.REQUIRED=!0;var l=a.prototype,c=l.delete,u=l.has,f=l.get,h=l.set;xr(l,{delete:function(t){if(g(t)&&!o(t)){var i=r(this);return i.frozen||(i.frozen=new e),c.call(this,t)||i.frozen.delete(t)}return c.call(this,t)},has:function(t){if(g(t)&&!o(t)){var i=r(this);return i.frozen||(i.frozen=new e),u.call(this,t)||i.frozen.has(t)}return u.call(this,t)},get:function(t){if(g(t)&&!o(t)){var i=r(this);return i.frozen||(i.frozen=new e),u.call(this,t)?f.call(this,t):i.frozen.get(t)}return f.call(this,t)},set:function(t,i){if(g(t)&&!o(t)){var n=r(this);n.frozen||(n.frozen=new e),u.call(this,t)?h.call(this,t,i):n.frozen.set(t,i)}else h.call(this,t,i);return this}})}})),Nt("iterator")),Ur=Nt("toStringTag"),Xr=Ke.values;for(var qr in Jt){var Yr=i[qr],Gr=Yr&&Yr.prototype;if(Gr){if(Gr[Hr]!==Xr)try{R(Gr,Hr,Xr)}catch(t){Gr[Hr]=Xr}if(Gr[Ur]||R(Gr,Ur,qr),Jt[qr])for(var Kr in Ke)if(Gr[Kr]!==Ke[Kr])try{R(Gr,Kr,Ke[Kr])}catch(t){Gr[Kr]=Ke[Kr]}}}var Qr="object"==typeof global&&global&&global.Object===Object&&global,Jr="object"==typeof self&&self&&self.Object===Object&&self,Zr=Qr||Jr||Function("return this")(),ti=Zr.Symbol,ei=Object.prototype,ri=ei.hasOwnProperty,ii=ei.toString,ni=ti?ti.toStringTag:void 0;var oi=Object.prototype.toString;var si="[object Null]",ai="[object Undefined]",li=ti?ti.toStringTag:void 0;function ci(t){return null==t?void 0===t?ai:si:li&&li in Object(t)?function(t){var e=ri.call(t,ni),r=t[ni];try{t[ni]=void 0;var i=!0}catch(t){}var n=ii.call(t);return i&&(e?t[ni]=r:delete t[ni]),n}(t):function(t){return oi.call(t)}(t)}var ui="[object Symbol]";function fi(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var hi=NaN,di=/^\s+|\s+$/g,pi=/^[-+]0x[0-9a-f]+$/i,vi=/^0b[01]+$/i,gi=/^0o[0-7]+$/i,yi=parseInt;function bi(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&ci(t)==ui}(t))return hi;if(fi(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=fi(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(di,"");var r=vi.test(t);return r||gi.test(t)?yi(t.slice(2),r?2:8):pi.test(t)?hi:+t}var mi="[object AsyncFunction]",xi="[object Function]",Ei="[object GeneratorFunction]",Si="[object Proxy]";var wi=Zr["__core-js_shared__"],Oi=function(){var t=/[^.]+$/.exec(wi&&wi.keys&&wi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var Ai=Function.prototype.toString;var ki=/^\[object .+?Constructor\]$/,Li=Function.prototype,_i=Object.prototype,Ri=Li.toString,Ti=_i.hasOwnProperty,Mi=RegExp("^"+Ri.call(Ti).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ji(t){return!(!fi(t)||(e=t,Oi&&Oi in e))&&(function(t){if(!fi(t))return!1;var e=ci(t);return e==xi||e==Ei||e==mi||e==Si}(t)?Mi:ki).test(function(t){if(null!=t){try{return Ai.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Ci(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ji(r)?r:void 0}var zi=Ci(Object,"create");var Wi="__lodash_hash_undefined__",Ii=Object.prototype.hasOwnProperty;var Ni=Object.prototype.hasOwnProperty;var Pi="__lodash_hash_undefined__";function Di(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function Fi(t,e){for(var r,i,n=t.length;n--;)if((r=t[n][0])===(i=e)||r!=r&&i!=i)return n;return-1}Di.prototype.clear=function(){this.__data__=zi?zi(null):{},this.size=0},Di.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Di.prototype.get=function(t){var e=this.__data__;if(zi){var r=e[t];return r===Wi?void 0:r}return Ii.call(e,t)?e[t]:void 0},Di.prototype.has=function(t){var e=this.__data__;return zi?void 0!==e[t]:Ni.call(e,t)},Di.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=zi&&void 0===e?Pi:e,this};var Vi=Array.prototype.splice;function Bi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Bi.prototype.clear=function(){this.__data__=[],this.size=0},Bi.prototype.delete=function(t){var e=this.__data__,r=Fi(e,t);return!(r<0)&&(r==e.length-1?e.pop():Vi.call(e,r,1),--this.size,!0)},Bi.prototype.get=function(t){var e=this.__data__,r=Fi(e,t);return r<0?void 0:e[r][1]},Bi.prototype.has=function(t){return Fi(this.__data__,t)>-1},Bi.prototype.set=function(t,e){var r=this.__data__,i=Fi(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};var $i=Ci(Zr,"Map");function Hi(t,e){var r,i,n=t.__data__;return("string"==(i=typeof(r=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?n["string"==typeof e?"string":"hash"]:n.map}function Ui(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Ui.prototype.clear=function(){this.size=0,this.__data__={hash:new Di,map:new($i||Bi),string:new Di}},Ui.prototype.delete=function(t){var e=Hi(this,t).delete(t);return this.size-=e?1:0,e},Ui.prototype.get=function(t){return Hi(this,t).get(t)},Ui.prototype.has=function(t){return Hi(this,t).has(t)},Ui.prototype.set=function(t,e){var r=Hi(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this};var Xi="Expected a function";function qi(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Xi);var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var s=t.apply(this,i);return r.cache=o.set(n,s)||o,s};return r.cache=new(qi.Cache||Ui),r}qi.Cache=Ui;var Yi=function(){return Zr.Date.now()},Gi="Expected a function",Ki=Math.max,Qi=Math.min;function Ji(t,e,r){var i,n,o,s,a,l,c=0,u=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError(Gi);function d(e){var r=i,o=n;return i=n=void 0,c=e,s=t.apply(o,r)}function p(t){var r=t-l;return void 0===l||r>=e||r<0||f&&t-c>=o}function v(){var t=Yi();if(p(t))return g(t);a=setTimeout(v,function(t){var r=e-(t-l);return f?Qi(r,o-(t-c)):r}(t))}function g(t){return a=void 0,h&&i?d(t):(i=n=void 0,s)}function y(){var t=Yi(),r=p(t);if(i=arguments,n=this,l=t,r){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(f)return clearTimeout(a),a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=bi(e)||0,fi(r)&&(u=!!r.leading,o=(f="maxWait"in r)?Ki(bi(r.maxWait)||0,e):o,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=n=a=void 0},y.flush=function(){return void 0===a?s:g(Yi())},y}var Zi="Expected a function";function tn(t,e,r){var i=!0,n=!0;if("function"!=typeof t)throw new TypeError(Zi);return fi(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),Ji(t,e,{leading:i,maxWait:e,trailing:n})}var en=null,rn=null;function nn(){if(null===en){if("undefined"==typeof document)return en=0;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var r=e.getBoundingClientRect().right;t.removeChild(e),en=r}return en}ne&&window.addEventListener("resize",(function(){rn!==window.devicePixelRatio&&(rn=window.devicePixelRatio,en=null)}));var on=function(t){return function(e,r,i,n){_t(r);var o=Tt(e),s=d(o),a=at(o.length),l=t?a-1:0,c=t?-1:1;if(i<2)for(;;){if(l in s){n=s[l],l+=c;break}if(l+=c,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=c)l in s&&(n=r(n,s[l],l,o));return n}},sn={left:on(!1),right:on(!0)}.left,an=$t("reduce"),ln=qt("reduce",{1:0});Lt({target:"Array",proto:!0,forced:!an||!ln},{reduce:function(t){return sn(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var cn=_.f,un=Function.prototype,fn=un.toString,hn=/^\s*function ([^ (]*)/;!o||"name"in un||cn(un,"name",{configurable:!0,get:function(){try{return fn.call(this).match(hn)[1]}catch(t){return""}}});var dn=function(){var t=k(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function pn(t,e){return RegExp(t,e)}var vn,gn,yn={UNSUPPORTED_Y:n((function(){var t=pn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:n((function(){var t=pn("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},bn=RegExp.prototype.exec,mn=String.prototype.replace,xn=bn,En=(vn=/a/,gn=/b*/g,bn.call(vn,"a"),bn.call(gn,"a"),0!==vn.lastIndex||0!==gn.lastIndex),Sn=yn.UNSUPPORTED_Y||yn.BROKEN_CARET,wn=void 0!==/()??/.exec("")[1];(En||wn||Sn)&&(xn=function(t){var e,r,i,n,o=this,s=Sn&&o.sticky,a=dn.call(o),l=o.source,c=0,u=t;return s&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),u=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),r=new RegExp("^(?:"+l+")",a)),wn&&(r=new RegExp("^"+l+"$(?!\\s)",a)),En&&(e=o.lastIndex),i=bn.call(s?r:o,u),s?i?(i.input=i.input.slice(c),i[0]=i[0].slice(c),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:En&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),wn&&i&&i.length>1&&mn.call(i[0],r,(function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(i[n]=void 0)})),i});var On=xn;Lt({target:"RegExp",proto:!0,forced:/./.exec!==On},{exec:On});var An=Nt("species"),kn=!n((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Ln="$0"==="a".replace(/./,"$0"),_n=Nt("replace"),Rn=!!/./[_n]&&""===/./[_n]("a","$0"),Tn=!n((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Mn=function(t,e,r,i){var o=Nt(t),s=!n((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=s&&!n((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[An]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!s||!a||"replace"===t&&(!kn||!Ln||Rn)||"split"===t&&!Tn){var l=/./[o],c=r(o,""[t],(function(t,e,r,i,n){return e.exec===On?s&&!n?{done:!0,value:l.call(e,r,i)}:{done:!0,value:t.call(r,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:Ln,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Rn}),u=c[0],f=c[1];Z(String.prototype,t,u),Z(RegExp.prototype,o,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}i&&R(RegExp.prototype[o],"sham",!0)},jn=gr.charAt,Cn=function(t,e,r){return e+(r?jn(t,e).length:1)},zn=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==f(t))throw TypeError("RegExp#exec called on incompatible receiver");return On.call(t,e)};Mn("match",1,(function(t,e,r){return[function(e){var r=p(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,r):new RegExp(e)[t](String(r))},function(t){var i=r(e,t,this);if(i.done)return i.value;var n=k(t),o=String(this);if(!n.global)return zn(n,o);var s=n.unicode;n.lastIndex=0;for(var a,l=[],c=0;null!==(a=zn(n,o));){var u=String(a[0]);l[c]=u,""===u&&(n.lastIndex=Cn(o,at(n.lastIndex),s)),c++}return 0===c?null:l}]}));var Wn=Math.max,In=Math.min,Nn=Math.floor,Pn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Dn=/\$([$&'`]|\d\d?)/g;Mn("replace",2,(function(t,e,r,i){var n=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=i.REPLACE_KEEPS_$0,s=n?"$":"$0";return[function(r,i){var n=p(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,n,i):e.call(String(n),r,i)},function(t,i){if(!n&&o||"string"==typeof i&&-1===i.indexOf(s)){var l=r(e,t,this,i);if(l.done)return l.value}var c=k(t),u=String(this),f="function"==typeof i;f||(i=String(i));var h=c.global;if(h){var d=c.unicode;c.lastIndex=0}for(var p=[];;){var v=zn(c,u);if(null===v)break;if(p.push(v),!h)break;""===String(v[0])&&(c.lastIndex=Cn(u,at(c.lastIndex),d))}for(var g,y="",b=0,m=0;m<p.length;m++){v=p[m];for(var x=String(v[0]),E=Wn(In(ot(v.index),u.length),0),S=[],w=1;w<v.length;w++)S.push(void 0===(g=v[w])?g:String(g));var O=v.groups;if(f){var A=[x].concat(S,E,u);void 0!==O&&A.push(O);var L=String(i.apply(void 0,A))}else L=a(x,u,E,S,O,i);E>=b&&(y+=u.slice(b,E)+L,b=E+x.length)}return y+u.slice(b)}];function a(t,r,i,n,o,s){var a=i+t.length,l=n.length,c=Dn;return void 0!==o&&(o=Tt(o),c=Pn),e.call(s,c,(function(e,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,i);case"'":return r.slice(a);case"<":c=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return e;if(u>l){var f=Nn(u/10);return 0===f?e:f<=l?void 0===n[f-1]?s.charAt(1):n[f-1]+s.charAt(1):e}c=n[u-1]}return void 0===c?"":c}))}}));var Fn=function(t){return Array.prototype.reduce.call(t,(function(t,e){var r=e.name.match(/data-simplebar-(.+)/);if(r){var i=r[1].replace(/\W+(.)/g,(function(t,e){return e.toUpperCase()}));switch(e.value){case"true":t[i]=!0;break;case"false":t[i]=!1;break;case void 0:t[i]=!0;break;default:t[i]=e.value}}return t}),{})};function Vn(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function Bn(t){return t&&t.ownerDocument?t.ownerDocument:document}var $n=function(){function t(e,r){var i=this;this.onScroll=function(){var t=Vn(i.el);i.scrollXTicking||(t.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(t.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0)},this.scrollX=function(){i.axis.x.isOverflowing&&(i.showScrollbar("x"),i.positionScrollbar("x")),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&(i.showScrollbar("y"),i.positionScrollbar("y")),i.scrollYTicking=!1},this.onMouseEnter=function(){i.showScrollbar("x"),i.showScrollbar("y")},this.onMouseMove=function(t){i.mouseX=t.clientX,i.mouseY=t.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this.onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.hideScrollbars=function(){i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.track.rect)||(i.axis.y.scrollbar.el.classList.remove(i.classNames.visible),i.axis.y.isVisible=!1),i.isWithinBounds(i.axis.x.track.rect)||(i.axis.x.scrollbar.el.classList.remove(i.classNames.visible),i.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,r;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(e=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(r=i.isWithinBounds(i.axis.y.track.rect)),(e||r)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(t,"x"):i.onTrackClick(t,"x")),r&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(t,"y"):i.onTrackClick(t,"y"))))},this.drag=function(e){var r=i.axis[i.draggedAxis].track,n=r.rect[i.axis[i.draggedAxis].sizeAttr],o=i.axis[i.draggedAxis].scrollbar,s=i.contentWrapperEl[i.axis[i.draggedAxis].scrollSizeAttr],a=parseInt(i.elStyles[i.axis[i.draggedAxis].sizeAttr],10);e.preventDefault(),e.stopPropagation();var l=(("y"===i.draggedAxis?e.pageY:e.pageX)-r.rect[i.axis[i.draggedAxis].offsetAttr]-i.axis[i.draggedAxis].dragOffset)/(n-o.size)*(s-a);"x"===i.draggedAxis&&(l=i.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l-(n+o.size):l,l=i.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-l:l),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=l},this.onEndDrag=function(t){var e=Bn(i.el),r=Vn(i.el);t.preventDefault(),t.stopPropagation(),i.el.classList.remove(i.classNames.dragging),e.removeEventListener("mousemove",i.drag,!0),e.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=r.setTimeout((function(){e.removeEventListener("click",i.preventClick,!0),e.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null}))},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=e,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},r),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el)||(this.recalculate=tn(this.recalculate.bind(this),64),this.onMouseMove=tn(this.onMouseMove.bind(this),64),this.hideScrollbars=Ji(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Ji(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=qi(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var r=e.firstElementChild;document.body.appendChild(r);var i=r.firstElementChild;r.scrollLeft=0;var n=t.getOffset(r),o=t.getOffset(i);r.scrollLeft=999;var s=t.getOffset(i);return{isRtlScrollingInverted:n.left!==o.left&&o.left-s.left!=0,isRtlScrollbarInverted:n.left!==o.left}},t.getOffset=function(t){var e=t.getBoundingClientRect(),r=Bn(t),i=Vn(t);return{top:e.top+(i.pageYOffset||r.documentElement.scrollTop),left:e.left+(i.pageXOffset||r.documentElement.scrollLeft)}};var e=t.prototype;return e.init=function(){t.instances.set(this.el,this),ne&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.initDOM=function(){var t=this;if(Array.prototype.filter.call(this.el.children,(function(e){return e.classList.contains(t.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),r=document.createElement("div");e.classList.add(this.classNames.track),r.classList.add(this.classNames.scrollbar),e.appendChild(r),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},e.initListeners=function(){var t=this,e=Vn(this.el);if(this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize),window.ResizeObserver){var r=!1,i=e.ResizeObserver||ResizeObserver;this.resizeObserver=new i((function(){r&&t.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame((function(){r=!0}))}this.mutationObserver=new e.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},e.recalculate=function(){var t=Vn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var e=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||e>0,n=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var a=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?(e||l)+"px":"auto",this.placeholderEl.style.height=a+"px";var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==e&&l>e,this.axis.y.isOverflowing=a>c,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==s&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>n-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&a>c-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},e.getScrollbarSize=function(t){if(void 0===t&&(t="y"),!this.axis[t].isOverflowing)return 0;var e,r=this.contentEl[this.axis[t].scrollSizeAttr],i=this.axis[t].track.el[this.axis[t].offsetSizeAttr],n=i/r;return e=Math.max(~~(n*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(e=Math.min(e,this.options.scrollbarMaxSize)),e},e.positionScrollbar=function(e){if(void 0===e&&(e="y"),this.axis[e].isOverflowing){var r=this.contentWrapperEl[this.axis[e].scrollSizeAttr],i=this.axis[e].track.el[this.axis[e].offsetSizeAttr],n=parseInt(this.elStyles[this.axis[e].sizeAttr],10),o=this.axis[e].scrollbar,s=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],a=(s="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s)/(r-n),l=~~((i-o.size)*a);l="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l+(i-o.size):l,o.el.style.transform="x"===e?"translate3d("+l+"px, 0, 0)":"translate3d(0, "+l+"px, 0)"}},e.toggleTrackVisibility=function(t){void 0===t&&(t="y");var e=this.axis[t].track.el,r=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none"},e.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},e.onMouseMoveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)},e.onMouseLeaveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)},e.showScrollbar=function(t){void 0===t&&(t="y");var e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},e.onDragStart=function(t,e){void 0===e&&(e="y");var r=Bn(this.el),i=Vn(this.el),n=this.axis[e].scrollbar,o="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=o-n.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.onTrackClick=function(t,e){var r=this;if(void 0===e&&(e="y"),this.options.clickOnTrack){var i=Vn(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();var n=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr],o=parseInt(this.elStyles[this.axis[e].sizeAttr],10),s=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],a=("y"===e?this.mouseY-n:this.mouseX-n)<0?-1:1,l=-1===a?s-o:s+o;!function t(){var n,o;-1===a?s>l&&(s-=40,r.contentWrapperEl.scrollTo(((n={})[r.axis[e].offsetAttr]=s,n)),i.requestAnimationFrame(t)):s<l&&(s+=40,r.contentWrapperEl.scrollTo(((o={})[r.axis[e].offsetAttr]=s,o)),i.requestAnimationFrame(t))}()}},e.getContentElement=function(){return this.contentEl},e.getScrollElement=function(){return this.contentWrapperEl},e.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:nn()}catch(t){return nn()}},e.removeListeners=function(){var t=this,e=Vn(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.removeEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.removeEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},e.unMount=function(){this.removeListeners(),t.instances.delete(this.el)},e.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.findChild=function(t,e){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,(function(t){return r.call(t,e)}))[0]},t}();return $n.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},$n.instances=new WeakMap,$n.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll('[data-simplebar]:not([data-simplebar="init"])'),(function(t){$n.instances.has(t)||new $n(t,Fn(t.attributes))}))},$n.removeObserver=function(){this.globalObserver.disconnect()},$n.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver($n.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},$n.handleMutations=function(t){t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes,(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!$n.instances.has(t)&&new $n(t,Fn(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar]:not([data-simplebar="init"])'),(function(t){!$n.instances.has(t)&&new $n(t,Fn(t.attributes))})))})),Array.prototype.forEach.call(t.removedNodes,(function(t){1===t.nodeType&&(t.hasAttribute('[data-simplebar="init"]')?$n.instances.has(t)&&$n.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),(function(t){$n.instances.has(t)&&$n.instances.get(t).unMount()})))}))}))},$n.getOptions=Fn,ne&&$n.initHtmlApi(),$n}));
{
"version": "6.0.0-beta.0",
"version": "6.0.0-beta.1",
"name": "simplebar",

@@ -35,6 +35,5 @@ "title": "SimpleBar.js",

"can-use-dom": "^0.1.0",
"core-js": "^3.0.1",
"lodash.debounce": "^4.0.8",
"lodash.memoize": "^4.1.2",
"lodash.throttle": "^4.1.1"
"core-js": "^3.6.5",
"lodash": "^4.17.15",
"lodash-es": "^4.17.15"
},

@@ -55,3 +54,4 @@ "devDependencies": {

]
}
},
"gitHead": "ef879b01fab86cb7dbf208ed6bb57ae7df39ea9e"
}

@@ -135,2 +135,13 @@ # SimpleBar [![npm package][npm-badge]][npm] ![size-badge]

### Styling
The default styling is applied with CSS. There is no "built-in" way to style the scrollbar, you just need to override the default CSS.
Ex, to change the color of the scrollbar:
```css
.simplebar-scrollbar::before {
background-color: red;
}
```
### Options

@@ -212,2 +223,21 @@

#### timeout
Define the delay until the scrollbar hides. Has no effect if `autoHide` is `false`.
Default value is `1000`.
#### clickOnTrack
Controls the click on track behaviour.
Default to `true`.
#### scrollbarMinSize / scrollbarMaxSize
Controls the min and max size of the scrollbar in `px`.
Default for `scrollbarMinSize` is `25`.
Default for `scrollbarMaxSize` is `0` (no max size).
### Apply scroll vertically only

@@ -255,3 +285,3 @@

### Disable Mutation Observer
### Disable Mutation Observer (core package only)

@@ -317,4 +347,7 @@ ```js

**Ember.js**
To use SimpleBar with the Ember.js framework, use the [ember-simplebars](https://github.com/fpauser/ember-simplebar) addon.
[npm-badge]: https://img.shields.io/npm/v/simplebar.svg?style=flat-square
[npm]: https://www.npmjs.org/package/simplebar
[size-badge]: http://img.badgesize.io/Grsmto/simplebar/master/packages/simplebar/src/simplebar.js?compression=gzip&&style=flat-square

@@ -1,4 +0,2 @@

import throttle from 'lodash.throttle';
import debounce from 'lodash.debounce';
import memoize from 'lodash.memoize';
import { throttle, debounce, memoize } from 'lodash-es';
import canUseDOM from 'can-use-dom';

@@ -167,3 +165,2 @@ import scrollbarWidth from './scrollbar-width';

initDOM() {
const elDocument = getElementDocument(this.el);
// make sure this element doesn't have the elements yet

@@ -335,7 +332,8 @@ if (

const contentElOffsetWidth = this.contentEl.offsetWidth;
const isHeightAuto = this.heightAutoObserverEl.offsetHeight <= 1;
const isWidthAuto = this.heightAutoObserverEl.offsetWidth <= 1;
const isWidthAuto =
this.heightAutoObserverEl.offsetWidth <= 1 || contentElOffsetWidth > 0;
const contentElOffsetWidth = this.contentEl.offsetWidth;
const contentWrapperElOffsetWidth = this.contentWrapperEl.offsetWidth;

@@ -356,3 +354,3 @@

this.placeholderEl.style.width = isWidthAuto
? `${contentElOffsetWidth}px`
? `${contentElOffsetWidth || contentElScrollWidth}px`
: 'auto';

@@ -363,3 +361,4 @@ this.placeholderEl.style.height = `${contentElScrollHeight}px`;

this.axis.x.isOverflowing = contentElScrollWidth > contentElOffsetWidth;
this.axis.x.isOverflowing =
contentElOffsetWidth !== 0 && contentElScrollWidth > contentElOffsetWidth;
this.axis.y.isOverflowing =

@@ -366,0 +365,0 @@ contentElScrollHeight > contentWrapperElOffsetHeight;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc