1
- import { y } from './chunk-4bd36a8f .js' ;
2
- import './chunk-ce0fbc82 .js' ;
3
- import { X } from './chunk-b4205b57 .js' ;
4
- import { p as process } from './chunk-2eac56ff .js' ;
5
- import { a as e$1 } from './chunk-4ccc3a29 .js' ;
1
+ import { y } from './chunk-tHuMsdT0 .js' ;
2
+ import './chunk-BZgdGiNw .js' ;
3
+ import { X } from './chunk-D04hy_Cu .js' ;
4
+ import { p as process } from './chunk-b0rmRow7 .js' ;
5
+ import { a as e$1 } from './chunk-C9hMJ5VR .js' ;
6
6
7
7
var exports$2$1 = { } ,
8
8
_dewExec$2$1 = false ;
@@ -2106,14 +2106,12 @@ function dew$g() {
2106
2106
const n = typeof min === "bigint" ? "n" : "" ;
2107
2107
let range ;
2108
2108
2109
- if ( byteLength > 3 ) {
2109
+ {
2110
2110
if ( min === 0 || min === BigInt ( 0 ) ) {
2111
2111
range = `>= 0${ n } and < 2${ n } ** ${ ( byteLength + 1 ) * 8 } ${ n } ` ;
2112
2112
} else {
2113
2113
range = `>= -(2${ n } ** ${ ( byteLength + 1 ) * 8 - 1 } ${ n } ) and < 2 ** ` + `${ ( byteLength + 1 ) * 8 - 1 } ${ n } ` ;
2114
2114
}
2115
- } else {
2116
- range = `>= ${ min } ${ n } and <= ${ max } ${ n } ` ;
2117
2115
}
2118
2116
2119
2117
throw new errors . ERR_OUT_OF_RANGE ( "value" , range , value ) ;
@@ -2131,14 +2129,14 @@ function dew$g() {
2131
2129
function boundsError ( value , length , type ) {
2132
2130
if ( Math . floor ( value ) !== value ) {
2133
2131
validateNumber ( value , type ) ;
2134
- throw new errors . ERR_OUT_OF_RANGE ( type || "offset" , "an integer" , value ) ;
2132
+ throw new errors . ERR_OUT_OF_RANGE ( "offset" , "an integer" , value ) ;
2135
2133
}
2136
2134
2137
2135
if ( length < 0 ) {
2138
2136
throw new errors . ERR_BUFFER_OUT_OF_BOUNDS ( ) ;
2139
2137
}
2140
2138
2141
- throw new errors . ERR_OUT_OF_RANGE ( type || "offset" , `>= ${ type ? 1 : 0 } and <= ${ length } ` , value ) ;
2139
+ throw new errors . ERR_OUT_OF_RANGE ( "offset" , `>= ${ 0 } and <= ${ length } ` , value ) ;
2142
2140
} // HELPER FUNCTIONS
2143
2141
// ================
2144
2142
@@ -2435,7 +2433,6 @@ function dew$d() {
2435
2433
2436
2434
function _createClass ( Constructor , protoProps , staticProps ) {
2437
2435
if ( protoProps ) _defineProperties ( Constructor . prototype , protoProps ) ;
2438
- if ( staticProps ) _defineProperties ( Constructor , staticProps ) ;
2439
2436
return Constructor ;
2440
2437
}
2441
2438
@@ -2801,7 +2798,7 @@ function dew$b() {
2801
2798
2802
2799
2803
2800
function startsWith ( str , search , pos ) {
2804
- return str . substr ( ! pos || pos < 0 ? 0 : + pos , search . length ) === search ;
2801
+ return str . substr ( 0 , search . length ) === search ;
2805
2802
} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
2806
2803
2807
2804
0 commit comments