!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):(e=e||self).svgEditor=t()}(this,(function(){"use strict";functione(t){return(e="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(t)}functiont(e,t,n,r,a,i,o){try{vars=e[i](o),l=s.value}catch(e){returnvoidn(e)}s.done?t(l):Promise.resolve(l).then(r,a)}functionn(e){returnfunction(){varn=this,r=arguments;returnnewPromise((function(a,i){varo=e.apply(n,r);functions(e){t(o,a,i,s,l,"next",e)}functionl(e){t(o,a,i,s,l,"throw",e)}s(void0)}))}}functionr(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}functioni(e,t,n){returnt&&a(e.prototype,t),n&&a(e,n),e}functiono(){return(o=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne}).apply(this,arguments)}functions(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}functionl(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}functionc(e,t){return(c=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}functionu(e,t,n){return(u=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnDate.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){varr=[null];r.push.apply(r,t);vara=new(Function.bind.apply(e,r));returnn&&c(a,n.prototype),a}).apply(null,arguments)}functiond(e){vart="function"==typeofMap?newMap:void0;return(d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))returne;varn;if("function"!=typeofe)thrownewTypeError("Super expression must either be null or a function");if(void0!==t){if(t.has(e))returnt.get(e);t.set(e,r)}functionr(){returnu(e,arguments,l(this).constructor)}returnr.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}functionh(e,t){return!t||"object"!=typeoft&&"function"!=typeoft?function(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}(e):t}functionp(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){if(!(Symbol.iteratorinObject(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;varn=[],r=!0,a=!1,i=void0;try{for(varo,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throwi}}returnn}(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance")}()}functionf(e){returnfunction(e){if(Array.isArray(e)){for(vart=0,n=newArray(e.length);t<e.length;t++)n[t]=e[t];returnn}}(e)||function(e){if(Symbol.iteratorinObject(e)||"[object Arguments]"===Object.prototype.toString.call(e))returnArray.from(e)}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance")}()}functiong(e,t){g=function(e,t){returnnewi(e,void0,t)};varn=d(RegExp),r=RegExp.prototype,a=newWeakMap;functioni(e,t,r){vari=n.call(this,e,t);returna.set(i,r||a.get(e)),i}functiono(e,t){varn=a.get(t);returnObject.keys(n).reduce((function(t,r){returnt[r]=e[n[r]],t}),Object.create(null))}returns(i,n),i.prototype.exec=function(e){vart=r.exec.call(this,e);returnt&&(t.groups=o(t,this)),t},i.prototype[Sym