var isInstanceOfNode_1;
var hasRequiredIsInstanceOfNode;

function requireIsInstanceOfNode () {
	if (hasRequiredIsInstanceOfNode) return isInstanceOfNode_1;
	hasRequiredIsInstanceOfNode = 1;

	/**
	 * Copyright (c) Facebook, Inc. and its affiliates.
	 *
	 * This source code is licensed under the MIT license found in the
	 * LICENSE file in the root directory of this source tree.
	 *
	 * @format
	 * 
	 * @emails oncall+draft_js
	 */
	function isInstanceOfNode(target) {
	  // we changed the name because of having duplicate module provider (fbjs)
	  if (!target || !('ownerDocument' in target)) {
	    return false;
	  }

	  if ('ownerDocument' in target) {
	    var node = target;

	    if (!node.ownerDocument.defaultView) {
	      return node instanceof Node;
	    }

	    if (node instanceof node.ownerDocument.defaultView.Node) {
	      return true;
	    }
	  }

	  return false;
	}

	isInstanceOfNode_1 = isInstanceOfNode;
	return isInstanceOfNode_1;
}

export { requireIsInstanceOfNode as __require };
//# sourceMappingURL=isInstanceOfNode.js.map
