(function () {
    "use strict";
    if (window.ol && ol.source && !ol.source.VectorEventType) {
        // HACK: monkey patch event types not present in current OL6 repackage build
        // @see https://github.com/openlayers/openlayers/blob/main/src/ol/source/VectorEventType.js
        ol.source.VectorEventType = {
            ADDFEATURE: 'addfeature',
            CHANGEFEATURE: 'changefeature',
            CLEAR: 'clear',
            REMOVEFEATURE: 'removefeature'
        };
    }
    if (window.ol && !ol.ObjectEventType) {
        // HACK: monkey patch event types not present in current OL6 repackage build
        // @see https://github.com/openlayers/openlayers/blob/main/src/ol/ObjectEventType.js
        ol.ObjectEventType = {
            PROPERTYCHANGE: 'propertychange'
        };
    }
    if (window.ol && ol.interaction && !ol.interaction.ModifyEventType) {
        // HACK: monkey patch event types not present in current OL6 repackage build
        // @see https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L64
        ol.interaction.ModifyEventType = {
            MODIFYSTART: 'modifystart',
            MODIFYEND: 'modifyend'
        };
    }
})();

(function () {
    "use strict";
    if (window.ol && ol.source && !ol.source.VectorEventType) {
        // HACK: monkey patch event types not present in current OL6 repackage build
        // @see https://github.com/openlayers/openlayers/blob/main/src/ol/source/VectorEventType.js
        ol.source.VectorEventType = {
            ADDFEATURE: 'addfeature',
            CHANGEFEATURE: 'changefeature',
            CLEAR: 'clear',
            REMOVEFEATURE: 'removefeature'
        };
    }
    if (window.ol && !ol.ObjectEventType) {
        // HACK: monkey patch event types not present in current OL6 repackage build
        // @see https://github.com/openlayers/openlayers/blob/main/src/ol/ObjectEventType.js
        ol.ObjectEventType = {
            PROPERTYCHANGE: 'propertychange'
        };
    }
    if (window.ol && ol.interaction && !ol.interaction.ModifyEventType) {
        // HACK: monkey patch event types not present in current OL6 repackage build
        // @see https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L64
        ol.interaction.ModifyEventType = {
            MODIFYSTART: 'modifystart',
            MODIFYEND: 'modifyend'
        };
    }
    if (window.ol && ol.interaction && !ol.interaction.TranslateEventType) {
        // HACK: monkey patch event types not present in current OL6 repackage build
        // @see https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Translate.js#L12
        ol.interaction.TranslateEventType = {
            TRANSLATESTART: 'translatestart',
            TRANSLATING: 'translating',
            TRANSLATEEND: 'translateend'
        };
    }
})();

Fix "moveFeature" tool initialization errors
Fix "moveFeature" tool initialization errors
