2015-05-14 22:10:16 +03:00
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2020-04-22 02:54:49 +03:00
Copyright ( c ) Microsoft Corporation .
2016-05-18 23:25:21 +03:00
2020-04-17 01:24:59 +03:00
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
2016-05-18 23:25:21 +03:00
2020-04-17 01:24:59 +03:00
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
2015-05-14 22:10:16 +03:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/* global global, define, System, Reflect, Promise */
2016-06-11 09:14:18 +03:00
var __extends ;
var __assign ;
2016-11-10 21:08:31 +03:00
var __rest ;
2016-06-11 09:14:18 +03:00
var __decorate ;
var __param ;
var __metadata ;
var __awaiter ;
2016-09-09 23:27:19 +03:00
var __generator ;
2017-01-01 06:12:44 +03:00
var __exportStar ;
2016-11-20 06:58:01 +03:00
var __values ;
var __read ;
var __spread ;
2019-06-04 04:08:40 +03:00
var __spreadArrays ;
2020-12-18 04:40:25 +03:00
var __spreadArray ;
2017-05-04 23:15:58 +03:00
var __await ;
2017-01-01 05:11:04 +03:00
var __asyncGenerator ;
var __asyncDelegator ;
var __asyncValues ;
2017-09-19 00:44:49 +03:00
var __makeTemplateObject ;
2017-11-18 02:55:43 +03:00
var __importStar ;
var __importDefault ;
2019-09-11 19:15:56 +03:00
var __classPrivateFieldGet ;
var __classPrivateFieldSet ;
2020-05-14 01:47:46 +03:00
var __createBinding ;
2016-05-18 23:25:21 +03:00
( function ( factory ) {
2016-06-11 09:14:18 +03:00
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : { } ;
2016-12-22 04:20:43 +03:00
if ( typeof define === "function" && define . amd ) {
2016-06-11 09:14:18 +03:00
define ( "tslib" , [ "exports" ] , function ( exports ) { factory ( createExporter ( root , createExporter ( exports ) ) ) ; } ) ;
2015-05-14 22:10:16 +03:00
}
2016-06-11 09:14:18 +03:00
else if ( typeof module === "object" && typeof module .exports === "object" ) {
factory ( createExporter ( root , createExporter ( module .exports ) ) ) ;
2015-05-14 22:10:16 +03:00
}
else {
2016-06-11 09:14:18 +03:00
factory ( createExporter ( root ) ) ;
2016-05-26 00:38:32 +03:00
}
function createExporter ( exports , previous ) {
2017-11-09 01:35:19 +03:00
if ( exports !== root ) {
if ( typeof Object . create === "function" ) {
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
}
else {
exports . __esModule = true ;
}
2017-08-20 01:06:23 +03:00
}
2016-05-26 00:38:32 +03:00
return function ( id , v ) { return exports [ id ] = previous ? previous ( id , v ) : v ; } ;
2015-05-14 22:10:16 +03:00
}
} )
( function ( exporter ) {
2016-12-31 01:36:23 +03:00
var extendStatics = Object . setPrototypeOf ||
( { __proto__ : [ ] } instanceof Array && function ( d , b ) { d . __proto__ = b ; } ) ||
2020-02-25 16:15:00 +03:00
function ( d , b ) { for ( var p in b ) if ( Object . prototype . hasOwnProperty . call ( b , p ) ) d [ p ] = b [ p ] ; } ;
2016-12-31 01:36:23 +03:00
2016-06-11 09:14:18 +03:00
__extends = function ( d , b ) {
2020-12-02 05:10:06 +03:00
if ( typeof b !== "function" && b !== null )
throw new TypeError ( "Class extends value " + String ( b ) + " is not a constructor or null" ) ;
2016-12-31 01:36:23 +03:00
extendStatics ( d , b ) ;
2015-05-14 22:10:16 +03:00
function __() { this . constructor = d ; }
2015-06-16 23:24:57 +03:00
d . prototype = b === null ? Object . create ( b ) : ( __ . prototype = b . prototype , new __ ( ) ) ;
2016-05-18 23:25:21 +03:00
} ;
2016-06-11 09:14:18 +03:00
__assign = Object . assign || function ( t ) {
2016-05-18 23:25:21 +03:00
for ( var s , i = 1 , n = arguments . length ; i < n ; i ++ ) {
s = arguments [ i ] ;
for ( var p in s ) if ( Object . prototype . hasOwnProperty . call ( s , p ) ) t [ p ] = s [ p ] ;
}
return t ;
} ;
2016-11-11 19:33:01 +03:00
__rest = function ( s , e ) {
2016-11-10 21:08:31 +03:00
var t = { } ;
2016-11-16 20:59:59 +03:00
for ( var p in s ) if ( Object . prototype . hasOwnProperty . call ( s , p ) && e . indexOf ( p ) < 0 )
2016-11-10 21:08:31 +03:00
t [ p ] = s [ p ] ;
2016-11-30 03:33:21 +03:00
if ( s != null && typeof Object . getOwnPropertySymbols === "function" )
2019-05-08 01:55:58 +03:00
for ( var i = 0 , p = Object . getOwnPropertySymbols ( s ) ; i < p . length ; i ++ ) {
if ( e . indexOf ( p [ i ] ) < 0 && Object . prototype . propertyIsEnumerable . call ( s , p [ i ] ) )
t [ p [ i ] ] = s [ p [ i ] ] ;
}
2016-11-10 21:08:31 +03:00
return t ;
2016-11-11 19:33:01 +03:00
} ;
2016-11-10 21:08:31 +03:00
2016-06-11 09:14:18 +03:00
__decorate = function ( decorators , target , key , desc ) {
2015-10-02 02:26:59 +03:00
var c = arguments . length , r = c < 3 ? target : desc === null ? desc = Object . getOwnPropertyDescriptor ( target , key ) : desc , d ;
if ( typeof Reflect === "object" && typeof Reflect . decorate === "function" ) r = Reflect . decorate ( decorators , target , key , desc ) ;
else for ( var i = decorators . length - 1 ; i >= 0 ; i -- ) if ( d = decorators [ i ] ) r = ( c < 3 ? d ( r ) : c > 3 ? d ( target , key , r ) : d ( target , key ) ) || r ;
return c > 3 && r && Object . defineProperty ( target , key , r ) , r ;
2016-05-18 23:25:21 +03:00
} ;
2015-05-14 22:10:16 +03:00
2016-06-11 09:14:18 +03:00
__param = function ( paramIndex , decorator ) {
2015-05-14 22:10:16 +03:00
return function ( target , key ) { decorator ( target , key , paramIndex ) ; }
2016-05-18 23:25:21 +03:00
} ;
2016-06-11 09:14:18 +03:00
__metadata = function ( metadataKey , metadataValue ) {
2015-10-02 02:26:59 +03:00
if ( typeof Reflect === "object" && typeof Reflect . metadata === "function" ) return Reflect . metadata ( metadataKey , metadataValue ) ;
2016-05-18 23:25:21 +03:00
} ;
2016-06-11 09:14:18 +03:00
__awaiter = function ( thisArg , _arguments , P , generator ) {
2019-07-23 03:23:50 +03:00
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
2016-05-18 23:25:21 +03:00
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
2016-10-06 23:32:24 +03:00
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
2019-07-23 03:23:50 +03:00
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
2016-12-15 03:03:02 +03:00
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
2015-06-16 23:24:29 +03:00
} ) ;
2016-05-18 23:25:21 +03:00
} ;
2015-05-14 22:10:16 +03:00
2016-09-09 23:27:19 +03:00
__generator = function ( thisArg , body ) {
2016-11-20 06:58:01 +03:00
var _ = { label : 0 , sent : function ( ) { if ( t [ 0 ] & 1 ) throw t [ 1 ] ; return t [ 1 ] ; } , trys : [ ] , ops : [ ] } , f , y , t , g ;
return g = { next : verb ( 0 ) , "throw" : verb ( 1 ) , "return" : verb ( 2 ) } , typeof Symbol === "function" && ( g [ Symbol . iterator ] = function ( ) { return this ; } ) , g ;
2016-09-13 23:05:29 +03:00
function verb ( n ) { return function ( v ) { return step ( [ n , v ] ) ; } ; }
2016-09-09 23:27:19 +03:00
function step ( op ) {
if ( f ) throw new TypeError ( "Generator is already executing." ) ;
2016-09-13 23:05:29 +03:00
while ( _ ) try {
2018-05-29 23:34:44 +03:00
if ( f = 1 , y && ( t = op [ 0 ] & 2 ? y [ "return" ] : op [ 0 ] ? y [ "throw" ] || ( ( t = y [ "return" ] ) && t . call ( y ) , 0 ) : y . next ) && ! ( t = t . call ( y , op [ 1 ] ) ) . done ) return t ;
if ( y = 0 , t ) op = [ op [ 0 ] & 2 , t . value ] ;
2016-09-13 23:05:29 +03:00
switch ( op [ 0 ] ) {
case 0 : case 1 : t = op ; break ;
case 4 : _.label ++ ; return { value : op [ 1 ] , done : false } ;
case 5 : _.label ++ ; y = op [ 1 ] ; op = [ 0 ] ; continue ;
case 7 : op = _ . ops . pop ( ) ; _ . trys . pop ( ) ; continue ;
default :
if ( ! ( t = _ . trys , t = t . length > 0 && t [ t . length - 1 ] ) && ( op [ 0 ] === 6 || op [ 0 ] === 2 ) ) { _ = 0 ; continue ; }
if ( op [ 0 ] === 3 && ( ! t || ( op [ 1 ] > t [ 0 ] && op [ 1 ] < t [ 3 ] ) ) ) { _ . label = op [ 1 ] ; break ; }
if ( op [ 0 ] === 6 && _ . label < t [ 1 ] ) { _ . label = t [ 1 ] ; t = op ; break ; }
if ( t && _ . label < t [ 2 ] ) { _ . label = t [ 2 ] ; _ . ops . push ( op ) ; break ; }
if ( t [ 2 ] ) _ . ops . pop ( ) ;
_ . trys . pop ( ) ; continue ;
2016-09-09 23:27:19 +03:00
}
2016-09-13 23:05:29 +03:00
op = body . call ( thisArg , _ ) ;
} catch ( e ) { op = [ 6 , e ] ; y = 0 ; } finally { f = t = 0 ; }
if ( op [ 0 ] & 5 ) throw op [ 1 ] ; return { value : op [ 0 ] ? op [ 1 ] : void 0 , done : true } ;
2016-09-09 23:27:19 +03:00
}
} ;
2020-07-30 03:02:40 +03:00
__exportStar = function ( m , o ) {
for ( var p in m ) if ( p !== "default" && ! Object . prototype . hasOwnProperty . call ( o , p ) ) __createBinding ( o , m , p ) ;
2017-01-01 06:12:44 +03:00
} ;
2017-02-21 23:16:46 +03:00
2020-05-14 02:01:46 +03:00
__createBinding = Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ;
2020-05-06 02:56:07 +03:00
2016-11-20 06:58:01 +03:00
__values = function ( o ) {
2019-07-25 12:33:47 +03:00
var s = typeof Symbol === "function" && Symbol . iterator , m = s && o [ s ] , i = 0 ;
2017-01-01 05:11:04 +03:00
if ( m ) return m . call ( o ) ;
2019-07-25 12:33:47 +03:00
if ( o && typeof o . length === "number" ) return {
2016-11-20 06:58:01 +03:00
next : function ( ) {
2017-01-01 05:11:04 +03:00
if ( o && i >= o . length ) o = void 0 ;
return { value : o && o [ i ++ ] , done : ! o } ;
2016-11-20 06:58:01 +03:00
}
} ;
2019-08-06 20:53:00 +03:00
throw new TypeError ( s ? "Object is not iterable." : "Symbol.iterator is not defined." ) ;
2016-11-20 06:58:01 +03:00
} ;
__read = function ( o , n ) {
2017-01-01 05:11:04 +03:00
var m = typeof Symbol === "function" && o [ Symbol . iterator ] ;
if ( ! m ) return o ;
var i = m . call ( o ) , r , ar = [ ] , e ;
2016-11-20 06:58:01 +03:00
try {
2017-01-01 05:11:04 +03:00
while ( ( n === void 0 || n -- > 0 ) && ! ( r = i . next ( ) ) . done ) ar . push ( r . value ) ;
2016-11-20 06:58:01 +03:00
}
catch ( error ) { e = { error : error } ; }
finally {
try {
2017-01-01 05:11:04 +03:00
if ( r && ! r . done && ( m = i [ "return" ] ) ) m . call ( i ) ;
2016-11-20 06:58:01 +03:00
}
2017-01-01 05:11:04 +03:00
finally { if ( e ) throw e . error ; }
2016-11-20 06:58:01 +03:00
}
return ar ;
} ;
2020-12-18 04:40:25 +03:00
/** @deprecated */
2016-11-20 06:58:01 +03:00
__spread = function ( ) {
for ( var ar = [ ] , i = 0 ; i < arguments . length ; i ++ )
ar = ar . concat ( __read ( arguments [ i ] ) ) ;
return ar ;
} ;
2020-12-18 04:40:25 +03:00
/** @deprecated */
2019-06-04 04:08:40 +03:00
__spreadArrays = function ( ) {
for ( var s = 0 , i = 0 , il = arguments . length ; i < il ; i ++ ) s += arguments [ i ] . length ;
for ( var r = Array ( s ) , k = 0 , i = 0 ; i < il ; i ++ )
for ( var a = arguments [ i ] , j = 0 , jl = a . length ; j < jl ; j ++ , k ++ )
r [ k ] = a [ j ] ;
return r ;
} ;
2021-06-12 01:16:55 +03:00
__spreadArray = function ( to , from , pack ) {
if ( pack || arguments . length === 2 ) for ( var i = 0 , l = from . length , ar ; i < l ; i ++ ) {
if ( ar || ! ( i in from ) ) {
if ( ! ar ) ar = Array . prototype . slice . call ( from , 0 , i ) ;
ar [ i ] = from [ i ] ;
}
}
2021-08-10 01:54:54 +03:00
return to . concat ( ar || Array . prototype . slice . call ( from ) ) ;
2020-12-18 04:40:25 +03:00
} ;
2017-05-04 23:15:58 +03:00
__await = function ( v ) {
return this instanceof __await ? ( this . v = v , this ) : new __await ( v ) ;
} ;
2017-01-01 05:11:04 +03:00
__asyncGenerator = function ( thisArg , _arguments , generator ) {
2017-02-21 23:16:46 +03:00
if ( ! Symbol . asyncIterator ) throw new TypeError ( "Symbol.asyncIterator is not defined." ) ;
2017-05-04 23:15:58 +03:00
var g = generator . apply ( thisArg , _arguments || [ ] ) , i , q = [ ] ;
return i = { } , verb ( "next" ) , verb ( "throw" ) , verb ( "return" ) , i [ Symbol . asyncIterator ] = function ( ) { return this ; } , i ;
function verb ( n ) { if ( g [ n ] ) i [ n ] = function ( v ) { return new Promise ( function ( a , b ) { q . push ( [ n , v , a , b ] ) > 1 || resume ( n , v ) ; } ) ; } ; }
function resume ( n , v ) { try { step ( g [ n ] ( v ) ) ; } catch ( e ) { settle ( q [ 0 ] [ 3 ] , e ) ; } }
function step ( r ) { r . value instanceof __await ? Promise . resolve ( r . value . v ) . then ( fulfill , reject ) : settle ( q [ 0 ] [ 2 ] , r ) ; }
2017-01-01 05:11:04 +03:00
function fulfill ( value ) { resume ( "next" , value ) ; }
function reject ( value ) { resume ( "throw" , value ) ; }
2017-05-04 23:15:58 +03:00
function settle ( f , v ) { if ( f ( v ) , q . shift ( ) , q . length ) resume ( q [ 0 ] [ 0 ] , q [ 0 ] [ 1 ] ) ; }
2017-01-01 05:11:04 +03:00
} ;
__asyncDelegator = function ( o ) {
2017-05-04 23:15:58 +03:00
var i , p ;
2017-05-16 01:32:33 +03:00
return i = { } , verb ( "next" ) , verb ( "throw" , function ( e ) { throw e ; } ) , verb ( "return" ) , i [ Symbol . iterator ] = function ( ) { return this ; } , i ;
2018-05-14 20:42:10 +03:00
function verb ( n , f ) { i [ n ] = o [ n ] ? function ( v ) { return ( p = ! p ) ? { value : __await ( o [ n ] ( v ) ) , done : n === "return" } : f ? f ( v ) : v ; } : f ; }
2017-01-01 05:11:04 +03:00
} ;
__asyncValues = function ( o ) {
2017-02-21 23:16:46 +03:00
if ( ! Symbol . asyncIterator ) throw new TypeError ( "Symbol.asyncIterator is not defined." ) ;
2018-05-14 20:42:10 +03:00
var m = o [ Symbol . asyncIterator ] , i ;
return m ? m . call ( o ) : ( o = typeof __values === "function" ? __values ( o ) : o [ Symbol . iterator ] ( ) , i = { } , verb ( "next" ) , verb ( "throw" ) , verb ( "return" ) , i [ Symbol . asyncIterator ] = function ( ) { return this ; } , i ) ;
function verb ( n ) { i [ n ] = o [ n ] && function ( v ) { return new Promise ( function ( resolve , reject ) { v = o [ n ] ( v ) , settle ( resolve , reject , v . done , v . value ) ; } ) ; } ; }
function settle ( resolve , reject , d , v ) { Promise . resolve ( v ) . then ( function ( v ) { resolve ( { value : v , done : d } ) ; } , reject ) ; }
2017-01-01 05:11:04 +03:00
} ;
2017-09-19 00:44:49 +03:00
__makeTemplateObject = function ( cooked , raw ) {
2017-10-07 11:16:07 +03:00
if ( Object . defineProperty ) { Object . defineProperty ( cooked , "raw" , { value : raw } ) ; } else { cooked . raw = raw ; }
2017-09-19 00:44:49 +03:00
return cooked ;
} ;
2020-05-14 02:01:46 +03:00
var __setModuleDefault = Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ;
2017-11-18 02:55:43 +03:00
__importStar = function ( mod ) {
if ( mod && mod . __esModule ) return mod ;
var result = { } ;
2020-07-11 03:10:42 +03:00
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
2020-05-14 02:01:46 +03:00
__setModuleDefault ( result , mod ) ;
2017-11-18 02:55:43 +03:00
return result ;
} ;
__importDefault = function ( mod ) {
return ( mod && mod . __esModule ) ? mod : { "default" : mod } ;
} ;
2021-03-25 04:14:28 +03:00
__classPrivateFieldGet = function ( receiver , state , kind , f ) {
if ( kind === "a" && ! f ) throw new TypeError ( "Private accessor was defined without a getter" ) ;
if ( typeof state === "function" ? receiver !== state || ! f : ! state . has ( receiver ) ) throw new TypeError ( "Cannot read private member from an object whose class did not declare it" ) ;
return kind === "m" ? f : kind === "a" ? f . call ( receiver ) : f ? f.value : state.get ( receiver ) ;
2019-09-11 19:15:56 +03:00
} ;
2021-03-25 04:14:28 +03:00
__classPrivateFieldSet = function ( receiver , state , value , kind , f ) {
if ( kind === "m" ) throw new TypeError ( "Private method is not writable" ) ;
if ( kind === "a" && ! f ) throw new TypeError ( "Private accessor was defined without a setter" ) ;
if ( typeof state === "function" ? receiver !== state || ! f : ! state . has ( receiver ) ) throw new TypeError ( "Cannot write private member to an object whose class did not declare it" ) ;
return ( kind === "a" ? f . call ( receiver , value ) : f ? f . value = value : state.set ( receiver , value ) ) , value ;
2020-05-14 01:52:14 +03:00
} ;
2019-09-11 19:15:56 +03:00
2016-06-11 09:14:18 +03:00
exporter ( "__extends" , __extends ) ;
exporter ( "__assign" , __assign ) ;
2016-11-10 21:08:31 +03:00
exporter ( "__rest" , __rest ) ;
2016-06-11 09:14:18 +03:00
exporter ( "__decorate" , __decorate ) ;
exporter ( "__param" , __param ) ;
exporter ( "__metadata" , __metadata ) ;
exporter ( "__awaiter" , __awaiter ) ;
2016-09-09 23:27:19 +03:00
exporter ( "__generator" , __generator ) ;
2017-01-01 06:12:44 +03:00
exporter ( "__exportStar" , __exportStar ) ;
2020-05-14 01:47:46 +03:00
exporter ( "__createBinding" , __createBinding ) ;
2016-11-20 06:58:01 +03:00
exporter ( "__values" , __values ) ;
exporter ( "__read" , __read ) ;
exporter ( "__spread" , __spread ) ;
2019-06-04 04:08:40 +03:00
exporter ( "__spreadArrays" , __spreadArrays ) ;
2020-12-18 04:40:25 +03:00
exporter ( "__spreadArray" , __spreadArray ) ;
2017-05-04 23:15:58 +03:00
exporter ( "__await" , __await ) ;
2017-01-01 05:11:04 +03:00
exporter ( "__asyncGenerator" , __asyncGenerator ) ;
exporter ( "__asyncDelegator" , __asyncDelegator ) ;
exporter ( "__asyncValues" , __asyncValues ) ;
2017-09-19 00:44:49 +03:00
exporter ( "__makeTemplateObject" , __makeTemplateObject ) ;
2017-11-18 02:55:43 +03:00
exporter ( "__importStar" , __importStar ) ;
exporter ( "__importDefault" , __importDefault ) ;
2019-09-11 19:15:56 +03:00
exporter ( "__classPrivateFieldGet" , __classPrivateFieldGet ) ;
exporter ( "__classPrivateFieldSet" , __classPrivateFieldSet ) ;
2017-08-20 01:06:23 +03:00
} ) ;