UNPKG

highcharts

Version:
7 lines 158 kB
/** @preserve * canvg.js - Javascript SVG parser and renderer on Canvas * v3.0.4 - https://unpkg.com/canvg@3.0.4/lib/umd.js * MIT Licensed * https://github.com/canvg/canvg */ (function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e=e||self,t(e.canvg={}))})(this,function(e){'use strict';var ce=Math.tan,pe=Math.atan2,ye=Math.PI,he=Math.round,fe=String.prototype,me=Math.max,xe=Math.min,be=Math.ceil,ve=Math.sin,ke=Math.cos,Se=Math.floor,Pe=Math.sqrt,Ae=Math.pow;function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e,t){return RegExp(e,t)}function a(e){return e.replace(/(?!\u3000)\s+/gm," ")}function r(e){return e.replace(/^[\n \t]+/,"")}function l(e){return e.replace(/[\n \t]+$/,"")}function o(e){var t=(e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}function s(e){return ua.test(e)?e.toLowerCase():e}function d(e){var t=e.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return t[2]||t[3]||t[4]}function u(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],a=!0,r=!1,i=void 0;try{for(var l=e[Symbol.iterator](),o;!(a=(o=l.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(e){r=!0,i=e}finally{try{a||null==l["return"]||l["return"]()}finally{if(r)throw i}}return n}}function g(e,t){return ha(e)||fa(e,t)||ma()}function p(e,t){var n=e.match(t);return n?[e.replace(t," "),n.length]:[e,0]}function y(e){var t=[0,0,0],n=e.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,r=p(n,ba),i=xa(r,2);n=i[0],a=i[1],t[1]+=a;var l=p(n,va),o=xa(l,2);n=o[0],a=o[1],t[0]+=a;var s=p(n,ka),d=xa(s,2);n=d[0],a=d[1],t[1]+=a;var u=p(n,Sa),g=xa(u,2);n=g[0],a=g[1],t[2]+=a;var c=p(n,Pa),y=xa(c,2);n=y[0],a=y[1],t[1]+=a;var h=p(n,Aa),f=xa(h,2);n=f[0],a=f[1],t[1]+=a,n=n.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," ");var m=p(n,Ea),x=xa(m,2);return n=x[0],a=x[1],t[2]+=a,t.join("")}function h(e){return Pe(Ae(e[0],2)+Ae(e[1],2))}function x(e,t){return(e[0]*t[0]+e[1]*t[1])/(h(e)*h(t))}function b(e,t){var n=Math.acos;return(e[0]*t[1]<e[1]*t[0]?-1:1)*n(x(e,t))}function v(e){return e*e*e}function k(e){return 3*e*e*(1-e)}function S(e){return 3*e*(1-e)*(1-e)}function P(e){return(1-e)*(1-e)*(1-e)}function A(e){return e*e}function E(e){return 2*e*(1-e)}function T(e){return(1-e)*(1-e)}function C(e,t,n,a,r,i,l){try{var o=e[i](l),s=o.value}catch(e){return void n(e)}o.done?t(s):Promise.resolve(s).then(a,r)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){for(var n=0,a;n<t.length;n++)a=t[n],a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}function V(){throw new Error("setTimeout has not been defined")}function R(){throw new Error("clearTimeout has not been defined")}function L(t){if(co===setTimeout)return setTimeout(t,0);if((co===V||!co)&&setTimeout)return co=setTimeout,setTimeout(t,0);try{return co(t,0)}catch(n){try{return co.call(null,t,0)}catch(n){return co.call(this,t,0)}}}function I(t){if(po===clearTimeout)return clearTimeout(t);if((po===R||!po)&&clearTimeout)return po=clearTimeout,clearTimeout(t);try{return po(t)}catch(n){try{return po.call(null,t)}catch(n){return po.call(this,t)}}}function D(){ho&&mo&&(ho=!1,mo.length?yo=mo.concat(yo):fo=-1,yo.length&&N())}function N(){if(!ho){var e=L(D);ho=!0;for(var t=yo.length;t;){for(mo=yo,yo=[];++fo<t;)mo&&mo[fo].run();fo=-1,t=yo.length}mo=null,ho=!1,I(e)}}function M(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];yo.push(new z(e,t)),1!==yo.length||ho||L(N)}function z(e,t){this.fun=e,this.array=t}function B(){}function _(){throw new Error("process.binding is not supported")}function F(){return"/"}function G(){throw new Error("process.chdir is not supported")}function H(){return 0}function Y(e){var t=1e-3*Ao.call(Po),n=Se(t),a=Se(1e9*(t%1));return e&&(n-=e[0],a-=e[1],0>a&&(n--,a+=1e9)),[n,a]}function $(){var e=new Date;return(e-Eo)/1e3}function U(e){var t=e.trim();return /^('|")/.test(t)?t:"\"".concat(t,"\"")}function W(e){return"undefined"==typeof process?e:e.trim().split(",").map(U).join(",")}function q(e){if(!e)return"";var t=e.trim().toLowerCase();return"normal"===t||"italic"===t||"oblique"===t||"inherit"===t||"initial"===t||"unset"===t?t:/^oblique\s+(-|)\d+deg$/.test(t)?t:""}function X(e){if(!e)return"";var t=e.trim().toLowerCase();return"normal"===t||"bold"===t||"lighter"===t||"bolder"===t||"inherit"===t||"initial"===t||"unset"===t?t:/^[\d.]+$/.test(t)?t:""}function Q(e){return a(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function K(e){var t=e.split("("),n=xa(t,2),a=n[0],r=n[1];return[a.trim(),r.trim().replace(")","")]}function Z(e){var t=e.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ");return a(t).trim()}function J(e,t,n,a,r,i){return e[4*(n*a)+4*t+i]}function ee(e,t,n,a,r,i,l){e[4*(n*a)+4*t+i]=l}function te(e,t,n){var a=e[t];return a*(0>a?n-255:n)}function m(e,t,n,a){return t+ke(e)*n+ve(e)*a}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t,n,a,r){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==c(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=e.getContext("2d");try{return i.getImageData(t,n,a,r)}catch(t){throw new Error("unable to access image data: "+t)}}function re(e,t,n,a,r,i){if(!(isNaN(i)||1>i)){i|=0;var l=ae(e,t,n,a,r);l=ie(l,t,n,a,r,i),e.getContext("2d").putImageData(l,t,n)}}function ie(e,t,n,a,r,l){var o=e.data,s=a-1,d=r-1,u=l+1,g=u*(u+1)/2,c=new og,h=c,f,m,b,v,k,S,P,A,E,T,C,w,O,V,R,L,I,D,N,M,z,B,_,F,j;for(b=1;b<2*l+1;b++)h=h.next=new og,b===u&&(j=h);h.next=c;var G=null,H=null;P=S=0;var Y=ig[l],$=lg[l];for(m=0;m<r;m++){for(L=I=D=N=A=E=T=C=0,w=u*(M=o[S]),O=u*(z=o[S+1]),V=u*(B=o[S+2]),R=u*(_=o[S+3]),A+=g*M,E+=g*z,T+=g*B,C+=g*_,h=c,b=0;b<u;b++)h.r=M,h.g=z,h.b=B,h.a=_,h=h.next;for(b=1;b<u;b++)v=S+((s<b?s:b)<<2),A+=(h.r=M=o[v])*(F=u-b),E+=(h.g=z=o[v+1])*F,T+=(h.b=B=o[v+2])*F,C+=(h.a=_=o[v+3])*F,L+=M,I+=z,D+=B,N+=_,h=h.next;for(G=c,H=j,f=0;f<a;f++)o[S+3]=_=C*Y>>$,0===_?o[S]=o[S+1]=o[S+2]=0:(_=255/_,o[S]=(A*Y>>$)*_,o[S+1]=(E*Y>>$)*_,o[S+2]=(T*Y>>$)*_),A-=w,E-=O,T-=V,C-=R,w-=G.r,O-=G.g,V-=G.b,R-=G.a,v=P+((v=f+l+1)<s?v:s)<<2,L+=G.r=o[v],I+=G.g=o[v+1],D+=G.b=o[v+2],N+=G.a=o[v+3],A+=L,E+=I,T+=D,C+=N,G=G.next,w+=M=H.r,O+=z=H.g,V+=B=H.b,R+=_=H.a,L-=M,I-=z,D-=B,N-=_,H=H.next,S+=4;P+=a}for(f=0;f<a;f++){for(I=D=N=L=E=T=C=A=0,S=f<<2,w=u*(M=o[S]),O=u*(z=o[S+1]),V=u*(B=o[S+2]),R=u*(_=o[S+3]),A+=g*M,E+=g*z,T+=g*B,C+=g*_,h=c,b=0;b<u;b++)h.r=M,h.g=z,h.b=B,h.a=_,h=h.next;for(k=a,b=1;b<=l;b++)S=k+f<<2,A+=(h.r=M=o[S])*(F=u-b),E+=(h.g=z=o[S+1])*F,T+=(h.b=B=o[S+2])*F,C+=(h.a=_=o[S+3])*F,L+=M,I+=z,D+=B,N+=_,h=h.next,b<d&&(k+=a);for(S=f,G=c,H=j,m=0;m<r;m++)v=S<<2,o[v+3]=_=C*Y>>$,0<_?(_=255/_,o[v]=(A*Y>>$)*_,o[v+1]=(E*Y>>$)*_,o[v+2]=(T*Y>>$)*_):o[v]=o[v+1]=o[v+2]=0,A-=w,E-=O,T-=V,C-=R,w-=G.r,O-=G.g,V-=G.b,R-=G.a,v=f+((v=m+u)<d?v:d)*a<<2,A+=L+=G.r=o[v],E+=I+=G.g=o[v+1],T+=D+=G.b=o[v+2],C+=N+=G.a=o[v+3],G=G.next,w+=M=H.r,O+=z=H.g,V+=B=H.b,R+=_=H.a,L-=M,I-=z,D-=B,N-=_,H=H.next,S+=a}return e}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function oe(e){for(var t=1,n;t<arguments.length;t++)n=null==arguments[t]?{}:arguments[t],t%2?le(Object(n),!0).forEach(function(t){Ur(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))});return e}function se(){return de.apply(this,arguments)}function de(){return de=$r(Yr.mark(function e(t){var n=arguments,a,r;return Yr.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=!!(1<n.length&&void 0!==n[1])&&n[1],r=document.createElement("img"),a&&(r.crossOrigin="Anonymous"),e.abrupt("return",new Promise(function(e,n){r.onload=function(){e(r)},r.onerror=function(){n()},r.src=t}));case 4:case"end":return e.stop();}},e)})),de.apply(this,arguments)}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ge(e){for(var t=1,n;t<arguments.length;t++)n=null==arguments[t]?{}:arguments[t],t%2?ue(Object(n),!0).forEach(function(t){Ur(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))});return e}var Ee="undefined"==typeof globalThis?"undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?{}:self:global:window:globalThis,Te=function(e){return e&&e.Math==Math&&e},Ce=Te("object"==typeof globalThis&&globalThis)||Te("object"==typeof window&&window)||Te("object"==typeof self&&self)||Te("object"==typeof Ee&&Ee)||Function("return this")(),we=function(e){try{return!!e()}catch(e){return!0}},Oe=!we(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Ve={}.propertyIsEnumerable,Re=Object.getOwnPropertyDescriptor,Le=Re&&!Ve.call({1:2},1),Ie=Le?function(e){var t=Re(this,e);return!!t&&t.enumerable}:Ve,f={f:Ie},De=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ne={}.toString,Me=function(e){return Ne.call(e).slice(8,-1)},ze="".split,Be=we(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==Me(e)?ze.call(e,""):Object(e)}:Object,_e=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Fe=function(e){return Be(_e(e))},je=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Ge=function(e,t){if(!je(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!je(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!je(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!je(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")},He={}.hasOwnProperty,Ye=function(e,t){return He.call(e,t)},$e=Ce.document,Ue=je($e)&&je($e.createElement),We=function(e){return Ue?$e.createElement(e):{}},qe=!Oe&&!we(function(){return 7!=Object.defineProperty(We("div"),"a",{get:function(){return 7}}).a}),Xe=Object.getOwnPropertyDescriptor,Qe=Oe?Xe:function(e,t){if(e=Fe(e),t=Ge(t,!0),qe)try{return Xe(e,t)}catch(e){}return Ye(e,t)?De(!f.f.call(e,t),e[t]):void 0},Ke={f:Qe},Ze=function(e){if(!je(e))throw TypeError(e+" is not an object");return e},Je=Object.defineProperty,et=Oe?Je:function(e,t,n){if(Ze(e),t=Ge(t,!0),Ze(n),qe)try{return Je(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},tt={f:et},nt=Oe?function(e,t,n){return tt.f(e,t,De(1,n))}:function(e,t,n){return e[t]=n,e},at=function(e,t){try{nt(Ce,e,t)}catch(n){Ce[e]=t}return t},rt="__core-js_shared__",it=Ce[rt]||at(rt,{}),lt=it,ot=Function.toString;"function"!=typeof lt.inspectSource&&(lt.inspectSource=function(e){return ot.call(e)});var st=lt.inspectSource,dt=Ce.WeakMap,ut="function"==typeof dt&&/native code/.test(st(dt)),gt=t(function(e){(e.exports=function(e,t){return lt[e]||(lt[e]=void 0===t?{}:t)})("versions",[]).push({version:"3.6.1",mode:"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),ct=0,pt=Math.random(),yt=function(e){return"Symbol("+((void 0===e?"":e)+")_")+(++ct+pt).toString(36)},ht=gt("keys"),ft=function(e){return ht[e]||(ht[e]=yt(e))},mt={},xt=Ce.WeakMap,bt=function(e){return St(e)?kt(e):vt(e,{})},vt,kt,St;if(ut){var Pt=new xt,At=Pt.get,Et=Pt.has,Tt=Pt.set;vt=function(e,t){return Tt.call(Pt,e,t),t},kt=function(e){return At.call(Pt,e)||{}},St=function(e){return Et.call(Pt,e)}}else{var Ct=ft("state");mt[Ct]=!0,vt=function(e,t){return nt(e,Ct,t),t},kt=function(e){return Ye(e,Ct)?e[Ct]:{}},St=function(e){return Ye(e,Ct)}}var wt={set:vt,get:kt,has:St,enforce:bt,getterFor:function(e){return function(t){var n;if(!je(t)||(n=kt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ot=t(function(e){var t=wt.get,n=wt.enforce,a=(String+"").split("String");(e.exports=function(e,t,r,i){var l=!!i&&!!i.unsafe,o=!!i&&!!i.enumerable,s=!!i&&!!i.noTargetGet;return("function"==typeof r&&("string"==typeof t&&!Ye(r,"name")&&nt(r,"name",t),n(r).source=a.join("string"==typeof t?t:"")),e===Ce)?void(o?e[t]=r:at(t,r)):void(l?!s&&e[t]&&(o=!0):delete e[t],o?e[t]=r:nt(e,t,r))})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||st(this)})}),Vt=Ce,Rt=function(e){return"function"==typeof e?e:void 0},Lt=function(e,t){return 2>arguments.length?Rt(Vt[e])||Rt(Ce[e]):Vt[e]&&Vt[e][t]||Ce[e]&&Ce[e][t]},It=function(e){return isNaN(e=+e)?0:(0<e?Se:be)(e)},Dt=function(e){return 0<e?xe(It(e),9007199254740991):0},Nt=function(e,t){var n=It(e);return 0>n?me(n+t,0):xe(n,t)},Mt=function(e){return function(t,n,a){var r=Fe(t),i=Dt(r.length),l=Nt(a,i),o;if(e&&n!=n){for(;i>l;)if(o=r[l++],o!=o)return!0;}else for(;i>l;l++)if((e||l in r)&&r[l]===n)return e||l||0;return!e&&-1}},zt={includes:Mt(!0),indexOf:Mt(!1)},Bt=zt.indexOf,_t=function(e,t){var n=Fe(e),a=0,r=[],l;for(l in n)!Ye(mt,l)&&Ye(n,l)&&r.push(l);for(;t.length>a;)Ye(n,l=t[a++])&&(~Bt(r,l)||r.push(l));return r},Ft=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jt=Ft.concat("length","prototype"),Gt=Object.getOwnPropertyNames||function(e){return _t(e,jt)},Ht={f:Gt},Yt=Object.getOwnPropertySymbols,$t={f:Yt},Ut=Lt("Reflect","ownKeys")||function(e){var t=Ht.f(Ze(e)),n=$t.f;return n?t.concat(n(e)):t},Wt=function(e,t){for(var n=Ut(t),a=tt.f,r=Ke.f,l=0,o;l<n.length;l++)o=n[l],Ye(e,o)||a(e,o,r(t,o))},qt=/#|\.prototype\./,Xt=function(e,t){var n=Kt[Qt(e)];return n==Jt||n!=Zt&&("function"==typeof t?we(t):!!t)},Qt=Xt.normalize=function(e){return(e+"").replace(qt,".").toLowerCase()},Kt=Xt.data={},Zt=Xt.NATIVE="N",Jt=Xt.POLYFILL="P",en=Xt,tn=Ke.f,nn=function(e,t){var n=e.target,a=e.global,r=e.stat,i,l,o,s,d,u;if(l=a?Ce:r?Ce[n]||at(n,{}):(Ce[n]||{}).prototype,l)for(o in t){if(d=t[o],e.noTargetGet?(u=tn(l,o),s=u&&u.value):s=l[o],i=en(a?o:n+(r?".":"#")+o,e.forced),!i&&void 0!==s){if(typeof d==typeof s)continue;Wt(d,s)}(e.sham||s&&s.sham)&&nt(d,"sham",!0),Ot(l,o,d,e)}},an=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return e},rn=function(e,t,n){return(an(e),void 0===t)?e:0===n?function(){return e.call(t)}:1===n?function(n){return e.call(t,n)}:2===n?function(n,a){return e.call(t,n,a)}:3===n?function(n,a,r){return e.call(t,n,a,r)}:function(){return e.apply(t,arguments)}},ln=function(e){return Object(_e(e))},on=Array.isArray||function(e){return"Array"==Me(e)},sn=!!Object.getOwnPropertySymbols&&!we(function(){return!(Symbol()+"")}),dn=sn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,un=gt("wks"),gn=Ce.Symbol,cn=dn?gn:gn&&gn.withoutSetter||yt,pn=function(e){return Ye(un,e)||(sn&&Ye(gn,e)?un[e]=gn[e]:un[e]=cn("Symbol."+e)),un[e]},yn=pn("species"),hn=function(e,t){var n;return on(e)&&(n=e.constructor,"function"==typeof n&&(n===Array||on(n.prototype))?n=void 0:je(n)&&(n=n[yn],null===n&&(n=void 0))),new(void 0===n?Array:n)(0===t?0:t)},fn=[].push,mn=function(e){var t=1==e,n=4==e,a=6==e;return function(r,i,l,o){for(var s=ln(r),d=Be(s),u=rn(i,l,3),g=Dt(d.length),c=0,p=o||hn,y=t?p(r,g):2==e?p(r,0):void 0,h,f;g>c;c++)if((5==e||a||c in d)&&(h=d[c],f=u(h,c,s),e))if(t)y[c]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return c;case 2:fn.call(y,h);}else if(n)return!1;return a?-1:3==e||n?n:y}},xn={forEach:mn(0),map:mn(1),filter:mn(2),some:mn(3),every:mn(4),find:mn(5),findIndex:mn(6)},bn=Lt("navigator","userAgent")||"",vn=Ce.process,kn=vn&&vn.versions,Sn=kn&&kn.v8,Pn,An;Sn?(Pn=Sn.split("."),An=Pn[0]+Pn[1]):bn&&(Pn=bn.match(/Edge\/(\d+)/),(!Pn||74<=Pn[1])&&(Pn=bn.match(/Chrome\/(\d+)/),Pn&&(An=Pn[1])));var En=An&&+An,Tn=pn("species"),Cn=function(e){return 51<=En||!we(function(){var t=[],n=t.constructor={};return n[Tn]=function(){return{foo:1}},1!==t[e](Boolean).foo})},wn=xn.map,On=Cn("map"),Vn=On&&!we(function(){[].map.call({length:-1,0:1},function(e){throw e})});nn({target:"Array",proto:!0,forced:!On||!Vn},{map:function(e){return wn(this,e,1<arguments.length?arguments[1]:void 0)}});var Rn="[\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]",Ln=RegExp("^"+Rn+Rn+"*"),In=RegExp(Rn+Rn+"*$"),Dn=function(e){return function(t){var n=_e(t)+"";return 1&e&&(n=n.replace(Ln,"")),2&e&&(n=n.replace(In,"")),n}},Nn={start:Dn(1),end:Dn(2),trim:Dn(3)},Mn=Nn.trim,zn=Ce.parseFloat,Bn=1/zn("\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF-0")!=-Infinity,_n=Bn?function(e){var t=Mn(e+""),n=zn(t);return 0===n&&"-"==t.charAt(0)?-0:n}:zn;nn({global:!0,forced:parseFloat!=_n},{parseFloat:_n});var Fn=function(){var e=Ze(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},jn=we(function(){var e=n("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),Gn=we(function(){var e=n("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),Hn={UNSUPPORTED_Y:jn,BROKEN_CARET:Gn},Yn=RegExp.prototype.exec,$n=fe.replace,Un=Yn,Wn=function(){var e=/a/,t=/b*/g;return Yn.call(e,"a"),Yn.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),qn=Hn.UNSUPPORTED_Y||Hn.BROKEN_CARET,Xn=void 0!==/()??/.exec("")[1];(Wn||Xn||qn)&&(Un=function(e){var t=this,n=qn&&t.sticky,a=Fn.call(t),r=t.source,l=0,o=e,s,d,u,g;return n&&(a=a.replace("y",""),-1===a.indexOf("g")&&(a+="g"),o=(e+"").slice(t.lastIndex),0<t.lastIndex&&(!t.multiline||t.multiline&&"\n"!==e[t.lastIndex-1])&&(r="(?: "+r+")",o=" "+o,l++),d=new RegExp("^(?:"+r+")",a)),Xn&&(d=new RegExp("^"+r+"$(?!\\s)",a)),Wn&&(s=t.lastIndex),u=Yn.call(n?d:t,o),n?u?(u.input=u.input.slice(l),u[0]=u[0].slice(l),u.index=t.lastIndex,t.lastIndex+=u[0].length):t.lastIndex=0:Wn&&u&&(t.lastIndex=t.global?u.index+u[0].length:s),Xn&&u&&1<u.length&&$n.call(u[0],d,function(){for(g=1;g<arguments.length-2;g++)void 0===arguments[g]&&(u[g]=void 0)}),u});var Qn=Un;nn({target:"RegExp",proto:!0,forced:/./.exec!==Qn},{exec:Qn});var Kn=pn("species"),Zn=!we(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),Jn=function(){return"$0"==="a".replace(/./,"$0")}(),ea=!we(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),ta=function(e,t,n,a){var r=pn(e),i=!we(function(){var t={};return t[r]=function(){return 7},7!=""[e](t)}),l=i&&!we(function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[Kn]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return t=!0,null},n[r](""),!t});if(!i||!l||"replace"===e&&!(Zn&&Jn)||"split"===e&&!ea){var o=/./[r],s=n(r,""[e],function(e,t,n,a,r){return t.exec===Qn?i&&!r?{done:!0,value:o.call(t,n,a)}:{done:!0,value:e.call(n,t,a)}:{done:!1}},{REPLACE_KEEPS_$0:Jn}),d=s[0],u=s[1];Ot(String.prototype,e,d),Ot(RegExp.prototype,r,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}a&&nt(RegExp.prototype[r],"sham",!0)},na=function(e){return function(t,n){var a=_e(t)+"",r=It(n),i=a.length,l,o;return 0>r||r>=i?e?"":void 0:(l=a.charCodeAt(r),55296>l||56319<l||r+1===i||56320>(o=a.charCodeAt(r+1))||57343<o?e?a.charAt(r):l:e?a.slice(r,r+2):(l-55296<<10)+(o-56320)+65536)}},aa={codeAt:na(!1),charAt:na(!0)},ra=aa.charAt,ia=function(e,t,n){return t+(n?ra(e,t).length:1)},la=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==Me(e))throw TypeError("RegExp#exec called on incompatible receiver");return Qn.call(e,t)};ta("match",1,function(e,t,a){return[function(t){var n=_e(this),a=null==t?void 0:t[e];return void 0===a?new RegExp(t)[e](n+""):a.call(t,n)},function(e){var r=a(t,e,this);if(r.done)return r.value;var i=Ze(e),l=this+"";if(!i.global)return la(i,l);var o=i.unicode;i.lastIndex=0;for(var s=[],d=0,u,g;null!==(u=la(i,l));)g=u[0]+"",s[d]=g,""==g&&(i.lastIndex=ia(l,Dt(i.lastIndex),o)),d++;return 0===d?null:s}]});var oa=/\$([$&'`]|\d\d?|<[^>]*>)/g,sa=/\$([$&'`]|\d\d?)/g,da=function(e){return void 0===e?e:e+""};ta("replace",2,function(e,t,n,a){function r(e,a,r,i,l,o){var s=r+e.length,d=i.length,n=sa;return void 0!==l&&(l=ln(l),n=oa),t.call(o,n,function(t,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return a.slice(0,r);case"'":return a.slice(s);case"<":u=l[o.slice(1,-1)];break;default:var g=+o;if(0==g)return t;if(g>d){var n=Se(g/10);return 0===n?t:n<=d?void 0===i[n-1]?o.charAt(1):i[n-1]+o.charAt(1):t}u=i[g-1];}return void 0===u?"":u})}return[function(n,a){var r=_e(this),i=null==n?void 0:n[e];return void 0===i?t.call(r+"",n,a):i.call(n,r,a)},function(e,l){if(a.REPLACE_KEEPS_$0||"string"==typeof l&&-1===l.indexOf("$0")){var o=n(t,e,this,l);if(o.done)return o.value}var s=Ze(e),d=this+"",u="function"==typeof l;u||(l+="");var g=s.global;if(g){var c=s.unicode;s.lastIndex=0}for(var p=[],y,h;(y=la(s,d),null!==y)&&(p.push(y),!!g);)h=y[0]+"",""==h&&(s.lastIndex=ia(d,Dt(s.lastIndex),c));for(var f="",m=0,x=0;x<p.length;x++){y=p[x];for(var b=y[0]+"",v=me(xe(It(y.index),d.length),0),k=[],S=1;S<y.length;S++)k.push(da(y[S]));var P=y.groups;if(u){var A=[b].concat(k,v,d);void 0!==P&&A.push(P);var E=l.apply(void 0,A)+""}else E=r(b,d,v,k,P,l);v>=m&&(f+=d.slice(m,v)+E,m=v+b.length)}return f+d.slice(m)}]});var ua=/^[A-Z-]+$/,ga=function(e,t){var n=[][e];return!n||!we(function(){n.call(null,t||function(){throw 1},1)})},ca=[].join,pa=Be!=Object,ya=ga("join",",");nn({target:"Array",proto:!0,forced:pa||ya},{join:function(e){return ca.call(Fe(this),void 0===e?",":e)}});var ha=function(e){if(Array.isArray(e))return e},fa=u,ma=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},xa=g,ba=/(\[[^\]]+\])/g,va=/(#[^\s\+>~\.\[:]+)/g,ka=/(\.[^\s\+>~\.\[:]+)/g,Sa=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Pa=/(:[\w-]+\([^\)]*\))/gi,Aa=/(:[^\s\+>~\.\[:]+)/g,Ea=/([^\s\+>~\.\[:]+)/g,Ta=1e-8,Ca=Object.keys||function(e){return _t(e,Ft)},wa=Oe?Object.defineProperties:function(e,t){Ze(e);for(var n=Ca(t),a=n.length,r=0,i;a>r;)tt.f(e,i=n[r++],t[i]);return e},Oa=Lt("document","documentElement"),Va=">",Ra="<",La="prototype",Ia="script",Da=ft("IE_PROTO"),Na=function(){},Ma=function(e){return Ra+Ia+Va+e+Ra+"/"+Ia+Va},za=function(e){e.write(Ma("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ba=function(){var e=We("iframe"),t;return e.style.display="none",Oa.appendChild(e),e.src="java"+Ia+":"+"",t=e.contentWindow.document,t.open(),t.write(Ma("document.F=Object")),t.close(),t.F},_a=function(){try{Fa=document.domain&&new ActiveXObject("htmlfile")}catch(e){}_a=Fa?za(Fa):Ba();for(var e=Ft.length;e--;)delete _a[La][Ft[e]];return _a()},Fa;mt[Da]=!0;var ja=Object.create||function(e,t){var n;return null===e?n=_a():(Na[La]=Ze(e),n=new Na,Na[La]=null,n[Da]=e),void 0===t?n:wa(n,t)},Ga=Ht.f,Ha={}.toString,Ya="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$a=function(e){try{return Ga(e)}catch(e){return Ya.slice()}},Ua={f:function(e){return Ya&&"[object Window]"==Ha.call(e)?$a(e):Ga(Fe(e))}},Wa={f:pn},qa=tt.f,Xa=function(e){var t=Vt.Symbol||(Vt.Symbol={});Ye(t,e)||qa(t,e,{value:Wa.f(e)})},Qa=tt.f,Ka=pn("toStringTag"),Za=function(e,t,n){e&&!Ye(e=n?e:e.prototype,Ka)&&Qa(e,Ka,{configurable:!0,value:t})},Ja=xn.forEach,er=ft("hidden"),tr="Symbol",nr="prototype",ar=pn("toPrimitive"),rr=wt.set,ir=wt.getterFor(tr),lr=Object[nr],or=Ce.Symbol,sr=Lt("JSON","stringify"),dr=Ke.f,ur=tt.f,gr=Ua.f,cr=f.f,pr=gt("symbols"),yr=gt("op-symbols"),hr=gt("string-to-symbol-registry"),fr=gt("symbol-to-string-registry"),mr=gt("wks"),xr=Ce.QObject,br=!xr||!xr[nr]||!xr[nr].findChild,vr=Oe&&we(function(){return 7!=ja(ur({},"a",{get:function(){return ur(this,"a",{value:7}).a}})).a})?function(e,t,n){var a=dr(lr,t);a&&delete lr[t],ur(e,t,n),a&&e!==lr&&ur(lr,t,a)}:ur,kr=function(e,t){var n=pr[e]=ja(or[nr]);return rr(n,{type:tr,tag:e,description:t}),Oe||(n.description=t),n},Sr=dn?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof or},Pr=function(e,t,n){e===lr&&Pr(yr,t,n),Ze(e);var a=Ge(t,!0);return Ze(n),Ye(pr,a)?(n.enumerable?(Ye(e,er)&&e[er][a]&&(e[er][a]=!1),n=ja(n,{enumerable:De(0,!1)})):(!Ye(e,er)&&ur(e,er,De(1,{})),e[er][a]=!0),vr(e,a,n)):ur(e,a,n)},Ar=function(e,t){Ze(e);var n=Fe(t),a=Ca(n).concat(wr(n));return Ja(a,function(t){(!Oe||Er.call(n,t))&&Pr(e,t,n[t])}),e},Er=function(e){var t=Ge(e,!0),n=cr.call(this,t);return(this!==lr||!Ye(pr,t)||Ye(yr,t))&&(!(n||!Ye(this,t)||!Ye(pr,t)||Ye(this,er)&&this[er][t])||n)},Tr=function(e,t){var n=Fe(e),a=Ge(t,!0);if(n!==lr||!Ye(pr,a)||Ye(yr,a)){var r=dr(n,a);return r&&Ye(pr,a)&&!(Ye(n,er)&&n[er][a])&&(r.enumerable=!0),r}},Cr=function(e){var t=gr(Fe(e)),n=[];return Ja(t,function(e){Ye(pr,e)||Ye(mt,e)||n.push(e)}),n},wr=function(e){var t=e===lr,n=gr(t?yr:Fe(e)),a=[];return Ja(n,function(e){Ye(pr,e)&&(!t||Ye(lr,e))&&a.push(pr[e])}),a};if(sn||(or=function(){if(this instanceof or)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?arguments[0]+"":void 0,t=yt(e),n=function(e){this===lr&&n.call(yr,e),Ye(this,er)&&Ye(this[er],t)&&(this[er][t]=!1),vr(this,t,De(1,e))};return Oe&&br&&vr(lr,t,{configurable:!0,set:n}),kr(t,e)},Ot(or[nr],"toString",function(){return ir(this).tag}),Ot(or,"withoutSetter",function(e){return kr(yt(e),e)}),f.f=Er,tt.f=Pr,Ke.f=Tr,Ht.f=Ua.f=Cr,$t.f=wr,Wa.f=function(e){return kr(pn(e),e)},Oe&&(ur(or[nr],"description",{configurable:!0,get:function(){return ir(this).description}}),Ot(lr,"propertyIsEnumerable",Er,{unsafe:!0}))),nn({global:!0,wrap:!0,forced:!sn,sham:!sn},{Symbol:or}),Ja(Ca(mr),function(e){Xa(e)}),nn({target:tr,stat:!0,forced:!sn},{for:function(e){var t=e+"";if(Ye(hr,t))return hr[t];var n=or(t);return hr[t]=n,fr[n]=t,n},keyFor:function(e){if(!Sr(e))throw TypeError(e+" is not a symbol");return Ye(fr,e)?fr[e]:void 0},useSetter:function(){br=!0},useSimple:function(){br=!1}}),nn({target:"Object",stat:!0,forced:!sn,sham:!Oe},{create:function(e,t){return void 0===t?ja(e):Ar(ja(e),t)},defineProperty:Pr,defineProperties:Ar,getOwnPropertyDescriptor:Tr}),nn({target:"Object",stat:!0,forced:!sn},{getOwnPropertyNames:Cr,getOwnPropertySymbols:wr}),nn({target:"Object",stat:!0,forced:we(function(){$t.f(1)})},{getOwnPropertySymbols:function(e){return $t.f(ln(e))}}),sr){var Or=!sn||we(function(){var e=or();return"[null]"!=sr([e])||"{}"!=sr({a:e})||"{}"!=sr(Object(e))});nn({target:"JSON",stat:!0,forced:Or},{stringify:function(e,t){for(var n=[e],a=1,r;arguments.length>a;)n.push(arguments[a++]);if(r=t,(je(t)||void 0!==e)&&!Sr(e))return on(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Sr(t))return t}),n[1]=t,sr.apply(null,n)}})}or[nr][ar]||nt(or[nr],ar,or[nr].valueOf),Za(or,tr),mt[er]=!0;var Vr=xn.filter,Rr=Cn("filter"),Lr=Rr&&!we(function(){[].filter.call({length:-1,0:1},function(e){throw e})});nn({target:"Array",proto:!0,forced:!Rr||!Lr},{filter:function(e){return Vr(this,e,1<arguments.length?arguments[1]:void 0)}});var Ir=xn.forEach,Dr=ga("forEach")?function(e){return Ir(this,e,1<arguments.length?arguments[1]:void 0)}:[].forEach;nn({target:"Array",proto:!0,forced:[].forEach!=Dr},{forEach:Dr}),nn({target:"Object",stat:!0,forced:!Oe,sham:!Oe},{defineProperties:wa}),nn({target:"Object",stat:!0,forced:!Oe,sham:!Oe},{defineProperty:tt.f});var Nr=Ke.f,Mr=we(function(){Nr(1)});nn({target:"Object",stat:!0,forced:!Oe||Mr,sham:!Oe},{getOwnPropertyDescriptor:function(e,t){return Nr(Fe(e),t)}});var zr=function(e,t,n){var a=Ge(t);a in e?tt.f(e,a,De(0,n)):e[a]=n};nn({target:"Object",stat:!0,sham:!Oe},{getOwnPropertyDescriptors:function(e){for(var t=Fe(e),n=Ke.f,a=Ut(t),r={},i=0,l,o;a.length>i;)o=n(t,l=a[i++]),void 0!==o&&zr(r,l,o);return r}});var Br=we(function(){Ca(1)});nn({target:"Object",stat:!0,forced:Br},{keys:function(e){return Ca(ln(e))}});var _r={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 Fr in _r){var jr=Ce[Fr],Gr=jr&&jr.prototype;if(Gr&&Gr.forEach!==Dr)try{nt(Gr,"forEach",Dr)}catch(e){Gr.forEach=Dr}}var Hr=t(function(e){var t=function(e){function t(e,t,n,r){var i=t&&t.prototype instanceof a?t:a,l=Object.create(i.prototype),o=new c(r||[]);return l._invoke=s(e,n,o),l}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function a(){}function r(){}function i(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function o(e){function t(a,r,i,l){var o=n(e[a],e,r);if("throw"===o.type)l(o.arg);else{var s=o.arg,d=s.value;return d&&"object"==typeof d&&f.call(d,"__await")?Promise.resolve(d.__await).then(function(e){t("next",e,i,l)},function(e){t("throw",e,i,l)}):Promise.resolve(d).then(function(e){s.value=e,i(s)},function(e){return t("throw",e,i,l)})}}function a(e,n){function a(){return new Promise(function(a,r){t(e,n,a,r)})}return r=r?r.then(a,a):a()}var r;this._invoke=a}function s(e,t,a){var r="suspendedStart";return function(i,l){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw l;return y()}for(a.method=i,a.arg=l;;){var o=a.delegate;if(o){var s=d(o,a);if(s){if(s===S)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var u=n(e,t,a);if("normal"===u.type){if(r=a.done?"completed":"suspendedYield",u.arg===S)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(r="completed",a.method="throw",a.arg=u.arg)}}}function d(e,t){var a=e.iterator[t.method];if(a===k){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=k,d(e,t),"throw"===t.method))return S;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var r=n(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,S;var i=r.arg;if(!i)return t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,S;if(i.done)t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=k);else return i;return t.delegate=null,S}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function g(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function c(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function p(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(f.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=k,t.done=!0,t};return a.next=a}}return{next:y}}function y(){return{value:k,done:!0}}var h=Object.prototype,f=h.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},x=m.iterator||"@@iterator",b=m.asyncIterator||"@@asyncIterator",v=m.toStringTag||"@@toStringTag",k;e.wrap=t;var S={},P={};P[x]=function(){return this};var A=Object.getPrototypeOf,E=A&&A(A(p([])));E&&E!==h&&f.call(E,x)&&(P=E);var T=i.prototype=a.prototype=Object.create(P);return r.prototype=T.constructor=i,i.constructor=r,i[v]=r.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,!(v in e)&&(e[v]="GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},l(o.prototype),o.prototype[b]=function(){return this},e.AsyncIterator=o,e.async=function(n,a,r,i){var l=new o(t(n,a,r,i));return e.isGeneratorFunction(a)?l:l.next().then(function(e){return e.done?e.value:l.next()})},l(T),T[v]="Generator",T[x]=function(){return this},T.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var a=t.pop();if(a in e)return n.value=a,n.done=!1,n}return n.done=!0,n}},e.values=p,c.prototype={constructor:c,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=k,this.done=!1,this.delegate=null,this.method="next",this.arg=k,this.tryEntries.forEach(g),!e)for(var t in this)"t"===t.charAt(0)&&f.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=k)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,a){return l.type="throw",l.arg=e,n.next=t,a&&(n.method="next",n.arg=k),!!a}if(this.done)throw e;for(var n=this,a=this.tryEntries.length-1;0<=a;--a){var r=this.tryEntries[a],l=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var o=f.call(r,"catchLoc"),s=f.call(r,"finallyLoc");if(o&&s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(o){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);}else if(!s)throw new Error("try statement without catch or finally");else if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1,a;0<=n;--n)if(a=this.tryEntries[n],a.tryLoc<=this.prev&&f.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var l=r?r.completion:{};return l.type=e,l.arg=t,r?(this.method="next",this.next=r.finallyLoc,S):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),S},finish:function(e){for(var t=this.tryEntries.length-1,n;0<=t;--t)if(n=this.tryEntries[t],n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),g(n),S},catch:function(e){for(var t=this.tryEntries.length-1,n;0<=t;--t)if(n=this.tryEntries[t],n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;g(n)}return r}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:p(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=k),S}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}),Yr=Hr,$r=function(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){function i(e){C(o,a,r,i,l,"next",e)}function l(e){C(o,a,r,i,l,"throw",e)}var o=e.apply(t,n);i(void 0)})}},Ur=w,Wr=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qr=function(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),e},Xr=pn("isConcatSpreadable"),Qr=9007199254740991,Kr="Maximum allowed index exceeded",Zr=51<=En||!we(function(){var e=[];return e[Xr]=!1,e.concat()[0]!==e}),Jr=Cn("concat"),ei=function(e){if(!je(e))return!1;var t=e[Xr];return void 0===t?on(e):!!t};nn({target:"Array",proto:!0,forced:!Zr||!Jr},{concat:function(){var e=ln(this),t=hn(e,0),a=0,r,l,o,s,d;for(r=-1,o=arguments.length;r<o;r++)if(d=-1===r?e:arguments[r],ei(d)){if(s=Dt(d.length),a+s>Qr)throw TypeError(Kr);for(l=0;l<s;l++,a++)l in d&&zr(t,a,d[l])}else{if(a>=Qr)throw TypeError(Kr);zr(t,a++,d)}return t.length=a,t}});var ti=xn.every;nn({target:"Array",proto:!0,forced:ga("every")},{every:function(e){return ti(this,e,1<arguments.length?arguments[1]:void 0)}});var ni=function(e){return function(t,n,a,r){an(n);var l=ln(t),o=Be(l),s=Dt(l.length),d=e?s-1:0,u=e?-1:1;if(2>a)for(;;){if(d in o){r=o[d],d+=u;break}if(d+=u,e?0>d:s<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?0<=d:s>d;d+=u)d in o&&(r=n(r,o[d],d,l));return r}},ai={left:ni(!1),right:ni(!0)},ri=ai.left;nn({target:"Array",proto:!0,forced:ga("reduce")},{reduce:function(e){return ri(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}});var ii=Date.prototype,li="Invalid Date",oi="toString",si=ii[oi],di=ii.getTime;new Date(NaN)+""!=li&&Ot(ii,oi,function(){var e=di.call(this);return e===e?si.call(this):li});var ui=pn("toStringTag"),gi={};gi[ui]="z";var ci="[object z]"===gi+"",pi=pn("toStringTag"),yi="Arguments"==Me(function(){return arguments}()),hi=function(e,t){try{return e[t]}catch(e){}},fi=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=hi(t=Object(e),pi))?n:yi?Me(t):"Object"==(a=Me(t))&&"function"==typeof t.callee?"Arguments":a},mi=function(){return"[object "+fi(this)+"]"};ci||Ot(Object.prototype,"toString",mi,{unsafe:!0});var xi=Ce.Promise,bi=function(e,t,n){for(var a in t)Ot(e,a,t[a],n);return e},vi=pn("species"),ki=function(e){var t=Lt(e),n=tt.f;Oe&&t&&!t[vi]&&n(t,vi,{configurable:!0,get:function(){return this}})},Si=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Pi={},Ai=pn("iterator"),Ei=Array.prototype,Ti=function(e){return void 0!==e&&(Pi.Array===e||Ei[Ai]===e)},Ci=pn("iterator"),wi=function(e){if(null!=e)return e[Ci]||e["@@iterator"]||Pi[fi(e)]},Oi=function(e,t,n,a){try{return a?t(Ze(n)[0],n[1]):t(n)}catch(t){var r=e["return"];throw void 0!==r&&Ze(r.call(e)),t}},Vi=t(function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,a,r,i){var l=rn(n,a,r?2:1),o,s,d,u,g,c,p;if(i)o=e;else{if(s=wi(e),"function"!=typeof s)throw TypeError("Target is not iterable");if(Ti(s)){for(d=0,u=Dt(e.length);u>d;d++)if(g=r?l(Ze(p=e[d])[0],p[1]):l(e[d]),g&&g instanceof t)return g;return new t(!1)}o=s.call(e)}for(c=o.next;!(p=c.call(o)).done;)if(g=Oi(o,l,p.value,r),"object"==typeof g&&g&&g instanceof t)return g;return new t(!1)};n.stop=function(e){return new t(!0,e)}}),Ri=pn("iterator"),Li=!1;try{var Ii=0,Di={next:function(){return{done:!!Ii++}},return:function(){Li=!0}};Di[Ri]=function(){return this},Array.from(Di,function(){throw 2})}catch(e){}var Ni=function(e,t){if(!t&&!Li)return!1;var n=!1;try{var a={};a[Ri]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n},Mi=pn("species"),zi=function(e,t){var n=Ze(e).constructor,a;return void 0===n||null==(a=Ze(n)[Mi])?t:an(a)},Bi=/(iphone|ipod|ipad).*applewebkit/i.test(bn),_i=Ce.location,Fi=Ce.setImmediate,ji=Ce.clearImmediate,Gi=Ce.process,Hi=Ce.MessageChannel,Yi=Ce.Dispatch,$i=0,Ui={},Wi="onreadystatechange",qi=function(e){if(Ui.hasOwnProperty(e)){var t=Ui[e];delete Ui[e],t()}},Xi=function(e){return function(){qi(e)}},Qi=function(e){qi(e.data)},Ki=function(e){Ce.postMessage(e+"",_i.protocol+"//"+_i.host)},Zi,Ji,el;Fi&&ji||(Fi=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ui[++$i]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Zi($i),$i},ji=function(e){delete Ui[e]},"process"==Me(Gi)?Zi=function(e){Gi.nextTick(Xi(e))}:Yi&&Yi.now?Zi=function(e){Yi.now(Xi(e))}:Hi&&!Bi?(Ji=new Hi,el=Ji.port2,Ji.port1.onmessage=Qi,Zi=rn(el.postMessage,el,1)):!Ce.addEventListener||"function"!=typeof postMessage||Ce.importScripts||we(Ki)?Wi in We("script")?Zi=function(e){Oa.appendChild(We("script"))[Wi]=function(){Oa.removeChild(this),qi(e)}}:Zi=function(e){setTimeout(Xi(e),0)}:(Zi=Ki,Ce.addEventListener("message",Qi,!1)));var tl={set:Fi,clear:ji},nl=Ke.f,al=tl.set,rl=Ce.MutationObserver||Ce.WebKitMutationObserver,il=Ce.process,ll=Ce.Promise,ol="process"==Me(il),sl=nl(Ce,"queueMicrotask"),dl=sl&&sl.value,ul,gl,cl,pl,yl,hl,fl,ml;dl||(ul=function(){var e,t;for(ol&&(e=il.domain)&&e.exit();gl;){t=gl.fn,gl=gl.next;try{t()}catch(e){throw gl?pl():cl=void 0,e}}cl=void 0,e&&e.enter()},ol?pl=function(){il.nextTick(ul)}:rl&&!Bi?(yl=!0,hl=document.createTextNode(""),new rl(ul).observe(hl,{characterData:!0}),pl=function(){hl.data=yl=!yl}):ll&&ll.resolve?(fl=ll.resolve(void 0),ml=fl.then,pl=function(){ml.call(fl,ul)}):pl=function(){al.call(Ce,ul)});var xl=dl||function(e){var t={fn:e,next:void 0};cl&&(cl.next=t),gl||(gl=t,pl()),cl=t},bl=function(e){var t,n;this.promise=new e(function(e,a){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=a}),this.resolve=an(t),this.reject=an(n)},vl={f:function(e){return new bl(e)}},kl=function(e,t){if(Ze(e),je(t)&&t.constructor===e)return t;var n=vl.f(e),a=n.resolve;return a(t),n.promise},Sl=function(e,t){var n=Ce.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))},Pl=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Al=tl.set,El=pn("species"),Tl="Promise",Cl=wt.get,wl=wt.set,Ol=wt.getterFor(Tl),Vl=xi,Rl=Ce.TypeError,Ll=Ce.document,Il=Ce.process,Dl=Lt("fetch"),Nl=vl.f,Ml=Nl,zl="process"==Me(Il),Bl=!!(Ll&&Ll.createEvent&&Ce.dispatchEvent),_l="unhandledrejection",Fl=0,jl=1,Gl=1,Hl=2,Yl=en(Tl,function(){var e=st(Vl)!==Vl+"";if(!e){if(66===En)return!0;if(!zl&&"function"!=typeof PromiseRejectionEvent)return!0}if(51<=En&&/native code/.test(Vl))return!1;var t=Vl.resolve(1),n=function(e){e(function(){},function(){})},a=t.constructor={};return a[El]=n,!(t.then(function(){})instanceof n)}),$l=Yl||!Ni(function(e){Vl.all(e)["catch"](function(){})}),Ul=function(e){var t;return!!(je(e)&&"function"==typeof(t=e.then))&&t},Wl=function(e,t,n){if(!t.notified){t.notified=!0;var a=t.reactions;xl(function(){for(var r=t.value,i=t.state==jl,l=0;a.length>l;){var o=a[l++],s=i?o.ok:o.fail,d=o.resolve,u=o.reject,g=o.domain,c,p,y;try{s?(!i&&(t.rejection===Hl&&Kl(e,t),t.rejection=Gl),!0===s?c=r:(g&&g.enter(),c=s(r),g&&(g.exit(),y=!0)),c===o.promise?u(Rl("Promise-chain cycle")):(p=Ul(c))?p.call(c,d,u):d(c)):u(r)}catch(e){g&&!y&&g.exit(),u(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Xl(e,t)})}},ql=function(e,t,n){var a,r;Bl?(a=Ll.createEvent("Event"),a.promise=t,a.reason=n,a.initEvent(e,!1,!0),Ce.dispatchEvent(a)):a={promise:t,reason:n},(r=Ce["on"+e])?r(a):e===_l&&Sl("Unhandled promise rejection",n)},Xl=function(e,t){Al.call(Ce,function(){var n=t.value,a=Ql(t),r;if(a&&(r=Pl(function(){zl?Il.emit("unhandledRejection",n,e):ql(_l,e,n)}),t.rejection=zl||Ql(t)?Hl:Gl,r.error))throw r.value})},Ql=function(e){return e.rejection!==Gl&&!e.parent},Kl=function(e,t){Al.call(Ce,function(){zl?Il.emit("rejectionHandled",e):ql("rejectionhandled",e,t.value)})},Zl=function(e,t,n,a){return function(r){e(t,n,r,a)}},Jl=function(e,t,n,a){t.done||(t.done=!0,a&&(t=a),t.value=n,t.state=2,Wl(e,t,!0))},eo=function(e,t,n,a){if(!t.done){t.done=!0,a&&(t=a);try{if(e===n)throw Rl("Promise can't be resolved itself");var r=Ul(n);r?xl(function(){var a={done:!1};try{r.call(n,Zl(eo,e,a,t),Zl(Jl,e,a,t))}catch(n){Jl(e,a,n,t)}}):(t.value=n,t.state=jl,Wl(e,t,!1))}catch(n){Jl(e,{done:!1},n,t)}}},to,no,ao,ro;Yl&&(Vl=function(e){Si(this,Vl,Tl),an(e),to.call(this);var t=Cl(this);try{e(Zl(eo,this,t),Zl(Jl,this,t))}catch(e){Jl(this,t,e)}},to=function(){wl(this,{type:Tl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Fl,value:void 0})},to.prototype=bi(Vl.prototype,{then:function(e,t){var n=Ol(this),a=Nl(zi(this,Vl));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=zl?Il.domain:void 0,n.parent=!0,n.reactions.push(a),n.state!=Fl&&Wl(this,n,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),no=function(){var e=new to,t=Cl(e);this.promise=e,this.resolve=Zl(eo,e,t),this.reject=Zl(Jl,e,t)},vl.f=Nl=function(e){return e===Vl||e===ao?new no(e):Ml(e)},"function"==typeof xi&&(ro=xi.prototype.then,Ot(xi.prototype,"then",function(e,t){var n=this;return new Vl(function(e,t){ro.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof Dl&&nn({global:!0,enumerable:!0,forced:!0},{fetch:function(){return kl(Vl,Dl.apply(Ce,arguments))}}))),nn({global:!0,wrap:!0,forced:Yl},{Promise:Vl}),Za(Vl,Tl,!1),ki(Tl),ao=Lt(Tl),nn({target:Tl,stat:!0,forced:Yl},{reject:function(e){var t=Nl(this);return t.reject.call(void 0,e),t.promise}}),nn({target:Tl,stat:!0,forced:Yl},{resolve:function(e){return kl(this,e)}}),nn({target:Tl,stat:!0,forced:$l},{all:function(e){var t=this,n=Nl(t),a=n.resolve,r=n.reject,i=Pl(function(){var n=an(t.resolve),i=[],l=0,o=1;Vi(e,function(e){var s=l++,d=!1;i.push(void 0),o++,n.call(t,e).then(function(e){d||(d=!0,i[s]=e,--o||a(i))},r)}),--o||a(i)});return i.error&&r(i.value),n.promise},race:function(e){var t=this,n=Nl(t),a=n.reject,r=Pl(function(){var r=an(t.resolve);Vi(e,function(e){r.call(t,e).then(n.resolve,a)})});return r.error&&a(r.value),n.promise}});var io=pn("match"),lo=function(e){var t;return je(e)&&(void 0===(t=e[io])?"RegExp"==Me(e):!!t)},oo=[].push,so=4294967295,uo=!we(function(){return!RegExp(so,"y")});ta("split",2,function(e,t,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,n){var a=_e(this)+"",r=void 0===n?so:n>>>0;if(0===r)return[];if(void 0===e)return[a];if(!lo(e))return t.call(a,e,r);for(var i=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),o=0,s=new RegExp(e.source,l+"g"),d,u,g;(d=Qn.call(s,a))&&(u=s.lastIndex,!(u>o&&(i.push(a.slice(o,d.index)),1<d.length&&d.index<a.length&&oo.apply(i,d.slice(1)),g=d[0].length,o=u,i.length>=r)));)s.lastIndex===d.index&&s.lastIndex++;return o===a.length?(g||!s.test(""))&&i.push(""):i.push(a.slice(o)),i.length>r?i.slice(0,r):i}:function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)},[function(t,n){var r=_e(this),i=null==t?void 0:t[e];return void 0===i?a.call(r+"",t,n):i.call(t,r,n)},function(r,l){var o=n(a,r,this,l,a!==t);if(o.done)return o.value;var s=Ze(r),d=this+"",u=zi(s,RegExp),g=s.unicode,c=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(uo?"y":"g"),y=new u(uo?s:"^(?:"+s.source+")",c),h=void 0===l?so:l>>>0;if(0===h)return[];if(0===d.length)return null===la(y,d)?[d]:[];for(var f=0,m=0,x=[];m<d.length;){y.lastIndex=uo?m:0;var b=la(y,uo?d:d.slice(m)),v;if(null===b||(v=xe(Dt(y.lastIndex+(uo?0:m)),d.length))===f)m=ia(d,m,g);else{if(x.push(d.slice(f,m)),x.length===h)return x;for(var k=1;k<=b.length-1;k++)if(x.push(b[k]),x.length===h)return x;m=f=v}}return x.push(d.slice(f)),x}]},!uo);var go="undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global,co=V,po=R;"function"==typeof go.setTimeout&&(co=setTimeout),"function"==typeof go.clearTimeout&&(po=clearTimeout);var yo=[],ho=!1,fo=-1,mo;z.prototype.run=function(){this.fun.apply(null,this.array)};for(var xo={},bo=[],vo={},ko={},So={},Po=go.performance||{},Ao=Po.now||Po.mozNow||Po.msNow||Po.oNow||Po.webkitNow||function(){return new Date().getTime()},Eo=new Date,To={nextTick:M,title:"browser",browser:!0,env:xo,argv:bo,version:"",versions:vo,on:B,addListener:B,once:B,off:B,removeListener:B,removeAllListeners:B,emit:B,binding:_,cwd:F,chdir:G,umask:H,hrtime:Y,platform:"browser",release:ko,config:So,uptime:$},Co=t(function(e){(function(){var t,n,a,r,i,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof To&&null!==To&&To.hrtime?(e.exports=function(){return(t()-i)/1e6},n=To.hrtime,t=function(){var e;return e=n(),1e9*e[0]+e[1]},r=t(),l=1e9*To.uptime(),i=r-l):Date.now?(e.exports=function(){return Date.now()-a},a=Date.now()):(e.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(Ee)}),wo="undefined"==typeof window?Ee:window,Oo=["moz","webkit"],Vo="AnimationFrame",Ro=wo["request"+Vo],Lo=wo["cancel"+Vo]||wo["cancelRequest"+Vo],Io=0;!Ro&&Io<Oo.length;Io++)Ro=wo[Oo[Io]+"Request"+Vo],Lo=wo[Oo[Io]+"Cancel"+Vo]||wo[Oo[Io]+"CancelRequest"+Vo];if(!Ro||!Lo){var Do=0,No=0,Mo=[];Ro=function(e){if(0===Mo.length){var t=Co(),n=me(0,1e3/60-(t-Do));Do=n+t,setTimeout(function(){var e=Mo.slice(0);Mo.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(Do)}catch(t){setTimeout(function(){throw t},0)}},he(n))}return Mo.push({handle:++No,callback:e,cancelled:!1}),No},Lo=function(e){for(var t=0;t<Mo.length;t++)Mo[t].handle===e&&(Mo[t].cancelled=!0)}}var zo=function(e){return Ro.call(wo,e)},Bo=function(){Lo.apply(wo,arguments)},_o=function(e){e||(e=wo),e.requestAnimationFrame=Ro,e.cancelAnimationFrame=Lo};zo.cancel=Bo,zo.polyfill=_o;var Fo=tt.f,jo=Function.prototype,Go=jo.toString,Ho=/^\s*function ([^ (]*)/,Yo="name";Oe&&!(Yo in jo)&&Fo(jo,Yo,{configurable:!0,get:function(){try{return Go.call(this).match(Ho)[1]}catch(e){return""}}});var $o=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,"