docs: function tryWrap(fn) {
      var args = [];
      for (var _i = 1; _i < arguments.length; _i++) {
          args[_i - 1] = arguments[_i];
      }
      return function (def) {
          try {
              return fn.apply(void 0, args);
          }
          catch (ex) {
              if (is_1.isFunction(def))
                  return def(ex);
              return to_1.toDefault(def);
          }
      };
  }