12 lines
53 KiB
JavaScript
12 lines
53 KiB
JavaScript
System.register([],(function(t,e){"use strict";return{execute:function(){var n="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},r=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof n&&n)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},o=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),i={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,a={f:c&&!i.call({1:2},1)?function propertyIsEnumerable(t){var e=c(this,t);return!!e&&e.enumerable}:i},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u={}.toString,classofRaw=function(t){return u.call(t).slice(8,-1)},f="".split,s=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?f.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 s(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")},l={}.hasOwnProperty,has=function(t,e){return l.call(t,e)},p=r.document,h=isObject(p)&&isObject(p.createElement),documentCreateElement=function(t){return h?p.createElement(t):{}},v=!o&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),d=Object.getOwnPropertyDescriptor,g={f:o?d:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),v)try{return d(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},y=Object.defineProperty,m={f:o?y:function defineProperty(t,e,n){if(anObject(t),e=toPrimitive(e,!0),anObject(n),v)try{return y(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}},b=o?function(t,e,n){return m.f(t,e,createPropertyDescriptor(1,n))}:function(t,e,n){return t[e]=n,t},setGlobal=function(t,e){try{b(r,t,e)}catch(n){r[t]=e}return e},x="__core-js_shared__",w=r[x]||setGlobal(x,{}),S=Function.toString;"function"!=typeof w.inspectSource&&(w.inspectSource=function(t){return S.call(t)});var E,O,_,j=w.inspectSource,P=r.WeakMap,T="function"==typeof P&&/native code/.test(j(P)),A=createCommonjsModule((function(t){(t.exports=function(t,e){return w[t]||(w[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),k=0,I=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++k+I).toString(36)},L=A("keys"),sharedKey=function(t){return L[t]||(L[t]=uid(t))},R={},C=r.WeakMap;if(T){var M=new C,N=M.get,G=M.has,D=M.set;E=function(t,e){return D.call(M,t,e),e},O=function(t){return N.call(M,t)||{}},_=function(t){return G.call(M,t)}}else{var z=sharedKey("state");R[z]=!0,E=function(t,e){return b(t,z,e),e},O=function(t){return has(t,z)?t[z]:{}},_=function(t){return has(t,z)}}var U,$,W={set:E,get:O,has:_,enforce:function(t){return _(t)?O(t):E(t,{})},getterFor:function(t){return function(e){var n;if(!isObject(e)||(n=O(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},H=createCommonjsModule((function(t){var e=W.get,n=W.enforce,o=String(String).split("String");(t.exports=function(t,e,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||has(i,"name")||b(i,"name",e),n(i).source=o.join("string"==typeof e?e:"")),t!==r?(a?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:b(t,e,i)):u?t[e]=i:setGlobal(e,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&e(this).source||j(this)}))})),V=r,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,e){return arguments.length<2?aFunction(V[t])||aFunction(r[t]):V[t]&&V[t][e]||r[t]&&r[t][e]},q=Math.ceil,B=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?B:q)(t)},Y=Math.min,toLength=function(t){return t>0?Y(toInteger(t),9007199254740991):0},K=Math.max,J=Math.min,toAbsoluteIndex=function(t,e){var n=toInteger(t);return n<0?K(n+e,0):J(n,e)},createMethod=function(t){return function(e,n,r){var o,i=toIndexedObject(e),c=toLength(i.length),a=toAbsoluteIndex(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},X={includes:createMethod(!0),indexOf:createMethod(!1)},Q=X.indexOf,objectKeysInternal=function(t,e){var n,r=toIndexedObject(t),o=0,i=[];for(n in r)!has(R,n)&&has(r,n)&&i.push(n);for(;e.length>o;)has(r,n=e[o++])&&(~Q(i,n)||i.push(n));return i},Z=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tt=Z.concat("length","prototype"),et={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,tt)}},nt={f:Object.getOwnPropertySymbols},rt=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var e=et.f(anObject(t)),n=nt.f;return n?e.concat(n(t)):e},copyConstructorProperties=function(t,e){for(var n=rt(e),r=m.f,o=g.f,i=0;i<n.length;i++){var c=n[i];has(t,c)||r(t,c,o(e,c))}},ot=/#|\.prototype\./,isForced=function(t,e){var n=ct[it(t)];return n==ut||n!=at&&("function"==typeof e?fails(e):!!e)},it=isForced.normalize=function(t){return String(t).replace(ot,".").toLowerCase()},ct=isForced.data={},at=isForced.NATIVE="N",ut=isForced.POLYFILL="P",ft=isForced,st=g.f,_export=function(t,e){var n,o,i,c,a,u=t.target,f=t.global,s=t.stat;if(n=f?r:s?r[u]||setGlobal(u,{}):(r[u]||{}).prototype)for(o in e){if(c=e[o],i=t.noTargetGet?(a=st(n,o))&&a.value:n[o],!ft(f?o:u+(s?".":"#")+o,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;copyConstructorProperties(c,i)}(t.sham||i&&i.sham)&&b(c,"sham",!0),H(n,o,c,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,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},toObject=function(t){return Object(requireObjectCoercible(t))},lt=Array.isArray||function isArray(t){return"Array"==classofRaw(t)},pt=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),ht=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=A("wks"),dt=r.Symbol,gt=ht?dt:dt&&dt.withoutSetter||uid,wellKnownSymbol=function(t){return has(vt,t)||(pt&&has(dt,t)?vt[t]=dt[t]:vt[t]=gt("Symbol."+t)),vt[t]},yt=wellKnownSymbol("species"),arraySpeciesCreate=function(t,e){var n;return lt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!lt(n.prototype)?isObject(n)&&null===(n=n[yt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},mt=[].push,createMethod$1=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,u,f,l){for(var p,h,v=toObject(a),d=s(v),g=functionBindContext(u,f,3),y=toLength(d.length),m=0,b=l||arraySpeciesCreate,x=e?b(a,y):n?b(a,0):void 0;y>m;m++)if((c||m in d)&&(h=g(p=d[m],m,v),t))if(e)x[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:mt.call(x,p)}else if(o)return!1;return i?-1:r||o?o:x}},bt={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)},xt=getBuiltIn("navigator","userAgent")||"",wt=r.process,St=wt&&wt.versions,Et=St&&St.v8;Et?$=(U=Et.split("."))[0]+U[1]:xt&&(!(U=xt.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=xt.match(/Chrome\/(\d+)/))&&($=U[1]);var Ot=$&&+$,_t=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return Ot>=51||!fails((function(){var e=[];return(e.constructor={})[_t]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},jt=Object.defineProperty,Pt={},thrower=function(t){throw t},arrayMethodUsesToLength=function(t,e){if(has(Pt,t))return Pt[t];e||(e={});var n=[][t],r=!!has(e,"ACCESSORS")&&e.ACCESSORS,i=has(e,0)?e[0]:thrower,c=has(e,1)?e[1]:void 0;return Pt[t]=!!n&&!fails((function(){if(r&&!o)return!0;var t={length:-1};r?jt(t,1,{enumerable:!0,get:thrower}):t[1]=1,n.call(t,i,c)}))},Tt=bt.map,At=arrayMethodHasSpeciesSupport("map"),kt=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!At||!kt},{map:function map(t){return Tt(this,t,arguments.length>1?arguments[1]:void 0)}});var It=m.f,Lt=Function.prototype,Rt=Lt.toString,Ct=/^\s*function ([^ (]*)/,Mt="name";o&&!(Mt in Lt)&&It(Lt,Mt,{configurable:!0,get:function(){try{return Rt.call(this).match(Ct)[1]}catch(t){return""}}});var Nt=Object.keys||function keys(t){return objectKeysInternal(t,Z)},Gt=Object.assign,Ft=Object.defineProperty,Dt=!Gt||fails((function(){if(o&&1!==Gt({b:1},Gt(Ft({},"a",{enumerable:!0,get:function(){Ft(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Gt({},t)[n]||Nt(Gt({},e)).join("")!=r}))?function assign(t,e){for(var n=toObject(t),r=arguments.length,i=1,c=nt.f,u=a.f;r>i;)for(var f,l=s(arguments[i++]),p=c?Nt(l).concat(c(l)):Nt(l),h=p.length,v=0;h>v;)f=p[v++],o&&!u.call(l,f)||(n[f]=l[f]);return n}:Gt;_export({target:"Object",stat:!0,forced:Object.assign!==Dt},{assign:Dt});var zt,Ut=o?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var n,r=Nt(e),o=r.length,i=0;o>i;)m.f(t,n=r[i++],e[n]);return t},$t=getBuiltIn("document","documentElement"),Wt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObject=function(){try{zt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;NullProtoObject=zt?function(t){t.write(scriptTag("")),t.close();var e=t.parentWindow.Object;return t=null,e}(zt):((e=documentCreateElement("iframe")).style.display="none",$t.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()};R[Wt]=!0;var Ht=Object.create||function create(t,e){var n;return null!==t?(EmptyConstructor.prototype=anObject(t),n=new EmptyConstructor,EmptyConstructor.prototype=null,n[Wt]=t):n=NullProtoObject(),void 0===e?n:Ut(n,e)},Vt=et.f,qt={}.toString,Bt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Yt={f:function getOwnPropertyNames(t){return Bt&&"[object Window]"==qt.call(t)?function(t){try{return Vt(t)}catch(t){return Bt.slice()}}(t):Vt(toIndexedObject(t))}},Kt={f:wellKnownSymbol},Jt=m.f,defineWellKnownSymbol=function(t){var e=V.Symbol||(V.Symbol={});has(e,t)||Jt(e,t,{value:Kt.f(t)})},Xt=m.f,Qt=wellKnownSymbol("toStringTag"),setToStringTag=function(t,e,n){t&&!has(t=n?t:t.prototype,Qt)&&Xt(t,Qt,{configurable:!0,value:e})},Zt=bt.forEach,te=sharedKey("hidden"),ee="Symbol",ne=wellKnownSymbol("toPrimitive"),re=W.set,oe=W.getterFor(ee),ie=Object.prototype,ce=r.Symbol,ae=getBuiltIn("JSON","stringify"),ue=g.f,fe=m.f,se=Yt.f,le=a.f,pe=A("symbols"),he=A("op-symbols"),ve=A("string-to-symbol-registry"),de=A("symbol-to-string-registry"),ge=A("wks"),ye=r.QObject,me=!ye||!ye.prototype||!ye.prototype.findChild,be=o&&fails((function(){return 7!=Ht(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=ue(ie,e);r&&delete ie[e],fe(t,e,n),r&&t!==ie&&fe(ie,e,r)}:fe,wrap=function(t,e){var n=pe[t]=Ht(ce.prototype);return re(n,{type:ee,tag:t,description:e}),o||(n.description=e),n},xe=ht?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ce},we=function defineProperty(t,e,n){t===ie&&we(he,e,n),anObject(t);var r=toPrimitive(e,!0);return anObject(n),has(pe,r)?(n.enumerable?(has(t,te)&&t[te][r]&&(t[te][r]=!1),n=Ht(n,{enumerable:createPropertyDescriptor(0,!1)})):(has(t,te)||fe(t,te,createPropertyDescriptor(1,{})),t[te][r]=!0),be(t,r,n)):fe(t,r,n)},Se=function defineProperties(t,e){anObject(t);var n=toIndexedObject(e),r=Nt(n).concat(je(n));return Zt(r,(function(e){o&&!Ee.call(n,e)||we(t,e,n[e])})),t},Ee=function propertyIsEnumerable(t){var e=toPrimitive(t,!0),n=le.call(this,e);return!(this===ie&&has(pe,e)&&!has(he,e))&&(!(n||!has(this,e)||!has(pe,e)||has(this,te)&&this[te][e])||n)},Oe=function getOwnPropertyDescriptor(t,e){var n=toIndexedObject(t),r=toPrimitive(e,!0);if(n!==ie||!has(pe,r)||has(he,r)){var o=ue(n,r);return!o||!has(pe,r)||has(n,te)&&n[te][r]||(o.enumerable=!0),o}},_e=function getOwnPropertyNames(t){var e=se(toIndexedObject(t)),n=[];return Zt(e,(function(t){has(pe,t)||has(R,t)||n.push(t)})),n},je=function getOwnPropertySymbols(t){var e=t===ie,n=se(e?he:toIndexedObject(t)),r=[];return Zt(n,(function(t){!has(pe,t)||e&&!has(ie,t)||r.push(pe[t])})),r};if(pt||(H((ce=function Symbol(){if(this instanceof ce)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===ie&&setter.call(he,t),has(this,te)&&has(this[te],e)&&(this[te][e]=!1),be(this,e,createPropertyDescriptor(1,t))};return o&&me&&be(ie,e,{configurable:!0,set:setter}),wrap(e,t)}).prototype,"toString",(function toString(){return oe(this).tag})),H(ce,"withoutSetter",(function(t){return wrap(uid(t),t)})),a.f=Ee,m.f=we,g.f=Oe,et.f=Yt.f=_e,nt.f=je,Kt.f=function(t){return wrap(wellKnownSymbol(t),t)},o&&(fe(ce.prototype,"description",{configurable:!0,get:function description(){return oe(this).description}}),H(ie,"propertyIsEnumerable",Ee,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!pt,sham:!pt},{Symbol:ce}),Zt(Nt(ge),(function(t){defineWellKnownSymbol(t)})),_export({target:ee,stat:!0,forced:!pt},{for:function(t){var e=String(t);if(has(ve,e))return ve[e];var n=ce(e);return ve[e]=n,de[n]=e,n},keyFor:function keyFor(t){if(!xe(t))throw TypeError(t+" is not a symbol");if(has(de,t))return de[t]},useSetter:function(){me=!0},useSimple:function(){me=!1}}),_export({target:"Object",stat:!0,forced:!pt,sham:!o},{create:function create(t,e){return void 0===e?Ht(t):Se(Ht(t),e)},defineProperty:we,defineProperties:Se,getOwnPropertyDescriptor:Oe}),_export({target:"Object",stat:!0,forced:!pt},{getOwnPropertyNames:_e,getOwnPropertySymbols:je}),_export({target:"Object",stat:!0,forced:fails((function(){nt.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){return nt.f(toObject(t))}}),ae){var Pe=!pt||fails((function(){var t=ce();return"[null]"!=ae([t])||"{}"!=ae({a:t})||"{}"!=ae(Object(t))}));_export({target:"JSON",stat:!0,forced:Pe},{stringify:function stringify(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(isObject(e)||void 0!==t)&&!xe(t))return lt(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!xe(e))return e}),o[1]=e,ae.apply(null,o)}})}ce.prototype[ne]||b(ce.prototype,ne,ce.prototype.valueOf),setToStringTag(ce,ee),R[te]=!0;var Te=m.f,Ae=r.Symbol;if(o&&"function"==typeof Ae&&(!("description"in Ae.prototype)||void 0!==Ae().description)){var ke={},Ie=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ie?new Ae(t):void 0===t?Ae():Ae(t);return""===t&&(ke[e]=!0),e};copyConstructorProperties(Ie,Ae);var Le=Ie.prototype=Ae.prototype;Le.constructor=Ie;var Re=Le.toString,Ce="Symbol(test)"==String(Ae("test")),Me=/^Symbol\((.*)\)[^)]+$/;Te(Le,"description",{configurable:!0,get:function description(){var t=isObject(this)?this.valueOf():this,e=Re.call(t);if(has(ke,t))return"";var n=Ce?e.slice(7,-1):e.replace(Me,"$1");return""===n?void 0:n}}),_export({global:!0,forced:!0},{Symbol:Ie})}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)}))},Ne=bt.forEach,Ge=arrayMethodIsStrict("forEach"),Fe=arrayMethodUsesToLength("forEach"),De=Ge&&Fe?[].forEach:function forEach(t){return Ne(this,t,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=De},{forEach:De});var ze=wellKnownSymbol("unscopables"),Ue=Array.prototype;null==Ue[ze]&&m.f(Ue,ze,{configurable:!0,value:Ht(null)});var $e,We,He,addToUnscopables=function(t){Ue[ze][t]=!0},Ve={},qe=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Be=sharedKey("IE_PROTO"),Ye=Object.prototype,Ke=qe?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?Ye:null},Je=wellKnownSymbol("iterator"),Xe=!1;[].keys&&("next"in(He=[].keys())?(We=Ke(Ke(He)))!==Object.prototype&&($e=We):Xe=!0),null==$e&&($e={}),has($e,Je)||b($e,Je,(function(){return this}));var Qe={IteratorPrototype:$e,BUGGY_SAFARI_ITERATORS:Xe},Ze=Qe.IteratorPrototype,returnThis$1=function(){return this},tn=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),en=Qe.IteratorPrototype,nn=Qe.BUGGY_SAFARI_ITERATORS,rn=wellKnownSymbol("iterator"),on="keys",cn="values",an="entries",returnThis$2=function(){return this},defineIterator=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=Ht(Ze,{next:createPropertyDescriptor(1,n)}),setToStringTag(t,r,!1),Ve[r]=returnThis$1}(n,e,r);var a,u,f,getIterationMethod=function(t){if(t===o&&v)return v;if(!nn&&t in p)return p[t];switch(t){case on:return function keys(){return new n(this,t)};case cn:return function values(){return new n(this,t)};case an:return function entries(){return new n(this,t)}}return function(){return new n(this)}},s=e+" Iterator",l=!1,p=t.prototype,h=p[rn]||p["@@iterator"]||o&&p[o],v=!nn&&h||getIterationMethod(o),d="Array"==e&&p.entries||h;if(d&&(a=Ke(d.call(new t)),en!==Object.prototype&&a.next&&(Ke(a)!==en&&(tn?tn(a,en):"function"!=typeof a[rn]&&b(a,rn,returnThis$2)),setToStringTag(a,s,!0))),o==cn&&h&&h.name!==cn&&(l=!0,v=function values(){return h.call(this)}),p[rn]!==v&&b(p,rn,v),Ve[e]=v,o)if(u={values:getIterationMethod(cn),keys:i?v:getIterationMethod(on),entries:getIterationMethod(an)},c)for(f in u)(nn||l||!(f in p))&&H(p,f,u[f]);else _export({target:e,proto:!0,forced:nn||l},u);return u},un="Array Iterator",fn=W.set,sn=W.getterFor(un),ln=defineIterator(Array,"Array",(function(t,e){fn(this,{type:un,target:toIndexedObject(t),index:0,kind:e})}),(function(){var t=sn(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");Ve.Arguments=Ve.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var pn=[].reverse,hn=[1,2];_export({target:"Array",proto:!0,forced:String(hn)===String(hn.reverse())},{reverse:function reverse(){return lt(this)&&(this.length=this.length),pn.call(this)}});var createProperty=function(t,e,n){var r=toPrimitive(e);r in t?m.f(t,r,createPropertyDescriptor(0,n)):t[r]=n},vn=arrayMethodHasSpeciesSupport("slice"),dn=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),gn=wellKnownSymbol("species"),yn=[].slice,mn=Math.max;_export({target:"Array",proto:!0,forced:!vn||!dn},{slice:function slice(t,e){var n,r,o,i=toIndexedObject(this),c=toLength(i.length),a=toAbsoluteIndex(t,c),u=toAbsoluteIndex(void 0===e?c:e,c);if(lt(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!lt(n.prototype)?isObject(n)&&null===(n=n[gn])&&(n=void 0):n=void 0,n===Array||void 0===n))return yn.call(i,a,u);for(r=new(void 0===n?Array:n)(mn(u-a,0)),o=0;a<u;a++,o++)a in i&&createProperty(r,o,i[a]);return r.length=o,r}});var bn=Date.prototype,xn="Invalid Date",wn="toString",Sn=bn.toString,En=bn.getTime;new Date(NaN)+""!=xn&&H(bn,wn,(function toString(){var t=En.call(this);return t==t?Sn.call(this):xn})),setToStringTag(r.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!o},{create:Ht}),_export({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:m.f});var On=fails((function(){Ke(1)}));_export({target:"Object",stat:!0,forced:On,sham:!qe},{getPrototypeOf:function getPrototypeOf(t){return Ke(toObject(t))}}),_export({target:"Object",stat:!0},{setPrototypeOf:tn});var _n={};_n[wellKnownSymbol("toStringTag")]="z";var jn="[object z]"===String(_n),Pn=wellKnownSymbol("toStringTag"),Tn="Arguments"==classofRaw(function(){return arguments}()),An=jn?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:Tn?classofRaw(e):"Object"==(r=classofRaw(e))&&"function"==typeof e.callee?"Arguments":r},kn=jn?{}.toString:function toString(){return"[object "+An(this)+"]"};jn||H(Object.prototype,"toString",kn,{unsafe:!0});var In=r.Promise,Ln=wellKnownSymbol("species"),Rn=wellKnownSymbol("iterator"),Cn=Array.prototype,Mn=wellKnownSymbol("iterator"),callWithSafeIterationClosing=function(t,e,n,r){try{return r?e(anObject(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&anObject(o.call(t)),e}},Nn=createCommonjsModule((function(t){var Result=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,r,o){var i,c,a,u,f,s,l,p,h=functionBindContext(e,n,r?2:1);if(o)i=t;else{if("function"!=typeof(c=function(t){if(null!=t)return t[Mn]||t["@@iterator"]||Ve[An(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(Ve.Array===p||Cn[Rn]===p)){for(a=0,u=toLength(t.length);u>a;a++)if((f=r?h(anObject(l=t[a])[0],l[1]):h(t[a]))&&f instanceof Result)return f;return new Result(!1)}i=c.call(t)}for(s=i.next;!(l=s.call(i)).done;)if("object"==typeof(f=callWithSafeIterationClosing(i,h,l.value,r))&&f&&f instanceof Result)return f;return new Result(!1)}).stop=function(t){return new Result(!0,t)}})),Gn=wellKnownSymbol("iterator"),Fn=!1;try{var Dn=0,zn={next:function(){return{done:!!Dn++}},return:function(){Fn=!0}};zn[Gn]=function(){return this},Array.from(zn,(function(){throw 2}))}catch(t){}var Un,$n,Wn,Hn=wellKnownSymbol("species"),speciesConstructor=function(t,e){var n,r=anObject(t).constructor;return void 0===r||null==(n=anObject(r)[Hn])?e:aFunction$1(n)},Vn=/(iphone|ipod|ipad).*applewebkit/i.test(xt),qn=r.location,Bn=r.setImmediate,Yn=r.clearImmediate,Kn=r.process,Jn=r.MessageChannel,Xn=r.Dispatch,Qn=0,Zn={},tr="onreadystatechange",run=function(t){if(Zn.hasOwnProperty(t)){var e=Zn[t];delete Zn[t],e()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){r.postMessage(t+"",qn.protocol+"//"+qn.host)};Bn&&Yn||(Bn=function setImmediate(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Zn[++Qn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Un(Qn),Qn},Yn=function clearImmediate(t){delete Zn[t]},"process"==classofRaw(Kn)?Un=function(t){Kn.nextTick(runner(t))}:Xn&&Xn.now?Un=function(t){Xn.now(runner(t))}:Jn&&!Vn?(Wn=($n=new Jn).port2,$n.port1.onmessage=listener,Un=functionBindContext(Wn.postMessage,Wn,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||fails(post)||"file:"===qn.protocol?Un=tr in documentCreateElement("script")?function(t){$t.appendChild(documentCreateElement("script")).onreadystatechange=function(){$t.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}:(Un=post,r.addEventListener("message",listener,!1)));var er,nr,rr,or,ir,cr,ar,ur,fr={set:Bn,clear:Yn},sr=g.f,lr=fr.set,pr=r.MutationObserver||r.WebKitMutationObserver,hr=r.process,vr=r.Promise,dr="process"==classofRaw(hr),gr=sr(r,"queueMicrotask"),yr=gr&&gr.value;yr||(er=function(){var t,e;for(dr&&(t=hr.domain)&&t.exit();nr;){e=nr.fn,nr=nr.next;try{e()}catch(t){throw nr?or():rr=void 0,t}}rr=void 0,t&&t.enter()},dr?or=function(){hr.nextTick(er)}:pr&&!Vn?(ir=!0,cr=document.createTextNode(""),new pr(er).observe(cr,{characterData:!0}),or=function(){cr.data=ir=!ir}):vr&&vr.resolve?(ar=vr.resolve(void 0),ur=ar.then,or=function(){ur.call(ar,er)}):or=function(){lr.call(r,er)});var mr,br,xr,wr,Sr=yr||function(t){var e={fn:t,next:void 0};rr&&(rr.next=e),nr||(nr=e,or()),rr=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)},Er={f:function(t){return new PromiseCapability(t)}},promiseResolve=function(t,e){if(anObject(t),isObject(e)&&e.constructor===t)return e;var n=Er.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}}},Or=fr.set,_r=wellKnownSymbol("species"),jr="Promise",Pr=W.get,Tr=W.set,Ar=W.getterFor(jr),kr=In,Ir=r.TypeError,Lr=r.document,Rr=r.process,Cr=getBuiltIn("fetch"),Mr=Er.f,Nr=Mr,Gr="process"==classofRaw(Rr),Fr=!!(Lr&&Lr.createEvent&&r.dispatchEvent),Dr="unhandledrejection",zr=ft(jr,(function(){if(!(j(kr)!==String(kr))){if(66===Ot)return!0;if(!Gr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Ot>=51&&/native code/.test(kr))return!1;var t=kr.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};return(t.constructor={})[_r]=FakePromise,!(t.then((function(){}))instanceof FakePromise)})),Ur=zr||!function(t,e){if(!e&&!Fn)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){kr.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;Sr((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,f,s=r[c++],l=i?s.ok:s.fail,p=s.resolve,h=s.reject,v=s.domain;try{l?(i||(2===e.rejection&&onHandleUnhandled(t,e),e.rejection=1),!0===l?a=o:(v&&v.enter(),a=l(o),v&&(v.exit(),f=!0)),a===s.promise?h(Ir("Promise-chain cycle")):(u=isThenable(a))?u.call(a,p,h):p(a)):h(o)}catch(t){v&&!f&&v.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&onUnhandled(t,e)}))}},dispatchEvent=function(t,e,n){var o,i;Fr?((o=Lr.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},(i=r["on"+t])?i(o):t===Dr&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},onUnhandled=function(t,e){Or.call(r,(function(){var n,r=e.value;if(isUnhandled(e)&&(n=perform((function(){Gr?Rr.emit("unhandledRejection",r,t):dispatchEvent(Dr,t,r)})),e.rejection=Gr||isUnhandled(e)?2:1,n.error))throw n.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t,e){Or.call(r,(function(){Gr?Rr.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,e.value)}))},bind=function(t,e,n,r){return function(o){t(e,n,o,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 Ir("Promise can't be resolved itself");var o=isThenable(n);o?Sr((function(){var r={done:!1};try{o.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)}}};zr&&(kr=function Promise(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,kr,jr),aFunction$1(t),mr.call(this);var e=Pr(this);try{t(bind(internalResolve,this,e),bind(internalReject,this,e))}catch(t){internalReject(this,e,t)}},(mr=function Promise(t){Tr(this,{type:jr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)H(t,r,e[r],n);return t}(kr.prototype,{then:function then(t,e){var n=Ar(this),r=Mr(speciesConstructor(this,kr));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Gr?Rr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&¬ify$1(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),br=function(){var t=new mr,e=Pr(t);this.promise=t,this.resolve=bind(internalResolve,t,e),this.reject=bind(internalReject,t,e)},Er.f=Mr=function(t){return t===kr||t===xr?new br(t):Nr(t)},"function"==typeof In&&(wr=In.prototype.then,H(In.prototype,"then",(function then(t,e){var n=this;return new kr((function(t,e){wr.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Cr&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return promiseResolve(kr,Cr.apply(r,arguments))}}))),_export({global:!0,wrap:!0,forced:zr},{Promise:kr}),setToStringTag(kr,jr,!1),function(t){var e=getBuiltIn(t),n=m.f;o&&e&&!e[Ln]&&n(e,Ln,{configurable:!0,get:function(){return this}})}(jr),xr=getBuiltIn(jr),_export({target:jr,stat:!0,forced:zr},{reject:function reject(t){var e=Mr(this);return e.reject.call(void 0,t),e.promise}}),_export({target:jr,stat:!0,forced:zr},{resolve:function resolve(t){return promiseResolve(this,t)}}),_export({target:jr,stat:!0,forced:Ur},{all:function all(t){var e=this,n=Mr(e),r=n.resolve,o=n.reject,i=perform((function(){var n=aFunction$1(e.resolve),i=[],c=0,a=1;Nn(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function race(t){var e=this,n=Mr(e),r=n.reject,o=perform((function(){var o=aFunction$1(e.resolve);Nn(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.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},$r="toString",Wr=RegExp.prototype,Hr=Wr.toString,Vr=fails((function(){return"/a/b"!=Hr.call({source:"a",flags:"b"})})),qr=Hr.name!=$r;(Vr||qr)&&H(RegExp.prototype,$r,(function toString(){var t=anObject(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Wr)?regexpFlags.call(t):n)}),{unsafe:!0});var createMethod$2=function(t){return function(e,n){var r,o,i=String(requireObjectCoercible(e)),c=toInteger(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},Br={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},Yr=Br.charAt,Kr="String Iterator",Jr=W.set,Xr=W.getterFor(Kr);defineIterator(String,"String",(function(t){Jr(this,{type:Kr,string:String(t),index:0})}),(function next(){var t,e=Xr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Yr(n,r),e.index+=t.length,{value:t,done:!1})}));var Qr={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 Zr in Qr){var to=r[Zr],eo=to&&to.prototype;if(eo&&eo.forEach!==De)try{b(eo,"forEach",De)}catch(t){eo.forEach=De}}var no=wellKnownSymbol("iterator"),ro=wellKnownSymbol("toStringTag"),oo=ln.values;for(var io in Qr){var co=r[io],ao=co&&co.prototype;if(ao){if(ao[no]!==oo)try{b(ao,no,oo)}catch(t){ao[no]=oo}if(ao[ro]||b(ao,ro,io),Qr[io])for(var uo in ln)if(ao[uo]!==ln[uo])try{b(ao,uo,ln[uo])}catch(t){ao[uo]=ln[uo]}}}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,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function _next(t){asyncGeneratorStep(i,r,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(i,r,o,_next,_throw,"throw",t)}_next(void 0)}))}}createCommonjsModule((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.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 o=e&&e.prototype instanceof Generator?e:Generator,i=Object.create(o.prototype),c=new Context(r||[]);return i._invoke=function makeInvokeMethod(t,e,n){var r=u;return function invoke(o,i){if(r===s)throw new Error("Generator is already running");if(r===l){if("throw"===o)throw i;return doneResult()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=maybeInvokeDelegate(c,n);if(a){if(a===p)continue;return a}}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=s;var h=tryCatch(t,e,n);if("normal"===h.type){if(r=n.done?l:f,h.arg===p)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(r=l,n.method="throw",n.arg=h.arg)}}}(t,n,c),i}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",f="suspendedYield",s="executing",l="completed",p={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var h={};h[i]=function(){return this};var v=Object.getPrototypeOf,d=v&&v(v(values([])));d&&d!==n&&r.call(d,i)&&(h=d);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(h);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(o,i){function callInvokeWithMethodAndArg(){return new e((function(n,c){!function invoke(n,o,i,c){var a=tryCatch(t[n],t,o);if("throw"!==a.type){var u=a.arg,f=u.value;return f&&"object"===_typeof(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){invoke("next",t,i,c)}),(function(t){invoke("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,c)}))}c(a.arg)}(o,i,n,c)}))}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 p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=tryCatch(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}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[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function next(){for(;++o<t.length;)if(r.call(t,o))return next.value=t[o],next.done=!1,next;return next.value=e,next.done=!0,next};return c.next=c}}return{next:doneResult}}function doneResult(){return{value:e,done:!0}}return GeneratorFunction.prototype=g.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,a,"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,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[c]=function(){return this},t.AsyncIterator=AsyncIterator,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var c=new AsyncIterator(wrap(e,n,r,o),i);return t.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},defineIteratorMethods(g),define(g,a,"Generator"),g[i]=function(){return this},g.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,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(c)},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),p},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),p}},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 o=r.arg;resetTryEntry(n)}return o}}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),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var fo=wellKnownSymbol("isConcatSpreadable"),so=9007199254740991,lo="Maximum allowed index exceeded",po=Ot>=51||!fails((function(){var t=[];return t[fo]=!1,t.concat()[0]!==t})),ho=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(t){if(!isObject(t))return!1;var e=t[fo];return void 0!==e?!!e:lt(t)};_export({target:"Array",proto:!0,forced:!po||!ho},{concat:function concat(t){var e,n,r,o,i,c=toObject(this),a=arraySpeciesCreate(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(isConcatSpreadable(i=-1===e?c:arguments[e])){if(u+(o=toLength(i.length))>so)throw TypeError(lo);for(n=0;n<o;n++,u++)n in i&&createProperty(a,u,i[n])}else{if(u>=so)throw TypeError(lo);createProperty(a,u++,i)}return a.length=u,a}});var vo=bt.find,go="find",yo=!0,mo=arrayMethodUsesToLength(go);go in[]&&Array(1).find((function(){yo=!1})),_export({target:"Array",proto:!0,forced:yo||!mo},{find:function find(t){return vo(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables(go);var bo=X.includes,xo=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!xo},{includes:function includes(t){return bo(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var wo=[].join,So=s!=Object,Eo=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:So||!Eo},{join:function join(t){return wo.call(toIndexedObject(this),void 0===t?",":t)}});var Oo=bt.some,_o=arrayMethodIsStrict("some"),jo=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!_o||!jo},{some:function some(t){return Oo(this,t,arguments.length>1?arguments[1]:void 0)}});var Po=a.f,createMethod$3=function(t){return function(e){for(var n,r=toIndexedObject(e),i=Nt(r),c=i.length,a=0,u=[];c>a;)n=i[a++],o&&!Po.call(r,n)||u.push(t?[n,r[n]]:r[n]);return u}},To={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 To(t)}});var Ao,ko,Io={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")}))},Lo=RegExp.prototype.exec,Ro=String.prototype.replace,Co=Lo,Mo=(Ao=/a/,ko=/b*/g,Lo.call(Ao,"a"),Lo.call(ko,"a"),0!==Ao.lastIndex||0!==ko.lastIndex),No=Io.UNSUPPORTED_Y||Io.BROKEN_CARET,Go=void 0!==/()??/.exec("")[1];(Mo||Go||No)&&(Co=function exec(t){var e,n,r,o,i=this,c=No&&i.sticky,a=regexpFlags.call(i),u=i.source,f=0,s=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,f++),n=new RegExp("^(?:"+u+")",a)),Go&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Mo&&(e=i.lastIndex),r=Lo.call(c?n:i,s),c?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Mo&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Go&&r&&r.length>1&&Ro.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Fo=Co;_export({target:"RegExp",proto:!0,forced:/./.exec!==Fo},{exec:Fo});var Do=wellKnownSymbol("match"),isRegexp=function(t){var e;return isObject(t)&&(void 0!==(e=t[Do])?!!e:"RegExp"==classofRaw(t))},notARegexp=function(t){if(isRegexp(t))throw TypeError("The method doesn't accept regular expressions");return t},zo=wellKnownSymbol("match");_export({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[zo]=!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 Uo=wellKnownSymbol("species"),$o=!fails((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Wo="$0"==="a".replace(/./,"$0"),Ho=wellKnownSymbol("replace"),Vo=!!/./[Ho]&&""===/./[Ho]("a","$0"),qo=!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]})),Bo=Br.charAt,advanceStringIndex=function(t,e,n){return e+(n?Bo(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 Fo.call(t,e)},Yo=[].push,Ko=Math.min,Jo=4294967295,Xo=!fails((function(){return!RegExp(Jo,"y")}));!function(t,e,n,r){var o=wellKnownSymbol(t),i=!fails((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!fails((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Uo]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!$o||!Wo||Vo)||"split"===t&&!qo){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){return e.exec===Fo?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Wo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Vo}),f=u[0],s=u[1];H(String.prototype,t,f),H(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&b(RegExp.prototype[o],"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)),o=void 0===n?Jo:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!isRegexp(t))return e.call(r,t,o);for(var i,c,a,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=Fo.call(l,r))&&!((c=l.lastIndex)>s&&(u.push(r.slice(s,i.index)),i.length>1&&i.index<r.length&&Yo.apply(u,i.slice(1)),a=i[0].length,s=c,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!a&&l.test("")||u.push(""):u.push(r.slice(s)),u.length>o?u.slice(0,o):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 o=requireObjectCoercible(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var c=anObject(t),a=String(this),u=speciesConstructor(c,RegExp),f=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(Xo?"y":"g"),l=new u(Xo?c:"^(?:"+c.source+")",s),p=void 0===o?Jo:o>>>0;if(0===p)return[];if(0===a.length)return null===regexpExecAbstract(l,a)?[a]:[];for(var h=0,v=0,d=[];v<a.length;){l.lastIndex=Xo?v:0;var g,y=regexpExecAbstract(l,Xo?a:a.slice(v));if(null===y||(g=Ko(toLength(l.lastIndex+(Xo?0:v)),a.length))===h)v=advanceStringIndex(a,v,f);else{if(d.push(a.slice(h,v)),d.length===p)return d;for(var m=1;m<=y.length-1;m++)if(d.push(y[m]),d.length===p)return d;v=h=g}}return d.push(a.slice(h)),d}]}),!Xo);var Qo="\t\n\v\f\r \u2028\u2029\ufeff",Zo="["+Qo+"]",ti=RegExp("^"+Zo+Zo+"*"),ei=RegExp(Zo+Zo+"*$"),createMethod$4=function(t){return function(e){var n=String(requireObjectCoercible(e));return 1&t&&(n=n.replace(ti,"")),2&t&&(n=n.replace(ei,"")),n}},ni={start:createMethod$4(1),end:createMethod$4(2),trim:createMethod$4(3)},ri=ni.trim;_export({target:"String",proto:!0,forced:function(t){return fails((function(){return!!Qo[t]()||"
"!="
"[t]()||Qo[t].name!==t}))}("trim")},{trim:function trim(){return ri(this)}});var oi=/"/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)),o="<"+t,""!==e&&(o+=" "+e+'="'+String(n).replace(oi,""")+'"'),o+">"+r+"</"+t+">";var t,e,n,r,o}});
|
||
/**
|
||
* Localizing script for SVG-edit UI.
|
||
* @module locale
|
||
* @license MIT
|
||
*
|
||
* @copyright 2010 Narendra Sisodya
|
||
* @copyright 2010 Alexis Deveria
|
||
*
|
||
*/
|
||
jQuery;var ii=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(t,n){var r;return regeneratorRuntime.wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,e.import("./extensions/ext-".concat(t,"/locale/").concat(n,".js"));case 3:r=o.sent,o.next=12;break;case 6:return o.prev=6,o.t0=o.catch(0),console.error("Missing translation (".concat(n,") for extension ").concat(t," - using 'en'")),o.next=11,e.import("./extensions/ext-".concat(t,"/locale/en.js"));case 11:r=o.sent;case 12:return o.abrupt("return",r.default);case 13:case"end":return o.stop()}}),_callee2,null,[[0,6]])})));return function loadExtensionTranslation(e,n){return t.apply(this,arguments)}}();t("default",{name:"foreignobject",init:function init(t){var e=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var n,r,o,i,c,a,u,f,s,l,p,h,v,d,g,y,m,b,x;return regeneratorRuntime.wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return m=function _setAttr(t,e){c.changeSelectedAttribute(t,e),c.call("changed",p)},y=function _showForeignEditor(){var t=p[0];if(t&&!d){d=!0,l(!0),t.removeAttribute("fill");var e=c.svgToString(t,0);r("#svg_source_textarea").val(e),r("#svg_source_editor").fadeIn(),f(),r("#svg_source_textarea").focus()}},g=function _setForeignString(t){var e=p[0];try{var n=o('<svg xmlns="'+i.SVG+'" xmlns:xlink="'+i.XLINK+'">'+t+"</svg>");c.sanitizeSvg(n.documentElement),e.replaceWith(a.importNode(n.documentElement.firstChild,!0)),c.call("changed",[e]),c.clearSelection()}catch(t){return console.log(t),!1}return!0},l=function _toggleSourceButtons(t){r("#tool_source_save, #tool_source_cancel").toggle(!t),r("#foreign_save, #foreign_cancel").toggle(t)},s=function _showPanel(t){var e=r("#fc_rules");e.length||(e=r('<style id="fc_rules"></style>').appendTo("head")),e.text(t?" #tool_topath { display: none !important; }":""),r("#foreignObject_panel").toggle(t)},n=e,r=t.$,o=t.text2xml,i=t.NS,c=n.canvas,a=t.svgroot.parentNode.ownerDocument,w.next=11,ii("foreignobject",n.curPrefs.lang);case 11:return u=w.sent,f=function properlySourceSizeTextArea(){var t=r("#svg_source_container").height()-80;r("#svg_source_textarea").css("height",t)},d=!1,b=[{id:"tool_foreign",icon:"foreignobject-tool.png",type:"mode",events:{click:function click(){c.setMode("foreign")}}},{id:"edit_foreign",icon:"foreignobject-edit.png",type:"context",panel:"foreignObject_panel",events:{click:function click(){y()}}}],x=[{type:"input",panel:"foreignObject_panel",id:"foreign_width",size:3,events:{change:function change(){m("width",this.value)}}},{type:"input",panel:"foreignObject_panel",id:"foreign_height",events:{change:function change(){m("height",this.value)}}},{type:"input",panel:"foreignObject_panel",id:"foreign_font_size",size:2,defval:16,events:{change:function change(){m("font-size",this.value)}}}],w.abrupt("return",{name:u.name,svgicons:"foreignobject-icons.xml",buttons:u.buttons.map((function(t,e){return Object.assign(b[e],t)})),context_tools:u.contextTools.map((function(t,e){return Object.assign(x[e],t)})),callback:function callback(){r("#foreignObject_panel").hide();var t=function endChanges(){r("#svg_source_editor").hide(),d=!1,r("#svg_source_textarea").blur(),l(!1)};setTimeout((function(){r("#tool_source_save").clone().hide().attr("id","foreign_save").unbind().appendTo("#tool_source_back").click(_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=2;break}return e.abrupt("return");case 2:if(g(r("#svg_source_textarea").val())){e.next=11;break}return e.next=5,r.confirm("Errors found. Revert to original?");case 5:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:t(),e.next=12;break;case 11:t();case 12:case"end":return e.stop()}}),_callee)})))),r("#tool_source_cancel").clone().hide().attr("id","foreign_cancel").unbind().appendTo("#tool_source_back").click((function(){t()}))}),3e3)},mouseDown:function mouseDown(t){if("foreign"===c.getMode()){h=!0,v=c.addSVGElementFromJson({element:"foreignObject",attr:{x:t.start_x,y:t.start_y,id:c.getNextId(),"font-size":16,width:"48",height:"20",style:"pointer-events:inherit"}});var e=a.createElementNS(i.MATH,"math");e.setAttributeNS(i.XMLNS,"xmlns",i.MATH),e.setAttribute("display","inline");var n=a.createElementNS(i.MATH,"mi");n.setAttribute("mathvariant","normal"),n.textContent="Φ";var r=a.createElementNS(i.MATH,"mo");r.textContent="∪";var o=a.createElementNS(i.MATH,"mi");return o.textContent="ℳ",e.append(n,r,o),v.append(e),{started:!0}}},mouseUp:function mouseUp(t){if("foreign"===c.getMode()&&h){var e=r(v).attr(["width","height"]),n="0"!==e.width||"0"!==e.height;return c.addToSelection([v],!0),{keep:n,element:v}}},selectedChanged:function selectedChanged(t){for(var e=(p=t.elems).length;e--;){var n=p[e];n&&"foreignObject"===n.tagName&&t.selectedElement&&!t.multiselected?(r("#foreign_font_size").val(n.getAttribute("font-size")),r("#foreign_width").val(n.getAttribute("width")),r("#foreign_height").val(n.getAttribute("height")),s(!0)):s(!1)}},elementChanged:function elementChanged(t){}});case 17:case"end":return w.stop()}}),_callee2)})))()}})}}}));
|