forked from SeregPie/VueWordCloud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
VueWordCloud.js
1 lines (1 loc) · 71.6 KB
/
VueWordCloud.js
1
(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t(require('vue')):'function'==typeof define&&define.amd?define(['vue'],t):e.VueWordCloud=t(e.Vue)})(this,function(e){'use strict';function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,'default')?e['default']:e}function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){var t,r;this.promise=new e(function(e,n){if(void 0!=t||void 0!=r)throw TypeError('Bad Promise constructor');t=e,r=n}),this.resolve=x(t),this.reject=x(r)}var o=Math.max,a=Math.min,c=Math.floor,u=Math.ceil;e=e&&e.hasOwnProperty('default')?e['default']:e;var s=r(function(e){!function(t){function r(e,t,r,n){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),c=new p(n||[]);return a._invoke=s(e,r,c),a}function n(e,t,r){try{return{type:'normal',arg:e.call(t,r)}}catch(e){return{type:'throw',arg:e}}}function o(){}function i(){}function a(){}function c(e){['next','throw','return'].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function t(r,o,i,a){var c=n(e[r],e,o);if('throw'===c.type)a(c.arg);else{var u=c.arg,s=u.value;return s&&'object'==typeof s&&m.call(s,'__await')?Promise.resolve(s.__await).then(function(e){t('next',e,i,a)},function(e){t('throw',e,i,a)}):Promise.resolve(s).then(function(e){u.value=e,i(u)},a)}}var r;this._invoke=function(e,n){function o(){return new Promise(function(r,o){t(e,n,r,o)})}return r=r?r.then(o,o):o()}}function s(e,t,r){var o=E;return function(i,a){if(o==O)throw new Error('Generator is already running');if(o==P){if('throw'===i)throw a;return y()}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=l(c,r);if(u){if(u===T)continue;return u}}if('next'===r.method)r.sent=r._sent=r.arg;else if('throw'===r.method){if(o==E)throw o=P,r.arg;r.dispatchException(r.arg)}else'return'===r.method&&r.abrupt('return',r.arg);o=O;var s=n(e,t,r);if('normal'===s.type){if(o=r.done?P:S,s.arg===T)continue;return{value:s.arg,done:r.done}}'throw'===s.type&&(o=P,r.method='throw',r.arg=s.arg)}}}function l(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,'throw'===t.method){if(e.iterator.return&&(t.method='return',t.arg=void 0,l(e,t),'throw'===t.method))return T;t.method='throw',t.arg=new TypeError('The iterator does not provide a \'throw\' method')}return T}var o=n(r,e.iterator,t.arg);if('throw'===o.type)return t.method='throw',t.arg=o.arg,t.delegate=null,T;var i=o.arg;if(!i)return t.method='throw',t.arg=new TypeError('iterator result is not an object'),t.delegate=null,T;if(i.done)t[e.resultName]=i.value,t.next=e.nextLoc,'return'!==t.method&&(t.method='next',t.arg=void 0);else return i;return t.delegate=null,T}function f(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 d(e){var t=e.completion||{};t.type='normal',delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:'root'}],e.forEach(f,this),this.reset(!0)}function h(e){if(e){var t=e[_];if(t)return t.call(e);if('function'==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(m.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:y}}function y(){return{value:void 0,done:!0}}var g=Object.prototype,m=g.hasOwnProperty,v='function'==typeof Symbol?Symbol:{},_=v.iterator||'@@iterator',x=v.asyncIterator||'@@asyncIterator',b=v.toStringTag||'@@toStringTag',w=t.regeneratorRuntime;if(w)return void(e.exports=w);w=t.regeneratorRuntime=e.exports,w.wrap=r;var E='suspendedStart',S='suspendedYield',O='executing',P='completed',T={},k={};k[_]=function(){return this};var L=Object.getPrototypeOf,j=L&&L(L(h([])));j&&j!==g&&m.call(j,_)&&(k=j);var R=a.prototype=o.prototype=Object.create(k);i.prototype=R.constructor=a,a.constructor=i,a[b]=i.displayName='GeneratorFunction',w.isGeneratorFunction=function(e){var t='function'==typeof e&&e.constructor;return!!t&&(t===i||'GeneratorFunction'===(t.displayName||t.name))},w.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,!(b in e)&&(e[b]='GeneratorFunction')),e.prototype=Object.create(R),e},w.awrap=function(e){return{__await:e}},c(u.prototype),u.prototype[x]=function(){return this},w.AsyncIterator=u,w.async=function(e,t,n,o){var i=new u(r(e,t,n,o));return w.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},c(R),R[b]='Generator',R[_]=function(){return this},R.toString=function(){return'[object Generator]'},w.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},w.values=h,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method='next',this.arg=void 0,this.tryEntries.forEach(d),!e)for(var t in this)'t'===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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,n){return i.type='throw',i.arg=e,r.next=t,n&&(r.method='next',r.arg=void 0),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if('root'===o.tryLoc)return t('end');if(o.tryLoc<=this.prev){var a=m.call(o,'catchLoc'),c=m.call(o,'finallyLoc');if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);}else if(!c)throw new Error('try statement without catch or finally');else if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}},abrupt:function(e,t){for(var r,n=this.tryEntries.length-1;0<=n;--n)if(r=this.tryEntries[n],r.tryLoc<=this.prev&&m.call(r,'finallyLoc')&&this.prev<r.finallyLoc){var o=r;break}o&&('break'===e||'continue'===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method='next',this.next=o.finallyLoc,T):this.complete(i)},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),T},finish:function(e){for(var t,r=this.tryEntries.length-1;0<=r;--r)if(t=this.tryEntries[r],t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),d(t),T},catch:function(e){for(var t,r=this.tryEntries.length-1;0<=r;--r)if(t=this.tryEntries[r],t.tryLoc===e){var n=t.completion;if('throw'===n.type){var o=n.arg;d(t)}return o}throw new Error('illegal catch attempt')},delegateYield:function(e,t,r){return this.delegate={iterator:h(e),resultName:t,nextLoc:r},'next'===this.method&&(this.arg=void 0),T}}}(function(){return this}()||Function('return this')())}),l=function(){return this}()||Function('return this')(),d=l.regeneratorRuntime&&0<=Object.getOwnPropertyNames(l).indexOf('regeneratorRuntime'),p=d&&l.regeneratorRuntime;l.regeneratorRuntime=void 0;if(d)l.regeneratorRuntime=p;else try{delete l.regeneratorRuntime}catch(t){l.regeneratorRuntime=void 0}var h=s,y=function(e){return isNaN(e=+e)?0:(0<e?c:u)(e)},g=function(e){if(void 0==e)throw TypeError('Can\'t call method on '+e);return e},m=!0,v=r(function(e){var t=e.exports='undefined'!=typeof window&&window.Math==Math?window:'undefined'!=typeof self&&self.Math==Math?self:Function('return this')();'number'==typeof __g&&(__g=t)}),_=r(function(e){var t=e.exports={version:'2.5.1'};'number'==typeof __e&&(__e=t)}),x=function(e){if('function'!=typeof e)throw TypeError(e+' is not a function!');return e},b=function(e,t,r){return(x(e),void 0===t)?e:1===r?function(r){return e.call(t,r)}:2===r?function(r,n){return e.call(t,r,n)}:3===r?function(r,n,o){return e.call(t,r,n,o)}:function(){return e.apply(t,arguments)}},w=function(e){return'object'==typeof e?null!==e:'function'==typeof e},E=function(e){if(!w(e))throw TypeError(e+' is not an object!');return e},S=function(e){try{return!!e()}catch(t){return!0}},O=!S(function(){return 7!=Object.defineProperty({},'a',{get:function(){return 7}}).a}),P=v.document,T=w(P)&&w(P.createElement),L=function(e){return T?P.createElement(e):{}},R=!O&&!S(function(){return 7!=Object.defineProperty(L('div'),'a',{get:function(){return 7}}).a}),I=function(e,t){if(!w(e))return e;var r,n;if(t&&'function'==typeof(r=e.toString)&&!w(n=r.call(e)))return n;if('function'==typeof(r=e.valueOf)&&!w(n=r.call(e)))return n;if(!t&&'function'==typeof(r=e.toString)&&!w(n=r.call(e)))return n;throw TypeError('Can\'t convert object to primitive value')},M=Object.defineProperty,F=O?Object.defineProperty:function(e,t,r){if(E(e),t=I(t,!0),E(r),R)try{return M(e,t,r)}catch(t){}if('get'in r||'set'in r)throw TypeError('Accessors not supported!');return'value'in r&&(e[t]=r.value),e},A={f:F},W=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},G=O?function(e,t,r){return A.f(e,t,W(1,r))}:function(e,t,r){return e[t]=r,e},N='prototype',H=function(e,t,r){var n,o,i,a=e&H.F,c=e&H.G,u=e&H.S,s=e&H.P,l=e&H.B,f=e&H.W,d=c?_:_[t]||(_[t]={}),p=d[N],h=c?v:u?v[t]:(v[t]||{})[N];for(n in c&&(r=t),r)o=!a&&h&&void 0!==h[n],o&&n in d||(i=o?h[n]:r[n],d[n]=c&&'function'!=typeof h[n]?r[n]:l&&o?b(i,v):f&&h[n]==i?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r);}return new e(t,r,n)}return e.apply(this,arguments)};return t[N]=e[N],t}(i):s&&'function'==typeof i?b(Function.call,i):i,s&&((d.virtual||(d.virtual={}))[n]=i,e&H.R&&p&&!p[n]&&G(p,n,i)))};H.F=1,H.G=2,H.S=4,H.P=8,H.B=16,H.W=32,H.U=64,H.R=128;var D=H,C=G,V={}.hasOwnProperty,Y=function(e,t){return V.call(e,t)},z={},B={}.toString,U=function(e){return B.call(e).slice(8,-1)},$=Object('z').propertyIsEnumerable(0)?Object:function(e){return'String'==U(e)?e.split(''):Object(e)},q=function(e){return $(g(e))},K=function(e){return 0<e?a(y(e),9007199254740991):0},J=function(e,t){return e=y(e),0>e?o(e+t,0):a(e,t)},Z='__core-js_shared__',Q=v[Z]||(v[Z]={}),X=function(e){return Q[e]||(Q[e]={})},ee=0,te=Math.random(),re=function(e){return'Symbol('.concat(void 0===e?'':e,')_',(++ee+te).toString(36))},ne=X('keys'),oe=function(e){return ne[e]||(ne[e]=re(e))},ie=function(e){return function(t,r,n){var o,i=q(t),a=K(i.length),c=J(n,a);if(e&&r!=r){for(;a>c;)if(o=i[c++],o!=o)return!0;}else for(;a>c;c++)if((e||c in i)&&i[c]===r)return e||c||0;return!e&&-1}}(!1),ae=oe('IE_PROTO'),ce=function(e,t){var r,n=q(e),o=0,i=[];for(r in n)r!=ae&&Y(n,r)&&i.push(r);for(;t.length>o;)Y(n,r=t[o++])&&(~ie(i,r)||i.push(r));return i},ue=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf'],se=Object.keys||function(e){return ce(e,ue)},le=O?Object.defineProperties:function(e,t){E(e);for(var r,n=se(t),o=n.length,a=0;o>a;)A.f(e,r=n[a++],t[r]);return e},fe=v.document,de=fe&&fe.documentElement,pe=oe('IE_PROTO'),he=function(){},ye='prototype',ge=function(){var e,t=L('iframe'),r=ue.length,n='<',o='>';for(t.style.display='none',de.appendChild(t),t.src='javascript:',e=t.contentWindow.document,e.open(),e.write(n+'script'+o+'document.F=Object'+n+'/script'+o),e.close(),ge=e.F;r--;)delete ge[ye][ue[r]];return ge()},me=Object.create||function(e,t){var r;return null===e?r=ge():(he[ye]=E(e),r=new he,he[ye]=null,r[pe]=e),void 0===t?r:le(r,t)},ve=r(function(e){var t=X('wks'),r=v.Symbol,n='function'==typeof r,o=e.exports=function(e){return t[e]||(t[e]=n&&r[e]||(n?r:re)('Symbol.'+e))};o.store=t}),_e=A.f,xe=ve('toStringTag'),be=function(e,t,r){e&&!Y(e=r?e:e.prototype,xe)&&_e(e,xe,{configurable:!0,value:t})};var we={};G(we,ve('iterator'),function(){return this});var Ee=function(e,t,r){e.prototype=me(we,{next:W(1,r)}),be(e,t+' Iterator')},Se=function(e){return Object(g(e))},Oe=oe('IE_PROTO'),Pe=Object.prototype,Te=Object.getPrototypeOf||function(e){return e=Se(e),Y(e,Oe)?e[Oe]:'function'==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Pe:null};var ke=ve('iterator'),Le=!([].keys&&'next'in[].keys()),je='keys',Re='values',Ie=function(){return this},Me=function(e,t,r,n,o,i,a){Ee(r,t,n);var c,u,s,l=function(e){return!Le&&e in h?h[e]:e===je?function(){return new r(this,e)}:e===Re?function(){return new r(this,e)}:function(){return new r(this,e)}},f=t+' Iterator',d=o==Re,p=!1,h=e.prototype,y=h[ke]||h['@@iterator']||o&&h[o],g=y||l(o),v=o?d?l('entries'):g:void 0,_='Array'==t?h.entries||y:y;if(_&&(s=Te(_.call(new e)),s!==Object.prototype&&s.next&&(be(s,f,!0),!m)),d&&y&&y.name!==Re&&(p=!0,g=function(){return y.call(this)}),a&&(Le||p||!h[ke])&&G(h,ke,g),z[t]=g,z[f]=Ie,o)if(c={values:d?g:l(Re),keys:i?g:l(je),entries:v},a)for(u in c)u in h||C(h,u,c[u]);else D(D.P+D.F*(Le||p),t,c);return c};var Fe=function(e){return function(t,r){var n,o,a=g(t)+'',c=y(r),i=a.length;return 0>c||c>=i?e?'':void 0:(n=a.charCodeAt(c),55296>n||56319<n||c+1===i||56320>(o=a.charCodeAt(c+1))||57343<o?e?a.charAt(c):n:e?a.slice(c,c+2):(n-55296<<10)+(o-56320)+65536)}}(!0);Me(String,'String',function(e){this._t=e+'',this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=Fe(t,r),this._i+=e.length,{value:e,done:!1})});var Ae=function(e,t){return{value:t,done:!!e}};Me(Array,'Array',function(e,t){this._t=q(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,Ae(1)):'keys'==t?Ae(0,r):'values'==t?Ae(0,e[r]):Ae(0,[r,e[r]])},'values');z.Arguments=z.Array;for(var We=ve('toStringTag'),Ge=['CSSRuleList','CSSStyleDeclaration','CSSValueList','ClientRectList','DOMRectList','DOMStringList','DOMTokenList','DataTransferItemList','FileList','HTMLAllCollection','HTMLCollection','HTMLFormElement','HTMLSelectElement','MediaList','MimeTypeArray','NamedNodeMap','NodeList','PaintRequestList','Plugin','PluginArray','SVGLengthList','SVGNumberList','SVGPathSegList','SVGPointList','SVGStringList','SVGTransformList','SourceBufferList','StyleSheetList','TextTrackCueList','TextTrackList','TouchList'],Ne=0;Ne<Ge.length;Ne++){var i=Ge[Ne],He=v[i],De=He&&He.prototype;De&&!De[We]&&G(De,We,i),z[i]=z.Array}var Ce,Ve,Ye,ze=ve('toStringTag'),Be='Arguments'==U(function(){return arguments}()),Ue=function(e,t){try{return e[t]}catch(t){}},$e=function(e){var t,r,n;return void 0===e?'Undefined':null===e?'Null':'string'==typeof(r=Ue(t=Object(e),ze))?r:Be?U(t):'Object'==(n=U(t))&&'function'==typeof t.callee?'Arguments':n},qe=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+': incorrect invocation!');return e},Ke=function(t,e,r,n){try{return n?e(E(r)[0],r[1]):e(r)}catch(r){var o=t['return'];throw void 0!==o&&E(o.call(t)),r}},Je=ve('iterator'),Ze=Array.prototype,Qe=function(e){return void 0!==e&&(z.Array===e||Ze[Je]===e)},Xe=ve('iterator'),et=_.getIteratorMethod=function(e){if(void 0!=e)return e[Xe]||e['@@iterator']||z[$e(e)]},tt=r(function(e){var t={},r={},n=e.exports=function(e,n,o,i,a){var c,u,s,l,d=a?function(){return e}:et(e),p=b(o,i,n?2:1),f=0;if('function'!=typeof d)throw TypeError(e+' is not iterable!');if(Qe(d)){for(c=K(e.length);c>f;f++)if(l=n?p(E(u=e[f])[0],u[1]):p(e[f]),l===t||l===r)return l;}else for(s=d.call(e);!(u=s.next()).done;)if(l=Ke(s,p,u.value,n),l===t||l===r)return l};n.BREAK=t,n.RETURN=r}),rt=ve('species'),nt=function(e,t){var r,n=E(e).constructor;return void 0===n||void 0==(r=E(n)[rt])?t:x(r)},ot=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3]);}return e.apply(r,t)},it=v.process,at=v.setImmediate,ct=v.clearImmediate,ut=v.MessageChannel,st=v.Dispatch,lt=0,ft={},dt='onreadystatechange',pt=function(){var e=+this;if(ft.hasOwnProperty(e)){var t=ft[e];delete ft[e],t()}},ht=function(e){pt.call(e.data)};at&&ct||(at=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return ft[++lt]=function(){ot('function'==typeof e?e:Function(e),t)},Ce(lt),lt},ct=function(e){delete ft[e]},'process'==U(it)?Ce=function(e){it.nextTick(b(pt,e,1))}:st&&st.now?Ce=function(e){st.now(b(pt,e,1))}:ut?(Ve=new ut,Ye=Ve.port2,Ve.port1.onmessage=ht,Ce=b(Ye.postMessage,Ye,1)):v.addEventListener&&'function'==typeof postMessage&&!v.importScripts?(Ce=function(e){v.postMessage(e+'','*')},v.addEventListener('message',ht,!1)):dt in L('script')?Ce=function(e){de.appendChild(L('script'))[dt]=function(){de.removeChild(this),pt.call(e)}}:Ce=function(e){setTimeout(b(pt,e,1),0)});var yt={set:at,clear:ct},gt=yt.set,mt=v.MutationObserver||v.WebKitMutationObserver,vt=v.process,_t=v.Promise,xt='process'==U(vt);var bt={f:function(e){return new n(e)}},wt=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}},Et=function(e,t){if(E(e),w(t)&&t.constructor===e)return t;var r=bt.f(e),n=r.resolve;return n(t),r.promise};var St=ve('species'),Ot=ve('iterator'),Pt=!1;try{var Tt=[7][Ot]();Tt['return']=function(){Pt=!0}}catch(t){}var kt=function(e,t){if(!t&&!Pt)return!1;var r=!1;try{var n=[7],o=n[Ot]();o.next=function(){return{done:r=!0}},n[Ot]=function(){return o},e(n)}catch(t){}return r};var Lt,jt,Rt,It,Mt=yt.set,Ft=function(){var t,r,n,e=function(){var e,o;for(xt&&(e=vt.domain)&&e.exit();t;){o=t.fn,t=t.next;try{o()}catch(o){throw t?n():r=void 0,o}}r=void 0,e&&e.enter()};if(xt)n=function(){vt.nextTick(e)};else if(mt){var o=!0,i=document.createTextNode('');new mt(e).observe(i,{characterData:!0}),n=function(){i.data=o=!o}}else if(_t&&_t.resolve){var a=_t.resolve();n=function(){a.then(e)}}else n=function(){gt.call(v,e)};return function(e){var o={fn:e,next:void 0};r&&(r.next=o),t||(t=o,n()),r=o}}(),At='Promise',Wt=v.TypeError,Gt=v.process,Nt=v[At],Ht='process'==$e(Gt),Dt=function(){},Ct=jt=bt.f,Vt=!!function(){try{var e=Nt.resolve(1),t=(e.constructor={})[ve('species')]=function(e){e(Dt,Dt)};return(Ht||'function'==typeof PromiseRejectionEvent)&&e.then(Dt)instanceof t}catch(t){}}(),Yt=function(e){var t;return w(e)&&'function'==typeof(t=e.then)&&t},zt=function(e,t){if(!e._n){e._n=!0;var r=e._c;Ft(function(){for(var n=e._v,o=1==e._s,a=0,i=function(t){var r,i,a=o?t.ok:t.fail,c=t.resolve,u=t.reject,s=t.domain;try{a?(!o&&(2==e._h&&$t(e),e._h=1),!0===a?r=n:(s&&s.enter(),r=a(n),s&&s.exit()),r===t.promise?u(Wt('Promise-chain cycle')):(i=Yt(r))?i.call(r,c,u):c(r)):u(n)}catch(t){u(t)}};r.length>a;)i(r[a++]);e._c=[],e._n=!1,t&&!e._h&&Bt(e)})}},Bt=function(e){Mt.call(v,function(){var t,r,n,o=e._v,i=Ut(e);if(i&&(t=wt(function(){Ht?Gt.emit('unhandledRejection',o,e):(r=v.onunhandledrejection)?r({promise:e,reason:o}):(n=v.console)&&n.error&&n.error('Unhandled promise rejection',o)}),e._h=Ht||Ut(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},Ut=function(e){if(1==e._h)return!1;for(var t,r=e._a||e._c,n=0;r.length>n;)if(t=r[n++],t.fail||!Ut(t.promise))return!1;return!0},$t=function(e){Mt.call(v,function(){var t;Ht?Gt.emit('rejectionHandled',e):(t=v.onrejectionhandled)&&t({promise:e,reason:e._v})})},qt=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,!t._a&&(t._a=t._c.slice()),zt(t,!0))},Kt=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw Wt('Promise can\'t be resolved itself');(t=Yt(e))?Ft(function(){var n={_w:r,_d:!1};try{t.call(e,b(Kt,n,1),b(qt,n,1))}catch(t){qt.call(n,t)}}):(r._v=e,r._s=1,zt(r,!1))}catch(t){qt.call({_w:r,_d:!1},t)}}};Vt||(Nt=function(e){qe(this,Nt,At,'_h'),x(e),Lt.call(this);try{e(b(Kt,this,1),b(qt,this,1))}catch(e){qt.call(this,e)}},Lt=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Lt.prototype=function(e,t,r){for(var n in t)r&&e[n]?e[n]=t[n]:G(e,n,t[n]);return e}(Nt.prototype,{then:function(e,t){var r=Ct(nt(this,Nt));return r.ok='function'!=typeof e||e,r.fail='function'==typeof t&&t,r.domain=Ht?Gt.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&zt(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Rt=function(){var e=new Lt;this.promise=e,this.resolve=b(Kt,e,1),this.reject=b(qt,e,1)},bt.f=Ct=function(e){return e===Nt||e===It?new Rt(e):jt(e)}),D(D.G+D.W+D.F*!Vt,{Promise:Nt}),be(Nt,At),function(e){var t='function'==typeof _[e]?_[e]:v[e];O&&t&&!t[St]&&A.f(t,St,{configurable:!0,get:function(){return this}})}(At),It=_[At],D(D.S+D.F*!Vt,At,{reject:function(e){var t=Ct(this),r=t.reject;return r(e),t.promise}}),D(D.S+D.F*m,At,{resolve:function(e){return Et(this===It?Nt:this,e)}}),D(D.S+D.F*!(Vt&&kt(function(e){Nt.all(e)['catch'](Dt)})),At,{all:function(e){var t=this,r=Ct(t),n=r.resolve,o=r.reject,i=wt(function(){var r=[],i=0,a=1;tt(e,!1,function(e){var c=i++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[c]=e,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(e){var t=this,r=Ct(t),n=r.reject,o=wt(function(){tt(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}}),'use strict',D(D.P+D.R,'Promise',{finally:function(t){var r=nt(this,_.Promise||v.Promise),e='function'==typeof t;return this.then(e?function(e){return Et(r,t()).then(function(){return e})}:t,e?function(n){return Et(r,t()).then(function(){throw n})}:t)}}),'use strict',D(D.S,'Promise',{try:function(e){var t=bt.f(this),r=wt(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}});var Jt=_.Promise,Zt=r(function(e){e.exports={default:Jt,__esModule:!0}}),Qt=t(Zt),Xt=r(function(e,t){t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(Zt);t.default=function(e){return function(){var t=e.apply(this,arguments);return new r.default(function(e,n){function o(i,a){try{var c=t[i](a),u=c.value}catch(e){return void n(e)}return c.done?void e(u):r.default.resolve(u).then(function(e){o('next',e)},function(e){o('throw',e)})}return o('next')})}}}),er=t(Xt);(function(e,t){var r=(_.Object||{})[e]||Object[e],n={};n[e]=t(r),D(D.S+D.F*S(function(){r(1)}),'Object',n)})('getPrototypeOf',function(){return function(e){return Te(Se(e))}});var tr=_.Object.getPrototypeOf,rr=r(function(e){e.exports={default:tr,__esModule:!0}}),nr=t(rr),or=r(function(e,t){t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}}),ir=t(or),ar={f:ve},cr=ar.f('iterator'),ur=r(function(e){e.exports={default:cr,__esModule:!0}});t(ur);var sr=r(function(e){var t=re('meta'),r=A.f,n=0,o=Object.isExtensible||function(){return!0},i=!S(function(){return o(Object.preventExtensions({}))}),a=function(e){r(e,t,{value:{i:'O'+ ++n,w:{}}})},c=e.exports={KEY:t,NEED:!1,fastKey:function(e,r){if(!w(e))return'symbol'==typeof e?e:('string'==typeof e?'S':'P')+e;if(!Y(e,t)){if(!o(e))return'F';if(!r)return'E';a(e)}return e[t].i},getWeak:function(e,r){if(!Y(e,t)){if(!o(e))return!0;if(!r)return!1;a(e)}return e[t].w},onFreeze:function(e){return i&&c.NEED&&o(e)&&!Y(e,t)&&a(e),e}}}),lr=A.f,fr=function(e){var t=_.Symbol||(_.Symbol={});'_'==e.charAt(0)||e in t||lr(t,e,{value:ar.f(e)})},dr=Object.getOwnPropertySymbols,pr={f:dr},hr={}.propertyIsEnumerable,yr={f:hr},gr=function(e){var t=se(e),r=pr.f;if(r)for(var n,o=r(e),a=yr.f,c=0;o.length>c;)a.call(e,n=o[c++])&&t.push(n);return t},mr=Array.isArray||function(e){return'Array'==U(e)},vr=ue.concat('length','prototype'),_r=Object.getOwnPropertyNames||function(e){return ce(e,vr)},xr={f:_r},br=xr.f,wr={}.toString,Er='object'==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Sr=function(e){try{return br(e)}catch(t){return Er.slice()}},Or={f:function(e){return Er&&'[object Window]'==wr.call(e)?Sr(e):br(q(e))}},Pr=Object.getOwnPropertyDescriptor,Tr=O?Pr:function(e,t){if(e=q(e),t=I(t,!0),R)try{return Pr(e,t)}catch(t){}return Y(e,t)?W(!yr.f.call(e,t),e[t]):void 0},kr={f:Tr};var Lr=sr.KEY,jr=kr.f,Rr=A.f,Ir=Or.f,Mr=v.Symbol,Fr=v.JSON,Ar=Fr&&Fr.stringify,Wr='prototype',Gr=ve('_hidden'),Nr=ve('toPrimitive'),Hr={}.propertyIsEnumerable,Dr=X('symbol-registry'),Cr=X('symbols'),Vr=X('op-symbols'),Yr=Object[Wr],zr='function'==typeof Mr,Br=v.QObject,Ur=!Br||!Br[Wr]||!Br[Wr].findChild,$r=O&&S(function(){return 7!=me(Rr({},'a',{get:function(){return Rr(this,'a',{value:7}).a}})).a})?function(e,t,r){var n=jr(Yr,t);n&&delete Yr[t],Rr(e,t,r),n&&e!==Yr&&Rr(Yr,t,n)}:Rr,qr=function(e){var t=Cr[e]=me(Mr[Wr]);return t._k=e,t},Kr=zr&&'symbol'==typeof Mr.iterator?function(e){return'symbol'==typeof e}:function(e){return e instanceof Mr},Jr=function(e,t,r){return e===Yr&&Jr(Vr,t,r),E(e),t=I(t,!0),E(r),Y(Cr,t)?(r.enumerable?(Y(e,Gr)&&e[Gr][t]&&(e[Gr][t]=!1),r=me(r,{enumerable:W(0,!1)})):(!Y(e,Gr)&&Rr(e,Gr,W(1,{})),e[Gr][t]=!0),$r(e,t,r)):Rr(e,t,r)},Zr=function(e,t){E(e);for(var r,n=gr(t=q(t)),o=0,i=n.length;i>o;)Jr(e,r=n[o++],t[r]);return e},Qr=function(e,t){if(e=q(e),t=I(t,!0),e!==Yr||!Y(Cr,t)||Y(Vr,t)){var r=jr(e,t);return r&&Y(Cr,t)&&!(Y(e,Gr)&&e[Gr][t])&&(r.enumerable=!0),r}},Xr=function(e){for(var t,r=Ir(q(e)),n=[],o=0;r.length>o;)Y(Cr,t=r[o++])||t==Gr||t==Lr||n.push(t);return n},en=function(e){for(var t,r=e===Yr,n=Ir(r?Vr:q(e)),o=[],a=0;n.length>a;)Y(Cr,t=n[a++])&&(!r||Y(Yr,t))&&o.push(Cr[t]);return o};zr||(Mr=function(){if(this instanceof Mr)throw TypeError('Symbol is not a constructor!');var e=re(0<arguments.length?arguments[0]:void 0),t=function(r){this===Yr&&t.call(Vr,r),Y(this,Gr)&&Y(this[Gr],e)&&(this[Gr][e]=!1),$r(this,e,W(1,r))};return O&&Ur&&$r(Yr,e,{configurable:!0,set:t}),qr(e)},C(Mr[Wr],'toString',function(){return this._k}),kr.f=Qr,A.f=Jr,xr.f=Or.f=Xr,yr.f=function(e){var t=Hr.call(this,e=I(e,!0));return this===Yr&&Y(Cr,e)&&!Y(Vr,e)?!1:t||!Y(this,e)||!Y(Cr,e)||Y(this,Gr)&&this[Gr][e]?t:!0},pr.f=en,ar.f=function(e){return qr(ve(e))}),D(D.G+D.W+D.F*!zr,{Symbol:Mr});for(var tn=['hasInstance','isConcatSpreadable','iterator','match','replace','search','species','split','toPrimitive','toStringTag','unscopables'],rn=0;tn.length>rn;)ve(tn[rn++]);for(var j=se(ve.store),nn=0;j.length>nn;)fr(j[nn++]);D(D.S+D.F*!zr,'Symbol',{for:function(e){return Y(Dr,e+='')?Dr[e]:Dr[e]=Mr(e)},keyFor:function(e){if(!Kr(e))throw TypeError(e+' is not a symbol!');for(var t in Dr)if(Dr[t]===e)return t},useSetter:function(){Ur=!0},useSimple:function(){Ur=!1}}),D(D.S+D.F*!zr,'Object',{create:function(e,t){return void 0===t?me(e):Zr(me(e),t)},defineProperty:Jr,defineProperties:Zr,getOwnPropertyDescriptor:Qr,getOwnPropertyNames:Xr,getOwnPropertySymbols:en}),Fr&&D(D.S+D.F*(!zr||S(function(){var e=Mr();return'[null]'!=Ar([e])||'{}'!=Ar({a:e})||'{}'!=Ar(Object(e))})),'JSON',{stringify:function(e){if(!(void 0===e||Kr(e))){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);return t=n[1],'function'==typeof t&&(r=t),(r||!mr(t))&&(t=function(e,t){if(r&&(t=r.call(this,e,t)),!Kr(t))return t}),n[1]=t,Ar.apply(Fr,n)}}}),Mr[Wr][Nr]||G(Mr[Wr],Nr,Mr[Wr].valueOf),be(Mr,'Symbol'),be(Math,'Math',!0),be(v.JSON,'JSON',!0),fr('asyncIterator'),fr('observable');var k=_.Symbol,on=r(function(e){e.exports={default:k,__esModule:!0}});t(on);var an=r(function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r(ur),o=r(on),i='function'==typeof o.default&&'symbol'==typeof n.default?function(e){return typeof e}:function(e){return e&&'function'==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?'symbol':typeof e};t.default='function'==typeof o.default&&'symbol'===i(n.default)?function(e){return'undefined'==typeof e?'undefined':i(e)}:function(e){return e&&'function'==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?'symbol':'undefined'==typeof e?'undefined':i(e)}}),cn=t(an),un=r(function(e,t){t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(an);t.default=function(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'===('undefined'==typeof t?'undefined':(0,r.default)(t))||'function'==typeof t)?t:e}}),sn=t(un),ln=function(e,t){if(E(e),!w(t)&&null!==t)throw TypeError(t+': can\'t set as prototype!')},fn={set:Object.setPrototypeOf||('__proto__'in{}?function(e,t,r){try{r=b(Function.call,kr.f(Object.prototype,'__proto__').set,2),r(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,n){return ln(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:ln};D(D.S,'Object',{setPrototypeOf:fn.set});var dn=_.Object.setPrototypeOf,pn=r(function(e){e.exports={default:dn,__esModule:!0}});t(pn),D(D.S,'Object',{create:me});var hn=_.Object,yn=function(e,t){return hn.create(e,t)},gn=r(function(e){e.exports={default:yn,__esModule:!0}});t(gn);var mn=r(function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r(pn),o=r(gn),i=r(an);t.default=function(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+('undefined'==typeof t?'undefined':(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}}),vn=t(mn),_n=function(e){function t(){var e;ir(this,t);for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=sn(this,(e=t.__proto__||nr(t)).call.apply(e,[this].concat(n)));return i.name='InterruptError',i}return vn(t,e),t}(Error),xn=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;return new Qt(function(t){return setTimeout(t,e)})},bn=function(e){try{return e.getBoundingClientRect()}catch(n){try{var t=e.offsetWidth,r=e.offsetHeight;return{width:t,height:r}}catch(e){return{width:0,height:0}}}},wn=ve('iterator'),En=_.isIterable=function(e){var t=Object(e);return void 0!==t[wn]||'@@iterator'in t||z.hasOwnProperty($e(t))},Sn=r(function(e){e.exports={default:En,__esModule:!0}});t(Sn);var On=_.getIterator=function(e){var t=et(e);if('function'!=typeof t)throw TypeError(e+' is not iterable!');return E(t.call(e))},Pn=r(function(e){e.exports={default:On,__esModule:!0}}),Tn=t(Pn),kn=r(function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r(Sn),o=r(Pn);t.default=function(){function e(e,t){var r,n=[],i=!0,a=!1;try{for(var c,u=(0,o.default)(e);!(i=(c=u.next()).done)&&(n.push(c.value),!(t&&n.length===t));i=!0);}catch(e){a=!0,r=e}finally{try{!i&&u['return']&&u['return']()}finally{if(a)throw r}}return n}return function(t,r){if(Array.isArray(t))return t;if((0,n.default)(Object(t)))return e(t,r);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}()}),Ln=t(kn),jn=_.JSON||(_.JSON={stringify:JSON.stringify}),Rn=function(){return jn.stringify.apply(jn,arguments)},In=r(function(e){e.exports={default:Rn,__esModule:!0}}),Mn=t(In),Fn=function(e){return new Qt(function(t,r){var n,o=function(e){n(e),t(e.data)},i=function(e){n(e),r(e)};n=function(t){t.preventDefault(),e.removeEventListener('message',o),e.removeEventListener('error',i)},e.addEventListener('message',o),e.addEventListener('error',i)})},An=function(e){return e[0]},Wn=function(e){return e[e.length-1]},Gn=function(e,t){return e.map(function(e){return[t(e),e]}).sort(function(e,t){var r=Ln(e,1),n=r[0],o=Ln(t,1),i=o[0];return n>i?1:n<i?-1:0}).map(function(e){var t=Ln(e,2),r=t[1];return r})},Nn=function(e,t){for(var r=e.length;0<r--&&!t(e[r],r););return e.slice(0,r+1)},Hn=function(e,t,r,n,o){return n+(e-t)*(o-n)/(r-t)},Dn=function(e){return 2*e*Math.PI},Cn=function(e,t,r){var n=Math.sin,o=Math.abs,i=Math.cos;return[u(e*o(i(r))+t*o(n(r))),u(e*o(n(r))+t*o(i(r)))]},Vn=URL.createObjectURL(new Blob(['(function(){\'use strict\';function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\'default\')?e[\'default\']:e}function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function r(e){var t,r;this.promise=new e(function(e,o){if(t!=void 0||r!=void 0)throw TypeError(\'Bad Promise constructor\');t=e,r=o}),this.resolve=v(t),this.reject=v(r)}function o(e,t){var r,o,n,i,s,c,u,p,y,m,f,h,g,_,v,x,P,E,O,T;return d.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!(0<e&&0<t)){d.next=76;break}if(r=void 0,o=void 0,e>t?(r=1,o=t/e):t>e?(o=1,r=e/t):r=o=1,n=a(e/2),i=a(t/2),s=e-n,c=t-i,!(n<s)){d.next=17;break}u=n;case 9:if(!(u<=s)){d.next=15;break}return d.next=12,[u,i];case 12:++u,d.next=9;break;case 15:d.next=25;break;case 17:if(!(i<c)){d.next=25;break}p=i;case 19:if(!(p<=c)){d.next=25;break}return d.next=22,[n,p];case 22:++p,d.next=19;break;case 25:y=n,m=i,f=s,h=c;case 29:if(!(s<e||c<t)){d.next=76;break}if(n-=r,i-=o,s+=r,c+=o,g=a(n),_=a(i),v=l(s),x=l(c),!(v>f)){d.next=46;break}P=_;case 40:if(!(P<x)){d.next=46;break}return d.next=43,[v,P];case 43:++P,d.next=40;break;case 46:if(!(x>h)){d.next=54;break}E=v;case 48:if(!(E>g)){d.next=54;break}return d.next=51,[E,x];case 51:--E,d.next=48;break;case 54:if(!(g<y)){d.next=62;break}O=x;case 56:if(!(O>_)){d.next=62;break}return d.next=59,[g,O];case 59:--O,d.next=56;break;case 62:if(!(_<m)){d.next=70;break}T=g;case 64:if(!(T<v)){d.next=70;break}return d.next=67,[T,_];case 67:++T,d.next=64;break;case 70:y=g,m=_,f=v,h=x,d.next=29;break;case 76:case\'end\':return d.stop();}},co,this)}var n=Math.min,a=Math.floor,l=Math.ceil,s=t(function(e){!function(t){function r(e,t,r,o){var a=t&&t.prototype instanceof n?t:n,l=Object.create(a.prototype),i=new y(o||[]);return l._invoke=c(e,r,i),l}function o(e,t,r){try{return{type:\'normal\',arg:e.call(t,r)}}catch(e){return{type:\'throw\',arg:e}}}function n(){}function a(){}function l(){}function i(e){[\'next\',\'throw\',\'return\'].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(r,n,a,l){var i=o(e[r],e,n);if(\'throw\'===i.type)l(i.arg);else{var s=i.arg,c=s.value;return c&&\'object\'==typeof c&&g.call(c,\'__await\')?Promise.resolve(c.__await).then(function(e){t(\'next\',e,a,l)},function(e){t(\'throw\',e,a,l)}):Promise.resolve(c).then(function(e){s.value=e,a(s)},l)}}var r;this._invoke=function(e,o){function n(){return new Promise(function(r,n){t(e,o,r,n)})}return r=r?r.then(n,n):n()}}function c(e,t,r){var n=O;return function(a,l){if(n==S)throw new Error(\'Generator is already running\');if(n==b){if(\'throw\'===a)throw l;return f()}for(r.method=a,r.arg=l;;){var i=r.delegate;if(i){var s=u(i,r);if(s){if(s===k)continue;return s}}if(\'next\'===r.method)r.sent=r._sent=r.arg;else if(\'throw\'===r.method){if(n==O)throw n=b,r.arg;r.dispatchException(r.arg)}else\'return\'===r.method&&r.abrupt(\'return\',r.arg);n=S;var c=o(e,t,r);if(\'normal\'===c.type){if(n=r.done?b:T,c.arg===k)continue;return{value:c.arg,done:r.done}}\'throw\'===c.type&&(n=b,r.method=\'throw\',r.arg=c.arg)}}}function u(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,\'throw\'===t.method){if(e.iterator.return&&(t.method=\'return\',t.arg=void 0,u(e,t),\'throw\'===t.method))return k;t.method=\'throw\',t.arg=new TypeError(\'The iterator does not provide a \\\'throw\\\' method\')}return k}var n=o(r,e.iterator,t.arg);if(\'throw\'===n.type)return t.method=\'throw\',t.arg=n.arg,t.delegate=null,k;var a=n.arg;if(!a)return t.method=\'throw\',t.arg=new TypeError(\'iterator result is not an object\'),t.delegate=null,k;if(a.done)t[e.resultName]=a.value,t.next=e.nextLoc,\'return\'!==t.method&&(t.method=\'next\',t.arg=void 0);else return a;return t.delegate=null,k}function p(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 d(e){var t=e.completion||{};t.type=\'normal\',delete t.arg,e.completion=t}function y(e){this.tryEntries=[{tryLoc:\'root\'}],e.forEach(p,this),this.reset(!0)}function m(e){if(e){var t=e[v];if(t)return t.call(e);if(\'function\'==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(g.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:f}}function f(){return{value:void 0,done:!0}}var h=Object.prototype,g=h.hasOwnProperty,_=\'function\'==typeof Symbol?Symbol:{},v=_.iterator||\'@@iterator\',x=_.asyncIterator||\'@@asyncIterator\',P=_.toStringTag||\'@@toStringTag\',E=t.regeneratorRuntime;if(E)return void(e.exports=E);E=t.regeneratorRuntime=e.exports,E.wrap=r;var O=\'suspendedStart\',T=\'suspendedYield\',S=\'executing\',b=\'completed\',k={},R={};R[v]=function(){return this};var L=Object.getPrototypeOf,w=L&&L(L(m([])));w&&w!==h&&g.call(w,v)&&(R=w);var I=l.prototype=n.prototype=Object.create(R);a.prototype=I.constructor=l,l.constructor=a,l[P]=a.displayName=\'GeneratorFunction\',E.isGeneratorFunction=function(e){var t=\'function\'==typeof e&&e.constructor;return!!t&&(t===a||\'GeneratorFunction\'===(t.displayName||t.name))},E.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,!(P in e)&&(e[P]=\'GeneratorFunction\')),e.prototype=Object.create(I),e},E.awrap=function(e){return{__await:e}},i(s.prototype),s.prototype[x]=function(){return this},E.AsyncIterator=s,E.async=function(e,t,o,n){var a=new s(r(e,t,o,n));return E.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},i(I),I[P]=\'Generator\',I[v]=function(){return this},I.toString=function(){return\'[object Generator]\'},E.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},E.values=m,y.prototype={constructor:y,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\'next\',this.arg=void 0,this.tryEntries.forEach(d),!e)for(var t in this)\'t\'===t.charAt(0)&&g.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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,o){return a.type=\'throw\',a.arg=e,r.next=t,o&&(r.method=\'next\',r.arg=void 0),!!o}if(this.done)throw e;for(var r=this,o=this.tryEntries.length-1;0<=o;--o){var n=this.tryEntries[o],a=n.completion;if(\'root\'===n.tryLoc)return t(\'end\');if(n.tryLoc<=this.prev){var l=g.call(n,\'catchLoc\'),i=g.call(n,\'finallyLoc\');if(l&&i){if(this.prev<n.catchLoc)return t(n.catchLoc,!0);if(this.prev<n.finallyLoc)return t(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return t(n.catchLoc,!0);}else if(!i)throw new Error(\'try statement without catch or finally\');else if(this.prev<n.finallyLoc)return t(n.finallyLoc)}}},abrupt:function(e,t){for(var r,o=this.tryEntries.length-1;0<=o;--o)if(r=this.tryEntries[o],r.tryLoc<=this.prev&&g.call(r,\'finallyLoc\')&&this.prev<r.finallyLoc){var n=r;break}n&&(\'break\'===e||\'continue\'===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=e,a.arg=t,n?(this.method=\'next\',this.next=n.finallyLoc,k):this.complete(a)},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),k},finish:function(e){for(var t,r=this.tryEntries.length-1;0<=r;--r)if(t=this.tryEntries[r],t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),d(t),k},catch:function(e){for(var t,r=this.tryEntries.length-1;0<=r;--r)if(t=this.tryEntries[r],t.tryLoc===e){var o=t.completion;if(\'throw\'===o.type){var n=o.arg;d(t)}return n}throw new Error(\'illegal catch attempt\')},delegateYield:function(e,t,r){return this.delegate={iterator:m(e),resultName:t,nextLoc:r},\'next\'===this.method&&(this.arg=void 0),k}}}(function(){return this}()||Function(\'return this\')())}),c=function(){return this}()||Function(\'return this\')(),u=c.regeneratorRuntime&&0<=Object.getOwnPropertyNames(c).indexOf(\'regeneratorRuntime\'),p=u&&c.regeneratorRuntime;c.regeneratorRuntime=void 0;if(u)c.regeneratorRuntime=p;else try{delete c.regeneratorRuntime}catch(t){c.regeneratorRuntime=void 0}var d=s,y=function(e){return isNaN(e=+e)?0:(0<e?a:l)(e)},m=function(e){if(e==void 0)throw TypeError(\'Can\\\'t call method on \'+e);return e},h=!0,g=t(function(e){var t=e.exports=\'undefined\'!=typeof window&&window.Math==Math?window:\'undefined\'!=typeof self&&self.Math==Math?self:Function(\'return this\')();\'number\'==typeof __g&&(__g=t)}),_=t(function(e){var t=e.exports={version:\'2.5.1\'};\'number\'==typeof __e&&(__e=t)}),v=function(e){if(\'function\'!=typeof e)throw TypeError(e+\' is not a function!\');return e},x=function(e,t,r){return(v(e),void 0===t)?e:1===r?function(r){return e.call(t,r)}:2===r?function(r,o){return e.call(t,r,o)}:3===r?function(r,o,n){return e.call(t,r,o,n)}:function(){return e.apply(t,arguments)}},P=function(e){return\'object\'==typeof e?null!==e:\'function\'==typeof e},E=function(e){if(!P(e))throw TypeError(e+\' is not an object!\');return e},O=function(e){try{return!!e()}catch(t){return!0}},T=!O(function(){return 7!=Object.defineProperty({},\'a\',{get:function(){return 7}}).a}),S=g.document,b=P(S)&&P(S.createElement),R=function(e){return b?S.createElement(e):{}},L=!T&&!O(function(){return 7!=Object.defineProperty(R(\'div\'),\'a\',{get:function(){return 7}}).a}),w=function(e,t){if(!P(e))return e;var r,o;if(t&&\'function\'==typeof(r=e.toString)&&!P(o=r.call(e)))return o;if(\'function\'==typeof(r=e.valueOf)&&!P(o=r.call(e)))return o;if(!t&&\'function\'==typeof(r=e.toString)&&!P(o=r.call(e)))return o;throw TypeError(\'Can\\\'t convert object to primitive value\')},I=Object.defineProperty,M=T?Object.defineProperty:function(e,t,r){if(E(e),t=w(t,!0),E(r),L)try{return I(e,t,r)}catch(t){}if(\'get\'in r||\'set\'in r)throw TypeError(\'Accessors not supported!\');return\'value\'in r&&(e[t]=r.value),e},A={f:M},N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},D=T?function(e,t,r){return A.f(e,t,N(1,r))}:function(e,t,r){return e[t]=r,e},Y=\'prototype\',F=function(e,t,r){var o,n,a,l=e&F.F,i=e&F.G,s=e&F.S,c=e&F.P,u=e&F.B,p=e&F.W,d=i?_:_[t]||(_[t]={}),y=d[Y],m=i?g:s?g[t]:(g[t]||{})[Y];for(o in i&&(r=t),r)n=!l&&m&&void 0!==m[o],n&&o in d||(a=n?m[o]:r[o],d[o]=i&&\'function\'!=typeof m[o]?r[o]:u&&n?x(a,g):p&&m[o]==a?function(e){var t=function(t,r,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r);}return new e(t,r,o)}return e.apply(this,arguments)};return t[Y]=e[Y],t}(a):c&&\'function\'==typeof a?x(Function.call,a):a,c&&((d.virtual||(d.virtual={}))[o]=a,e&F.R&&y&&!y[o]&&D(y,o,a)))};F.F=1,F.G=2,F.S=4,F.P=8,F.B=16,F.W=32,F.U=64,F.R=128;var G=F,C=D,$={}.hasOwnProperty,H=function(e,t){return $.call(e,t)},W={},K={}.toString,V=function(e){return K.call(e).slice(8,-1)},q=Object(\'z\').propertyIsEnumerable(0)?Object:function(e){return\'String\'==V(e)?e.split(\'\'):Object(e)},U=function(e){return q(m(e))},B=function(e){return 0<e?n(y(e),9007199254740991):0},J=Math.max,z=function(e,t){return e=y(e),0>e?J(e+t,0):n(e,t)},Q=\'__core-js_shared__\',X=g[Q]||(g[Q]={}),Z=function(e){return X[e]||(X[e]={})},ee=0,te=Math.random(),re=function(e){return\'Symbol(\'.concat(e===void 0?\'\':e,\')_\',(++ee+te).toString(36))},oe=Z(\'keys\'),ne=function(e){return oe[e]||(oe[e]=re(e))},ae=function(e){return function(t,r,o){var n,a=U(t),l=B(a.length),i=z(o,l);if(e&&r!=r){for(;l>i;)if(n=a[i++],n!=n)return!0;}else for(;l>i;i++)if((e||i in a)&&a[i]===r)return e||i||0;return!e&&-1}}(!1),le=ne(\'IE_PROTO\'),ie=function(e,t){var r,o=U(e),n=0,a=[];for(r in o)r!=le&&H(o,r)&&a.push(r);for(;t.length>n;)H(o,r=t[n++])&&(~ae(a,r)||a.push(r));return a},se=[\'constructor\',\'hasOwnProperty\',\'isPrototypeOf\',\'propertyIsEnumerable\',\'toLocaleString\',\'toString\',\'valueOf\'],ce=Object.keys||function(e){return ie(e,se)},ue=T?Object.defineProperties:function(e,t){E(e);for(var r,o=ce(t),n=o.length,a=0;n>a;)A.f(e,r=o[a++],t[r]);return e},pe=g.document,de=pe&&pe.documentElement,ye=ne(\'IE_PROTO\'),me=function(){},fe=\'prototype\',he=function(){var e,t=R(\'iframe\'),r=se.length,o=\'<\',n=\'>\';for(t.style.display=\'none\',de.appendChild(t),t.src=\'javascript:\',e=t.contentWindow.document,e.open(),e.write(o+\'script\'+n+\'document.F=Object\'+o+\'/script\'+n),e.close(),he=e.F;r--;)delete he[fe][se[r]];return he()},ge=Object.create||function(e,t){var r;return null===e?r=he():(me[fe]=E(e),r=new me,me[fe]=null,r[ye]=e),void 0===t?r:ue(r,t)},_e=t(function(e){var t=Z(\'wks\'),r=g.Symbol,o=\'function\'==typeof r,n=e.exports=function(e){return t[e]||(t[e]=o&&r[e]||(o?r:re)(\'Symbol.\'+e))};n.store=t}),ve=A.f,xe=_e(\'toStringTag\'),Pe=function(e,t,r){e&&!H(e=r?e:e.prototype,xe)&&ve(e,xe,{configurable:!0,value:t})};var Ee={};D(Ee,_e(\'iterator\'),function(){return this});var Oe=function(e,t,r){e.prototype=ge(Ee,{next:N(1,r)}),Pe(e,t+\' Iterator\')},Te=function(e){return Object(m(e))},Se=ne(\'IE_PROTO\'),be=Object.prototype,ke=Object.getPrototypeOf||function(e){return e=Te(e),H(e,Se)?e[Se]:\'function\'==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?be:null};var Re=_e(\'iterator\'),Le=!([].keys&&\'next\'in[].keys()),we=\'keys\',Ie=\'values\',Me=function(){return this},Ae=function(e,t,r,o,n,a,l){Oe(r,t,o);var i,s,c,u=function(e){return!Le&&e in m?m[e]:e===we?function(){return new r(this,e)}:e===Ie?function(){return new r(this,e)}:function(){return new r(this,e)}},p=t+\' Iterator\',d=n==Ie,y=!1,m=e.prototype,f=m[Re]||m[\'@@iterator\']||n&&m[n],g=f||u(n),_=n?d?u(\'entries\'):g:void 0,v=\'Array\'==t?m.entries||f:f;if(v&&(c=ke(v.call(new e)),c!==Object.prototype&&c.next&&(Pe(c,p,!0),!h)),d&&f&&f.name!==Ie&&(y=!0,g=function(){return f.call(this)}),l&&(Le||y||!m[Re])&&D(m,Re,g),W[t]=g,W[p]=Me,n)if(i={values:d?g:u(Ie),keys:a?g:u(we),entries:_},l)for(s in i)s in m||C(m,s,i[s]);else G(G.P+G.F*(Le||y),t,i);return i};var Ne=function(e){return function(t,r){var o,n,a=m(t)+\'\',s=y(r),i=a.length;return 0>s||s>=i?e?\'\':void 0:(o=a.charCodeAt(s),55296>o||56319<o||s+1===i||56320>(n=a.charCodeAt(s+1))||57343<n?e?a.charAt(s):o:e?a.slice(s,s+2):(o-55296<<10)+(n-56320)+65536)}}(!0);Ae(String,\'String\',function(e){this._t=e+\'\',this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=Ne(t,r),this._i+=e.length,{value:e,done:!1})});var je=function(e,t){return{value:t,done:!!e}};Ae(Array,\'Array\',function(e,t){this._t=U(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,je(1)):\'keys\'==t?je(0,r):\'values\'==t?je(0,e[r]):je(0,[r,e[r]])},\'values\');W.Arguments=W.Array;for(var De=_e(\'toStringTag\'),Fe=\'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\'.split(\',\'),Ye=0;Ye<Fe.length;Ye++){var i=Fe[Ye],Ge=g[i],Ce=Ge&&Ge.prototype;Ce&&!Ce[De]&&D(Ce,De,i),W[i]=W.Array}var $e={f:_e},He=$e.f(\'iterator\'),We=t(function(e){e.exports={default:He,__esModule:!0}});e(We);var Ke=t(function(e){var t=re(\'meta\'),r=A.f,o=0,n=Object.isExtensible||function(){return!0},a=!O(function(){return n(Object.preventExtensions({}))}),l=function(e){r(e,t,{value:{i:\'O\'+ ++o,w:{}}})},i=e.exports={KEY:t,NEED:!1,fastKey:function(e,r){if(!P(e))return\'symbol\'==typeof e?e:(\'string\'==typeof e?\'S\':\'P\')+e;if(!H(e,t)){if(!n(e))return\'F\';if(!r)return\'E\';l(e)}return e[t].i},getWeak:function(e,r){if(!H(e,t)){if(!n(e))return!0;if(!r)return!1;l(e)}return e[t].w},onFreeze:function(e){return a&&i.NEED&&n(e)&&!H(e,t)&&l(e),e}}}),Ve=A.f,qe=function(e){var t=_.Symbol||(_.Symbol={});\'_\'==e.charAt(0)||e in t||Ve(t,e,{value:$e.f(e)})},Ue=Object.getOwnPropertySymbols,Be={f:Ue},Je={}.propertyIsEnumerable,ze={f:Je},Qe=function(e){var t=ce(e),r=Be.f;if(r)for(var o,n=r(e),a=ze.f,l=0;n.length>l;)a.call(e,o=n[l++])&&t.push(o);return t},Xe=Array.isArray||function(e){return\'Array\'==V(e)},Ze=se.concat(\'length\',\'prototype\'),et=Object.getOwnPropertyNames||function(e){return ie(e,Ze)},tt={f:et},rt=tt.f,ot={}.toString,nt=\'object\'==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],at=function(e){try{return rt(e)}catch(t){return nt.slice()}},lt={f:function(e){return nt&&\'[object Window]\'==ot.call(e)?at(e):rt(U(e))}},it=Object.getOwnPropertyDescriptor,st=T?it:function(e,t){if(e=U(e),t=w(t,!0),L)try{return it(e,t)}catch(t){}return H(e,t)?N(!ze.f.call(e,t),e[t]):void 0},ct={f:st};var ut=Ke.KEY,pt=ct.f,dt=A.f,yt=lt.f,mt=g.Symbol,ft=g.JSON,ht=ft&&ft.stringify,gt=\'prototype\',_t=_e(\'_hidden\'),vt=_e(\'toPrimitive\'),xt={}.propertyIsEnumerable,Pt=Z(\'symbol-registry\'),Et=Z(\'symbols\'),Ot=Z(\'op-symbols\'),Tt=Object[gt],St=\'function\'==typeof mt,bt=g.QObject,kt=!bt||!bt[gt]||!bt[gt].findChild,Rt=T&&O(function(){return 7!=ge(dt({},\'a\',{get:function(){return dt(this,\'a\',{value:7}).a}})).a})?function(e,t,r){var o=pt(Tt,t);o&&delete Tt[t],dt(e,t,r),o&&e!==Tt&&dt(Tt,t,o)}:dt,Lt=function(e){var t=Et[e]=ge(mt[gt]);return t._k=e,t},wt=St&&\'symbol\'==typeof mt.iterator?function(e){return\'symbol\'==typeof e}:function(e){return e instanceof mt},It=function(e,t,r){return e===Tt&&It(Ot,t,r),E(e),t=w(t,!0),E(r),H(Et,t)?(r.enumerable?(H(e,_t)&&e[_t][t]&&(e[_t][t]=!1),r=ge(r,{enumerable:N(0,!1)})):(!H(e,_t)&&dt(e,_t,N(1,{})),e[_t][t]=!0),Rt(e,t,r)):dt(e,t,r)},Mt=function(e,t){E(e);for(var r,o=Qe(t=U(t)),n=0,a=o.length;a>n;)It(e,r=o[n++],t[r]);return e},At=function(e,t){if(e=U(e),t=w(t,!0),e!==Tt||!H(Et,t)||H(Ot,t)){var r=pt(e,t);return r&&H(Et,t)&&!(H(e,_t)&&e[_t][t])&&(r.enumerable=!0),r}},Nt=function(e){for(var t,r=yt(U(e)),o=[],n=0;r.length>n;)H(Et,t=r[n++])||t==_t||t==ut||o.push(t);return o},jt=function(e){for(var t,r=e===Tt,o=yt(r?Ot:U(e)),n=[],a=0;o.length>a;)H(Et,t=o[a++])&&(!r||H(Tt,t))&&n.push(Et[t]);return n};St||(mt=function(){if(this instanceof mt)throw TypeError(\'Symbol is not a constructor!\');var e=re(0<arguments.length?arguments[0]:void 0),t=function(r){this===Tt&&t.call(Ot,r),H(this,_t)&&H(this[_t],e)&&(this[_t][e]=!1),Rt(this,e,N(1,r))};return T&&kt&&Rt(Tt,e,{configurable:!0,set:t}),Lt(e)},C(mt[gt],\'toString\',function(){return this._k}),ct.f=At,A.f=It,tt.f=lt.f=Nt,ze.f=function(e){var t=xt.call(this,e=w(e,!0));return this===Tt&&H(Et,e)&&!H(Ot,e)?!1:t||!H(this,e)||!H(Et,e)||H(this,_t)&&this[_t][e]?t:!0},Be.f=jt,T&&!h,$e.f=function(e){return Lt(_e(e))}),G(G.G+G.W+G.F*!St,{Symbol:mt});for(var Dt=[\'hasInstance\',\'isConcatSpreadable\',\'iterator\',\'match\',\'replace\',\'search\',\'species\',\'split\',\'toPrimitive\',\'toStringTag\',\'unscopables\'],Ft=0;Dt.length>Ft;)_e(Dt[Ft++]);for(var j=ce(_e.store),Yt=0;j.length>Yt;)qe(j[Yt++]);G(G.S+G.F*!St,\'Symbol\',{for:function(e){return H(Pt,e+=\'\')?Pt[e]:Pt[e]=mt(e)},keyFor:function(e){if(!wt(e))throw TypeError(e+\' is not a symbol!\');for(var t in Pt)if(Pt[t]===e)return t},useSetter:function(){kt=!0},useSimple:function(){kt=!1}}),G(G.S+G.F*!St,\'Object\',{create:function(e,t){return t===void 0?ge(e):Mt(ge(e),t)},defineProperty:It,defineProperties:Mt,getOwnPropertyDescriptor:At,getOwnPropertyNames:Nt,getOwnPropertySymbols:jt}),ft&&G(G.S+G.F*(!St||O(function(){var e=mt();return\'[null]\'!=ht([e])||\'{}\'!=ht({a:e})||\'{}\'!=ht(Object(e))})),\'JSON\',{stringify:function(e){if(!(void 0===e||wt(e))){for(var t,r,o=[e],n=1;arguments.length>n;)o.push(arguments[n++]);return t=o[1],\'function\'==typeof t&&(r=t),(r||!Xe(t))&&(t=function(e,t){if(r&&(t=r.call(this,e,t)),!wt(t))return t}),o[1]=t,ht.apply(ft,o)}}}),mt[gt][vt]||D(mt[gt],vt,mt[gt].valueOf),Pe(mt,\'Symbol\'),Pe(Math,\'Math\',!0),Pe(g.JSON,\'JSON\',!0),qe(\'asyncIterator\'),qe(\'observable\');var k=_.Symbol,Gt=t(function(e){e.exports={default:k,__esModule:!0}});e(Gt);var Ct=t(function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(We),n=r(Gt),a=\'function\'==typeof n.default&&\'symbol\'==typeof o.default?function(e){return typeof e}:function(e){return e&&\'function\'==typeof n.default&&e.constructor===n.default&&e!==n.default.prototype?\'symbol\':typeof e};t.default=\'function\'==typeof n.default&&\'symbol\'===a(o.default)?function(e){return\'undefined\'==typeof e?\'undefined\':a(e)}:function(e){return e&&\'function\'==typeof n.default&&e.constructor===n.default&&e!==n.default.prototype?\'symbol\':\'undefined\'==typeof e?\'undefined\':a(e)}}),$t=e(Ct),Ht=_e(\'toStringTag\'),Wt=\'Arguments\'==V(function(){return arguments}()),Kt=function(e,t){try{return e[t]}catch(t){}},Vt=function(e){var t,r,o;return e===void 0?\'Undefined\':null===e?\'Null\':\'string\'==typeof(r=Kt(t=Object(e),Ht))?r:Wt?V(t):\'Object\'==(o=V(t))&&\'function\'==typeof t.callee?\'Arguments\':o},qt=_e(\'iterator\'),Ut=_.getIteratorMethod=function(e){if(e!=void 0)return e[qt]||e[\'@@iterator\']||W[Vt(e)]},Bt=_.getIterator=function(e){var t=Ut(e);if(\'function\'!=typeof t)throw TypeError(e+\' is not iterable!\');return E(t.call(e))},Jt=t(function(e){e.exports={default:Bt,__esModule:!0}}),zt=e(Jt),Qt=_e(\'iterator\'),Xt=_.isIterable=function(e){var t=Object(e);return t[Qt]!==void 0||\'@@iterator\'in t||W.hasOwnProperty(Vt(t))},Zt=t(function(e){e.exports={default:Xt,__esModule:!0}});e(Zt);var er,tr,rr,or=t(function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(Zt),n=r(Jt);t.default=function(){function e(e,t){var r,o=[],a=!0,l=!1;try{for(var i,s=(0,n.default)(e);!(a=(i=s.next()).done)&&(o.push(i.value),!(t&&o.length===t));a=!0);}catch(e){l=!0,r=e}finally{try{!a&&s[\'return\']&&s[\'return\']()}finally{if(l)throw r}}return o}return function(t,r){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,r);throw new TypeError(\'Invalid attempt to destructure non-iterable instance\')}}()}),nr=e(or),ar=function(e,t,r,o){if(!(e instanceof t)||o!==void 0&&o in e)throw TypeError(r+\': incorrect invocation!\');return e},lr=function(t,e,r,o){try{return o?e(E(r)[0],r[1]):e(r)}catch(r){var n=t[\'return\'];throw void 0!==n&&E(n.call(t)),r}},ir=_e(\'iterator\'),sr=Array.prototype,cr=function(e){return e!==void 0&&(W.Array===e||sr[ir]===e)},ur=t(function(e){var t={},r={},o=e.exports=function(e,o,n,a,l){var i,s,c,u,p=l?function(){return e}:Ut(e),d=x(n,a,o?2:1),y=0;if(\'function\'!=typeof p)throw TypeError(e+\' is not iterable!\');if(cr(p)){for(i=B(e.length);i>y;y++)if(u=o?d(E(s=e[y])[0],s[1]):d(e[y]),u===t||u===r)return u;}else for(c=p.call(e);!(s=c.next()).done;)if(u=lr(c,d,s.value,o),u===t||u===r)return u};o.BREAK=t,o.RETURN=r}),pr=_e(\'species\'),dr=function(e,t){var r,o=E(e).constructor;return o===void 0||(r=E(o)[pr])==void 0?t:v(r)},yr=function(e,t,r){var o=r===void 0;switch(t.length){case 0:return o?e():e.call(r);case 1:return o?e(t[0]):e.call(r,t[0]);case 2:return o?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3]);}return e.apply(r,t)},mr=g.process,fr=g.setImmediate,hr=g.clearImmediate,gr=g.MessageChannel,_r=g.Dispatch,vr=0,xr={},Pr=\'onreadystatechange\',Er=function(){var e=+this;if(xr.hasOwnProperty(e)){var t=xr[e];delete xr[e],t()}},Or=function(e){Er.call(e.data)};fr&&hr||(fr=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return xr[++vr]=function(){yr(\'function\'==typeof e?e:Function(e),t)},er(vr),vr},hr=function(e){delete xr[e]},\'process\'==V(mr)?er=function(e){mr.nextTick(x(Er,e,1))}:_r&&_r.now?er=function(e){_r.now(x(Er,e,1))}:gr?(tr=new gr,rr=tr.port2,tr.port1.onmessage=Or,er=x(rr.postMessage,rr,1)):g.addEventListener&&\'function\'==typeof postMessage&&!g.importScripts?(er=function(e){g.postMessage(e+\'\',\'*\')},g.addEventListener(\'message\',Or,!1)):Pr in R(\'script\')?er=function(e){de.appendChild(R(\'script\'))[Pr]=function(){de.removeChild(this),Er.call(e)}}:er=function(e){setTimeout(x(Er,e,1),0)});var Tr={set:fr,clear:hr},Sr=Tr.set,br=g.MutationObserver||g.WebKitMutationObserver,kr=g.process,Rr=g.Promise,Lr=\'process\'==V(kr);var wr={f:function(e){return new r(e)}},Ir=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}},Mr=function(e,t){if(E(e),P(t)&&t.constructor===e)return t;var r=wr.f(e),o=r.resolve;return o(t),r.promise};var Ar=_e(\'species\'),Nr=_e(\'iterator\'),jr=!1;try{var Dr=[7][Nr]();Dr[\'return\']=function(){jr=!0}}catch(t){}var Fr,Yr,Gr,Cr,$r=Tr.set,Hr=function(){var t,r,o,e=function(){var e,n;for(Lr&&(e=kr.domain)&&e.exit();t;){n=t.fn,t=t.next;try{n()}catch(n){throw t?o():r=void 0,n}}r=void 0,e&&e.enter()};if(Lr)o=function(){kr.nextTick(e)};else if(br){var n=!0,a=document.createTextNode(\'\');new br(e).observe(a,{characterData:!0}),o=function(){a.data=n=!n}}else if(Rr&&Rr.resolve){var l=Rr.resolve();o=function(){l.then(e)}}else o=function(){Sr.call(g,e)};return function(e){var n={fn:e,next:void 0};r&&(r.next=n),t||(t=n,o()),r=n}}(),Wr=\'Promise\',Kr=g.TypeError,Vr=g.process,qr=g[Wr],Ur=\'process\'==Vt(Vr),Br=function(){},Jr=Yr=wr.f,zr=!!function(){try{var e=qr.resolve(1),t=(e.constructor={})[_e(\'species\')]=function(e){e(Br,Br)};return(Ur||\'function\'==typeof PromiseRejectionEvent)&&e.then(Br)instanceof t}catch(t){}}(),Qr=function(e){var t;return P(e)&&\'function\'==typeof(t=e.then)&&t},Xr=function(e,t){if(!e._n){e._n=!0;var r=e._c;Hr(function(){for(var o=e._v,n=1==e._s,a=0,l=function(t){var r,a,l=n?t.ok:t.fail,i=t.resolve,s=t.reject,c=t.domain;try{l?(!n&&(2==e._h&&to(e),e._h=1),!0===l?r=o:(c&&c.enter(),r=l(o),c&&c.exit()),r===t.promise?s(Kr(\'Promise-chain cycle\')):(a=Qr(r))?a.call(r,i,s):i(r)):s(o)}catch(t){s(t)}};r.length>a;)l(r[a++]);e._c=[],e._n=!1,t&&!e._h&&Zr(e)})}},Zr=function(e){$r.call(g,function(){var t,r,o,n=e._v,a=eo(e);if(a&&(t=Ir(function(){Ur?Vr.emit(\'unhandledRejection\',n,e):(r=g.onunhandledrejection)?r({promise:e,reason:n}):(o=g.console)&&o.error&&o.error(\'Unhandled promise rejection\',n)}),e._h=Ur||eo(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},eo=function(e){if(1==e._h)return!1;for(var t,r=e._a||e._c,o=0;r.length>o;)if(t=r[o++],t.fail||!eo(t.promise))return!1;return!0},to=function(e){$r.call(g,function(){var t;Ur?Vr.emit(\'rejectionHandled\',e):(t=g.onrejectionhandled)&&t({promise:e,reason:e._v})})},ro=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,!t._a&&(t._a=t._c.slice()),Xr(t,!0))},oo=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw Kr(\'Promise can\\\'t be resolved itself\');(t=Qr(e))?Hr(function(){var o={_w:r,_d:!1};try{t.call(e,x(oo,o,1),x(ro,o,1))}catch(t){ro.call(o,t)}}):(r._v=e,r._s=1,Xr(r,!1))}catch(t){ro.call({_w:r,_d:!1},t)}}};zr||(qr=function(e){ar(this,qr,Wr,\'_h\'),v(e),Fr.call(this);try{e(x(oo,this,1),x(ro,this,1))}catch(e){ro.call(this,e)}},Fr=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Fr.prototype=function(e,t,r){for(var o in t)r&&e[o]?e[o]=t[o]:D(e,o,t[o]);return e}(qr.prototype,{then:function(e,t){var r=Jr(dr(this,qr));return r.ok=\'function\'!=typeof e||e,r.fail=\'function\'==typeof t&&t,r.domain=Ur?Vr.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&Xr(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Gr=function(){var e=new Fr;this.promise=e,this.resolve=x(oo,e,1),this.reject=x(ro,e,1)},wr.f=Jr=function(e){return e===qr||e===Cr?new Gr(e):Yr(e)}),G(G.G+G.W+G.F*!zr,{Promise:qr}),Pe(qr,Wr),function(e){var t=\'function\'==typeof _[e]?_[e]:g[e];T&&t&&!t[Ar]&&A.f(t,Ar,{configurable:!0,get:function(){return this}})}(Wr),Cr=_[Wr],G(G.S+G.F*!zr,Wr,{reject:function(e){var t=Jr(this),r=t.reject;return r(e),t.promise}}),G(G.S+G.F*h,Wr,{resolve:function(e){return Mr(this===Cr?qr:this,e)}}),G(G.S+G.F*!(zr&&function(e,t){if(!t&&!jr)return!1;var r=!1;try{var o=[7],n=o[Nr]();n.next=function(){return{done:r=!0}},o[Nr]=function(){return n},e(o)}catch(t){}return r}(function(e){qr.all(e)[\'catch\'](Br)})),Wr,{all:function(e){var t=this,r=Jr(t),o=r.resolve,n=r.reject,a=Ir(function(){var r=[],a=0,l=1;ur(e,!1,function(e){var i=a++,s=!1;r.push(void 0),l++,t.resolve(e).then(function(e){s||(s=!0,r[i]=e,--l||o(r))},n)}),--l||o(r)});return a.e&&n(a.v),r.promise},race:function(e){var t=this,r=Jr(t),o=r.reject,n=Ir(function(){ur(e,!1,function(e){t.resolve(e).then(r.resolve,o)})});return n.e&&o(n.v),r.promise}}),\'use strict\',G(G.P+G.R,\'Promise\',{finally:function(t){var r=dr(this,_.Promise||g.Promise),e=\'function\'==typeof t;return this.then(e?function(e){return Mr(r,t()).then(function(){return e})}:t,e?function(o){return Mr(r,t()).then(function(){throw o})}:t)}}),\'use strict\',G(G.S,\'Promise\',{try:function(e){var t=wr.f(this),r=Ir(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}});var no=_.Promise,ao=t(function(e){e.exports={default:no,__esModule:!0}}),lo=e(ao),io=t(function(e,t){t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(ao);t.default=function(e){return function(){var t=e.apply(this,arguments);return new r.default(function(e,o){function n(a,l){try{var i=t[a](l),s=i.value}catch(e){return void o(e)}return i.done?void e(s):r.default.resolve(s).then(function(e){n(\'next\',e)},function(e){n(\'throw\',e)})}return n(\'next\')})}}}),so=e(io),co=d.mark(o),uo=t(function(e,t){t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError(\'Cannot call a class as a function\')}}),po=e(uo);G(G.S+G.F*!T,\'Object\',{defineProperty:A.f});var yo=_.Object,mo=function(e,t,r){return yo.defineProperty(e,t,r)},fo=t(function(e){e.exports={default:mo,__esModule:!0}});e(fo);var ho=t(function(e,t){t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(fo);t.default=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,\'value\'in o&&(o.writable=!0),(0,r.default)(e,o.key,o)}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}()}),go=e(ho),_o=function(){function e(){po(this,e),this._values=[]}return go(e,[{key:\'enqueue\',value:function(e){this._values.push(e),this._promise&&this._resolvePromise()}},{key:\'dequeue\',value:function(){var e=so(d.mark(function e(){var t=this;return d.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._values.length){e.next=2;break}return e.abrupt(\'return\',this._values.shift());case 2:return this._promise||(this._promise=new lo(function(e){t._resolvePromise=e})),e.next=5,this._promise;case 5:this._promise=void 0;case 6:e.next=0;break;case 8:case\'end\':return e.stop();}},e,this)}));return function(){return e.apply(this,arguments)}}()}]),e}();so(d.mark(function e(){var t,r,n,a,l,i,s=this;return d.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new _o,this.addEventListener(\'message\',function(e){var r=e.data;t.enqueue(r)}),e.next=4,t.dequeue();case 4:r=e.sent,n=r.gridWidth,a=r.gridHeight,l=new Uint8Array(n*a),i=d.mark(function e(){var r,i,c,u,p,y,m;return d.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.dequeue();case 2:for(r=e.sent,i=r.rectWidth,c=r.rectHeight,u=r.rectData,p=[],y=0;y<i;++y)for(m=0;m<c;++m)u[i*m+y]&&p.push([y,m]);s.postMessage(function(){var e,t=function(e,t){if(function(){var r,o=!0,a=!1;try{for(var i,s=zt(p);!(o=(i=s.next()).done);o=!0){var c=i.value,u=nr(c,2),d=u[0],y=u[1];if(d+=e,y+=t,l[n*y+d])return!1}}catch(e){a=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(a)throw r}}var m,f=!0,h=!1;try{for(var g,_=zt(p);!(f=(g=_.next()).done);f=!0){var v=g.value,x=nr(v,2),P=x[0],E=x[1];P+=e,E+=t,l[n*E+P]=1}}catch(e){h=!0,m=e}finally{try{!f&&_.return&&_.return()}finally{if(h)throw m}}return!0}())return{v:{rectLeft:e,rectTop:t}}},r=!0,s=!1;try{for(var u,d=zt(o(n-i,a-c));!(r=(u=d.next()).done);r=!0){var y=u.value,m=nr(y,2),f=m[0],h=m[1],g=t(f,h);if(\'object\'===(\'undefined\'==typeof g?\'undefined\':$t(g)))return g.v}}catch(t){s=!0,e=t}finally{try{!r&&d.return&&d.return()}finally{if(s)throw e}}throw new Error}());case 9:case\'end\':return e.stop();}},e,s)});case 9:return e.delegateYield(i(),\'t0\',10);case 10:e.next=9;break;case 12:case\'end\':return e.stop();}},e,this)})).call(self)})();\n'])),Yn=function(){var e=er(h.mark(function e(t){var r,n,a,u,s,l,f,d,p,y,g,m,v,_,x,b,w,E,S,O,P,T,k,L,j,R,I,M,F,A,W,G,N,H,D,C,V,Y,z,B,U,$,q,K,J,Z,Q,X,i,ee,te,re,ne,oe;return h.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.containerWidth,n=this.containerHeight,a=this.normalizedWords,u=this.fontSizeRatio,s=[],!(0<a.length&&0<r&&0<n)){e.next=96;break}return e.next=8,t.delayIfNotInterrupted();case 8:l=r/n,a=Gn(a,function(e){var t=e.weight;return-t}),f=Wn(a).weight,d=An(a).weight,p=void 0,f<d&&0<u&&u<Infinity?(1>u&&(u=1/u),p=function(e){return Hn(e,f,d,1,u)}):(a=Nn(a,function(e){var t=e.weight;return 0<t}),0<a.length&&(f=Wn(a).weight),p=function(e){return e/f}),y=new Worker(Vn),e.prev=15,g=4194304,m=c(Math.sqrt(l*g)),v=c(g/m),y.postMessage({gridWidth:m,gridHeight:v}),_=!0,x=!1,b=void 0,e.prev=23,w=Tn(a);case 25:if(_=(E=w.next()).done){e.next=77;break}return S=E.value,t.throwIfInterrupted(),e.prev=28,O=S.key,P=S.text,T=S.weight,k=S.rotation,L=S.fontFamily,j=S.fontStyle,R=S.fontVariant,I=S.fontWeight,M=S.color,F=4*p(T),A=Dn(k),W=[j,R,I,F+'px',L].join(' '),e.prev=33,e.next=36,document.fonts.load(W,P);case 36:e.next=40;break;case 38:e.prev=38,e.t0=e['catch'](33);case 40:if(G=document.createElement('canvas').getContext('2d'),G.font=W,N=G.measureText(P).width,!(0<N)){e.next=70;break}for(H=F,D=o(G.measureText('m').width,F),C=N+2*D,V=H+2*D,Y=Cn(N,H,A),z=Ln(Y,2),B=z[0],U=z[1],$=Cn(C,V,A),q=Ln($,2),K=q[0],J=q[1],Z=new Uint8Array(K*J),G.canvas.width=K,G.canvas.height=J,G.translate(K/2,J/2),G.rotate(A),G.font=W,G.textAlign='center',G.textBaseline='middle',G.fillText(P,0,0),Q=G.getImageData(0,0,K,J).data,(X=0,i=Z.length);X<i;++X)Z[X]=Q[4*X+3];return y.postMessage({rectWidth:K,rectHeight:J,rectData:Z}),e.next=64,Fn(y);case 64:ee=e.sent,te=ee.rectLeft,re=ee.rectTop,ne=te+(K-B)/2,oe=re+(J-U)/2,s.push({key:O,text:P,weight:T,rotation:k,fontFamily:L,fontSize:F,fontStyle:j,fontVariant:R,fontWeight:I,rectLeft:ne,rectTop:oe,rectWidth:B,rectHeight:U,textWidth:N,textHeight:H,color:M});case 70:e.next=74;break;case 72:e.prev=72,e.t1=e['catch'](28);case 74:_=!0,e.next=25;break;case 77:e.next=83;break;case 79:e.prev=79,e.t2=e['catch'](23),x=!0,b=e.t2;case 83:e.prev=83,e.prev=84,!_&&w.return&&w.return();case 86:if(e.prev=86,!x){e.next=89;break}throw b;case 89:return e.finish(86);case 90:return e.finish(83);case 91:return e.prev=91,y.terminate(),e.finish(91);case 94:return e.next=96,t.delayIfNotInterrupted();case 96:return e.abrupt('return',s);case 97:case'end':return e.stop();}},e,this,[[15,,91,94],[23,79,83,91],[28,72],[33,38],[84,,86,90]])}));return function(){return e.apply(this,arguments)}}(),zn=function(e,t){var r,n=Infinity,o=!0,i=!1;try{for(var c,u,s=Tn(e);!(o=(c=s.next()).done);o=!0)u=c.value,n=a(t(u),n)}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n},Bn=function(e,t){var r,n=-Infinity,i=!0,a=!1;try{for(var c,u,s=Tn(e);!(i=(c=s.next()).done);i=!0)u=c.value,n=o(t(u),n)}catch(e){a=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(a)throw r}}return n};var Un=function(e,t,r){t in e?A.f(e,t,W(0,r)):e[t]=r};'use strict',D(D.S+D.F*!kt(function(){}),'Array',{from:function(e){var t,r,n,o,i=Se(e),a='function'==typeof this?this:Array,c=arguments.length,u=1<c?arguments[1]:void 0,s=void 0!==u,l=0,f=et(i);if(s&&(u=b(u,2<c?arguments[2]:void 0,2)),void 0!=f&&!(a==Array&&Qe(f)))for(o=f.call(i),r=new a;!(n=o.next()).done;l++)Un(r,l,s?Ke(o,u,[n.value,l],!0):n.value);else for(t=K(i.length),r=new a(t);t>l;l++)Un(r,l,s?u(i[l],l):i[l]);return r.length=l,r}});var $n=_.Array.from,qn=r(function(e){e.exports={default:$n,__esModule:!0}});t(qn);var Kn=r(function(e,t){t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(qn);t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,r.default)(e)}}),Jn=t(Kn),Zn=function(e){var t=e.text;return t},Qn={name:'VueWordCloud',render:function(e){return this.renderer(e)},props:{words:{type:Array,default:function(){return[]}},text:{type:[String,Function],default:''},weight:{type:[Number,Function],default:1},rotation:{type:[String,Function],default:function(){var e=[0,0.75];return function(){return e[c(Math.random()*e.length)]}}},fontFamily:{type:[String,Function],default:'serif'},fontStyle:{type:[String,Function],default:'normal'},fontVariant:{type:[String,Function],default:'normal'},fontWeight:{type:[String,Function],default:'normal'},color:{type:[String,Function],default:'Black'},fontSizeRatio:{type:Number,default:0},maxFontSize:{type:Number,default:Infinity},containerSizeUpdateInterval:{type:Number,default:1e3}},data:function(){return{containerWidth:0,containerHeight:0,fulfilledBoundedWords:[]}},mounted:function(){this.updateContainerSizeTrigger()},computed:{renderer:function(){return this.domRenderer},normalizedWords:function(){var e=this,t=function(){var e={};return function(t){var r=Mn(t),n=e[r]||0;return e[r]=n+1,0<n&&(r+='-'+n),r}}();return this.words.map(function(r){var n,o,i,a,c,u,s,l;if(r)switch('undefined'==typeof r?'undefined':cn(r)){case'string':{n=r;break}case'object':{if(Array.isArray(r)){var f=Ln(r,2);n=f[0],o=f[1]}else n=r.text,o=r.weight,i=r.rotation,a=r.fontFamily,c=r.fontStyle,u=r.fontVariant,s=r.fontWeight,l=r.color;break}}void 0===n&&('function'==typeof e.text?n=e.text(r):n=e.text),void 0===o&&('function'==typeof e.weight?o=e.weight(r):o=e.weight),void 0===i&&('function'==typeof e.rotation?i=e.rotation(r):i=e.rotation),void 0===a&&('function'==typeof e.fontFamily?a=e.fontFamily(r):a=e.fontFamily),void 0===c&&('function'==typeof e.fontStyle?c=e.fontStyle(r):c=e.fontStyle),void 0===u&&('function'==typeof e.fontVariant?u=e.fontVariant(r):u=e.fontVariant),void 0===s&&('function'==typeof e.fontWeight?s=e.fontWeight(r):s=e.fontWeight),void 0===l&&('function'==typeof e.color?l=e.color(r):l=e.color);var d=t([n,a,c,u,s]);return{key:d,text:n,weight:o,rotation:i,fontFamily:a,fontStyle:c,fontVariant:u,fontWeight:s,color:l}})},boundedWords:function(){var e=this;return er(h.mark(function t(){return h.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.promisedBoundedWords;case 3:e.fulfilledBoundedWords=t.sent,t.next=8;break;case 6:t.prev=6,t.t0=t['catch'](0);case 8:case'end':return t.stop();}},t,e,[[0,6]])}))(),this.fulfilledBoundedWords},promisedBoundedWords:function(){return this.computeBoundedWords()},computeBoundedWords:function(){var e;return er(h.mark(function t(){var r,n;return h.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,n=e={},t.t0=Yn,t.t1=this,t.t2=function(){if(this.interrupted)throw new _n},t.t3=function(){var e=er(h.mark(function e(t){return h.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.throwIfInterrupted(),e.next=3,xn(t);case 3:this.throwIfInterrupted();case 4:case'end':return e.stop();}},e,this)}));return function(){return e.apply(this,arguments)}}(),t.t4={get interrupted(){return n!==e||r._isDestroyed},throwIfInterrupted:t.t2,delayIfNotInterrupted:t.t3},t.next=9,t.t0.call.call(t.t0,t.t1,t.t4);case 9:return t.abrupt('return',t.sent);case 10:case'end':return t.stop();}},t,this)}))},scaledBoundedWords:function(){var e=this.boundedWords,t=this.containerWidth,r=this.containerHeight,n=this.maxFontSize,o=zn(e,function(e){var t=e.rectLeft;return t}),i=Bn(e,function(e){var t=e.rectLeft,r=e.rectWidth;return t+r}),c=zn(e,function(e){var t=e.rectTop;return t}),u=Bn(e,function(e){var t=e.rectTop,r=e.rectHeight;return t+r}),s=a(t/(i-o),r/(u-c)),l=Bn(e,function(e){var t=e.fontSize;return t})*s;return l>n&&(s*=n/l),e.map(function(e){var n=e.key,a=e.text,l=e.weight,f=e.color,d=e.fontFamily,p=e.fontSize,h=e.fontStyle,y=e.fontVariant,g=e.fontWeight,m=e.rotation,v=e.rectLeft,_=e.rectTop,x=e.rectWidth,b=e.rectHeight,w=e.textWidth,E=e.textHeight;return v=(v-(o+i)/2)*s+t/2,_=(_-(c+u)/2)*s+r/2,x*=s,b*=s,w*=s,E*=s,p*=s,{key:n,text:a,weight:l,color:f,fontFamily:d,fontSize:p,fontStyle:h,fontVariant:y,fontWeight:g,rotation:m,rectLeft:v,rectTop:_,rectWidth:x,rectHeight:b,textWidth:w,textHeight:E}})},domWords:function(){},createWordElement:function(){return this.$scopedSlots.default?this.$scopedSlots.default:Zn},updateContainerSizeTrigger:function(){return function(){var e=this;this._isDestroyed||(setTimeout(function(){requestAnimationFrame(function(){e.updateContainerSizeTrigger()})},this.containerSizeUpdateInterval),this.updateContainerSize())}}},methods:{domRenderer:function(e){var t=[].concat(Jn(this.scaledBoundedWords)),r=this.createWordElement;return e('div',{style:{position:'relative',width:'100%',height:'100%'}},t.map(function(t){var n=t.key,o=t.text,i=t.weight,a=t.color,c=t.fontFamily,u=t.fontSize,s=t.fontStyle,l=t.fontVariant,f=t.fontWeight,d=t.rotation,p=t.rectLeft,h=t.rectTop,y=t.rectWidth,g=t.rectHeight;return e('div',{key:n,style:{position:'absolute',left:p+y/2+'px',top:h+g/2+'px',transform:'rotate('+d+'turn)'}},[e('div',{style:{position:'absolute',left:'50%',top:'50%',color:a,font:[s,l,f,u+'px/1',c].join(' '),whiteSpace:'nowrap',transform:'translate(-50%, -50%)'}},r({text:o,weight:i,color:a,fontFamily:c,fontSize:u,fontStyle:s,fontVariant:l,fontWeight:f,rotation:d}))])}))},canvasRenderer:function(){},svgRenderer:function(){},updateContainerSize:function(){var e=bn(this.$el),t=e.width,r=e.height;this.containerWidth=t,this.containerHeight=r}}};return e.component(Qn.name,Qn),Qn});