2023-10-03 11:14:36 +08:00
"use strict" ;
exports . _ _esModule = true ;
var _setPrototypeOf = require ( "../core-js/object/set-prototype-of" ) ;
var _setPrototypeOf2 = _interopRequireDefault ( _setPrototypeOf ) ;
var _create = require ( "../core-js/object/create" ) ;
var _create2 = _interopRequireDefault ( _create ) ;
var _typeof2 = require ( "../helpers/typeof" ) ;
var _typeof3 = _interopRequireDefault ( _typeof2 ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
exports . default = function ( subClass , superClass ) {
if ( typeof superClass !== "function" && superClass !== null ) {
throw new TypeError ( "Super expression must either be null or a function, not " + ( typeof superClass === "undefined" ? "undefined" : ( 0 , _typeof3 . default ) ( superClass ) ) ) ;
}
subClass . prototype = ( 0 , _create2 . default ) ( superClass && superClass . prototype , {
constructor : {
value : subClass ,
enumerable : false ,
writable : true ,
configurable : true
}
} ) ;
if ( superClass ) _setPrototypeOf2 . default ? ( 0 , _setPrototypeOf2 . default ) ( subClass , superClass ) : subClass . _ _proto _ _ = superClass ;
2023-09-25 15:58:56 +08:00
} ;