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

2 lines
82 KiB
JavaScript

System.register([],(function(t){"use strict";return{execute:function(){var e="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},n=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof e&&e)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},r=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a={f:o&&!i.call({1:2},1)?function propertyIsEnumerable(t){var e=o(this,t);return!!e&&e.enumerable}:i},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,classofRaw=function(t){return s.call(t).slice(8,-1)},u="".split,c=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?u.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 c(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")},h={}.hasOwnProperty,has=function(t,e){return h.call(t,e)},l=n.document,_=isObject(l)&&isObject(l.createElement),documentCreateElement=function(t){return _?l.createElement(t):{}},f=!r&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),g=Object.getOwnPropertyDescriptor,S={f:r?g:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),f)try{return g(t,e)}catch(t){}if(has(t,e))return createPropertyDescriptor(!a.f.call(t,e),t[e])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},p=Object.defineProperty,y={f:r?p:function defineProperty(t,e,n){if(anObject(t),e=toPrimitive(e,!0),anObject(n),f)try{return p(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}},v=r?function(t,e,n){return y.f(t,e,createPropertyDescriptor(1,n))}:function(t,e,n){return t[e]=n,t},setGlobal=function(t,e){try{v(n,t,e)}catch(r){n[t]=e}return e},d="__core-js_shared__",m=n[d]||setGlobal(d,{}),P=Function.toString;"function"!=typeof m.inspectSource&&(m.inspectSource=function(t){return P.call(t)});var b,A,C,G=m.inspectSource,V=n.WeakMap,x="function"==typeof V&&/native code/.test(G(V)),E=createCommonjsModule((function(t){(t.exports=function(t,e){return m[t]||(m[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),T=0,w=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++T+w).toString(36)},O=E("keys"),sharedKey=function(t){return O[t]||(O[t]=uid(t))},L={},R=n.WeakMap;if(x){var I=new R,k=I.get,j=I.has,H=I.set;b=function(t,e){return H.call(I,t,e),e},A=function(t){return k.call(I,t)||{}},C=function(t){return j.call(I,t)}}else{var N=sharedKey("state");L[N]=!0,b=function(t,e){return v(t,N,e),e},A=function(t){return has(t,N)?t[N]:{}},C=function(t){return has(t,N)}}var M,U,B={set:b,get:A,has:C,enforce:function(t){return C(t)?A(t):b(t,{})},getterFor:function(t){return function(e){var n;if(!isObject(e)||(n=A(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Q=createCommonjsModule((function(t){var e=B.get,r=B.enforce,i=String(String).split("String");(t.exports=function(t,e,o,a){var s=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof e||has(o,"name")||v(o,"name",e),r(o).source=i.join("string"==typeof e?e:"")),t!==n?(s?!c&&t[e]&&(u=!0):delete t[e],u?t[e]=o:v(t,e,o)):u?t[e]=o:setGlobal(e,o)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&e(this).source||G(this)}))})),D=n,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,e){return arguments.length<2?aFunction(D[t])||aFunction(n[t]):D[t]&&D[t][e]||n[t]&&n[t][e]},z=Math.ceil,W=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?W:z)(t)},q=Math.min,toLength=function(t){return t>0?q(toInteger(t),9007199254740991):0},K=Math.max,Z=Math.min,toAbsoluteIndex=function(t,e){var n=toInteger(t);return n<0?K(n+e,0):Z(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}},Y={includes:createMethod(!0),indexOf:createMethod(!1)}.indexOf,objectKeysInternal=function(t,e){var n,r=toIndexedObject(t),i=0,o=[];for(n in r)!has(L,n)&&has(r,n)&&o.push(n);for(;e.length>i;)has(r,n=e[i++])&&(~Y(o,n)||o.push(n));return o},$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],J=$.concat("length","prototype"),X={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,J)}},tt={f:Object.getOwnPropertySymbols},et=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var e=X.f(anObject(t)),n=tt.f;return n?e.concat(n(t)):e},copyConstructorProperties=function(t,e){for(var n=et(e),r=y.f,i=S.f,o=0;o<n.length;o++){var a=n[o];has(t,a)||r(t,a,i(e,a))}},nt=/#|\.prototype\./,isForced=function(t,e){var n=it[rt(t)];return n==at||n!=ot&&("function"==typeof e?fails(e):!!e)},rt=isForced.normalize=function(t){return String(t).replace(nt,".").toLowerCase()},it=isForced.data={},ot=isForced.NATIVE="N",at=isForced.POLYFILL="P",st=isForced,ut=S.f,_export=function(t,e){var r,i,o,a,s,u=t.target,c=t.global,h=t.stat;if(r=c?n:h?n[u]||setGlobal(u,{}):(n[u]||{}).prototype)for(i in e){if(a=e[i],o=t.noTargetGet?(s=ut(r,i))&&s.value:r[i],!st(c?i:u+(h?".":"#")+i,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;copyConstructorProperties(a,o)}(t.sham||o&&o.sham)&&v(a,"sham",!0),Q(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))},ct=Array.isArray||function isArray(t){return"Array"==classofRaw(t)},ht=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),lt=ht&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_t=E("wks"),ft=n.Symbol,gt=lt?ft:ft&&ft.withoutSetter||uid,wellKnownSymbol=function(t){return has(_t,t)||(ht&&has(ft,t)?_t[t]=ft[t]:_t[t]=gt("Symbol."+t)),_t[t]},St=wellKnownSymbol("species"),arraySpeciesCreate=function(t,e){var n;return ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!ct(n.prototype)?isObject(n)&&null===(n=n[St])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},pt=[].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,u,h,l){for(var _,f,g=toObject(s),S=c(g),p=functionBindContext(u,h,3),y=toLength(S.length),v=0,d=l||arraySpeciesCreate,m=e?d(s,y):n?d(s,0):void 0;y>v;v++)if((a||v in S)&&(f=p(_=S[v],v,g),t))if(e)m[v]=f;else if(f)switch(t){case 3:return!0;case 5:return _;case 6:return v;case 2:pt.call(m,_)}else if(i)return!1;return o?-1:r||i?i:m}},yt={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)},vt=getBuiltIn("navigator","userAgent")||"",dt=n.process,mt=dt&&dt.versions,Pt=mt&&mt.v8;Pt?U=(M=Pt.split("."))[0]+M[1]:vt&&(!(M=vt.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=vt.match(/Chrome\/(\d+)/))&&(U=M[1]);var bt=U&&+U,At=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return bt>=51||!fails((function(){var e=[];return(e.constructor={})[At]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ct=Object.defineProperty,Gt={},thrower=function(t){throw t},arrayMethodUsesToLength=function(t,e){if(has(Gt,t))return Gt[t];e||(e={});var n=[][t],i=!!has(e,"ACCESSORS")&&e.ACCESSORS,o=has(e,0)?e[0]:thrower,a=has(e,1)?e[1]:void 0;return Gt[t]=!!n&&!fails((function(){if(i&&!r)return!0;var t={length:-1};i?Ct(t,1,{enumerable:!0,get:thrower}):t[1]=1,n.call(t,o,a)}))},Vt=yt.map,xt=arrayMethodHasSpeciesSupport("map"),Et=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!xt||!Et},{map:function map(t){return Vt(this,t,arguments.length>1?arguments[1]:void 0)}});var Tt=y.f,wt=Function.prototype,Ot=wt.toString,Lt=/^\s*function ([^ (]*)/,Rt="name";r&&!(Rt in wt)&&Tt(wt,Rt,{configurable:!0,get:function(){try{return Ot.call(this).match(Lt)[1]}catch(t){return""}}});var It=Object.keys||function keys(t){return objectKeysInternal(t,$)},kt=Object.assign,jt=Object.defineProperty,Ht=!kt||fails((function(){if(r&&1!==kt({b:1},kt(jt({},"a",{enumerable:!0,get:function(){jt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=kt({},t)[n]||It(kt({},e)).join("")!=i}))?function assign(t,e){for(var n=toObject(t),i=arguments.length,o=1,s=tt.f,u=a.f;i>o;)for(var h,l=c(arguments[o++]),_=s?It(l).concat(s(l)):It(l),f=_.length,g=0;f>g;)h=_[g++],r&&!u.call(l,h)||(n[h]=l[h]);return n}:kt;_export({target:"Object",stat:!0,forced:Object.assign!==Ht},{assign:Ht});var Nt={};Nt[wellKnownSymbol("toStringTag")]="z";var Mt="[object z]"===String(Nt),Ft=wellKnownSymbol("toStringTag"),Ut="Arguments"==classofRaw(function(){return arguments}()),Bt=Mt?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),Ft))?n:Ut?classofRaw(e):"Object"==(r=classofRaw(e))&&"function"==typeof e.callee?"Arguments":r},Qt=Mt?{}.toString:function toString(){return"[object "+Bt(this)+"]"};Mt||Q(Object.prototype,"toString",Qt,{unsafe:!0});var Dt=n.Promise,zt=y.f,Wt=wellKnownSymbol("toStringTag"),setToStringTag=function(t,e,n){t&&!has(t=n?t:t.prototype,Wt)&&zt(t,Wt,{configurable:!0,value:e})},qt=wellKnownSymbol("species"),Kt={},Zt=wellKnownSymbol("iterator"),Yt=Array.prototype,$t=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}},Jt=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[$t]||t["@@iterator"]||Kt[Bt(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(_=a)&&(Kt.Array===_||Yt[Zt]===_)){for(s=0,u=toLength(t.length);u>s;s++)if((c=r?f(anObject(l=t[s])[0],l[1]):f(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,f,l.value,r))&&c&&c instanceof Result)return c;return new Result(!1)}).stop=function(t){return new Result(!0,t)}})),Xt=wellKnownSymbol("iterator"),te=!1;try{var ee=0,ne={next:function(){return{done:!!ee++}},return:function(){te=!0}};ne[Xt]=function(){return this},Array.from(ne,(function(){throw 2}))}catch(t){}var re,ie,oe,ae=wellKnownSymbol("species"),se=getBuiltIn("document","documentElement"),ue=/(iphone|ipod|ipad).*applewebkit/i.test(vt),ce=n.location,he=n.setImmediate,le=n.clearImmediate,_e=n.process,fe=n.MessageChannel,ge=n.Dispatch,Se=0,pe={},ye="onreadystatechange",run=function(t){if(pe.hasOwnProperty(t)){var e=pe[t];delete pe[t],e()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){n.postMessage(t+"",ce.protocol+"//"+ce.host)};he&&le||(he=function setImmediate(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return pe[++Se]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},re(Se),Se},le=function clearImmediate(t){delete pe[t]},"process"==classofRaw(_e)?re=function(t){_e.nextTick(runner(t))}:ge&&ge.now?re=function(t){ge.now(runner(t))}:fe&&!ue?(oe=(ie=new fe).port2,ie.port1.onmessage=listener,re=functionBindContext(oe.postMessage,oe,1)):!n.addEventListener||"function"!=typeof postMessage||n.importScripts||fails(post)||"file:"===ce.protocol?re=ye in documentCreateElement("script")?function(t){se.appendChild(documentCreateElement("script")).onreadystatechange=function(){se.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}:(re=post,n.addEventListener("message",listener,!1)));var ve,de,me,Pe,be,Ae,Ce,Ge,Ve={set:he,clear:le},xe=S.f,Ee=Ve.set,Te=n.MutationObserver||n.WebKitMutationObserver,we=n.process,Oe=n.Promise,Le="process"==classofRaw(we),Re=xe(n,"queueMicrotask"),Ie=Re&&Re.value;Ie||(ve=function(){var t,e;for(Le&&(t=we.domain)&&t.exit();de;){e=de.fn,de=de.next;try{e()}catch(t){throw de?Pe():me=void 0,t}}me=void 0,t&&t.enter()},Le?Pe=function(){we.nextTick(ve)}:Te&&!ue?(be=!0,Ae=document.createTextNode(""),new Te(ve).observe(Ae,{characterData:!0}),Pe=function(){Ae.data=be=!be}):Oe&&Oe.resolve?(Ce=Oe.resolve(void 0),Ge=Ce.then,Pe=function(){Ge.call(Ce,ve)}):Pe=function(){Ee.call(n,ve)});var ke,je,He,Ne,Me=Ie||function(t){var e={fn:t,next:void 0};me&&(me.next=e),de||(de=e,Pe()),me=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)},Fe={f:function(t){return new PromiseCapability(t)}},promiseResolve=function(t,e){if(anObject(t),isObject(e)&&e.constructor===t)return e;var n=Fe.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}}},Ue=Ve.set,Be=wellKnownSymbol("species"),Qe="Promise",De=B.get,ze=B.set,We=B.getterFor(Qe),qe=Dt,Ke=n.TypeError,Ze=n.document,Ye=n.process,$e=getBuiltIn("fetch"),Je=Fe.f,Xe=Je,tn="process"==classofRaw(Ye),en=!!(Ze&&Ze.createEvent&&n.dispatchEvent),nn="unhandledrejection",rn=st(Qe,(function(){if(!(G(qe)!==String(qe))){if(66===bt)return!0;if(!tn&&"function"!=typeof PromiseRejectionEvent)return!0}if(bt>=51&&/native code/.test(qe))return!1;var t=qe.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Be]=FakePromise,!(t.then((function(){}))instanceof FakePromise)})),on=rn||!function(t,e){if(!e&&!te)return!1;var n=!1;try{var r={};r[Xt]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){qe.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;Me((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,_=h.resolve,f=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?f(Ke("Promise-chain cycle")):(u=isThenable(s))?u.call(s,_,f):_(s)):f(i)}catch(t){g&&!c&&g.exit(),f(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&onUnhandled(t,e)}))}},dispatchEvent=function(t,e,r){var i,o;en?((i=Ze.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),n.dispatchEvent(i)):i={promise:e,reason:r},(o=n["on"+t])?o(i):t===nn&&function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},onUnhandled=function(t,e){Ue.call(n,(function(){var n,r=e.value;if(isUnhandled(e)&&(n=perform((function(){tn?Ye.emit("unhandledRejection",r,t):dispatchEvent(nn,t,r)})),e.rejection=tn||isUnhandled(e)?2:1,n.error))throw n.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t,e){Ue.call(n,(function(){tn?Ye.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,e.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 Ke("Promise can't be resolved itself");var i=isThenable(n);i?Me((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)}}};rn&&(qe=function Promise(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,qe,Qe),aFunction$1(t),ke.call(this);var e=De(this);try{t(bind(internalResolve,this,e),bind(internalReject,this,e))}catch(t){internalReject(this,e,t)}},(ke=function Promise(t){ze(this,{type:Qe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)Q(t,r,e[r],n);return t}(qe.prototype,{then:function then(t,e){var n,r,i,o=We(this),a=Je((n=qe,void 0===(i=anObject(this).constructor)||null==(r=anObject(i)[ae])?n:aFunction$1(r)));return a.ok="function"!=typeof t||t,a.fail="function"==typeof e&&e,a.domain=tn?Ye.domain:void 0,o.parent=!0,o.reactions.push(a),0!=o.state&&notify$1(this,o,!1),a.promise},catch:function(t){return this.then(void 0,t)}}),je=function(){var t=new ke,e=De(t);this.promise=t,this.resolve=bind(internalResolve,t,e),this.reject=bind(internalReject,t,e)},Fe.f=Je=function(t){return t===qe||t===He?new je(t):Xe(t)},"function"==typeof Dt&&(Ne=Dt.prototype.then,Q(Dt.prototype,"then",(function then(t,e){var n=this;return new qe((function(t,e){Ne.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof $e&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return promiseResolve(qe,$e.apply(n,arguments))}}))),_export({global:!0,wrap:!0,forced:rn},{Promise:qe}),setToStringTag(qe,Qe,!1),function(t){var e=getBuiltIn(t),n=y.f;r&&e&&!e[qt]&&n(e,qt,{configurable:!0,get:function(){return this}})}(Qe),He=getBuiltIn(Qe),_export({target:Qe,stat:!0,forced:rn},{reject:function reject(t){var e=Je(this);return e.reject.call(void 0,t),e.promise}}),_export({target:Qe,stat:!0,forced:rn},{resolve:function resolve(t){return promiseResolve(this,t)}}),_export({target:Qe,stat:!0,forced:on},{all:function all(t){var e=this,n=Je(e),r=n.resolve,i=n.reject,o=perform((function(){var n=aFunction$1(e.resolve),o=[],a=0,s=1;Jt(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=Je(e),r=n.reject,i=perform((function(){var i=aFunction$1(e.resolve);Jt(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var an,sn=r?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var n,r=It(e),i=r.length,o=0;i>o;)y.f(t,n=r[o++],e[n]);return t},un=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObject=function(){try{an=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;NullProtoObject=an?function(t){t.write(scriptTag("")),t.close();var e=t.parentWindow.Object;return t=null,e}(an):((e=documentCreateElement("iframe")).style.display="none",se.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F);for(var n=$.length;n--;)delete NullProtoObject.prototype[$[n]];return NullProtoObject()};L[un]=!0;var cn=Object.create||function create(t,e){var n;return null!==t?(EmptyConstructor.prototype=anObject(t),n=new EmptyConstructor,EmptyConstructor.prototype=null,n[un]=t):n=NullProtoObject(),void 0===e?n:sn(n,e)},hn=X.f,ln={}.toString,_n="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fn={f:function getOwnPropertyNames(t){return _n&&"[object Window]"==ln.call(t)?function(t){try{return hn(t)}catch(t){return _n.slice()}}(t):hn(toIndexedObject(t))}},gn={f:wellKnownSymbol},Sn=y.f,defineWellKnownSymbol=function(t){var e=D.Symbol||(D.Symbol={});has(e,t)||Sn(e,t,{value:gn.f(t)})},pn=yt.forEach,yn=sharedKey("hidden"),vn="Symbol",dn=wellKnownSymbol("toPrimitive"),mn=B.set,Pn=B.getterFor(vn),bn=Object.prototype,An=n.Symbol,Cn=getBuiltIn("JSON","stringify"),Gn=S.f,Vn=y.f,xn=fn.f,En=a.f,Tn=E("symbols"),wn=E("op-symbols"),On=E("string-to-symbol-registry"),Ln=E("symbol-to-string-registry"),Rn=E("wks"),In=n.QObject,kn=!In||!In.prototype||!In.prototype.findChild,jn=r&&fails((function(){return 7!=cn(Vn({},"a",{get:function(){return Vn(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Gn(bn,e);r&&delete bn[e],Vn(t,e,n),r&&t!==bn&&Vn(bn,e,r)}:Vn,wrap=function(t,e){var n=Tn[t]=cn(An.prototype);return mn(n,{type:vn,tag:t,description:e}),r||(n.description=e),n},Hn=lt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof An},Nn=function defineProperty(t,e,n){t===bn&&Nn(wn,e,n),anObject(t);var r=toPrimitive(e,!0);return anObject(n),has(Tn,r)?(n.enumerable?(has(t,yn)&&t[yn][r]&&(t[yn][r]=!1),n=cn(n,{enumerable:createPropertyDescriptor(0,!1)})):(has(t,yn)||Vn(t,yn,createPropertyDescriptor(1,{})),t[yn][r]=!0),jn(t,r,n)):Vn(t,r,n)},Mn=function defineProperties(t,e){anObject(t);var n=toIndexedObject(e),i=It(n).concat(Qn(n));return pn(i,(function(e){r&&!Fn.call(n,e)||Nn(t,e,n[e])})),t},Fn=function propertyIsEnumerable(t){var e=toPrimitive(t,!0),n=En.call(this,e);return!(this===bn&&has(Tn,e)&&!has(wn,e))&&(!(n||!has(this,e)||!has(Tn,e)||has(this,yn)&&this[yn][e])||n)},Un=function getOwnPropertyDescriptor(t,e){var n=toIndexedObject(t),r=toPrimitive(e,!0);if(n!==bn||!has(Tn,r)||has(wn,r)){var i=Gn(n,r);return!i||!has(Tn,r)||has(n,yn)&&n[yn][r]||(i.enumerable=!0),i}},Bn=function getOwnPropertyNames(t){var e=xn(toIndexedObject(t)),n=[];return pn(e,(function(t){has(Tn,t)||has(L,t)||n.push(t)})),n},Qn=function getOwnPropertySymbols(t){var e=t===bn,n=xn(e?wn:toIndexedObject(t)),r=[];return pn(n,(function(t){!has(Tn,t)||e&&!has(bn,t)||r.push(Tn[t])})),r};if(ht||(Q((An=function Symbol(){if(this instanceof An)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===bn&&setter.call(wn,t),has(this,yn)&&has(this[yn],e)&&(this[yn][e]=!1),jn(this,e,createPropertyDescriptor(1,t))};return r&&kn&&jn(bn,e,{configurable:!0,set:setter}),wrap(e,t)}).prototype,"toString",(function toString(){return Pn(this).tag})),Q(An,"withoutSetter",(function(t){return wrap(uid(t),t)})),a.f=Fn,y.f=Nn,S.f=Un,X.f=fn.f=Bn,tt.f=Qn,gn.f=function(t){return wrap(wellKnownSymbol(t),t)},r&&(Vn(An.prototype,"description",{configurable:!0,get:function description(){return Pn(this).description}}),Q(bn,"propertyIsEnumerable",Fn,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!ht,sham:!ht},{Symbol:An}),pn(It(Rn),(function(t){defineWellKnownSymbol(t)})),_export({target:vn,stat:!0,forced:!ht},{for:function(t){var e=String(t);if(has(On,e))return On[e];var n=An(e);return On[e]=n,Ln[n]=e,n},keyFor:function keyFor(t){if(!Hn(t))throw TypeError(t+" is not a symbol");if(has(Ln,t))return Ln[t]},useSetter:function(){kn=!0},useSimple:function(){kn=!1}}),_export({target:"Object",stat:!0,forced:!ht,sham:!r},{create:function create(t,e){return void 0===e?cn(t):Mn(cn(t),e)},defineProperty:Nn,defineProperties:Mn,getOwnPropertyDescriptor:Un}),_export({target:"Object",stat:!0,forced:!ht},{getOwnPropertyNames:Bn,getOwnPropertySymbols:Qn}),_export({target:"Object",stat:!0,forced:fails((function(){tt.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){return tt.f(toObject(t))}}),Cn){var Dn=!ht||fails((function(){var t=An();return"[null]"!=Cn([t])||"{}"!=Cn({a:t})||"{}"!=Cn(Object(t))}));_export({target:"JSON",stat:!0,forced:Dn},{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)&&!Hn(t))return ct(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Hn(e))return e}),i[1]=e,Cn.apply(null,i)}})}An.prototype[dn]||v(An.prototype,dn,An.prototype.valueOf),setToStringTag(An,vn),L[yn]=!0;var zn=y.f,Wn=n.Symbol;if(r&&"function"==typeof Wn&&(!("description"in Wn.prototype)||void 0!==Wn().description)){var qn={},Kn=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Kn?new Wn(t):void 0===t?Wn():Wn(t);return""===t&&(qn[e]=!0),e};copyConstructorProperties(Kn,Wn);var Zn=Kn.prototype=Wn.prototype;Zn.constructor=Kn;var Yn=Zn.toString,$n="Symbol(test)"==String(Wn("test")),Jn=/^Symbol\((.*)\)[^)]+$/;zn(Zn,"description",{configurable:!0,get:function description(){var t=isObject(this)?this.valueOf():this,e=Yn.call(t);if(has(qn,t))return"";var n=$n?e.slice(7,-1):e.replace(Jn,"$1");return""===n?void 0:n}}),_export({global:!0,forced:!0},{Symbol:Kn})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var Xn=yt.forEach,tr=function(t,e){var n=[][t];return!!n&&fails((function(){n.call(null,e||function(){throw 1},1)}))}("forEach"),er=arrayMethodUsesToLength("forEach"),nr=tr&&er?[].forEach:function forEach(t){return Xn(this,t,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=nr},{forEach:nr});var rr=wellKnownSymbol("unscopables"),ir=Array.prototype;null==ir[rr]&&y.f(ir,rr,{configurable:!0,value:cn(null)});var or,ar,sr,addToUnscopables=function(t){ir[rr][t]=!0},ur=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),cr=sharedKey("IE_PROTO"),hr=Object.prototype,lr=ur?Object.getPrototypeOf:function(t){return t=toObject(t),has(t,cr)?t[cr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?hr:null},_r=wellKnownSymbol("iterator"),fr=!1;[].keys&&("next"in(sr=[].keys())?(ar=lr(lr(sr)))!==Object.prototype&&(or=ar):fr=!0),null==or&&(or={}),has(or,_r)||v(or,_r,(function(){return this}));var gr={IteratorPrototype:or,BUGGY_SAFARI_ITERATORS:fr},Sr=gr.IteratorPrototype,returnThis$1=function(){return this},pr=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),yr=gr.IteratorPrototype,vr=gr.BUGGY_SAFARI_ITERATORS,dr=wellKnownSymbol("iterator"),mr="keys",Pr="values",br="entries",returnThis$2=function(){return this},defineIterator=function(t,e,n,r,i,o,a){!function(t,e,n){var r=e+" Iterator";t.prototype=cn(Sr,{next:createPropertyDescriptor(1,n)}),setToStringTag(t,r,!1),Kt[r]=returnThis$1}(n,e,r);var s,u,c,getIterationMethod=function(t){if(t===i&&g)return g;if(!vr&&t in _)return _[t];switch(t){case mr:return function keys(){return new n(this,t)};case Pr:return function values(){return new n(this,t)};case br:return function entries(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",l=!1,_=t.prototype,f=_[dr]||_["@@iterator"]||i&&_[i],g=!vr&&f||getIterationMethod(i),S="Array"==e&&_.entries||f;if(S&&(s=lr(S.call(new t)),yr!==Object.prototype&&s.next&&(lr(s)!==yr&&(pr?pr(s,yr):"function"!=typeof s[dr]&&v(s,dr,returnThis$2)),setToStringTag(s,h,!0))),i==Pr&&f&&f.name!==Pr&&(l=!0,g=function values(){return f.call(this)}),_[dr]!==g&&v(_,dr,g),Kt[e]=g,i)if(u={values:getIterationMethod(Pr),keys:o?g:getIterationMethod(mr),entries:getIterationMethod(br)},a)for(c in u)(vr||l||!(c in _))&&Q(_,c,u[c]);else _export({target:e,proto:!0,forced:vr||l},u);return u},Ar="Array Iterator",Cr=B.set,Gr=B.getterFor(Ar),Vr=defineIterator(Array,"Array",(function(t,e){Cr(this,{type:Ar,target:toIndexedObject(t),index:0,kind:e})}),(function(){var t=Gr(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");Kt.Arguments=Kt.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var xr=[].reverse,Er=[1,2];_export({target:"Array",proto:!0,forced:String(Er)===String(Er.reverse())},{reverse:function reverse(){return ct(this)&&(this.length=this.length),xr.call(this)}});var createProperty=function(t,e,n){var r=toPrimitive(e);r in t?y.f(t,r,createPropertyDescriptor(0,n)):t[r]=n},Tr=arrayMethodHasSpeciesSupport("slice"),wr=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),Or=wellKnownSymbol("species"),Lr=[].slice,Rr=Math.max;_export({target:"Array",proto:!0,forced:!Tr||!wr},{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(ct(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!ct(n.prototype)?isObject(n)&&null===(n=n[Or])&&(n=void 0):n=void 0,n===Array||void 0===n))return Lr.call(o,s,u);for(r=new(void 0===n?Array:n)(Rr(u-s,0)),i=0;s<u;s++,i++)s in o&&createProperty(r,i,o[s]);return r.length=i,r}});var Ir=Date.prototype,kr="Invalid Date",jr="toString",Hr=Ir.toString,Nr=Ir.getTime;new Date(NaN)+""!=kr&&Q(Ir,jr,(function toString(){var t=Nr.call(this);return t==t?Hr.call(this):kr})),setToStringTag(n.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!r},{create:cn}),_export({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:y.f});var Mr=fails((function(){lr(1)}));_export({target:"Object",stat:!0,forced:Mr,sham:!ur},{getPrototypeOf:function getPrototypeOf(t){return lr(toObject(t))}}),_export({target:"Object",stat:!0},{setPrototypeOf:pr});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},Fr="toString",Ur=RegExp.prototype,Br=Ur.toString,Qr=fails((function(){return"/a/b"!=Br.call({source:"a",flags:"b"})})),Dr=Br.name!=Fr;(Qr||Dr)&&Q(RegExp.prototype,Fr,(function toString(){var t=anObject(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Ur)?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}},zr={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)}.charAt,Wr="String Iterator",qr=B.set,Kr=B.getterFor(Wr);defineIterator(String,"String",(function(t){qr(this,{type:Wr,string:String(t),index:0})}),(function next(){var t,e=Kr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=zr(n,r),e.index+=t.length,{value:t,done:!1})}));var Zr={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 Yr in Zr){var $r=n[Yr],Jr=$r&&$r.prototype;if(Jr&&Jr.forEach!==nr)try{v(Jr,"forEach",nr)}catch(t){Jr.forEach=nr}}var Xr=wellKnownSymbol("iterator"),ti=wellKnownSymbol("toStringTag"),ei=Vr.values;for(var ni in Zr){var ri=n[ni],ii=ri&&ri.prototype;if(ii){if(ii[Xr]!==ei)try{v(ii,Xr,ei)}catch(t){ii[Xr]=ei}if(ii[ti]||v(ii,ti,ni),Zr[ni])for(var oi in Vr)if(ii[oi]!==Vr[oi])try{v(ii,oi,Vr[oi])}catch(t){ii[oi]=Vr[oi]}}}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===_)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 f=tryCatch(t,e,n);if("normal"===f.type){if(r=n.done?l:c,f.arg===_)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(r=l,n.method="throw",n.arg=f.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",_={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var f={};f[o]=function(){return this};var g=Object.getPrototypeOf,S=g&&g(g(values([])));S&&S!==n&&r.call(S,o)&&(f=S);var p=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(f);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 _;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var i=tryCatch(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,_;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,_):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}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,_):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),_},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),_}},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),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var ai=arrayMethodHasSpeciesSupport("splice"),si=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),ui=Math.max,ci=Math.min,hi=9007199254740991,li="Maximum allowed length exceeded";_export({target:"Array",proto:!0,forced:!ai||!si},{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=ci(ui(toInteger(e),0),c-h)),c+n-r>hi)throw TypeError(li);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 _i=[].slice,fi={},construct=function(t,e,n){if(!(e in fi)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";fi[e]=Function("C,a","return new C("+r.join(",")+")")}return fi[e](t,n)},gi=Function.bind||function bind(t){var e=aFunction$1(this),n=_i.call(arguments,1),r=function bound(){var i=n.concat(_i.call(arguments));return this instanceof r?construct(e,i.length,i):e.apply(t,i)};return isObject(e.prototype)&&(r.prototype=e.prototype),r};function __variableDynamicImportRuntime0__(t){switch(t){case"./locale/en.js":return Promise.resolve().then((function(){return pi}));case"./locale/zh-CN.js":return Promise.resolve().then((function(){return yi}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+t))}}_export({target:"Function",proto:!0},{bind:gi}),_export({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:sn}),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 _=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(_.prototype,"x",{get:function get(){return this._x},set:function set(t){this._x=t,this._segmentChanged()},enumerable:!0});var f=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(f.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 v=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(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}});var d=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(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}}),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 _(void 0,t)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(t){return new f(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 v(void 0,t,e)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(t,e){return new d(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=_,window.SVGPathSegLinetoHorizontalRel=f,window.SVGPathSegLinetoVerticalAbs=g,window.SVGPathSegLinetoVerticalRel=S,window.SVGPathSegCurvetoCubicSmoothAbs=p,window.SVGPathSegCurvetoCubicSmoothRel=y,window.SVGPathSegCurvetoQuadraticSmoothAbs=v,window.SVGPathSegCurvetoQuadraticSmoothRel=d}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 Si=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function _callee(t){var e;return regeneratorRuntime.wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,__variableDynamicImportRuntime0__("./locale/".concat(t,".js"));case 3:e=n.sent,n.next=12;break;case 6:return n.prev=6,n.t0=n.catch(0),console.error("Missing translation (".concat(t,") - using 'en'")),n.next=11,Promise.resolve().then((function(){return pi}));case 11:e=n.sent;case 12:return n.abrupt("return",e.default);case 13:case"end":return n.stop()}}),_callee,null,[[0,6]])})));return function loadExtensionTranslation(e){return t.apply(this,arguments)}}(),pi=(t("default",{name:"closepath",init:function init(t){var e=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var n,r,i,o,a,s,u,c;return regeneratorRuntime.wrap((function _callee2$(h){for(;;)switch(h.prev=h.next){case 0:return t.importLocale,n=t.$,r=e,h.next=4,Si(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()}}),_callee2)})))()}}),Object.freeze({__proto__:null,default:{name:"ClosePath",buttons:[{title:"Open path"},{title:"Close path"}]}})),yi=Object.freeze({__proto__:null,default:{name:"闭合路径",buttons:[{title:"打开路径"},{title:"关闭路径"}]}})}}}));