es-toolkit 1.12.0 → 1.13.0-dev.292
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -5
- package/dist/array/chunk.mjs +1 -1
- package/dist/array/compact.mjs +1 -1
- package/dist/array/countBy.mjs +1 -1
- package/dist/array/difference.mjs +1 -1
- package/dist/array/differenceBy.mjs +1 -1
- package/dist/array/differenceWith.mjs +1 -1
- package/dist/array/drop.mjs +1 -1
- package/dist/array/dropRight.mjs +1 -1
- package/dist/array/dropRightWhile.mjs +1 -1
- package/dist/array/dropWhile.mjs +1 -1
- package/dist/array/fill.mjs +1 -1
- package/dist/array/flatMap.mjs +1 -1
- package/dist/array/flatten.mjs +1 -1
- package/dist/array/flattenDeep.mjs +1 -1
- package/dist/array/forEachRight.mjs +1 -1
- package/dist/array/groupBy.mjs +1 -1
- package/dist/array/head.mjs +1 -1
- package/dist/array/index.js.map +1 -1
- package/dist/array/index.mjs +14 -14
- package/dist/array/initial.mjs +1 -1
- package/dist/array/intersection.mjs +1 -1
- package/dist/array/intersectionBy.mjs +1 -1
- package/dist/array/intersectionWith.mjs +1 -1
- package/dist/array/keyBy.mjs +1 -1
- package/dist/array/last.mjs +1 -1
- package/dist/array/maxBy.mjs +1 -1
- package/dist/array/minBy.mjs +1 -1
- package/dist/array/orderBy.mjs +1 -1
- package/dist/array/partition.mjs +1 -1
- package/dist/array/sample.mjs +1 -1
- package/dist/array/sampleSize.mjs +1 -1
- package/dist/array/shuffle.mjs +1 -1
- package/dist/array/tail.d.mts +24 -0
- package/dist/array/tail.d.ts +24 -0
- package/dist/array/tail.js.map +1 -1
- package/dist/array/tail.mjs +2 -2
- package/dist/array/take.mjs +1 -1
- package/dist/array/takeRight.mjs +1 -1
- package/dist/array/takeRightWhile.mjs +1 -1
- package/dist/array/takeWhile.mjs +1 -1
- package/dist/array/toFilled.mjs +1 -1
- package/dist/array/union.mjs +1 -1
- package/dist/array/unionBy.mjs +1 -1
- package/dist/array/unionWith.mjs +1 -1
- package/dist/array/uniq.mjs +1 -1
- package/dist/array/uniqBy.mjs +1 -1
- package/dist/array/uniqWith.mjs +1 -1
- package/dist/array/unzip.mjs +1 -1
- package/dist/array/unzipWith.mjs +1 -1
- package/dist/array/without.mjs +1 -1
- package/dist/array/xor.mjs +1 -1
- package/dist/array/xorBy.mjs +1 -1
- package/dist/array/xorWith.mjs +1 -1
- package/dist/array/zip.mjs +1 -1
- package/dist/array/zipObject.mjs +1 -1
- package/dist/array/zipWith.mjs +1 -1
- package/dist/browser.d.mts +2 -0
- package/dist/browser.d.ts +2 -0
- package/dist/browser.js +1108 -0
- package/dist/browser.js.map +1 -0
- package/dist/browser.mjs +108 -0
- package/dist/browser.mjs.map +1 -0
- package/dist/{chunk-424M7IR7.mjs → chunk-24FKGR6U.mjs} +6 -1
- package/dist/chunk-27QMXBLJ.mjs +9 -0
- package/dist/chunk-27QMXBLJ.mjs.map +1 -0
- package/dist/chunk-54TK5BIS.mjs +1 -0
- package/dist/chunk-B645AYL4.mjs +1 -0
- package/dist/{chunk-J3GE7DEU.mjs → chunk-CVVZHOJX.mjs} +2 -2
- package/dist/{chunk-XWPCDIFC.mjs → chunk-IIDZ3KAJ.mjs} +3 -3
- package/dist/chunk-MIGAC7F4.mjs +25 -0
- package/dist/chunk-MIGAC7F4.mjs.map +1 -0
- package/dist/chunk-SPKLWVNJ.mjs +373 -0
- package/dist/chunk-SPKLWVNJ.mjs.map +1 -0
- package/dist/{chunk-OF6NM4G7.mjs → chunk-TJ4Z5I7M.mjs} +1 -1
- package/dist/{chunk-OF6NM4G7.mjs.map → chunk-TJ4Z5I7M.mjs.map} +1 -1
- package/dist/{chunk-U7V3G7CR.mjs → chunk-WFZXCGEG.mjs} +2 -2
- package/dist/chunk-XGQWTHW6.mjs +34 -0
- package/dist/chunk-XGQWTHW6.mjs.map +1 -0
- package/dist/compat/index.d.mts +59 -3
- package/dist/compat/index.d.ts +59 -3
- package/dist/compat/index.js +105 -1
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +105 -51
- package/dist/compat/index.mjs.map +1 -1
- package/dist/error/AbortError.mjs +1 -1
- package/dist/error/TimeoutError.mjs +1 -1
- package/dist/error/index.mjs +1 -1
- package/dist/function/debounce.mjs +1 -1
- package/dist/function/index.mjs +4 -4
- package/dist/function/negate.mjs +1 -1
- package/dist/function/noop.mjs +1 -1
- package/dist/function/once.mjs +1 -1
- package/dist/function/throttle.mjs +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -50
- package/dist/math/clamp.mjs +1 -1
- package/dist/math/inRange.mjs +1 -1
- package/dist/math/index.mjs +7 -7
- package/dist/math/mean.mjs +1 -1
- package/dist/math/meanBy.mjs +1 -1
- package/dist/math/random.mjs +1 -1
- package/dist/math/randomInt.mjs +1 -1
- package/dist/math/range.mjs +1 -1
- package/dist/math/round.mjs +1 -1
- package/dist/math/sum.mjs +1 -1
- package/dist/math/sumBy.mjs +1 -1
- package/dist/object/clone.mjs +1 -1
- package/dist/object/flattenObject.d.mts +28 -0
- package/dist/object/flattenObject.d.ts +28 -0
- package/dist/object/flattenObject.js +77 -0
- package/dist/object/flattenObject.js.map +1 -0
- package/dist/object/flattenObject.mjs +9 -0
- package/dist/object/index.d.mts +1 -0
- package/dist/object/index.d.ts +1 -0
- package/dist/object/index.js +49 -0
- package/dist/object/index.js.map +1 -1
- package/dist/object/index.mjs +14 -9
- package/dist/object/invert.mjs +1 -1
- package/dist/object/omit.mjs +2 -2
- package/dist/object/omitBy.mjs +1 -1
- package/dist/object/pick.mjs +1 -1
- package/dist/object/pickBy.mjs +1 -1
- package/dist/predicate/index.d.mts +2 -0
- package/dist/predicate/index.d.ts +2 -0
- package/dist/predicate/index.js +30 -0
- package/dist/predicate/index.js.map +1 -1
- package/dist/predicate/index.mjs +15 -7
- package/dist/predicate/isEqual.mjs +1 -1
- package/dist/predicate/isLength.d.mts +3 -0
- package/dist/predicate/isLength.d.ts +3 -0
- package/dist/predicate/isLength.js +33 -0
- package/dist/predicate/isLength.js.map +1 -0
- package/dist/predicate/isLength.mjs +8 -0
- package/dist/predicate/isLength.mjs.map +1 -0
- package/dist/predicate/isNil.mjs +1 -1
- package/dist/predicate/isNotNil.mjs +1 -1
- package/dist/predicate/isNull.mjs +1 -1
- package/dist/predicate/isPlainObject.d.mts +16 -0
- package/dist/predicate/isPlainObject.d.ts +16 -0
- package/dist/predicate/isPlainObject.js +49 -0
- package/dist/predicate/isPlainObject.js.map +1 -0
- package/dist/predicate/isPlainObject.mjs +8 -0
- package/dist/predicate/isPlainObject.mjs.map +1 -0
- package/dist/predicate/isUndefined.mjs +1 -1
- package/dist/promise/delay.mjs +1 -1
- package/dist/promise/index.mjs +3 -3
- package/dist/promise/timeout.mjs +2 -2
- package/dist/promise/withTimeout.mjs +3 -3
- package/dist/string/camelCase.mjs +1 -1
- package/dist/string/capitalize.mjs +1 -1
- package/dist/string/index.mjs +7 -7
- package/dist/string/kebabCase.mjs +1 -1
- package/dist/string/lowerCase.mjs +1 -1
- package/dist/string/snakeCase.mjs +1 -1
- package/dist/string/startCase.mjs +1 -1
- package/package.json +3 -1
- package/umd/browser.global.js +2 -0
- package/dist/chunk-ASJF5D6C.mjs +0 -1
- package/dist/chunk-NKLIE2OI.mjs +0 -1
- package/dist/chunk-OSOLEQLZ.mjs +0 -1
- /package/dist/{chunk-424M7IR7.mjs.map → chunk-24FKGR6U.mjs.map} +0 -0
- /package/dist/{chunk-ASJF5D6C.mjs.map → chunk-54TK5BIS.mjs.map} +0 -0
- /package/dist/{chunk-NKLIE2OI.mjs.map → chunk-B645AYL4.mjs.map} +0 -0
- /package/dist/{chunk-J3GE7DEU.mjs.map → chunk-CVVZHOJX.mjs.map} +0 -0
- /package/dist/{chunk-XWPCDIFC.mjs.map → chunk-IIDZ3KAJ.mjs.map} +0 -0
- /package/dist/{chunk-U7V3G7CR.mjs.map → chunk-WFZXCGEG.mjs.map} +0 -0
- /package/dist/{chunk-OSOLEQLZ.mjs.map → object/flattenObject.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.13.0-dev.292+b19773d0",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
"main": "./dist/index.js",
|
|
117
117
|
"module": "./dist/index.mjs",
|
|
118
118
|
"types": "./dist/index.d.ts",
|
|
119
|
+
"browser": "./umd/browser.global.js",
|
|
119
120
|
"exports": {
|
|
120
121
|
".": {
|
|
121
122
|
"import": {
|
|
@@ -242,6 +243,7 @@
|
|
|
242
243
|
"format": "prettier --write ."
|
|
243
244
|
},
|
|
244
245
|
"main": "./dist/index.js",
|
|
246
|
+
"browser": "./umd/browser.global.js",
|
|
245
247
|
"module": "./dist/index.mjs",
|
|
246
248
|
"types": "./dist/index.d.ts"
|
|
247
249
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(()=>{var N=Object.defineProperty;var I=Object.getOwnPropertySymbols;var tr=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable;var z=(e,r,t)=>r in e?N(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,V=(e,r)=>{for(var t in r||(r={}))tr.call(r,t)&&z(e,t,r[t]);if(I)for(var t of I(r))nr.call(r,t)&&z(e,t,r[t]);return e};var or=(e,r)=>{for(var t in r)N(e,t,{get:r[t],enumerable:!0})};var y=(e,r,t)=>new Promise((n,o)=>{var i=f=>{try{a(t.next(f))}catch(x){o(x)}},u=f=>{try{a(t.throw(f))}catch(x){o(x)}},a=f=>f.done?n(f.value):Promise.resolve(f.value).then(i,u);a((t=t.apply(e,r)).next())});var M={};or(M,{AbortError:()=>m,TimeoutError:()=>p,camelCase:()=>Je,capitalize:()=>K,chunk:()=>j,clamp:()=>Fe,clone:()=>De,compact:()=>D,countBy:()=>C,debounce:()=>Re,delay:()=>E,difference:()=>d,differenceBy:()=>h,differenceWith:()=>b,drop:()=>L,dropRight:()=>q,dropRightWhile:()=>_,dropWhile:()=>$,fill:()=>Z,flatMap:()=>G,flatten:()=>s,flattenDeep:()=>H,flattenObject:()=>Ce,forEachRight:()=>X,groupBy:()=>J,head:()=>ge,inRange:()=>Ee,initial:()=>Ae,intersection:()=>g,intersectionBy:()=>w,intersectionWith:()=>U,invert:()=>je,isEqual:()=>B,isLength:()=>Ge,isNil:()=>qe,isNotNil:()=>_e,isNull:()=>$e,isPlainObject:()=>F,isUndefined:()=>Ze,kebabCase:()=>Ye,keyBy:()=>Q,last:()=>ke,lowerCase:()=>er,maxBy:()=>Y,mean:()=>P,meanBy:()=>Ke,minBy:()=>ee,negate:()=>Pe,noop:()=>ve,omit:()=>Ie,omitBy:()=>ze,once:()=>We,orderBy:()=>re,partition:()=>te,pick:()=>Ne,pickBy:()=>Ve,random:()=>k,randomInt:()=>A,range:()=>Se,round:()=>Be,sample:()=>ne,sampleSize:()=>oe,shuffle:()=>ie,snakeCase:()=>Qe,startCase:()=>rr,sum:()=>T,sumBy:()=>Me,tail:()=>we,take:()=>ue,takeRight:()=>ae,takeRightWhile:()=>fe,takeWhile:()=>le,throttle:()=>Oe,toFilled:()=>Ue,union:()=>c,unionBy:()=>v,unionWith:()=>O,uniq:()=>R,uniqBy:()=>se,uniqWith:()=>W,unzip:()=>ce,unzipWith:()=>me,withTimeout:()=>Xe,without:()=>be,xor:()=>pe,xorBy:()=>Te,xorWith:()=>xe,zip:()=>ye,zipObject:()=>de,zipWith:()=>he});function j(e,r){if(!Number.isInteger(r)||r<=0)throw new Error("Size must be an integer greater than zero.");let t=Math.ceil(e.length/r),n=Array(t);for(let o=0;o<t;o++){let i=o*r,u=i+r;n[o]=e.slice(i,u)}return n}function D(e){let r=[];for(let t of e)t&&r.push(t);return r}function C(e,r){var n;let t={};for(let o of e){let i=r(o);t[i]=((n=t[i])!=null?n:0)+1}return t}function d(e,r){let t=new Set(r);return e.filter(n=>!t.has(n))}function h(e,r,t){let n=new Set(r.map(o=>t(o)));return e.filter(o=>!n.has(t(o)))}function b(e,r,t){return e.filter(n=>r.every(o=>!t(n,o)))}function L(e,r){return r=Math.max(r,0),e.slice(r)}function q(e,r){return r=Math.min(-r,0),r===0?e.slice():e.slice(0,r)}function _(e,r){for(let t=e.length-1;t>=0;t--)if(!r(e[t]))return e.slice(0,t+1);return[]}function $(e,r){let t=e.findIndex(n=>!r(n));return t===-1?[]:e.slice(t)}function Z(e,r,t=0,n=e.length){let o=e.length,i=Math.max(t>=0?t:o+t,0),u=Math.min(n>=0?n:o+n,o);for(let a=i;a<u;a++)e[a]=r;return e}function s(e,r=1){let t=[],n=Math.floor(r),o=(i,u)=>{for(let a of i)Array.isArray(a)&&u<n?o(a,u+1):t.push(a)};return o(e,0),t}function G(e,r,t=1){return s(e.map(n=>r(n)),t)}function H(e){return s(e,1/0)}function X(e,r){for(let t=e.length-1;t>=0;t--){let n=e[t];r(n,t,e)}}function J(e,r){let t={};for(let n of e){let o=r(n);t[o]==null&&(t[o]=[]),t[o].push(n)}return t}function g(e,r){let t=new Set(r);return e.filter(n=>t.has(n))}function w(e,r,t){let n=new Set(r.map(t));return e.filter(o=>n.has(t(o)))}function U(e,r,t){return e.filter(n=>r.some(o=>t(n,o)))}function Q(e,r){let t={};for(let n of e){let o=r(n);t[o]=n}return t}function Y(e,r){let t=e[0],n=-1/0;for(let o of e){let i=r(o);i>n&&(n=i,t=o)}return t}function ee(e,r){let t=e[0],n=1/0;for(let o of e){let i=r(o);i<n&&(n=i,t=o)}return t}function re(e,r,t){let n=(i,u,a)=>i<u?a==="asc"?-1:1:i>u?a==="asc"?1:-1:0,o=r.map((i,u)=>t[u]||t[t.length-1]);return e.slice().sort((i,u)=>{for(let a=0;a<r.length;a++){let f=r[a],x=o[a],S=n(i[f],u[f],x);if(S!==0)return S}return 0})}function te(e,r){let t=[],n=[];for(let o of e)r(o)?t.push(o):n.push(o);return[t,n]}function ne(e){let r=Math.floor(Math.random()*e.length);return e[r]}function k(e,r){if(r==null&&(r=e,e=0),e>=r)throw new Error("Invalid input: The maximum value must be greater than the minimum value.");return Math.random()*(r-e)+e}function A(e,r){return Math.floor(k(e,r))}function oe(e,r){if(r>e.length)throw new Error("Size must be less than or equal to the length of array.");let t=new Array(r),n=new Set;for(let o=e.length-r,i=0;o<e.length;o++,i++){let u=A(0,o+1);n.has(u)&&(u=o),n.add(u),t[i]=e[u]}return t}function ie(e){let r=e.slice();for(let t=r.length-1;t>=1;t--){let n=Math.floor(Math.random()*(t+1));[r[t],r[n]]=[r[n],r[t]]}return r}function ue(e,r){return e.slice(0,r)}function ae(e,r){return r===0?[]:e.slice(-r)}function fe(e,r){for(let t=e.length-1;t>=0;t--)if(!r(e[t]))return e.slice(t+1);return e.slice()}function le(e,r){let t=[];for(let n of e){if(!r(n))break;t.push(n)}return t}function R(e){return Array.from(new Set(e))}function c(e,r){return R(e.concat(r))}function v(e,r,t){let n=new Map;for(let o of[...e,...r]){let i=t(o);n.has(i)||n.set(i,o)}return Array.from(n.values())}function W(e,r){let t=[];for(let n of e)t.every(i=>!r(i,n))&&t.push(n);return t}function O(e,r,t){return W(e.concat(r),t)}function se(e,r){let t=new Map;for(let n of e){let o=r(n);t.has(o)||t.set(o,n)}return Array.from(t.values())}function ce(e){let r=0;for(let n=0;n<e.length;n++)e[n].length>r&&(r=e[n].length);let t=new Array(r);for(let n=0;n<r;n++){t[n]=new Array(e.length);for(let o=0;o<e.length;o++)t[n][o]=e[o][n]}return t}function me(e,r){let t=Math.max(...e.map(o=>o.length)),n=new Array(t);for(let o=0;o<t;o++){let i=new Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u][o];n[o]=r(...i)}return n}function pe(e,r){return d(c(e,r),g(e,r))}function Te(e,r,t){let n=v(e,r,t),o=w(e,r,t);return h(n,o,t)}function xe(e,r,t){let n=O(e,r,t),o=U(e,r,t);return b(n,o,t)}function ye(...e){let r=[],t=Math.max(...e.map(n=>n.length));for(let n=0;n<t;n++){let o=[];for(let i of e)o.push(i[n]);r.push(o)}return r}function de(e,r){let t={};for(let n=0;n<e.length;n++)t[e[n]]=r[n];return t}function he(e,...r){let t=[e,...r.slice(0,-1)],n=r[r.length-1],o=[],i=Math.max(...t.map(u=>u.length));for(let u=0;u<i;u++){let a=t.map(f=>f[u]);o.push(n(...a))}return o}function be(e,...r){let t=new Set(r);return e.filter(n=>!t.has(n))}function ge(e){return e[0]}function we(e){let r=e.length;if(r<=1)return[];let t=new Array(r-1);for(let n=1;n<r;n++)t[n-1]=e[n];return t}function Ue(e,r,t=0,n=e.length){let o=e.length,i=Math.max(t>=0?t:o+t,0),u=Math.min(n>=0?n:o+n,o),a=e.slice();for(let f=i;f<u;f++)a[f]=r;return a}function ke(e){return e[e.length-1]}function Ae(e){return e.length<=1?[]:e.slice(0,-1)}var m=class extends Error{constructor(r="The operation was aborted"){super(r),this.name="AbortError"}};var p=class extends Error{constructor(r="The operation was timed out"){super(r),this.name="TimeoutError"}};function Re(e,r,{signal:t}={}){let n=null,o=function(...u){n!==null&&clearTimeout(n),!(t!=null&&t.aborted)&&(n=setTimeout(()=>{e(...u),n=null},r))},i=function(){o.cancel()};return o.cancel=function(){n!==null&&(clearTimeout(n),n=null)},t==null||t.addEventListener("abort",i,{once:!0}),o}function ve(){}function We(e){let r=!1,t;return function(){if(r)return t;let n=e();return r=!0,t=n,n}}function Oe(e,r){let t;return function(...o){let i=Date.now();(t==null||i-t>=r)&&(t=i,e(...o))}}function Pe(e){return(...r)=>!e(...r)}function Fe(e,r,t){return t==null?Math.min(e,r):Math.min(Math.max(e,r),t)}function Ee(e,r,t){if(t==null&&(t=r,r=0),r>=t)throw new Error("The maximum value must be greater than the minimum value.");return r<=e&&e<t}function T(e){let r=0;for(let t=0;t<e.length;t++)r+=e[t];return r}function P(e){return T(e)/e.length}function Ke(e,r){let t=e.map(n=>r(n));return P(t)}function Be(e,r=0){if(!Number.isInteger(r))throw new Error("Precision must be an integer.");let t=Math.pow(10,r);return Math.round(e*t)/t}function Me(e,r){let t=e.map(n=>r(n));return T(t)}function Se(e,r,t){if(r==null&&(r=e,e=0),t==null&&(t=1),!Number.isInteger(t)||t===0)throw new Error("The step value must be a non-zero integer.");let n=Math.max(Math.ceil((r-e)/t),0),o=new Array(n);for(let i=0;i<n;i++)o[i]=e+i*t;return o}function Ie(e,r){let t=V({},e);for(let n of r)delete t[n];return t}function ze(e,r){let t={};for(let[n,o]of Object.entries(e))r(o,n)||(t[n]=o);return t}function Ne(e,r){let t={};for(let n of r)t[n]=e[n];return t}function Ve(e,r){let t={};for(let[n,o]of Object.entries(e))r(o,n)&&(t[n]=o);return t}function je(e){let r={},t=Object.keys(e);for(let n=0;n<t.length;n++){let o=t[n],i=e[o];r[i]=o}return r}function De(e){if(ir(e))return e;if(Array.isArray(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){let r=new Map;for(let[t,n]of e)r.set(t,n);return r}if(e instanceof Set){let r=new Set;for(let t of e)r.add(t);return r}return typeof e=="object"?Object.assign({},e):e}function ir(e){return e==null||typeof e!="object"&&typeof e!="function"}function F(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function Ce(e){return Le(e)}function Le(e,r=""){let t={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],u=e[i],a=r?`${r}.${i}`:i;if(F(u)&&Object.keys(u).length>0){Object.assign(t,Le(u,a));continue}if(Array.isArray(u)){for(let f=0;f<u.length;f++)t[`${a}.${f}`]=u[f];continue}t[a]=u}return t}function B(e,r){if(Object.is(e,r))return!0;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp&&r instanceof RegExp)return e.source===r.source&&e.flags===r.flags;if(typeof e!="object"||typeof r!="object"||e===null||r===null)return!1;let t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length||c(t,n).length!==t.length)return!1;for(let o=0;o<t.length;o++){let i=t[o],u=e[i],a=r[i];if(!B(u,a))return!1}return!0}function qe(e){return e==null}function _e(e){return e!=null}function $e(e){return e===null}function Ze(e){return e===void 0}function Ge(e){return typeof e=="number"&&e>-1&&e%1===0&&e<=Number.MAX_SAFE_INTEGER}function E(e,{signal:r}={}){return new Promise((t,n)=>{let o=()=>{n(new m)},i=()=>{clearTimeout(u),o()};if(r!=null&&r.aborted)return o();let u=setTimeout(t,e);r==null||r.addEventListener("abort",i,{once:!0})})}function He(e){return y(this,null,function*(){throw yield E(e),new p})}function Xe(e,r){return y(this,null,function*(){return Promise.race([e(),He(r)])})}var K=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var ur=/[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])/g;function l(e){var r;return Array.from((r=e.match(ur))!=null?r:[])}function Je(e){let r=l(e);if(r.length===0)return"";let[t,...n]=r;return`${t.toLowerCase()}${n.map(o=>K(o)).join("")}`}var Qe=e=>l(e).map(t=>t.toLowerCase()).join("_");var Ye=e=>l(e).map(t=>t.toLowerCase()).join("-");var er=e=>l(e).map(t=>t.toLowerCase()).join(" ");function rr(e){let r=l(e.trim()),t="";for(let n of r)t&&(t+=" "),n===n.toUpperCase()?t+=n:t+=n[0].toUpperCase()+n.slice(1).toLowerCase();return t}window._=M;})();
|
|
2
|
+
//# sourceMappingURL=browser.global.js.map
|
package/dist/chunk-ASJF5D6C.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-ASJF5D6C.mjs.map
|
package/dist/chunk-NKLIE2OI.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-NKLIE2OI.mjs.map
|
package/dist/chunk-OSOLEQLZ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-OSOLEQLZ.mjs.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|