System.register(["__unresolved_0", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8"], function (_export, _context) {
  "use strict";

  var _req, _req2, _req3, _req4, _req5, _req6, _req7, _req8, _loader, _cjsExports, __cjsMetaURL;

  _export("default", void 0);

  return {
    setters: [function (_unresolved_) {
      _req = _unresolved_.__cjsMetaURL;
    }, function (_unresolved_2) {
      _req2 = _unresolved_2.__cjsMetaURL;
    }, function (_unresolved_3) {
      _req3 = _unresolved_3.__cjsMetaURL;
    }, function (_unresolved_4) {
      _req4 = _unresolved_4.__cjsMetaURL;
    }, function (_unresolved_5) {
      _req5 = _unresolved_5.__cjsMetaURL;
    }, function (_unresolved_6) {
      _req6 = _unresolved_6.__cjsMetaURL;
    }, function (_unresolved_7) {
      _req7 = _unresolved_7.__cjsMetaURL;
    }, function (_unresolved_8) {
      _req8 = _unresolved_8.__cjsMetaURL;
    }, function (_unresolved_9) {
      _loader = _unresolved_9.default;
    }],
    execute: function () {
      _loader.define(_context.meta.url, function (exports, _require, module, __filename, __dirname) {
        var require = _loader.createRequireWithReqMap({
          "../internals/export": _req,
          "../internals/function-uncurry-this": _req2,
          "../internals/fails": _req3,
          "../internals/array-buffer": _req4,
          "../internals/an-object": _req5,
          "../internals/to-absolute-index": _req6,
          "../internals/to-length": _req7,
          "../internals/species-constructor": _req8
        }, _require);

        (function () {
          var $ = require('../internals/export');

          var uncurryThis = require('../internals/function-uncurry-this');

          var fails = require('../internals/fails');

          var ArrayBufferModule = require('../internals/array-buffer');

          var anObject = require('../internals/an-object');

          var toAbsoluteIndex = require('../internals/to-absolute-index');

          var toLength = require('../internals/to-length');

          var speciesConstructor = require('../internals/species-constructor');

          var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
          var DataView = ArrayBufferModule.DataView;
          var DataViewPrototype = DataView.prototype;
          var un$ArrayBufferSlice = uncurryThis(ArrayBuffer.prototype.slice);
          var getUint8 = uncurryThis(DataViewPrototype.getUint8);
          var setUint8 = uncurryThis(DataViewPrototype.setUint8);
          var INCORRECT_SLICE = fails(function () {
            return !new ArrayBuffer(2).slice(1, undefined).byteLength;
          }); // `ArrayBuffer.prototype.slice` method
          // https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice

          $({
            target: 'ArrayBuffer',
            proto: true,
            unsafe: true,
            forced: INCORRECT_SLICE
          }, {
            slice: function slice(start, end) {
              if (un$ArrayBufferSlice && end === undefined) {
                return un$ArrayBufferSlice(anObject(this), start); // FF fix
              }

              var length = anObject(this).byteLength;
              var first = toAbsoluteIndex(start, length);
              var fin = toAbsoluteIndex(end === undefined ? length : end, length);
              var result = new (speciesConstructor(this, ArrayBuffer))(toLength(fin - first));
              var viewSource = new DataView(this);
              var viewTarget = new DataView(result);
              var index = 0;

              while (first < fin) {
                setUint8(viewTarget, index++, getUint8(viewSource, first++));
              }

              return result;
            }
          });
        })();

        _export("default", _cjsExports = module.exports);
      });

      _export("__cjsMetaURL", __cjsMetaURL = _context.meta.url);
    }
  };
});
//# sourceMappingURL=es.array-buffer.slice.js.map