var svgEditorExtension_imagelib = (function () { 'use strict'; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function (obj) { return typeof obj; }; } else { _typeof = function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } /** * ext-imagelib.js * * @license MIT * * @copyright 2010 Alexis Deveria * */ var extImagelib = { name: 'imagelib', init: function init(_ref) { var $, decode64, importLocale, dropXMLInternalSubset, imagelibStrings, modularVersion, svgEditor, uiStrings, svgCanvas, extIconsPath, allowedImageLibOrigins, closeBrowser, importImage, pending, mode, multiArr, transferStopped, preview, submit, toggleMulti, showBrowser, buttons; return regeneratorRuntime.async(function init$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: showBrowser = function _ref9() { var browser = $('#imgbrowse'); if (!browser.length) { $('
' + '
').insertAfter('#svg_docprops'); browser = $('#imgbrowse'); var allLibs = imagelibStrings.select_lib; var libOpts = $('