text: (function(e,t){'object'==typeof exports&&'undefined'!=typeof module?t(exports):'function'==typeof define&&define.amd?define(['exports'],t):t(e._30s={})})(this,function(e){'use strict';function t(e){return t='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},t(e)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var i=null==arguments[t]?{}:arguments[t],r=Object.keys(i);'function'==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){n(e,t,i[t])})}return e}function r(e,t){return c(e)||d(e,t)||h()}function l(e){return c(e)||s(e)||h()}function o(e){return a(e)||s(e)||p()}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function c(e){if(Array.isArray(e))return e}function s(e){if(Symbol.iterator in Object(e)||'[object Arguments]'===Object.prototype.toString.call(e))return Array.from(e)}function d(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var l,o=e[Symbol.iterator]();!(i=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));i=!0);}catch(e){r=!0,a=e}finally{try{i||null==o['return']||o['return']()}finally{if(r)throw a}}return n}function p(){throw new TypeError('Invalid attempt to spread non-iterable instance')}function h(){throw new TypeError('Invalid attempt to destructure non-iterable instance')}var g=Math.sqrt,u=Math.pow,y=Math.PI,k=Math.floor,m=Math.min,_=Math.max,b=Math.ceil,v=Math.round,j=Math.abs,S='undefined'!=typeof require&&require('fs'),x='undefined'!=typeof require&&require('crypto'),C=function e(n,i){return Array.isArray(n)?n.map(function(t){return e(t,i)}):'object'===t(n)?Object.keys(n).reduce(function(r,a){var l=n[a];return r[i(a)]=null!==l&&'object'===t(l)?e(l,i):r[i(a)]=l,r},{}):n},w=function e(n,i){return i in n?n[i]:Object.values(n).reduce(function(n,r){return void 0===n?'object'===t(r)?e(r,i):void 0:n},void 0)},E=function e(n,i){if(n===i)return!0;if(n instanceof Date&&i instanceof Date)return n.getTime()===i.getTime();if(!n||!i||'object'!==t(n)&&'object'!==t(i))return n===i;if(null===n||void 0===n||null===i||void 0===i)return!1;if(n.prototype!==i.prototype)return!1;var r=Object.keys(n);return r.length===Object.keys(i).length&&r.every(function(t){return e(n[t],i[t])})},A=function(){return!['undefined'==typeof window?'undefined':t(window),'undefined'==typeof document?'undefined':t(document)].includes('undefined')},I=function(e){return null!==e&&'object'===t(e)&&'function'==typeof e.pipe&&'function'==typeof e._read&&'object'===t(e._readableState)&&'function'==typeof e._write&&'object'===t(e._writableState)},T=function(e){return null!==e&&'object'===t(e)},L=function(e){return!!e&&'object'===t(e)&&e.constructor===Object},O=function(e){return null!==e&&('object'===t(e)||'function'==typeof e)&&'function'==typeof e.then},B=function(e){return null!==e&&'object'===t(e)&&'function'==typeof e.pipe&&'function'==typeof e._read&&'object'===t(e._readableState)},R=function(e){return null!==e&&'object'===t(e)&&'function'==typeof e.pipe},N=function(e){return'symbol'===t(e)},D=function(){return'TRAVIS'in process.env&&'CI'in process.env},z=function(e){return null!==e&&'object'===t(e)&&'function'==typeof e.pipe&&'function'==typeof e._write&&'object'===t(e._writableState)},P=function(e,n){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:n+'s',r=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:t+'s';return[1,-1].includes(+e)?t:n};return'object'===t(e)?function(t,n){return r(t,n,e[n])}:r(e,n,i)},F=function(e){return Array.isArray(e)?e.length:e&&'object'===t(e)?e.size||e.length||Object.keys(e).length:'string'==typeof e?new Blob([e]).size:0};e.CSVToArray=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:',',n=!!(2<arguments.length&&arguments[2]!==void 0)&&arguments[2];return e.slice(n?e.indexOf('\n')+1:0).split('\n').map(function(e){return e.split(t)})},e.CSVToJSON=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:',',n=e.slice(0,e.indexOf('\n')).split(t);return e.slice(e.indexOf('\n')+1).split('\n').map(function(e){var i=e.split(t);return n.reduce(function(e,t,n){return e[t]=i[n],e},{})})},e.JSONToFile=function(e,t){return S.writeFile(''.concat(t,'.json'),JSON.stringify(e,null,2))},e.JSONtoCSV=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:',';return[t.join(n)].concat(o(e.map(function(e){return t.reduce(function(t,i){return''.concat(t).concat(t.length?n:'','"').concat(e[i]?e[i]:'','"')},'')}))).join('\n')},e.RGBToHex=function(e,t,n){return((e<<16)+(t<<8)+n).toString(16).padStart(6,'0')},e.URLJoin=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join('/').replace(/[\/]+/g,'/').replace(/^(.+):\//,'$1://').replace(/^file:/,'file:/').replace(/\/(\?|&|#[^!])/g,'$1').replace(/\?/g,'&').replace('&','?')},e.UUIDGeneratorBrowser=function(){return'10000000-1000-4000-8000-100000000000'.replace(/[018]/g,function(e){return(e^x.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})},e.UUIDGeneratorNode=function(){return'10000000-1000-4000-8000-100000000000'.replace(/[018]/g,function(e){return(e^x.randomBytes(1)[0]&15>>e/4).toString(16)})},e.all=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:Boolean;return e.every(t)},e.allEqual=function(e){return e.every(function(t){return t===e[0]})},e.any=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:Boolean;return e.some(t)},e.approximatelyEqual=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:.001;return j(e-t)<n},e.arrayToCSV=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:',';return e.map(function(e){return e.map(function(e){return isNaN(e)?'"'.concat(e.replace(/"/g,'""'),'"'):e}).join(t)}).join('\n')},e.arrayToHtmlList=function(e,t){return function(n){return n=document.querySelector('#'+t),n.innerHTML+=e.map(function(e){return'<li>'.concat(e,'</li>')}).join('')}()},e.ary=function(e,t){return function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.apply(void 0,o(i.slice(0,t)))}},e.atob=function(e){return Buffer.from(e,'base64').toString('binary')},e.attempt=function(e){try{for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(void 0,n)}catch(t){return t instanceof Error?t:new Error(t)}},e.average=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return e+t},0)/t.length},e.averageBy=function(e,t){return e.map('function'==typeof t?t:function(e){return e[t]}).reduce(function(e,t){return e+t},0)/e.length},e.bifurcate=function(e,t){return e.reduce(function(e,n,r){return e[t[r]?0:1].push(n),e},[[],[]])},e.bifurcateBy=function(e,t){return e.reduce(function(e,n,r){return e[t(n,r)?0:1].push(n),e},[[],[]])},e.bind=function(e,t){for(var n=arguments.length,i=Array(2<n?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.apply(t,i.concat(r))}},e.bindAll=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(function(t){return f=e[t],e[t]=function(){return f.apply(e)}})},e.bindKey=function(e,t){for(var n=arguments.length,i=Array(2<n?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return e[t].apply(e,i.concat(r))}},e.binomialCoefficient=function(e,t){var n=Number.isNaN;if(n(e)||n(t))return NaN;if(0>t||t>e)return 0;if(0===t||t===e)return 1;if(1===t||t===e-1)return e;e-t<t&&(t=e-t);for(var i=e,r=2;r<=t;r++)i*=(e-r+1)/r;return v(i)},e.bottomVisible=function(){return document.documentElement.clientHeight+window.scrollY>=(document.documentElement.scrollHeight||document.documentElement.clientHeight)},e.btoa=function(e){return Buffer.from(e,'binary').toString('base64')},e.byteSize=function(e){return new Blob([e]).size},e.call=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(t){return t[e].apply(t,n)}},e.capitalize=function(e){var t=l(e),n=t[0],i=t.slice(1),r=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1];return n.toUpperCase()+(r?i.join('').toLowerCase():i.join(''))},e.capitalizeEveryWord=function(e){return e.replace(/\b[a-z]/g,function(e){return e.toUpperCase()})},e.castArray=function(e){return Array.isArray(e)?e:[e]},e.chainAsync=function(e){var t=0,n=e[e.length-1],i=function i(){var r=e[t++];r===n?r():r(i)};i()},e.checkProp=function(e,t){return function(n){return!!e(n[t])}},e.chunk=function(e,t){return Array.from({length:b(e.length/t)},function(n,r){return e.slice(r*t,r*t+t)})},e.clampNumber=function(e,t,n){return _(m(e,_(t,n)),m(t,n))},e.cloneRegExp=function(e){return new RegExp(e.source,e.flags)},e.coalesce=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.find(function(e){return![void 0,null].includes(e)})},e.coalesceFactory=function(e){return function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.find(e)}},e.collectInto=function(e){return function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e(n)}},e.colorize=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return{black:'\x1B[30m'.concat(t.join(' ')),red:'\x1B[31m'.concat(t.join(' ')),green:'\x1B[32m'.concat(t.join(' ')),yellow:'\x1B[33m'.concat(t.join(' ')),blue:'\x1B[34m'.concat(t.join(' ')),magenta:'\x1B[35m'.concat(t.join(' ')),cyan:'\x1B[36m'.concat(t.join(' ')),white:'\x1B[37m'.concat(t.join(' ')),bgBlack:'\x1B[40m'.concat(t.join(' '),'\x1B[0m'),bgRed:'\x1B[41m'.concat(t.join(' '),'\x1B[0m'),bgGreen:'\x1B[42m'.concat(t.join(' '),'\x1B[0m'),bgYellow:'\x1B[43m'.concat(t.join(' '),'\x1B[0m'),bgBlue:'\x1B[44m'.concat(t.join(' '),'\x1B[0m'),bgMagenta:'\x1B[45m'.concat(t.join(' '),'\x1B[0m'),bgCyan:'\x1B[46m'.concat(t.join(' '),'\x1B[0m'),bgWhite:'\x1B[47m'.concat(t.join(' '),'\x1B[0m')}},e.compact=function(e){return e.filter(Boolean)},e.compactWhitespace=function(e){return e.replace(/\s{2,}/g,' ')},e.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})},e.composeRight=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return function(){return t(e.apply(void 0,arguments))}})},e.converge=function(e,t){return function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.apply(void 0,o(t.map(function(e){return e.apply(null,i)})))}},e.copyToClipboard=function(e){var t=document.createElement('textarea');t.value=e,t.setAttribute('readonly',''),t.style.position='absolute',t.style.left='-9999px',document.body.appendChild(t);var n=!!(0<document.getSelection().rangeCount)&&document.getSelection().getRangeAt(0);t.select(),document.execCommand('copy'),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))},e.countBy=function(e,t){return e.map('function'==typeof t?t:function(e){return e[t]}).reduce(function(e,t){return e[t]=(e[t]||0)+1,e},{})},e.countOccurrences=function(e,t){return e.reduce(function(e,n){return n===t?e+1:e},0)},e.counter=function(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:1,r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:2e3,a=t,l=0>(n-t)*i?-i:i,o=setInterval(function(){a+=l,document.querySelector(e).innerHTML=a,a>=n&&(document.querySelector(e).innerHTML=n),a>=n&&clearInterval(o)},j(k(r/(n-t))));return o},e.createDirIfNotExists=function(e){return S.existsSync(e)?void 0:S.mkdirSync(e)},e.createElement=function(e){var t=document.createElement('div');return t.innerHTML=e,t.firstElementChild},e.createEventHub=function(){return{hub:Object.create(null),emit:function(e,t){(this.hub[e]||[]).forEach(function(e){return e(t)})},on:function(e,t){this.hub[e]||(this.hub[e]=[]),this.hub[e].push(t)},off:function(e,t){var n=(this.hub[e]||[]).findIndex(function(e){return e===t});-1<n&&this.hub[e].splice(n,1)}}},e.currentURL=function(){return window.location.href},e.curry=function e(t){for(var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:t.length,i=arguments.length,r=Array(2<i?i-2:0),a=2;a<i;a++)r[a-2]=arguments[a];return n<=r.length?t.apply(void 0,r):e.bind.apply(e,[null,t,n].concat(r))},e.dayOfYear=function(e){return k((e-new Date(e.getFullYear(),0,0))/1e3/60/60/24)},e.debounce=function(e){var t,n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0;return function(){for(var i=this,r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];clearTimeout(t),t=setTimeout(function(){return e.apply(i,a)},n)}},e.decapitalize=function(e){var t=l(e),n=t[0],i=t.slice(1),r=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1];return n.toLowerCase()+(r?i.join('').toUpperCase():i.join(''))},e.deepClone=function e(n){var i=Object.assign({},n);return Object.keys(i).forEach(function(r){return i[r]='object'===t(n[r])?e(n[r]):n[r]}),Array.isArray(n)&&n.length?(i.length=n.length)&&Array.from(i):Array.isArray(n)?Array.from(n):i},e.deepFlatten=function e(t){var n;return(n=[]).concat.apply(n,o(t.map(function(t){return Array.isArray(t)?e(t):t})))},e.deepFreeze=function e(t){return Object.keys(t).forEach(function(n){return!(t[n]instanceof Object)||Object.isFrozen(t[n])?null:e(t[n])})||Object.freeze(t)},e.deepMapKeys=C,e.defaults=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign.apply(Object,[{},e].concat(o(n.reverse()),[e]))},e.defer=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return setTimeout.apply(void 0,[e,1].concat(n))},e.degreesToRads=function(e){return e*y/180},e.delay=function(e,t){for(var n=arguments.length,i=Array(2<n?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return setTimeout.apply(void 0,[e,t].concat(i))},e.detectDeviceType=function(){return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?'Mobile':'Desktop'},e.difference=function(e,t){var n=new Set(t);return e.filter(function(e){return!n.has(e)})},e.differenceBy=function(e,t,n){var i=new Set(t.map(n));return e.map(n).filter(function(e){return!i.has(e)})},e.differenceWith=function(e,t,n){return e.filter(function(e){return-1===t.findIndex(function(t){return n(e,t)})})},e.dig=w,e.digitize=function(e){return o(''.concat(e)).map(function(e){return parseInt(e)})},e.distance=function(e,t,n,i){return Math.hypot(n-e,i-t)},e.drop=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1;return e.slice(t)},e.dropRight=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1;return e.slice(0,-t)},e.dropRightWhile=function(e,t){for(;0<e.length&&!t(e[e.length-1]);)e=e.slice(0,-1);return e},e.dropWhile=function(e,t){for(;0<e.length&&!t(e[0]);)e=e.slice(1);return e},e.elementContains=function(e,t){return e!==t&&e.contains(t)},e.elementIsVisibleInViewport=function(e){var t=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1],n=e.getBoundingClientRect(),i=n.top,r=n.left,a=n.bottom,l=n.right,o=window,c=o.innerHeight,s=o.innerWidth;return t?(0<i&&i<c||0<a&&a<c)&&(0<r&&r<s||0<l&&l<s):0<=i&&0<=r&&a<=c&&l<=s},e.elo=function e(t){var n=l(t),o=n.slice(0),c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:32,s=2<arguments.length?arguments[2]:void 0,d=r(o,2),p=d[0],a=d[1],h=function(e,t){return 1/(1+u(10,(t-e)/400))},g=function(e,t){return(s||e)+c*(t-h(t?p:a,t?a:p))};if(2===o.length)return[g(p,1),g(a,0)];for(var y,m=0,i=o.length;m<i;m++)for(y=m;y<i-1;){y++;var k=e([o[m],o[y]],c),b=r(k,2);o[m]=b[0],o[y]=b[1]}return o},e.equals=E,e.escapeHTML=function(e){return e.replace(/[&<>'"]/g,function(e){return{"&":'&amp;',"<":'&lt;',">":'&gt;',"'":'&#39;','"':'&quot;'}[e]||e})},e.escapeRegExp=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,'\\$&')},e.everyNth=function(e,t){return e.filter(function(n,e){return e%t==t-1})},e.extendHex=function(e){return'#'+e.slice(e.startsWith('#')?1:0).split('').map(function(e){return e+e}).join('')},e.factorial=function e(t){return 0>t?function(){throw new TypeError('Negative numbers are not allowed!')}():1>=t?1:t*e(t-1)},e.fibonacci=function(e){return Array.from({length:e}).reduce(function(e,t,n){return e.concat(1<n?e[n-1]+e[n-2]:n)},[])},e.filterFalsy=function(e){return e.filter(Boolean)},e.filterNonUnique=function(e){return e.filter(function(t){return e.indexOf(t)===e.lastIndexOf(t)})},e.filterNonUniqueBy=function(e,t){return e.filter(function(n,r){return e.every(function(e,i){return r===i===t(n,e,r,i)})})},e.findKey=function(e,t){return Object.keys(e).find(function(n){return t(e[n],n,e)})},e.findLast=function(e,t){return e.filter(t).pop()},e.findLastIndex=function(e,t){return e.map(function(e,t){return[t,e]}).filter(function(n){var a=r(n,2),l=a[0],i=a[1];return t(i,l,e)}).pop()[0]},e.findLastKey=function(e,t){return Object.keys(e).reverse().find(function(n){return t(e[n],n,e)})},e.flatten=function e(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1;return t.reduce(function(t,i){return t.concat(1<n&&Array.isArray(i)?e(i,n-1):i)},[])},e.flattenObject=function e(n){var i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:'';return Object.keys(n).reduce(function(r,a){var l=i.length?i+'.':'';return'object'===t(n[a])?Object.assign(r,e(n[a],l+a)):r[l+a]=n[a],r},{})},e.flip=function(e){return function(t){for(var n=arguments.length,i=Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e.apply(void 0,i.concat([t]))}},e.forEachRight=function(e,t){return e.slice(0).reverse().forEach(t)},e.forOwn=function(e,t){return Object.keys(e).forEach(function(n){return t(e[n],n,e)})},e.forOwnRight=function(e,t){return Object.keys(e).reverse().forEach(function(n){return t(e[n],n,e)})},e.formatDuration=function(e){0>e&&(e=-e);var t={day:k(e/864e5),hour:k(e/36e5)%24,minute:k(e/6e4)%60,second:k(e/1e3)%60,millisecond:k(e)%1e3};return Object.entries(t).filter(function(e){return 0!==e[1]}).map(function(e){var t=r(e,2),n=t[0],i=t[1];return''.concat(i,' ').concat(n).concat(1===i?'':'s')}).join(', ')},e.fromCamelCase=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:'_';return e.replace(/([a-z\d])([A-Z])/g,'$1'+t+'$2').replace(/([A-Z]+)([A-Z][a-z\d]+)/g,'$1'+t+'$2').toLowerCase()},e.functionName=function(e){return console.debug(e.name),e},e.functions=function(e){var t=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1];return(t?o(Object.keys(e)).concat(o(Object.keys(Object.getPrototypeOf(e)))):Object.keys(e)).filter(function(t){return'function'==typeof e[t]})},e.gcd=function e(){for(var t=function(t,n){return n?e(n,t%n):t},n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return i.concat().reduce(function(e,n){return t(e,n)})},e.geometricProgression=function(e){var t=Math.log,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:2;return Array.from({length:k(t(e/n)/t(r))+1}).map(function(e,t){return n*u(r,t)})},e.get=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.concat().map(function(t){return t.replace(/\[([^\[\]]*)\]/g,'.$1.').split('.').filter(function(e){return''!==e}).reduce(function(e,t){return e&&e[t]},e)})},e.getColonTimeFromDate=function(e){return e.toTimeString().slice(0,8)},e.getDaysDiffBetweenDates=function(e,t){return(t-e)/86400000},e.getImages=function(e){var t=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1],n=o(e.getElementsByTagName('img')).map(function(e){return e.getAttribute('src')});return t?n:o(new Set(n))},e.getMeridiemSuffixOfInteger=function(e){return 0===e||24===e?'12am':12===e?'12pm':12>e?e%12+'am':e%12+'pm'},e.getScrollPosition=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:window;return{x:e.pageXOffset===void 0?e.scrollLeft:e.pageXOffset,y:e.pageYOffset===void 0?e.scrollTop:e.pageYOffset}},e.getStyle=function(e,t){return getComputedStyle(e)[t]},e.getType=function(e){return e===void 0?'undefined':null===e?'null':e.constructor.name.toLowerCase()},e.getURLParameters=function(e){return(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(function(e,t){return e[t.slice(0,t.indexOf('='))]=t.slice(t.indexOf('=')+1),e},{})},e.groupBy=function(e,t){return e.map('function'==typeof t?t:function(e){return e[t]}).reduce(function(t,n,r){return t[n]=(t[n]||[]).concat(e[r]),t},{})},e.hammingDistance=function(e,t){return((e^t).toString(2).match(/1/g)||'').length},e.hasClass=function(e,t){return e.classList.contains(t)},e.hasFlags=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(function(e){return process.argv.includes(/^-{1,2}/.test(e)?e:'--'+e)})},e.hashBrowser=function(e){return x.subtle.digest('SHA-256',new TextEncoder('utf-8').encode(e)).then(function(e){for(var t=[],n=new DataView(e),r=0;r<n.byteLength;r+=4)t.push(('00000000'+n.getUint32(r).toString(16)).slice(-8));return t.join('')})},e.hashNode=function(e){return new Promise(function(t){return setTimeout(function(){return t(x.createHash('sha256').update(e).digest('hex'))},0)})},e.head=function(e){return e[0]},e.hexToRGB=function(e){var t=!1,n=e.slice(e.startsWith('#')?1:0);return 3===n.length?n=o(n).map(function(e){return e+e}).join(''):8===n.length&&(t=!0),n=parseInt(n,16),'rgb'+(t?'a':'')+'('+(n>>>(t?24:16))+', '+((n&(t?16711680:65280))>>>(t?16:8))+', '+((n&(t?65280:255))>>>(t?8:0))+(t?', '.concat(255&n):'')+')'},e.hide=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.concat().forEach(function(t){return t.style.display='none'})},e.httpGet=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:console.error,i=new XMLHttpRequest;i.open('GET',e,!0),i.onload=function(){return t(i.responseText)},i.onerror=function(){return n(i)},i.send()},e.httpPost=function(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:console.error,r=new XMLHttpRequest;r.open('POST',e,!0),r.setRequestHeader('Content-type','application/json; charset=utf-8'),r.onload=function(){return n(r.responseText)},r.onerror=function(){return i(r)},r.send(t)},e.httpsRedirect=function(){'https:'!==location.protocol&&location.replace('https://'+location.href.split('//')[1])},e.hz=function(e){for(var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:100,n=performance.now(),r=0;r<t;r++)e();return 1e3*t/(performance.now()-n)},e.inRange=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(n&&t>n){var i=[t,n];n=i[0],t=i[1]}return null==n?0<=e&&e<t:e>=t&&e<n},e.indentString=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:' ';return e.replace(/^/gm,n.repeat(t))},e.indexOfAll=function(e,t){return e.reduce(function(e,n,r){return n===t?o(e).concat([r]):e},[])},e.initial=function(e){return e.slice(0,-1)},e.initialize2DArray=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;return Array.from({length:t}).map(function(){return Array.from({length:e}).fill(n)})},e.initializeArrayWithRange=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;return Array.from({length:b((e-t+1)/n)},function(e,r){return r*n+t})},e.initializeArrayWithRangeRight=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;return Array.from({length:b((e+1-t)/n)}).map(function(e,r,i){return(i.length-r-1)*n+t})},e.initializeArrayWithValues=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0;return Array(e).fill(t)},e.initializeNDArray=function e(t){for(var n=arguments.length,i=Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return 0===i.length?t:Array.from({length:i[0]}).map(function(){return e.apply(void 0,[t].concat(o(i.slice(1))))})},e.insertAfter=function(e,t){return e.insertAdjacentHTML('afterend',t)},e.insertBefore=function(e,t){return e.insertAdjacentHTML('beforebegin',t)},e.intersection=function(e,t){var n=new Set(t);return e.filter(function(e){return n.has(e)})},e.intersectionBy=function(e,t,n){var i=new Set(t.map(n));return e.filter(function(e){return i.has(n(e))})},e.intersectionWith=function(e,t,n){return e.filter(function(e){return-1!==t.findIndex(function(t){return n(e,t)})})},e.invertKeyValues=function(e,t){return Object.keys(e).reduce(function(n,i){var r=t?t(e[i]):e[i];return n[r]=n[r]||[],n[r].push(i),n},{})},e.is=function(e,t){return![,null].includes(t)&&t.constructor===e},e.isAbsoluteURL=function(e){return /^[a-z][a-z0-9+.-]*:/.test(e)},e.isAfterDate=function(e,t){return e>t},e.isAnagram=function(e,t){var n=function(e){return e.toLowerCase().replace(/[^a-z0-9]/gi,'').split('').sort().join('')};return n(e)===n(t)},e.isArrayLike=function(e){return null!=e&&'function'==typeof e[Symbol.iterator]},e.isBeforeDate=function(e,t){return e<t},e.isBoolean=function(e){return'boolean'==typeof e},e.isBrowser=A,e.isBrowserTabFocused=function(){return!document.hidden},e.isDivisible=function(e,t){return 0==e%t},e.isDuplexStream=I,e.isEmpty=function(e){return null==e||!(Object.keys(e)||e).length},e.isEven=function(e){return 0==e%2},e.isFunction=function(e){return'function'==typeof e},e.isLowerCase=function(e){return e===e.toLowerCase()},e.isNegativeZero=function(e){return 0===e&&1/e==-Infinity},e.isNil=function(e){return e===void 0||null===e},e.isNull=function(e){return null===e},e.isNumber=function(e){return'number'==typeof e&&e===e},e.isObject=function(e){return e===Object(e)},e.isObjectLike=T,e.isPlainObject=L,e.isPrime=function(e){for(var t=k(g(e)),n=2;n<=t;n++)if(0==e%n)return!1;return 2<=e},e.isPrimitive=function(e){return Object(e)!==e},e.isPromiseLike=O,e.isReadableStream=B,e.isSameDate=function(e,t){return e.toISOString()===t.toISOString()},e.isSorted=function(e){var t=-(e[0]-e[1]),n=!0,a=!1,l=void 0;try{for(var o,c=e.entries()[Symbol.iterator]();!(n=(o=c.next()).done);n=!0){var s=r(o.value,2),d=s[0],i=s[1];if(t=t?t:-(e[d-1]-e[d]),d===e.length-1)return t?t:0;if(0<(i-e[d+1])*t)return 0}}catch(e){a=!0,l=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw l}}},e.isStream=R,e.isString=function(e){return'string'==typeof e},e.isSymbol=N,e.isTravisCI=D,e.isUndefined=function(e){return e===void 0},e.isUpperCase=function(e){return e===e.toUpperCase()},e.isValidJSON=function(e){try{return JSON.parse(e),!0}catch(t){return!1}},e.isWritableStream=z,e.join=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:',',n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:t;return e.reduce(function(r,a,l){return l===e.length-2?r+a+n:l===e.length-1?r+a:r+a+t},'')},e.last=function(e){return e[e.length-1]},e.lcm=function(){for(var e=function e(t,n){return n?e(n,t%n):t},t=function(t,n){return t*n/e(t,n)},n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return i.concat().reduce(function(e,n){return t(e,n)})},e.longestItem=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return t.length>e.length?t:e})},e.lowercaseKeys=function(e){return Object.keys(e).reduce(function(t,n){return t[n.toLowerCase()]=e[n],t},{})},e.luhnCheck=function(e){var t=(e+'').split('').reverse().map(function(e){return parseInt(e)}),n=t.splice(0,1)[0],i=t.reduce(function(e,t,n){return 0==n%2?e+2*t%9||9:e+t},0);return i+=n,0==i%10},e.mapKeys=function(e,t){return Object.keys(e).reduce(function(n,i){return n[t(e[i],i,e)]=e[i],n},{})},e.mapNumRange=function(e,t,n,i,r){return(e-t)*(r-i)/(n-t)+i},e.mapObject=function(e,t){return function(n){return n=[e,e.map(t)],n[0].reduce(function(e,t,i){return e[t]=n[1][i],e},{})}()},e.mapString=function(e,t){return e.split('').map(function(n,r){return t(n,r,e)}).join('')},e.mapValues=function(e,t){return Object.keys(e).reduce(function(n,i){return n[i]=t(e[i],i,e),n},{})},e.mask=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:4,n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:'*';return''.concat(e).slice(-t).padStart(''.concat(e).length,n)},e.matches=function(e,t){return Object.keys(t).every(function(n){return e.hasOwnProperty(n)&&e[n]===t[n]})},e.matchesWith=function(e,t,n){return Object.keys(t).every(function(i){return e.hasOwnProperty(i)&&n?n(e[i],t[i],i,e,t):e[i]==t[i]})},e.maxBy=function(e,t){return _.apply(Math,o(e.map('function'==typeof t?t:function(e){return e[t]})))},e.maxDate=function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return new Date((e=_).apply.apply(e,[null].concat(n)))},e.maxN=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1;return o(e).sort(function(e,t){return t-e}).slice(0,t)},e.median=function(e){var t=k(e.length/2),n=o(e).sort(function(e,t){return e-t});return 0==e.length%2?(n[t-1]+n[t])/2:n[t]},e.memoize=function(e){var t=new Map,n=function(n){return t.has(n)?t.get(n):t.set(n,e.call(this,n))&&t.get(n)};return n.cache=t,n},e.merge=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.concat().reduce(function(e,t){return Object.keys(t).reduce(function(n,i){return e[i]=e.hasOwnProperty(i)?[].concat(e[i]).concat(t[i]):t[i],e},{})},{})},e.midpoint=function(e,t){var n=r(e,2),i=n[0],a=n[1],l=r(t,2),o=l[0],c=l[1];return[(i+o)/2,(a+c)/2]},e.minBy=function(e,t){return m.apply(Math,o(e.map('function'==typeof t?t:function(e){return e[t]})))},e.minDate=function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return new Date((e=m).apply.apply(e,[null].concat(n)))},e.minN=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1;return o(e).sort(function(e,t){return e-t}).slice(0,t)},e.mostPerformant=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1e4,n=e.map(function(e){for(var n=performance.now(),r=0;r<t;r++)e();return performance.now()-n});return n.indexOf(m.apply(Math,o(n)))},e.negate=function(e){return function(){return!e.apply(void 0,arguments)}},e.nest=function e(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null,r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:'parent_id';return t.filter(function(e){return e[r]===n}).map(function(n){return i({},n,{children:e(t,n.id)})})},e.nodeListToArray=function(e){return o(e)},e.none=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:Boolean;return!e.some(t)},e.nthArg=function(e){return function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.slice(e)[0]}},e.nthElement=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0;return(-1===t?e.slice(t):e.slice(t,t+1))[0]},e.objectFromPairs=function(e){return e.reduce(function(e,t){var n=r(t,2),i=n[0],a=n[1];return e[i]=a,e},{})},e.objectToPairs=function(e){return Object.keys(e).map(function(t){return[t,e[t]]})},e.observeMutations=function(e,t,n){var i=new MutationObserver(function(e){return e.forEach(function(e){return t(e)})});return i.observe(e,Object.assign({childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},n)),i},e.off=function(e,t,n){var i=!!(3<arguments.length&&arguments[3]!==void 0)&&arguments[3];return e.removeEventListener(t,n,i)},e.offset=function(e,t){return o(e.slice(t)).concat(o(e.slice(0,t)))},e.omit=function(e,t){return Object.keys(e).filter(function(e){return!t.includes(e)}).reduce(function(t,n){return t[n]=e[n],t},{})},e.omitBy=function(e,t){return Object.keys(e).filter(function(n){return!t(e[n],n)}).reduce(function(t,n){return t[n]=e[n],t},{})},e.on=function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return t.target.matches(i.target)&&n.call(t.target,t)};if(e.addEventListener(t,i.target?r:n,i.options||!1),i.target)return r},e.onUserInputChange=function(e){var t='mouse',n=0,i=function i(){var r=performance.now();20>r-n&&(t='mouse',e(t),document.removeEventListener('mousemove',i)),n=r};document.addEventListener('touchstart',function(){'touch'==t||(t='touch',e(t),document.addEventListener('mousemove',i))})},e.once=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.apply(this,i)}}},e.orderBy=function(e,t,n){return o(e).sort(function(e,a){return t.reduce(function(t,l,o){if(0===t){var i=n&&'desc'===n[o]?[a[l],e[l]]:[e[l],a[l]],c=r(i,2),s=c[0],d=c[1];t=s>d?1:s<d?-1:0}return t},0)})},e.over=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.map(function(e){return e.apply(null,n)})}},e.overArgs=function(e,t){return function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.apply(void 0,o(i.map(function(e,n){return t[n](e)})))}},e.pad=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:' ';return e.padStart((e.length+t)/2,n).padEnd(t,n)},e.palindrome=function(e){var t=e.toLowerCase().replace(/[\W_]/g,'');return t===o(t).reverse().join('')},e.parseCookie=function(e){return e.split(';').map(function(e){return e.split('=')}).reduce(function(e,t){return e[decodeURIComponent(t[0].trim())]=decodeURIComponent(t[1].trim()),e},{})},e.partial=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.apply(void 0,n.concat(i))}},e.partialRight=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.apply(void 0,i.concat(n))}},e.partition=function(e,t){return e.reduce(function(e,n,r,i){return e[t(n,r,i)?0:1].push(n),e},[[],[]])},e.percentile=function(e,t){return 100*e.reduce(function(e,n){return e+(n<t?1:0)+(n===t?.5:0)},0)/e.length},e.permutations=function e(t){return 2>=t.length?2===t.length?[t,[t[1],t[0]]]:t:t.reduce(function(n,r,a){return n.concat(e(o(t.slice(0,a)).concat(o(t.slice(a+1)))).map(function(e){return[r].concat(o(e))}))},[])},e.pick=function(e,t){return t.reduce(function(t,n){return n in e&&(t[n]=e[n]),t},{})},e.pickBy=function(e,t){return Object.keys(e).filter(function(n){return t(e[n],n)}).reduce(function(t,n){return t[n]=e[n],t},{})},e.pipeAsyncFunctions=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return e.then(t)},Promise.resolve(e))}},e.pipeFunctions=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return function(){return t(e.apply(void 0,arguments))}})},e.pluralize=P,e.powerset=function(e){return e.reduce(function(e,t){return e.concat(e.map(function(e){return[t].concat(e)}))},[[]])},e.prefix=function(e){var t=e.charAt(0).toUpperCase()+e.slice(1),n=['','webkit','moz','ms','o'],r=n.findIndex(function(n){return'undefined'!=typeof document.body.style[n?n+t:e]});return-1===r?null:0===r?e:n[r]+t},e.prettyBytes=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:3,i=!(2<arguments.length&&arguments[2]!==void 0)||arguments[2],r=['B','KB','MB','GB','TB','PB','EB','ZB','YB'];if(1>j(e))return e+(i?' ':'')+r[0];var a=m(k(Math.log10(0>e?-e:e)/3),r.length-1),l=+((0>e?-e:e)/u(1e3,a)).toPrecision(t);return(0>e?'-':'')+l+(i?' ':'')+r[a]},e.primes=function(e){var t=Array.from({length:e-1}).map(function(e,t){return t+2}),n=k(g(e)),i=Array.from({length:n-1}).map(function(e,t){return t+2});return i.forEach(function(e){return t=t.filter(function(t){return 0!=t%e||t===e})}),t},e.promisify=function(e){return function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return new Promise(function(t,i){return e.apply(void 0,n.concat([function(e,n){return e?i(e):t(n)}]))})}},e.pull=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=Array.isArray(n[0])?n[0]:n,a=e.filter(function(e){return!r.includes(e)});e.length=0,a.forEach(function(t){return e.push(t)})},e.pullAtIndex=function(e,t){var n=[],i=e.map(function(e,r){return t.includes(r)?n.push(e):e}).filter(function(e,n){return!t.includes(n)});return e.length=0,i.forEach(function(t){return e.push(t)}),n},e.pullAtValue=function(e,t){var n=[],i=e.forEach(function(e){return t.includes(e)?n.push(e):e}),r=e.filter(function(e){return!t.includes(e)});return e.length=0,r.forEach(function(t){return e.push(t)}),n},e.pullBy=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=n.length,a=1<r?n[r-1]:void 0;a='function'==typeof a?(n.pop(),a):void 0;var l=(Array.isArray(n[0])?n[0]:n).map(function(e){return a(e)}),o=e.filter(function(e){return!l.includes(a(e))});e.length=0,o.forEach(function(t){return e.push(t)})},e.radsToDegrees=function(e){return 180*e/y},e.randomHexColorCode=function(){var e=(1e6*(1048575*Math.random())).toString(16);return'#'+e.slice(0,6)},e.randomIntArrayInRange=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;return Array.from({length:i},function(){return k(Math.random()*(t-e+1))+e})},e.randomIntegerInRange=function(e,t){return k(Math.random()*(t-e+1))+e},e.randomNumberInRange=function(e,t){return Math.random()*(t-e)+e},e.readFileLines=function(e){return S.readFileSync(e).toString('UTF8').split('\n')},e.rearg=function(e,t){return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(void 0,o(t.map(function(e){return r[e]})))}},e.recordAnimationFrames=function(e){var t,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=!0,r=function(){i=!1,cancelAnimationFrame(t)},a=function(){i=!0,l()},l=function n(){t=requestAnimationFrame(function(){e(),i&&n()})};return n&&a(),{start:a,stop:r}},e.redirect=function(e){var t=!(1<arguments.length&&arguments[1]!==void 0)||arguments[1];return t?window.location.href=e:window.location.replace(e)},e.reduceSuccessive=function(e,t,n){return e.reduce(function(e,n,r,i){return e.push(t(e.slice(-1)[0],n,r,i)),e},[n])},e.reduceWhich=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:function(e,t){return e-t};return e.reduce(function(e,n){return 0<=t(e,n)?n:e})},e.reducedFilter=function(e,t,n){return e.filter(n).map(function(e){return t.reduce(function(t,n){return t[n]=e[n],t},{})})},e.reject=function(e,t){return t.filter(function(){return!e.apply(void 0,arguments)})},e.remove=function(e,t){return Array.isArray(e)?e.filter(t).reduce(function(t,n){return e.splice(e.indexOf(n),1),t.concat(n)},[]):[]},e.removeNonASCII=function(e){return e.replace(/[^\x20-\x7E]/g,'')},e.renameKeys=function(e,t){return Object.keys(t).reduce(function(r,a){return i({},r,n({},e[a]||a,t[a]))},{})},e.reverseString=function(e){return o(e).reverse().join('')},e.round=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0;return+''.concat(v(''.concat(e,'e').concat(t)),'e-').concat(t)},e.runAsync=function(e){var t=new Worker(URL.createObjectURL(new Blob(['postMessage(('.concat(e,')());')]),{type:'application/javascript; charset=utf-8'}));return new Promise(function(e,n){t.onmessage=function(n){var i=n.data;e(i),t.terminate()},t.onerror=function(e){n(e),t.terminate()}})},e.runPromisesInSeries=function(e){return e.reduce(function(e,t){return e.then(t)},Promise.resolve())},e.sample=function(e){return e[k(Math.random()*e.length)]},e.sampleSize=function(e){for(var t=l(e),r=t.slice(0),a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=r.length;n;){var o=k(Math.random()*n--),i=[r[o],r[n]];r[n]=i[0],r[o]=i[1]}return r.slice(0,a)},e.scrollToTop=function e(){var t=document.documentElement.scrollTop||document.body.scrollTop;0<t&&(window.requestAnimationFrame(e),window.scrollTo(0,t-t/8))},e.sdbm=function(e){var t=e.split('');return t.reduce(function(e,t){return e=t.charCodeAt(0)+(e<<6)+(e<<16)-e},0)},e.serializeCookie=function(e,t){return''.concat(encodeURIComponent(e),'=').concat(encodeURIComponent(t))},e.setStyle=function(e,t,n){return e.style[t]=n},e.shallowClone=function(e){return Object.assign({},e)},e.shank=function(e){for(var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length,r=Array(3<i?i-3:0),a=3;a<i;a++)r[a-3]=arguments[a];return e.slice(0,t).concat(r).concat(e.slice(t+n))},e.show=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.concat().forEach(function(t){return t.style.display=''})},e.shuffle=function(e){for(var t=l(e),n=t.slice(0),r=n.length;r;){var a=k(Math.random()*r--),i=[n[a],n[r]];n[r]=i[0],n[a]=i[1]}return n},e.similarity=function(e,t){return e.filter(function(e){return t.includes(e)})},e.size=F,e.sleep=function(e){return new Promise(function(t){return setTimeout(t,e)})},e.smoothScroll=function(e){return document.querySelector(e).scrollIntoView({behavior:'smooth'})},e.sortCharactersInString=function(e){return o(e).sort(function(e,t){return e.localeCompare(t)}).join('')},e.sortedIndex=function(e,t){var n=e[0]>e[e.length-1],i=e.findIndex(function(e){return n?t>=e:t<=e});return-1===i?e.length:i},e.sortedIndexBy=function(e,t,n){var i=n(e[0])>n(e[e.length-1]),r=n(t),a=e.findIndex(function(e){return i?r>=n(e):r<=n(e)});return-1===a?e.length:a},e.sortedLastIndex=function(e,t){var n=e[0]>e[e.length-1],i=e.reverse().findIndex(function(e){return n?t<=e:t>=e});return-1===i?0:e.length-i},e.sortedLastIndexBy=function(e,t,n){var i=n(e[0])>n(e[e.length-1]),r=n(t),a=e.map(n).reverse().findIndex(function(e){return i?r<=e:r>=e});return-1===a?0:e.length-a},e.splitLines=function(e){return e.split(/\r?\n/)},e.spreadOver=function(e){return function(t){return e.apply(void 0,o(t))}},e.stableSort=function(e,t){return e.map(function(e,t){return{item:e,index:t}}).sort(function(e,n){return t(e.item,n.item)||e.index-n.index}).map(function(e){var t=e.item;return t})},e.standardDeviation=function(e){var t=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1],n=e.reduce(function(e,t){return e+t},0)/e.length;return g(e.reduce(function(e,t){return e.concat(u(t-n,2))},[]).reduce(function(e,t){return e+t},0)/(e.length-(t?0:1)))},e.stringPermutations=function e(t){return 2>=t.length?2===t.length?[t,t[1]+t[0]]:[t]:t.split('').reduce(function(n,r,a){return n.concat(e(t.slice(0,a)+t.slice(a+1)).map(function(e){return r+e}))},[])},e.stripHTMLTags=function(e){return e.replace(/<[^>]*>/g,'')},e.sum=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.concat().reduce(function(e,t){return e+t},0)},e.sumBy=function(e,t){return e.map('function'==typeof t?t:function(e){return e[t]}).reduce(function(e,t){return e+t},0)},e.sumPower=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:2,n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1;return Array(e+1-n).fill(0).map(function(e,r){return u(r+n,t)}).reduce(function(e,t){return e+t},0)},e.symmetricDifference=function(e,t){var n=new Set(e),i=new Set(t);return o(e.filter(function(e){return!i.has(e)})).concat(o(t.filter(function(e){return!n.has(e)})))},e.symmetricDifferenceBy=function(e,t,n){var i=new Set(e.map(function(e){return n(e)})),r=new Set(t.map(function(e){return n(e)}));return o(e.filter(function(e){return!r.has(n(e))})).concat(o(t.filter(function(e){return!i.has(n(e))})))},e.symmetricDifferenceWith=function(e,t,n){return o(e.filter(function(e){return-1===t.findIndex(function(t){return n(e,t)})})).concat(o(t.filter(function(t){return-1===e.findIndex(function(e){return n(t,e)})})))},e.tail=function(e){return 1<e.length?e.slice(1):e},e.take=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1;return e.slice(0,t)},e.takeRight=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1;return e.slice(e.length-t,e.length)},e.takeRightWhile=function(e,t){return e.reduceRight(function(e,n){return t(n)?e:[n].concat(o(e))},[])},e.takeWhile=function(e,t){var n=!0,a=!1,l=void 0;try{for(var o,c=e.entries()[Symbol.iterator]();!(n=(o=c.next()).done);n=!0){var s=r(o.value,2),d=s[0],i=s[1];if(t(i))return e.slice(0,d)}}catch(e){a=!0,l=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw l}}return e},e.throttle=function(e,t){var n,i,r;return function(){var a=this,l=arguments;n?(clearTimeout(i),i=setTimeout(function(){Date.now()-r>=t&&(e.apply(a,l),r=Date.now())},_(t-(Date.now()-r),0))):(e.apply(a,l),r=Date.now(),n=!0)}},e.timeTaken=function(e){console.time('timeTaken');var t=e();return console.timeEnd('timeTaken'),t},e.times=function(e,t){for(var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,r=0;!1!==t.call(n,r)&&++r<e;);},e.toCamelCase=function(e){var t=e&&e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1).toLowerCase()}).join('');return t.slice(0,1).toLowerCase()+t.slice(1)},e.toCurrency=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:void 0;return Intl.NumberFormat(n,{style:'currency',currency:t}).format(e)},e.toDecimalMark=function(e){return e.toLocaleString('en-US')},e.toHash=function(e,t){return Array.prototype.reduce.call(e,function(e,n,i){return e[t?n[t]:i]=n,e},{})},e.toKebabCase=function(e){return e&&e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(function(e){return e.toLowerCase()}).join('-')},e.toOrdinalSuffix=function(e){var t=parseInt(e),n=[t%10,t%100],i=['st','nd','rd','th'];return[1,2,3,4].includes(n[0])&&![11,12,13,14,15,16,17,18,19].includes(n[1])?t+i[n[0]-1]:t+i[3]},e.toSafeInteger=function(e){return v(_(m(e,Number.MAX_SAFE_INTEGER),Number.MIN_SAFE_INTEGER))},e.toSnakeCase=function(e){return e&&e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(function(e){return e.toLowerCase()}).join('_')},e.toTitleCase=function(e){return e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(' ')},e.toggleClass=function(e,t){return e.classList.toggle(t)},e.tomorrow=function(){var e=new Date;return e.setDate(e.getDate()+1),e.toISOString().split('T')[0]},e.transform=function(e,t,n){return Object.keys(e).reduce(function(n,i){return t(n,e[i],i,e)},n)},e.triggerEvent=function(e,t,n){return e.dispatchEvent(new CustomEvent(t,{detail:n}))},e.truncateString=function(e,t){return e.length>t?e.slice(0,3<t?t-3:t)+'...':e},e.truthCheckCollection=function(e,t){return e.every(function(e){return e[t]})},e.unary=function(e){return function(t){return e(t)}},e.uncurry=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1;return function(){for(var n=function(e){return function(t){return t.reduce(function(e,t){return e(t)},e)}},i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];if(t>r.length)throw new RangeError('Arguments too few!');return n(e)(r.slice(0,t))}},e.unescapeHTML=function(e){return e.replace(/&amp;|&lt;|&gt;|&#39;|&quot;/g,function(e){return{"&amp;":'&',"&lt;":'<',"&gt;":'>',"&#39;":'\'',"&quot;":'"'}[e]||e})},e.unflattenObject=function(e){return Object.keys(e).reduce(function(t,n){if(-1!==n.indexOf('.')){var r=n.split('.');Object.assign(t,JSON.parse('{'+r.map(function(e,t){return t===r.length-1?'"'.concat(e,'":'):'"'.concat(e,'":{')}).join('')+e[n]+'}'.repeat(r.length)))}else t[n]=e[n];return t},{})},e.unfold=function(e,t){for(var n=[],i=[null,t];i=e(i[1]);)n.push(i[0]);return n},e.union=function(e,t){return Array.from(new Set(o(e).concat(o(t))))},e.unionBy=function(e,t,n){var i=new Set(e.map(n));return Array.from(new Set(o(e).concat(o(t.filter(function(e){return!i.has(n(e))})))))},e.unionWith=function(e,t,n){return Array.from(new Set(o(e).concat(o(t.filter(function(t){return-1===e.findIndex(function(e){return n(t,e)})})))))},e.uniqueElements=function(e){return o(new Set(e))},e.uniqueElementsBy=function(e,t){return e.reduce(function(e,n){return e.some(function(e){return t(n,e)})||e.push(n),e},[])},e.uniqueElementsByRight=function(e,t){return e.reduceRight(function(e,n){return e.some(function(e){return t(n,e)})||e.push(n),e},[])},e.uniqueSymmetricDifference=function(e,t){return o(new Set(o(e.filter(function(e){return!t.includes(e)})).concat(o(t.filter(function(t){return!e.includes(t)})))))},e.untildify=function(e){return e.replace(/^~($|\/|\\)/,''.concat(require('os').homedir(),'$1'))},e.unzip=function(e){return e.reduce(function(e,t){return t.forEach(function(t,n){return e[n].push(t)}),e},Array.from({length:_.apply(Math,o(e.map(function(e){return e.length})))}).map(function(){return[]}))},e.unzipWith=function(e,t){return e.reduce(function(e,t){return t.forEach(function(t,n){return e[n].push(t)}),e},Array.from({length:_.apply(Math,o(e.map(function(e){return e.length})))}).map(function(){return[]})).map(function(e){return t.apply(void 0,o(e))})},e.validateNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)&&+e==e},e.vectorDistance=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Math.trunc(t.length/2),i=t.slice(0,r).reduce(function(e,n,a){return e+u(n-t[r+a],2)},0);return g(i)},e.when=function(e,t){return function(n){return e(n)?t(n):n}},e.without=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.filter(function(e){return!n.includes(e)})},e.words=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:/[^a-zA-Z-]+/;return e.split(t).filter(Boolean)},e.xProd=function(e,t){return e.reduce(function(e,n){return e.concat(t.map(function(e){return[n,e]}))},[])},e.yesNo=function(e){var t=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1];return!!/^(y|yes)$/i.test(e)||!/^(n|no)$/i.test(e)&&t},e.zip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=_.apply(Math,o(t.map(function(e){return e.length})));return Array.from({length:i}).map(function(e,n){return Array.from({length:t.length},function(e,i){return t[i][n]})})},e.zipObject=function(e,t){return e.reduce(function(e,n,i){return e[n]=t[i],e},{})},e.zipWith=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r='function'==typeof t[t.length-1]?t.pop():void 0;return Array.from({length:_.apply(Math,o(t.map(function(e){return e.length})))},function(e,n){return r?r.apply(void 0,o(t.map(function(e){return e[n]}))):t.map(function(e){return e[n]})})},Object.defineProperty(e,'__esModule',{value:!0})});
  