@ -130,9 +130,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ) ;
} ;
} ;
var _ _importDefault = ( this && this . _ _importDefault ) || function ( mod ) {
return ( mod && mod . _ _esModule ) ? mod : { "default" : mod } ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . createAuthHelper = void 0 ;
exports . createAuthHelper = void 0 ;
const assert = _ _importStar ( _ _nccwpck _require _ _ ( 9491 ) ) ;
const assert = _ _importStar ( _ _nccwpck _require _ _ ( 9491 ) ) ;
@ -145,7 +142,7 @@ const path = __importStar(__nccwpck_require__(1017));
const regexpHelper = _ _importStar ( _ _nccwpck _require _ _ ( 3120 ) ) ;
const regexpHelper = _ _importStar ( _ _nccwpck _require _ _ ( 3120 ) ) ;
const stateHelper = _ _importStar ( _ _nccwpck _require _ _ ( 8647 ) ) ;
const stateHelper = _ _importStar ( _ _nccwpck _require _ _ ( 8647 ) ) ;
const urlHelper = _ _importStar ( _ _nccwpck _require _ _ ( 9437 ) ) ;
const urlHelper = _ _importStar ( _ _nccwpck _require _ _ ( 9437 ) ) ;
const v4_1 = _ _importDefault ( _ _nccwpck _require _ _ ( 824 ) ) ;
const uuid_1 = _ _nccwpck _require _ _ ( 5840 ) ;
const IS _WINDOWS = process . platform === 'win32' ;
const IS _WINDOWS = process . platform === 'win32' ;
const SSH _COMMAND _KEY = 'core.sshCommand' ;
const SSH _COMMAND _KEY = 'core.sshCommand' ;
function createAuthHelper ( git , settings ) {
function createAuthHelper ( git , settings ) {
@ -194,7 +191,7 @@ class GitAuthHelper {
// Create a temp home directory
// Create a temp home directory
const runnerTemp = process . env [ 'RUNNER_TEMP' ] || '' ;
const runnerTemp = process . env [ 'RUNNER_TEMP' ] || '' ;
assert . ok ( runnerTemp , 'RUNNER_TEMP is not defined' ) ;
assert . ok ( runnerTemp , 'RUNNER_TEMP is not defined' ) ;
const uniqueId = ( 0 , v4_1 . default ) ( ) ;
const uniqueId = ( 0 , uuid_1 . v4 ) ( ) ;
this . temporaryHomePath = path . join ( runnerTemp , uniqueId ) ;
this . temporaryHomePath = path . join ( runnerTemp , uniqueId ) ;
yield fs . promises . mkdir ( this . temporaryHomePath , { recursive : true } ) ;
yield fs . promises . mkdir ( this . temporaryHomePath , { recursive : true } ) ;
// Copy the global git config
// Copy the global git config
@ -301,7 +298,7 @@ class GitAuthHelper {
// Write key
// Write key
const runnerTemp = process . env [ 'RUNNER_TEMP' ] || '' ;
const runnerTemp = process . env [ 'RUNNER_TEMP' ] || '' ;
assert . ok ( runnerTemp , 'RUNNER_TEMP is not defined' ) ;
assert . ok ( runnerTemp , 'RUNNER_TEMP is not defined' ) ;
const uniqueId = ( 0 , v4_1 . default ) ( ) ;
const uniqueId = ( 0 , uuid_1 . v4 ) ( ) ;
this . sshKeyPath = path . join ( runnerTemp , uniqueId ) ;
this . sshKeyPath = path . join ( runnerTemp , uniqueId ) ;
stateHelper . setSshKeyPath ( this . sshKeyPath ) ;
stateHelper . setSshKeyPath ( this . sshKeyPath ) ;
yield fs . promises . mkdir ( runnerTemp , { recursive : true } ) ;
yield fs . promises . mkdir ( runnerTemp , { recursive : true } ) ;
@ -1439,9 +1436,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ) ;
} ;
} ;
var _ _importDefault = ( this && this . _ _importDefault ) || function ( mod ) {
return ( mod && mod . _ _esModule ) ? mod : { "default" : mod } ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getDefaultBranch = exports . downloadRepository = void 0 ;
exports . getDefaultBranch = exports . downloadRepository = void 0 ;
const assert = _ _importStar ( _ _nccwpck _require _ _ ( 9491 ) ) ;
const assert = _ _importStar ( _ _nccwpck _require _ _ ( 9491 ) ) ;
@ -1451,7 +1445,7 @@ const io = __importStar(__nccwpck_require__(7436));
const path = _ _importStar ( _ _nccwpck _require _ _ ( 1017 ) ) ;
const path = _ _importStar ( _ _nccwpck _require _ _ ( 1017 ) ) ;
const retryHelper = _ _importStar ( _ _nccwpck _require _ _ ( 2155 ) ) ;
const retryHelper = _ _importStar ( _ _nccwpck _require _ _ ( 2155 ) ) ;
const toolCache = _ _importStar ( _ _nccwpck _require _ _ ( 7784 ) ) ;
const toolCache = _ _importStar ( _ _nccwpck _require _ _ ( 7784 ) ) ;
const v4_1 = _ _importDefault ( _ _nccwpck _require _ _ ( 824 ) ) ;
const uuid_1 = _ _nccwpck _require _ _ ( 5840 ) ;
const octokit _provider _1 = _ _nccwpck _require _ _ ( 8967 ) ;
const octokit _provider _1 = _ _nccwpck _require _ _ ( 8967 ) ;
const IS _WINDOWS = process . platform === 'win32' ;
const IS _WINDOWS = process . platform === 'win32' ;
function downloadRepository ( authToken , owner , repo , ref , commit , repositoryPath , baseUrl ) {
function downloadRepository ( authToken , owner , repo , ref , commit , repositoryPath , baseUrl ) {
@ -1468,7 +1462,7 @@ function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath,
} ) ) ;
} ) ) ;
// Write archive to disk
// Write archive to disk
core . info ( 'Writing archive to disk' ) ;
core . info ( 'Writing archive to disk' ) ;
const uniqueId = ( 0 , v4_1 . default ) ( ) ;
const uniqueId = ( 0 , uuid_1 . v4 ) ( ) ;
const archivePath = path . join ( repositoryPath , ` ${ uniqueId } .tar.gz ` ) ;
const archivePath = path . join ( repositoryPath , ` ${ uniqueId } .tar.gz ` ) ;
yield fs . promises . writeFile ( archivePath , archiveData ) ;
yield fs . promises . writeFile ( archivePath , archiveData ) ;
archiveData = Buffer . from ( '' ) ; // Free memory
archiveData = Buffer . from ( '' ) ; // Free memory
@ -7035,7 +7029,7 @@ const os = __nccwpck_require__(2037);
const path = _ _nccwpck _require _ _ ( 1017 ) ;
const path = _ _nccwpck _require _ _ ( 1017 ) ;
const httpm = _ _nccwpck _require _ _ ( 5538 ) ;
const httpm = _ _nccwpck _require _ _ ( 5538 ) ;
const semver = _ _nccwpck _require _ _ ( 562 ) ;
const semver = _ _nccwpck _require _ _ ( 562 ) ;
const uuidV4 = _ _nccwpck _require _ _ ( 824 ) ;
const uuidV4 = _ _nccwpck _require _ _ ( 746 8) ;
const exec _1 = _ _nccwpck _require _ _ ( 1514 ) ;
const exec _1 = _ _nccwpck _require _ _ ( 1514 ) ;
const assert _1 = _ _nccwpck _require _ _ ( 9491 ) ;
const assert _1 = _ _nccwpck _require _ _ ( 9491 ) ;
class HTTPError extends Error {
class HTTPError extends Error {
@ -9059,6 +9053,90 @@ function coerce (version, options) {
}
}
/***/ } ) ,
/***/ 7701 :
/***/ ( ( module ) => {
/ * *
* Convert array of 16 byte values to UUID string format of the form :
* XXXXXXXX - XXXX - XXXX - XXXX - XXXXXXXXXXXX
* /
var byteToHex = [ ] ;
for ( var i = 0 ; i < 256 ; ++ i ) {
byteToHex [ i ] = ( i + 0x100 ) . toString ( 16 ) . substr ( 1 ) ;
}
function bytesToUuid ( buf , offset ) {
var i = offset || 0 ;
var bth = byteToHex ;
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
return ( [
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ]
] ) . join ( '' ) ;
}
module . exports = bytesToUuid ;
/***/ } ) ,
/***/ 7269 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
// Unique ID creation requires a high quality random # generator. In node.js
// this is pretty straight-forward - we use the crypto API.
var crypto = _ _nccwpck _require _ _ ( 6113 ) ;
module . exports = function nodeRNG ( ) {
return crypto . randomBytes ( 16 ) ;
} ;
/***/ } ) ,
/***/ 7468 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
var rng = _ _nccwpck _require _ _ ( 7269 ) ;
var bytesToUuid = _ _nccwpck _require _ _ ( 7701 ) ;
function v4 ( options , buf , offset ) {
var i = buf && offset || 0 ;
if ( typeof ( options ) == 'string' ) {
buf = options === 'binary' ? new Array ( 16 ) : null ;
options = null ;
}
options = options || { } ;
var rnds = options . random || ( options . rng || rng ) ( ) ;
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
rnds [ 6 ] = ( rnds [ 6 ] & 0x0f ) | 0x40 ;
rnds [ 8 ] = ( rnds [ 8 ] & 0x3f ) | 0x80 ;
// Copy bytes to buffer, if provided
if ( buf ) {
for ( var ii = 0 ; ii < 16 ; ++ ii ) {
buf [ i + ii ] = rnds [ ii ] ;
}
}
return buf || bytesToUuid ( rnds ) ;
}
module . exports = v4 ;
/***/ } ) ,
/***/ } ) ,
/***/ 334 :
/***/ 334 :
@ -37909,86 +37987,456 @@ exports.getUserAgent = getUserAgent;
/***/ } ) ,
/***/ } ) ,
/***/ 2707 :
/***/ 5971 :
/***/ ( ( module ) => {
/***/ ( ( module , exports ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports [ "default" ] = void 0 ;
/ * *
/ * *
* Convert array of 16 byte values to UUID string format of the form :
* Convert array of 16 byte values to UUID string format of the form :
* XXXXXXXX - XXXX - XXXX - XXXX - XXXXXXXXXXXX
* XXXXXXXX - XXXX - XXXX - XXXX - XXXXXXXXXXXX
* /
* /
var byteToHex = [ ] ;
var byteToHex = [ ] ;
for ( var i = 0 ; i < 256 ; ++ i ) {
for ( var i = 0 ; i < 256 ; ++ i ) {
byteToHex [ i ] = ( i + 0x100 ) . toString ( 16 ) . substr ( 1 ) ;
byteToHex [ i ] = ( i + 0x100 ) . toString ( 16 ) . substr ( 1 ) ;
}
}
function bytesToUuid ( buf , offset ) {
function bytesToUuid ( buf , offset ) {
var i = offset || 0 ;
var i = offset || 0 ;
var bth = byteToHex ;
var bth = byteToHex ; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
return ( [ bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] ,
return [ bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] ] . join ( '' ) ;
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] , '-' ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] ,
bth [ buf [ i ++ ] ] , bth [ buf [ i ++ ] ] ] ) . join ( '' ) ;
}
}
module . exports = bytesToUuid ;
var _default = bytesToUuid ;
exports [ "default" ] = _default ;
module . exports = exports . default ;
/***/ } ) ,
/***/ 5840 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
Object . defineProperty ( exports , "v1" , ( {
enumerable : true ,
get : function ( ) {
return _v . default ;
}
} ) ) ;
Object . defineProperty ( exports , "v3" , ( {
enumerable : true ,
get : function ( ) {
return _v2 . default ;
}
} ) ) ;
Object . defineProperty ( exports , "v4" , ( {
enumerable : true ,
get : function ( ) {
return _v3 . default ;
}
} ) ) ;
Object . defineProperty ( exports , "v5" , ( {
enumerable : true ,
get : function ( ) {
return _v4 . default ;
}
} ) ) ;
var _v = _interopRequireDefault ( _ _nccwpck _require _ _ ( 8628 ) ) ;
var _v2 = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6409 ) ) ;
var _v3 = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5122 ) ) ;
var _v4 = _interopRequireDefault ( _ _nccwpck _require _ _ ( 9120 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
/***/ } ) ,
/***/ } ) ,
/***/ 5859 :
/***/ 456 9:
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
/***/ ( ( module , exports, _ _nccwpck _require _ _ ) => {
// Unique ID creation requires a high quality random # generator. In node.js
"use strict" ;
// this is pretty straight-forward - we use the crypto API.
var crypto = _ _nccwpck _require _ _ ( 6113 ) ;
module . exports = function nodeRNG ( ) {
Object . defineProperty ( exports , "__esModule" , ( {
return crypto . randomBytes ( 16 ) ;
value : true
} ;
} ) ) ;
exports [ "default" ] = void 0 ;
var _crypto = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6113 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
function md5 ( bytes ) {
if ( Array . isArray ( bytes ) ) {
bytes = Buffer . from ( bytes ) ;
} else if ( typeof bytes === 'string' ) {
bytes = Buffer . from ( bytes , 'utf8' ) ;
}
return _crypto . default . createHash ( 'md5' ) . update ( bytes ) . digest ( ) ;
}
var _default = md5 ;
exports [ "default" ] = _default ;
module . exports = exports . default ;
/***/ } ) ,
/***/ } ) ,
/***/ 824 :
/***/ 807 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
/***/ ( ( module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports [ "default" ] = rng ;
var _crypto = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6113 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
function rng ( ) {
return _crypto . default . randomBytes ( 16 ) ;
}
module . exports = exports . default ;
/***/ } ) ,
/***/ 5274 :
/***/ ( ( module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports [ "default" ] = void 0 ;
var _crypto = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6113 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
function sha1 ( bytes ) {
if ( Array . isArray ( bytes ) ) {
bytes = Buffer . from ( bytes ) ;
} else if ( typeof bytes === 'string' ) {
bytes = Buffer . from ( bytes , 'utf8' ) ;
}
return _crypto . default . createHash ( 'sha1' ) . update ( bytes ) . digest ( ) ;
}
var _default = sha1 ;
exports [ "default" ] = _default ;
module . exports = exports . default ;
/***/ } ) ,
/***/ 8628 :
/***/ ( ( module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
var rng = _ _nccwpck _require _ _ ( 5859 ) ;
Object . defineProperty ( exports , "__esModule" , ( {
var bytesToUuid = _ _nccwpck _require _ _ ( 2707 ) ;
value : true
} ) ) ;
exports [ "default" ] = void 0 ;
var _rng = _interopRequireDefault ( _ _nccwpck _require _ _ ( 807 ) ) ;
var _bytesToUuid = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5971 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
// **`v1()` - Generate time-based UUID**
//
// Inspired by https://github.com/LiosK/UUID.js
// and http://docs.python.org/library/uuid.html
var _nodeId ;
var _clockseq ; // Previous uuid creation time
var _lastMSecs = 0 ;
var _lastNSecs = 0 ; // See https://github.com/uuidjs/uuid for API details
function v1 ( options , buf , offset ) {
var i = buf && offset || 0 ;
var b = buf || [ ] ;
options = options || { } ;
var node = options . node || _nodeId ;
var clockseq = options . clockseq !== undefined ? options . clockseq : _clockseq ; // node and clockseq need to be initialized to random values if they're not
// specified. We do this lazily to minimize issues related to insufficient
// system entropy. See #189
if ( node == null || clockseq == null ) {
var seedBytes = options . random || ( options . rng || _rng . default ) ( ) ;
if ( node == null ) {
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
node = _nodeId = [ seedBytes [ 0 ] | 0x01 , seedBytes [ 1 ] , seedBytes [ 2 ] , seedBytes [ 3 ] , seedBytes [ 4 ] , seedBytes [ 5 ] ] ;
}
if ( clockseq == null ) {
// Per 4.2.2, randomize (14 bit) clockseq
clockseq = _clockseq = ( seedBytes [ 6 ] << 8 | seedBytes [ 7 ] ) & 0x3fff ;
}
} // UUID timestamps are 100 nano-second units since the Gregorian epoch,
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
var msecs = options . msecs !== undefined ? options . msecs : new Date ( ) . getTime ( ) ; // Per 4.2.1.2, use count of uuid's generated during the current clock
// cycle to simulate higher resolution clock
var nsecs = options . nsecs !== undefined ? options . nsecs : _lastNSecs + 1 ; // Time since last uuid creation (in msecs)
var dt = msecs - _lastMSecs + ( nsecs - _lastNSecs ) / 10000 ; // Per 4.2.1.2, Bump clockseq on clock regression
if ( dt < 0 && options . clockseq === undefined ) {
clockseq = clockseq + 1 & 0x3fff ;
} // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
// time interval
if ( ( dt < 0 || msecs > _lastMSecs ) && options . nsecs === undefined ) {
nsecs = 0 ;
} // Per 4.2.1.2 Throw error if too many uuids are requested
if ( nsecs >= 10000 ) {
throw new Error ( "uuid.v1(): Can't create more than 10M uuids/sec" ) ;
}
_lastMSecs = msecs ;
_lastNSecs = nsecs ;
_clockseq = clockseq ; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
msecs += 12219292800000 ; // `time_low`
var tl = ( ( msecs & 0xfffffff ) * 10000 + nsecs ) % 0x100000000 ;
b [ i ++ ] = tl >>> 24 & 0xff ;
b [ i ++ ] = tl >>> 16 & 0xff ;
b [ i ++ ] = tl >>> 8 & 0xff ;
b [ i ++ ] = tl & 0xff ; // `time_mid`
var tmh = msecs / 0x100000000 * 10000 & 0xfffffff ;
b [ i ++ ] = tmh >>> 8 & 0xff ;
b [ i ++ ] = tmh & 0xff ; // `time_high_and_version`
b [ i ++ ] = tmh >>> 24 & 0xf | 0x10 ; // include version
b [ i ++ ] = tmh >>> 16 & 0xff ; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
b [ i ++ ] = clockseq >>> 8 | 0x80 ; // `clock_seq_low`
b [ i ++ ] = clockseq & 0xff ; // `node`
for ( var n = 0 ; n < 6 ; ++ n ) {
b [ i + n ] = node [ n ] ;
}
return buf ? buf : ( 0 , _bytesToUuid . default ) ( b ) ;
}
var _default = v1 ;
exports [ "default" ] = _default ;
module . exports = exports . default ;
/***/ } ) ,
/***/ 6409 :
/***/ ( ( module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports [ "default" ] = void 0 ;
var _v = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5998 ) ) ;
var _md = _interopRequireDefault ( _ _nccwpck _require _ _ ( 4569 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
const v3 = ( 0 , _v . default ) ( 'v3' , 0x30 , _md . default ) ;
var _default = v3 ;
exports [ "default" ] = _default ;
module . exports = exports . default ;
/***/ } ) ,
/***/ 5998 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports [ "default" ] = _default ;
exports . URL = exports . DNS = void 0 ;
var _bytesToUuid = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5971 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
function uuidToBytes ( uuid ) {
// Note: We assume we're being passed a valid uuid string
var bytes = [ ] ;
uuid . replace ( /[a-fA-F0-9]{2}/g , function ( hex ) {
bytes . push ( parseInt ( hex , 16 ) ) ;
} ) ;
return bytes ;
}
function stringToBytes ( str ) {
str = unescape ( encodeURIComponent ( str ) ) ; // UTF8 escape
var bytes = new Array ( str . length ) ;
for ( var i = 0 ; i < str . length ; i ++ ) {
bytes [ i ] = str . charCodeAt ( i ) ;
}
return bytes ;
}
const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8' ;
exports . DNS = DNS ;
const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8' ;
exports . URL = URL ;
function _default ( name , version , hashfunc ) {
var generateUUID = function ( value , namespace , buf , offset ) {
var off = buf && offset || 0 ;
if ( typeof value == 'string' ) value = stringToBytes ( value ) ;
if ( typeof namespace == 'string' ) namespace = uuidToBytes ( namespace ) ;
if ( ! Array . isArray ( value ) ) throw TypeError ( 'value must be an array of bytes' ) ;
if ( ! Array . isArray ( namespace ) || namespace . length !== 16 ) throw TypeError ( 'namespace must be uuid string or an Array of 16 byte values' ) ; // Per 4.3
var bytes = hashfunc ( namespace . concat ( value ) ) ;
bytes [ 6 ] = bytes [ 6 ] & 0x0f | version ;
bytes [ 8 ] = bytes [ 8 ] & 0x3f | 0x80 ;
if ( buf ) {
for ( var idx = 0 ; idx < 16 ; ++ idx ) {
buf [ off + idx ] = bytes [ idx ] ;
}
}
return buf || ( 0 , _bytesToUuid . default ) ( bytes ) ;
} ; // Function#name is not settable on some platforms (#270)
try {
generateUUID . name = name ;
} catch ( err ) { } // For CommonJS default export support
generateUUID . DNS = DNS ;
generateUUID . URL = URL ;
return generateUUID ;
}
/***/ } ) ,
/***/ 5122 :
/***/ ( ( module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports [ "default" ] = void 0 ;
var _rng = _interopRequireDefault ( _ _nccwpck _require _ _ ( 807 ) ) ;
var _bytesToUuid = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5971 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
function v4 ( options , buf , offset ) {
function v4 ( options , buf , offset ) {
var i = buf && offset || 0 ;
var i = buf && offset || 0 ;
if ( typeof ( options ) == 'string' ) {
if ( typeof options == 'string' ) {
buf = options === 'binary' ? new Array ( 16 ) : null ;
buf = options === 'binary' ? new Array ( 16 ) : null ;
options = null ;
options = null ;
}
}
options = options || { } ;
options = options || { } ;
var rnds = options . random || ( options . rng || rng ) ( ) ;
var rnds = options . random || ( options . rng || _ rng.default )( ) ; // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
rnds [ 6 ] = ( rnds [ 6 ] & 0x0f ) | 0x40 ;
rnds [ 8 ] = ( rnds [ 8 ] & 0x3f ) | 0x80 ;
// Copy bytes to buffer, if provided
rnds [ 6 ] = rnds [ 6 ] & 0x0f | 0x40 ;
rnds [ 8 ] = rnds [ 8 ] & 0x3f | 0x80 ; // Copy bytes to buffer, if provided
if ( buf ) {
if ( buf ) {
for ( var ii = 0 ; ii < 16 ; ++ ii ) {
for ( var ii = 0 ; ii < 16 ; ++ ii ) {
buf [ i + ii ] = rnds [ ii ] ;
buf [ i + ii ] = rnds [ ii ] ;
}
}
}
}
return buf || bytesToUuid ( rnds ) ;
return buf || ( 0 , _ bytesToUuid. default ) ( rnds ) ;
}
}
module . exports = v4 ;
var _default = v4 ;
exports [ "default" ] = _default ;
module . exports = exports . default ;
/***/ } ) ,
/***/ 9120 :
/***/ ( ( module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports [ "default" ] = void 0 ;
var _v = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5998 ) ) ;
var _sha = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5274 ) ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
const v5 = ( 0 , _v . default ) ( 'v5' , 0x50 , _sha . default ) ;
var _default = v5 ;
exports [ "default" ] = _default ;
module . exports = exports . default ;
/***/ } ) ,
/***/ } ) ,
/***/ 4207 :
/***/ 4207 :