function n(n,t){return n===t||null!=n&&null!=t&&(Object.keys(n).length===Object.keys(t).length&&Object.entries(n).every((([n,r])=>t[n]===r)))}function t(n,t){if(n===t)return!0;if(null==n||null==t)return!1;if(t.length!==n.length)return!1;for(let r=0;r<n.length;r+=1)if(n[r]!==t[r])return!1;return!0}function r(n,t,r){return t===r.length-1?Array.from(new Set(r)):[]}function e(n,t=!1){return(r,e)=>!1===t?r[n].localeCompare(e[n]):e[n].localeCompare(r[n])}function u(n,t){const r={},e="string"==typeof t?n=>n[t]:t;for(const t of n){const n=e(t);if(null!=n){let e=r[n];null==e&&(e=[],r[n]=e),e.push(t)}}return r}function l(n,t){return Promise.all(n.map(t))}function o(n,t="narrowSymbol"){return new Intl.NumberFormat("en",{style:"currency",currency:n,currencyDisplay:t}).formatToParts(0).find((n=>"currency"===n.type)).value}function c(n,t){const r=Math.min(n,t),e=Math.max(n,t),u=[];for(let n=r;n<=e;n++)u.push(n);return u}function i(n,t){return Math.floor(Math.random()*(t-n+1)+n)}function f(n){if(0===n.length)return null;return n[i(0,n.length-1)]}function a(n=8,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"){if(0===t.length)throw new Error("Alphabet cannot be an empty string");const r=t.length-1;let e="";for(let u=0;u<n;u++)e+=t.charAt(i(0,r));return e}function h(n,t,r){return Math.min(Math.max(n,t??-1/0),r??1/0)}function m(n){return null==n||0===n.length}function s(n){return null==n||0===n.trim().length}function g(n){return new Promise((t=>{setTimeout(t,n)}))}export{t as arrayEquals,l as asyncMap,h as clampNumber,o as getCurrencySymbol,u as groupBy,s as isStringBlank,m as isStringEmpty,n as objectEquals,i as random,f as randomPick,a as randomString,c as range,g as sleep,e as sortBy,r as unique};
//# sourceMappingURL=utils.js.map
