hemy-progress
Version:
基于svg开发的进度条组件,svg progress for js
1 lines • 108 kB
JavaScript
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.hemyProgress=n():t.hemyProgress=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=123)}([function(t,n,e){var r=e(1),i=e(7),o=e(14),u=e(11),s=e(17),c=function(t,n,e){var a,f,l,h,p=t&c.F,v=t&c.G,g=t&c.S,y=t&c.P,d=t&c.B,m=v?r:g?r[n]||(r[n]={}):(r[n]||{}).prototype,b=v?i:i[n]||(i[n]={}),x=b.prototype||(b.prototype={});for(a in v&&(e=n),e)l=((f=!p&&m&&void 0!==m[a])?m:e)[a],h=d&&f?s(l,r):y&&"function"==typeof l?s(Function.call,l):l,m&&u(m,a,l,t&c.U),b[a]!=l&&o(b,a,h),y&&x[a]!=l&&(x[a]=l)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(49)("wks"),i=e(29),o=e(1).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r},function(t,n,e){var r=e(19),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(t,n,e){t.exports=!e(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(3),i=e(89),o=e(26),u=Object.defineProperty;n.f=e(8)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(24);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(1),i=e(14),o=e(13),u=e(29)("src"),s=e(128),c="toString",a=(""+s).split(c);e(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,n,e,s){var c="function"==typeof e;c&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(c&&(o(e,u)||i(e,u,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:s?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[u]||s.call(this)}))},function(t,n,e){var r=e(0),i=e(2),o=e(24),u=/"/g,s=function(t,n,e,r){var i=String(o(t)),s="<"+n;return""!==e&&(s+=" "+e+'="'+String(r).replace(u,""")+'"'),s+">"+i+"</"+n+">"};t.exports=function(t,n){var e={};e[t]=n(s),r(r.P+r.F*i((function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3})),"String",e)}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(9),i=e(28);t.exports=e(8)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(44),i=e(24);t.exports=function(t){return r(i(t))}},function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){return!!t&&r((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n,e){var r=e(18);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(45),i=e(28),o=e(15),u=e(26),s=e(13),c=e(89),a=Object.getOwnPropertyDescriptor;n.f=e(8)?a:function(t,n){if(t=o(t),n=u(n,!0),c)try{return a(t,n)}catch(t){}if(s(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(0),i=e(7),o=e(2);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o((function(){e(1)})),"Object",u)}},function(t,n,e){var r=e(17),i=e(44),o=e(10),u=e(6),s=e(105);t.exports=function(t,n){var e=1==t,c=2==t,a=3==t,f=4==t,l=6==t,h=5==t||l,p=n||s;return function(n,s,v){for(var g,y,d=o(n),m=i(d),b=r(s,v,3),x=u(m.length),_=0,S=e?p(n,x):c?p(n,0):void 0;x>_;_++)if((h||_ in m)&&(y=b(g=m[_],_,d),t))if(e)S[_]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return _;case 2:S.push(g)}else if(f)return!1;return l?-1:a||f?f:S}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";if(e(8)){var r=e(30),i=e(1),o=e(2),u=e(0),s=e(60),c=e(85),a=e(17),f=e(42),l=e(28),h=e(14),p=e(43),v=e(19),g=e(6),y=e(116),d=e(32),m=e(26),b=e(13),x=e(46),_=e(4),S=e(10),w=e(77),E=e(33),O=e(35),P=e(34).f,k=e(79),A=e(29),D=e(5),j=e(22),I=e(50),M=e(47),F=e(81),C=e(40),T=e(53),L=e(41),N=e(80),R=e(107),W=e(9),B=e(20),V=W.f,G=B.f,U=i.RangeError,z=i.TypeError,H=i.Uint8Array,Y="ArrayBuffer",q="SharedArrayBuffer",$="BYTES_PER_ELEMENT",K=Array.prototype,J=c.ArrayBuffer,X=c.DataView,Z=j(0),Q=j(2),tt=j(3),nt=j(4),et=j(5),rt=j(6),it=I(!0),ot=I(!1),ut=F.values,st=F.keys,ct=F.entries,at=K.lastIndexOf,ft=K.reduce,lt=K.reduceRight,ht=K.join,pt=K.sort,vt=K.slice,gt=K.toString,yt=K.toLocaleString,dt=D("iterator"),mt=D("toStringTag"),bt=A("typed_constructor"),xt=A("def_constructor"),_t=s.CONSTR,St=s.TYPED,wt=s.VIEW,Et="Wrong length!",Ot=j(1,(function(t,n){return jt(M(t,t[xt]),n)})),Pt=o((function(){return 1===new H(new Uint16Array([1]).buffer)[0]})),kt=!!H&&!!H.prototype.set&&o((function(){new H(1).set({})})),At=function(t,n){var e=v(t);if(e<0||e%n)throw U("Wrong offset!");return e},Dt=function(t){if(_(t)&&St in t)return t;throw z(t+" is not a typed array!")},jt=function(t,n){if(!_(t)||!(bt in t))throw z("It is not a typed array constructor!");return new t(n)},It=function(t,n){return Mt(M(t,t[xt]),n)},Mt=function(t,n){for(var e=0,r=n.length,i=jt(t,r);r>e;)i[e]=n[e++];return i},Ft=function(t,n,e){V(t,n,{get:function(){return this._d[e]}})},Ct=function(t){var n,e,r,i,o,u,s=S(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=k(s);if(null!=h&&!w(h)){for(u=h.call(s),r=[],n=0;!(o=u.next()).done;n++)r.push(o.value);s=r}for(l&&c>2&&(f=a(f,arguments[2],2)),n=0,e=g(s.length),i=jt(this,e);e>n;n++)i[n]=l?f(s[n],n):s[n];return i},Tt=function(){for(var t=0,n=arguments.length,e=jt(this,n);n>t;)e[t]=arguments[t++];return e},Lt=!!H&&o((function(){yt.call(new H(1))})),Nt=function(){return yt.apply(Lt?vt.call(Dt(this)):Dt(this),arguments)},Rt={copyWithin:function(t,n){return R.call(Dt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Dt(this),arguments)},filter:function(t){return It(this,Q(Dt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return et(Dt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Dt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(Dt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return it(Dt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(Dt(this),arguments)},lastIndexOf:function(t){return at.apply(Dt(this),arguments)},map:function(t){return Ot(Dt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ft.apply(Dt(this),arguments)},reduceRight:function(t){return lt.apply(Dt(this),arguments)},reverse:function(){for(var t,n=this,e=Dt(n).length,r=Math.floor(e/2),i=0;i<r;)t=n[i],n[i++]=n[--e],n[e]=t;return n},some:function(t){return tt(Dt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Dt(this),t)},subarray:function(t,n){var e=Dt(this),r=e.length,i=d(t,r);return new(M(e,e[xt]))(e.buffer,e.byteOffset+i*e.BYTES_PER_ELEMENT,g((void 0===n?r:d(n,r))-i))}},Wt=function(t,n){return It(this,vt.call(Dt(this),t,n))},Bt=function(t){Dt(this);var n=At(arguments[1],1),e=this.length,r=S(t),i=g(r.length),o=0;if(i+n>e)throw U(Et);for(;o<i;)this[n+o]=r[o++]},Vt={entries:function(){return ct.call(Dt(this))},keys:function(){return st.call(Dt(this))},values:function(){return ut.call(Dt(this))}},Gt=function(t,n){return _(t)&&t[St]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Ut=function(t,n){return Gt(t,n=m(n,!0))?l(2,t[n]):G(t,n)},zt=function(t,n,e){return!(Gt(t,n=m(n,!0))&&_(e)&&b(e,"value"))||b(e,"get")||b(e,"set")||e.configurable||b(e,"writable")&&!e.writable||b(e,"enumerable")&&!e.enumerable?V(t,n,e):(t[n]=e.value,t)};_t||(B.f=Ut,W.f=zt),u(u.S+u.F*!_t,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:zt}),o((function(){gt.call({})}))&&(gt=yt=function(){return ht.call(this)});var Ht=p({},Rt);p(Ht,Vt),h(Ht,dt,Vt.values),p(Ht,{slice:Wt,set:Bt,constructor:function(){},toString:gt,toLocaleString:Nt}),Ft(Ht,"buffer","b"),Ft(Ht,"byteOffset","o"),Ft(Ht,"byteLength","l"),Ft(Ht,"length","e"),V(Ht,mt,{get:function(){return this[St]}}),t.exports=function(t,n,e,c){var a=t+((c=!!c)?"Clamped":"")+"Array",l="get"+t,p="set"+t,v=i[a],d=v||{},m=v&&O(v),b=!v||!s.ABV,S={},w=v&&v.prototype,k=function(t,e){V(t,e,{get:function(){return function(t,e){var r=t._d;return r.v[l](e*n+r.o,Pt)}(this,e)},set:function(t){return function(t,e,r){var i=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[p](e*n+i.o,r,Pt)}(this,e,t)},enumerable:!0})};b?(v=e((function(t,e,r,i){f(t,v,a,"_d");var o,u,s,c,l=0,p=0;if(_(e)){if(!(e instanceof J||(c=x(e))==Y||c==q))return St in e?Mt(v,e):Ct.call(v,e);o=e,p=At(r,n);var d=e.byteLength;if(void 0===i){if(d%n)throw U(Et);if((u=d-p)<0)throw U(Et)}else if((u=g(i)*n)+p>d)throw U(Et);s=u/n}else s=y(e),o=new J(u=s*n);for(h(t,"_d",{b:o,o:p,l:u,e:s,v:new X(o)});l<s;)k(t,l++)})),w=v.prototype=E(Ht),h(w,"constructor",v)):o((function(){v(1)}))&&o((function(){new v(-1)}))&&T((function(t){new v,new v(null),new v(1.5),new v(t)}),!0)||(v=e((function(t,e,r,i){var o;return f(t,v,a),_(e)?e instanceof J||(o=x(e))==Y||o==q?void 0!==i?new d(e,At(r,n),i):void 0!==r?new d(e,At(r,n)):new d(e):St in e?Mt(v,e):Ct.call(v,e):new d(y(e))})),Z(m!==Function.prototype?P(d).concat(P(m)):P(d),(function(t){t in v||h(v,t,d[t])})),v.prototype=w,r||(w.constructor=v));var A=w[dt],D=!!A&&("values"==A.name||null==A.name),j=Vt.values;h(v,bt,!0),h(w,St,a),h(w,wt,!0),h(w,xt,v),(c?new v(1)[mt]==a:mt in w)||V(w,mt,{get:function(){return a}}),S[a]=v,u(u.G+u.W+u.F*(v!=d),S),u(u.S,a,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*o((function(){d.of.call(v,1)})),a,{from:Ct,of:Tt}),$ in w||h(w,$,n),u(u.P,a,Rt),L(a),u(u.P+u.F*kt,a,{set:Bt}),u(u.P+u.F*!D,a,Vt),r||w.toString==gt||(w.toString=gt),u(u.P+u.F*o((function(){new v(1).slice()})),a,{slice:Wt}),u(u.P+u.F*(o((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!o((function(){w.toLocaleString.call([1,2])}))),a,{toLocaleString:Nt}),C[a]=D?A:j,r||D||h(w,dt,j)}}else t.exports=function(){}},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(29)("meta"),i=e(4),o=e(13),u=e(9).f,s=0,c=Object.isExtensible||function(){return!0},a=!e(2)((function(){return c(Object.preventExtensions({}))})),f=function(t){u(t,r,{value:{i:"O"+ ++s,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!n)return"E";f(t)}return t[r].i},getWeak:function(t,n){if(!o(t,r)){if(!c(t))return!0;if(!n)return!1;f(t)}return t[r].w},onFreeze:function(t){return a&&l.NEED&&c(t)&&!o(t,r)&&f(t),t}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports=!1},function(t,n,e){var r=e(91),i=e(64);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(19),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=r(t))<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(3),i=e(92),o=e(64),u=e(63)("IE_PROTO"),s=function(){},c=function(){var t,n=e(61)("iframe"),r=o.length;for(n.style.display="none",e(65).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(s.prototype=r(t),e=new s,s.prototype=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(91),i=e(64).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(13),i=e(10),o=e(63)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(5)("unscopables"),i=Array.prototype;null==i[r]&&e(14)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,e){var r=e(9).f,i=e(13),o=e(5)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(0),i=e(24),o=e(2),u=e(67),s="["+u+"]",c=RegExp("^"+s+s+"*"),a=RegExp(s+s+"*$"),f=function(t,n,e){var i={},s=o((function(){return!!u[t]()||"
"!="
"[t]()})),c=i[t]=s?n(l):u[t];e&&(i[e]=c),r(r.P+r.F*s,"String",i)},l=f.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(c,"")),2&n&&(t=t.replace(a,"")),t};t.exports=f},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(1),i=e(9),o=e(8),u=e(5)("species");t.exports=function(t){var n=r[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(11);t.exports=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}},function(t,n,e){var r=e(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(23),i=e(5)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?e:o?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(3),i=e(18),o=e(5)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||null==(e=r(u)[o])?n:i(e)}},function(t,n,e){function r(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function i(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?r(Object(e),!0).forEach((function(n){o(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var u=e(122),s={type:"line",percentage:0,fillColor:"none",strokeColor:"#409eff",backStrokeColor:"#eee",backStrokeWidth:5,textStyle:{},showText:!0,format:null,width:200,height:200,strokeWidth:5,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:0,radius:50,isFan:!1,borderRadius:0,rx:90,ry:40,pathLength:1e3,d:"",isDashed:!1,isBackDashed:!0,dashedLength:5,dashedDistance:3,isTransition:!0,slot:"",lineHeight:30},c=function t(n,e){if(0!==arguments.length){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var r,i=u.deepClone(s);if(!(r=u.isString(n)?document.querySelector(n):n))throw new Error("Container does not exist: "+n);this._container=r,this._opts=u.extend(i,e,!0),"line"!==this._opts.type&&(this.svgContainer=this._getSvgContainer(this._opts),this.svgView=this._getSvgView(this._opts),this.mask=this._getMaskElement(this._opts),this.backProgressElement=this._getBackProgressElement(this._opts),this.progressElement=this._getProgressElement(this._opts),this.textElement=this._getTextElement(this._opts),this.slotElement=this._getSlotElement(this._opts)),this.addElement(this._opts),this.setProgress(this._opts)}};c.prototype.addElement=function(t){t.isDashed,t.showText,t.slot;this.svgView.appendChild(this.mask),this.svgView.appendChild(this.backProgressElement),this.svgView.appendChild(this.progressElement),this.svgView.appendChild(this.textElement),this.svgContainer.appendChild(this.svgView),this.svgContainer.appendChild(this.slotElement),this._container.appendChild(this.svgContainer),this.svgContainer.appendChild(this.addStyle())},c.prototype.setProgress=function(t){if(!u.isObject(t))throw new Error("opts must be a object");if(this._opts=u.extend(this._opts,t,!0),this.content=this._getContent(this._opts),this.perimeter=this._getPerimeter(this._opts),this.centerPoint=this._getCenterPoint(this._opts),this.strokeDasharray=this._getStrokeDasharray(this._opts),this.strokeDashoffset=this._getStrokeDashoffset(this._opts),this.currentStrokeColor=this._getCurrentStrokeColor(this._opts),this.setSvgContainer(this._opts),this._setSvgView(this._opts),this._setMaskElementStyle(this._opts),this._setBackProgressElementStyle(this._opts),this._setProgressElementStyle(this._opts),this._setTextStyle(this._opts),this._setSlotContent(this._opts),"path"===this._opts.type){var n=this._getSvgSize(),e=n.width,r=n.height;this.svgContainer.style.width=e+"px",this.svgContainer.style.height=r+"px",this.svgView.setAttribute("width",e),this.svgView.setAttribute("height",r),this.textElement.setAttribute("x",e/2),this.textElement.setAttribute("y",r/2)}},c.prototype.setSvgContainer=function(t){var n=t.width,e=t.height,r=t.type,i=t.strokeWidth,o=t.lineHeight,u=n+"px",s=e+"px";"rect"===r?(u=n+i+"px",s=e+i+"px"):"line"===r&&(u="100%",s=o+"px"),this.svgContainer.style.width=u,this.svgContainer.style.height=s},c.prototype._setSvgView=function(t){var n=t.width,e=t.height,r=t.type,i=t.strokeWidth;"rect"===r&&(n+=i,e+=i),this.svgView.setAttribute("width",n),this.svgView.setAttribute("height",e)},c.prototype._setMaskElementStyle=function(t){if(t.isDashed){this.mask.style.display="block";var n=this._getMaskStyle(t),e=this.mask.firstChild;for(var r in e.style={},n)e.style[r]=n[r];this._setElementAttribute(e,t)}else this.mask.style.display="none"},c.prototype._setBackProgressElementStyle=function(t){var n=this._getBackgroundStyle(t);for(var e in this.backProgressElement.style={},n)this.backProgressElement.style[e]=n[e];this._setElementAttribute(this.backProgressElement,t)},c.prototype._setProgressElementStyle=function(t){var n=this._getStyle(t);for(var e in this.progressElement.style={},n)this.progressElement.style[e]=n[e];this._setElementAttribute(this.progressElement,t)},c.prototype._setTextStyle=function(t){t.type;var n=t.showText,e=t.slot;if(n&&!e){var r=this.centerPoint,i=r.x,o=r.y,u=this._getTextStyle(t);for(var s in this.textElement.setAttribute("x",i),this.textElement.setAttribute("y",o),this.textElement.style={},u)this.textElement.style[s]=u[s];this.textElement.innerHTML=this.content}else this.textElement.style.display="none"},c.prototype._setSlotContent=function(t){this.slotElement.innerHTML=t.slot},c.prototype._getSvgContainer=function(){var t=document.createElement("div");return t.setAttribute("class","svg-container"),t},c.prototype._getSvgView=function(t){return document.createElementNS("http://www.w3.org/2000/svg","svg")},c.prototype._getMaskElement=function(t){var n=document.createElementNS("http://www.w3.org/2000/svg","mask");n.setAttribute("id",this.state.maskID);var e=this._getCurrentShapeElement(t);return e.setAttribute("class","progress-all__mask"),e.setAttribute("fill","none"),n.appendChild(e),n},c.prototype._getBackProgressElement=function(t){var n=this._getCurrentShapeElement(t),e="progress-".concat(t.type,"__back");return n.setAttribute("class",e),n},c.prototype._getProgressElement=function(t){var n=this._getCurrentShapeElement(t),e="progress-".concat(t.type,"__item");return n.setAttribute("class",e),n.setAttribute("fill","none"),n},c.prototype._getTextElement=function(t){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),e="progress-".concat(t.type,"-text");return n.setAttribute("class",e),n.setAttribute("text-anchor","middle"),n.setAttribute("dominant-baseline","middle"),n},c.prototype._getSlotElement=function(){var t=document.createElement("div");return t.setAttribute("class","slot-container"),t},c.prototype._getMaskStyle=function(t){var n=t.strokeWidth,e=t.isTransition,r={stroke:"white",strokeDasharray:this.perimeter,strokeDashoffset:this.strokeDashoffset,strokeWidth:n};return e&&(r.transition="stroke-dashoffset 0.6s ease"),r},c.prototype._getBackgroundStyle=function(t){var n=t.fillColor,e=t.backStrokeColor,r=t.backStrokeWidth,i=t.strokeLinejoin,o=t.isDashed,u=t.isBackDashed,s=t.isFan,c=t.radius,a=t.borderRadius,f=this.state.type,l={fill:n,strokeLinejoin:i,stroke:e,strokeWidth:r};return o&&u&&(l.strokeDasharray=this.strokeDasharray),"circle"===f&&s&&(l.strokeWidth=2*c),"rect"===f&&(l.rx=a,l.ry=a),l},c.prototype._getStyle=function(t){var n=t.strokeWidth,e=t.strokeLinecap,r=t.strokeLinejoin,i=t.radius,o=t.isFan,u=t.isDashed,s=t.borderRadius,c=t.isTransition,a=this.strokeDasharray,f=this.currentStrokeColor,l=this.state,h=l.type,p=l.maskID,v={stroke:f,strokeWidth:n,strokeDasharray:a,strokeLinecap:e,strokeLinejoin:r};return u?v.mask="url(#".concat(p,")"):v.strokeDashoffset=this.strokeDashoffset,"circle"===h&&o&&(v.strokeWidth=2*i,v.strokeLinecap="butt"),"rect"===h&&(v.rx=s,v.ry=s),c&&(v.transition="stroke-dashoffset 0.6s ease"),v},c.prototype._getTextStyle=function(t){var n=t.textStyle;return i(i({},n),{},{fill:n.color,display:"block"})},c.prototype._getCurrentStrokeColor=function(t){var n=t.strokeColor,e=t.percentage;return"function"==typeof n?n(e):"string"==typeof n?n:function(t,n){for(var e=function(t){var n=100/t.length;return t.map((function(t,e){return"string"==typeof t?{color:t,percentage:(e+1)*n}:t}))}(t).sort((function(t,n){return t.percentage-n.percentage})),r=0;r<e.length;r++)if(e[r].percentage>n)return e[r].color;return e[e.length-1].color}(n,e)},c.prototype._getContent=function(t){var n=t.percentage,e=t.format;return"function"==typeof e?e(n)||"":"".concat(n,"%")},c.prototype._getStrokeDasharray=function(t){var n=t.isDashed,e=t.dashedLength,r=t.dashedDistance;return n?e+" "+r:this.perimeter},c.prototype._getStrokeDashoffset=function(t){var n=t.percentage;return""+this.perimeter*(100-n)/100},c.prototype.addStyle=function(){var t=document.createElement("style");return t.type="text/css",t.innerHTML="\n .progress-container {\n width: 100%;\n }\n .progress-bar-outer {\n width: 100%;\n overflow: hidden;\n position: relative;\n vertical-align: middle;\n }\n .progress-bar-inner {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n text-align: right;\n line-height: 0;\n white-space: nowrap;\n }\n .progress-bar-inner::after {\n display: inline-block;\n content: '';\n height: 100%;\n vertical-align: middle;\n }\n .progress-bar-text {\n display: inline-block;\n vertical-align: middle;\n color: #fff;\n font-size: 12px;\n margin: 0 5px;\n }\n .progress-bar-inner-dashed {\n width: 100%;\n height: 100%;\n position: relative;\n }\n .progress-bar-inner-dashed .back-dash {\n position: absolute;\n width: 100%;\n left: 0;\n top: 0;\n }\n .progress-bar-inner-dashed .back-dash,\n .progress-bar-inner-dashed .inner-dash {\n display: flex;\n height: 100%;\n overflow: hidden;\n }\n .progress-bar-inner-dashed .dash-item {\n flex: 0 0 auto;\n height: 100%;\n }\n .progress-circle-text {\n color: #fff;\n }\n .progress-circle__back,\n .progress-circle__item {\n transform: rotate(-90deg);\n transform-origin: center;\n transform-box: fill-box;\n }\n .svg-container {\n position: relative;\n }\n .svg-container .slot-container {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n ",t},c.prototype._getPerimeter=function(t){},c.prototype._getCenterPoint=function(t){},c.prototype._getOrigin=function(t){},c.prototype._getPerimeter=function(t){},t.exports=c},function(t,n,e){var r=e(7),i=e(1),o="__core-js_shared__",u=i[o]||(i[o]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(30)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(15),i=e(6),o=e(32);t.exports=function(t){return function(n,e,u){var s,c=r(n),a=i(c.length),f=o(u,a);if(t&&e!=e){for(;a>f;)if((s=c[f++])!=s)return!0}else for(;a>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(23);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(5)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(3);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(46),i=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){var o=e.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,e){"use strict";e(109);var r=e(11),i=e(14),o=e(2),u=e(24),s=e(5),c=e(82),a=s("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var h=s(t),p=!o((function(){var n={};return n[h]=function(){return 7},7!=""[t](n)})),v=p?!o((function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[a]=function(){return e}),e[h](""),!n})):void 0;if(!p||!v||"replace"===t&&!f||"split"===t&&!l){var g=/./[h],y=e(u,h,""[t],(function(t,n,e,r,i){return n.exec===c?p&&!i?{done:!0,value:g.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}})),d=y[0],m=y[1];r(String.prototype,t,d),i(RegExp.prototype,h,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}}},function(t,n,e){var r=e(17),i=e(104),o=e(77),u=e(3),s=e(6),c=e(79),a={},f={};(n=t.exports=function(t,n,e,l,h){var p,v,g,y,d=h?function(){return t}:c(t),m=r(e,l,n?2:1),b=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(o(d)){for(p=s(t.length);p>b;b++)if((y=n?m(u(v=t[b])[0],v[1]):m(t[b]))===a||y===f)return y}else for(g=d.call(t);!(v=g.next()).done;)if((y=i(g,m,v.value,n))===a||y===f)return y}).BREAK=a,n.RETURN=f},function(t,n,e){var r=e(1).navigator;t.exports=r&&r.userAgent||""},function(t,n,e){"use strict";var r=e(1),i=e(0),o=e(11),u=e(43),s=e(27),c=e(57),a=e(42),f=e(4),l=e(2),h=e(53),p=e(38),v=e(68);t.exports=function(t,n,e,g,y,d){var m=r[t],b=m,x=y?"set":"add",_=b&&b.prototype,S={},w=function(t){var n=_[t];o(_,t,"delete"==t||"has"==t?function(t){return!(d&&!f(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!f(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof b&&(d||_.forEach&&!l((function(){(new b).entries().next()})))){var E=new b,O=E[x](d?{}:-0,1)!=E,P=l((function(){E.has(1)})),k=h((function(t){new b(t)})),A=!d&&l((function(){for(var t=new b,n=5;n--;)t[x](n,n);return!t.has(-0)}));k||((b=n((function(n,e){a(n,b,t);var r=v(new m,n,b);return null!=e&&c(e,y,r[x],r),r}))).prototype=_,_.constructor=b),(P||A)&&(w("delete"),w("has"),y&&w("get")),(A||O)&&w(x),d&&_.clear&&delete _.clear}else b=g.getConstructor(n,t,y,x),u(b.prototype,e),s.NEED=!0;return p(b,t),S[t]=b,i(i.G+i.W+i.F*(b!=m),S),d||g.setStrong(b,t,y),b}},function(t,n,e){for(var r,i=e(1),o=e(14),u=e(29),s=u("typed_array"),c=u("view"),a=!(!i.ArrayBuffer||!i.DataView),f=a,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=i[h[l++]])?(o(r.prototype,s,!0),o(r.prototype,c,!0)):f=!1;t.exports={ABV:a,CONSTR:f,TYPED:s,VIEW:c}},function(t,n,e){var r=e(4),i=e(1).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){n.f=e(5)},function(t,n,e){var r=e(49)("keys"),i=e(29);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(4),i=e(3),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e(17)(Function.call,e(20).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,n,e){var r=e(4),i=e(66).set;t.exports=function(t,n,e){var o,u=n.constructor;return u!==e&&"function"==typeof u&&(o=u.prototype)!==e.prototype&&r(o)&&i&&i(t,o),t}},function(t,n,e){"use strict";var r=e(19),i=e(24);t.exports=function(t){var n=String(i(this)),e="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(e+=n);return e}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},function(t,n,e){var r=e(19),i=e(24);t.exports=function(t){return function(n,e){var o,u,s=String(i(n)),c=r(e),a=s.length;return c<0||c>=a?t?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===a||(u=s.charCodeAt(c+1))<56320||u>57343?t?s.charAt(c):o:t?s.slice(c,c+2):u-56320+(o-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(30),i=e(0),o=e(11),u=e(14),s=e(40),c=e(103),a=e(38),f=e(35),l=e(5)("iterator"),h=!([].keys&&"next"in[].keys()),p="keys",v="values",g=function(){return this};t.exports=function(t,n,e,y,d,m,b){c(e,n,y);var x,_,S,w=function(t){if(!h&&t in k)return k[t];switch(t){case p:case v:return function(){return new e(this,t)}}return function(){return new e(this,t)}},E=n+" Iterator",O=d==v,P=!1,k=t.prototype,A=k[l]||k["@@iterator"]||d&&k[d],D=A||w(d),j=d?O?w("entries"):D:void 0,I="Array"==n&&k.entries||A;if(I&&(S=f(I.call(new t)))!==Object.prototype&&S.next&&(a(S,E,!0),r||"function"==typeof S[l]||u(S,l,g)),O&&A&&A.name!==v&&(P=!0,D=function(){return A.call(this)}),r&&!b||!h&&!P&&k[l]||u(k,l,D),s[n]=D,s[E]=g,d)if(x={values:O?D:w(v),keys:m?D:w(p),entries:j},b)for(_ in x)_ in k||o(k,_,x[_]);else i(i.P+i.F*(h||P),n,x);return x}},function(t,n,e){var r=e(75),i=e(24);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(i(t))}},function(t,n,e){var r=e(4),i=e(23),o=e(5)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,e){var r=e(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){var r=e(40),i=e(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){"use strict";var r=e(9),i=e(28);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(46),i=e(5)("iterator"),o=e(40);t.exports=e(7).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){"use strict";var r=e(10),i=e(32),o=e(6);t.exports=function(t){for(var n=r(this),e=o(n.length),u=arguments.length,s=i(u>1?arguments[1]:void 0,e),c=u>2?arguments[2]:void 0,a=void 0===c?e:i(c,e);a>s;)n[s++]=t;return n}},function(t,n,e){"use strict";var r=e(36),i=e(108),o=e(40),u=e(15);t.exports=e(73)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){"use strict";var r,i,o=e(54),u=RegExp.prototype.exec,s=String.prototype.replace,c=u,a=(r=/a/,i=/b*/g,u.call(r,"a"),u.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=void 0!==/()??/.exec("")[1];(a||f)&&(c=function(t){var n,e,r,i,c=this;return f&&(e=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),a&&(n=c.lastIndex),r=u.call(c,t),a&&r&&(c.lastIndex=c.global?r.index+r[0].length:n),f&&r&&r.length>1&&s.call(r[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),t.exports=c},function(t,n,e){"use strict";var r=e(72)(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){var r,i,o,u=e(17),s=e(97),c=e(65),a=e(61),f=e(1),l=f.process,h=f.setImmediate,p=f.clearImmediate,v=f.MessageChannel,g=f.Dispatch,y=0,d={},m="onreadystatechange",b=function(){var t=+this;if(d.hasOwnProperty(t)){var n=d[t];delete d[t],n()}},x=function(t){b.call(t.data)};h&&p||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return d[++y]=function(){s("function"==typeof t?t:Function(t),n)},r(y),y},p=function(t){delete d[t]},"process"==e(23)(l)?r=function(t){l.nextTick(u(b,t,1))}:g&&g.now?r=function(t){g.now(u(b,t,1))}:v?(o=(i=new v).port2,i.port1.onmessage=x,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r=m in a("script")?function(t){c.appendChild(a("script")).onreadystatechange=function(){c.removeChild(this),b.call(t)}}:function(t){setTimeout(u(b,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,e){"use strict";var r=e(1),i=e(8),o=e(30),u=e(60),s=e(14),c=e(43),a=e(2),f=e(42),l=e(19),h=e(6),p=e(116),v=e(34).f,g=e(9).f,y=e(80),d=e(38),m="ArrayBuffer",b="DataView",x="Wrong index!",_=r.ArrayBuffer,S=r.DataView,w=r.Math,E=r.RangeError,O=r.Infinity,P=_,k=w.abs,A=w.pow,D=w.floor,j=w.log,I=w.LN2,M="buffer",F="byteLength",C="byteOffset",T=i?"_b":M,L=i?"_l":F,N=i?"_o":C;function R(t,n,e){var r,i,o,u=new Array(e),s=8*e-n-1,c=(1<<s)-1,a=c>>1,f=23===n?A(2,-24)-A(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=k(t))!=t||t===O?(i=t!=t?1:0,r=c):(r=D(j(t)/I),t*(o=A(2,-r))<1&&(r--,o*=2),(t+=r+a>=1?f/o:f*A(2,1-a))*o>=2&&(r++,o/=2),r+a>=c?(i=0,r=c):r+a>=1?(i=(t*o-1)*A(2,n),r+=a):(i=t*A(2,a-1)*A(2,n),r=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(r=r<<n|i,s+=n;s>0;u[l++]=255&r,r/=256,s-=8);return u[--l]|=128*h,u}function W(t,n,e){var r,i=8*e-n-1,o=(1<<i)-1,u=o>>1,s=i-7,c=e-1,a=t[c--],f=127&a;for(a>>=7;s>0;f=256*f+t[c],c--,s-=8);for(r=f&(1<<-s)-1,f>>=-s,s+=n;s>0;r=256*r+t[c],c--,s-=8);if(0===f)f=1-u;else{if(f===o)return r?NaN:a?-O:O;r+=A(2,n),f-=u}return(a?-1:1)*r*A(2,f-n)}function B(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function V(t){return[255&t]}function G(t){return[255&t,t>>8&255]}function U(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return R(t,52,8)}function H(t){return R(t,23,4)}function Y(t,n,e){g(t.prototype,n,{get:function(){return this[e]}})}function q(t,n,e,r){var i=p(+e);if(i+n>t[L])throw E(x);var o=t[T]._b,u=i+t[N],s=o.slice(u,u+n);return r?s:s.reverse()}function $(t,n,e,r,i,o){var u=p(+e);if(u+n>t[L])throw E(x);for(var s=t[T]._b,c=u+t[N],a=r(+i),f=0;f<n;f++)s[c+f]=a[o?f:n-f-1]}if(u.ABV){if(!a((function(){_(1)}))||!a((function(){new _(-1)}))||a((function(){return new _,new _(1.5),new _(NaN),_.name!=m}))){for(var K,J=(_=function(t){return f(this,_),new P(p(t))}).prototype=P.prototype,X=v(P),Z=0;X.length>Z;)(K=X[Z++])in _||s(_,K,P[K]);o||(J.constructor=_)}var Q=new S(new _(2)),tt=S.prototype.setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||c(S.prototype,{setInt8:function(t,n){tt.call(this,t,n<<24>>24)},setUint8:function(t,n){tt.call(this,t,n<<24>>24)}},!0)}else _=function(t){f(this,_,m);var n=p(t);this._b=y.call(new Array(n),0),this[L]=n},S=function(t,n,e){f(this,S,b),f(t,_,b);var r=t[L],i=l(n);if(i<0||i>r)throw E("Wrong offset!");if(i+(e=void 0===e?r-i:h(e))>r)throw E("Wrong length!");this[T]=t,this[N]=i,this[L]=e},i&&(Y(_,F,"_l"),Y(S,M,"_b"),Y(S,F,"_l"),Y(S,C,"_o")),c(S.prototype,{getInt8:function(t){return q(this,1,t)[0]<<24>>24},getUint8:function(t){return q(this,1,t)[0]},getInt16:function(t){var n=q(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=q(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return B(q(this,4,t,arguments[1]))},getUint32:function(t){return B(q(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return W(q(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return W(q(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){$(this,1,t,V,n)},setUint8:function(t,n){$(this,1,t,V,n)},setInt16:function(t,n){$(this,2,t,G,n,arguments[2])},setUint16:function(t,n){$(this,2,t,G,n,arguments[2])},setInt32:function(t,n){$(this,4,t,U,n,arguments[2])},setUint32:function(t,n){$(this,4,t,U,n,arguments[2])},setFloat32:function(t,n){$(this,4,t,H,n,arguments[2])},setFloat64:function(t,n){$(this,8,t,z,n,arguments[2])}});d(_,m),d(S,b),s(S.prototype,u.VIEW,!0),n.ArrayBuffer=_,n.DataView=S},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(121)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,e){t.exports=!e(8)&&!e(2)((function(){return 7!=Object.defineProperty(e(61)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(1),i=e(7),o=e(30),u=e(62),s=e(9).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||s(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(13),i=e(15),o=e(50)(!1),u=e(63)("IE_PROTO");t.exports=function(t,n){var e,s=i(t),c=0,a=[];for(e in s)e!=u&&r(s,e)&&a.push(e);for(;n.length>c;)r(s,e=n[c++])&&(~o(a,e)||a.push(e));return a}},function(t,n,e){var r=e(9),i=e(3),o=e(31);t.exports=e(8)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),s=u.length,c=0;s>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(15),i=e(34).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(r(t))}},function(t,n,e){"use strict";var r=e(8),i=e(31),o=e(51),u=e(45),s=e(10),c=e(44),a=Object.assign;t.exports=!a||e(2)((function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=r}))?function(t,n){for(var e=s(t),a=arguments.length,f=1,l=o.f,h=u.f;a>f;)for(var p,v=c(arguments[f++]),g=l?i(v).concat(l(v)):i(v),y=g.length,d=0;y>d;)p=g[d++],r&&!h.call(v,p)||(e[p]=v[p]);return e}:a},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,e){"use strict";var r=e(18),i=e(4),o=e(97),u=[].slice,s={},c=function(t,n,e){if(!(n in s)){for(var r=[],i=0;i<n;i++)r[i]="a["+i+"]";s[n]=Function("F,a","return new F("+r.join(",")+")")}return s[n](t,e)};t.exports=Function.bind||function(t){var n=r(this),e=u.call(arguments,1),s=function(){var r=e.concat(u.call(arguments));return this instanceof s?c(n,r.length,r):o(n,r,t)};return i(n.prototype)&&(s.prototype=n.prototype),s}},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(1).parseInt,i=e(39).trim,o=e(67),u=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,n){var e=i(String(t),3);return r(e,n>>>0||(u.test(e)?16:10))}:r},function(t,n,e){var r=e(1).parseFloat,i=e(39).trim;t.exports=1/r(e(67)+"-0")!=-1/0?function(t){var n=i(String(t),3),e=r(n);return 0===e&&"-"==n.charAt(0)?-0:e}:r},function(t,n,e){var r=e(23);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(n);return+t}},function(t,n,e){var r=e(4),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,e){"use strict";var r=e(33),i=e(28),o=e(38),u={};e(14)(u,e(5)("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(3);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){var r=e(218);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(18),i=e(10),o=e(44),u=e(6);t.exports=function(t,n,e,s,c){r(n);var a=i(t),f=o(a),l=u(a.length),h=c?l-1:0,p=c?-1:1;if(e<2)for(;;){if(h in f){s=f[h],h+=p;break}if(h+=p,c?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:l>h;h+=p)h in f&&(s=n(s,f[h],h,a));return s}},function(t,n,e){"use strict";var r=e(10),i=e(32),o=e(6);t.exports=[].copyWithin||function(t,n){var e=r(this),u=o(e.length),s=i(t,u),c=i(n,u),a=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===a?u:i(a,u))-c,u-s),l=1;for(c<s&&s<c+f&&(l=-1,c+=f-1,s+=f-1);f-- >0;)c in e?e[s]=e[c]:delete e[s],s+=l,c+=l;return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(82);e(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,n,e){e(8)&&"g"!=/./g.flags&&e(9).f(RegExp.prototype,"flags",{configurable:!0,get:e(54)})},function(t,n,e){"use strict";var r,i,o,u,s=e(30),c=e(1),a=e(17),f=e(46),l=e(0),h=e(4),p=e(18),v=e(42),g=e(57),y=e(47),d=e(84).set,m=e(238)(),b=e(112),x=e(239),_=e(58),S=e(113),w="Promise",E=c.TypeError,O=c.process,P=O&&O.versions,k=P&&P.v8||"",A=c.Promise,D="process"==f(O),j=function(){},I=i=b.f,M=!!function(){try{var t=A.resolve(1),n=(t.constructor={})[e(5)("species")]=function(t){t(j,j)};return(D||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof n&&0!==k.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),F=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},C=function(t,n){if(!t._n){t._n=!0;var e=t._c;m((function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u,s=i?n.ok:n.fail,c=n.resolve,a=n.reject,f=n.domain;try{s?(i||(2==t._h&&N(t),t._h=1),!0===s?e=r:(f&&f.enter(),e=s(r),f&&(f.exit(),u=!0)),e===n.promise?a(E("Promise-chain cycle")):(o=F(e))?o.call(e,c,a):c(e)):a(r)}catch(t){f&&!u&&f.exit(),a(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&T(t)}))}},T=function(t){d.call(c,(function(){var n,e,r,i=t._v,o=L(t);if(o&&(n=x((function(){D?O.emit("unhandledRejection",i,t):(e=c.onunhandledrejection)?e({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=D||L(t)?2:1),t._a=void 0,o&&n.e)throw n.v}))},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){d.call(c,(function(){var n;D?O.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})}))},R=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),C(n,!0))},W=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw E("Promise can't be resolved itself");(n=F(t))?m((function(){var r={_w:e,_d:!1};try{n.call(t,a(W,r,1),a(R,r,1))}catch(t){R.call(r,t)}})):(e._v=t,e._s=1,C(e,!1))}catch(t){R.call({_w:e,_d:!1},t)}}};M||(A=function(t){v(this,A,w,"_h"),p(t),r.call(this);try{t(a(W,this,1),a(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(43)(A.prototype,{then:function(t,n){var e=I(y(this,A));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=D?O.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&C(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=a(W,t,1),this.reject=a(R,t,1)},b.f=I=function(t){return t===A||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!M,{Promise:A}),e(38)(A,w),e(41)(w),u=e(7).Promise,l(l.S+l.F*!M,w,{reject:function(t){var n=I(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(s||!M),w,{resolve:function(t){return S(s&&this===u?A:this,t)}}),l(l.S+l.F*!(M&&e(53)((function(t){A.all(t).catch(j)}))),w,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=x((function(){var e=[],o=0,u=1;g(t,!1,(function(t){var s=o++,c=!1;e.push(void 0),u++,n.resolve(t).then((function(t){c||(c=!0,e[s]=t,--u||r(e))}),i)})),--u||r(e)}));return o.e&&i(o.v),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=x((function(){g(t,!1,(function(t){n.resolve(t).then(e.resolve,r)}))}));return i.e&&r(i.v),e.promise}})},function(t,n,e){"use strict";var r=e(18);function i(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r})),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new i(t)}},function(t,n,e){var r=e(3),i=e(4),o=e(112);t.exports=function(t,n){if(r(t),i(n)&&n.constructor===t)return n;var e=o.f(t);return(0,e.resolve)(n),e.promise}},function(t,n,e){"use strict";var r=e(9).f,i=e(33),o=e(43),u=e(17),s=e(42),c=e(57),a=e(73),f=e(108),l=e(41),h=e(8),p=e(27).fastKey,v=e(37),g=h?"_s":"size",y=function(t,n){var e,r=p(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,a){var f=t((function(t,r){s(t,f,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,null!=r&&c(r,e,t[a],t)}));return o(f.prototype,{clear:function(){for(var t=v(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var e=v(this,n),r=y(e,t);if(r){var i=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),e._f==r&&(e._f=i),e._l==r&&(e._l=o),e[g]--}return!!r},forEach:function(t){v(this,n);for(var e,r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!y(v(this,n),t)}}),h&&r(f.prototype,"size",{get:function(){return v(this,n)[g]}}),f},def:function(t,n,e){var r,i,o=y(t,n);return o?o.v=e:(t._l=o={i:i=p(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,e){a(t,n,(function(t,e){this._t=v(t,n),this._k=e,this._l=void 0}),(function(){for(var t=this,n=t._k,e=t._l;e&&e.r;)e=e.p;return t._t&&(t._l=e=e?e.n:t._t._f)?f(0,"keys"==n?e.k:"values"==n?e.v:[e.k,e.v]):(t._t=void 0,f(1))}),e?"entries":"values",!e,!0),l(n)}}},function(t,n,e){"use strict";var r=e(43),i=e(27).getWeak,o=e(3),u=e(4),s=e(42),c=e(57),a=e(22),f=e(13),l=e(37),h=a(5),p=a(6),v=0,g=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},d=function(t,n){return h(t.a,(function(t){return t[0]===n}))};y.prototype={get:function(t){var n=d(this,t);if(n)return n[1]},has:function(t){return!!d(this,t)},set:function(t,n){var e=d(this,t);e?e[1