Files
svgedit/dist/editor/extensions/ext-closepath/ext-closepath.js

13 lines
90 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var check=function(t){return t&&t.Math==Math&&t},e=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof t&&t)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},n=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o={f:i&&!r.call({1:2},1)?function propertyIsEnumerable(t){var e=i(this,t);return!!e&&e.enumerable}:r},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},a={}.toString,classofRaw=function(t){return a.call(t).slice(8,-1)},s="".split,u=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?s.call(t,""):Object(t)}:Object,requireObjectCoercible=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},toIndexedObject=function(t){return u(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,e){if(!isObject(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!isObject(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!isObject(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!isObject(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},c={}.hasOwnProperty,has=function(t,e){return c.call(t,e)},h=e.document,l=isObject(h)&&isObject(h.createElement),documentCreateElement=function(t){return l?h.createElement(t):{}},f=!n&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),_=Object.getOwnPropertyDescriptor,g={f:n?_:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),f)try{return _(t,e)}catch(t){}if(has(t,e))return createPropertyDescriptor(!o.f.call(t,e),t[e])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},S=Object.defineProperty,p={f:n?S:function defineProperty(t,e,n){if(anObject(t),e=toPrimitive(e,!0),anObject(n),f)try{return S(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},y=n?function(t,e,n){return p.f(t,e,createPropertyDescriptor(1,n))}:function(t,e,n){return t[e]=n,t},setGlobal=function(t,n){try{y(e,t,n)}catch(r){e[t]=n}return n},d=e["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),v=Function.toString;"function"!=typeof d.inspectSource&&(d.inspectSource=function(t){return v.call(t)});var m,P,b,A=d.inspectSource,C=e.WeakMap,x="function"==typeof C&&/native code/.test(A(C)),G=createCommonjsModule((function(t){(t.exports=function(t,e){return d[t]||(d[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),E=0,V=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++E+V).toString(36)},T=G("keys"),sharedKey=function(t){return T[t]||(T[t]=uid(t))},w={},O=e.WeakMap;if(x){var L=new O,R=L.get,I=L.has,k=L.set;m=function(t,e){return k.call(L,t,e),e},P=function(t){return R.call(L,t)||{}},b=function(t){return I.call(L,t)}}else{var j=sharedKey("state");w[j]=!0,m=function(t,e){return y(t,j,e),e},P=function(t){return has(t,j)?t[j]:{}},b=function(t){return has(t,j)}}var N,H,M={set:m,get:P,has:b,enforce:function(t){return b(t)?P(t):m(t,{})},getterFor:function(t){return function(e){var n;if(!isObject(e)||(n=P(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},U=createCommonjsModule((function(t){var n=M.get,r=M.enforce,i=String(String).split("String");(t.exports=function(t,n,o,a){var s=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof n||has(o,"name")||y(o,"name",n),r(o).source=i.join("string"==typeof n?n:"")),t!==e?(s?!c&&t[n]&&(u=!0):delete t[n],u?t[n]=o:y(t,n,o)):u?t[n]=o:setGlobal(n,o)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&n(this).source||A(this)}))})),B=e,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,n){return arguments.length<2?aFunction(B[t])||aFunction(e[t]):B[t]&&B[t][n]||e[t]&&e[t][n]},Q=Math.ceil,D=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?D:Q)(t)},z=Math.min,toLength=function(t){return t>0?z(toInteger(t),9007199254740991):0},W=Math.max,K=Math.min,toAbsoluteIndex=function(t,e){var n=toInteger(t);return n<0?W(n+e,0):K(n,e)},createMethod=function(t){return function(e,n,r){var i,o=toIndexedObject(e),a=toLength(o.length),s=toAbsoluteIndex(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},$={includes:createMethod(!0),indexOf:createMethod(!1)},q=$.indexOf,objectKeysInternal=function(t,e){var n,r=toIndexedObject(t),i=0,o=[];for(n in r)!has(w,n)&&has(r,n)&&o.push(n);for(;e.length>i;)has(r,n=e[i++])&&(~q(o,n)||o.push(n));return o},Z=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Y=Z.concat("length","prototype"),J={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,Y)}},X={f:Object.getOwnPropertySymbols},tt=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var e=J.f(anObject(t)),n=X.f;return n?e.concat(n(t)):e},copyConstructorProperties=function(t,e){for(var n=tt(e),r=p.f,i=g.f,o=0;o<n.length;o++){var a=n[o];has(t,a)||r(t,a,i(e,a))}},et=/#|\.prototype\./,isForced=function(t,e){var n=rt[nt(t)];return n==ot||n!=it&&("function"==typeof e?fails(e):!!e)},nt=isForced.normalize=function(t){return String(t).replace(et,".").toLowerCase()},rt=isForced.data={},it=isForced.NATIVE="N",ot=isForced.POLYFILL="P",at=isForced,st=g.f,_export=function(t,n){var r,i,o,a,s,u=t.target,c=t.global,h=t.stat;if(r=c?e:h?e[u]||setGlobal(u,{}):(e[u]||{}).prototype)for(i in n){if(a=n[i],o=t.noTargetGet?(s=st(r,i))&&s.value:r[i],!at(c?i:u+(h?".":"#")+i,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;copyConstructorProperties(a,o)}(t.sham||o&&o.sham)&&y(a,"sham",!0),U(r,i,a,t)}},aFunction$1=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},functionBindContext=function(t,e,n){if(aFunction$1(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},toObject=function(t){return Object(requireObjectCoercible(t))},ut=Array.isArray||function isArray(t){return"Array"==classofRaw(t)},ct=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),ht=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=G("wks"),ft=e.Symbol,_t=ht?ft:ft&&ft.withoutSetter||uid,wellKnownSymbol=function(t){return has(lt,t)||(ct&&has(ft,t)?lt[t]=ft[t]:lt[t]=_t("Symbol."+t)),lt[t]},gt=wellKnownSymbol("species"),arraySpeciesCreate=function(t,e){var n;return ut(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!ut(n.prototype)?isObject(n)&&null===(n=n[gt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},St=[].push,createMethod$1=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=5==t||o;return function(s,c,h,l){for(var f,_,g=toObject(s),S=u(g),p=functionBindContext(c,h,3),y=toLength(S.length),d=0,v=l||arraySpeciesCreate,m=e?v(s,y):n?v(s,0):void 0;y>d;d++)if((a||d in S)&&(_=p(f=S[d],d,g),t))if(e)m[d]=_;else if(_)switch(t){case 3:return!0;case 5:return f;case 6:return d;case 2:St.call(m,f)}else if(i)return!1;return o?-1:r||i?i:m}},pt={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6)},yt=getBuiltIn("navigator","userAgent")||"",dt=e.process,vt=dt&&dt.versions,mt=vt&&vt.v8;mt?H=(N=mt.split("."))[0]+N[1]:yt&&(!(N=yt.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=yt.match(/Chrome\/(\d+)/))&&(H=N[1]);var Pt=H&&+H,bt=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return Pt>=51||!fails((function(){var e=[];return(e.constructor={})[bt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},At=Object.defineProperty,Ct={},thrower=function(t){throw t},arrayMethodUsesToLength=function(t,e){if(has(Ct,t))return Ct[t];e||(e={});var r=[][t],i=!!has(e,"ACCESSORS")&&e.ACCESSORS,o=has(e,0)?e[0]:thrower,a=has(e,1)?e[1]:void 0;return Ct[t]=!!r&&!fails((function(){if(i&&!n)return!0;var t={length:-1};i?At(t,1,{enumerable:!0,get:thrower}):t[1]=1,r.call(t,o,a)}))},xt=pt.map,Gt=arrayMethodHasSpeciesSupport("map"),Et=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Gt||!Et},{map:function map(t){return xt(this,t,arguments.length>1?arguments[1]:void 0)}});var Vt=p.f,Tt=Function.prototype,wt=Tt.toString,Ot=/^\s*function ([^ (]*)/;n&&!("name"in Tt)&&Vt(Tt,"name",{configurable:!0,get:function(){try{return wt.call(this).match(Ot)[1]}catch(t){return""}}});var Lt=Object.keys||function keys(t){return objectKeysInternal(t,Z)},Rt=Object.assign,It=Object.defineProperty,kt=!Rt||fails((function(){if(n&&1!==Rt({b:1},Rt(It({},"a",{enumerable:!0,get:function(){It(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach((function(t){e[t]=t})),7!=Rt({},t)[r]||Lt(Rt({},e)).join("")!=i}))?function assign(t,e){for(var r=toObject(t),i=arguments.length,a=1,s=X.f,c=o.f;i>a;)for(var h,l=u(arguments[a++]),f=s?Lt(l).concat(s(l)):Lt(l),_=f.length,g=0;_>g;)h=f[g++],n&&!c.call(l,h)||(r[h]=l[h]);return r}:Rt;_export({target:"Object",stat:!0,forced:Object.assign!==kt},{assign:kt});var jt,Nt=n?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var n,r=Lt(e),i=r.length,o=0;i>o;)p.f(t,n=r[o++],e[n]);return t},Ht=getBuiltIn("document","documentElement"),Mt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"<\/script>"},NullProtoObject=function(){try{jt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;NullProtoObject=jt?function(t){t.write(scriptTag("")),t.close();var e=t.parentWindow.Object;return t=null,e}(jt):((e=documentCreateElement("iframe")).style.display="none",Ht.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F);for(var n=Z.length;n--;)delete NullProtoObject.prototype[Z[n]];return NullProtoObject()};w[Mt]=!0;var Ft=Object.create||function create(t,e){var n;return null!==t?(EmptyConstructor.prototype=anObject(t),n=new EmptyConstructor,EmptyConstructor.prototype=null,n[Mt]=t):n=NullProtoObject(),void 0===e?n:Nt(n,e)},Ut=J.f,Bt={}.toString,Qt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dt={f:function getOwnPropertyNames(t){return Qt&&"[object Window]"==Bt.call(t)?function(t){try{return Ut(t)}catch(t){return Qt.slice()}}(t):Ut(toIndexedObject(t))}},zt={f:wellKnownSymbol},Wt=p.f,defineWellKnownSymbol=function(t){var e=B.Symbol||(B.Symbol={});has(e,t)||Wt(e,t,{value:zt.f(t)})},Kt=p.f,$t=wellKnownSymbol("toStringTag"),setToStringTag=function(t,e,n){t&&!has(t=n?t:t.prototype,$t)&&Kt(t,$t,{configurable:!0,value:e})},qt=pt.forEach,Zt=sharedKey("hidden"),Yt=wellKnownSymbol("toPrimitive"),Jt=M.set,Xt=M.getterFor("Symbol"),te=Object.prototype,ee=e.Symbol,ne=getBuiltIn("JSON","stringify"),re=g.f,ie=p.f,oe=Dt.f,ae=o.f,se=G("symbols"),ue=G("op-symbols"),ce=G("string-to-symbol-registry"),he=G("symbol-to-string-registry"),le=G("wks"),fe=e.QObject,_e=!fe||!fe.prototype||!fe.prototype.findChild,ge=n&&fails((function(){return 7!=Ft(ie({},"a",{get:function(){return ie(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=re(te,e);r&&delete te[e],ie(t,e,n),r&&t!==te&&ie(te,e,r)}:ie,wrap=function(t,e){var r=se[t]=Ft(ee.prototype);return Jt(r,{type:"Symbol",tag:t,description:e}),n||(r.description=e),r},Se=ht?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ee},pe=function defineProperty(t,e,n){t===te&&pe(ue,e,n),anObject(t);var r=toPrimitive(e,!0);return anObject(n),has(se,r)?(n.enumerable?(has(t,Zt)&&t[Zt][r]&&(t[Zt][r]=!1),n=Ft(n,{enumerable:createPropertyDescriptor(0,!1)})):(has(t,Zt)||ie(t,Zt,createPropertyDescriptor(1,{})),t[Zt][r]=!0),ge(t,r,n)):ie(t,r,n)},ye=function defineProperties(t,e){anObject(t);var r=toIndexedObject(e),i=Lt(r).concat(Pe(r));return qt(i,(function(e){n&&!de.call(r,e)||pe(t,e,r[e])})),t},de=function propertyIsEnumerable(t){var e=toPrimitive(t,!0),n=ae.call(this,e);return!(this===te&&has(se,e)&&!has(ue,e))&&(!(n||!has(this,e)||!has(se,e)||has(this,Zt)&&this[Zt][e])||n)},ve=function getOwnPropertyDescriptor(t,e){var n=toIndexedObject(t),r=toPrimitive(e,!0);if(n!==te||!has(se,r)||has(ue,r)){var i=re(n,r);return!i||!has(se,r)||has(n,Zt)&&n[Zt][r]||(i.enumerable=!0),i}},me=function getOwnPropertyNames(t){var e=oe(toIndexedObject(t)),n=[];return qt(e,(function(t){has(se,t)||has(w,t)||n.push(t)})),n},Pe=function getOwnPropertySymbols(t){var e=t===te,n=oe(e?ue:toIndexedObject(t)),r=[];return qt(n,(function(t){!has(se,t)||e&&!has(te,t)||r.push(se[t])})),r};if(ct||(U((ee=function Symbol(){if(this instanceof ee)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=uid(t),setter=function(t){this===te&&setter.call(ue,t),has(this,Zt)&&has(this[Zt],e)&&(this[Zt][e]=!1),ge(this,e,createPropertyDescriptor(1,t))};return n&&_e&&ge(te,e,{configurable:!0,set:setter}),wrap(e,t)}).prototype,"toString",(function toString(){return Xt(this).tag})),U(ee,"withoutSetter",(function(t){return wrap(uid(t),t)})),o.f=de,p.f=pe,g.f=ve,J.f=Dt.f=me,X.f=Pe,zt.f=function(t){return wrap(wellKnownSymbol(t),t)},n&&(ie(ee.prototype,"description",{configurable:!0,get:function description(){return Xt(this).description}}),U(te,"propertyIsEnumerable",de,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!ct,sham:!ct},{Symbol:ee}),qt(Lt(le),(function(t){defineWellKnownSymbol(t)})),_export({target:"Symbol",stat:!0,forced:!ct},{for:function(t){var e=String(t);if(has(ce,e))return ce[e];var n=ee(e);return ce[e]=n,he[n]=e,n},keyFor:function keyFor(t){if(!Se(t))throw TypeError(t+" is not a symbol");if(has(he,t))return he[t]},useSetter:function(){_e=!0},useSimple:function(){_e=!1}}),_export({target:"Object",stat:!0,forced:!ct,sham:!n},{create:function create(t,e){return void 0===e?Ft(t):ye(Ft(t),e)},defineProperty:pe,defineProperties:ye,getOwnPropertyDescriptor:ve}),_export({target:"Object",stat:!0,forced:!ct},{getOwnPropertyNames:me,getOwnPropertySymbols:Pe}),_export({target:"Object",stat:!0,forced:fails((function(){X.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){return X.f(toObject(t))}}),ne){var be=!ct||fails((function(){var t=ee();return"[null]"!=ne([t])||"{}"!=ne({a:t})||"{}"!=ne(Object(t))}));_export({target:"JSON",stat:!0,forced:be},{stringify:function stringify(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(isObject(e)||void 0!==t)&&!Se(t))return ut(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Se(e))return e}),i[1]=e,ne.apply(null,i)}})}ee.prototype[Yt]||y(ee.prototype,Yt,ee.prototype.valueOf),setToStringTag(ee,"Symbol"),w[Zt]=!0;var Ae=p.f,Ce=e.Symbol;if(n&&"function"==typeof Ce&&(!("description"in Ce.prototype)||void 0!==Ce().description)){var xe={},Ge=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ge?new Ce(t):void 0===t?Ce():Ce(t);return""===t&&(xe[e]=!0),e};copyConstructorProperties(Ge,Ce);var Ee=Ge.prototype=Ce.prototype;Ee.constructor=Ge;var Ve=Ee.toString,Te="Symbol(test)"==String(Ce("test")),we=/^Symbol\((.*)\)[^)]+$/;Ae(Ee,"description",{configurable:!0,get:function description(){var t=isObject(this)?this.valueOf():this,e=Ve.call(t);if(has(xe,t))return"";var n=Te?e.slice(7,-1):e.replace(we,"$1");return""===n?void 0:n}}),_export({global:!0,forced:!0},{Symbol:Ge})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var arrayMethodIsStrict=function(t,e){var n=[][t];return!!n&&fails((function(){n.call(null,e||function(){throw 1},1)}))},Oe=pt.forEach,Le=arrayMethodIsStrict("forEach"),Re=arrayMethodUsesToLength("forEach"),Ie=Le&&Re?[].forEach:function forEach(t){return Oe(this,t,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Ie},{forEach:Ie});var ke=wellKnownSymbol("unscopables"),je=Array.prototype;null==je[ke]&&p.f(je,ke,{configurable:!0,value:Ft(null)});var Ne,He,Me,addToUnscopables=function(t){je[ke][t]=!0},Fe={},Ue=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Be=sharedKey("IE_PROTO"),Qe=Object.prototype,De=Ue?Object.getPrototypeOf:function(t){return t=toObject(t),has(t,Be)?t[Be]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Qe:null},ze=wellKnownSymbol("iterator"),We=!1;[].keys&&("next"in(Me=[].keys())?(He=De(De(Me)))!==Object.prototype&&(Ne=He):We=!0),null==Ne&&(Ne={}),has(Ne,ze)||y(Ne,ze,(function(){return this}));var Ke={IteratorPrototype:Ne,BUGGY_SAFARI_ITERATORS:We},$e=Ke.IteratorPrototype,returnThis$1=function(){return this},qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function setPrototypeOf(n,r){return anObject(n),function(t){if(!isObject(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Ze=Ke.IteratorPrototype,Ye=Ke.BUGGY_SAFARI_ITERATORS,Je=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(t,e,n,r,i,o,a){!function(t,e,n){var r=e+" Iterator";t.prototype=Ft($e,{next:createPropertyDescriptor(1,n)}),setToStringTag(t,r,!1),Fe[r]=returnThis$1}(n,e,r);var s,u,c,getIterationMethod=function(t){if(t===i&&g)return g;if(!Ye&&t in f)return f[t];switch(t){case"keys":return function keys(){return new n(this,t)};case"values":return function values(){return new n(this,t)};case"entries":return function entries(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",l=!1,f=t.prototype,_=f[Je]||f["@@iterator"]||i&&f[i],g=!Ye&&_||getIterationMethod(i),S="Array"==e&&f.entries||_;if(S&&(s=De(S.call(new t)),Ze!==Object.prototype&&s.next&&(De(s)!==Ze&&(qe?qe(s,Ze):"function"!=typeof s[Je]&&y(s,Je,returnThis$2)),setToStringTag(s,h,!0))),"values"==i&&_&&"values"!==_.name&&(l=!0,g=function values(){return _.call(this)}),f[Je]!==g&&y(f,Je,g),Fe[e]=g,i)if(u={values:getIterationMethod("values"),keys:o?g:getIterationMethod("keys"),entries:getIterationMethod("entries")},a)for(c in u)(Ye||l||!(c in f))&&U(f,c,u[c]);else _export({target:e,proto:!0,forced:Ye||l},u);return u},Xe=M.set,tn=M.getterFor("Array Iterator"),en=defineIterator(Array,"Array",(function(t,e){Xe(this,{type:"Array Iterator",target:toIndexedObject(t),index:0,kind:e})}),(function(){var t=tn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Fe.Arguments=Fe.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var nn=[].reverse,rn=[1,2];_export({target:"Array",proto:!0,forced:String(rn)===String(rn.reverse())},{reverse:function reverse(){return ut(this)&&(this.length=this.length),nn.call(this)}});var createProperty=function(t,e,n){var r=toPrimitive(e);r in t?p.f(t,r,createPropertyDescriptor(0,n)):t[r]=n},on=arrayMethodHasSpeciesSupport("slice"),an=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),sn=wellKnownSymbol("species"),un=[].slice,cn=Math.max;_export({target:"Array",proto:!0,forced:!on||!an},{slice:function slice(t,e){var n,r,i,o=toIndexedObject(this),a=toLength(o.length),s=toAbsoluteIndex(t,a),u=toAbsoluteIndex(void 0===e?a:e,a);if(ut(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!ut(n.prototype)?isObject(n)&&null===(n=n[sn])&&(n=void 0):n=void 0,n===Array||void 0===n))return un.call(o,s,u);for(r=new(void 0===n?Array:n)(cn(u-s,0)),i=0;s<u;s++,i++)s in o&&createProperty(r,i,o[s]);return r.length=i,r}});var hn=Date.prototype,ln=hn.toString,fn=hn.getTime;new Date(NaN)+""!="Invalid Date"&&U(hn,"toString",(function toString(){var t=fn.call(this);return t==t?ln.call(this):"Invalid Date"})),setToStringTag(e.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!n},{create:Ft}),_export({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperty:p.f});var _n=fails((function(){De(1)}));_export({target:"Object",stat:!0,forced:_n,sham:!Ue},{getPrototypeOf:function getPrototypeOf(t){return De(toObject(t))}}),_export({target:"Object",stat:!0},{setPrototypeOf:qe});var gn={};gn[wellKnownSymbol("toStringTag")]="z";var Sn="[object z]"===String(gn),pn=wellKnownSymbol("toStringTag"),yn="Arguments"==classofRaw(function(){return arguments}()),dn=Sn?classofRaw:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),pn))?n:yn?classofRaw(e):"Object"==(r=classofRaw(e))&&"function"==typeof e.callee?"Arguments":r},vn=Sn?{}.toString:function toString(){return"[object "+dn(this)+"]"};Sn||U(Object.prototype,"toString",vn,{unsafe:!0});var mn=e.Promise,Pn=wellKnownSymbol("species"),bn=wellKnownSymbol("iterator"),An=Array.prototype,Cn=wellKnownSymbol("iterator"),callWithSafeIterationClosing=function(t,e,n,r){try{return r?e(anObject(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&anObject(i.call(t)),e}},xn=createCommonjsModule((function(t){var Result=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,r,i){var o,a,s,u,c,h,l,f,_=functionBindContext(e,n,r?2:1);if(i)o=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[Cn]||t["@@iterator"]||Fe[dn(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(f=a)&&(Fe.Array===f||An[bn]===f)){for(s=0,u=toLength(t.length);u>s;s++)if((c=r?_(anObject(l=t[s])[0],l[1]):_(t[s]))&&c instanceof Result)return c;return new Result(!1)}o=a.call(t)}for(h=o.next;!(l=h.call(o)).done;)if("object"==typeof(c=callWithSafeIterationClosing(o,_,l.value,r))&&c&&c instanceof Result)return c;return new Result(!1)}).stop=function(t){return new Result(!0,t)}})),Gn=wellKnownSymbol("iterator"),En=!1;try{var Vn=0,Tn={next:function(){return{done:!!Vn++}},return:function(){En=!0}};Tn[Gn]=function(){return this},Array.from(Tn,(function(){throw 2}))}catch(t){}var wn,On,Ln,Rn=wellKnownSymbol("species"),speciesConstructor=function(t,e){var n,r=anObject(t).constructor;return void 0===r||null==(n=anObject(r)[Rn])?e:aFunction$1(n)},In=/(iphone|ipod|ipad).*applewebkit/i.test(yt),kn=e.location,jn=e.setImmediate,Nn=e.clearImmediate,Hn=e.process,Mn=e.MessageChannel,Fn=e.Dispatch,Un=0,Bn={},run=function(t){if(Bn.hasOwnProperty(t)){var e=Bn[t];delete Bn[t],e()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){e.postMessage(t+"",kn.protocol+"//"+kn.host)};jn&&Nn||(jn=function setImmediate(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Bn[++Un]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},wn(Un),Un},Nn=function clearImmediate(t){delete Bn[t]},"process"==classofRaw(Hn)?wn=function(t){Hn.nextTick(runner(t))}:Fn&&Fn.now?wn=function(t){Fn.now(runner(t))}:Mn&&!In?(Ln=(On=new Mn).port2,On.port1.onmessage=listener,wn=functionBindContext(Ln.postMessage,Ln,1)):!e.addEventListener||"function"!=typeof postMessage||e.importScripts||fails(post)||"file:"===kn.protocol?wn="onreadystatechange"in documentCreateElement("script")?function(t){Ht.appendChild(documentCreateElement("script")).onreadystatechange=function(){Ht.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}:(wn=post,e.addEventListener("message",listener,!1)));var Qn,Dn,zn,Wn,Kn,$n,qn,Zn,Yn={set:jn,clear:Nn},Jn=g.f,Xn=Yn.set,tr=e.MutationObserver||e.WebKitMutationObserver,er=e.process,nr=e.Promise,rr="process"==classofRaw(er),ir=Jn(e,"queueMicrotask"),or=ir&&ir.value;or||(Qn=function(){var t,e;for(rr&&(t=er.domain)&&t.exit();Dn;){e=Dn.fn,Dn=Dn.next;try{e()}catch(t){throw Dn?Wn():zn=void 0,t}}zn=void 0,t&&t.enter()},rr?Wn=function(){er.nextTick(Qn)}:tr&&!In?(Kn=!0,$n=document.createTextNode(""),new tr(Qn).observe($n,{characterData:!0}),Wn=function(){$n.data=Kn=!Kn}):nr&&nr.resolve?(qn=nr.resolve(void 0),Zn=qn.then,Wn=function(){Zn.call(qn,Qn)}):Wn=function(){Xn.call(e,Qn)});var ar,sr,ur,cr,hr=or||function(t){var e={fn:t,next:void 0};zn&&(zn.next=e),Dn||(Dn=e,Wn()),zn=e},PromiseCapability=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=aFunction$1(e),this.reject=aFunction$1(n)},lr={f:function(t){return new PromiseCapability(t)}},promiseResolve=function(t,e){if(anObject(t),isObject(e)&&e.constructor===t)return e;var n=lr.f(t);return(0,n.resolve)(e),n.promise},perform=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},fr=Yn.set,_r=wellKnownSymbol("species"),gr="Promise",Sr=M.get,pr=M.set,yr=M.getterFor(gr),dr=mn,vr=e.TypeError,mr=e.document,Pr=e.process,br=getBuiltIn("fetch"),Ar=lr.f,Cr=Ar,xr="process"==classofRaw(Pr),Gr=!!(mr&&mr.createEvent&&e.dispatchEvent),Er=at(gr,(function(){if(!(A(dr)!==String(dr))){if(66===Pt)return!0;if(!xr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Pt>=51&&/native code/.test(dr))return!1;var t=dr.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};return(t.constructor={})[_r]=FakePromise,!(t.then((function(){}))instanceof FakePromise)})),Vr=Er||!function(t,e){if(!e&&!En)return!1;var n=!1;try{var r={};r[Gn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){dr.all(t).catch((function(){}))})),isThenable=function(t){var e;return!(!isObject(t)||"function"!=typeof(e=t.then))&&e},notify$1=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;hr((function(){for(var i=e.value,o=1==e.state,a=0;r.length>a;){var s,u,c,h=r[a++],l=o?h.ok:h.fail,f=h.resolve,_=h.reject,g=h.domain;try{l?(o||(2===e.rejection&&onHandleUnhandled(t,e),e.rejection=1),!0===l?s=i:(g&&g.enter(),s=l(i),g&&(g.exit(),c=!0)),s===h.promise?_(vr("Promise-chain cycle")):(u=isThenable(s))?u.call(s,f,_):f(s)):_(i)}catch(t){g&&!c&&g.exit(),_(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&onUnhandled(t,e)}))}},dispatchEvent=function(t,n,r){var i,o;Gr?((i=mr.createEvent("Event")).promise=n,i.reason=r,i.initEvent(t,!1,!0),e.dispatchEvent(i)):i={promise:n,reason:r},(o=e["on"+t])?o(i):"unhandledrejection"===t&&function(t,n){var r=e.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,n))}("Unhandled promise rejection",r)},onUnhandled=function(t,n){fr.call(e,(function(){var e,r=n.value;if(isUnhandled(n)&&(e=perform((function(){xr?Pr.emit("unhandledRejection",r,t):dispatchEvent("unhandledrejection",t,r)})),n.rejection=xr||isUnhandled(n)?2:1,e.error))throw e.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t,n){fr.call(e,(function(){xr?Pr.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,n.value)}))},bind=function(t,e,n,r){return function(i){t(e,n,i,r)}},internalReject=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,notify$1(t,e,!0))},internalResolve=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw vr("Promise can't be resolved itself");var i=isThenable(n);i?hr((function(){var r={done:!1};try{i.call(n,bind(internalResolve,t,r,e),bind(internalReject,t,r,e))}catch(n){internalReject(t,r,n,e)}})):(e.value=n,e.state=1,notify$1(t,e,!1))}catch(n){internalReject(t,{done:!1},n,e)}}};Er&&(dr=function Promise(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,dr,gr),aFunction$1(t),ar.call(this);var e=Sr(this);try{t(bind(internalResolve,this,e),bind(internalReject,this,e))}catch(t){internalReject(this,e,t)}},(ar=function Promise(t){pr(this,{type:gr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)U(t,r,e[r],n);return t}(dr.prototype,{then:function then(t,e){var n=yr(this),r=Ar(speciesConstructor(this,dr));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=xr?Pr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&notify$1(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),sr=function(){var t=new ar,e=Sr(t);this.promise=t,this.resolve=bind(internalResolve,t,e),this.reject=bind(internalReject,t,e)},lr.f=Ar=function(t){return t===dr||t===ur?new sr(t):Cr(t)},"function"==typeof mn&&(cr=mn.prototype.then,U(mn.prototype,"then",(function then(t,e){var n=this;return new dr((function(t,e){cr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof br&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return promiseResolve(dr,br.apply(e,arguments))}}))),_export({global:!0,wrap:!0,forced:Er},{Promise:dr}),setToStringTag(dr,gr,!1),function(t){var e=getBuiltIn(t),r=p.f;n&&e&&!e[Pn]&&r(e,Pn,{configurable:!0,get:function(){return this}})}(gr),ur=getBuiltIn(gr),_export({target:gr,stat:!0,forced:Er},{reject:function reject(t){var e=Ar(this);return e.reject.call(void 0,t),e.promise}}),_export({target:gr,stat:!0,forced:Er},{resolve:function resolve(t){return promiseResolve(this,t)}}),_export({target:gr,stat:!0,forced:Vr},{all:function all(t){var e=this,n=Ar(e),r=n.resolve,i=n.reject,o=perform((function(){var n=aFunction$1(e.resolve),o=[],a=0,s=1;xn(t,(function(t){var u=a++,c=!1;o.push(void 0),s++,n.call(e,t).then((function(t){c||(c=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function race(t){var e=this,n=Ar(e),r=n.reject,i=perform((function(){var i=aFunction$1(e.resolve);xn(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var regexpFlags=function(){var t=anObject(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Tr=RegExp.prototype,wr=Tr.toString,Or=fails((function(){return"/a/b"!=wr.call({source:"a",flags:"b"})})),Lr="toString"!=wr.name;(Or||Lr)&&U(RegExp.prototype,"toString",(function toString(){var t=anObject(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Tr)?regexpFlags.call(t):n)}),{unsafe:!0});var createMethod$2=function(t){return function(e,n){var r,i,o=String(requireObjectCoercible(e)),a=toInteger(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):r:t?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},Rr={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},Ir=Rr.charAt,kr=M.set,jr=M.getterFor("String Iterator");defineIterator(String,"String",(function(t){kr(this,{type:"String Iterator",string:String(t),index:0})}),(function next(){var t,e=jr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Ir(n,r),e.index+=t.length,{value:t,done:!1})}));var Nr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var Hr in Nr){var Mr=e[Hr],Fr=Mr&&Mr.prototype;if(Fr&&Fr.forEach!==Ie)try{y(Fr,"forEach",Ie)}catch(t){Fr.forEach=Ie}}var Ur=wellKnownSymbol("iterator"),Br=wellKnownSymbol("toStringTag"),Qr=en.values;for(var Dr in Nr){var zr=e[Dr],Wr=zr&&zr.prototype;if(Wr){if(Wr[Ur]!==Qr)try{y(Wr,Ur,Qr)}catch(t){Wr[Ur]=Qr}if(Wr[Br]||y(Wr,Br,Dr),Nr[Dr])for(var Kr in en)if(Wr[Kr]!==en[Kr])try{y(Wr,Kr,en[Kr])}catch(t){Wr[Kr]=en[Kr]}}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function asyncGeneratorStep(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function _next(t){asyncGeneratorStep(o,r,i,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(o,r,i,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t})(t,e)}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _createSuper(t){var e=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function _createSuperInternal(){var n,r=_getPrototypeOf(t);if(e){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}createCommonjsModule((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function define(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,n){return t[e]=n}}function wrap(t,e,n,r){var i=e&&e.prototype instanceof Generator?e:Generator,o=Object.create(i.prototype),a=new Context(r||[]);return o._invoke=function makeInvokeMethod(t,e,n){var r=u;return function invoke(i,o){if(r===h)throw new Error("Generator is already running");if(r===l){if("throw"===i)throw o;return doneResult()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=maybeInvokeDelegate(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=l,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var _=tryCatch(t,e,n);if("normal"===_.type){if(r=n.done?l:c,_.arg===f)continue;return{value:_.arg,done:n.done}}"throw"===_.type&&(r=l,n.method="throw",n.arg=_.arg)}}}(t,n,a),o}function tryCatch(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var u="suspendedStart",c="suspendedYield",h="executing",l="completed",f={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var _={};_[o]=function(){return this};var g=Object.getPrototypeOf,S=g&&g(g(values([])));S&&S!==n&&r.call(S,o)&&(_=S);var p=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(_);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){var n;this._invoke=function enqueue(i,o){function callInvokeWithMethodAndArg(){return new e((function(n,a){!function invoke(n,i,o,a){var s=tryCatch(t[n],t,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===_typeof(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){invoke("next",t,o,a)}),(function(t){invoke("throw",t,o,a)})):e.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return invoke("throw",t,o,a)}))}a(s.arg)}(i,o,n,a)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,maybeInvokeDelegate(t,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var i=tryCatch(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function next(){for(;++i<t.length;)if(r.call(t,i))return next.value=t[i],next.done=!1,next;return next.value=e,next.done=!0,next};return a.next=a}}return{next:doneResult}}function doneResult(){return{value:e,done:!0}}return GeneratorFunction.prototype=p.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[a]=function(){return this},t.AsyncIterator=AsyncIterator,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new AsyncIterator(wrap(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(p),define(p,s,"Generator"),p[o]=function(){return this},p.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function next(){for(;e.length;){var n=e.pop();if(n in t)return next.value=n,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(resetTryEntry),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(t){if(this.done)throw t;var n=this;function handle(r,i){return a.type="throw",a.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return handle(o.catchLoc,!0);if(this.prev<o.finallyLoc)return handle(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return handle(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return handle(o.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),f}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;resetTryEntry(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,n,r){return this.delegate={iterator:values(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),f}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var $r=wellKnownSymbol("isConcatSpreadable"),qr=Pt>=51||!fails((function(){var t=[];return t[$r]=!1,t.concat()[0]!==t})),Zr=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(t){if(!isObject(t))return!1;var e=t[$r];return void 0!==e?!!e:ut(t)};_export({target:"Array",proto:!0,forced:!qr||!Zr},{concat:function concat(t){var e,n,r,i,o,a=toObject(this),s=arraySpeciesCreate(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(isConcatSpreadable(o=-1===e?a:arguments[e])){if(u+(i=toLength(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,u++)n in o&&createProperty(s,u,o[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(s,u++,o)}return s.length=u,s}});var Yr=pt.find,Jr=!0,Xr=arrayMethodUsesToLength("find");"find"in[]&&Array(1).find((function(){Jr=!1})),_export({target:"Array",proto:!0,forced:Jr||!Xr},{find:function find(t){return Yr(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("find");var ti=$.includes,ei=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!ei},{includes:function includes(t){return ti(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var ni=[].join,ri=u!=Object,ii=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:ri||!ii},{join:function join(t){return ni.call(toIndexedObject(this),void 0===t?",":t)}});var oi=pt.some,ai=arrayMethodIsStrict("some"),si=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!ai||!si},{some:function some(t){return oi(this,t,arguments.length>1?arguments[1]:void 0)}});var ui=o.f,createMethod$3=function(t){return function(e){for(var r,i=toIndexedObject(e),o=Lt(i),a=o.length,s=0,u=[];a>s;)r=o[s++],n&&!ui.call(i,r)||u.push(t?[r,i[r]]:i[r]);return u}},ci={entries:createMethod$3(!0),values:createMethod$3(!1)}.entries;function RE(t,e){return RegExp(t,e)}_export({target:"Object",stat:!0},{entries:function entries(t){return ci(t)}});var hi,li,fi={UNSUPPORTED_Y:fails((function(){var t=RE("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:fails((function(){var t=RE("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},_i=RegExp.prototype.exec,gi=String.prototype.replace,Si=_i,pi=(hi=/a/,li=/b*/g,_i.call(hi,"a"),_i.call(li,"a"),0!==hi.lastIndex||0!==li.lastIndex),yi=fi.UNSUPPORTED_Y||fi.BROKEN_CARET,di=void 0!==/()??/.exec("")[1];(pi||di||yi)&&(Si=function exec(t){var e,n,r,i,o=this,a=yi&&o.sticky,s=regexpFlags.call(o),u=o.source,c=0,h=t;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),h=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(u="(?: "+u+")",h=" "+h,c++),n=new RegExp("^(?:"+u+")",s)),di&&(n=new RegExp("^"+u+"$(?!\\s)",s)),pi&&(e=o.lastIndex),r=_i.call(a?n:o,h),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:pi&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),di&&r&&r.length>1&&gi.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var vi=Si;_export({target:"RegExp",proto:!0,forced:/./.exec!==vi},{exec:vi});var mi=wellKnownSymbol("match"),isRegexp=function(t){var e;return isObject(t)&&(void 0!==(e=t[mi])?!!e:"RegExp"==classofRaw(t))},notARegexp=function(t){if(isRegexp(t))throw TypeError("The method doesn't accept regular expressions");return t},Pi=wellKnownSymbol("match");_export({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Pi]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function includes(t){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(t),arguments.length>1?arguments[1]:void 0)}});var bi=wellKnownSymbol("species"),Ai=!fails((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Ci="$0"==="a".replace(/./,"$0"),xi=wellKnownSymbol("replace"),Gi=!!/./[xi]&&""===/./[xi]("a","$0"),Ei=!fails((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Vi=Rr.charAt,advanceStringIndex=function(t,e,n){return e+(n?Vi(t,e).length:1)},regexpExecAbstract=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==classofRaw(t))throw TypeError("RegExp#exec called on incompatible receiver");return vi.call(t,e)},Ti=[].push,wi=Math.min,Oi=!fails((function(){return!RegExp(4294967295,"y")}));!function(t,e,n,r){var i=wellKnownSymbol(t),o=!fails((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!fails((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[bi]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||"replace"===t&&(!Ai||!Ci||Gi)||"split"===t&&!Ei){var s=/./[i],u=n(i,""[t],(function(t,e,n,r,i){return e.exec===vi?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Ci,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Gi}),c=u[0],h=u[1];U(String.prototype,t,c),U(RegExp.prototype,i,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)})}r&&y(RegExp.prototype[i],"sham",!0)}("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(requireObjectCoercible(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!isRegexp(t))return e.call(r,t,i);for(var o,a,s,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,l=new RegExp(t.source,c+"g");(o=vi.call(l,r))&&!((a=l.lastIndex)>h&&(u.push(r.slice(h,o.index)),o.length>1&&o.index<r.length&&Ti.apply(u,o.slice(1)),s=o[0].length,h=a,u.length>=i));)l.lastIndex===o.index&&l.lastIndex++;return h===r.length?!s&&l.test("")||u.push(""):u.push(r.slice(h)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function split(e,n){var i=requireObjectCoercible(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var o=n(r,t,this,i,r!==e);if(o.done)return o.value;var a=anObject(t),s=String(this),u=speciesConstructor(a,RegExp),c=a.unicode,h=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Oi?"y":"g"),l=new u(Oi?a:"^(?:"+a.source+")",h),f=void 0===i?4294967295:i>>>0;if(0===f)return[];if(0===s.length)return null===regexpExecAbstract(l,s)?[s]:[];for(var _=0,g=0,S=[];g<s.length;){l.lastIndex=Oi?g:0;var p,y=regexpExecAbstract(l,Oi?s:s.slice(g));if(null===y||(p=wi(toLength(l.lastIndex+(Oi?0:g)),s.length))===_)g=advanceStringIndex(s,g,c);else{if(S.push(s.slice(_,g)),S.length===f)return S;for(var d=1;d<=y.length-1;d++)if(S.push(y[d]),S.length===f)return S;g=_=p}}return S.push(s.slice(_)),S}]}),!Oi);var Li="\t\n\v\f\r    \u2028\u2029\ufeff",Ri="["+Li+"]",Ii=RegExp("^"+Ri+Ri+"*"),ki=RegExp(Ri+Ri+"*$"),createMethod$4=function(t){return function(e){var n=String(requireObjectCoercible(e));return 1&t&&(n=n.replace(Ii,"")),2&t&&(n=n.replace(ki,"")),n}},ji={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},Ni=ji.trim;_export({target:"String",proto:!0,forced:function(t){return fails((function(){return!!Li[t]()||"…"!="…"[t]()||Li[t].name!==t}))}("trim")},{trim:function trim(){return Ni(this)}});var Hi=/"/g;_export({target:"String",proto:!0,forced:function(t){return fails((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("bold")},{bold:function bold(){return t="b",e="",n="",r=String(requireObjectCoercible(this)),i="<"+t,""!==e&&(i+=" "+e+'="'+String(n).replace(Hi,"&quot;")+'"'),i+">"+r+"</"+t+">";var t,e,n,r,i}});
/**
* Localizing script for SVG-edit UI.
* @module locale
* @license MIT
*
* @copyright 2010 Narendra Sisodya
* @copyright 2010 Alexis Deveria
*
*/
jQuery;var Mi=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(t,e){var n;return regeneratorRuntime.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,import("./extensions/ext-".concat(t,"/locale/").concat(e,".js"));case 3:n=r.sent,r.next=12;break;case 6:return r.prev=6,r.t0=r.catch(0),console.error("Missing translation (".concat(e,") for extension ").concat(t," - using 'en'")),r.next=11,import("./extensions/ext-".concat(t,"/locale/en.js"));case 11:n=r.sent;case 12:return r.abrupt("return",n.default);case 13:case"end":return r.stop()}}),_callee2,null,[[0,6]])})));return function loadExtensionTranslation(e,n){return t.apply(this,arguments)}}(),Fi=arrayMethodHasSpeciesSupport("splice"),Ui=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),Bi=Math.max,Qi=Math.min;_export({target:"Array",proto:!0,forced:!Fi||!Ui},{splice:function splice(t,e){var n,r,i,o,a,s,u=toObject(this),c=toLength(u.length),h=toAbsoluteIndex(t,c),l=arguments.length;if(0===l?n=r=0:1===l?(n=0,r=c-h):(n=l-2,r=Qi(Bi(toInteger(e),0),c-h)),c+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=arraySpeciesCreate(u,r),o=0;o<r;o++)(a=h+o)in u&&createProperty(i,o,u[a]);if(i.length=r,n<r){for(o=h;o<c-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:delete u[s];for(o=c;o>c-r+n;o--)delete u[o-1]}else if(n>r)for(o=c-r;o>h;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:delete u[s];for(o=0;o<n;o++)u[o+h]=arguments[o+2];return u.length=c-r+n,i}});var Di=[].slice,zi={},construct=function(t,e,n){if(!(e in zi)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";zi[e]=Function("C,a","return new C("+r.join(",")+")")}return zi[e](t,n)},Wi=Function.bind||function bind(t){var e=aFunction$1(this),n=Di.call(arguments,1),r=function bound(){var i=n.concat(Di.call(arguments));return this instanceof r?construct(e,i.length,i):e.apply(t,i)};return isObject(e.prototype)&&(r.prototype=e.prototype),r};_export({target:"Function",proto:!0},{bind:Wi}),_export({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperties:Nt}),function(){if(!("SVGPathSeg"in window)){var t=function(){function _SVGPathSeg(t,e,n){_classCallCheck(this,_SVGPathSeg),this.pathSegType=t,this.pathSegTypeAsLetter=e,this._owningPathSegList=n}return _createClass(_SVGPathSeg,[{key:"_segmentChanged",value:function _segmentChanged(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)}}]),_SVGPathSeg}();t.prototype.classname="SVGPathSeg",t.PATHSEG_UNKNOWN=0,t.PATHSEG_CLOSEPATH=1,t.PATHSEG_MOVETO_ABS=2,t.PATHSEG_MOVETO_REL=3,t.PATHSEG_LINETO_ABS=4,t.PATHSEG_LINETO_REL=5,t.PATHSEG_CURVETO_CUBIC_ABS=6,t.PATHSEG_CURVETO_CUBIC_REL=7,t.PATHSEG_CURVETO_QUADRATIC_ABS=8,t.PATHSEG_CURVETO_QUADRATIC_REL=9,t.PATHSEG_ARC_ABS=10,t.PATHSEG_ARC_REL=11,t.PATHSEG_LINETO_HORIZONTAL_ABS=12,t.PATHSEG_LINETO_HORIZONTAL_REL=13,t.PATHSEG_LINETO_VERTICAL_ABS=14,t.PATHSEG_LINETO_VERTICAL_REL=15,t.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,t.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19;var e=function(e){_inherits(_SVGPathSegClosePath,e);var n=_createSuper(_SVGPathSegClosePath);function _SVGPathSegClosePath(e){return _classCallCheck(this,_SVGPathSegClosePath),n.call(this,t.PATHSEG_CLOSEPATH,"z",e)}return _createClass(_SVGPathSegClosePath,[{key:"toString",value:function toString(){return"[object SVGPathSegClosePath]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter}},{key:"clone",value:function clone(){return new _SVGPathSegClosePath(void 0)}}]),_SVGPathSegClosePath}(t),n=function(e){_inherits(_SVGPathSegMovetoAbs,e);var n=_createSuper(_SVGPathSegMovetoAbs);function _SVGPathSegMovetoAbs(e,r,i){var o;return _classCallCheck(this,_SVGPathSegMovetoAbs),(o=n.call(this,t.PATHSEG_MOVETO_ABS,"M",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegMovetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegMovetoAbs}(t);Object.defineProperties(n.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var r=function(e){_inherits(_SVGPathSegMovetoRel,e);var n=_createSuper(_SVGPathSegMovetoRel);function _SVGPathSegMovetoRel(e,r,i){var o;return _classCallCheck(this,_SVGPathSegMovetoRel),(o=n.call(this,t.PATHSEG_MOVETO_REL,"m",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegMovetoRel,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoRel(void 0,this._x,this._y)}}]),_SVGPathSegMovetoRel}(t);Object.defineProperties(r.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var i=function(e){_inherits(_SVGPathSegLinetoAbs,e);var n=_createSuper(_SVGPathSegLinetoAbs);function _SVGPathSegLinetoAbs(e,r,i){var o;return _classCallCheck(this,_SVGPathSegLinetoAbs),(o=n.call(this,t.PATHSEG_LINETO_ABS,"L",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegLinetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegLinetoAbs}(t);Object.defineProperties(i.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var o=function(e){_inherits(_SVGPathSegLinetoRel,e);var n=_createSuper(_SVGPathSegLinetoRel);function _SVGPathSegLinetoRel(e,r,i){var o;return _classCallCheck(this,_SVGPathSegLinetoRel),(o=n.call(this,t.PATHSEG_LINETO_REL,"l",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegLinetoRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoRel(void 0,this._x,this._y)}}]),_SVGPathSegLinetoRel}(t);Object.defineProperties(o.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var a=function(e){_inherits(_SVGPathSegCurvetoCubicAbs,e);var n=_createSuper(_SVGPathSegCurvetoCubicAbs);function _SVGPathSegCurvetoCubicAbs(e,r,i,o,a,s,u){var c;return _classCallCheck(this,_SVGPathSegCurvetoCubicAbs),(c=n.call(this,t.PATHSEG_CURVETO_CUBIC_ABS,"C",e))._x=r,c._y=i,c._x1=o,c._y1=a,c._x2=s,c._y2=u,c}return _createClass(_SVGPathSegCurvetoCubicAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicAbs}(t);Object.defineProperties(a.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(t){this._x1=t,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(t){this._y1=t,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(t){this._x2=t,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(t){this._y2=t,this._segmentChanged()},enumerable:!0}});var s=function(e){_inherits(_SVGPathSegCurvetoCubicRel,e);var n=_createSuper(_SVGPathSegCurvetoCubicRel);function _SVGPathSegCurvetoCubicRel(e,r,i,o,a,s,u){var c;return _classCallCheck(this,_SVGPathSegCurvetoCubicRel),(c=n.call(this,t.PATHSEG_CURVETO_CUBIC_REL,"c",e))._x=r,c._y=i,c._x1=o,c._y1=a,c._x2=s,c._y2=u,c}return _createClass(_SVGPathSegCurvetoCubicRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicRel}(t);Object.defineProperties(s.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(t){this._x1=t,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(t){this._y1=t,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(t){this._x2=t,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(t){this._y2=t,this._segmentChanged()},enumerable:!0}});var u=function(e){_inherits(_SVGPathSegCurvetoQuadraticAbs,e);var n=_createSuper(_SVGPathSegCurvetoQuadraticAbs);function _SVGPathSegCurvetoQuadraticAbs(e,r,i,o,a){var s;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticAbs),(s=n.call(this,t.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",e))._x=r,s._y=i,s._x1=o,s._y1=a,s}return _createClass(_SVGPathSegCurvetoQuadraticAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)}}]),_SVGPathSegCurvetoQuadraticAbs}(t);Object.defineProperties(u.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(t){this._x1=t,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(t){this._y1=t,this._segmentChanged()},enumerable:!0}});var c=function(e){_inherits(_SVGPathSegCurvetoQuadraticRel,e);var n=_createSuper(_SVGPathSegCurvetoQuadraticRel);function _SVGPathSegCurvetoQuadraticRel(e,r,i,o,a){var s;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticRel),(s=n.call(this,t.PATHSEG_CURVETO_QUADRATIC_REL,"q",e))._x=r,s._y=i,s._x1=o,s._y1=a,s}return _createClass(_SVGPathSegCurvetoQuadraticRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)}}]),_SVGPathSegCurvetoQuadraticRel}(t);Object.defineProperties(c.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(t){this._x1=t,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(t){this._y1=t,this._segmentChanged()},enumerable:!0}});var h=function(e){_inherits(_SVGPathSegArcAbs,e);var n=_createSuper(_SVGPathSegArcAbs);function _SVGPathSegArcAbs(e,r,i,o,a,s,u,c){var h;return _classCallCheck(this,_SVGPathSegArcAbs),(h=n.call(this,t.PATHSEG_ARC_ABS,"A",e))._x=r,h._y=i,h._r1=o,h._r2=a,h._angle=s,h._largeArcFlag=u,h._sweepFlag=c,h}return _createClass(_SVGPathSegArcAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegArcAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)}}]),_SVGPathSegArcAbs}(t);Object.defineProperties(h.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},r1:{get:function get(){return this._r1},set:function set(t){this._r1=t,this._segmentChanged()},enumerable:!0},r2:{get:function get(){return this._r2},set:function set(t){this._r2=t,this._segmentChanged()},enumerable:!0},angle:{get:function get(){return this._angle},set:function set(t){this._angle=t,this._segmentChanged()},enumerable:!0},largeArcFlag:{get:function get(){return this._largeArcFlag},set:function set(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0},sweepFlag:{get:function get(){return this._sweepFlag},set:function set(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}});var l=function(e){_inherits(_SVGPathSegArcRel,e);var n=_createSuper(_SVGPathSegArcRel);function _SVGPathSegArcRel(e,r,i,o,a,s,u,c){var h;return _classCallCheck(this,_SVGPathSegArcRel),(h=n.call(this,t.PATHSEG_ARC_REL,"a",e))._x=r,h._y=i,h._r1=o,h._r2=a,h._angle=s,h._largeArcFlag=u,h._sweepFlag=c,h}return _createClass(_SVGPathSegArcRel,[{key:"toString",value:function toString(){return"[object SVGPathSegArcRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)}}]),_SVGPathSegArcRel}(t);Object.defineProperties(l.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},r1:{get:function get(){return this._r1},set:function set(t){this._r1=t,this._segmentChanged()},enumerable:!0},r2:{get:function get(){return this._r2},set:function set(t){this._r2=t,this._segmentChanged()},enumerable:!0},angle:{get:function get(){return this._angle},set:function set(t){this._angle=t,this._segmentChanged()},enumerable:!0},largeArcFlag:{get:function get(){return this._largeArcFlag},set:function set(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0},sweepFlag:{get:function get(){return this._sweepFlag},set:function set(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}});var f=function(e){_inherits(_SVGPathSegLinetoHorizontalAbs,e);var n=_createSuper(_SVGPathSegLinetoHorizontalAbs);function _SVGPathSegLinetoHorizontalAbs(e,r){var i;return _classCallCheck(this,_SVGPathSegLinetoHorizontalAbs),(i=n.call(this,t.PATHSEG_LINETO_HORIZONTAL_ABS,"H",e))._x=r,i}return _createClass(_SVGPathSegLinetoHorizontalAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoHorizontalAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoHorizontalAbs(void 0,this._x)}}]),_SVGPathSegLinetoHorizontalAbs}(t);Object.defineProperty(f.prototype,"x",{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0});var _=function(e){_inherits(_SVGPathSegLinetoHorizontalRel,e);var n=_createSuper(_SVGPathSegLinetoHorizontalRel);function _SVGPathSegLinetoHorizontalRel(e,r){var i;return _classCallCheck(this,_SVGPathSegLinetoHorizontalRel),(i=n.call(this,t.PATHSEG_LINETO_HORIZONTAL_REL,"h",e))._x=r,i}return _createClass(_SVGPathSegLinetoHorizontalRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoHorizontalRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoHorizontalRel(void 0,this._x)}}]),_SVGPathSegLinetoHorizontalRel}(t);Object.defineProperty(_.prototype,"x",{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0});var g=function(e){_inherits(_SVGPathSegLinetoVerticalAbs,e);var n=_createSuper(_SVGPathSegLinetoVerticalAbs);function _SVGPathSegLinetoVerticalAbs(e,r){var i;return _classCallCheck(this,_SVGPathSegLinetoVerticalAbs),(i=n.call(this,t.PATHSEG_LINETO_VERTICAL_ABS,"V",e))._y=r,i}return _createClass(_SVGPathSegLinetoVerticalAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoVerticalAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoVerticalAbs(void 0,this._y)}}]),_SVGPathSegLinetoVerticalAbs}(t);Object.defineProperty(g.prototype,"y",{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0});var S=function(e){_inherits(_SVGPathSegLinetoVerticalRel,e);var n=_createSuper(_SVGPathSegLinetoVerticalRel);function _SVGPathSegLinetoVerticalRel(e,r){var i;return _classCallCheck(this,_SVGPathSegLinetoVerticalRel),(i=n.call(this,t.PATHSEG_LINETO_VERTICAL_REL,"v",e))._y=r,i}return _createClass(_SVGPathSegLinetoVerticalRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoVerticalRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoVerticalRel(void 0,this._y)}}]),_SVGPathSegLinetoVerticalRel}(t);Object.defineProperty(S.prototype,"y",{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0});var p=function(e){_inherits(_SVGPathSegCurvetoCubicSmoothAbs,e);var n=_createSuper(_SVGPathSegCurvetoCubicSmoothAbs);function _SVGPathSegCurvetoCubicSmoothAbs(e,r,i,o,a){var s;return _classCallCheck(this,_SVGPathSegCurvetoCubicSmoothAbs),(s=n.call(this,t.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",e))._x=r,s._y=i,s._x2=o,s._y2=a,s}return _createClass(_SVGPathSegCurvetoCubicSmoothAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicSmoothAbs}(t);Object.defineProperties(p.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(t){this._x2=t,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(t){this._y2=t,this._segmentChanged()},enumerable:!0}});var y=function(e){_inherits(_SVGPathSegCurvetoCubicSmoothRel,e);var n=_createSuper(_SVGPathSegCurvetoCubicSmoothRel);function _SVGPathSegCurvetoCubicSmoothRel(e,r,i,o,a){var s;return _classCallCheck(this,_SVGPathSegCurvetoCubicSmoothRel),(s=n.call(this,t.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",e))._x=r,s._y=i,s._x2=o,s._y2=a,s}return _createClass(_SVGPathSegCurvetoCubicSmoothRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicSmoothRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicSmoothRel}(t);Object.defineProperties(y.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(t){this._x2=t,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(t){this._y2=t,this._segmentChanged()},enumerable:!0}});var d=function(e){_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs,e);var n=_createSuper(_SVGPathSegCurvetoQuadraticSmoothAbs);function _SVGPathSegCurvetoQuadraticSmoothAbs(e,r,i){var o;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticSmoothAbs),(o=n.call(this,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegCurvetoQuadraticSmoothAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)}}]),_SVGPathSegCurvetoQuadraticSmoothAbs}(t);Object.defineProperties(d.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}});var v=function(e){_inherits(_SVGPathSegCurvetoQuadraticSmoothRel,e);var n=_createSuper(_SVGPathSegCurvetoQuadraticSmoothRel);function _SVGPathSegCurvetoQuadraticSmoothRel(e,r,i){var o;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticSmoothRel),(o=n.call(this,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegCurvetoQuadraticSmoothRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)}}]),_SVGPathSegCurvetoQuadraticSmoothRel}(t);Object.defineProperties(v.prototype,{x:{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(t){this._y=t,this._segmentChanged()},enumerable:!0}}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new e(void 0)},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(t,e){return new n(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(t,e){return new r(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(t,e){return new i(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(t,e){return new o(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(t,e,n,r,i,o){return new a(void 0,t,e,n,r,i,o)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(t,e,n,r,i,o){return new s(void 0,t,e,n,r,i,o)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(t,e,n,r){return new u(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(t,e,n,r){return new c(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(t,e,n,r,i,o,a){return new h(void 0,t,e,n,r,i,o,a)},SVGPathElement.prototype.createSVGPathSegArcRel=function(t,e,n,r,i,o,a){return new l(void 0,t,e,n,r,i,o,a)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(t){return new f(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(t){return new _(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(t){return new g(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(t){return new S(void 0,t)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(t,e,n,r){return new p(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(t,e,n,r){return new y(void 0,t,e,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(t,e){return new d(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(t,e){return new v(void 0,t,e)},"getPathSegAtLength"in SVGPathElement.prototype||(SVGPathElement.prototype.getPathSegAtLength=function(t){if(void 0===t||!isFinite(t))throw new Error("Invalid arguments.");var e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",this.getAttribute("d"));var n=e.pathSegList.numberOfItems-1;if(n<=0)return 0;do{if(e.pathSegList.removeItem(n),t>e.getTotalLength())break;n--}while(n>0);return n}),window.SVGPathSeg=t,window.SVGPathSegClosePath=e,window.SVGPathSegMovetoAbs=n,window.SVGPathSegMovetoRel=r,window.SVGPathSegLinetoAbs=i,window.SVGPathSegLinetoRel=o,window.SVGPathSegCurvetoCubicAbs=a,window.SVGPathSegCurvetoCubicRel=s,window.SVGPathSegCurvetoQuadraticAbs=u,window.SVGPathSegCurvetoQuadraticRel=c,window.SVGPathSegArcAbs=h,window.SVGPathSegArcRel=l,window.SVGPathSegLinetoHorizontalAbs=f,window.SVGPathSegLinetoHorizontalRel=_,window.SVGPathSegLinetoVerticalAbs=g,window.SVGPathSegLinetoVerticalRel=S,window.SVGPathSegCurvetoCubicSmoothAbs=p,window.SVGPathSegCurvetoCubicSmoothRel=y,window.SVGPathSegCurvetoQuadraticSmoothAbs=d,window.SVGPathSegCurvetoQuadraticSmoothRel=v}if(!("SVGPathSegList"in window)||!("appendItem"in window.SVGPathSegList.prototype)){var m=function(){function SVGPathSegList(t){_classCallCheck(this,SVGPathSegList),this._pathElement=t,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)}return _createClass(SVGPathSegList,[{key:"_checkPathSynchronizedToList",value:function _checkPathSynchronizedToList(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())}},{key:"_updateListFromPathMutations",value:function _updateListFromPathMutations(t){if(this._pathElement){var e=!1;t.forEach((function(t){"d"===t.attributeName&&(e=!0)})),e&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}}},{key:"_writeListToPath",value:function _writeListToPath(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)}},{key:"segmentChanged",value:function segmentChanged(t){this._writeListToPath()}},{key:"clear",value:function clear(){this._checkPathSynchronizedToList(),this._list.forEach((function(t){t._owningPathSegList=null})),this._list=[],this._writeListToPath()}},{key:"initialize",value:function initialize(t){return this._checkPathSynchronizedToList(),this._list=[t],t._owningPathSegList=this,this._writeListToPath(),t}},{key:"_checkValidIndex",value:function _checkValidIndex(t){if(isNaN(t)||t<0||t>=this.numberOfItems)throw new Error("INDEX_SIZE_ERR")}},{key:"getItem",value:function getItem(t){return this._checkPathSynchronizedToList(),this._checkValidIndex(t),this._list[t]}},{key:"insertItemBefore",value:function insertItemBefore(t,e){return this._checkPathSynchronizedToList(),e>this.numberOfItems&&(e=this.numberOfItems),t._owningPathSegList&&(t=t.clone()),this._list.splice(e,0,t),t._owningPathSegList=this,this._writeListToPath(),t}},{key:"replaceItem",value:function replaceItem(t,e){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._checkValidIndex(e),this._list[e]=t,t._owningPathSegList=this,this._writeListToPath(),t}},{key:"removeItem",value:function removeItem(t){this._checkPathSynchronizedToList(),this._checkValidIndex(t);var e=this._list[t];return this._list.splice(t,1),this._writeListToPath(),e}},{key:"appendItem",value:function appendItem(t){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._list.push(t),t._owningPathSegList=this,this._writeListToPath(),t}},{key:"_parsePath",value:function _parsePath(t){if(!t||!t.length)return[];var e=this,n=function(){function Builder(){_classCallCheck(this,Builder),this.pathSegList=[]}return _createClass(Builder,[{key:"appendSegment",value:function appendSegment(t){this.pathSegList.push(t)}}]),Builder}(),r=function(){function Source(t){_classCallCheck(this,Source),this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()}return _createClass(Source,[{key:"_isCurrentSpace",value:function _isCurrentSpace(){var t=this._string[this._currentIndex];return t<=" "&&(" "===t||"\n"===t||"\t"===t||"\r"===t||"\f"===t)}},{key:"_skipOptionalSpaces",value:function _skipOptionalSpaces(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex}},{key:"_skipOptionalSpacesOrDelimiter",value:function _skipOptionalSpacesOrDelimiter(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!==this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","===this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)}},{key:"hasMoreData",value:function hasMoreData(){return this._currentIndex<this._endIndex}},{key:"peekSegmentType",value:function peekSegmentType(){var t=this._string[this._currentIndex];return this._pathSegTypeFromChar(t)}},{key:"_pathSegTypeFromChar",value:function _pathSegTypeFromChar(t){switch(t){case"Z":case"z":return SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return SVGPathSeg.PATHSEG_LINETO_REL;case"C":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return SVGPathSeg.PATHSEG_ARC_ABS;case"a":return SVGPathSeg.PATHSEG_ARC_REL;case"H":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return SVGPathSeg.PATHSEG_UNKNOWN}}},{key:"_nextCommandHelper",value:function _nextCommandHelper(t,e){return("+"===t||"-"===t||"."===t||t>="0"&&t<="9")&&e!==SVGPathSeg.PATHSEG_CLOSEPATH?e===SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:e===SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:e:SVGPathSeg.PATHSEG_UNKNOWN}},{key:"initialCommandIsMoveTo",value:function initialCommandIsMoveTo(){if(!this.hasMoreData())return!0;var t=this.peekSegmentType();return t===SVGPathSeg.PATHSEG_MOVETO_ABS||t===SVGPathSeg.PATHSEG_MOVETO_REL}},{key:"_parseNumber",value:function _parseNumber(){var t=0,e=0,n=1,r=0,i=1,o=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"===this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"===this._string.charAt(this._currentIndex)&&(this._currentIndex++,i=-1),!(this._currentIndex===this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!==this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!==s)for(var u=this._currentIndex-1,c=1;u>=s;)e+=c*(this._string.charAt(u--)-"0"),c*=10;if(this._currentIndex<this._endIndex&&"."===this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)n*=10,r+=(this._string.charAt(this._currentIndex)-"0")/n,this._currentIndex+=1}if(this._currentIndex!==a&&this._currentIndex+1<this._endIndex&&("e"===this._string.charAt(this._currentIndex)||"E"===this._string.charAt(this._currentIndex))&&"x"!==this._string.charAt(this._currentIndex+1)&&"m"!==this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"===this._string.charAt(this._currentIndex)?this._currentIndex++:"-"===this._string.charAt(this._currentIndex)&&(this._currentIndex++,o=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)t*=10,t+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var h=e+r;if(h*=i,t&&(h*=Math.pow(10,o*t)),a!==this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),h}}},{key:"_parseArcFlag",value:function _parseArcFlag(){if(!(this._currentIndex>=this._endIndex)){var t=!1,e=this._string.charAt(this._currentIndex++);if("0"===e)t=!1;else{if("1"!==e)return;t=!0}return this._skipOptionalSpacesOrDelimiter(),t}}},{key:"parseSegment",value:function parseSegment(){var t=this._string[this._currentIndex],n=this._pathSegTypeFromChar(t);if(n===SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand===SVGPathSeg.PATHSEG_UNKNOWN)return null;if((n=this._nextCommandHelper(t,this._previousCommand))===SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(e,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(e,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(e);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(e,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var i={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(e,i.x,i.y,i.x1,i.y1,i.x2,i.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var o={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(e,o.x,o.y,o.x2,o.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var a={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(e,a.x,a.y,a.x2,a.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var s={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(e,s.x,s.y,s.x1,s.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var u={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(e,u.x,u.y,u.x1,u.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(e,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var c={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(e,c.x,c.y,c.x1,c.y1,c.arcAngle,c.arcLarge,c.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var h={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(e,h.x,h.y,h.x1,h.y1,h.arcAngle,h.arcLarge,h.arcSweep);default:throw new Error("Unknown path seg type.")}}}]),Source}(),i=new n,o=new r(t);if(!o.initialCommandIsMoveTo())return[];for(;o.hasMoreData();){var a=o.parseSegment();if(!a)return[];i.appendSegment(a)}return i.pathSegList}}],[{key:"_pathSegArrayAsString",value:function _pathSegArrayAsString(t){var e="",n=!0;return t.forEach((function(t){n?(n=!1,e+=t._asPathString()):e+=" "+t._asPathString()})),e}}]),SVGPathSegList}();m.prototype.classname="SVGPathSegList",Object.defineProperty(m.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperties(SVGPathElement.prototype,{pathSegList:{get:function get(){return this._pathSegList||(this._pathSegList=new m(this)),this._pathSegList},enumerable:!0},normalizedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0},animatedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0},animatedNormalizedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0}}),window.SVGPathSegList=m}}();var Ki={name:"closepath",init:function init(t){var e=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee(){var n,r,i,o,a,s,u,c;return regeneratorRuntime.wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:return t.importLocale,n=t.$,r=e,h.next=4,Mi("closepath",r.curPrefs.lang);case 4:return i=h.sent,a=function updateButton(t){var e=t.pathSegList,r=1===e.getItem(e.numberOfItems-1).pathSegType,i=r?"#tool_openpath":"#tool_closepath";n(r?"#tool_closepath":"#tool_openpath").hide(),n(i).show()},s=function showPanel(t){if(n("#closepath_panel").toggle(t),t){var e=o[0];e&&a(e)}},u=function toggleClosed(){var t=o[0];if(t){var e=t.pathSegList,n=e.numberOfItems-1;1===e.getItem(n).pathSegType?e.removeItem(n):e.appendItem(t.createSVGPathSegClosePath()),a(t)}},c=[{id:"tool_openpath",icon:"openpath.png",type:"context",panel:"closepath_panel",events:{click:function click(){u()}}},{id:"tool_closepath",icon:"closepath.png",type:"context",panel:"closepath_panel",events:{click:function click(){u()}}}],h.abrupt("return",{name:i.name,svgicons:"closepath_icons.svg",buttons:i.buttons.map((function(t,e){return Object.assign(c[e],t)})),callback:function callback(){n("#closepath_panel").hide()},selectedChanged:function selectedChanged(t){for(var e=(o=t.elems).length;e--;){var n=o[e];n&&"path"===n.tagName&&t.selectedElement&&!t.multiselected?s(!0):s(!1)}}});case 10:case"end":return h.stop()}}),_callee)})))()}};export default Ki;
//# sourceMappingURL=ext-closepath.js.map