code: function Config(options, StateMachine) {
  
    options = options || {};
  
    this.options     = options; // preserving original options can be useful (e.g visualize plugin)
    this.defaults    = StateMachine.defaults;
    this.states      = [];
    this.transitions = [];
    this.map         = {};
    this.lifecycle   = this.configureLifecycle();
    this.init        = this.configureInitTransition(options.init);
    this.data        = this.configureData(options.data);
    this.methods     = this.configureMethods(options.methods);
  
    this.map[this.defaults.wildcard] = {};
  
    this.configureTransitions(options.transitions || []);
  
    this.plugins = this.configurePlugins(options.plugins, StateMachine.plugin);
  
  }
docs: -------------------------------------------------------------------------------------------------