function mapCanvasBlendModesToPixi(array) {
    if (array === void 0) { array = []; }
    if (canUseNewCanvasBlendModes()) {
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.NORMAL] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.ADD] = 'lighter'; // IS THIS OK???
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.MULTIPLY] = 'multiply';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SCREEN] = 'screen';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.OVERLAY] = 'overlay';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.DARKEN] = 'darken';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.LIGHTEN] = 'lighten';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.COLOR_DODGE] = 'color-dodge';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.COLOR_BURN] = 'color-burn';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.HARD_LIGHT] = 'hard-light';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SOFT_LIGHT] = 'soft-light';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.DIFFERENCE] = 'difference';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.EXCLUSION] = 'exclusion';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.HUE] = 'hue';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SATURATION] = 'saturation';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.COLOR] = 'color';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.LUMINOSITY] = 'luminosity';
    }
    else {
        // this means that the browser does not support the cool new blend modes in canvas 'cough' ie 'cough'
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.NORMAL] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.ADD] = 'lighter'; // IS THIS OK???
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.MULTIPLY] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SCREEN] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.OVERLAY] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.DARKEN] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.LIGHTEN] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.COLOR_DODGE] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.COLOR_BURN] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.HARD_LIGHT] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SOFT_LIGHT] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.DIFFERENCE] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.EXCLUSION] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.HUE] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SATURATION] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.COLOR] = 'source-over';
        array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.LUMINOSITY] = 'source-over';
    }
    // not-premultiplied, only for webgl
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.NORMAL_NPM] = array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.NORMAL];
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.ADD_NPM] = array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.ADD];
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SCREEN_NPM] = array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SCREEN];
    // composite operations
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SRC_IN] = 'source-in';
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SRC_OUT] = 'source-out';
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SRC_ATOP] = 'source-atop';
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.DST_OVER] = 'destination-over';
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.DST_IN] = 'destination-in';
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.DST_OUT] = 'destination-out';
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.DST_ATOP] = 'destination-atop';
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.XOR] = 'xor';
    // SUBTRACT from flash, does not exist in canvas
    array[_pixi_constants__WEBPACK_IMPORTED_MODULE_3__.BLEND_MODES.SUBTRACT] = 'source-over';
    return array;
}
Maps blend combinations to Canvas.
@memberof PIXI
@function mapCanvasBlendModesToPixi
@private
@param {string[]} [array=[]] - The array to output into.
@returns {string[]} Mapped modes.