Index: imaps-frontend/node_modules/konva/lib/Node.js
===================================================================
--- imaps-frontend/node_modules/konva/lib/Node.js	(revision d56544918790c0c3bc50f2f0a98c99f3d2988ccf)
+++ imaps-frontend/node_modules/konva/lib/Node.js	(revision 0c6b92add4cfaedcb91bcd37b45849f142f7d152)
@@ -8,5 +8,5 @@
 const DragAndDrop_1 = require("./DragAndDrop");
 const Validators_1 = require("./Validators");
-var ABSOLUTE_OPACITY = 'absoluteOpacity', ALL_LISTENERS = 'allEventListeners', ABSOLUTE_TRANSFORM = 'absoluteTransform', ABSOLUTE_SCALE = 'absoluteScale', CANVAS = 'canvas', CHANGE = 'Change', CHILDREN = 'children', KONVA = 'konva', LISTENING = 'listening', MOUSEENTER = 'mouseenter', MOUSELEAVE = 'mouseleave', NAME = 'name', SET = 'set', SHAPE = 'Shape', SPACE = ' ', STAGE = 'stage', TRANSFORM = 'transform', UPPER_STAGE = 'Stage', VISIBLE = 'visible', TRANSFORM_CHANGE_STR = [
+const ABSOLUTE_OPACITY = 'absoluteOpacity', ALL_LISTENERS = 'allEventListeners', ABSOLUTE_TRANSFORM = 'absoluteTransform', ABSOLUTE_SCALE = 'absoluteScale', CANVAS = 'canvas', CHANGE = 'Change', CHILDREN = 'children', KONVA = 'konva', LISTENING = 'listening', MOUSEENTER = 'mouseenter', MOUSELEAVE = 'mouseleave', NAME = 'name', SET = 'set', SHAPE = 'Shape', SPACE = ' ', STAGE = 'stage', TRANSFORM = 'transform', UPPER_STAGE = 'Stage', VISIBLE = 'visible', TRANSFORM_CHANGE_STR = [
     'xChange.konva',
     'yChange.konva',
@@ -57,7 +57,7 @@
     }
     _getCache(attr, privateGetter) {
-        var cache = this._cache.get(attr);
-        var isTransform = attr === TRANSFORM || attr === ABSOLUTE_TRANSFORM;
-        var invalid = cache === undefined || (isTransform && cache.dirty === true);
+        let cache = this._cache.get(attr);
+        const isTransform = attr === TRANSFORM || attr === ABSOLUTE_TRANSFORM;
+        const invalid = cache === undefined || (isTransform && cache.dirty === true);
         if (invalid) {
             cache = privateGetter.call(this);
@@ -96,6 +96,6 @@
     }
     cache(config) {
-        var conf = config || {};
-        var rect = {};
+        const conf = config || {};
+        let rect = {};
         if (conf.x === undefined ||
             conf.y === undefined ||
@@ -107,5 +107,5 @@
             });
         }
-        var width = Math.ceil(conf.width || rect.width), height = Math.ceil(conf.height || rect.height), pixelRatio = conf.pixelRatio, x = conf.x === undefined ? Math.floor(rect.x) : conf.x, y = conf.y === undefined ? Math.floor(rect.y) : conf.y, offset = conf.offset || 0, drawBorder = conf.drawBorder || false, hitCanvasPixelRatio = conf.hitCanvasPixelRatio || 1;
+        let width = Math.ceil(conf.width || rect.width), height = Math.ceil(conf.height || rect.height), pixelRatio = conf.pixelRatio, x = conf.x === undefined ? Math.floor(rect.x) : conf.x, y = conf.y === undefined ? Math.floor(rect.y) : conf.y, offset = conf.offset || 0, drawBorder = conf.drawBorder || false, hitCanvasPixelRatio = conf.hitCanvasPixelRatio || 1;
         if (!width || !height) {
             Util_1.Util.error('Can not cache the node. Width or height of the node equals 0. Caching is skipped.');
@@ -118,5 +118,5 @@
         x -= offset;
         y -= offset;
-        var cachedSceneCanvas = new Canvas_1.SceneCanvas({
+        const cachedSceneCanvas = new Canvas_1.SceneCanvas({
             pixelRatio: pixelRatio,
             width: width,
@@ -179,5 +179,5 @@
     }
     _transformedRect(rect, top) {
-        var points = [
+        const points = [
             { x: rect.x, y: rect.y },
             { x: rect.x + rect.width, y: rect.y },
@@ -185,8 +185,8 @@
             { x: rect.x, y: rect.y + rect.height },
         ];
-        var minX = Infinity, minY = Infinity, maxX = -Infinity, maxY = -Infinity;
-        var trans = this.getAbsoluteTransform(top);
+        let minX = Infinity, minY = Infinity, maxX = -Infinity, maxY = -Infinity;
+        const trans = this.getAbsoluteTransform(top);
         points.forEach(function (point) {
-            var transformed = trans.point(point);
+            const transformed = trans.point(point);
             if (minX === undefined) {
                 minX = maxX = transformed.x;
@@ -211,11 +211,11 @@
         const canvasCache = this._getCanvasCache();
         context.translate(canvasCache.x, canvasCache.y);
-        var cacheCanvas = this._getCachedSceneCanvas();
-        var ratio = cacheCanvas.pixelRatio;
+        const cacheCanvas = this._getCachedSceneCanvas();
+        const ratio = cacheCanvas.pixelRatio;
         context.drawImage(cacheCanvas._canvas, 0, 0, cacheCanvas.width / ratio, cacheCanvas.height / ratio);
         context.restore();
     }
     _drawCachedHitCanvas(context) {
-        var canvasCache = this._getCanvasCache(), hitCanvas = canvasCache.hit;
+        const canvasCache = this._getCanvasCache(), hitCanvas = canvasCache.hit;
         context.save();
         context.translate(canvasCache.x, canvasCache.y);
@@ -224,8 +224,8 @@
     }
     _getCachedSceneCanvas() {
-        var filters = this.filters(), cachedCanvas = this._getCanvasCache(), sceneCanvas = cachedCanvas.scene, filterCanvas = cachedCanvas.filter, filterContext = filterCanvas.getContext(), len, imageData, n, filter;
+        let filters = this.filters(), cachedCanvas = this._getCanvasCache(), sceneCanvas = cachedCanvas.scene, filterCanvas = cachedCanvas.filter, filterContext = filterCanvas.getContext(), len, imageData, n, filter;
         if (filters) {
             if (!this._filterUpToDate) {
-                var ratio = sceneCanvas.pixelRatio;
+                const ratio = sceneCanvas.pixelRatio;
                 filterCanvas.setSize(sceneCanvas.width / sceneCanvas.pixelRatio, sceneCanvas.height / sceneCanvas.pixelRatio);
                 try {
@@ -262,5 +262,5 @@
             return this._delegate.apply(this, arguments);
         }
-        var events = evtStr.split(SPACE), len = events.length, n, event, parts, baseEvent, name;
+        let events = evtStr.split(SPACE), len = events.length, n, event, parts, baseEvent, name;
         for (n = 0; n < len; n++) {
             event = events[n];
@@ -279,5 +279,5 @@
     }
     off(evtStr, callback) {
-        var events = (evtStr || '').split(SPACE), len = events.length, n, t, event, parts, baseEvent, name;
+        let events = (evtStr || '').split(SPACE), len = events.length, n, t, event, parts, baseEvent, name;
         this._cache && this._cache.delete(ALL_LISTENERS);
         if (!evtStr) {
@@ -305,5 +305,5 @@
     }
     dispatchEvent(evt) {
-        var e = {
+        const e = {
             target: this,
             type: evt.type,
@@ -324,8 +324,8 @@
     }
     _delegate(event, selector, handler) {
-        var stopNode = this;
+        const stopNode = this;
         this.on(event, function (evt) {
-            var targets = evt.target.findAncestors(selector, true, stopNode);
-            for (var i = 0; i < targets.length; i++) {
+            const targets = evt.target.findAncestors(selector, true, stopNode);
+            for (let i = 0; i < targets.length; i++) {
                 evt = Util_1.Util.cloneObject(evt);
                 evt.currentTarget = targets[i];
@@ -352,5 +352,5 @@
     _remove() {
         this._clearCaches();
-        var parent = this.getParent();
+        const parent = this.getParent();
         if (parent && parent.children) {
             parent.children.splice(this.index, 1);
@@ -365,5 +365,5 @@
     }
     getAttr(attr) {
-        var method = 'get' + Util_1.Util._capitalize(attr);
+        const method = 'get' + Util_1.Util._capitalize(attr);
         if (Util_1.Util._isFunction(this[method])) {
             return this[method]();
@@ -372,5 +372,5 @@
     }
     getAncestors() {
-        var parent = this.getParent(), ancestors = [];
+        let parent = this.getParent(), ancestors = [];
         while (parent) {
             ancestors.push(parent);
@@ -384,5 +384,5 @@
     setAttrs(config) {
         this._batchTransformChanges(() => {
-            var key, method;
+            let key, method;
             if (!config) {
                 return this;
@@ -439,6 +439,6 @@
             return this._isVisible(top) && this._isListening(top);
         }
-        var layer = this.getLayer();
-        var layerUnderDrag = false;
+        const layer = this.getLayer();
+        let layerUnderDrag = false;
         DragAndDrop_1.DD._dragElements.forEach((elem) => {
             if (elem.dragStatus !== 'dragging') {
@@ -452,5 +452,5 @@
             }
         });
-        var dragSkip = !skipDragCheck &&
+        const dragSkip = !skipDragCheck &&
             !Global_1.Konva.hitOnDragEnabled &&
             (layerUnderDrag || Global_1.Konva.isTransforming());
@@ -469,5 +469,5 @@
     }
     getAbsoluteZIndex() {
-        var depth = this.getDepth(), that = this, index = 0, nodes, len, n, child;
+        let depth = this.getDepth(), that = this, index = 0, nodes, len, n, child;
         function addChildren(children) {
             nodes = [];
@@ -494,5 +494,5 @@
     }
     getDepth() {
-        var depth = 0, parent = this.parent;
+        let depth = 0, parent = this.parent;
         while (parent) {
             depth++;
@@ -529,9 +529,9 @@
             return null;
         }
-        var pos = stage.getPointerPosition();
+        const pos = stage.getPointerPosition();
         if (!pos) {
             return null;
         }
-        var transform = this.getAbsoluteTransform().copy();
+        const transform = this.getAbsoluteTransform().copy();
         transform.invert();
         return transform.point(pos);
@@ -550,5 +550,5 @@
             top = true;
         }
-        var absoluteMatrix = this.getAbsoluteTransform(top).getMatrix(), absoluteTransform = new Util_1.Transform(), offset = this.offset();
+        const absoluteMatrix = this.getAbsoluteTransform(top).getMatrix(), absoluteTransform = new Util_1.Transform(), offset = this.offset();
         absoluteTransform.m = absoluteMatrix.slice();
         absoluteTransform.translate(offset.x, offset.y);
@@ -560,5 +560,5 @@
         this.attrs.y = y;
         this._clearCache(TRANSFORM);
-        var it = this._getAbsoluteTransform().copy();
+        const it = this._getAbsoluteTransform().copy();
         it.invert();
         it.translate(pos.x, pos.y);
@@ -574,5 +574,5 @@
     }
     _setTransform(trans) {
-        var key;
+        let key;
         for (key in trans) {
             this.attrs[key] = trans[key];
@@ -580,5 +580,5 @@
     }
     _clearTransform() {
-        var trans = {
+        const trans = {
             x: this.x(),
             y: this.y(),
@@ -603,5 +603,5 @@
     }
     move(change) {
-        var changeX = change.x, changeY = change.y, x = this.x(), y = this.y();
+        let changeX = change.x, changeY = change.y, x = this.x(), y = this.y();
         if (changeX !== undefined) {
             x += changeX;
@@ -614,5 +614,5 @@
     }
     _eachAncestorReverse(func, top) {
-        var family = [], parent = this.getParent(), len, n;
+        let family = [], parent = this.getParent(), len, n;
         if (top && top._id === this._id) {
             return;
@@ -637,5 +637,5 @@
             return false;
         }
-        var index = this.index, len = this.parent.getChildren().length;
+        const index = this.index, len = this.parent.getChildren().length;
         if (index < len - 1) {
             this.parent.children.splice(index, 1);
@@ -651,5 +651,5 @@
             return false;
         }
-        var index = this.index, len = this.parent.getChildren().length;
+        const index = this.index, len = this.parent.getChildren().length;
         if (index < len - 1) {
             this.parent.children.splice(index, 1);
@@ -665,5 +665,5 @@
             return false;
         }
-        var index = this.index;
+        const index = this.index;
         if (index > 0) {
             this.parent.children.splice(index, 1);
@@ -679,5 +679,5 @@
             return false;
         }
-        var index = this.index;
+        const index = this.index;
         if (index > 0) {
             this.parent.children.splice(index, 1);
@@ -700,5 +700,5 @@
                 '.');
         }
-        var index = this.index;
+        const index = this.index;
         this.parent.children.splice(index, 1);
         this.parent.children.splice(zIndex, 0, this);
@@ -710,6 +710,6 @@
     }
     _getAbsoluteOpacity() {
-        var absOpacity = this.opacity();
-        var parent = this.getParent();
+        let absOpacity = this.opacity();
+        const parent = this.getParent();
         if (parent && !parent._isUnderCache) {
             absOpacity *= parent.getAbsoluteOpacity();
@@ -725,5 +725,5 @@
     }
     toObject() {
-        var attrs = this.getAttrs(), key, val, getter, defaultValue, nonPlainObject;
+        let attrs = this.getAttrs(), key, val, getter, defaultValue, nonPlainObject;
         const obj = {
             attrs: {},
@@ -754,9 +754,9 @@
     }
     findAncestors(selector, includeSelf, stopNode) {
-        var res = [];
+        const res = [];
         if (includeSelf && this._isMatch(selector)) {
             res.push(this);
         }
-        var ancestor = this.parent;
+        let ancestor = this.parent;
         while (ancestor) {
             if (ancestor === stopNode) {
@@ -783,5 +783,5 @@
             return selector(this);
         }
-        var selectorArr = selector.replace(/ /g, '').split(','), len = selectorArr.length, n, sel;
+        let selectorArr = selector.replace(/ /g, '').split(','), len = selectorArr.length, n, sel;
         for (n = 0; n < len; n++) {
             sel = selectorArr[n];
@@ -810,5 +810,5 @@
     }
     getLayer() {
-        var parent = this.getParent();
+        const parent = this.getParent();
         return parent ? parent.getLayer() : null;
     }
@@ -817,5 +817,5 @@
     }
     _getStage() {
-        var parent = this.getParent();
+        const parent = this.getParent();
         if (parent) {
             return parent.getStage();
@@ -844,9 +844,9 @@
     }
     _getAbsoluteTransform(top) {
-        var at;
+        let at;
         if (top) {
             at = new Util_1.Transform();
             this._eachAncestorReverse(function (node) {
-                var transformsEnabled = node.transformsEnabled();
+                const transformsEnabled = node.transformsEnabled();
                 if (transformsEnabled === 'all') {
                     at.multiply(node.getTransform());
@@ -866,5 +866,5 @@
                 at.reset();
             }
-            var transformsEnabled = this.transformsEnabled();
+            const transformsEnabled = this.transformsEnabled();
             if (transformsEnabled === 'all') {
                 at.multiply(this.getTransform());
@@ -882,5 +882,5 @@
     }
     getAbsoluteScale(top) {
-        var parent = this;
+        let parent = this;
         while (parent) {
             if (parent._isUnderCache) {
@@ -904,7 +904,7 @@
     _getTransform() {
         var _a, _b;
-        var m = this._cache.get(TRANSFORM) || new Util_1.Transform();
+        const m = this._cache.get(TRANSFORM) || new Util_1.Transform();
         m.reset();
-        var x = this.x(), y = this.y(), rotation = Global_1.Konva.getAngle(this.rotation()), scaleX = (_a = this.attrs.scaleX) !== null && _a !== void 0 ? _a : 1, scaleY = (_b = this.attrs.scaleY) !== null && _b !== void 0 ? _b : 1, skewX = this.attrs.skewX || 0, skewY = this.attrs.skewY || 0, offsetX = this.attrs.offsetX || 0, offsetY = this.attrs.offsetY || 0;
+        const x = this.x(), y = this.y(), rotation = Global_1.Konva.getAngle(this.rotation()), scaleX = (_a = this.attrs.scaleX) !== null && _a !== void 0 ? _a : 1, scaleY = (_b = this.attrs.scaleY) !== null && _b !== void 0 ? _b : 1, skewX = this.attrs.skewX || 0, skewY = this.attrs.skewY || 0, offsetX = this.attrs.offsetX || 0, offsetY = this.attrs.offsetY || 0;
         if (x !== 0 || y !== 0) {
             m.translate(x, y);
@@ -926,9 +926,9 @@
     }
     clone(obj) {
-        var attrs = Util_1.Util.cloneObject(this.attrs), key, allListeners, len, n, listener;
+        let attrs = Util_1.Util.cloneObject(this.attrs), key, allListeners, len, n, listener;
         for (key in obj) {
             attrs[key] = obj[key];
         }
-        var node = new this.constructor(attrs);
+        const node = new this.constructor(attrs);
         for (key in this.eventListeners) {
             allListeners = this.eventListeners[key];
@@ -948,6 +948,6 @@
     _toKonvaCanvas(config) {
         config = config || {};
-        var box = this.getClientRect();
-        var stage = this.getStage(), x = config.x !== undefined ? config.x : Math.floor(box.x), y = config.y !== undefined ? config.y : Math.floor(box.y), pixelRatio = config.pixelRatio || 1, canvas = new Canvas_1.SceneCanvas({
+        const box = this.getClientRect();
+        const stage = this.getStage(), x = config.x !== undefined ? config.x : Math.floor(box.x), y = config.y !== undefined ? config.y : Math.floor(box.y), pixelRatio = config.pixelRatio || 1, canvas = new Canvas_1.SceneCanvas({
             width: config.width || Math.ceil(box.width) || (stage ? stage.width() : 0),
             height: config.height ||
@@ -977,6 +977,6 @@
     toDataURL(config) {
         config = config || {};
-        var mimeType = config.mimeType || null, quality = config.quality || null;
-        var url = this._toKonvaCanvas(config).toDataURL(mimeType, quality);
+        const mimeType = config.mimeType || null, quality = config.quality || null;
+        const url = this._toKonvaCanvas(config).toDataURL(mimeType, quality);
         if (config.callback) {
             config.callback(url);
@@ -1045,5 +1045,5 @@
     }
     _off(type, name, callback) {
-        var evtListeners = this.eventListeners[type], i, evtName, handler;
+        let evtListeners = this.eventListeners[type], i, evtName, handler;
         for (i = 0; i < evtListeners.length; i++) {
             evtName = evtListeners[i].name;
@@ -1069,6 +1069,6 @@
     addName(name) {
         if (!this.hasName(name)) {
-            var oldName = this.name();
-            var newName = oldName ? oldName + ' ' + name : name;
+            const oldName = this.name();
+            const newName = oldName ? oldName + ' ' + name : name;
             this.name(newName);
         }
@@ -1083,10 +1083,10 @@
             return false;
         }
-        var names = (fullName || '').split(/\s/g);
+        const names = (fullName || '').split(/\s/g);
         return names.indexOf(name) !== -1;
     }
     removeName(name) {
-        var names = (this.name() || '').split(/\s/g);
-        var index = names.indexOf(name);
+        const names = (this.name() || '').split(/\s/g);
+        const index = names.indexOf(name);
         if (index !== -1) {
             names.splice(index, 1);
@@ -1096,5 +1096,5 @@
     }
     setAttr(attr, val) {
-        var func = this[SET + Util_1.Util._capitalize(attr)];
+        const func = this[SET + Util_1.Util._capitalize(attr)];
         if (Util_1.Util._isFunction(func)) {
             func.call(this, val);
@@ -1112,5 +1112,5 @@
     }
     _setAttr(key, val) {
-        var oldVal = this.attrs[key];
+        const oldVal = this.attrs[key];
         if (oldVal === val && !Util_1.Util.isObject(val)) {
             return;
@@ -1128,5 +1128,5 @@
     }
     _setComponentAttr(key, component, val) {
-        var oldVal;
+        let oldVal;
         if (val !== undefined) {
             oldVal = this.attrs[key];
@@ -1142,5 +1142,5 @@
             evt.target = this;
         }
-        var shouldStop = (eventType === MOUSEENTER || eventType === MOUSELEAVE) &&
+        const shouldStop = (eventType === MOUSEENTER || eventType === MOUSELEAVE) &&
             ((compareShape &&
                 (this === compareShape ||
@@ -1149,5 +1149,5 @@
         if (!shouldStop) {
             this._fire(eventType, evt);
-            var stopBubble = (eventType === MOUSEENTER || eventType === MOUSELEAVE) &&
+            const stopBubble = (eventType === MOUSEENTER || eventType === MOUSELEAVE) &&
                 compareShape &&
                 compareShape.isAncestorOf &&
@@ -1207,11 +1207,11 @@
     }
     _createDragElement(evt) {
-        var pointerId = evt ? evt.pointerId : undefined;
-        var stage = this.getStage();
-        var ap = this.getAbsolutePosition();
+        const pointerId = evt ? evt.pointerId : undefined;
+        const stage = this.getStage();
+        const ap = this.getAbsolutePosition();
         if (!stage) {
             return;
         }
-        var pos = stage._getPointerById(pointerId) ||
+        const pos = stage._getPointerById(pointerId) ||
             stage._changedPointerPositions[0] ||
             ap;
@@ -1244,9 +1244,9 @@
             return;
         }
-        var newNodePos = {
+        let newNodePos = {
             x: pos.x - elem.offset.x,
             y: pos.y - elem.offset.y,
         };
-        var dbf = this.dragBoundFunc();
+        const dbf = this.dragBoundFunc();
         if (dbf !== undefined) {
             const bounded = dbf.call(this, newNodePos, evt);
@@ -1285,6 +1285,6 @@
         this._dragCleanup();
         this.on('mousedown.konva touchstart.konva', function (evt) {
-            var shouldCheckButton = evt.evt['button'] !== undefined;
-            var canDrag = !shouldCheckButton || Global_1.Konva.dragButtons.indexOf(evt.evt['button']) >= 0;
+            const shouldCheckButton = evt.evt['button'] !== undefined;
+            const canDrag = !shouldCheckButton || Global_1.Konva.dragButtons.indexOf(evt.evt['button']) >= 0;
             if (!canDrag) {
                 return;
@@ -1293,5 +1293,5 @@
                 return;
             }
-            var hasDraggingChild = false;
+            let hasDraggingChild = false;
             DragAndDrop_1.DD._dragElements.forEach((elem) => {
                 if (this.isAncestorOf(elem.node)) {
@@ -1310,5 +1310,5 @@
         else {
             this._dragCleanup();
-            var stage = this.getStage();
+            const stage = this.getStage();
             if (!stage) {
                 return;
@@ -1349,5 +1349,5 @@
     }
     static _createNode(obj, container) {
-        var className = Node.prototype.getClassName.call(obj), children = obj.children, no, len, n;
+        let className = Node.prototype.getClassName.call(obj), children = obj.children, no, len, n;
         if (container) {
             obj.attrs.container = container;
