18 lines
332 KiB
JavaScript
18 lines
332 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),c=n("5135"),h=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=a(t),e=s(e,!0),h)try{return u(t,e)}catch(n){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},"06f8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9cb8"),i=n("ed3d"),o=n("4971"),a=n("d777"),s={node:1,duration:1,easing:1,onFinish:1,yoyo:1},c=1,h=2,u=3,l=0,f=["fill","stroke","shadowColor"],d=function(){function t(t,e,n,r,i,o,a){this.prop=t,this.propFunc=e,this.begin=r,this._pos=r,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()}return t.prototype.fire=function(t){var e=this[t];e&&e()},t.prototype.setTime=function(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())},t.prototype.getTime=function(){return this._time},t.prototype.setPosition=function(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t},t.prototype.getPosition=function(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)},t.prototype.play=function(){this.state=h,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},t.prototype.reverse=function(){this.state=u,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},t.prototype.seek=function(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")},t.prototype.reset=function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},t.prototype.finish=function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},t.prototype.update=function(){this.setPosition(this.getPosition(this._time))},t.prototype.onEnterFrame=function(){var t=this.getTimer()-this._startTime;this.state===h?this.setTime(t):this.state===u&&this.setTime(this.duration-t)},t.prototype.pause=function(){this.state=c,this.fire("onPause")},t.prototype.getTimer=function(){return(new Date).getTime()},t}(),p=function(){function t(n){var o,c,h=this,u=n.node,f=u._id,p=n.easing||e.Easings.Linear,g=!!n.yoyo;o="undefined"===typeof n.duration?.3:0===n.duration?.001:n.duration,this.node=u,this._id=l++;var v=u.getLayer()||(u instanceof a.Konva["Stage"]?u.getLayers():null);for(c in v||r.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new i.Animation((function(){h.tween.onEnterFrame()}),v),this.tween=new d(c,(function(t){h._tweenFunc(t)}),p,0,1,1e3*o,g),this._addListeners(),t.attrs[f]||(t.attrs[f]={}),t.attrs[f][this._id]||(t.attrs[f][this._id]={}),t.tweens[f]||(t.tweens[f]={}),n)void 0===s[c]&&this._addAttr(c,n[c]);this.reset(),this.onFinish=n.onFinish,this.onReset=n.onReset}return t.prototype._addAttr=function(e,n){var i,o,a,s,c,h,u,l,d=this.node,p=d._id;if(a=t.tweens[p][e],a&&delete t.attrs[p][a][e],i=d.getAttr(e),r.Util._isArray(n))if(o=[],c=Math.max(n.length,i.length),"points"===e&&n.length!==i.length&&(n.length>i.length?(u=i,i=r.Util._prepareArrayForTween(i,n,d.closed())):(h=n,n=r.Util._prepareArrayForTween(n,i,d.closed()))),0===e.indexOf("fill"))for(s=0;s<c;s++)if(s%2===0)o.push(n[s]-i[s]);else{var g=r.Util.colorToRGBA(i[s]);l=r.Util.colorToRGBA(n[s]),i[s]=g,o.push({r:l.r-g.r,g:l.g-g.g,b:l.b-g.b,a:l.a-g.a})}else for(s=0;s<c;s++)o.push(n[s]-i[s]);else-1!==f.indexOf(e)?(i=r.Util.colorToRGBA(i),l=r.Util.colorToRGBA(n),o={r:l.r-i.r,g:l.g-i.g,b:l.b-i.b,a:l.a-i.a}):o=n-i;t.attrs[p][this._id][e]={start:i,diff:o,end:n,trueEnd:h,trueStart:u},t.tweens[p][e]=this._id},t.prototype._tweenFunc=function(e){var n,i,o,a,s,c,h,u,l=this.node,d=t.attrs[l._id][this._id];for(n in d){if(i=d[n],o=i.start,a=i.diff,u=i.end,r.Util._isArray(o))if(s=[],h=Math.max(o.length,u.length),0===n.indexOf("fill"))for(c=0;c<h;c++)c%2===0?s.push((o[c]||0)+a[c]*e):s.push("rgba("+Math.round(o[c].r+a[c].r*e)+","+Math.round(o[c].g+a[c].g*e)+","+Math.round(o[c].b+a[c].b*e)+","+(o[c].a+a[c].a*e)+")");else for(c=0;c<h;c++)s.push((o[c]||0)+a[c]*e);else s=-1!==f.indexOf(n)?"rgba("+Math.round(o.r+a.r*e)+","+Math.round(o.g+a.g*e)+","+Math.round(o.b+a.b*e)+","+(o.a+a.a*e)+")":o+a*e;l.setAttr(n,s)}},t.prototype._addListeners=function(){var e=this;this.tween.onPlay=function(){e.anim.start()},this.tween.onReverse=function(){e.anim.start()},this.tween.onPause=function(){e.anim.stop()},this.tween.onFinish=function(){var n=e.node,r=t.attrs[n._id][e._id];r.points&&r.points.trueEnd&&n.setAttr("points",r.points.trueEnd),e.onFinish&&e.onFinish.call(e)},this.tween.onReset=function(){var n=e.node,r=t.attrs[n._id][e._id];r.points&&r.points.trueStart&&n.points(r.points.trueStart),e.onReset&&e.onReset()}},t.prototype.play=function(){return this.tween.play(),this},t.prototype.reverse=function(){return this.tween.reverse(),this},t.prototype.reset=function(){return this.tween.reset(),this},t.prototype.seek=function(t){return this.tween.seek(1e3*t),this},t.prototype.pause=function(){return this.tween.pause(),this},t.prototype.finish=function(){return this.tween.finish(),this},t.prototype.destroy=function(){var e,n=this.node._id,r=this._id,i=t.tweens[n];for(e in this.pause(),i)delete t.tweens[n][e];delete t.attrs[n][r]},t.attrs={},t.tweens={},t}();e.Tween=p,o.Node.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()};var n=new p(t);n.play()},e.Easings={BackEaseIn:function(t,e,n,r){var i=1.70158;return n*(t/=r)*t*((i+1)*t-i)+e},BackEaseOut:function(t,e,n,r){var i=1.70158;return n*((t=t/r-1)*t*((i+1)*t+i)+1)+e},BackEaseInOut:function(t,e,n,r){var i=1.70158;return(t/=r/2)<1?n/2*(t*t*((1+(i*=1.525))*t-i))+e:n/2*((t-=2)*t*((1+(i*=1.525))*t+i)+2)+e},ElasticEaseIn:function(t,e,n,r,i,o){var a=0;return 0===t?e:1===(t/=r)?e+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o)+e)},ElasticEaseOut:function(t,e,n,r,i,o){var a=0;return 0===t?e:1===(t/=r)?e+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*t)*Math.sin((t*r-a)*(2*Math.PI)/o)+n+e)},ElasticEaseInOut:function(t,e,n,r,i,o){var a=0;return 0===t?e:2===(t/=r/2)?e+n:(o||(o=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o)*-.5+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*r-a)*(2*Math.PI)/o)*.5+n+e)},BounceEaseOut:function(t,e,n,r){return(t/=r)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn:function(t,n,r,i){return r-e.Easings.BounceEaseOut(i-t,0,r,i)+n},BounceEaseInOut:function(t,n,r,i){return t<i/2?.5*e.Easings.BounceEaseIn(2*t,0,r,i)+n:.5*e.Easings.BounceEaseOut(2*t-i,0,r,i)+.5*r+n},EaseIn:function(t,e,n,r){return n*(t/=r)*t+e},EaseOut:function(t,e,n,r){return-n*(t/=r)*(t-2)+e},EaseInOut:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn:function(t,e,n,r){return n*(t/=r)*t*t*t*t+e},StrongEaseOut:function(t,e,n,r){return n*((t=t/r-1)*t*t*t*t+1)+e},StrongEaseInOut:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear:function(t,e,n,r){return n*t/r+e}}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0ff5":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("ea61"),a=n("f0b4"),s=n("d6af"),c=n("f655"),h=n("fce6"),u=n("4546"),l=n("d777"),f="#",d="beforeDraw",p="draw",g=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],v=g.length,y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hitCanvas=new c.HitCanvas({pixelRatio:1}),e}return r(e,t),e.prototype.setSize=function(e){var n=e.width,r=e.height;return t.prototype.setSize.call(this,{width:n,height:r}),this.hitCanvas.setSize(n,r),this},e.prototype._validateAdd=function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&i.Util.throw("You may only add groups and shapes to a layer.")},e.prototype.getIntersection=function(t,e){var n,r,i,o;if(!this.hitGraphEnabled()||!this.isVisible())return null;var a=1,s=!1;while(1){for(r=0;r<v;r++){if(i=g[r],n=this._getIntersection({x:t.x+i.x*a,y:t.y+i.y*a}),o=n.shape,o&&e)return o.findAncestor(e,!0);if(o)return o;if(s=!!n.antialiased,!n.antialiased)break}if(!s)return null;a+=1}},e.prototype._getIntersection=function(t){var e,n,r=this.hitCanvas.pixelRatio,o=this.hitCanvas.context.getImageData(Math.round(t.x*r),Math.round(t.y*r),1,1).data,a=o[3];return 255===a?(e=i.Util._rgbToHex(o[0],o[1],o[2]),n=h.shapes[f+e],n?{shape:n}:{antialiased:!0}):a>0?{antialiased:!0}:{}},e.prototype.drawScene=function(t,e){var n=this.getLayer(),r=t||n&&n.getCanvas();return this._fire(d,{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),o.Container.prototype.drawScene.call(this,r,e),this._fire(p,{node:this}),this},e.prototype.drawHit=function(t,e){var n=this.getLayer(),r=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),o.Container.prototype.drawHit.call(this,r,e),this},e.prototype.clear=function(t){return s.BaseLayer.prototype.clear.call(this,t),this.getHitCanvas().getContext().clear(t),this},e.prototype.enableHitGraph=function(){return this.hitGraphEnabled(!0),this},e.prototype.disableHitGraph=function(){return this.hitGraphEnabled(!1),this},e.prototype.toggleHitCanvas=function(){if(this.parent){var t=this.parent,e=!!this.hitCanvas._canvas.parentNode;e?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}},e}(s.BaseLayer);e.Layer=y,y.prototype.nodeType="Layer",l._registerNode(y),a.Factory.addGetterSetter(y,"hitGraphEnabled",!0,u.getBooleanValidator()),i.Collection.mapMethods(y)},"122f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Threshold=function(t){var e,n=255*this.threshold(),r=t.data,i=r.length;for(e=0;e<i;e+=1)r[e]=r[e]<n?0:255},r.Factory.addGetterSetter(i.Node,"threshold",.5,o.getNumberValidator(),r.Factory.afterSetFilter)},"141d":function(t,e,n){!function(e,n){t.exports=n()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e);var r={functional:!0,props:{tag:{type:String,required:!0},text:{type:String,required:!0},className:{type:String,required:!1}},render:function(t,e){return t(e.props.tag,{class:e.props.className},e.props.text.split("\n").reduce((function(e,n){return Array.isArray(e)?e.concat([t("br"),n]):[e,t("br"),n]})))}};e.default=r}])}))},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var c=r[s],h=c&&c.prototype;if(h&&h.forEach!==o)try{a(h,"forEach",o)}catch(u){h.forEach=o}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1bd8":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("f709"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(e){t.prototype._sceneFunc.call(this,e);var n=2*Math.PI,r=this.points(),i=r,o=0!==this.tension()&&r.length>4;o&&(i=this.getTensionPoints());var a,s,c=r.length;o?(a=r[c-2]-(i[i.length-2]+i[i.length-4])/2,s=r[c-1]-(i[i.length-1]+i[i.length-3])/2):(a=r[c-2]-r[c-4],s=r[c-1]-r[c-3]);var h=(Math.atan2(s,a)+n)%n,u=this.pointerLength(),l=this.pointerWidth();e.save(),e.beginPath(),e.translate(r[c-2],r[c-1]),e.rotate(h),e.moveTo(0,0),e.lineTo(-u,l/2),e.lineTo(-u,-l/2),e.closePath(),e.restore(),this.pointerAtBeginning()&&(e.save(),e.translate(r[0],r[1]),o?(a=(i[0]+i[2])/2-r[0],s=(i[1]+i[3])/2-r[1]):(a=r[2]-r[0],s=r[3]-r[1]),e.rotate((Math.atan2(-s,-a)+n)%n),e.moveTo(0,0),e.lineTo(-u,l/2),e.lineTo(-u,-l/2),e.closePath(),e.restore());var f=this.dashEnabled();f&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),f&&(this.attrs.dashEnabled=!0)},e.prototype.getSelfRect=function(){var e=t.prototype.getSelfRect.call(this),n=this.pointerWidth()/2;return{x:e.x-n,y:e.y-n,width:e.width+2*n,height:e.height+2*n}},e}(a.Line);e.Arrow=h,h.prototype.className="Arrow",c._registerNode(h),o.Factory.addGetterSetter(h,"pointerLength",10,s.getNumberValidator()),o.Factory.addGetterSetter(h,"pointerWidth",10,s.getNumberValidator()),o.Factory.addGetterSetter(h,"pointerAtBeginning",!1),i.Collection.mapMethods(h)},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c49":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("9cb8"),a=n("4546"),s=function(t,e,n){var r,i,o,a,s=t.data,c=e.data,h=t.width,u=t.height,l=n.polarCenterX||h/2,f=n.polarCenterY||u/2,d=0,p=0,g=0,v=0,y=Math.sqrt(l*l+f*f);i=h-l,o=u-f,a=Math.sqrt(i*i+o*o),y=a>y?a:y;var m,_,b,w,x=u,S=h,C=360/S*Math.PI/180;for(_=0;_<S;_+=1)for(b=Math.sin(_*C),w=Math.cos(_*C),m=0;m<x;m+=1)i=Math.floor(l+y*m/x*w),o=Math.floor(f+y*m/x*b),r=4*(o*h+i),d=s[r+0],p=s[r+1],g=s[r+2],v=s[r+3],r=4*(_+m*h),c[r+0]=d,c[r+1]=p,c[r+2]=g,c[r+3]=v},c=function(t,e,n){var r,i,o,a,s,c,h=t.data,u=e.data,l=t.width,f=t.height,d=n.polarCenterX||l/2,p=n.polarCenterY||f/2,g=0,v=0,y=0,m=0,_=Math.sqrt(d*d+p*p);i=l-d,o=f-p,c=Math.sqrt(i*i+o*o),_=c>_?c:_;var b,w,x,S,C=f,P=l,k=n.polarRotation||0;for(i=0;i<l;i+=1)for(o=0;o<f;o+=1)a=i-d,s=o-p,b=Math.sqrt(a*a+s*s)*C/_,w=(180*Math.atan2(s,a)/Math.PI+360+k)%360,w=w*P/360,x=Math.floor(w),S=Math.floor(b),r=4*(S*l+x),g=h[r+0],v=h[r+1],y=h[r+2],m=h[r+3],r=4*(o*l+i),u[r+0]=g,u[r+1]=v,u[r+2]=y,u[r+3]=m};e.Kaleidoscope=function(t){var e,n,r,i,a,h,u,l,f,d,p=t.width,g=t.height,v=Math.round(this.kaleidoscopePower()),y=Math.round(this.kaleidoscopeAngle()),m=Math.floor(p*(y%360)/360);if(!(v<1)){var _=o.Util.createCanvasElement();_.width=p,_.height=g;var b=_.getContext("2d").getImageData(0,0,p,g);s(t,b,{polarCenterX:p/2,polarCenterY:g/2});var w=p/Math.pow(2,v);while(w<=8)w*=2,v-=1;w=Math.ceil(w);var x=w,S=0,C=x,P=1;for(m+w>p&&(S=x,C=0,P=-1),n=0;n<g;n+=1)for(e=S;e!==C;e+=P)r=Math.round(e+m)%p,f=4*(p*n+r),a=b.data[f+0],h=b.data[f+1],u=b.data[f+2],l=b.data[f+3],d=4*(p*n+e),b.data[d+0]=a,b.data[d+1]=h,b.data[d+2]=u,b.data[d+3]=l;for(n=0;n<g;n+=1)for(x=Math.floor(w),i=0;i<v;i+=1){for(e=0;e<x+1;e+=1)f=4*(p*n+e),a=b.data[f+0],h=b.data[f+1],u=b.data[f+2],l=b.data[f+3],d=4*(p*n+2*x-e-1),b.data[d+0]=a,b.data[d+1]=h,b.data[d+2]=u,b.data[d+3]=l;x*=2}c(b,t,{polarRotation:0})}},r.Factory.addGetterSetter(i.Node,"kaleidoscopePower",2,a.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"kaleidoscopeAngle",0,a.getNumberValidator(),r.Factory.afterSetFilter)},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(c){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1f21":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.radius(),0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius()!==t/2&&this.radius(t/2)},e.prototype.setHeight=function(t){this.radius()!==t/2&&this.radius(t/2)},e}(a.Shape);e.Circle=h,h.prototype._centroid=!0,h.prototype.className="Circle",h.prototype._attrsAffectingSize=["radius"],c._registerNode(h),o.Factory.addGetterSetter(h,"radius",0,s.getNumberValidator()),i.Collection.mapMethods(h)},2013:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Posterize=function(t){var e,n=Math.round(254*this.levels())+1,r=t.data,i=r.length,o=255/n;for(e=0;e<i;e+=1)r[e]=Math.floor(r[e]/o)*o},r.Factory.addGetterSetter(i.Node,"levels",.5,o.getNumberValidator(),r.Factory.afterSetFilter)},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),c=n("2a62"),h=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var u,l,f,d,p,g,v,y=n&&n.that,m=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),w=a(e,y,1+m+b),x=function(t){return u&&c(u),new h(!0,t)},S=function(t){return m?(r(t),b?w(t[0],t[1],x):w(t[0],t[1])):b?w(t,x):w(t)};if(_)u=t;else{if(l=s(t),"function"!=typeof l)throw TypeError("Target is not iterable");if(i(l)){for(f=0,d=o(t.length);d>f;f++)if(p=S(t[f]),p&&p instanceof h)return p;return new h(!1)}u=l.call(t)}g=u.next;while(!(v=g.call(u)).done){try{p=S(v.value)}catch(C){throw c(u),C}if("object"==typeof p&&p&&p instanceof h)return p}return new h(!1)}},"229a":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._useBufferCanvas=function(){return!(!this.hasShadow()&&1===this.getAbsoluteOpacity()||!this.hasStroke()||!this.getStage())},e.prototype._sceneFunc=function(t){var e,n,r,i=this.width(),o=this.height(),a=this.image();a&&(e=this.cropWidth(),n=this.cropHeight(),r=e&&n?[a,this.cropX(),this.cropY(),e,n,0,0,i,o]:[a,0,0,i,o]),(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,i,o),t.closePath(),t.fillStrokeShape(this)),a&&t.drawImage.apply(t,r)},e.prototype._hitFunc=function(t){var e=this.width(),n=this.height();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){var t,e=this.image();return t=this.attrs.width,null!==t&&void 0!==t?t:e?e.width:0},e.prototype.getHeight=function(){var t,e=this.image();return t=this.attrs.height,null!==t&&void 0!==t?t:e?e.height:0},e.fromURL=function(t,n){var r=i.Util.createImageElement();r.onload=function(){var t=new e({image:r});n(t)},r.crossOrigin="Anonymous",r.src=t},e}(a.Shape);e.Image=h,h.prototype.className="Image",c._registerNode(h),o.Factory.addGetterSetter(h,"image"),o.Factory.addComponentsGetterSetter(h,"crop",["x","y","width","height"]),o.Factory.addGetterSetter(h,"cropX",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"cropY",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"cropWidth",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"cropHeight",0,s.getNumberValidator()),i.Collection.mapMethods(h)},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),h=n("94ca");t.exports=function(t,e){var n,u,l,f,d,p,g=t.target,v=t.global,y=t.stat;if(u=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,u)for(l in e){if(d=e[l],t.noTargetGet?(p=i(u,l),f=p&&p.value):f=u[l],n=h(v?l:g+(y?".":"#")+l,t.forced),!n&&void 0!==f){if(typeof d===typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),a(u,l,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},"26c8":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e,n,r,i=this.sides(),o=this.radius();for(t.beginPath(),t.moveTo(0,0-o),e=1;e<i;e++)n=o*Math.sin(2*e*Math.PI/i),r=-1*o*Math.cos(2*e*Math.PI/i),t.lineTo(n,r);t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius(t/2)},e.prototype.setHeight=function(t){this.radius(t/2)},e}(a.Shape);e.RegularPolygon=h,h.prototype.className="RegularPolygon",h.prototype._centroid=!0,h.prototype._attrsAffectingSize=["radius"],c._registerNode(h),o.Factory.addGetterSetter(h,"radius",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"sides",0,s.getNumberValidator()),i.Collection.mapMethods(h)},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var c,h="function"===typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=n,h._compiled=!0),r&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=c):i&&(c=s?function(){i.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(h.functional){h._injectStyles=c;var u=h.render;h.render=function(t,e){return c.call(e),u(t,e)}}else{var l=h.beforeCreate;h.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:h}}n.d(e,"a",(function(){return r}))},"2a01":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("8c18"),c=n("5414"),h=n("4546"),u=n("d777"),l="",f="normal";function d(t){t.fillText(this.partialText,0,0)}function p(t){t.strokeText(this.partialText,0,0)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.dummyCanvas=i.Util.createCanvasElement(),n.dataArray=[],n.dataArray=s.Path.parsePathData(n.attrs.data),n.on("dataChange.konva",(function(){this.dataArray=s.Path.parsePathData(this.attrs.data),this._setTextData()})),n.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva",n._setTextData),e&&e["getKerning"]&&(i.Util.warn('getKerning TextPath API is deprecated. Please use "kerningFunc" instead.'),n.kerningFunc(e["getKerning"])),n._setTextData(),n}return r(e,t),e.prototype._sceneFunc=function(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;"underline"===e&&t.beginPath();for(var o=0;o<i.length;o++){t.save();var a=i[o].p0;t.translate(a.x,a.y),t.rotate(i[o].rotation),this.partialText=i[o].text,t.fillStrokeShape(this),"underline"===e&&(0===o&&t.moveTo(0,r/2+1),t.lineTo(r,r/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=n,t.lineWidth=r/20,t.stroke()),t.restore()},e.prototype._hitFunc=function(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var n=e[0].p0;t.moveTo(n.x,n.y)}for(var r=0;r<e.length;r++){var i=e[r].p1;t.lineTo(i.x,i.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()},e.prototype.getTextWidth=function(){return this.textWidth},e.prototype.getTextHeight=function(){return i.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight},e.prototype.setText=function(t){return c.Text.prototype.setText.call(this,t)},e.prototype._getContextFont=function(){return c.Text.prototype._getContextFont.call(this)},e.prototype._getTextSize=function(t){var e=this.dummyCanvas,n=e.getContext("2d");n.save(),n.font=this._getContextFont();var r=n.measureText(t);return n.restore(),{width:r.width,height:parseInt(this.attrs.fontSize,10)}},e.prototype._setTextData=function(){var t=this,e=this._getTextSize(this.attrs.text),n=this.letterSpacing(),r=this.align(),i=this.kerningFunc();this.textWidth=e.width,this.textHeight=e.height;var o=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);this.glyphInfo=[];for(var a=0,c=0;c<t.dataArray.length;c++)t.dataArray[c].pathLength>0&&(a+=t.dataArray[c].pathLength);var h=0;"center"===r&&(h=Math.max(0,a/2-o/2)),"right"===r&&(h=Math.max(0,a-o));for(var u,l,f,d=this.text().split(""),p=this.text().split(" ").length-1,g=-1,v=0,y=function(){v=0;for(var e=t.dataArray,n=g+1;n<e.length;n++){if(e[n].pathLength>0)return g=n,e[n];"M"===e[n].command&&(u={x:e[n].points[0],y:e[n].points[1]})}return{}},m=function(e){var i=t._getTextSize(e).width+n;" "===e&&"justify"===r&&(i+=(a-o)/p);var c=0,h=0;l=void 0;while(Math.abs(i-c)/i>.01&&h<25){h++;var d=c;while(void 0===f)f=y(),f&&d+f.pathLength<i&&(d+=f.pathLength,f=void 0);if(f==={}||void 0===u)return;var g=!1;switch(f.command){case"L":s.Path.getLineLength(u.x,u.y,f.points[0],f.points[1])>i?l=s.Path.getPointOnLine(i,u.x,u.y,f.points[0],f.points[1],u.x,u.y):f=void 0;break;case"A":var m=f.points[4],_=f.points[5],b=f.points[4]+_;0===v?v=m+1e-8:i>c?v+=Math.PI/180*_/Math.abs(_):v-=Math.PI/360*_/Math.abs(_),(_<0&&v<b||_>=0&&v>b)&&(v=b,g=!0),l=s.Path.getPointOnEllipticalArc(f.points[0],f.points[1],f.points[2],f.points[3],v,f.points[6]);break;case"C":0===v?v=i>f.pathLength?1e-8:i/f.pathLength:i>c?v+=(i-c)/f.pathLength:v-=(c-i)/f.pathLength,v>1&&(v=1,g=!0),l=s.Path.getPointOnCubicBezier(v,f.start.x,f.start.y,f.points[0],f.points[1],f.points[2],f.points[3],f.points[4],f.points[5]);break;case"Q":0===v?v=i/f.pathLength:i>c?v+=(i-c)/f.pathLength:v-=(c-i)/f.pathLength,v>1&&(v=1,g=!0),l=s.Path.getPointOnQuadraticBezier(v,f.start.x,f.start.y,f.points[0],f.points[1],f.points[2],f.points[3]);break}void 0!==l&&(c=s.Path.getLineLength(u.x,u.y,l.x,l.y)),g&&(g=!1,f=void 0)}},_="C",b=t._getTextSize(_).width+n,w=h/b-1,x=0;x<w;x++){if(m(_),void 0===u||void 0===l)break;u=l}for(var S=0;S<d.length;S++){if(m(d[S]),void 0===u||void 0===l)break;var C=s.Path.getLineLength(u.x,u.y,l.x,l.y),P=0;if(i)try{P=i(d[S-1],d[S])*this.fontSize()}catch(A){P=0}u.x+=P,l.x+=P,this.textWidth+=P;var k=s.Path.getPointOnLine(P+C/2,u.x,u.y,l.x,l.y),O=Math.atan2(l.y-u.y,l.x-u.x);this.glyphInfo.push({transposeX:k.x,transposeY:k.y,text:d[S],rotation:O,p0:u,p1:l}),u=l}},e.prototype.getSelfRect=function(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach((function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)}));for(var e,n,r=t[0]||0,i=t[0]||0,o=t[1]||0,a=t[1]||0,s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],r=Math.min(r,e),i=Math.max(i,e),o=Math.min(o,n),a=Math.max(a,n);var c=this.fontSize();return{x:r-c/2,y:o-c/2,width:i-r+c,height:a-o+c}},e}(a.Shape);e.TextPath=g,g.prototype._fillFunc=d,g.prototype._strokeFunc=p,g.prototype._fillFuncHit=d,g.prototype._strokeFuncHit=p,g.prototype.className="TextPath",g.prototype._attrsAffectingSize=["text","fontSize","data"],u._registerNode(g),o.Factory.addGetterSetter(g,"data"),o.Factory.addGetterSetter(g,"fontFamily","Arial"),o.Factory.addGetterSetter(g,"fontSize",12,h.getNumberValidator()),o.Factory.addGetterSetter(g,"fontStyle",f),o.Factory.addGetterSetter(g,"align","left"),o.Factory.addGetterSetter(g,"letterSpacing",0,h.getNumberValidator()),o.Factory.addGetterSetter(g,"textBaseline","middle"),o.Factory.addGetterSetter(g,"fontVariant",f),o.Factory.addGetterSetter(g,"text",l),o.Factory.addGetterSetter(g,"textDecoration",null),o.Factory.addGetterSetter(g,"kerningFunc",null),i.Collection.mapMethods(g)},"2a62":function(t,e,n){var r=n("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){
|
||
/*!
|
||
* Vue.js v2.6.12
|
||
* (c) 2014-2020 Evan You
|
||
* Released under the MIT License.
|
||
*/
|
||
var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var h=Object.prototype.toString;function u(t){return"[object Object]"===h.call(t)}function l(t){return"[object RegExp]"===h.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===h?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}v("slot,component",!0);var y=v("key,ref,slot,slot-scope,is");function m(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,S=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),P=/\B([A-Z])/g,k=w((function(t){return t.replace(P,"-$1").toLowerCase()}));function O(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function A(t,e){return t.bind(e)}var T=Function.prototype.bind?A:O;function M(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function F(t,e){for(var n in e)t[n]=e[n];return t}function N(t){for(var e={},n=0;n<t.length;n++)t[n]&&F(e,t[n]);return e}function L(t,e,n){}var D=function(t,e,n){return!1},E=function(t){return t};function I(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return I(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return I(t[n],e[n])}))}catch(h){return!1}}function j(t,e){for(var n=0;n<t.length;n++)if(I(t[n],e))return n;return-1}function G(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var R="data-server-rendered",$=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:L,parsePlatformTagName:E,mustUseProp:D,async:!0,_lifecycleHooks:U},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function B(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function W(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var z=new RegExp("[^"+H.source+".$_\\d]");function K(t){if(!z.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,X="__proto__"in{},q="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Z&&WXEnvironment.platform.toLowerCase(),Q=q&&window.navigator.userAgent.toLowerCase(),tt=Q&&/msie|trident/.test(Q),et=Q&&Q.indexOf("msie 9.0")>0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(q)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Sa){}var ct=function(){return void 0===Y&&(Y=!q&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ht=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var lt,ft="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);lt="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=L,pt=0,gt=function(){this.id=pt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){m(this.subs,t)},gt.prototype.depend=function(){gt.target&>.target.addDep(this)},gt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},gt.target=null;var vt=[];function yt(t){vt.push(t),gt.target=t}function mt(){vt.pop(),gt.target=vt[vt.length-1]}var _t=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},bt={child:{configurable:!0}};bt.child.get=function(){return this.componentInstance},Object.defineProperties(_t.prototype,bt);var wt=function(t){void 0===t&&(t="");var e=new _t;return e.text=t,e.isComment=!0,e};function xt(t){return new _t(void 0,void 0,void 0,String(t))}function St(t){var e=new _t(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Ct=Array.prototype,Pt=Object.create(Ct),kt=["push","pop","shift","unshift","splice","sort","reverse"];kt.forEach((function(t){var e=Ct[t];W(Pt,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ot=Object.getOwnPropertyNames(Pt),At=!0;function Tt(t){At=t}var Mt=function(t){this.value=t,this.dep=new gt,this.vmCount=0,W(t,"__ob__",this),Array.isArray(t)?(X?Ft(t,Pt):Nt(t,Pt,Ot),this.observeArray(t)):this.walk(t)};function Ft(t,e){t.__proto__=e}function Nt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];W(t,o,e[o])}}function Lt(t,e){var n;if(c(t)&&!(t instanceof _t))return b(t,"__ob__")&&t.__ob__ instanceof Mt?n=t.__ob__:At&&!ct()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Mt(t)),e&&n&&n.vmCount++,n}function Dt(t,e,n,r,i){var o=new gt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=t[e]);var h=!i&&Lt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return gt.target&&(o.depend(),h&&(h.dep.depend(),Array.isArray(e)&&jt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!c||(c?c.call(t,e):n=e,h=!i&&Lt(e),o.notify())}})}}function Et(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Dt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function It(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||b(t,e)&&(delete t[e],n&&n.dep.notify())}}function jt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&jt(e)}Mt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Dt(t,e[n])},Mt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Lt(t[e])};var Gt=V.optionMergeStrategies;function Rt(t,e){if(!e)return t;for(var n,r,i,o=ft?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],b(t,n)?r!==i&&u(r)&&u(i)&&Rt(r,i):Et(t,n,i));return t}function $t(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?Rt(r,i):i}:e?t?function(){return Rt("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Ut(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?Vt(n):n}function Vt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Ht(t,e,n,r){var i=Object.create(t||null);return e?F(i,e):i}Gt.data=function(t,e,n){return n?$t(t,e,n):e&&"function"!==typeof e?t:$t(t,e)},U.forEach((function(t){Gt[t]=Ut})),$.forEach((function(t){Gt[t+"s"]=Ht})),Gt.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in F(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Gt.props=Gt.methods=Gt.inject=Gt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return F(i,t),e&&F(i,e),i},Gt.provide=$t;var Bt=function(t,e){return void 0===e?t:e};function Wt(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=S(i),a[o]={type:null})}else if(u(n))for(var s in n)i=n[s],o=S(s),a[o]=u(i)?i:{type:i};else 0;t.props=a}}function zt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?F({from:o},a):{from:a}}else 0}}function Kt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Yt(t,e,n){if("function"===typeof e&&(e=e.options),Wt(e,n),zt(e,n),Kt(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Yt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)b(t,o)||s(o);function s(r){var i=Gt[r]||Bt;a[r]=i(t[r],e[r],n,r)}return a}function Xt(t,e,n,r){if("string"===typeof n){var i=t[e];if(b(i,n))return i[n];var o=S(n);if(b(i,o))return i[o];var a=C(o);if(b(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function qt(t,e,n,r){var i=e[t],o=!b(n,t),a=n[t],s=te(Boolean,i.type);if(s>-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===k(t)){var c=te(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Zt(r,i,t);var h=At;Tt(!0),Lt(a),Tt(h)}return a}function Zt(t,e,n){if(b(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Jt(e.type)?r.call(t):r}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Qt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Qt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Qt(e[n],t))return n;return-1}function ee(t,e,n){yt();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(Sa){re(Sa,r,"errorCaptured hook")}}}re(t,e,n)}finally{mt()}}function ne(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(t){return ee(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(Sa){ee(Sa,r,i)}return o}function re(t,e,n){if(V.errorHandler)try{return V.errorHandler.call(null,t,e,n)}catch(Sa){Sa!==t&&ie(Sa,null,"config.errorHandler")}ie(t,e,n)}function ie(t,e,n){if(!q&&!Z||"undefined"===typeof console)throw t;console.error(t)}var oe,ae=!1,se=[],ce=!1;function he(){ce=!1;var t=se.slice(0);se.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ut(Promise)){var ue=Promise.resolve();oe=function(){ue.then(he),rt&&setTimeout(L)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!ut(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&ut(setImmediate)?function(){setImmediate(he)}:function(){setTimeout(he,0)};else{var le=1,fe=new MutationObserver(he),de=document.createTextNode(String(le));fe.observe(de,{characterData:!0}),oe=function(){le=(le+1)%2,de.data=String(le)},ae=!0}function pe(t,e){var n;if(se.push((function(){if(t)try{t.call(e)}catch(Sa){ee(Sa,e,"nextTick")}else n&&n(e)})),ce||(ce=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var ge=new lt;function ve(t){ye(t,ge),ge.clear()}function ye(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!c(t)||Object.isFrozen(t)||t instanceof _t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)ye(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)ye(t[r[n]],e)}}}var me=w((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function _e(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)ne(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function be(t,e,n,i,a,s){var c,h,u,l;for(c in t)h=t[c],u=e[c],l=me(c),r(h)||(r(u)?(r(h.fns)&&(h=t[c]=_e(h,s)),o(l.once)&&(h=t[c]=a(l.name,h,l.capture)),n(l.name,h,l.capture,l.passive,l.params)):h!==u&&(u.fns=h,t[c]=u));for(c in e)r(t[c])&&(l=me(c),i(l.name,e[c],l.capture))}function we(t,e,n){var a;t instanceof _t&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function c(){n.apply(this,arguments),m(a.fns,c)}r(s)?a=_e([c]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(c)):a=_e([s,c]),a.merged=!0,t[e]=a}function xe(t,e,n){var o=e.options.props;if(!r(o)){var a={},s=t.attrs,c=t.props;if(i(s)||i(c))for(var h in o){var u=k(h);Se(a,c,h,u,!0)||Se(a,s,h,u,!1)}return a}}function Se(t,e,n,r,o){if(i(e)){if(b(e,n))return t[n]=e[n],o||delete e[n],!0;if(b(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Ce(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Pe(t){return s(t)?[xt(t)]:Array.isArray(t)?Oe(t):void 0}function ke(t){return i(t)&&i(t.text)&&a(t.isComment)}function Oe(t,e){var n,a,c,h,u=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(c=u.length-1,h=u[c],Array.isArray(a)?a.length>0&&(a=Oe(a,(e||"")+"_"+n),ke(a[0])&&ke(h)&&(u[c]=xt(h.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?ke(h)?u[c]=xt(h.text+a):""!==a&&u.push(xt(a)):ke(a)&&ke(h)?u[c]=xt(h.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),u.push(a)));return u}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=Me(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Dt(t,n,e[n])})),Tt(!0))}function Me(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&b(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var c=t[o].default;n[o]="function"===typeof c?c.call(e):c}else 0}}return n}}function Fe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var h in n)n[h].every(Ne)&&delete n[h];return n}function Ne(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Le(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=De(e,c,t[c]))}else i={};for(var h in e)h in i||(i[h]=Ee(e,h));return t&&Object.isExtensible(t)&&(t._normalized=i),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function De(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Pe(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Ee(t,e){return function(){return t[e]}}function Ie(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(c(t))if(ft&&t[Symbol.iterator]){n=[];var h=t[Symbol.iterator](),u=h.next();while(!u.done)n.push(e(u.value,n.length)),u=h.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function je(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=F(F({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Ge(t){return Xt(this.$options,"filters",t,!0)||E}function Re(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function $e(t,e,n,r,i){var o=V.keyCodes[e]||n;return i&&r&&!V.keyCodes[e]?Re(i,r):o?Re(o,t):r?k(r)!==e:void 0}function Ue(t,e,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=N(n));var a=function(a){if("class"===a||"style"===a||y(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||V.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=S(a),h=k(a);if(!(c in o)&&!(h in o)&&(o[a]=n[a],i)){var u=t.on||(t.on={});u["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function Ve(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Be(r,"__static__"+t,!1)),r}function He(t,e,n){return Be(t,"__once__"+e+(n?"_"+n:""),!0),t}function Be(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&We(t[r],e+"_"+r,n);else We(t,e,n)}function We(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function ze(t,e){if(e)if(u(e)){var n=t.on=t.on?F({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ke(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ke(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Xe(t,e){return"string"===typeof t?e+t:t}function qe(t){t._o=He,t._n=g,t._s=p,t._l=Ie,t._t=je,t._q=I,t._i=j,t._m=Ve,t._f=Ge,t._k=$e,t._b=Ue,t._v=xt,t._e=wt,t._u=Ke,t._g=ze,t._d=Ye,t._p=Xe}function Ze(t,e,r,i,a){var s,c=this,h=a.options;b(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var u=o(h._compiled),l=!u;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Me(h.inject,i),this.slots=function(){return c.$slots||Le(t.scopedSlots,c.$slots=Fe(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Le(t.scopedSlots,this.slots())}}),u&&(this.$options=h,this.$slots=this.slots(),this.$scopedSlots=Le(t.scopedSlots,this.$slots)),h._scopeId?this._c=function(t,e,n,r){var o=ln(s,t,e,n,r,l);return o&&!Array.isArray(o)&&(o.fnScopeId=h._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return ln(s,t,e,n,r,l)}}function Je(t,e,r,o,a){var s=t.options,c={},h=s.props;if(i(h))for(var u in h)c[u]=qt(u,h,e||n);else i(r.attrs)&&tn(c,r.attrs),i(r.props)&&tn(c,r.props);var l=new Ze(r,c,a,o,t),f=s.render.call(null,l._c,l);if(f instanceof _t)return Qe(f,r,l.parent,s,l);if(Array.isArray(f)){for(var d=Pe(f)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=Qe(d[g],r,l.parent,s,l);return p}}function Qe(t,e,n,r,i){var o=St(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[S(n)]=e[n]}qe(Ze.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,Mn);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;En(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Rn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):jn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Gn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,a,s){if(!r(t)){var h=n.$options._base;if(c(t)&&(t=h.extend(t)),"function"===typeof t){var u;if(r(t.cid)&&(u=t,t=wn(u,h),void 0===t))return bn(u,e,n,a,s);e=e||{},wr(t),i(e.model)&&cn(t.options,e);var l=xe(e,t,s);if(o(t.options.functional))return Je(t,l,e,n,a);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var d=e.slot;e={},d&&(e.slot=d)}an(e);var p=t.options.name||s,g=new _t("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:l,listeners:f,tag:s,children:a},u);return g}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function an(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=e[r],o=en[r];i===o||i&&i._merged||(e[r]=i?sn(o,i):o)}}function sn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function cn(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var hn=1,un=2;function ln(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=un),fn(t,e,n,r,i)}function fn(t,e,n,r,o){if(i(n)&&i(n.__ob__))return wt();if(i(n)&&i(n.is)&&(e=n.is),!e)return wt();var a,s,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===un?r=Pe(r):o===hn&&(r=Ce(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||V.getTagNamespace(e),a=V.isReservedTag(e)?new _t(V.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(c=Xt(t.$options,"components",e))?new _t(e,n,r,void 0,void 0,t):rn(c,n,t,r,e)):a=rn(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&dn(a,s),i(n)&&pn(n),a):wt()}function dn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var c=t.children[a];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&dn(c,e,n)}}function pn(t){c(t.style)&&ve(t.style),c(t.class)&&ve(t.class)}function gn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=Fe(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return ln(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return ln(t,e,n,r,i,!0)};var o=r&&r.data;Dt(t,"$attrs",o&&o.attrs||n,null,!0),Dt(t,"$listeners",e._parentListeners||n,null,!0)}var vn,yn=null;function mn(t){qe(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Le(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{yn=e,t=r.call(e._renderProxy,e.$createElement)}catch(Sa){ee(Sa,e,"render"),t=e._vnode}finally{yn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof _t||(t=wt()),t.parent=i,t}}function _n(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function bn(t,e,n,r,i){var o=wt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function wn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=yn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,h=null,u=null;n.$on("hook:destroyed",(function(){return m(a,n)}));var l=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==h&&(clearTimeout(h),h=null),null!==u&&(clearTimeout(u),u=null))},f=G((function(n){t.resolved=_n(n,e),s?a.length=0:l(!0)})),p=G((function(e){i(t.errorComp)&&(t.error=!0,l(!0))})),g=t(f,p);return c(g)&&(d(g)?r(t.resolved)&&g.then(f,p):d(g.component)&&(g.component.then(f,p),i(g.error)&&(t.errorComp=_n(g.error,e)),i(g.loading)&&(t.loadingComp=_n(g.loading,e),0===g.delay?t.loading=!0:h=setTimeout((function(){h=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,l(!1))}),g.delay||200)),i(g.timeout)&&(u=setTimeout((function(){u=null,r(t.resolved)&&p(null)}),g.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function xn(t){return t.isComment&&t.asyncFactory}function Sn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||xn(n)))return n}}function Cn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&An(t,e)}function Pn(t,e){vn.$on(t,e)}function kn(t,e){vn.$off(t,e)}function On(t,e){var n=vn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function An(t,e,n){vn=t,be(e,n||{},Pn,kn,On,t),vn=void 0}function Tn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?M(n):n;for(var r=M(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)ne(n[o],e,r,e,i)}return e}}var Mn=null;function Fn(t){var e=Mn;return Mn=t,function(){Mn=e}}function Nn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Ln(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Fn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Rn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||m(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Rn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Dn(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=wt),Rn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,L,{before:function(){t._isMounted&&!t._isDestroyed&&Rn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Rn(t,"mounted")),t}function En(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),h=!!(o||t.$options._renderChildren||c);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){Tt(!1);for(var u=t._props,l=t.$options._propKeys||[],f=0;f<l.length;f++){var d=l[f],p=t.$options.props;u[d]=qt(d,p,e,t)}Tt(!0),t.$options.propsData=e}r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,An(t,r,g),h&&(t.$slots=Fe(o,i.context),t.$forceUpdate())}function In(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function jn(t,e){if(e){if(t._directInactive=!1,In(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)jn(t.$children[n]);Rn(t,"activated")}}function Gn(t,e){if((!e||(t._directInactive=!0,!In(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Gn(t.$children[n]);Rn(t,"deactivated")}}function Rn(t,e){yt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)ne(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),mt()}var $n=[],Un=[],Vn={},Hn=!1,Bn=!1,Wn=0;function zn(){Wn=$n.length=Un.length=0,Vn={},Hn=Bn=!1}var Kn=0,Yn=Date.now;if(q&&!tt){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function qn(){var t,e;for(Kn=Yn(),Bn=!0,$n.sort((function(t,e){return t.id-e.id})),Wn=0;Wn<$n.length;Wn++)t=$n[Wn],t.before&&t.before(),e=t.id,Vn[e]=null,t.run();var n=Un.slice(),r=$n.slice();zn(),Qn(n),Zn(r),ht&&V.devtools&&ht.emit("flush")}function Zn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Rn(r,"updated")}}function Jn(t){t._inactive=!1,Un.push(t)}function Qn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,jn(t[e],!0)}function tr(t){var e=t.id;if(null==Vn[e]){if(Vn[e]=!0,Bn){var n=$n.length-1;while(n>Wn&&$n[n].id>t.id)n--;$n.splice(n+1,0,t)}else $n.push(t);Hn||(Hn=!0,pe(qn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Sa){if(!this.user)throw Sa;ee(Sa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),mt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Sa){ee(Sa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:L,set:L};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):Lt(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==ot&&gr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Tt(!1);var a=function(o){i.push(o);var a=qt(o,e,n,t);Dt(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Tt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?cr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&b(r,o)||B(o)||ir(t,"_data",o)}Lt(e,!0)}function cr(t,e){yt();try{return t.call(e,e)}catch(Sa){return ee(Sa,e,"data()"),{}}finally{mt()}}var hr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=ct();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||L,L,hr)),i in t||lr(t,i,o)}}function lr(t,e,n){var r=!ct();"function"===typeof n?(rr.get=r?fr(e):dr(n),rr.set=L):(rr.get=n.get?r&&!1!==n.cache?fr(e):dr(n.get):L,rr.set=n.set||L),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gt.target&&e.depend(),e.value}}function dr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?L:T(e[n],t)}function gr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)vr(t,n,r[i]);else vr(t,n,r)}}function vr(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function yr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Et,t.prototype.$delete=It,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return vr(r,t,e,n);n=n||{},n.user=!0;var i=new nr(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){ee(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var mr=0;function _r(t){t.prototype._init=function(t){var e=this;e._uid=mr++,e._isVue=!0,t&&t._isComponent?br(e,t):e.$options=Yt(wr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Nn(e),Cn(e),gn(e),Rn(e,"beforeCreate"),Te(e),or(e),Ae(e),Rn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function br(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function wr(t){var e=t.options;if(t.super){var n=wr(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=xr(t);i&&F(t.extendOptions,i),e=t.options=Yt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function xr(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function Sr(t){this._init(t)}function Cr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Pr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function kr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Or(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,$.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=F({},a.options),i[r]=a,a}}function Or(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Ar(t){var e=t.options.computed;for(var n in e)lr(t.prototype,n,e[n])}function Tr(t){$.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Mr(t){return t&&(t.Ctor.options.name||t.tag)}function Fr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function Nr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Mr(a.componentOptions);s&&!e(s)&&Lr(n,o,r,i)}}}function Lr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,m(n,e)}_r(Sr),yr(Sr),Tn(Sr),Ln(Sr),mn(Sr);var Dr=[String,RegExp,Array],Er={name:"keep-alive",abstract:!0,props:{include:Dr,exclude:Dr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Lr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Nr(t,(function(t){return Fr(e,t)}))})),this.$watch("exclude",(function(e){Nr(t,(function(t){return!Fr(e,t)}))}))},render:function(){var t=this.$slots.default,e=Sn(t),n=e&&e.componentOptions;if(n){var r=Mr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Fr(o,r))||a&&r&&Fr(a,r))return e;var s=this,c=s.cache,h=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,m(h,u),h.push(u)):(c[u]=e,h.push(u),this.max&&h.length>parseInt(this.max)&&Lr(c,h[0],h,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Ir={KeepAlive:Er};function jr(t){var e={get:function(){return V}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:F,mergeOptions:Yt,defineReactive:Dt},t.set=Et,t.delete=It,t.nextTick=pe,t.observable=function(t){return Lt(t),t},t.options=Object.create(null),$.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,F(t.options.components,Ir),Cr(t),Pr(t),kr(t),Tr(t)}jr(Sr),Object.defineProperty(Sr.prototype,"$isServer",{get:ct}),Object.defineProperty(Sr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sr,"FunctionalRenderContext",{value:Ze}),Sr.version="2.6.12";var Gr=v("style,class"),Rr=v("input,textarea,option,select,progress"),$r=function(t,e,n){return"value"===n&&Rr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Ur=v("contenteditable,draggable,spellcheck"),Vr=v("events,caret,typing,plaintext-only"),Hr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&Vr(e)?e:"true"},Br=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Wr="http://www.w3.org/1999/xlink",zr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Kr=function(t){return zr(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=qr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=qr(e,n.data));return Zr(e.staticClass,e.class)}function qr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Zr(t,e){return i(t)||i(e)?Jr(t,Qr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?ti(t):c(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Qr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function ei(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(t){return ri(t)||ii(t)};function ai(t){return ii(t)?"svg":"math"===t?"math":void 0}var si=Object.create(null);function ci(t){if(!q)return!0;if(oi(t))return!1;if(t=t.toLowerCase(),null!=si[t])return si[t];var e=document.createElement(t);return t.indexOf("-")>-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var hi=v("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function li(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(t,e){return document.createElementNS(ni[t],e)}function di(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function gi(t,e,n){t.insertBefore(e,n)}function vi(t,e){t.removeChild(e)}function yi(t,e){t.appendChild(e)}function mi(t){return t.parentNode}function _i(t){return t.nextSibling}function bi(t){return t.tagName}function wi(t,e){t.textContent=e}function xi(t,e){t.setAttribute(e,"")}var Si=Object.freeze({createElement:li,createElementNS:fi,createTextNode:di,createComment:pi,insertBefore:gi,removeChild:vi,appendChild:yi,parentNode:mi,nextSibling:_i,tagName:bi,setTextContent:wi,setStyleScope:xi}),Ci={create:function(t,e){Pi(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Pi(t,!0),Pi(e))},destroy:function(t){Pi(t,!0)}};function Pi(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?m(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var ki=new _t("",{},[]),Oi=["create","activate","update","remove","destroy"];function Ai(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ti(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ti(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||hi(r)&&hi(o)}function Mi(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Fi(t){var e,n,a={},c=t.modules,h=t.nodeOps;for(e=0;e<Oi.length;++e)for(a[Oi[e]]=[],n=0;n<c.length;++n)i(c[n][Oi[e]])&&a[Oi[e]].push(c[n][Oi[e]]);function u(t){return new _t(h.tagName(t).toLowerCase(),{},[],void 0,t)}function l(t,e){function n(){0===--n.listeners&&f(t)}return n.listeners=e,n}function f(t){var e=h.parentNode(t);i(e)&&h.removeChild(e,t)}function d(t,e,n,r,a,s,c){if(i(t.elm)&&i(s)&&(t=s[c]=St(t)),t.isRootInsert=!a,!p(t,e,n,r)){var u=t.data,l=t.children,f=t.tag;i(f)?(t.elm=t.ns?h.createElementNS(t.ns,f):h.createElement(f,t),x(t),_(t,l,e),i(u)&&w(t,e),m(n,t.elm,r)):o(t.isComment)?(t.elm=h.createComment(t.text),m(n,t.elm,r)):(t.elm=h.createTextNode(t.text),m(n,t.elm,r))}}function p(t,e,n,r){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1),i(t.componentInstance))return g(t,e),m(n,t.elm,r),o(s)&&y(t,e,n,r),!0}}function g(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,b(t)?(w(t,e),x(t)):(Pi(t),e.push(t))}function y(t,e,n,r){var o,s=t;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](ki,s);e.push(s);break}m(n,t.elm,r)}function m(t,e,n){i(t)&&(i(n)?h.parentNode(n)===t&&h.insertBefore(t,e,n):h.appendChild(t,e))}function _(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)d(e[r],n,t.elm,null,!0,e,r)}else s(t.text)&&h.appendChild(t.elm,h.createTextNode(String(t.text)))}function b(t){while(t.componentInstance)t=t.componentInstance._vnode;return i(t.tag)}function w(t,n){for(var r=0;r<a.create.length;++r)a.create[r](ki,t);e=t.data.hook,i(e)&&(i(e.create)&&e.create(ki,t),i(e.insert)&&n.push(t))}function x(t){var e;if(i(e=t.fnScopeId))h.setStyleScope(t.elm,e);else{var n=t;while(n)i(e=n.context)&&i(e=e.$options._scopeId)&&h.setStyleScope(t.elm,e),n=n.parent}i(e=Mn)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&h.setStyleScope(t.elm,e)}function S(t,e,n,r,i,o){for(;r<=i;++r)d(n[r],o,t,e,!1,n,r)}function C(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)C(t.children[n])}function P(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(i(r.tag)?(k(r),C(r)):f(r.elm))}}function k(t,e){if(i(e)||i(t.data)){var n,r=a.remove.length+1;for(i(e)?e.listeners+=r:e=l(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&k(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else f(t.elm)}function O(t,e,n,o,a){var s,c,u,l,f=0,p=0,g=e.length-1,v=e[0],y=e[g],m=n.length-1,_=n[0],b=n[m],w=!a;while(f<=g&&p<=m)r(v)?v=e[++f]:r(y)?y=e[--g]:Ai(v,_)?(T(v,_,o,n,p),v=e[++f],_=n[++p]):Ai(y,b)?(T(y,b,o,n,m),y=e[--g],b=n[--m]):Ai(v,b)?(T(v,b,o,n,m),w&&h.insertBefore(t,v.elm,h.nextSibling(y.elm)),v=e[++f],b=n[--m]):Ai(y,_)?(T(y,_,o,n,p),w&&h.insertBefore(t,y.elm,v.elm),y=e[--g],_=n[++p]):(r(s)&&(s=Mi(e,f,g)),c=i(_.key)?s[_.key]:A(_,e,f,g),r(c)?d(_,o,t,v.elm,!1,n,p):(u=e[c],Ai(u,_)?(T(u,_,o,n,p),e[c]=void 0,w&&h.insertBefore(t,u.elm,v.elm)):d(_,o,t,v.elm,!1,n,p)),_=n[++p]);f>g?(l=r(n[m+1])?null:n[m+1].elm,S(t,l,n,p,m,o)):p>m&&P(e,f,g)}function A(t,e,n,r){for(var o=n;o<r;o++){var a=e[o];if(i(a)&&Ai(t,a))return o}}function T(t,e,n,s,c,u){if(t!==e){i(e.elm)&&i(s)&&(e=s[c]=St(e));var l=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?N(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,d=e.data;i(d)&&i(f=d.hook)&&i(f=f.prepatch)&&f(t,e);var p=t.children,g=e.children;if(i(d)&&b(e)){for(f=0;f<a.update.length;++f)a.update[f](t,e);i(f=d.hook)&&i(f=f.update)&&f(t,e)}r(e.text)?i(p)&&i(g)?p!==g&&O(l,p,g,n,u):i(g)?(i(t.text)&&h.setTextContent(l,""),S(l,null,g,0,g.length-1,n)):i(p)?P(p,0,p.length-1):i(t.text)&&h.setTextContent(l,""):t.text!==e.text&&h.setTextContent(l,e.text),i(d)&&i(f=d.hook)&&i(f=f.postpatch)&&f(t,e)}}}function M(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var F=v("attrs,class,staticClass,staticStyle,key");function N(t,e,n,r){var a,s=e.tag,c=e.data,h=e.children;if(r=r||c&&c.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(c)&&(i(a=c.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return g(e,n),!0;if(i(s)){if(i(h))if(t.hasChildNodes())if(i(a=c)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var u=!0,l=t.firstChild,f=0;f<h.length;f++){if(!l||!N(l,h[f],n,r)){u=!1;break}l=l.nextSibling}if(!u||l)return!1}else _(e,h,n);if(i(c)){var d=!1;for(var p in c)if(!F(p)){d=!0,w(e,n);break}!d&&c["class"]&&ve(c["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var c=!1,l=[];if(r(t))c=!0,d(e,l);else{var f=i(t.nodeType);if(!f&&Ai(t,e))T(t,e,l,null,null,s);else{if(f){if(1===t.nodeType&&t.hasAttribute(R)&&(t.removeAttribute(R),n=!0),o(n)&&N(t,e,l))return M(e,l,!0),t;t=u(t)}var p=t.elm,g=h.parentNode(p);if(d(e,l,p._leaveCb?null:g,h.nextSibling(p)),i(e.parent)){var v=e.parent,y=b(e);while(v){for(var m=0;m<a.destroy.length;++m)a.destroy[m](v);if(v.elm=e.elm,y){for(var _=0;_<a.create.length;++_)a.create[_](ki,v);var w=v.data.hook.insert;if(w.merged)for(var x=1;x<w.fns.length;x++)w.fns[x]()}else Pi(v);v=v.parent}}i(g)?P([t],0,0):i(t.tag)&&C(t)}}return M(e,l,c),e.elm}i(t)&&C(t)}}var Ni={create:Li,update:Li,destroy:function(t){Li(t,ki)}};function Li(t,e){(t.data.directives||e.data.directives)&&Di(t,e)}function Di(t,e){var n,r,i,o=t===ki,a=e===ki,s=Ii(t.data.directives,t.context),c=Ii(e.data.directives,e.context),h=[],u=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Gi(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(Gi(i,"bind",e,t),i.def&&i.def.inserted&&h.push(i));if(h.length){var l=function(){for(var n=0;n<h.length;n++)Gi(h[n],"inserted",e,t)};o?we(e,"insert",l):l()}if(u.length&&we(e,"postpatch",(function(){for(var n=0;n<u.length;n++)Gi(u[n],"componentUpdated",e,t)})),!o)for(n in s)c[n]||Gi(s[n],"unbind",t,t,a)}var Ei=Object.create(null);function Ii(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Ei),i[ji(r)]=r,r.def=Xt(e.$options,"directives",r.name,!0);return i}function ji(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Gi(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(Sa){ee(Sa,n.context,"directive "+t.name+" "+e+" hook")}}var Ri=[Ci,Ni];function $i(t,e){var n=e.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var o,a,s,c=e.elm,h=t.data.attrs||{},u=e.data.attrs||{};for(o in i(u.__ob__)&&(u=e.data.attrs=F({},u)),u)a=u[o],s=h[o],s!==a&&Ui(c,o,a);for(o in(tt||nt)&&u.value!==h.value&&Ui(c,"value",u.value),h)r(u[o])&&(zr(o)?c.removeAttributeNS(Wr,Kr(o)):Ur(o)||c.removeAttribute(o))}}function Ui(t,e,n){t.tagName.indexOf("-")>-1?Vi(t,e,n):Br(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Ur(e)?t.setAttribute(e,Hr(e,n)):zr(e)?Yr(n)?t.removeAttributeNS(Wr,Kr(e)):t.setAttributeNS(Wr,e,n):Vi(t,e,n)}function Vi(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Hi={create:$i,update:$i};function Bi(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(e),c=n._transitionClasses;i(c)&&(s=Jr(s,Qr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Wi,zi={create:Bi,update:Bi},Ki="__r",Yi="__c";function Xi(t){if(i(t[Ki])){var e=tt?"change":"input";t[e]=[].concat(t[Ki],t[e]||[]),delete t[Ki]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function qi(t,e,n){var r=Wi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Zi=ae&&!(it&&Number(it[1])<=53);function Ji(t,e,n,r){if(Zi){var i=Kn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Wi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||Wi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Wi=e.elm,Xi(n),be(n,i,Ji,Qi,qi,e.context),Wi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in i(c.__ob__)&&(c=e.data.domProps=F({},c)),s)n in c||(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var h=r(o)?"":String(o);io(a,h)&&(a.value=h)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var u=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Sa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Sa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},co=w((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function ho(t){var e=uo(t.style);return t.staticStyle?F(t.staticStyle,e):e}function uo(t){return Array.isArray(t)?N(t):"string"===typeof t?co(t):t}function lo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=ho(i.data))&&F(r,n)}(n=ho(t.data))&&F(r,n);var o=t;while(o=o.parent)o.data&&(n=ho(o.data))&&F(r,n);return r}var fo,po=/^--/,go=/\s*!important$/,vo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(go.test(n))t.style.setProperty(k(e),n.replace(go,""),"important");else{var r=mo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},yo=["Webkit","Moz","ms"],mo=w((function(t){if(fo=fo||document.createElement("div").style,t=S(t),"filter"!==t&&t in fo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<yo.length;n++){var r=yo[n]+e;if(r in fo)return r}}));function _o(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,c=e.elm,h=o.staticStyle,u=o.normalizedStyle||o.style||{},l=h||u,f=uo(e.data.style)||{};e.data.normalizedStyle=i(f.__ob__)?F({},f):f;var d=lo(e,!0);for(s in l)r(d[s])&&vo(c,s,"");for(s in d)a=d[s],a!==l[s]&&vo(c,s,null==a?"":a)}}var bo={create:_o,update:_o},wo=/\s+/;function xo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function So(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Co(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&F(e,Po(t.name||"v")),F(e,t),e}return"string"===typeof t?Po(t):void 0}}var Po=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),ko=q&&!et,Oo="transition",Ao="animation",To="transition",Mo="transitionend",Fo="animation",No="animationend";ko&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(To="WebkitTransition",Mo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Fo="WebkitAnimation",No="webkitAnimationEnd"));var Lo=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Do(t){Lo((function(){Lo(t)}))}function Eo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),xo(t,e))}function Io(t,e){t._transitionClasses&&m(t._transitionClasses,e),So(t,e)}function jo(t,e,n){var r=Ro(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Oo?Mo:No,c=0,h=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=a&&h()};setTimeout((function(){c<a&&h()}),o+1),t.addEventListener(s,u)}var Go=/\b(transform|all)(,|$)/;function Ro(t,e){var n,r=window.getComputedStyle(t),i=(r[To+"Delay"]||"").split(", "),o=(r[To+"Duration"]||"").split(", "),a=$o(i,o),s=(r[Fo+"Delay"]||"").split(", "),c=(r[Fo+"Duration"]||"").split(", "),h=$o(s,c),u=0,l=0;e===Oo?a>0&&(n=Oo,u=a,l=o.length):e===Ao?h>0&&(n=Ao,u=h,l=c.length):(u=Math.max(a,h),n=u>0?a>h?Oo:Ao:null,l=n?n===Oo?o.length:c.length:0);var f=n===Oo&&Go.test(r[To+"Property"]);return{type:n,timeout:u,propCount:l,hasTransform:f}}function $o(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Uo(e)+Uo(t[n])})))}function Uo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Vo(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Co(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,h=o.enterClass,u=o.enterToClass,l=o.enterActiveClass,f=o.appearClass,d=o.appearToClass,p=o.appearActiveClass,v=o.beforeEnter,y=o.enter,m=o.afterEnter,_=o.enterCancelled,b=o.beforeAppear,w=o.appear,x=o.afterAppear,S=o.appearCancelled,C=o.duration,P=Mn,k=Mn.$vnode;while(k&&k.parent)P=k.context,k=k.parent;var O=!P._isMounted||!t.isRootInsert;if(!O||w||""===w){var A=O&&f?f:h,T=O&&p?p:l,M=O&&d?d:u,F=O&&b||v,N=O&&"function"===typeof w?w:y,L=O&&x||m,D=O&&S||_,E=g(c(C)?C.enter:C);0;var I=!1!==a&&!et,j=Wo(N),R=n._enterCb=G((function(){I&&(Io(n,M),Io(n,T)),R.cancelled?(I&&Io(n,A),D&&D(n)):L&&L(n),n._enterCb=null}));t.data.show||we(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),N&&N(n,R)})),F&&F(n),I&&(Eo(n,A),Eo(n,T),Do((function(){Io(n,A),R.cancelled||(Eo(n,M),j||(Bo(E)?setTimeout(R,E):jo(n,s,R)))}))),t.data.show&&(e&&e(),N&&N(n,R)),I||j||R()}}}function Ho(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Co(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var a=o.css,s=o.type,h=o.leaveClass,u=o.leaveToClass,l=o.leaveActiveClass,f=o.beforeLeave,d=o.leave,p=o.afterLeave,v=o.leaveCancelled,y=o.delayLeave,m=o.duration,_=!1!==a&&!et,b=Wo(d),w=g(c(m)?m.leave:m);0;var x=n._leaveCb=G((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),_&&(Io(n,u),Io(n,l)),x.cancelled?(_&&Io(n,h),v&&v(n)):(e(),p&&p(n)),n._leaveCb=null}));y?y(S):S()}function S(){x.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),_&&(Eo(n,h),Eo(n,l),Do((function(){Io(n,h),x.cancelled||(Eo(n,u),b||(Bo(w)?setTimeout(x,w):jo(n,s,x)))}))),d&&d(n,x),_||b||x())}}function Bo(t){return"number"===typeof t&&!isNaN(t)}function Wo(t){if(r(t))return!1;var e=t.fns;return i(e)?Wo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function zo(t,e){!0!==e.data.show&&Vo(e)}var Ko=q?{create:zo,activate:zo,remove:function(t,e){!0!==t.data.show?Ho(t,e):e()}}:{},Yo=[Hi,zi,no,so,bo,Ko],Xo=Yo.concat(Ri),qo=Fi({nodeOps:Si,modules:Xo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Zo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?we(n,"postpatch",(function(){Zo.componentUpdated(t,e,n)})):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||hi(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!I(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Jo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout((function(){Qo(t,e,n)}),0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],i)o=j(r,ea(a))>-1,a.selected!==o&&(a.selected=o);else if(I(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!I(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Vo(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Vo(n,(function(){t.style.display=t.__vOriginalDisplay})):Ho(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Zo,show:aa},ca={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ha(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ha(Sn(e.children)):t}function ua(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function la(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function da(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||xn(t)},ga=function(t){return"show"===t.name},va={name:"transition",props:ca,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ha(i);if(!o)return i;if(this._leaving)return la(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=ua(this),h=this._vnode,u=ha(h);if(o.data.directives&&o.data.directives.some(ga)&&(o.data.show=!0),u&&u.data&&!da(o,u)&&!xn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var l=u.data.transition=F({},c);if("out-in"===r)return this._leaving=!0,we(l,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),la(t,i);if("in-out"===r){if(xn(o))return h;var f,d=function(){f()};we(c,"afterEnter",d),we(c,"enterCancelled",d),we(l,"delayLeave",(function(t){f=t}))}}return i}}},ya=F({tag:String,moveClass:String},ca);delete ya.mode;var ma={props:ya,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Fn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ua(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var h=[],u=[],l=0;l<r.length;l++){var f=r[l];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?h.push(f):u.push(f)}this.kept=t(e,null,h),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(_a),t.forEach(ba),t.forEach(wa),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Eo(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Mo,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Mo,t),n._moveCb=null,Io(n,e))})}})))},methods:{hasMove:function(t,e){if(!ko)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){So(n,t)})),xo(n,e),n.style.display="none",this.$el.appendChild(n);var r=Ro(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function _a(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ba(t){t.data.newPos=t.elm.getBoundingClientRect()}function wa(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var xa={Transition:va,TransitionGroup:ma};Sr.config.mustUseProp=$r,Sr.config.isReservedTag=oi,Sr.config.isReservedAttr=Gr,Sr.config.getTagNamespace=ai,Sr.config.isUnknownElement=ci,F(Sr.options.directives,sa),F(Sr.options.components,xa),Sr.prototype.__patch__=q?qo:L,Sr.prototype.$mount=function(t,e){return t=t&&q?ui(t):void 0,Dn(this,t,e)},q&&setTimeout((function(){V.devtools&&ht&&ht.emit("init",Sr)}),0),e["default"]=Sr}.call(this,n("c8ba"))},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),s=n("d039"),c=n("0366"),h=n("1be4"),u=n("cc12"),l=n("1cdc"),f=n("605d"),d=a.location,p=a.setImmediate,g=a.clearImmediate,v=a.process,y=a.MessageChannel,m=a.Dispatch,_=0,b={},w="onreadystatechange",x=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},S=function(t){return function(){x(t)}},C=function(t){x(t.data)},P=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&g||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return b[++_]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(_),_},g=function(t){delete b[t]},f?r=function(t){v.nextTick(S(t))}:m&&m.now?r=function(t){m.now(S(t))}:y&&!l?(i=new y,o=i.port2,i.port1.onmessage=C,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(P)?(r=P,a.addEventListener("message",C,!1)):r=w in u("script")?function(t){h.appendChild(u("script"))[w]=function(){h.removeChild(this),x(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:p,clear:g}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,c=s&&s.versions,h=c&&c.v8;h?(r=h.split("."),i=r[0]<4?1:r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2fb2":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("ea61"),a=n("d6af"),s=n("d777"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._validateAdd=function(t){var e=t.getType();"Shape"!==e&&i.Util.throw("You may only add shapes to a fast layer.")},e.prototype.hitGraphEnabled=function(){return!1},e.prototype.drawScene=function(t){var e=this.getLayer(),n=t||e&&e.getCanvas();return this.clearBeforeDraw()&&n.getContext().clear(),o.Container.prototype.drawScene.call(this,n),this},e.prototype.draw=function(){return this.drawScene(),this},e}(a.BaseLayer);e.FastLayer=c,c.prototype.nodeType="FastLayer",s._registerNode(c),i.Collection.mapMethods(c)},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"362d":function(t,e,n){var r=n("fd15").Konva;r._injectGlobal(r),e["default"]=r,t.exports=e["default"]},"36da":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=n("9cb8"),o=n("4971"),a=n("ea61"),s=n("eba4"),c=n("0ff5"),h=n("2fb2"),u=n("f35c"),l=n("df93"),f=n("fce6"),d=n("ed3d"),p=n("06f8"),g=n("c527"),v=n("f655");e.Konva=i.Util._assign(r.Konva,{Collection:i.Collection,Util:i.Util,Transform:i.Transform,Node:o.Node,ids:o.ids,names:o.names,Container:a.Container,Stage:s.Stage,stages:s.stages,Layer:c.Layer,FastLayer:h.FastLayer,Group:u.Group,DD:l.DD,Shape:f.Shape,shapes:f.shapes,Animation:d.Animation,Tween:p.Tween,Easings:p.Easings,Context:g.Context,Canvas:v.Canvas})},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,c=0;while(s>c)i.f(t,n=r[c++],e[n]);return t}},"383f":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),e!==n&&t.scale(1,n/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radiusX()},e.prototype.getHeight=function(){return 2*this.radiusY()},e.prototype.setWidth=function(t){this.radiusX(t/2)},e.prototype.setHeight=function(t){this.radiusY(t/2)},e}(a.Shape);e.Ellipse=h,h.prototype.className="Ellipse",h.prototype._centroid=!0,h.prototype._attrsAffectingSize=["radiusX","radiusY"],c._registerNode(h),o.Factory.addComponentsGetterSetter(h,"radius",["x","y"]),o.Factory.addGetterSetter(h,"radiusX",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"radiusY",0,s.getNumberValidator()),i.Collection.mapMethods(h)},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,c=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},"405a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("9cb8"),o=n("4971"),a=n("4546");e.Pixelate=function(t){var e,n,r,o,a,s,c,h,u,l,f,d,p,g,v=Math.ceil(this.pixelSize()),y=t.width,m=t.height,_=Math.ceil(y/v),b=Math.ceil(m/v),w=t.data;if(v<=0)i.Util.error("pixelSize value can not be <= 0");else for(d=0;d<_;d+=1)for(p=0;p<b;p+=1){for(o=0,a=0,s=0,c=0,h=d*v,u=h+v,l=p*v,f=l+v,g=0,e=h;e<u;e+=1)if(!(e>=y))for(n=l;n<f;n+=1)n>=m||(r=4*(y*n+e),o+=w[r+0],a+=w[r+1],s+=w[r+2],c+=w[r+3],g+=1);for(o/=g,a/=g,s/=g,c/=g,e=h;e<u;e+=1)if(!(e>=y))for(n=l;n<f;n+=1)n>=m||(r=4*(y*n+e),w[r+0]=o,w[r+1]=a,w[r+2]=s,w[r+3]=c)}},r.Factory.addGetterSetter(o.Node,"pixelSize",8,a.getNumberValidator(),r.Factory.afterSetFilter)},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},4546:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=n("9cb8");function o(t){return i.Util._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||i.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}function a(t){return t>255?255:t<0?0:Math.round(t)}function s(t){return t>1?1:t<1e-4?1e-4:t}function c(){if(r.Konva.isUnminified)return function(t,e){return i.Util._isNumber(t)||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function h(){if(r.Konva.isUnminified)return function(t,e){var n=i.Util._isNumber(t),r="auto"===t;return n||r||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function u(){if(r.Konva.isUnminified)return function(t,e){return i.Util._isString(t)||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function l(){if(r.Konva.isUnminified)return function(t,e){return i.Util._isFunction(t)||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}}function f(){if(r.Konva.isUnminified)return function(t,e){return i.Util._isArray(t)?t.forEach((function(t){i.Util._isNumber(t)||i.Util.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")})):i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.'),t}}function d(){if(r.Konva.isUnminified)return function(t,e){var n=!0===t||!1===t;return n||i.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function p(t){if(r.Konva.isUnminified)return function(e,n){return i.Util.isObject(e)||i.Util.warn(o(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}e.RGBComponent=a,e.alphaComponent=s,e.getNumberValidator=c,e.getNumberOrAutoValidator=h,e.getStringValidator=u,e.getFunctionValidator=l,e.getNumberArrayValidator=f,e.getBooleanValidator=d,e.getComponentValidator=p},"461e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.HSV=function(t){var e,n,r,i,o,a=t.data,s=a.length,c=Math.pow(2,this.value()),h=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,l=c*h*Math.cos(u*Math.PI/180),f=c*h*Math.sin(u*Math.PI/180),d=.299*c+.701*l+.167*f,p=.587*c-.587*l+.33*f,g=.114*c-.114*l-.497*f,v=.299*c-.299*l-.328*f,y=.587*c+.413*l+.035*f,m=.114*c-.114*l+.293*f,_=.299*c-.3*l+1.25*f,b=.587*c-.586*l-1.05*f,w=.114*c+.886*l-.2*f;for(e=0;e<s;e+=4)n=a[e+0],r=a[e+1],i=a[e+2],o=a[e+3],a[e+0]=d*n+p*r+g*i,a[e+1]=v*n+y*r+m*i,a[e+2]=_*n+b*r+w*i,a[e+3]=o},r.Factory.addGetterSetter(i.Node,"hue",0,o.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"saturation",0,o.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"value",0,o.getNumberValidator(),r.Factory.afterSetFilter)},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4930:function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())||!Symbol.sham&&r&&r<41}))},4971:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9cb8"),i=n("f0b4"),o=n("f655"),a=n("d777"),s=n("df93"),c=n("4546");e.ids={},e.names={};var h=function(t,n){n&&(e.ids[n]=t)};e._removeId=function(t,n){t&&e.ids[t]===n&&delete e.ids[t]},e._addName=function(t,n){n&&(e.names[n]||(e.names[n]=[]),e.names[n].push(t))},e._removeName=function(t,n){if(t){var r=e.names[t];if(r){for(var i=0;i<r.length;i++){var o=r[i];o._id===n&&r.splice(i,1)}0===r.length&&delete e.names[t]}}};var u="absoluteOpacity",l="absoluteTransform",f="absoluteScale",d="canvas",p="Change",g="children",v="konva",y="listening",m="mouseenter",_="mouseleave",b="name",w="set",x="Shape",S=" ",C="stage",P="transform",k="Stage",O="visible",A=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(S),T=(["scaleXChange.konva","scaleYChange.konva"].join(S),new r.Collection),M=1,F=function(){function t(t){var e=this;this._id=M++,this.eventListeners={},this.attrs={},this.index=0,this.parent=null,this._cache=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this.children=T,this._dragEventId=null,this.setAttrs(t),this.on(A,(function(){e._batchingTransformChange?e._needClearTransformCache=!0:(e._clearCache(P),e._clearSelfAndDescendantCache(l))})),this.on("visibleChange.konva",(function(){e._clearSelfAndDescendantCache(O)})),this.on("listeningChange.konva",(function(){e._clearSelfAndDescendantCache(y)})),this.on("opacityChange.konva",(function(){e._clearSelfAndDescendantCache(u)}))}return t.prototype.hasChildren=function(){return!1},t.prototype.getChildren=function(){return T},t.prototype._clearCache=function(t){t?this._cache.delete(t):this._cache.clear()},t.prototype._getCache=function(t,e){var n=this._cache.get(t);return void 0===n&&(n=e.call(this),this._cache.set(t,n)),n},t.prototype._getCanvasCache=function(){return this._cache.get(d)},t.prototype._clearSelfAndDescendantCache=function(t,e){this._clearCache(t),e&&t===l&&this.fire("_clearTransformCache"),this.isCached()||this.children&&this.children.each((function(e){e._clearSelfAndDescendantCache(t,!0)}))},t.prototype.clearCache=function(){return this._cache.delete(d),this._clearSelfAndDescendantCache(),this},t.prototype.cache=function(t){var e=t||{},n={};void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height||(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=Math.ceil(e.width||n.width),a=Math.ceil(e.height||n.height),s=e.pixelRatio,c=void 0===e.x?n.x:e.x,h=void 0===e.y?n.y:e.y,l=e.offset||0,p=e.drawBorder||!1;if(i&&a){i+=2*l,a+=2*l,c-=l,h-=l;var g=new o.SceneCanvas({pixelRatio:s,width:i,height:a}),v=new o.SceneCanvas({pixelRatio:s,width:0,height:0}),y=new o.HitCanvas({pixelRatio:1,width:i,height:a}),m=g.getContext(),_=y.getContext();return y.isCache=!0,this._cache.delete("canvas"),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(g.getContext()._context.imageSmoothingEnabled=!1,v.getContext()._context.imageSmoothingEnabled=!1),m.save(),_.save(),m.translate(-c,-h),_.translate(-c,-h),this._isUnderCache=!0,this._clearSelfAndDescendantCache(u),this._clearSelfAndDescendantCache(f),this.drawScene(g,this,!0),this.drawHit(y,this,!0),this._isUnderCache=!1,m.restore(),_.restore(),p&&(m.save(),m.beginPath(),m.rect(0,0,i,a),m.closePath(),m.setAttr("strokeStyle","red"),m.setAttr("lineWidth",5),m.stroke(),m.restore()),this._cache.set(d,{scene:g,filter:v,hit:y,x:c,y:h}),this}r.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.")},t.prototype.isCached=function(){return this._cache.has("canvas")},t.prototype.getClientRect=function(t){throw new Error('abstract "getClientRect" method call')},t.prototype._transformedRect=function(t,e){var n,r,i,o,a=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=this.getAbsoluteTransform(e);return a.forEach((function(t){var e=s.point(t);void 0===n&&(n=i=e.x,r=o=e.y),n=Math.min(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.x),o=Math.max(o,e.y)})),{x:n,y:r,width:i-n,height:o-r}},t.prototype._drawCachedSceneCanvas=function(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);var e=this._getCanvasCache();t.translate(e.x,e.y);var n=this._getCachedSceneCanvas(),r=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/r,n.height/r),t.restore()},t.prototype._drawCachedHitCanvas=function(t){var e=this._getCanvasCache(),n=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(n._canvas,0,0),t.restore()},t.prototype._getCachedSceneCanvas=function(){var t,e,n,i,o=this.filters(),a=this._getCanvasCache(),s=a.scene,c=a.filter,h=c.getContext();if(o){if(!this._filterUpToDate){var u=s.pixelRatio;c.setSize(s.width/s.pixelRatio,s.height/s.pixelRatio);try{for(t=o.length,h.clear(),h.drawImage(s._canvas,0,0,s.getWidth()/u,s.getHeight()/u),e=h.getImageData(0,0,c.getWidth(),c.getHeight()),n=0;n<t;n++)i=o[n],"function"===typeof i?(i.call(this,e),h.putImageData(e,0,0)):r.Util.error("Filter should be type of function, but got "+typeof i+" instead. Please check correct filters")}catch(l){r.Util.error("Unable to apply filter. "+l.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return c}return s},t.prototype.on=function(t,e){if(3===arguments.length)return this._delegate.apply(this,arguments);var n,r,i,o,a,s=t.split(S),c=s.length;for(n=0;n<c;n++)r=s[n],i=r.split("."),o=i[0],a=i[1]||"",this.eventListeners[o]||(this.eventListeners[o]=[]),this.eventListeners[o].push({name:a,handler:e});return this},t.prototype.off=function(t,e){var n,r,i,o,a,s,c=(t||"").split(S),h=c.length;if(!t)for(r in this.eventListeners)this._off(r);for(n=0;n<h;n++)if(i=c[n],o=i.split("."),a=o[0],s=o[1],a)this.eventListeners[a]&&this._off(a,s,e);else for(r in this.eventListeners)this._off(r,s,e);return this},t.prototype.dispatchEvent=function(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this},t.prototype.addEventListener=function(t,e){return this.on(t,(function(t){e.call(this,t.evt)})),this},t.prototype.removeEventListener=function(t){return this.off(t),this},t.prototype._delegate=function(t,e,n){var i=this;this.on(t,(function(t){for(var o=t.target.findAncestors(e,!0,i),a=0;a<o.length;a++)t=r.Util.cloneObject(t),t.currentTarget=o[a],n.call(o[a],t)}))},t.prototype.remove=function(){return this.isDragging()&&this.stopDrag(),s.DD._dragElements.delete(this._id),this._remove(),this},t.prototype._clearCaches=function(){this._clearSelfAndDescendantCache(l),this._clearSelfAndDescendantCache(u),this._clearSelfAndDescendantCache(f),this._clearSelfAndDescendantCache(C),this._clearSelfAndDescendantCache(O),this._clearSelfAndDescendantCache(y)},t.prototype._remove=function(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)},t.prototype.destroy=function(){e._removeId(this.id(),this);for(var t=(this.name()||"").split(/\s/g),n=0;n<t.length;n++){var r=t[n];e._removeName(r,this._id)}return this.remove(),this},t.prototype.getAttr=function(t){var e="get"+r.Util._capitalize(t);return r.Util._isFunction(this[e])?this[e]():this.attrs[t]},t.prototype.getAncestors=function(){var t=this.getParent(),e=new r.Collection;while(t)e.push(t),t=t.getParent();return e},t.prototype.getAttrs=function(){return this.attrs||{}},t.prototype.setAttrs=function(t){var e,n;if(!t)return this;for(e in t)e!==g&&(n=w+r.Util._capitalize(e),r.Util._isFunction(this[n])?this[n](t[e]):this._setAttr(e,t[e]));return this},t.prototype.isListening=function(){return this._getCache(y,this._isListening)},t.prototype._isListening=function(){var t=this.listening(),e=this.getParent();return"inherit"===t?!e||e.isListening():t},t.prototype.isVisible=function(){return this._getCache(O,this._isVisible)},t.prototype._isVisible=function(t){var e=this.visible(),n=this.getParent();return"inherit"===e?!n||n===t||n._isVisible(t):t&&t!==n?e&&n._isVisible(t):e},t.prototype.shouldDrawHit=function(){var t=this.getLayer();return!t&&this.isListening()&&this.isVisible()||t&&t.hitGraphEnabled()&&this.isListening()&&this.isVisible()},t.prototype.show=function(){return this.visible(!0),this},t.prototype.hide=function(){return this.visible(!1),this},t.prototype.getZIndex=function(){return this.index||0},t.prototype.getAbsoluteZIndex=function(){var t,e,n,r,i=this.getDepth(),o=this,a=0;function s(c){for(t=[],e=c.length,n=0;n<e;n++)r=c[n],a++,r.nodeType!==x&&(t=t.concat(r.getChildren().toArray())),r._id===o._id&&(n=e);t.length>0&&t[0].getDepth()<=i&&s(t)}return o.nodeType!==k&&s(o.getStage().getChildren()),a},t.prototype.getDepth=function(){var t=0,e=this.parent;while(e)t++,e=e.parent;return t},t.prototype._batchTransformChanges=function(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(P),this._clearSelfAndDescendantCache(l,!0)),this._needClearTransformCache=!1},t.prototype.setPosition=function(t){var e=this;return this._batchTransformChanges((function(){e.x(t.x),e.y(t.y)})),this},t.prototype.getPosition=function(){return{x:this.x(),y:this.y()}},t.prototype.getAbsolutePosition=function(t){var e=!1,n=this.parent;while(n){if(n.isCached()){e=!0;break}n=n.parent}e&&!t&&(t=!0);var i=this.getAbsoluteTransform(t).getMatrix(),o=new r.Transform,a=this.offset();return o.m=i.slice(),o.translate(a.x,a.y),o.getTranslation()},t.prototype.setAbsolutePosition=function(t){var e,n=this._clearTransform();return this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,this._clearCache(P),e=this._getAbsoluteTransform(),e.invert(),e.translate(t.x,t.y),t={x:this.attrs.x+e.getTranslation().x,y:this.attrs.y+e.getTranslation().y},this._setTransform(n),this.setPosition({x:t.x,y:t.y}),this},t.prototype._setTransform=function(t){var e;for(e in t)this.attrs[e]=t[e]},t.prototype._clearTransform=function(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t},t.prototype.move=function(t){var e=t.x,n=t.y,r=this.x(),i=this.y();return void 0!==e&&(r+=e),void 0!==n&&(i+=n),this.setPosition({x:r,y:i}),this},t.prototype._eachAncestorReverse=function(t,e){var n,r,i=[],o=this.getParent();if(e&&e._id===this._id)t(this);else{i.unshift(this);while(o&&(!e||o._id!==e._id))i.unshift(o),o=o.parent;for(n=i.length,r=0;r<n;r++)t(i[r])}},t.prototype.rotate=function(t){return this.rotation(this.rotation()+t),this},t.prototype.moveToTop=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index;return this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},t.prototype.moveUp=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,e=this.parent.getChildren().length;return t<e-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)},t.prototype.moveDown=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)},t.prototype.moveToBottom=function(){if(!this.parent)return r.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},t.prototype.setZIndex=function(t){if(!this.parent)return r.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&r.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this},t.prototype.getAbsoluteOpacity=function(){return this._getCache(u,this._getAbsoluteOpacity)},t.prototype._getAbsoluteOpacity=function(){var t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t},t.prototype.moveTo=function(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this},t.prototype.toObject=function(){var t,e,n,i,o,a={},s=this.getAttrs();for(t in a.attrs={},s)e=s[t],o=r.Util.isObject(e)&&!r.Util._isPlainObject(e)&&!r.Util._isArray(e),o||(n="function"===typeof this[t]&&this[t],delete s[t],i=n?n.call(this):null,s[t]=e,i!==e&&(a.attrs[t]=e));return a.className=this.getClassName(),r.Util._prepareToStringify(a)},t.prototype.toJSON=function(){return JSON.stringify(this.toObject())},t.prototype.getParent=function(){return this.parent},t.prototype.findAncestors=function(t,e,n){var r=[];e&&this._isMatch(t)&&r.push(this);var i=this.parent;while(i){if(i===n)return r;i._isMatch(t)&&r.push(i),i=i.parent}return r},t.prototype.isAncestorOf=function(t){return!1},t.prototype.findAncestor=function(t,e,n){return this.findAncestors(t,e,n)[0]},t.prototype._isMatch=function(t){if(!t)return!1;if("function"===typeof t)return t(this);var e,n,i=t.replace(/ /g,"").split(","),o=i.length;for(e=0;e<o;e++)if(n=i[e],r.Util.isValidSelector(n)||(r.Util.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),r.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),r.Util.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===n||this.nodeType===n)return!0;return!1},t.prototype.getLayer=function(){var t=this.getParent();return t?t.getLayer():null},t.prototype.getStage=function(){return this._getCache(C,this._getStage)},t.prototype._getStage=function(){var t=this.getParent();return t?t.getStage():void 0},t.prototype.fire=function(t,e,n){return void 0===e&&(e={}),e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this},t.prototype.getAbsoluteTransform=function(t){return t?this._getAbsoluteTransform(t):this._getCache(l,this._getAbsoluteTransform)},t.prototype._getAbsoluteTransform=function(t){var e;if(t)return e=new r.Transform,this._eachAncestorReverse((function(t){var n=t.transformsEnabled();"all"===n?e.multiply(t.getTransform()):"position"===n&&e.translate(t.x()-t.offsetX(),t.y()-t.offsetY())}),t),e;e=this.parent?this.parent.getAbsoluteTransform().copy():new r.Transform;var n=this.transformsEnabled();return"all"===n?e.multiply(this.getTransform()):"position"===n&&e.translate(this.x()-this.offsetX(),this.y()-this.offsetY()),e},t.prototype.getAbsoluteScale=function(t){var e=this;while(e)e._isUnderCache&&(t=e),e=e.getParent();var n=this.getAbsoluteTransform(t),r=n.decompose();return{x:r.scaleX,y:r.scaleY}},t.prototype.getAbsoluteRotation=function(){return this.getAbsoluteTransform().decompose().rotation},t.prototype.getTransform=function(){return this._getCache(P,this._getTransform)},t.prototype._getTransform=function(){var t=new r.Transform,e=this.x(),n=this.y(),i=a.Konva.getAngle(this.rotation()),o=this.scaleX(),s=this.scaleY(),c=this.skewX(),h=this.skewY(),u=this.offsetX(),l=this.offsetY();return 0===e&&0===n||t.translate(e,n),0!==i&&t.rotate(i),0===c&&0===h||t.skew(c,h),1===o&&1===s||t.scale(o,s),0===u&&0===l||t.translate(-1*u,-1*l),t},t.prototype.clone=function(t){var e,n,i,o,a,s=r.Util.cloneObject(this.attrs);for(e in t)s[e]=t[e];var c=new this.constructor(s);for(e in this.eventListeners)for(n=this.eventListeners[e],i=n.length,o=0;o<i;o++)a=n[o],a.name.indexOf(v)<0&&(c.eventListeners[e]||(c.eventListeners[e]=[]),c.eventListeners[e].push(a));return c},t.prototype._toKonvaCanvas=function(t){t=t||{};var e=this.getClientRect(),n=this.getStage(),r=void 0!==t.x?t.x:e.x,i=void 0!==t.y?t.y:e.y,a=t.pixelRatio||1,s=new o.SceneCanvas({width:t.width||e.width||(n?n.width():0),height:t.height||e.height||(n?n.height():0),pixelRatio:a}),c=s.getContext();return c.save(),(r||i)&&c.translate(-1*r,-1*i),this.drawScene(s),c.restore(),s},t.prototype.toCanvas=function(t){return this._toKonvaCanvas(t)._canvas},t.prototype.toDataURL=function(t){t=t||{};var e=t.mimeType||null,n=t.quality||null,r=this._toKonvaCanvas(t).toDataURL(e,n);return t.callback&&t.callback(r),r},t.prototype.toImage=function(t){if(!t||!t.callback)throw"callback required for toImage method config argument";var e=t.callback;delete t.callback,r.Util._urlToImage(this.toDataURL(t),(function(t){e(t)}))},t.prototype.setSize=function(t){return this.width(t.width),this.height(t.height),this},t.prototype.getSize=function(){return{width:this.width(),height:this.height()}},t.prototype.getClassName=function(){return this.className||this.nodeType},t.prototype.getType=function(){return this.nodeType},t.prototype.getDragDistance=function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():a.Konva.dragDistance},t.prototype._off=function(t,e,n){var r,i,o,a=this.eventListeners[t];for(r=0;r<a.length;r++)if(i=a[r].name,o=a[r].handler,("konva"!==i||"konva"===e)&&(!e||i===e)&&(!n||n===o)){if(a.splice(r,1),0===a.length){delete this.eventListeners[t];break}r--}},t.prototype._fireChangeEvent=function(t,e,n){this._fire(t+p,{oldVal:e,newVal:n})},t.prototype.setId=function(t){var n=this.id();return e._removeId(n,this),h(this,t),this._setAttr("id",t),this},t.prototype.setName=function(t){var n,r,i=(this.name()||"").split(/\s/g),o=(t||"").split(/\s/g);for(r=0;r<i.length;r++)n=i[r],-1===o.indexOf(n)&&n&&e._removeName(n,this._id);for(r=0;r<o.length;r++)n=o[r],-1===i.indexOf(n)&&n&&e._addName(this,n);return this._setAttr(b,t),this},t.prototype.addName=function(t){if(!this.hasName(t)){var e=this.name(),n=e?e+" "+t:t;this.setName(n)}return this},t.prototype.hasName=function(t){if(!t)return!1;var e=this.name();if(!e)return!1;var n=(e||"").split(/\s/g);return-1!==n.indexOf(t)},t.prototype.removeName=function(t){var e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return-1!==n&&(e.splice(n,1),this.setName(e.join(" "))),this},t.prototype.setAttr=function(t,e){var n=this[w+r.Util._capitalize(t)];return r.Util._isFunction(n)?n.call(this,e):this._setAttr(t,e),this},t.prototype._setAttr=function(t,e){var n=this.attrs[t];(n!==e||r.Util.isObject(e))&&(void 0===e||null===e?delete this.attrs[t]:this.attrs[t]=e,this._fireChangeEvent(t,n,e))},t.prototype._setComponentAttr=function(t,e,n){var r;void 0!==n&&(r=this.attrs[t],r||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=n,this._fireChangeEvent(t,r,n))},t.prototype._fireAndBubble=function(t,e,n){e&&this.nodeType===x&&(e.target=this);var r=(t===m||t===_)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n);if(!r){this._fire(t,e);var i=(t===m||t===_)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!i&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,e,n):this._fireAndBubble.call(this.parent,t,e))}},t.prototype._fire=function(t,e){var n,r=this.eventListeners[t];if(r)for(e=e||{},e.currentTarget=this,e.type=t,n=0;n<r.length;n++)r[n].handler.call(this,e)},t.prototype.draw=function(){return this.drawScene(),this.drawHit(),this},t.prototype._createDragElement=function(t){var e=t?t.pointerId:void 0,n=this.getStage(),r=this.getAbsolutePosition(),i=n._getPointerById(e)||n._changedPointerPositions[0]||r;s.DD._dragElements.set(this._id,{node:this,startPointerPos:i,offset:{x:i.x-r.x,y:i.y-r.y},dragStatus:"ready",pointerId:e})},t.prototype.startDrag=function(t){s.DD._dragElements.has(this._id)||this._createDragElement(t);var e=s.DD._dragElements.get(this._id);e.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},!0)},t.prototype._setDragPosition=function(t,e){var n=this.getStage()._getPointerById(e.pointerId);if(n){var i={x:n.x-e.offset.x,y:n.y-e.offset.y},o=this.dragBoundFunc();if(void 0!==o){var a=o.call(this,i,t);a?i=a:r.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(this.setAbsolutePosition(i),this.getLayer()?this.getLayer().batchDraw():this.getStage()&&this.getStage().batchDraw()),this._lastPos=i}},t.prototype.stopDrag=function(t){var e=s.DD._dragElements.get(this._id);e&&(e.dragStatus="stopped"),s.DD._endDragBefore(t),s.DD._endDragAfter(t)},t.prototype.setDraggable=function(t){this._setAttr("draggable",t),this._dragChange()},t.prototype.isDragging=function(){var t=s.DD._dragElements.get(this._id);return!!t&&"dragging"===t.dragStatus},t.prototype._listenDrag=function(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",(function(t){var e=this,n=void 0!==t.evt["button"],r=!n||a.Konva.dragButtons.indexOf(t.evt["button"])>=0;if(r&&!this.isDragging()){var i=!1;s.DD._dragElements.forEach((function(t){e.isAncestorOf(t.node)&&(i=!0)})),i||this._createDragElement(t)}}))},t.prototype._dragChange=function(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();t&&s.DD._dragElements.has(this._id)&&this.stopDrag()}},t.prototype._dragCleanup=function(){this.off("mousedown.konva"),this.off("touchstart.konva")},t.create=function(t,e){return r.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)},t._createNode=function(e,n){var i,o,s,c=t.prototype.getClassName.call(e),h=e.children;n&&(e.attrs.container=n),a._NODES_REGISTRY[c]||(r.Util.warn('Can not find a node with class name "'+c+'". Fallback to "Shape".'),c="Shape");var u=a._NODES_REGISTRY[c];if(i=new u(e.attrs),h)for(o=h.length,s=0;s<o;s++)i.add(t._createNode(h[s]));return i},t}();e.Node=F,F.prototype.nodeType="Node",F.prototype._attrsAffectingSize=[],i.Factory.addGetterSetter(F,"zIndex"),i.Factory.addGetterSetter(F,"absolutePosition"),i.Factory.addGetterSetter(F,"position"),i.Factory.addGetterSetter(F,"x",0,c.getNumberValidator()),i.Factory.addGetterSetter(F,"y",0,c.getNumberValidator()),i.Factory.addGetterSetter(F,"globalCompositeOperation","source-over",c.getStringValidator()),i.Factory.addGetterSetter(F,"opacity",1,c.getNumberValidator()),i.Factory.addGetterSetter(F,"name","",c.getStringValidator()),i.Factory.addGetterSetter(F,"id","",c.getStringValidator()),i.Factory.addGetterSetter(F,"rotation",0,c.getNumberValidator()),i.Factory.addComponentsGetterSetter(F,"scale",["x","y"]),i.Factory.addGetterSetter(F,"scaleX",1,c.getNumberValidator()),i.Factory.addGetterSetter(F,"scaleY",1,c.getNumberValidator()),i.Factory.addComponentsGetterSetter(F,"skew",["x","y"]),i.Factory.addGetterSetter(F,"skewX",0,c.getNumberValidator()),i.Factory.addGetterSetter(F,"skewY",0,c.getNumberValidator()),i.Factory.addComponentsGetterSetter(F,"offset",["x","y"]),i.Factory.addGetterSetter(F,"offsetX",0,c.getNumberValidator()),i.Factory.addGetterSetter(F,"offsetY",0,c.getNumberValidator()),i.Factory.addGetterSetter(F,"dragDistance",null,c.getNumberValidator()),i.Factory.addGetterSetter(F,"width",0,c.getNumberValidator()),i.Factory.addGetterSetter(F,"height",0,c.getNumberValidator()),i.Factory.addGetterSetter(F,"listening","inherit",(function(t){var e=!0===t||!1===t||"inherit"===t;return e||r.Util.warn(t+' is a not valid value for "listening" attribute. The value may be true, false or "inherit".'),t})),i.Factory.addGetterSetter(F,"preventDefault",!0,c.getBooleanValidator()),i.Factory.addGetterSetter(F,"filters",null,(function(t){return this._filterUpToDate=!1,t})),i.Factory.addGetterSetter(F,"visible","inherit",(function(t){var e=!0===t||!1===t||"inherit"===t;return e||r.Util.warn(t+' is a not valid value for "visible" attribute. The value may be true, false or "inherit".'),t})),i.Factory.addGetterSetter(F,"transformsEnabled","all",c.getStringValidator()),i.Factory.addGetterSetter(F,"size"),i.Factory.addGetterSetter(F,"dragBoundFunc"),i.Factory.addGetterSetter(F,"draggable",!1,c.getBooleanValidator()),i.Factory.backCompat(F,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),r.Collection.mapMethods(F)},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,c=r(e),h=i(c.length),u=o(a,h);if(t&&n!=n){while(h>u)if(s=c[u++],s!=s)return!0}else for(;h>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e,n){var r=n("7b0b"),i={}.hasOwnProperty;t.exports=function(t,e){return i.call(r(t),e)}},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}},5414:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i,o=n("9cb8"),a=n("f0b4"),s=n("fce6"),c=n("d777"),h=n("4546"),u=n("d777"),l="auto",f="center",d="justify",p="Change.konva",g="2d",v="-",y="left",m="text",_="Text",b="top",w="bottom",x="middle",S="normal",C="px ",P=" ",k="right",O="word",A="char",T="none",M="…",F=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],N=F.length;function L(){return i||(i=o.Util.createCanvasElement().getContext(g),i)}function D(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function E(t){t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function I(t){return t=t||{},t.fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}String.prototype.trimRight;var j=function(t){function e(e){var n=t.call(this,I(e))||this;n._partialTextX=0,n._partialTextY=0;for(var r=0;r<N;r++)n.on(F[r]+p,n._setTextData);return n._setTextData(),n}return r(e,t),e.prototype._sceneFunc=function(t){var e,n=this.padding(),r=this.fontSize(),i=this.lineHeight()*r,o=this.textArr,a=o.length,s=this.verticalAlign(),c=0,h=this.align(),u=this.getWidth(),l=this.letterSpacing(),p=this.fill(),g=this.textDecoration(),v=-1!==g.indexOf("underline"),m=-1!==g.indexOf("line-through"),_=0,b=(_=i/2,0),S=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",x),t.setAttr("textAlign",y),s===x?c=(this.getHeight()-a*i-2*n)/2:s===w&&(c=this.getHeight()-a*i-2*n),t.translate(n,c+n),e=0;e<a;e++){b=0,S=0;var C,P,O,A=o[e],T=A.text,M=A.width,F=e!==a-1;if(t.save(),h===k?b+=u-M-2*n:h===f&&(b+=(u-M-2*n)/2),v&&(t.save(),t.beginPath(),t.moveTo(b,_+S+Math.round(r/2)),C=T.split(" ").length-1,P=0===C,O=h===d&&F&&!P?u-2*n:M,t.lineTo(b+Math.round(O),_+S+Math.round(r/2)),t.lineWidth=r/15,t.strokeStyle=p,t.stroke(),t.restore()),m&&(t.save(),t.beginPath(),t.moveTo(b,_+S),C=T.split(" ").length-1,P=0===C,O=h===d&&F&&!P?u-2*n:M,t.lineTo(b+Math.round(O),_+S),t.lineWidth=r/15,t.strokeStyle=p,t.stroke(),t.restore()),0!==l||h===d){C=T.split(" ").length-1;for(var N=0;N<T.length;N++){var L=T[N];" "===L&&e!==a-1&&h===d&&(b+=Math.floor((u-2*n-M)/C)),this._partialTextX=b,this._partialTextY=_+S,this._partialText=L,t.fillStrokeShape(this),b+=Math.round(this.measureSize(L).width)+l}}else this._partialTextX=b,this._partialTextY=_+S,this._partialText=T,t.fillStrokeShape(this);t.restore(),a>1&&(_+=i)}},e.prototype._hitFunc=function(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},e.prototype.setText=function(t){var e=o.Util._isString(t)?t:null===t||void 0===t?"":t+"";return this._setAttr(m,e),this},e.prototype.getWidth=function(){var t=this.attrs.width===l||void 0===this.attrs.width;return t?this.getTextWidth()+2*this.padding():this.attrs.width},e.prototype.getHeight=function(){var t=this.attrs.height===l||void 0===this.attrs.height;return t?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height},e.prototype.getTextWidth=function(){return this.textWidth},e.prototype.getTextHeight=function(){return o.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight},e.prototype.measureSize=function(t){var e,n=L(),r=this.fontSize();return n.save(),n.font=this._getContextFont(),e=n.measureText(t),n.restore(),{width:e.width,height:r}},e.prototype._getContextFont=function(){return c.Konva.UA.isIE?this.fontStyle()+P+this.fontSize()+C+this.fontFamily():this.fontStyle()+P+this.fontVariant()+P+this.fontSize()+C+this.fontFamily()},e.prototype._addTextLine=function(t){this.align()===d&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e})},e.prototype._getTextWidth=function(t){var e=this.letterSpacing(),n=t.length;return L().measureText(t).width+(n?e*(n-1):0)},e.prototype._setTextData=function(){var t=this.text().split("\n"),e=+this.fontSize(),n=0,r=this.lineHeight()*e,i=this.attrs.width,o=this.attrs.height,a=i!==l&&void 0!==i,s=o!==l&&void 0!==o,c=this.padding(),h=i-2*c,u=o-2*c,f=0,d=this.wrap(),p=d!==T,g=d!==A&&p,y=this.ellipsis()&&!p;this.textArr=[],L().font=this._getContextFont();for(var m=y?this._getTextWidth(M):0,_=0,b=t.length;_<b;++_){var w=t[_],x=this._getTextWidth(w);if(a&&x>h)while(w.length>0){var S=0,C=w.length,k="",O=0;while(S<C){var F=S+C>>>1,N=w.slice(0,F+1),D=this._getTextWidth(N)+m;D<=h?(S=F+1,k=N+(y?M:""),O=D):C=F}if(!k)break;if(g){var E,I=w[k.length],j=I===P||I===v;E=j&&O<=h?k.length:Math.max(k.lastIndexOf(P),k.lastIndexOf(v))+1,E>0&&(S=E,k=k.slice(0,S),O=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,O),f+=r,!p||s&&f+r>u)break;if(w=w.slice(S),w=w.trimLeft(),w.length>0&&(x=this._getTextWidth(w),x<=h)){this._addTextLine(w),f+=r,n=Math.max(n,x);break}}else this._addTextLine(w),f+=r,n=Math.max(n,x);if(s&&f+r>u)break}this.textHeight=e,this.textWidth=n},e.prototype.getStrokeScaleEnabled=function(){return!0},e}(s.Shape);e.Text=j,j.prototype._fillFunc=D,j.prototype._strokeFunc=E,j.prototype.className=_,j.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight"],u._registerNode(j),a.Factory.overWriteSetter(j,"width",h.getNumberOrAutoValidator()),a.Factory.overWriteSetter(j,"height",h.getNumberOrAutoValidator()),a.Factory.addGetterSetter(j,"fontFamily","Arial"),a.Factory.addGetterSetter(j,"fontSize",12,h.getNumberValidator()),a.Factory.addGetterSetter(j,"fontStyle",S),a.Factory.addGetterSetter(j,"fontVariant",S),a.Factory.addGetterSetter(j,"padding",0,h.getNumberValidator()),a.Factory.addGetterSetter(j,"align",y),a.Factory.addGetterSetter(j,"verticalAlign",b),a.Factory.addGetterSetter(j,"lineHeight",1,h.getNumberValidator()),a.Factory.addGetterSetter(j,"wrap",O),a.Factory.addGetterSetter(j,"ellipsis",!1),a.Factory.addGetterSetter(j,"letterSpacing",0,h.getNumberValidator()),a.Factory.addGetterSetter(j,"text","",h.getStringValidator()),a.Factory.addGetterSetter(j,"textDecoration",""),o.Collection.mapMethods(j)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("159b"),n("dbb4");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5d5a":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("d777"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.cornerRadius(),n=this.width(),r=this.height();if(t.beginPath(),e){var i=0,o=0,a=0,s=0;"number"===typeof e?i=o=a=s=Math.min(e,n/2,r/2):(i=Math.min(e[0],n/2,r/2),o=Math.min(e[1],n/2,r/2),s=Math.min(e[2],n/2,r/2),a=Math.min(e[3],n/2,r/2)),t.moveTo(i,0),t.lineTo(n-o,0),t.arc(n-o,o,o,3*Math.PI/2,0,!1),t.lineTo(n,r-s),t.arc(n-s,r-s,s,0,Math.PI/2,!1),t.lineTo(a,r),t.arc(a,r-a,a,Math.PI/2,Math.PI,!1),t.lineTo(0,i),t.arc(i,i,i,Math.PI,3*Math.PI/2,!1)}else t.rect(0,0,n,r);t.closePath(),t.fillStrokeShape(this)},e}(a.Shape);e.Rect=c,c.prototype.className="Rect",s._registerNode(c),o.Factory.addGetterSetter(c,"cornerRadius",0),i.Collection.mapMethods(c)},"605d":function(t,e,n){var r=n("c6b6"),i=n("da84");t.exports="process"==r(i.process)},6069:function(t,e){t.exports="object"==typeof window},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),c=n("7b0b"),h=n("44ad"),u=Object.assign,l=Object.defineProperty;t.exports=!u||i((function(){if(r&&1!==u({b:1},u(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||o(u({},e)).join("")!=i}))?function(t,e){var n=c(t),i=arguments.length,u=1,l=a.f,f=s.f;while(i>u){var d,p=h(arguments[u++]),g=l?o(p).concat(l(p)):o(p),v=g.length,y=0;while(v>y)d=g[y++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:u},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,a,s=String(i(e)),c=r(n),h=s.length;return c<0||c>=h?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===h||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),s=n("da84"),c=n("861d"),h=n("9112"),u=n("5135"),l=n("c6cd"),f=n("f772"),d=n("d012"),p="Object already initialized",g=s.WeakMap,v=function(t){return o(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a||l.state){var m=l.state||(l.state=new g),_=m.get,b=m.has,w=m.set;r=function(t,e){if(b.call(m,t))throw new TypeError(p);return e.facade=t,w.call(m,t,e),e},i=function(t){return _.call(m,t)||{}},o=function(t){return b.call(m,t)}}else{var x=f("state");d[x]=!0,r=function(t,e){if(u(t,x))throw new TypeError(p);return e.facade=t,h(t,x,e),e},i=function(t){return u(t,x)?t[x]:{}},o=function(t){return u(t,x)}}t.exports={set:r,get:i,has:o,enforce:v,getterFor:y}},"6b7e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Brighten=function(t){var e,n=255*this.brightness(),r=t.data,i=r.length;for(e=0;e<i;e+=4)r[e]+=n,r[e+1]+=n,r[e+2]+=n},r.Factory.addGetterSetter(i.Node,"brightness",0,o.getNumberValidator(),r.Factory.afterSetFilter)},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),c=n("69f3"),h=c.get,u=c.enforce,l=String(String).split("String");(t.exports=function(t,e,n,s){var c,h=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),c=u(n),c.source||(c.source=l.join("string"==typeof e?e:""))),t!==r?(h?!d&&t[e]&&(f=!0):delete t[e],f?t[e]=n:i(t,e,n)):f?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&h(this).source||s(this)}))},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},7591:function(t,e,n){
|
||
/*!
|
||
* vue-konva v2.1.7 - https://github.com/konvajs/vue-konva#readme
|
||
* MIT Licensed
|
||
*/
|
||
(function(e,r){t.exports=r(n("2b0e"),n("362d"))})(0,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){t.exports=n(3)},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r);function o(t){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}var a={key:!0,style:!0,elm:!0,isRootInsert:!0},s=".vue-konva-event";function c(t,e,n,r){void 0===e&&(e={}),void 0===n&&(n={});var i=t._konvaNode,c={},h=!1;for(var u in n)if(!a[u]){var l="on"===u.slice(0,2),f=n[u]!==e[u];if(l&&f){var d=u.substr(2).toLowerCase();"content"===d.substr(0,7)&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),i.off(d+s,n[u])}var p=!e.hasOwnProperty(u);p&&i.setAttr(u,void 0)}for(var g in e)if(!a[g]){var v="on"===g.slice(0,2),y=n[g]!==e[g];if(v&&y){var m=g.substr(2).toLowerCase();"content"===m.substr(0,7)&&(m="content"+m.substr(7,1).toUpperCase()+m.substr(8)),e[g]&&(i.off(m+s),i.on(m+s,e[g]))}!v&&(e[g]!==n[g]||r&&e[g]!==i.getAttr(g))&&(h=!0,c[g]=e[g])}h&&(i.setAttrs(c),o(i))}var h="v",u="_konvaNode";function l(t){var e={};return Object.keys(t).forEach((function(n){e["on"+n]=t[n]})),e}function f(t){function e(t){return t._konvaNode?t:t.$parent?e(t.$parent):{}}return e(t.$parent)}function d(t){return t?t.$options[u]?t.getNode():0===t.$children.length?null:d(t.$children[0]):null}function p(t,e){var n=!1,r=t.componentOptions.children||[],i=[];r.forEach((function(t){var e=d(t.componentInstance);e&&i.push(e);var n=t.elm,r=t.componentInstance;if(n&&n.tagName&&r&&!e){var o=n&&n.tagName.toLowerCase();console.error('vue-konva error: You are trying to render "'+o+'" inside your component tree. Looks like it is not a Konva node. You can render only Konva components inside the Stage.')}})),i.forEach((function(t,e){t.getZIndex()!==e&&(t.setZIndex(e),n=!0)})),n&&o(e)}function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g.apply(this,arguments)}var v=i.a.component("v-stage",{render:function(t){return t("div",this.$slots.default)},watch:{config:{handler:function(t){this.uploadKonva()},deep:!0}},props:{config:{type:Object,default:function(){return{}}},__useStrictMode:{type:Boolean}},created:function(){this._konvaNode=new window.Konva.Stage({width:this.config.width,height:this.config.height,container:document.createElement("div")})},mounted:function(){this.$el.innerHTML="",this._konvaNode.container(this.$el),this.uploadKonva(),this.validateChildren()},updated:function(){this.uploadKonva(),this.uploadKonva(),p(this.$vnode,this._konvaNode)},beforeDestroy:function(){this._konvaNode.destroy()},methods:{getNode:function(){return this._konvaNode},getStage:function(){return this._konvaNode},uploadKonva:function(){var t=this.oldProps||{},e=g({},this.$attrs,this.config,l(this.$listeners));c(this,e,t,this.__useStrictMode),this.oldProps=e},validateChildren:function(){}}});function y(){return y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y.apply(this,arguments)}var m=".vue-konva-event",_={Group:!0,Layer:!0,FastLayer:!0,Label:!0},b=function(t){var e;return e={},e[u]=!0,e.render=function(e){var n=_[t];return n?e("template",this.$slots.default):null},e.watch={config:{handler:function(t){this.uploadKonva()},deep:!0}},e.props={config:{type:Object,default:function(){return{}}},__useStrictMode:{type:Boolean}},e.created=function(){this.initKonva()},e.mounted=function(){var t=f(this),e=t._konvaNode;e.add(this._konvaNode),o(this._konvaNode)},e.updated=function(){this.uploadKonva(),p(this.$vnode,this._konvaNode)},e.destroyed=function(){o(this._konvaNode),this._konvaNode.destroy(),this._konvaNode.off(m)},e.methods={getNode:function(){return this._konvaNode},getStage:function(){return this._konvaNode},initKonva:function(){var e=window.Konva[t];e?(this._konvaNode=new e,this._konvaNode.VueComponent=this,this.uploadKonva()):console.error("vue-konva error: Can not find node "+t)},uploadKonva:function(){var t=this.oldProps||{},e=y({},this.$attrs,this.config,l(this.$listeners));c(this,e,t,this.__useStrictMode),this.oldProps=e}},e};"undefined"===typeof window||window.Konva||n(2);var w=["Layer","FastLayer","Group","Label","Rect","Circle","Ellipse","Wedge","Line","Sprite","Image","Text","TextPath","Star","Ring","Arc","Tag","Path","RegularPolygon","Arrow","Shape","Transformer"],x=[{name:"Stage",component:v}].concat(w.map((function(t){return{name:t,component:b(t)}}))),S={install:function(t,e){var n=h;e&&e.prefix&&(n=e.prefix),x.forEach((function(e){t.component(""+n+e.name,e.component)}))}};e["default"]=S;"undefined"!==typeof window&&window.Vue&&window.Vue.use(S)}])["default"]}))},"769d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sepia=function(t){var e,n,r,i,o=t.data,a=o.length;for(e=0;e<a;e+=4)n=o[e+0],r=o[e+1],i=o[e+2],o[e+0]=Math.min(255,.393*n+.769*r+.189*i),o[e+1]=Math.min(255,.349*n+.686*r+.168*i),o[e+2]=Math.min(255,.272*n+.534*r+.131*i)}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),h=n("cc12"),u=n("f772"),l=">",f="<",d="prototype",p="script",g=u("IE_PROTO"),v=function(){},y=function(t){return f+p+l+t+f+"/"+p+l},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=h("iframe"),n="java"+p+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?m(r):_();var t=a.length;while(t--)delete b[d][a[t]];return b()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[d]=i(t),n=new v,v[d]=null,n[g]=t):n=b(),void 0===e?n:o(n,e)}},"7cc1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Solarize=function(t){var e=t.data,n=t.width,r=t.height,i=4*n,o=r;do{var a=(o-1)*i,s=n;do{var c=a+4*(s-1),h=e[c],u=e[c+1],l=e[c+2];h>127&&(h=255-h),u>127&&(u=255-u),l>127&&(l=255-l),e[c]=h,e[c+1]=u,e[c+2]=l}while(--s)}while(--o)}},"7d2a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=new Map,o=void 0!==r.Konva._global["PointerEvent"];function a(t){return i.get(t)}function s(t){return{evt:t,pointerId:t.pointerId}}function c(t,e){return i.get(t)===e}function h(t,e){u(t);var n=e.getStage();n&&(i.set(t,e),o&&e._fire("gotpointercapture",s(new PointerEvent("gotpointercapture"))))}function u(t,e){var n=i.get(t);if(n){var r=n.getStage();r&&r.content,i.delete(t),o&&n._fire("lostpointercapture",s(new PointerEvent("lostpointercapture")))}}e.getCapturedShape=a,e.createEvent=s,e.hasPointerCapture=c,e.setPointerCapture=h,e.releaseCapture=u},"7db0":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),c=n("9112"),h=n("6eeb"),u=n("b622"),l=n("c430"),f=n("3f8c"),d=n("ae93"),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,v=u("iterator"),y="keys",m="values",_="entries",b=function(){return this};t.exports=function(t,e,n,u,d,w,x){i(n,e,u);var S,C,P,k=function(t){if(t===d&&F)return F;if(!g&&t in T)return T[t];switch(t){case y:return function(){return new n(this,t)};case m:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",A=!1,T=t.prototype,M=T[v]||T["@@iterator"]||d&&T[d],F=!g&&M||k(d),N="Array"==e&&T.entries||M;if(N&&(S=o(N.call(new t)),p!==Object.prototype&&S.next&&(l||o(S)===p||(a?a(S,p):"function"!=typeof S[v]&&c(S,v,b)),s(S,O,!0,!0),l&&(f[O]=b))),d==m&&M&&M.name!==m&&(A=!0,F=function(){return M.call(this)}),l&&!x||T[v]===F||c(T,v,F),f[e]=F,d)if(C={values:k(m),keys:w?F:k(y),entries:k(_)},x)for(P in C)(g||A||!(P in T))&&h(T,P,C[P]);else r({target:e,proto:!0,forced:g||A},C);return C}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"81d5":function(t,e,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("50c4");t.exports=function(t){var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,h=void 0===c?n:i(c,n);while(h>s)e[s++]=t;return e}},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"857a":function(t,e,n){var r=n("1d80"),i=/"/g;t.exports=function(t,e,n,o){var a=String(r(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,""")+'"'),s+">"+a+"</"+e+">"}},8603:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("d777"),c=n("4546"),h=n("d777"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=s.Konva.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,n),t.arc(0,0,this.innerRadius(),e,0,!n),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(a.Shape);e.Arc=u,u.prototype._centroid=!0,u.prototype.className="Arc",u.prototype._attrsAffectingSize=["innerRadius","outerRadius"],h._registerNode(u),o.Factory.addGetterSetter(u,"innerRadius",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"outerRadius",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"angle",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"clockwise",!1,c.getBooleanValidator()),i.Collection.mapMethods(u)},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"89c1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Invert=function(t){var e,n=t.data,r=n.length;for(e=0;e<r;e+=4)n[e]=255-n[e],n[e+1]=255-n[e+1],n[e+2]=255-n[e+2]}},"8c18":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("d777"),c=function(t){function e(n){var r=t.call(this,n)||this;r.dataArray=[],r.pathLength=0,r.dataArray=e.parsePathData(r.data()),r.pathLength=0;for(var i=0;i<r.dataArray.length;++i)r.pathLength+=r.dataArray[i].pathLength;return r.on("dataChange.konva",(function(){this.dataArray=e.parsePathData(this.data()),this.pathLength=0;for(var t=0;t<this.dataArray.length;++t)this.pathLength+=this.dataArray[t].pathLength})),r}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.dataArray;t.beginPath();for(var n=!1,r=0;r<e.length;r++){var i=e[r].command,o=e[r].points;switch(i){case"L":t.lineTo(o[0],o[1]);break;case"M":t.moveTo(o[0],o[1]);break;case"C":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"Q":t.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case"A":var a=o[0],s=o[1],c=o[2],h=o[3],u=o[4],l=o[5],f=o[6],d=o[7],p=c>h?c:h,g=c>h?1:c/h,v=c>h?h/c:1;t.translate(a,s),t.rotate(f),t.scale(g,v),t.arc(0,0,p,u,u+l,1-d),t.scale(1/g,1/v),t.rotate(-f),t.translate(-a,-s);break;case"z":n=!0,t.closePath();break}}n||this.hasFill()?t.fillStrokeShape(this):t.strokeShape(this)},e.prototype.getSelfRect=function(){var t=[];this.dataArray.forEach((function(n){if("A"===n.command){var r=n.points[4],i=n.points[5],o=n.points[4]+i,a=Math.PI/180;if(Math.abs(r-o)<a&&(a=Math.abs(r-o)),i<0)for(var s=r-a;s>o;s-=a){var c=e.getPointOnEllipticalArc(n.points[0],n.points[1],n.points[2],n.points[3],s,0);t.push(c.x,c.y)}else for(s=r+a;s<o;s+=a){c=e.getPointOnEllipticalArc(n.points[0],n.points[1],n.points[2],n.points[3],s,0);t.push(c.x,c.y)}}else if("C"===n.command)for(s=0;s<=1;s+=.01){c=e.getPointOnCubicBezier(s,n.start.x,n.start.y,n.points[0],n.points[1],n.points[2],n.points[3],n.points[4],n.points[5]);t.push(c.x,c.y)}else t=t.concat(n.points)}));for(var n,r,i=t[0],o=t[0],a=t[1],s=t[1],c=0;c<t.length/2;c++)n=t[2*c],r=t[2*c+1],isNaN(n)||(i=Math.min(i,n),o=Math.max(o,n)),isNaN(r)||(a=Math.min(a,r),s=Math.max(s,r));return{x:Math.round(i),y:Math.round(a),width:Math.round(o-i),height:Math.round(s-a)}},e.prototype.getLength=function(){return this.pathLength},e.prototype.getPointAtLength=function(t){var n,r=0,i=this.dataArray.length;if(!i)return null;while(r<i&&t>this.dataArray[r].pathLength)t-=this.dataArray[r].pathLength,++r;if(r===i)return n=this.dataArray[r-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=this.dataArray[r].points.slice(0,2),{x:n[0],y:n[1]};var o=this.dataArray[r],a=o.points;switch(o.command){case"L":return e.getPointOnLine(t,o.start.x,o.start.y,a[0],a[1]);case"C":return e.getPointOnCubicBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return e.getPointOnQuadraticBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3]);case"A":var s=a[0],c=a[1],h=a[2],u=a[3],l=a[4],f=a[5],d=a[6];return l+=f*t/o.pathLength,e.getPointOnEllipticalArc(s,c,h,u,l,d)}return null},e.getLineLength=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},e.getPointOnLine=function(t,e,n,r,i,o,a){void 0===o&&(o=e),void 0===a&&(a=n);var s=(i-n)/(r-e+1e-8),c=Math.sqrt(t*t/(1+s*s));r<e&&(c*=-1);var h,u=s*c;if(r===e)h={x:o,y:a+u};else if((a-n)/(o-e+1e-8)===s)h={x:o+c,y:a+u};else{var l,f,d=this.getLineLength(e,n,r,i);if(d<1e-8)return;var p=(o-e)*(r-e)+(a-n)*(i-n);p/=d*d,l=e+p*(r-e),f=n+p*(i-n);var g=this.getLineLength(o,a,l,f),v=Math.sqrt(t*t-g*g);c=Math.sqrt(v*v/(1+s*s)),r<e&&(c*=-1),u=s*c,h={x:l+c,y:f+u}}return h},e.getPointOnCubicBezier=function(t,e,n,r,i,o,a,s,c){function h(t){return t*t*t}function u(t){return 3*t*t*(1-t)}function l(t){return 3*t*(1-t)*(1-t)}function f(t){return(1-t)*(1-t)*(1-t)}var d=s*h(t)+o*u(t)+r*l(t)+e*f(t),p=c*h(t)+a*u(t)+i*l(t)+n*f(t);return{x:d,y:p}},e.getPointOnQuadraticBezier=function(t,e,n,r,i,o,a){function s(t){return t*t}function c(t){return 2*t*(1-t)}function h(t){return(1-t)*(1-t)}var u=o*s(t)+r*c(t)+e*h(t),l=a*s(t)+i*c(t)+n*h(t);return{x:u,y:l}},e.getPointOnEllipticalArc=function(t,e,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:t+(c.x*a-c.y*s),y:e+(c.x*s+c.y*a)}},e.parsePathData=function(t){if(!t)return[];var e=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var r=0;r<n.length;r++)e=e.replace(new RegExp(n[r],"g"),"|"+n[r]);var i,o=e.split("|"),a=[],s=[],c=0,h=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(r=1;r<o.length;r++){var l=o[r],f=l.charAt(0);l=l.slice(1),s.length=0;while(i=u.exec(l))s.push(i[0]);for(var d=[],p=0,g=s.length;p<g;p++){var v=parseFloat(s[p]);isNaN(v)?d.push(0):d.push(v)}while(d.length>0){if(isNaN(d[0]))break;var y,m,_,b,w,x,S,C,P,k,O=null,A=[],T=c,M=h;switch(f){case"l":c+=d.shift(),h+=d.shift(),O="L",A.push(c,h);break;case"L":c=d.shift(),h=d.shift(),A.push(c,h);break;case"m":var F=d.shift(),N=d.shift();if(c+=F,h+=N,O="M",a.length>2&&"z"===a[a.length-1].command)for(var L=a.length-2;L>=0;L--)if("M"===a[L].command){c=a[L].points[0]+F,h=a[L].points[1]+N;break}A.push(c,h),f="l";break;case"M":c=d.shift(),h=d.shift(),O="M",A.push(c,h),f="L";break;case"h":c+=d.shift(),O="L",A.push(c,h);break;case"H":c=d.shift(),O="L",A.push(c,h);break;case"v":h+=d.shift(),O="L",A.push(c,h);break;case"V":h=d.shift(),O="L",A.push(c,h);break;case"C":A.push(d.shift(),d.shift(),d.shift(),d.shift()),c=d.shift(),h=d.shift(),A.push(c,h);break;case"c":A.push(c+d.shift(),h+d.shift(),c+d.shift(),h+d.shift()),c+=d.shift(),h+=d.shift(),O="C",A.push(c,h);break;case"S":m=c,_=h,y=a[a.length-1],"C"===y.command&&(m=c+(c-y.points[2]),_=h+(h-y.points[3])),A.push(m,_,d.shift(),d.shift()),c=d.shift(),h=d.shift(),O="C",A.push(c,h);break;case"s":m=c,_=h,y=a[a.length-1],"C"===y.command&&(m=c+(c-y.points[2]),_=h+(h-y.points[3])),A.push(m,_,c+d.shift(),h+d.shift()),c+=d.shift(),h+=d.shift(),O="C",A.push(c,h);break;case"Q":A.push(d.shift(),d.shift()),c=d.shift(),h=d.shift(),A.push(c,h);break;case"q":A.push(c+d.shift(),h+d.shift()),c+=d.shift(),h+=d.shift(),O="Q",A.push(c,h);break;case"T":m=c,_=h,y=a[a.length-1],"Q"===y.command&&(m=c+(c-y.points[0]),_=h+(h-y.points[1])),c=d.shift(),h=d.shift(),O="Q",A.push(m,_,c,h);break;case"t":m=c,_=h,y=a[a.length-1],"Q"===y.command&&(m=c+(c-y.points[0]),_=h+(h-y.points[1])),c+=d.shift(),h+=d.shift(),O="Q",A.push(m,_,c,h);break;case"A":b=d.shift(),w=d.shift(),x=d.shift(),S=d.shift(),C=d.shift(),P=c,k=h,c=d.shift(),h=d.shift(),O="A",A=this.convertEndpointToCenterParameterization(P,k,c,h,S,C,b,w,x);break;case"a":b=d.shift(),w=d.shift(),x=d.shift(),S=d.shift(),C=d.shift(),P=c,k=h,c+=d.shift(),h+=d.shift(),O="A",A=this.convertEndpointToCenterParameterization(P,k,c,h,S,C,b,w,x);break}a.push({command:O||f,points:A,start:{x:T,y:M},pathLength:this.calcLength(T,M,O||f,A)})}"z"!==f&&"Z"!==f||a.push({command:"z",points:[],start:void 0,pathLength:0})}return a},e.calcLength=function(t,n,r,i){var o,a,s,c,h=e;switch(r){case"L":return h.getLineLength(t,n,i[0],i[1]);case"C":for(o=0,a=h.getPointOnCubicBezier(0,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),c=.01;c<=1;c+=.01)s=h.getPointOnCubicBezier(c,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),o+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return o;case"Q":for(o=0,a=h.getPointOnQuadraticBezier(0,t,n,i[0],i[1],i[2],i[3]),c=.01;c<=1;c+=.01)s=h.getPointOnQuadraticBezier(c,t,n,i[0],i[1],i[2],i[3]),o+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return o;case"A":o=0;var u=i[4],l=i[5],f=i[4]+l,d=Math.PI/180;if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),a=h.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),l<0)for(c=u-d;c>f;c-=d)s=h.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(c=u+d;c<f;c+=d)s=h.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=h.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),o+=h.getLineLength(a.x,a.y,s.x,s.y),o}return 0},e.convertEndpointToCenterParameterization=function(t,e,n,r,i,o,a,s,c){var h=c*(Math.PI/180),u=Math.cos(h)*(t-n)/2+Math.sin(h)*(e-r)/2,l=-1*Math.sin(h)*(t-n)/2+Math.cos(h)*(e-r)/2,f=u*u/(a*a)+l*l/(s*s);f>1&&(a*=Math.sqrt(f),s*=Math.sqrt(f));var d=Math.sqrt((a*a*(s*s)-a*a*(l*l)-s*s*(u*u))/(a*a*(l*l)+s*s*(u*u)));i===o&&(d*=-1),isNaN(d)&&(d=0);var p=d*a*l/s,g=d*-s*u/a,v=(t+n)/2+Math.cos(h)*p-Math.sin(h)*g,y=(e+r)/2+Math.sin(h)*p+Math.cos(h)*g,m=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},_=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(m(t)*m(e))},b=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(_(t,e))},w=b([1,0],[(u-p)/a,(l-g)/s]),x=[(u-p)/a,(l-g)/s],S=[(-1*u-p)/a,(-1*l-g)/s],C=b(x,S);return _(x,S)<=-1&&(C=Math.PI),_(x,S)>=1&&(C=0),0===o&&C>0&&(C-=2*Math.PI),1===o&&C<0&&(C+=2*Math.PI),[v,y,a,s,w,C,h,o]},e}(a.Shape);e.Path=c,c.prototype.className="Path",c.prototype._attrsAffectingSize=["data"],s._registerNode(c),o.Factory.addGetterSetter(c,"data"),i.Collection.mapMethods(c)},"8e84":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.RGB=function(t){var e,n,r=t.data,i=r.length,o=this.red(),a=this.green(),s=this.blue();for(e=0;e<i;e+=4)n=(.34*r[e]+.5*r[e+1]+.16*r[e+2])/255,r[e]=n*o,r[e+1]=n*a,r[e+2]=n*s,r[e+3]=r[e+3]},r.Factory.addGetterSetter(i.Node,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),r.Factory.addGetterSetter(i.Node,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),r.Factory.addGetterSetter(i.Node,"blue",0,o.RGBComponent,r.Factory.afterSetFilter)},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"926b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");r.Factory.addGetterSetter(i.Node,"hue",0,o.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"saturation",0,o.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"luminance",0,o.getNumberValidator(),r.Factory.afterSetFilter),e.HSL=function(t){var e,n,r,i,o,a=t.data,s=a.length,c=1,h=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,l=127*this.luminance(),f=c*h*Math.cos(u*Math.PI/180),d=c*h*Math.sin(u*Math.PI/180),p=.299*c+.701*f+.167*d,g=.587*c-.587*f+.33*d,v=.114*c-.114*f-.497*d,y=.299*c-.299*f-.328*d,m=.587*c+.413*f+.035*d,_=.114*c-.114*f+.293*d,b=.299*c-.3*f+1.25*d,w=.587*c-.586*f-1.05*d,x=.114*c+.886*f-.2*d;for(e=0;e<s;e+=4)n=a[e+0],r=a[e+1],i=a[e+2],o=a[e+3],a[e+0]=p*n+g*r+v*i+l,a[e+1]=y*n+m*r+_*i+l,a[e+2]=b*n+w*r+x*i+l,a[e+3]=o}},9470:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");function a(t,e,n){var r=4*(n*t.width+e),i=[];return i.push(t.data[r++],t.data[r++],t.data[r++],t.data[r++]),i}function s(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function c(t){for(var e=[0,0,0],n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function h(t,e){var n=a(t,0,0),r=a(t,t.width-1,0),i=a(t,0,t.height-1),o=a(t,t.width-1,t.height-1),h=e||10;if(s(n,r)<h&&s(r,o)<h&&s(o,i)<h&&s(i,n)<h){for(var u=c([r,n,o,i]),l=[],f=0;f<t.width*t.height;f++){var d=s(u,[t.data[4*f],t.data[4*f+1],t.data[4*f+2]]);l[f]=d<h?0:255}return l}}function u(t,e){for(var n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function l(t,e,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var h=s*e+c,u=0,l=0;l<i;l++)for(var f=0;f<i;f++){var d=s+l-o,p=c+f-o;if(d>=0&&d<n&&p>=0&&p<e){var g=d*e+p,v=r[l*i+f];u+=t[g]*v}}a[h]=2040===u?255:0}return a}function f(t,e,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var h=s*e+c,u=0,l=0;l<i;l++)for(var f=0;f<i;f++){var d=s+l-o,p=c+f-o;if(d>=0&&d<n&&p>=0&&p<e){var g=d*e+p,v=r[l*i+f];u+=t[g]*v}}a[h]=u>=1020?255:0}return a}function d(t,e,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var h=s*e+c,u=0,l=0;l<i;l++)for(var f=0;f<i;f++){var d=s+l-o,p=c+f-o;if(d>=0&&d<n&&p>=0&&p<e){var g=d*e+p,v=r[l*i+f];u+=t[g]*v}}a[h]=u}return a}e.Mask=function(t){var e=this.threshold(),n=h(t,e);return n&&(n=l(n,t.width,t.height),n=f(n,t.width,t.height),n=d(n,t.width,t.height),u(t,n)),t},r.Factory.addGetterSetter(i.Node,"threshold",0,o.getNumberValidator(),r.Factory.afterSetFilter)},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==h||n!=c&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",h=o.POLYFILL="P";t.exports=o},"94ed":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return u})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return p}));var r="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,6A2,2 0 0,0 10,8A2,2 0 0,0 12,10A2,2 0 0,0 14,8A2,2 0 0,0 12,6M12,13C14.67,13 20,14.33 20,17V20H4V17C4,14.33 9.33,13 12,13M12,14.9C9.03,14.9 5.9,16.36 5.9,17V18.1H18.1V17C18.1,16.36 14.97,14.9 12,14.9Z",i="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",o="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",a="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",s="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z",c="M15.5,14H14.71L14.43,13.73C15.41,12.59 16,11.11 16,9.5A6.5,6.5 0 0,0 9.5,3A6.5,6.5 0 0,0 3,9.5A6.5,6.5 0 0,0 9.5,16C11.11,16 12.59,15.41 13.73,14.43L14,14.71V15.5L19,20.5L20.5,19L15.5,14M9.5,14C7,14 5,12 5,9.5C5,7 7,5 9.5,5C12,5 14,7 14,9.5C14,12 12,14 9.5,14M7,9H12V10H7V9Z",h="M15.5,14L20.5,19L19,20.5L14,15.5V14.71L13.73,14.43C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.43,13.73L14.71,14H15.5M9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14M12,10H10V12H9V10H7V9H9V7H10V9H12V10Z",u="M11,19A6,6 0 0,0 17,13H19A8,8 0 0,1 11,21A8,8 0 0,1 3,13A8,8 0 0,1 11,5V7A6,6 0 0,0 5,13A6,6 0 0,0 11,19M19,5H22V7H19V10H17V7H14V5H17V2H19V5Z",l="M17,15.7V13H19V17L10,21L3,14L7,5H11V7H8.3L5.4,13.6L10.4,18.6L17,15.7M22,5V7H19V10H17V7H14V5H17V2H19V5H22Z",f="M19,5H22V7H19V10H17V7H14V5H17V2H19V5M17,19V13H19V21H3V5H11V7H5V19H17Z",d="M5,3C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19H5V5H12V3H5M17.78,4C17.61,4 17.43,4.07 17.3,4.2L16.08,5.41L18.58,7.91L19.8,6.7C20.06,6.44 20.06,6 19.8,5.75L18.25,4.2C18.12,4.07 17.95,4 17.78,4M15.37,6.12L8,13.5V16H10.5L17.87,8.62L15.37,6.12Z",p="M3,3H21V21H3V3M5,5V19H19V5H5Z"},"96ee":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("d777"),c=n("4546"),h=n("d777"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.radius(),0,s.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius(t/2)},e.prototype.setHeight=function(t){this.radius(t/2)},e}(a.Shape);e.Wedge=u,u.prototype.className="Wedge",u.prototype._centroid=!0,u.prototype._attrsAffectingSize=["radius"],h._registerNode(u),o.Factory.addGetterSetter(u,"radius",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"angle",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"clockwise",!1),o.Factory.backCompat(u,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),i.Collection.mapMethods(u)},9911:function(t,e,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("link")},{link:function(t){return i(this,"a","href",t)}})},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9cb8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=function(){function t(){}return t.toCollection=function(e){var n,r=new t,i=e.length;for(n=0;n<i;n++)r.push(e[n]);return r},t._mapMethod=function(e){t.prototype[e]=function(){var t,n=this.length,r=[].slice.call(arguments);for(t=0;t<n;t++)this[t][e].apply(this[t],r);return this}},t.mapMethods=function(e){var n=e.prototype;for(var r in n)t._mapMethod(r)},t}();e.Collection=i,i.prototype=[],i.prototype.each=function(t){for(var e=0;e<this.length;e++)t(this[e],e)},i.prototype.toArray=function(){var t,e=[],n=this.length;for(t=0;t<n;t++)e.push(this[t]);return e};var o=function(){function t(t){void 0===t&&(t=[1,0,0,1,0,0]),this.m=t&&t.slice()||[1,0,0,1,0,0]}return t.prototype.copy=function(){return new t(this.m)},t.prototype.point=function(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}},t.prototype.translate=function(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this},t.prototype.scale=function(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),n=Math.sin(t),r=this.m[0]*e+this.m[2]*n,i=this.m[1]*e+this.m[3]*n,o=this.m[0]*-n+this.m[2]*e,a=this.m[1]*-n+this.m[3]*e;return this.m[0]=r,this.m[1]=i,this.m[2]=o,this.m[3]=a,this},t.prototype.getTranslation=function(){return{x:this.m[4],y:this.m[5]}},t.prototype.skew=function(t,e){var n=this.m[0]+this.m[2]*e,r=this.m[1]+this.m[3]*e,i=this.m[2]+this.m[0]*t,o=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=o,this},t.prototype.multiply=function(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],r=this.m[0]*t.m[2]+this.m[2]*t.m[3],i=this.m[1]*t.m[2]+this.m[3]*t.m[3],o=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],a=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this},t.prototype.invert=function(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,r=-this.m[2]*t,i=this.m[0]*t,o=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this},t.prototype.getMatrix=function(){return this.m},t.prototype.setAbsolutePosition=function(t,e){var n=this.m[0],r=this.m[1],i=this.m[2],o=this.m[3],a=this.m[4],s=this.m[5],c=(n*(e-s)-r*(t-a))/(n*o-r*i),h=(t-a-i*c)/n;return this.translate(h,c)},t.prototype.decompose=function(){var t=this.m[0],n=this.m[1],r=this.m[2],i=this.m[3],o=this.m[4],a=this.m[5],s=t*i-n*r,c={x:o,y:a,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=t||0!=n){var h=Math.sqrt(t*t+n*n);c.rotation=n>0?Math.acos(t/h):-Math.acos(t/h),c.scaleX=h,c.scaleY=s/h,c.skewX=Math.atan((t*r+n*i)/(h*h)),c.skewY=0}else if(0!=r||0!=i){var u=Math.sqrt(r*r+i*i);c.rotation=Math.PI/2-(i>0?Math.acos(-r/u):-Math.acos(r/u)),c.scaleX=s/u,c.scaleY=u,c.skewX=0,c.skewY=Math.atan((t*r+n*i)/(u*u))}return c.rotation=e.Util._getRotation(c.rotation),c},t}();e.Transform=o;var a="[object Array]",s="[object Number]",c="[object String]",h="[object Boolean]",u=Math.PI/180,l=180/Math.PI,f="#",d="",p="0",g="Konva warning: ",v="Konva error: ",y="rgb(",m={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},_=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,b=[];e.Util={_isElement:function(t){return!(!t||1!=t.nodeType)},_isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject:function(t){return!!t&&t.constructor===Object},_isArray:function(t){return Object.prototype.toString.call(t)===a},_isNumber:function(t){return Object.prototype.toString.call(t)===s&&!isNaN(t)&&isFinite(t)},_isString:function(t){return Object.prototype.toString.call(t)===c},_isBoolean:function(t){return Object.prototype.toString.call(t)===h},isObject:function(t){return t instanceof Object},isValidSelector:function(t){if("string"!==typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign:function(t){return 0===t?0:t>0?1:-1},requestAnimFrame:function(t){b.push(t),1===b.length&&requestAnimationFrame((function(){var t=b;b=[],t.forEach((function(t){t()}))}))},createCanvasElement:function(){var t=document.createElement("canvas");try{t.style=t.style||{}}catch(e){}return t},createImageElement:function(){return document.createElement("img")},_isInDocument:function(t){while(t=t.parentNode)if(t==document)return!0;return!1},_simplifyArray:function(t){var n,r,i=[],o=t.length,a=e.Util;for(n=0;n<o;n++)r=t[n],a._isNumber(r)?r=Math.round(1e3*r)/1e3:a._isString(r)||(r=r.toString()),i.push(r);return i},_urlToImage:function(t,e){var n=new r.glob.Image;n.onload=function(){e(n)},n.src=t},_rgbToHex:function(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb:function(t){t=t.replace(f,d);var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor:function(){var t=(16777215*Math.random()<<0).toString(16);while(t.length<6)t=p+t;return f+t},get:function(t,e){return void 0===t?e:t},getRGB:function(t){var e;return t in m?(e=m[t],{r:e[0],g:e[1],b:e[2]}):t[0]===f?this._hexToRgb(t.substring(1)):t.substr(0,4)===y?(e=_.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(t){return t=t||"black",e.Util._namedColorToRBA(t)||e.Util._hex3ColorToRGBA(t)||e.Util._hex6ColorToRGBA(t)||e.Util._rgbColorToRGBA(t)||e.Util._rgbaColorToRGBA(t)||e.Util._hslColorToRGBA(t)},_namedColorToRBA:function(t){var e=m[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA:function(t){if(0===t.indexOf("rgb(")){t=t.match(/rgb\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA:function(t){if(0===t.indexOf("rgba(")){t=t.match(/rgba\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA:function(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA:function(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){var e=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),n=(e[0],e.slice(1)),r=Number(n[0])/360,i=Number(n[1])/100,o=Number(n[2])/100,a=void 0,s=void 0,c=void 0;if(0===i)return c=255*o,{r:Math.round(c),g:Math.round(c),b:Math.round(c),a:1};a=o<.5?o*(1+i):o+i-o*i;for(var h=2*o-a,u=[0,0,0],l=0;l<3;l++)s=r+1/3*-(l-1),s<0&&s++,s>1&&s--,c=6*s<1?h+6*(a-h)*s:2*s<1?a:3*s<2?h+(a-h)*(2/3-s)*6:h,u[l]=255*c;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection:function(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject:function(t){var e={};for(var n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray:function(t){return t.slice(0)},_degToRad:function(t){return t*u},_radToDeg:function(t){return t*l},_getRotation:function(t){return r.Konva.angleDeg?e.Util._radToDeg(t):t},_capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw:function(t){throw new Error(v+t)},error:function(t){console.error(v+t)},warn:function(t){r.Konva.showWarnings&&console.warn(g+t)},extend:function(t,e){function n(){this.constructor=t}n.prototype=e.prototype;var r=t.prototype;for(var i in t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.__super__=e.prototype,t.super=e},_getControlPoints:function(t,e,n,r,i,o,a){var s=Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2)),c=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),h=a*s/(s+c),u=a*c/(s+c),l=n-h*(i-t),f=r-h*(o-e),d=n+u*(i-t),p=r+u*(o-e);return[l,f,d,p]},_expandPoints:function(t,n){var r,i,o=t.length,a=[];for(r=2;r<o-2;r+=2)i=e.Util._getControlPoints(t[r-2],t[r-1],t[r],t[r+1],t[r+2],t[r+3],n),a.push(i[0]),a.push(i[1]),a.push(t[r]),a.push(t[r+1]),a.push(i[2]),a.push(i[3]);return a},each:function(t,e){for(var n in t)e(n,t[n])},_inRange:function(t,e,n){return e<=t&&t<n},_getProjectionToSegment:function(t,e,n,r,i,o){var a,s,c,h=(t-n)*(t-n)+(e-r)*(e-r);if(0==h)a=t,s=e,c=(i-n)*(i-n)+(o-r)*(o-r);else{var u=((i-t)*(n-t)+(o-e)*(r-e))/h;u<0?(a=t,s=e,c=(t-i)*(t-i)+(e-o)*(e-o)):u>1?(a=n,s=r,c=(n-i)*(n-i)+(r-o)*(r-o)):(a=t+u*(n-t),s=e+u*(r-e),c=(a-i)*(a-i)+(s-o)*(s-o))}return[a,s,c]},_getProjectionToLine:function(t,n,r){var i=e.Util.cloneObject(t),o=Number.MAX_VALUE;return n.forEach((function(a,s){if(r||s!==n.length-1){var c=n[(s+1)%n.length],h=e.Util._getProjectionToSegment(a.x,a.y,c.x,c.y,t.x,t.y),u=h[0],l=h[1],f=h[2];f<o&&(i.x=u,i.y=l,o=f)}})),i},_prepareArrayForTween:function(t,n,r){var i,o=[],a=[];if(t.length>n.length){var s=n;n=t,t=s}for(i=0;i<t.length;i+=2)o.push({x:t[i],y:t[i+1]});for(i=0;i<n.length;i+=2)a.push({x:n[i],y:n[i+1]});var c=[];return a.forEach((function(t){var n=e.Util._getProjectionToLine(t,o,r);c.push(n.x),c.push(n.y)})),c},_prepareToStringify:function(t){var n;for(var r in t.visitedByCircularReferenceRemoval=!0,t)if(t.hasOwnProperty(r)&&t[r]&&"object"==typeof t[r])if(n=Object.getOwnPropertyDescriptor(t,r),t[r].visitedByCircularReferenceRemoval||e.Util._isElement(t[r])){if(!n.configurable)return null;delete t[r]}else if(null===e.Util._prepareToStringify(t[r])){if(!n.configurable)return null;delete t[r]}return delete t.visitedByCircularReferenceRemoval,t},_assign:function(t,e){for(var n in e)t[n]=e[n];return t},_getFirstPointerId:function(t){return t.touches?t.changedTouches[0].identifier:999}}},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),c=function(){return this};t.exports=function(t,e,n){var h=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,h,!1,!0),s[h]=c,t}},a34e:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("ed3d"),c=n("4546"),h=n("d777"),u=function(t){function e(e){var n=t.call(this,e)||this;return n._updated=!0,n.anim=new s.Animation((function(){var t=n._updated;return n._updated=!1,t})),n.on("animationChange.konva",(function(){this.frameIndex(0)})),n.on("frameIndexChange.konva",(function(){this._updated=!0})),n.on("frameRateChange.konva",(function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})),n}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[e],o=this.frameOffsets(),a=i[r+0],s=i[r+1],c=i[r+2],h=i[r+3],u=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,c,h),t.closePath(),t.fillStrokeShape(this)),u)if(o){var l=o[e],f=2*n;t.drawImage(u,a,s,c,h,l[f+0],l[f+1],c,h)}else t.drawImage(u,a,s,c,h,0,0,c,h)},e.prototype._hitFunc=function(t){var e=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[e],o=this.frameOffsets(),a=i[r+2],s=i[r+3];if(t.beginPath(),o){var c=o[e],h=2*n;t.rect(c[h+0],c[h+1],a,s)}else t.rect(0,0,a,s);t.closePath(),t.fillShape(this)},e.prototype._useBufferCanvas=function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()},e.prototype._setInterval=function(){var t=this;this.interval=setInterval((function(){t._updateIndex()}),1e3/this.frameRate())},e.prototype.start=function(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}},e.prototype.stop=function(){this.anim.stop(),clearInterval(this.interval)},e.prototype.isRunning=function(){return this.anim.isRunning()},e.prototype._updateIndex=function(){var t=this.frameIndex(),e=this.animation(),n=this.animations(),r=n[e],i=r.length/4;t<i-1?this.frameIndex(t+1):this.frameIndex(0)},e}(a.Shape);e.Sprite=u,u.prototype.className="Sprite",h._registerNode(u),o.Factory.addGetterSetter(u,"animation"),o.Factory.addGetterSetter(u,"animations"),o.Factory.addGetterSetter(u,"frameOffsets"),o.Factory.addGetterSetter(u,"image"),o.Factory.addGetterSetter(u,"frameIndex",0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"frameRate",17,c.getNumberValidator()),o.Factory.backCompat(u,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),i.Collection.mapMethods(u)},a434:function(t,e,n){"use strict";var r=n("23e7"),i=n("23cb"),o=n("a691"),a=n("50c4"),s=n("7b0b"),c=n("65f0"),h=n("8418"),u=n("1dde"),l=u("splice"),f=Math.max,d=Math.min,p=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(t,e){var n,r,u,l,v,y,m=s(this),_=a(m.length),b=i(t,_),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=_-b):(n=w-2,r=d(f(o(e),0),_-b)),_+n-r>p)throw TypeError(g);for(u=c(m,r),l=0;l<r;l++)v=b+l,v in m&&h(u,l,m[v]);if(u.length=r,n<r){for(l=b;l<_-r;l++)v=l+r,y=l+n,v in m?m[y]=m[v]:delete m[y];for(l=_;l>_-r+n;l--)delete m[l-1]}else if(n>r)for(l=_-r;l>b;l--)v=l+r-1,y=l+n-1,v in m?m[y]=m[v]:delete m[y];for(l=0;l<n;l++)m[l+b]=arguments[l+2];return m.length=_-r+n,u}})},a4b4:function(t,e,n){var r=n("342f");t.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),c=n("4930"),h=n("fdbf"),u=n("d039"),l=n("5135"),f=n("e8b5"),d=n("861d"),p=n("825a"),g=n("7b0b"),v=n("fc6a"),y=n("c04e"),m=n("5c6c"),_=n("7c73"),b=n("df75"),w=n("241c"),x=n("057f"),S=n("7418"),C=n("06cf"),P=n("9bf2"),k=n("d1e7"),O=n("9112"),A=n("6eeb"),T=n("5692"),M=n("f772"),F=n("d012"),N=n("90e3"),L=n("b622"),D=n("e538"),E=n("746f"),I=n("d44e"),j=n("69f3"),G=n("b727").forEach,R=M("hidden"),$="Symbol",U="prototype",V=L("toPrimitive"),H=j.set,B=j.getterFor($),W=Object[U],z=i.Symbol,K=o("JSON","stringify"),Y=C.f,X=P.f,q=x.f,Z=k.f,J=T("symbols"),Q=T("op-symbols"),tt=T("string-to-symbol-registry"),et=T("symbol-to-string-registry"),nt=T("wks"),rt=i.QObject,it=!rt||!rt[U]||!rt[U].findChild,ot=s&&u((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=J[t]=_(z[U]);return H(n,{type:$,tag:t,description:e}),s||(n.description=e),n},st=h?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof z},ct=function(t,e,n){t===W&&ct(Q,e,n),p(t);var r=y(e,!0);return p(n),l(J,r)?(n.enumerable?(l(t,R)&&t[R][r]&&(t[R][r]=!1),n=_(n,{enumerable:m(0,!1)})):(l(t,R)||X(t,R,m(1,{})),t[R][r]=!0),ot(t,r,n)):X(t,r,n)},ht=function(t,e){p(t);var n=v(e),r=b(n).concat(pt(n));return G(r,(function(e){s&&!lt.call(n,e)||ct(t,e,n[e])})),t},ut=function(t,e){return void 0===e?_(t):ht(_(t),e)},lt=function(t){var e=y(t,!0),n=Z.call(this,e);return!(this===W&&l(J,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(J,e)||l(this,R)&&this[R][e])||n)},ft=function(t,e){var n=v(t),r=y(e,!0);if(n!==W||!l(J,r)||l(Q,r)){var i=Y(n,r);return!i||!l(J,r)||l(n,R)&&n[R][r]||(i.enumerable=!0),i}},dt=function(t){var e=q(v(t)),n=[];return G(e,(function(t){l(J,t)||l(F,t)||n.push(t)})),n},pt=function(t){var e=t===W,n=q(e?Q:v(t)),r=[];return G(n,(function(t){!l(J,t)||e&&!l(W,t)||r.push(J[t])})),r};if(c||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=N(t),n=function(t){this===W&&n.call(Q,t),l(this,R)&&l(this[R],e)&&(this[R][e]=!1),ot(this,e,m(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(z[U],"toString",(function(){return B(this).tag})),A(z,"withoutSetter",(function(t){return at(N(t),t)})),k.f=lt,P.f=ct,C.f=ft,w.f=x.f=dt,S.f=pt,D.f=function(t){return at(L(t),t)},s&&(X(z[U],"description",{configurable:!0,get:function(){return B(this).description}}),a||A(W,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),G(b(nt),(function(t){E(t)})),r({target:$,stat:!0,forced:!c},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var n=z(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:ut,defineProperty:ct,defineProperties:ht,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt,getOwnPropertySymbols:pt}),r({target:"Object",stat:!0,forced:u((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(g(t))}}),K){var gt=!c||u((function(){var t=z();return"[null]"!=K([t])||"{}"!=K({a:t})||"{}"!=K(Object(t))}));r({target:"JSON",stat:!0,forced:gt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(d(e)||void 0!==t)&&!st(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,K.apply(null,i)}})}z[U][V]||O(z[U],V,z[U].valueOf),I(z,$),F[R]=!0},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),c=n("4840"),h=n("cdf9"),u=n("6eeb"),l=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(t){var e=c(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return h(e,t()).then((function(){return n}))}:t,n?function(n){return h(e,t()).then((function(){throw n}))}:t)}}),!i&&"function"==typeof o){var f=s("Promise").prototype["finally"];o.prototype["finally"]!==f&&u(o.prototype,"finally",f,{unsafe:!0})}},a925:function(t,e,n){"use strict";
|
||
/*!
|
||
* vue-i18n v8.24.4
|
||
* (c) 2021 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/var r=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function i(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function o(t,e){"undefined"!==typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var a=Array.isArray;function s(t){return null!==t&&"object"===typeof t}function c(t){return"boolean"===typeof t}function h(t){return"string"===typeof t}var u=Object.prototype.toString,l="[object Object]";function f(t){return u.call(t)===l}function d(t){return null===t||void 0===t}function p(t){return"function"===typeof t}function g(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var n=null,r=null;return 1===t.length?s(t[0])||a(t[0])?r=t[0]:"string"===typeof t[0]&&(n=t[0]):2===t.length&&("string"===typeof t[0]&&(n=t[0]),(s(t[1])||a(t[1]))&&(r=t[1])),{locale:n,params:r}}function v(t){return JSON.parse(JSON.stringify(t))}function y(t,e){if(t.delete(e))return t}function m(t,e){return!!~t.indexOf(e)}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){for(var e=arguments,n=Object(t),r=1;r<arguments.length;r++){var i=e[r];if(void 0!==i&&null!==i){var o=void 0;for(o in i)b(i,o)&&(s(i[o])?n[o]=w(n[o],i[o]):n[o]=i[o])}}return n}function x(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=a(t),o=a(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return x(t,e[n])}));if(i||o)return!1;var c=Object.keys(t),h=Object.keys(e);return c.length===h.length&&c.every((function(n){return x(t[n],e[n])}))}catch(u){return!1}}function S(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function C(t){return null!=t&&Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e]=S(t[e]))})),t}function P(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[t,r.locale,r._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}var k={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n)if(t.i18n instanceof Ct){if(t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){e=w(e,JSON.parse(t))})),Object.keys(e).forEach((function(n){t.i18n.mergeLocaleMessage(n,e[n])}))}catch(a){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(t.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ct?this.$root.$i18n:null;if(n&&(t.i18n.root=this.$root,t.i18n.formatter=n.formatter,t.i18n.fallbackLocale=n.fallbackLocale,t.i18n.formatFallbackMessages=n.formatFallbackMessages,t.i18n.silentTranslationWarn=n.silentTranslationWarn,t.i18n.silentFallbackWarn=n.silentFallbackWarn,t.i18n.pluralizationRules=n.pluralizationRules,t.i18n.preserveDirectiveContent=n.preserveDirectiveContent),t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){r=w(r,JSON.parse(t))})),t.i18n.messages=r}catch(a){0}var i=t.i18n,o=i.sharedMessages;o&&f(o)&&(t.i18n.messages=w(t.i18n.messages,o)),this._i18n=new Ct(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ct?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Ct&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?(t.i18n instanceof Ct||f(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ct||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Ct)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:function(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)},beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick((function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}},O={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,r=e.parent,i=e.props,o=e.slots,a=r.$i18n;if(a){var s=i.path,c=i.locale,h=i.places,u=o(),l=a.i(s,c,A(u)||h?T(u.default,h):u),f=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return f?t(f,n,l):l}}};function A(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}function T(t,e){var n=e?M(e):{};if(!t)return n;t=t.filter((function(t){return t.tag||""!==t.text.trim()}));var r=t.every(L);return t.reduce(r?F:N,n)}function M(t){return Array.isArray(t)?t.reduce(N,{}):Object.assign({},t)}function F(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function N(t,e,n){return t[n]=e,t}function L(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var D,E={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,i=e.parent,o=e.data,a=i.$i18n;if(!a)return null;var c=null,u=null;h(n.format)?c=n.format:s(n.format)&&(n.format.key&&(c=n.format.key),u=Object.keys(n.format).reduce((function(t,e){var i;return m(r,e)?Object.assign({},t,(i={},i[e]=n.format[e],i)):t}),null));var l=n.locale||a.locale,f=a._ntp(n.value,l,c,u),d=f.map((function(t,e){var n,r=o.scopedSlots&&o.scopedSlots[t.type];return r?r((n={},n[t.type]=t.value,n.index=e,n.parts=f,n)):t.value})),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?t(p,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},d):d}};function I(t,e,n){R(t,n)&&U(t,e,n)}function j(t,e,n,r){if(R(t,n)){var i=n.context.$i18n;$(t,n)&&x(e.value,e.oldValue)&&x(t._localeMessage,i.getLocaleMessage(i.locale))||U(t,e,n)}}function G(t,e,n,r){var o=n.context;if(o){var a=n.context.$i18n||{};e.modifiers.preserve||a.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t["_vt"],t._locale=void 0,delete t["_locale"],t._localeMessage=void 0,delete t["_localeMessage"]}else i("Vue instance does not exists in VNode context")}function R(t,e){var n=e.context;return n?!!n.$i18n||(i("VueI18n instance does not exists in Vue instance"),!1):(i("Vue instance does not exists in VNode context"),!1)}function $(t,e){var n=e.context;return t._locale===n.$i18n.locale}function U(t,e,n){var r,o,a=e.value,s=V(a),c=s.path,h=s.locale,u=s.args,l=s.choice;if(c||h||u)if(c){var f=n.context;t._vt=t.textContent=null!=l?(r=f.$i18n).tc.apply(r,[c,l].concat(H(h,u))):(o=f.$i18n).t.apply(o,[c].concat(H(h,u))),t._locale=f.$i18n.locale,t._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}else i("`path` is required in v-t directive");else i("value type not supported")}function V(t){var e,n,r,i;return h(t)?e=t:f(t)&&(e=t.path,n=t.locale,r=t.args,i=t.choice),{path:e,locale:n,args:r,choice:i}}function H(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||f(e))&&n.push(e),n}function B(t){B.installed=!0,D=t;D.version&&Number(D.version.split(".")[0]);P(D),D.mixin(k),D.directive("t",{bind:I,update:j,unbind:G}),D.component(O.name,O),D.component(E.name,E);var e=D.config.optionMergeStrategies;e.i18n=function(t,e){return void 0===e?t:e}}var W=function(){this._caches=Object.create(null)};W.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=Y(t),this._caches[t]=n),X(n,e)};var z=/^(?:\d)+/,K=/^(?:\w)+/;function Y(t){var e=[],n=0,r="";while(n<t.length){var i=t[n++];if("{"===i){r&&e.push({type:"text",value:r}),r="";var o="";i=t[n++];while(void 0!==i&&"}"!==i)o+=i,i=t[n++];var a="}"===i,s=z.test(o)?"list":a&&K.test(o)?"named":"unknown";e.push({value:o,type:s})}else"%"===i?"{"!==t[n]&&(r+=i):r+=i}return r&&e.push({type:"text",value:r}),e}function X(t,e){var n=[],r=0,i=Array.isArray(e)?"list":s(e)?"named":"unknown";if("unknown"===i)return n;while(r<t.length){var o=t[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(e[o.value]);break;case"unknown":0;break}r++}return n}var q=0,Z=1,J=2,Q=3,tt=0,et=1,nt=2,rt=3,it=4,ot=5,at=6,st=7,ct=8,ht=[];ht[tt]={ws:[tt],ident:[rt,q],"[":[it],eof:[st]},ht[et]={ws:[et],".":[nt],"[":[it],eof:[st]},ht[nt]={ws:[nt],ident:[rt,q],0:[rt,q],number:[rt,q]},ht[rt]={ident:[rt,q],0:[rt,q],number:[rt,q],ws:[et,Z],".":[nt,Z],"[":[it,Z],eof:[st,Z]},ht[it]={"'":[ot,q],'"':[at,q],"[":[it,J],"]":[et,Q],eof:ct,else:[it,q]},ht[ot]={"'":[it,q],eof:ct,else:[ot,q]},ht[at]={'"':[it,q],eof:ct,else:[at,q]};var ut=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function lt(t){return ut.test(t)}function ft(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?t:t.slice(1,-1)}function dt(t){if(void 0===t||null===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function pt(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(lt(e)?ft(e):"*"+e)}function gt(t){var e,n,r,i,o,a,s,c=[],h=-1,u=tt,l=0,f=[];function d(){var e=t[h+1];if(u===ot&&"'"===e||u===at&&'"'===e)return h++,r="\\"+e,f[q](),!0}f[Z]=function(){void 0!==n&&(c.push(n),n=void 0)},f[q]=function(){void 0===n?n=r:n+=r},f[J]=function(){f[q](),l++},f[Q]=function(){if(l>0)l--,u=it,f[q]();else{if(l=0,void 0===n)return!1;if(n=pt(n),!1===n)return!1;f[Z]()}};while(null!==u)if(h++,e=t[h],"\\"!==e||!d()){if(i=dt(e),s=ht[u],o=s[i]||s["else"]||ct,o===ct)return;if(u=o[0],a=f[o[1]],a&&(r=o[2],r=void 0===r?e:r,!1===a()))return;if(u===st)return c}}var vt=function(){this._cache=Object.create(null)};vt.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=gt(t),e&&(this._cache[t]=e)),e||[]},vt.prototype.getPathValue=function(t,e){if(!s(t))return null;var n=this.parsePath(e);if(0===n.length)return null;var r=n.length,i=t,o=0;while(o<r){var a=i[n[o]];if(void 0===a||null===a)return null;i=a,o++}return i};var yt,mt=/<\/?[\w\s="/.':;#-\/]+>/,_t=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,bt=/^@(?:\.([a-z]+))?:/,wt=/[()]/g,xt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},St=new W,Ct=function(t){var e=this;void 0===t&&(t={}),!D&&"undefined"!==typeof window&&window.Vue&&B(window.Vue);var n=t.locale||"en-US",r=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),i=t.messages||{},o=t.dateTimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||St,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new vt,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,this.getChoiceIndex=function(t,n){var r=Object.getPrototypeOf(e);if(r&&r.getChoiceIndex){var i=r.getChoiceIndex;return i.call(e,t,n)}var o=function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):o(t,n)},this._exist=function(t,n){return!(!t||!n)&&(!d(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])})),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:o,numberFormats:a})},Pt={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};Ct.prototype._checkLocaleMessage=function(t,e,n){var r=[],s=function(t,e,n,r){if(f(n))Object.keys(n).forEach((function(i){var o=n[i];f(o)?(r.push(i),r.push("."),s(t,e,o,r),r.pop(),r.pop()):(r.push(i),s(t,e,o,r),r.pop())}));else if(a(n))n.forEach((function(n,i){f(n)?(r.push("["+i+"]"),r.push("."),s(t,e,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),s(t,e,n,r),r.pop())}));else if(h(n)){var c=mt.test(n);if(c){var u="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?i(u):"error"===t&&o(u)}}};s(e,t,n,r)},Ct.prototype._initVM=function(t){var e=D.config.silent;D.config.silent=!0,this._vm=new D({data:t}),D.config.silent=e},Ct.prototype.destroyVM=function(){this._vm.$destroy()},Ct.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},Ct.prototype.unsubscribeDataChanging=function(t){y(this._dataListeners,t)},Ct.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",(function(){t._dataListeners.forEach((function(t){D.nextTick((function(){t&&t.$forceUpdate()}))}))}),{deep:!0})},Ct.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){t.$set(t,"locale",e),t.$forceUpdate()}),{immediate:!0})},Ct.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},Pt.vm.get=function(){return this._vm},Pt.messages.get=function(){return v(this._getMessages())},Pt.dateTimeFormats.get=function(){return v(this._getDateTimeFormats())},Pt.numberFormats.get=function(){return v(this._getNumberFormats())},Pt.availableLocales.get=function(){return Object.keys(this.messages).sort()},Pt.locale.get=function(){return this._vm.locale},Pt.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},Pt.fallbackLocale.get=function(){return this._vm.fallbackLocale},Pt.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},Pt.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Pt.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},Pt.missing.get=function(){return this._missing},Pt.missing.set=function(t){this._missing=t},Pt.formatter.get=function(){return this._formatter},Pt.formatter.set=function(t){this._formatter=t},Pt.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Pt.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},Pt.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Pt.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},Pt.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Pt.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},Pt.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Pt.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var r=this._getMessages();Object.keys(r).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])}))}},Pt.postTranslation.get=function(){return this._postTranslation},Pt.postTranslation.set=function(t){this._postTranslation=t},Ct.prototype._getMessages=function(){return this._vm.messages},Ct.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Ct.prototype._getNumberFormats=function(){return this._vm.numberFormats},Ct.prototype._warnDefault=function(t,e,n,r,i,o){if(!d(n))return n;if(this._missing){var a=this._missing.apply(null,[t,e,r,i]);if(h(a))return a}else 0;if(this._formatFallbackMessages){var s=g.apply(void 0,i);return this._render(e,o,s.params,e)}return e},Ct.prototype._isFallbackRoot=function(t){return!t&&!d(this._root)&&this._fallbackRoot},Ct.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},Ct.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},Ct.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},Ct.prototype._interpolate=function(t,e,n,r,i,o,s){if(!e)return null;var c,u=this._path.getPathValue(e,n);if(a(u)||f(u))return u;if(d(u)){if(!f(e))return null;if(c=e[n],!h(c)&&!p(c))return null}else{if(!h(u)&&!p(u))return null;c=u}return h(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(t,e,c,r,"raw",o,s)),this._render(c,i,o,n)},Ct.prototype._link=function(t,e,n,r,i,o,s){var c=n,h=c.match(_t);for(var u in h)if(h.hasOwnProperty(u)){var l=h[u],f=l.match(bt),d=f[0],p=f[1],g=l.replace(d,"").replace(wt,"");if(m(s,g))return c;s.push(g);var v=this._interpolate(t,e,g,r,"raw"===i?"string":i,"raw"===i?void 0:o,s);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var y=this._root.$i18n;v=y._translate(y._getMessages(),y.locale,y.fallbackLocale,g,r,i,o)}v=this._warnDefault(t,g,v,r,a(o)?o:[o],i),this._modifiers.hasOwnProperty(p)?v=this._modifiers[p](v):xt.hasOwnProperty(p)&&(v=xt[p](v)),s.pop(),c=v?c.replace(l,v):c}return c},Ct.prototype._createMessageContext=function(t){var e=a(t)?t:[],n=s(t)?t:{},r=function(t){return e[t]},i=function(t){return n[t]};return{list:r,named:i}},Ct.prototype._render=function(t,e,n,r){if(p(t))return t(this._createMessageContext(n));var i=this._formatter.interpolate(t,n,r);return i||(i=St.interpolate(t,n,r)),"string"!==e||h(i)?i:i.join("")},Ct.prototype._appendItemToChain=function(t,e,n){var r=!1;return m(t,e)||(r=!0,e&&(r="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(r=n[e]))),r},Ct.prototype._appendLocaleToChain=function(t,e,n){var r,i=e.split("-");do{var o=i.join("-");r=this._appendItemToChain(t,o,n),i.splice(-1,1)}while(i.length&&!0===r);return r},Ct.prototype._appendBlockToChain=function(t,e,n){for(var r=!0,i=0;i<e.length&&c(r);i++){var o=e[i];h(o)&&(r=this._appendLocaleToChain(t,o,n))}return r},Ct.prototype._getLocaleChain=function(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[t];if(!n){e||(e=this.fallbackLocale),n=[];var r,i=[t];while(a(i))i=this._appendBlockToChain(n,i,e);r=a(e)?e:s(e)?e["default"]?e["default"]:null:e,i=h(r)?[r]:r,i&&this._appendBlockToChain(n,i,null),this._localeChainCache[t]=n}return n},Ct.prototype._translate=function(t,e,n,r,i,o,a){for(var s,c=this._getLocaleChain(e,n),h=0;h<c.length;h++){var u=c[h];if(s=this._interpolate(u,t[u],r,i,o,a,[r]),!d(s))return s}return null},Ct.prototype._t=function(t,e,n,r){var i,o=[],a=arguments.length-4;while(a-- >0)o[a]=arguments[a+4];if(!t)return"";var s=g.apply(void 0,o);this._escapeParameterHtml&&(s.params=C(s.params));var c=s.locale||e,h=this._translate(n,c,this.fallbackLocale,t,r,"string",s.params);if(this._isFallbackRoot(h)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[t].concat(o))}return h=this._warnDefault(c,t,h,r,o,"string"),this._postTranslation&&null!==h&&void 0!==h&&(h=this._postTranslation(h,t)),h},Ct.prototype.t=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},Ct.prototype._i=function(t,e,n,r,i){var o=this._translate(n,e,this.fallbackLocale,t,r,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)}return this._warnDefault(e,t,o,r,[i],"raw")},Ct.prototype.i=function(t,e,n){return t?(h(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},Ct.prototype._tc=function(t,e,n,r,i){var o,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!t)return"";void 0===i&&(i=1);var c={count:i,n:i},h=g.apply(void 0,a);return h.params=Object.assign(c,h.params),a=null===h.locale?[h.params]:[h.locale,h.params],this.fetchChoice((o=this)._t.apply(o,[t,e,n,r].concat(a)),i)},Ct.prototype.fetchChoice=function(t,e){if(!t||!h(t))return null;var n=t.split("|");return e=this.getChoiceIndex(e,n.length),n[e]?n[e].trim():t},Ct.prototype.tc=function(t,e){var n,r=[],i=arguments.length-2;while(i-- >0)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(r))},Ct.prototype._te=function(t,e,n){var r=[],i=arguments.length-3;while(i-- >0)r[i]=arguments[i+3];var o=g.apply(void 0,r).locale||e;return this._exist(n[o],t)},Ct.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},Ct.prototype.getLocaleMessage=function(t){return v(this._vm.messages[t]||{})},Ct.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},Ct.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,w("undefined"!==typeof this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?this._vm.messages[t]:{},e))},Ct.prototype.getDateTimeFormat=function(t){return v(this._vm.dateTimeFormats[t]||{})},Ct.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},Ct.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,w(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},Ct.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},Ct.prototype._localizeDateTime=function(t,e,n,r,i){for(var o=e,a=r[o],s=this._getLocaleChain(e,n),c=0;c<s.length;c++){var h=s[c];if(a=r[h],o=h,!d(a)&&!d(a[i]))break}if(d(a)||d(a[i]))return null;var u=a[i],l=o+"__"+i,f=this._dateTimeFormatters[l];return f||(f=this._dateTimeFormatters[l]=new Intl.DateTimeFormat(o,u)),f.format(t)},Ct.prototype._d=function(t,e,n){if(!n)return new Intl.DateTimeFormat(e).format(t);var r=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)}return r||""},Ct.prototype.d=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var r=this.locale,i=null;return 1===e.length?h(e[0])?i=e[0]:s(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(i=e[0].key)):2===e.length&&(h(e[0])&&(i=e[0]),h(e[1])&&(r=e[1])),this._d(t,r,i)},Ct.prototype.getNumberFormat=function(t){return v(this._vm.numberFormats[t]||{})},Ct.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},Ct.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,w(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},Ct.prototype._clearNumberFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},Ct.prototype._getNumberFormatter=function(t,e,n,r,i,o){for(var a=e,s=r[a],c=this._getLocaleChain(e,n),h=0;h<c.length;h++){var u=c[h];if(s=r[u],a=u,!d(s)&&!d(s[i]))break}if(d(s)||d(s[i]))return null;var l,f=s[i];if(o)l=new Intl.NumberFormat(a,Object.assign({},f,o));else{var p=a+"__"+i;l=this._numberFormatters[p],l||(l=this._numberFormatters[p]=new Intl.NumberFormat(a,f))}return l},Ct.prototype._n=function(t,e,n,r){if(!Ct.availabilities.numberFormat)return"";if(!n){var i=r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e);return i.format(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.format(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},r))}return a||""},Ct.prototype.n=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.locale,o=null,a=null;return 1===e.length?h(e[0])?o=e[0]:s(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(o=e[0].key),a=Object.keys(e[0]).reduce((function(t,n){var i;return m(r,n)?Object.assign({},t,(i={},i[n]=e[0][n],i)):t}),null)):2===e.length&&(h(e[0])&&(o=e[0]),h(e[1])&&(i=e[1])),this._n(t,i,o,a)},Ct.prototype._ntp=function(t,e,n,r){if(!Ct.availabilities.numberFormat)return[];if(!n){var i=r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e);return i.formatToParts(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.formatToParts(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,r)}return a||[]},Object.defineProperties(Ct.prototype,Pt),Object.defineProperty(Ct,"availabilities",{get:function(){if(!yt){var t="undefined"!==typeof Intl;yt={dateTimeFormat:t&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:t&&"undefined"!==typeof Intl.NumberFormat}}return yt}}),Ct.install=B,Ct.version="8.24.4",e["a"]=Ct},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("5135"),c=n("c6b6"),h=n("7156"),u=n("c04e"),l=n("d039"),f=n("7c73"),d=n("241c").f,p=n("06cf").f,g=n("9bf2").f,v=n("58a8").trim,y="Number",m=i[y],_=m.prototype,b=c(f(_))==y,w=function(t){var e,n,r,i,o,a,s,c,h=u(t,!1);if("string"==typeof h&&h.length>2)if(h=v(h),e=h.charCodeAt(0),43===e||45===e){if(n=h.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(h.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+h}for(o=h.slice(2),a=o.length,s=0;s<a;s++)if(c=o.charCodeAt(s),c<48||c>i)return NaN;return parseInt(o,r)}return+h};if(o(y,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var x,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(b?l((function(){_.valueOf.call(n)})):c(n)!=y)?h(new m(w(e)),n,S):w(e)},C=r?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),P=0;C.length>P;P++)s(m,x=C[P])&&!s(S,x)&&g(S,x,p(m,x));S.prototype=_,_.constructor=S,a(i,y,S)}},ae93:function(t,e,n){"use strict";var r,i,o,a=n("d039"),s=n("e163"),c=n("9112"),h=n("5135"),u=n("b622"),l=n("c430"),f=u("iterator"),d=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)),i!==Object.prototype&&(r=i)):d=!0);var g=void 0==r||a((function(){var t={};return r[f].call(t)!==t}));g&&(r={}),l&&!g||h(r,f)||c(r,f,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},af03:function(t,e,n){var r=n("d039");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,c="name";r&&!(c in o)&&i(o,c,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},b33b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.RGBA=function(t){var e,n,r=t.data,i=r.length,o=this.red(),a=this.green(),s=this.blue(),c=this.alpha();for(e=0;e<i;e+=4)n=1-c,r[e]=o*c+r[e]*n,r[e+1]=a*c+r[e+1]*n,r[e+2]=s*c+r[e+2]*n},r.Factory.addGetterSetter(i.Node,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),r.Factory.addGetterSetter(i.Node,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),r.Factory.addGetterSetter(i.Node,"blue",0,o.RGBComponent,r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"alpha",1,(function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t}))},b575:function(t,e,n){var r,i,o,a,s,c,h,u,l=n("da84"),f=n("06cf").f,d=n("2cf4").set,p=n("1cdc"),g=n("a4b4"),v=n("605d"),y=l.MutationObserver||l.WebKitMutationObserver,m=l.document,_=l.process,b=l.Promise,w=f(l,"queueMicrotask"),x=w&&w.value;x||(r=function(){var t,e;v&&(t=_.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},p||v||g||!y||!m?b&&b.resolve?(h=b.resolve(void 0),h.constructor=b,u=h.then,a=function(){u.call(h,r)}):a=v?function(){_.nextTick(r)}:function(){d.call(l,r)}:(s=!0,c=m.createTextNode(""),new y(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),c=n("fdbf"),h=i("wks"),u=r.Symbol,l=c?u:u&&u.withoutSetter||a;t.exports=function(t){return o(h,t)&&(s||"string"==typeof h[t])||(s&&o(u,t)?h[t]=u[t]:h[t]=l("Symbol."+t)),h[t]}},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(t){return o(i(t))}})},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),c=[].push,h=function(t){var e=1==t,n=2==t,h=3==t,u=4==t,l=6==t,f=7==t,d=5==t||l;return function(p,g,v,y){for(var m,_,b=o(p),w=i(b),x=r(g,v,3),S=a(w.length),C=0,P=y||s,k=e?P(p,S):n||f?P(p,0):void 0;S>C;C++)if((d||C in w)&&(m=w[C],_=x(m,C,b),t))if(e)k[C]=_;else if(_)switch(t){case 3:return!0;case 5:return m;case 6:return C;case 2:c.call(k,m)}else switch(t){case 4:return!1;case 7:c.call(k,m)}return l?-1:h||u?u:k}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterOut:h(7)}},bbce:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Noise=function(t){var e,n=255*this.noise(),r=t.data,i=r.length,o=n/2;for(e=0;e<i;e+=4)r[e+0]+=o-2*o*Math.random(),r[e+1]+=o-2*o*Math.random(),r[e+2]+=o-2*o*Math.random()},r.Factory.addGetterSetter(i.Node,"noise",.2,o.getNumberValidator(),r.Factory.afterSetFilter)},bcb1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");function a(t,e,n,r,i){var o,a=n-e,s=i-r;return 0===a?r+s/2:0===s?r:(o=(t-e)/a,o=s*o+r,o)}e.Enhance=function(t){var e,n,r,i,o=t.data,s=o.length,c=o[0],h=c,u=o[1],l=u,f=o[2],d=f,p=this.enhance();if(0!==p){for(i=0;i<s;i+=4)e=o[i+0],e<c?c=e:e>h&&(h=e),n=o[i+1],n<u?u=n:n>l&&(l=n),r=o[i+2],r<f?f=r:r>d&&(d=r);var g,v,y,m,_,b,w,x,S;for(h===c&&(h=255,c=0),l===u&&(l=255,u=0),d===f&&(d=255,f=0),p>0?(v=h+p*(255-h),y=c-p*(c-0),_=l+p*(255-l),b=u-p*(u-0),x=d+p*(255-d),S=f-p*(f-0)):(g=.5*(h+c),v=h+p*(h-g),y=c+p*(c-g),m=.5*(l+u),_=l+p*(l-m),b=u+p*(u-m),w=.5*(d+f),x=d+p*(d-w),S=f+p*(f-w)),i=0;i<s;i+=4)o[i+0]=a(o[i+0],c,h,y,v),o[i+1]=a(o[i+1],u,l,b,_),o[i+2]=a(o[i+2],f,d,S,x)}},r.Factory.addGetterSetter(i.Node,"enhance",0,o.getNumberValidator(),r.Factory.afterSetFilter)},bdee:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");function a(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var s=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],c=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function h(t,e){var n,r,i,o,h,u,l,f,d,p,g,v,y,m,_,b,w,x,S,C,P,k,O,A,T=t.data,M=t.width,F=t.height,N=e+e+1,L=M-1,D=F-1,E=e+1,I=E*(E+1)/2,j=new a,G=null,R=j,$=null,U=null,V=s[e],H=c[e];for(i=1;i<N;i++)R=R.next=new a,i===E&&(G=R);for(R.next=j,l=u=0,r=0;r<F;r++){for(b=w=x=S=f=d=p=g=0,v=E*(C=T[u]),y=E*(P=T[u+1]),m=E*(k=T[u+2]),_=E*(O=T[u+3]),f+=I*C,d+=I*P,p+=I*k,g+=I*O,R=j,i=0;i<E;i++)R.r=C,R.g=P,R.b=k,R.a=O,R=R.next;for(i=1;i<E;i++)o=u+((L<i?L:i)<<2),f+=(R.r=C=T[o])*(A=E-i),d+=(R.g=P=T[o+1])*A,p+=(R.b=k=T[o+2])*A,g+=(R.a=O=T[o+3])*A,b+=C,w+=P,x+=k,S+=O,R=R.next;for($=j,U=G,n=0;n<M;n++)T[u+3]=O=g*V>>H,0!==O?(O=255/O,T[u]=(f*V>>H)*O,T[u+1]=(d*V>>H)*O,T[u+2]=(p*V>>H)*O):T[u]=T[u+1]=T[u+2]=0,f-=v,d-=y,p-=m,g-=_,v-=$.r,y-=$.g,m-=$.b,_-=$.a,o=l+((o=n+e+1)<L?o:L)<<2,b+=$.r=T[o],w+=$.g=T[o+1],x+=$.b=T[o+2],S+=$.a=T[o+3],f+=b,d+=w,p+=x,g+=S,$=$.next,v+=C=U.r,y+=P=U.g,m+=k=U.b,_+=O=U.a,b-=C,w-=P,x-=k,S-=O,U=U.next,u+=4;l+=M}for(n=0;n<M;n++){for(w=x=S=b=d=p=g=f=0,u=n<<2,v=E*(C=T[u]),y=E*(P=T[u+1]),m=E*(k=T[u+2]),_=E*(O=T[u+3]),f+=I*C,d+=I*P,p+=I*k,g+=I*O,R=j,i=0;i<E;i++)R.r=C,R.g=P,R.b=k,R.a=O,R=R.next;for(h=M,i=1;i<=e;i++)u=h+n<<2,f+=(R.r=C=T[u])*(A=E-i),d+=(R.g=P=T[u+1])*A,p+=(R.b=k=T[u+2])*A,g+=(R.a=O=T[u+3])*A,b+=C,w+=P,x+=k,S+=O,R=R.next,i<D&&(h+=M);for(u=n,$=j,U=G,r=0;r<F;r++)o=u<<2,T[o+3]=O=g*V>>H,O>0?(O=255/O,T[o]=(f*V>>H)*O,T[o+1]=(d*V>>H)*O,T[o+2]=(p*V>>H)*O):T[o]=T[o+1]=T[o+2]=0,f-=v,d-=y,p-=m,g-=_,v-=$.r,y-=$.g,m-=$.b,_-=$.a,o=n+((o=r+E)<D?o:D)*M<<2,f+=b+=$.r=T[o],d+=w+=$.g=T[o+1],p+=x+=$.b=T[o+2],g+=S+=$.a=T[o+3],$=$.next,v+=C=U.r,y+=P=U.g,m+=k=U.b,_+=O=U.a,b-=C,w-=P,x-=k,S-=O,U=U.next,u+=M}}e.Blur=function(t){var e=Math.round(this.blurRadius());e>0&&h(t,e)},r.Factory.addGetterSetter(i.Node,"blurRadius",0,o.getNumberValidator(),r.Factory.afterSetFilter)},bf11:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=2*Math.PI,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,h,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),h,0,!0),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(a.Shape);e.Ring=u,u.prototype.className="Ring",u.prototype._centroid=!0,u.prototype._attrsAffectingSize=["innerRadius","outerRadius"],c._registerNode(u),o.Factory.addGetterSetter(u,"innerRadius",0,s.getNumberValidator()),o.Factory.addGetterSetter(u,"outerRadius",0,s.getNumberValidator()),i.Collection.mapMethods(u)},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c527:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("d777"),a=",",s="(",c=")",h="([",u="])",l=";",f="()",d="=",p=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],g=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"],v=100,y=function(){function t(t){this.canvas=t,this._context=t._canvas.getContext("2d"),o.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}return t.prototype.fillShape=function(t){t.fillEnabled()&&this._fill(t)},t.prototype._fill=function(t){},t.prototype.strokeShape=function(t){t.hasStroke()&&this._stroke(t)},t.prototype._stroke=function(t){},t.prototype.fillStrokeShape=function(t){this.fillShape(t),this.strokeShape(t)},t.prototype.getTrace=function(t){var e,n,r,o,p=this.traceArr,g=p.length,v="";for(e=0;e<g;e++)n=p[e],r=n.method,r?(o=n.args,v+=r,t?v+=f:i.Util._isArray(o[0])?v+=h+o.join(a)+u:v+=s+o.join(a)+c):(v+=n.property,t||(v+=d+n.val)),v+=l;return v},t.prototype.clearTrace=function(){this.traceArr=[]},t.prototype._trace=function(t){var e,n=this.traceArr;n.push(t),e=n.length,e>=v&&n.shift()},t.prototype.reset=function(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)},t.prototype.getCanvas=function(){return this.canvas},t.prototype.clear=function(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)},t.prototype._applyLineCap=function(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)},t.prototype._applyOpacity=function(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)},t.prototype._applyLineJoin=function(t){var e=t.getLineJoin();e&&this.setAttr("lineJoin",e)},t.prototype.setAttr=function(t,e){this._context[t]=e},t.prototype.arc=function(t,e,n,r,i,o){this._context.arc(t,e,n,r,i,o)},t.prototype.arcTo=function(t,e,n,r,i){this._context.arcTo(t,e,n,r,i)},t.prototype.beginPath=function(){this._context.beginPath()},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._context.bezierCurveTo(t,e,n,r,i,o)},t.prototype.clearRect=function(t,e,n,r){this._context.clearRect(t,e,n,r)},t.prototype.clip=function(){this._context.clip()},t.prototype.closePath=function(){this._context.closePath()},t.prototype.createImageData=function(t,e){var n=arguments;return 2===n.length?this._context.createImageData(t,e):1===n.length?this._context.createImageData(t):void 0},t.prototype.createLinearGradient=function(t,e,n,r){return this._context.createLinearGradient(t,e,n,r)},t.prototype.createPattern=function(t,e){return this._context.createPattern(t,e)},t.prototype.createRadialGradient=function(t,e,n,r,i,o){return this._context.createRadialGradient(t,e,n,r,i,o)},t.prototype.drawImage=function(t,e,n,r,i,o,a,s,c){var h=arguments,u=this._context;3===h.length?u.drawImage(t,e,n):5===h.length?u.drawImage(t,e,n,r,i):9===h.length&&u.drawImage(t,e,n,r,i,o,a,s,c)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){this._context.ellipse(t,e,n,r,i,o,a,s)},t.prototype.isPointInPath=function(t,e){return this._context.isPointInPath(t,e)},t.prototype.fill=function(){this._context.fill()},t.prototype.fillRect=function(t,e,n,r){this._context.fillRect(t,e,n,r)},t.prototype.strokeRect=function(t,e,n,r){this._context.strokeRect(t,e,n,r)},t.prototype.fillText=function(t,e,n){this._context.fillText(t,e,n)},t.prototype.measureText=function(t){return this._context.measureText(t)},t.prototype.getImageData=function(t,e,n,r){return this._context.getImageData(t,e,n,r)},t.prototype.lineTo=function(t,e){this._context.lineTo(t,e)},t.prototype.moveTo=function(t,e){this._context.moveTo(t,e)},t.prototype.rect=function(t,e,n,r){this._context.rect(t,e,n,r)},t.prototype.putImageData=function(t,e,n){this._context.putImageData(t,e,n)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._context.quadraticCurveTo(t,e,n,r)},t.prototype.restore=function(){this._context.restore()},t.prototype.rotate=function(t){this._context.rotate(t)},t.prototype.save=function(){this._context.save()},t.prototype.scale=function(t,e){this._context.scale(t,e)},t.prototype.setLineDash=function(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context["mozDash"]=t:"webkitLineDash"in this._context&&(this._context["webkitLineDash"]=t)},t.prototype.getLineDash=function(){return this._context.getLineDash()},t.prototype.setTransform=function(t,e,n,r,i,o){this._context.setTransform(t,e,n,r,i,o)},t.prototype.stroke=function(){this._context.stroke()},t.prototype.strokeText=function(t,e,n,r){this._context.strokeText(t,e,n,r)},t.prototype.transform=function(t,e,n,r,i,o){this._context.transform(t,e,n,r,i,o)},t.prototype.translate=function(t,e){this._context.translate(t,e)},t.prototype._enableTrace=function(){var t,e,n=this,r=p.length,o=i.Util._simplifyArray,a=this.setAttr,s=function(t){var r,i=n[t];n[t]=function(){return e=o(Array.prototype.slice.call(arguments,0)),r=i.apply(n,arguments),n._trace({method:t,args:e}),r}};for(t=0;t<r;t++)s(p[t]);n.setAttr=function(){a.apply(n,arguments);var t=arguments[0],e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),n._trace({property:t,val:e})}},t.prototype._applyGlobalCompositeOperation=function(t){var e=t.getGlobalCompositeOperation();"source-over"!==e&&this.setAttr("globalCompositeOperation",e)},t}();e.Context=y,g.forEach((function(t){Object.defineProperty(y.prototype,t,{get:function(){return this._context[t]},set:function(e){this._context[t]=e}})}));var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._fillColor=function(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)},e.prototype._fillPattern=function(t){var e=t.getFillPatternX(),n=t.getFillPatternY(),r=o.Konva.getAngle(t.getFillPatternRotation()),i=t.getFillPatternOffsetX(),a=t.getFillPatternOffsetY(),s=t.getFillPatternScaleX(),c=t.getFillPatternScaleY();(e||n)&&this.translate(e||0,n||0),r&&this.rotate(r),(s||c)&&this.scale(s,c),(i||a)&&this.translate(-1*i,-1*a),this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)},e.prototype._fillLinearGradient=function(t){var e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))},e.prototype._fillRadialGradient=function(t){var e=t._getRadialGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))},e.prototype._fill=function(t){var e=t.fill(),n=t.getFillPriority();if(e&&"color"===n)this._fillColor(t);else{var r=t.getFillPatternImage();if(r&&"pattern"===n)this._fillPattern(t);else{var i=t.getFillLinearGradientColorStops();if(i&&"linear-gradient"===n)this._fillLinearGradient(t);else{var o=t.getFillRadialGradientColorStops();o&&"radial-gradient"===n?this._fillRadialGradient(t):e?this._fillColor(t):r?this._fillPattern(t):i?this._fillLinearGradient(t):o&&this._fillRadialGradient(t)}}}},e.prototype._strokeLinearGradient=function(t){var e=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),r=t.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(e.x,e.y,n.x,n.y);if(r){for(var o=0;o<r.length;o+=2)i.addColorStop(r[o],r[o+1]);this.setAttr("strokeStyle",i)}},e.prototype._stroke=function(t){var e=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var i=t.getStrokeLinearGradientColorStops();i?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}},e.prototype._applyShadow=function(t){var e=i.Util,n=e.get(t.getShadowRGBA(),"black"),r=e.get(t.getShadowBlur(),5),o=e.get(t.getShadowOffset(),{x:0,y:0}),a=t.getAbsoluteScale(),s=this.canvas.getPixelRatio(),c=a.x*s,h=a.y*s;this.setAttr("shadowColor",n),this.setAttr("shadowBlur",r*Math.min(Math.abs(c),Math.abs(h))),this.setAttr("shadowOffsetX",o.x*c),this.setAttr("shadowOffsetY",o.y*h)},e}(y);e.SceneContext=m;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._fill=function(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()},e.prototype.strokeShape=function(t){t.hasHitStroke()&&this._stroke(t)},e.prototype._stroke=function(t){if(t.hasHitStroke()){var e=t.getStrokeScaleEnabled();if(!e){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var r=t.hitStrokeWidth(),i="auto"===r?t.strokeWidth():r;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}},e}(y);e.HitContext=_},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c740:function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},c742:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("4546");e.Contrast=function(t){var e,n=Math.pow((this.contrast()+100)/100,2),r=t.data,i=r.length,o=150,a=150,s=150;for(e=0;e<i;e+=4)o=r[e],a=r[e+1],s=r[e+2],o/=255,o-=.5,o*=n,o+=.5,o*=255,a/=255,a-=.5,a*=n,a+=.5,a*=255,s/=255,s-=.5,s*=n,s+=.5,s*=255,o=o<0?0:o>255?255:o,a=a<0?0:a>255?255:a,s=s<0?0:s>255?255:s,r[e]=o,r[e+1]=a,r[e+2]=s},r.Factory.addGetterSetter(i.Node,"contrast",0,o.getNumberValidator(),r.Factory.afterSetFilter)},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=i(t),c=0,h=[];for(n in s)!r(a,n)&&r(s,n)&&h.push(n);while(e.length>c)r(s,n=e[c++])&&(~o(h,n)||h.push(n));return h}},cb29:function(t,e,n){var r=n("23e7"),i=n("81d5"),o=n("44d2");r({target:"Array",proto:!0},{fill:i}),o("fill")},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},cf29:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Grayscale=function(t){var e,n,r=t.data,i=r.length;for(e=0;e<i;e+=4)n=.34*r[e]+.5*r[e+1]+.16*r[e+2],r[e]=n,r[e+1]=n,r[e+2]=n}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d488:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("9cb8"),a=n("f0b4"),s=n("4971"),c=n("fce6"),h=n("5d5a"),u=n("f35c"),l=n("d777"),f=n("4546"),d=n("d777"),p="tr-konva",g=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map((function(t){return t+"."+p})).join(" "),v="nodesRect",y=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"].map((function(t){return t+"."+p})).join(" "),m={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},_="ontouchstart"in l.Konva._global;function b(t,e){if("rotater"===t)return"crosshair";e+=o.Util._degToRad(m[t]||0);var n=(o.Util._radToDeg(e)%360+360)%360;return o.Util._inRange(n,337.5,360)||o.Util._inRange(n,0,22.5)?"ns-resize":o.Util._inRange(n,22.5,67.5)?"nesw-resize":o.Util._inRange(n,67.5,112.5)?"ew-resize":o.Util._inRange(n,112.5,157.5)?"nwse-resize":o.Util._inRange(n,157.5,202.5)?"ns-resize":o.Util._inRange(n,202.5,247.5)?"nesw-resize":o.Util._inRange(n,247.5,292.5)?"ew-resize":o.Util._inRange(n,292.5,337.5)?"nwse-resize":(o.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var w=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],x=1e8;function S(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function C(t,e,n){var r=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),o=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return i(i({},t),{rotation:t.rotation+e,x:r,y:o})}function P(t,e){var n=S(t);return C(t,e,n)}function k(t){var e=t.rotation,n=t.x,r=t.y,i=n+t.width*Math.cos(e),o=r+t.width*Math.sin(e),a=t.x+t.width*Math.cos(e)+t.height*Math.sin(-e),s=t.y+t.height*Math.cos(e)+t.width*Math.sin(e),c=t.x+t.height*Math.sin(-e),h=t.y+t.height*Math.cos(e),u=Math.min(n,i,a,c),l=Math.max(n,i,a,c),f=Math.min(r,o,s,h),d=Math.max(r,o,s,h);return{x:u,y:f,width:l-u,height:d-f}}function O(t){var e=9999999999,n=9999999999,r=-999999999,i=-999999999;return t.forEach((function(t){var o=k(t);e=Math.min(e,o.x),n=Math.min(n,o.y),r=Math.max(r,o.x+o.width),i=Math.max(i,o.y+o.height)})),{x:e,y:n,width:r-e,height:i-n,rotation:0}}function A(t,e,n,r){void 0===r&&(r=1);var i=C(t,-e.rotation,{x:e.x,y:e.y}),o=i.x-e.x,a=i.y-e.y,s=e.rotation,c=t.width?n.width/e.width:1,h=t.height?n.height/e.height:1;return{x:r*n.x+o*c*Math.cos(s)+a*h*Math.sin(-s),y:r*n.y+o*c*Math.sin(s)+a*h*Math.cos(s),width:t.width*c,height:t.height*h,rotation:t.rotation}}function T(t,e,n){var r=A(t,e,n);return C(r,n.rotation-e.rotation,n)}function M(t,e,n){for(var r=e,i=0;i<t.length;i++){var o=l.Konva.getAngle(t[i]),a=Math.abs(o-e)%(2*Math.PI),s=Math.min(a,2*Math.PI-a);s<n&&(r=o)}return r}var F=function(t){function e(e){var n=t.call(this,e)||this;return n._transforming=!1,n._createElements(),n._handleMouseMove=n._handleMouseMove.bind(n),n._handleMouseUp=n._handleMouseUp.bind(n),n.update=n.update.bind(n),n.on(g,n.update),n.getNode()&&n.update(),n}return r(e,t),e.prototype.attachTo=function(t){return this.setNode(t),this},e.prototype.setNode=function(t){return o.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])},e.prototype.getNode=function(){return this._nodes&&this._nodes[0]},e.prototype.setNodes=function(t){var e=this;void 0===t&&(t=[]),this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,1===t.length?this.rotation(t[0].rotation()):this.rotation(0),this._nodes.forEach((function(t){var n=t._attrsAffectingSize.map((function(t){return t+"Change."+p})).join(" "),r=function(){e._resetTransformCache(),e._transforming||e.update()};t.on(n,r),t.on(y,r),t.on("_clearTransformCache."+p,r),t.on("xChange."+p+" yChange."+p,r),e._proxyDrag(t)})),this._resetTransformCache();var n=!!this.findOne(".top-left");return n&&this.update(),this},e.prototype._proxyDrag=function(t){var e,n=this;t.on("dragstart."+p,(function(){e=t.getAbsolutePosition()})),t.on("dragmove."+p,(function(){if(e){var r=t.getAbsolutePosition(),i=r.x-e.x,o=r.y-e.y;n.nodes().forEach((function(e){if(e!==t&&!e.isDragging()){var n=e.getAbsolutePosition();e.setAbsolutePosition({x:n.x+i,y:n.y+o}),e.startDrag()}})),e=null}}))},e.prototype.getNodes=function(){return this._nodes},e.prototype.getActiveAnchor=function(){return this._movingAnchorName},e.prototype.detach=function(){this._nodes&&this._nodes.forEach((function(t){t.off("."+p)})),this._nodes=[],this._resetTransformCache()},e.prototype._resetTransformCache=function(){this._clearCache(v),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},e.prototype._getNodeRect=function(){return this._getCache(v,this.__getNodeRect)},e.prototype.__getNodeShape=function(t,e,n){void 0===e&&(e=this.rotation());var r=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),o=t.getAbsolutePosition(n),a=r.x*i.x-t.offsetX()*i.x,s=r.y*i.y-t.offsetY()*i.y,c=(l.Konva.getAngle(t.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI),h={x:o.x+a*Math.cos(c)+s*Math.sin(-c),y:o.y+s*Math.cos(c)+a*Math.sin(c),width:r.width*i.x,height:r.height*i.y,rotation:c};return C(h,-l.Konva.getAngle(e),{x:0,y:0})},e.prototype.__getNodeRect=function(){var t=this,e=this.getNode();if(!e)return{x:-x,y:-x,width:0,height:0,rotation:0};var n=this.nodes().map((function(e){return t.__getNodeShape(e)})),r=O(n);return C(r,l.Konva.getAngle(this.rotation()),{x:0,y:0})},e.prototype.getX=function(){return this._getNodeRect().x},e.prototype.getY=function(){return this._getNodeRect().y},e.prototype.getWidth=function(){return this._getNodeRect().width},e.prototype.getHeight=function(){return this._getNodeRect().height},e.prototype._createElements=function(){this._createBack(),w.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")},e.prototype._createAnchor=function(t){var e=this,n=new h.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:_?10:"auto"}),r=this;n.on("mousedown touchstart",(function(t){r._handleMouseDown(t)})),n.on("dragstart",(function(t){n.stopDrag(),t.cancelBubble=!0})),n.on("dragend",(function(t){t.cancelBubble=!0})),n.on("mouseenter",(function(){var r=l.Konva.getAngle(e.rotation()),i=b(t,r);n.getStage().content.style.cursor=i,e._cursorChange=!0})),n.on("mouseout",(function(){n.getStage()&&n.getParent()&&(n.getStage().content.style.cursor="",e._cursorChange=!1)})),this.add(n)},e.prototype._createBack=function(){var t=this,e=new c.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc:function(t){var e=this.getParent(),n=e.padding();t.beginPath(),t.rect(-n,-n,this.width()+2*n,this.height()+2*n),t.moveTo(this.width()/2,-n),e.rotateEnabled()&&t.lineTo(this.width()/2,-e.rotateAnchorOffset()*o.Util._sign(this.height())-n),t.fillStrokeShape(this)},hitFunc:function(e,n){if(t.shouldOverdrawWholeArea()){var r=t.padding();e.beginPath(),e.rect(-r,-r,n.width()+2*r,n.height()+2*r),e.fillStrokeShape(n)}}});this.add(e),this._proxyDrag(e)},e.prototype._handleMouseDown=function(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),n=e.width,r=e.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=Math.abs(r/i),this.cos=Math.abs(n/i),window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0),this._transforming=!0;var o=t.target.getAbsolutePosition(),a=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-o.x,y:a.y-o.y},this._fire("transformstart",{evt:t,target:this.getNode()}),this.getNode()._fire("transformstart",{evt:t,target:this.getNode()})},e.prototype._handleMouseMove=function(t){var e,n,r,i=this.findOne("."+this._movingAnchorName),o=i.getStage();o.setPointersPositions(t);var a=o.getPointerPosition(),s={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y},c=i.getAbsolutePosition();i.setAbsolutePosition(s);var h=i.getAbsolutePosition();if(c.x!==h.x||c.y!==h.y)if("rotater"!==this._movingAnchorName){var u=this.keepRatio()||t.shiftKey,f=this.centeredScaling()||t.altKey;if("top-left"===this._movingAnchorName){if(u){var d=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};r=Math.sqrt(Math.pow(d.x-i.x(),2)+Math.pow(d.y-i.y(),2));var p=this.findOne(".top-left").x()>d.x?-1:1,g=this.findOne(".top-left").y()>d.y?-1:1;e=r*this.cos*p,n=r*this.sin*g,this.findOne(".top-left").x(d.x-e),this.findOne(".top-left").y(d.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(i.y());else if("top-right"===this._movingAnchorName){if(u){d=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};r=Math.sqrt(Math.pow(i.x()-d.x,2)+Math.pow(d.y-i.y(),2));p=this.findOne(".top-right").x()<d.x?-1:1,g=this.findOne(".top-right").y()>d.y?-1:1;e=r*this.cos*p,n=r*this.sin*g,this.findOne(".top-right").x(d.x+e),this.findOne(".top-right").y(d.y-n)}var v=i.position();this.findOne(".top-left").y(v.y),this.findOne(".bottom-right").x(v.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(i.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(i.x());else if("bottom-left"===this._movingAnchorName){if(u){d=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};r=Math.sqrt(Math.pow(d.x-i.x(),2)+Math.pow(i.y()-d.y,2));p=d.x<i.x()?-1:1,g=i.y()<d.y?-1:1;e=r*this.cos*p,n=r*this.sin*g,i.x(d.x-e),i.y(d.y+n)}v=i.position(),this.findOne(".top-left").x(v.x),this.findOne(".bottom-right").y(v.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(i.y());else if("bottom-right"===this._movingAnchorName){if(u){d=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};r=Math.sqrt(Math.pow(i.x()-d.x,2)+Math.pow(i.y()-d.y,2));p=this.findOne(".bottom-right").x()<d.x?-1:1,g=this.findOne(".bottom-right").y()<d.y?-1:1;e=r*this.cos*p,n=r*this.sin*g,this.findOne(".bottom-right").x(d.x+e),this.findOne(".bottom-right").y(d.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));f=this.centeredScaling()||t.altKey;if(f){var y=this.findOne(".top-left"),m=this.findOne(".bottom-right"),_=y.x(),b=y.y(),w=this.getWidth()-m.x(),x=this.getHeight()-m.y();m.move({x:-_,y:-b}),y.move({x:w,y:x})}var S=this.findOne(".top-left").getAbsolutePosition();e=S.x,n=S.y;var C=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),k=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:e,y:n,width:C,height:k,rotation:l.Konva.getAngle(this.rotation())},t)}else{var O=this._getNodeRect();e=i.x()-O.width/2,n=-i.y()+O.height/2;var A=Math.atan2(-n,e)+Math.PI/2;O.height<0&&(A-=Math.PI);var T=l.Konva.getAngle(this.rotation()),F=T+A,N=l.Konva.getAngle(this.rotationSnapTolerance()),L=M(this.rotationSnaps(),F,N),D=L-O.rotation,E=P(O,D);this._fitNodesInto(E,t)}},e.prototype._handleMouseUp=function(t){this._removeEvents(t)},e.prototype.getAbsoluteTransform=function(){return this.getTransform()},e.prototype._removeEvents=function(t){if(this._transforming){this._transforming=!1,window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0);var e=this.getNode();this._fire("transformend",{evt:t,target:e}),e&&e.fire("transformend",{evt:t,target:e}),this._movingAnchorName=null}},e.prototype._fitNodesInto=function(t,e){var n=this,r=this._getNodeRect(),i=1;if(o.Util._inRange(t.width,2*-this.padding()-i,i))this.update();else if(o.Util._inRange(t.height,2*-this.padding()-i,i))this.update();else{var a=!0,s=new o.Transform;if(s.rotate(l.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){var c=s.point({x:2*-this.padding(),y:0});if(t.x+=c.x,t.y+=c.y,t.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=c.x,this._anchorDragOffset.y-=c.y,!a)return void this.update()}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){c=s.point({x:2*this.padding(),y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=c.x,this._anchorDragOffset.y-=c.y,t.width+=2*this.padding(),!a)return void this.update()}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){c=s.point({x:0,y:2*-this.padding()});if(t.x+=c.x,t.y+=c.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=c.x,this._anchorDragOffset.y-=c.y,t.height+=2*this.padding(),!a)return void this.update()}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){c=s.point({x:0,y:2*this.padding()});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=c.x,this._anchorDragOffset.y-=c.y,t.height+=2*this.padding(),!a)return void this.update()}this._nodes.forEach((function(i){var o=n.__getNodeShape(i,0),a=T(o,r,t);n._fitNodeInto(i,a,e)})),this.rotation(o.Util._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}},e.prototype._fitNodeInto=function(t,e,n){var r=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getParent().getAbsoluteTransform().copy();i.invert();var a=i.point({x:e.x,y:e.y}),s=t.getParent().getAbsoluteScale();if(e.x=a.x,e.y=a.y,e.width/=s.x,e.height/=s.y,this.boundBoxFunc()){var c=this.__getNodeShape(t,t.rotation(),t.getParent()),h=this.boundBoxFunc()(c,e,t);h?e=h:o.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}var u=l.Konva.getAngle(t.getParent().getAbsoluteRotation());t.rotation(o.Util._getRotation(e.rotation-u));s=t.getParent().getAbsoluteScale();var f=r.width?e.width/r.width:1,d=r.height?e.height/r.height:1,p=l.Konva.getAngle(t.rotation()),g=r.x*f-t.offsetX()*f,v=r.y*d-t.offsetY()*d;t.setAttrs({scaleX:f,scaleY:d,x:e.x-(g*Math.cos(p)+v*Math.sin(-p)),y:e.y-(v*Math.cos(p)+g*Math.sin(p))}),this._fire("transform",{evt:n,target:t}),t._fire("transform",{evt:n,target:t})},e.prototype.forceUpdate=function(){this._resetTransformCache(),this.update()},e.prototype.update=function(){var t=this,e=this._getNodeRect();this.rotation(o.Util._getRotation(e.rotation));var n=e.width,r=e.height,i=this.enabledAnchors(),a=this.resizeEnabled(),s=this.padding(),c=this.anchorSize();this.find("._anchor").each((function(e){return e.setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:t.anchorStroke(),strokeWidth:t.anchorStrokeWidth(),fill:t.anchorFill(),cornerRadius:t.anchorCornerRadius()})})),this.findOne(".top-left").setAttrs({x:0,y:0,offsetX:c/2+s,offsetY:c/2+s,visible:a&&i.indexOf("top-left")>=0}),this.findOne(".top-center").setAttrs({x:n/2,y:0,offsetY:c/2+s,visible:a&&i.indexOf("top-center")>=0}),this.findOne(".top-right").setAttrs({x:n,y:0,offsetX:c/2-s,offsetY:c/2+s,visible:a&&i.indexOf("top-right")>=0}),this.findOne(".middle-left").setAttrs({x:0,y:r/2,offsetX:c/2+s,visible:a&&i.indexOf("middle-left")>=0}),this.findOne(".middle-right").setAttrs({x:n,y:r/2,offsetX:c/2-s,visible:a&&i.indexOf("middle-right")>=0}),this.findOne(".bottom-left").setAttrs({x:0,y:r,offsetX:c/2+s,offsetY:c/2-s,visible:a&&i.indexOf("bottom-left")>=0}),this.findOne(".bottom-center").setAttrs({x:n/2,y:r,offsetY:c/2-s,visible:a&&i.indexOf("bottom-center")>=0}),this.findOne(".bottom-right").setAttrs({x:n,y:r,offsetX:c/2-s,offsetY:c/2-s,visible:a&&i.indexOf("bottom-right")>=0}),this.findOne(".rotater").setAttrs({x:n/2,y:-this.rotateAnchorOffset()*o.Util._sign(r)-s,visible:this.rotateEnabled()}),this.findOne(".back").setAttrs({width:n,height:r,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0})},e.prototype.isTransforming=function(){return this._transforming},e.prototype.stopTransform=function(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}},e.prototype.destroy=function(){return this.getStage()&&this._cursorChange&&(this.getStage().content.style.cursor=""),u.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this},e.prototype.toObject=function(){return s.Node.prototype.toObject.call(this)},e}(u.Group);function N(t){return t instanceof Array||o.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach((function(t){-1===w.indexOf(t)&&o.Util.warn("Unknown anchor name: "+t+". Available names are: "+w.join(", "))})),t||[]}e.Transformer=F,F.prototype.className="Transformer",d._registerNode(F),a.Factory.addGetterSetter(F,"enabledAnchors",w,N),a.Factory.addGetterSetter(F,"resizeEnabled",!0),a.Factory.addGetterSetter(F,"anchorSize",10,f.getNumberValidator()),a.Factory.addGetterSetter(F,"rotateEnabled",!0),a.Factory.addGetterSetter(F,"rotationSnaps",[]),a.Factory.addGetterSetter(F,"rotateAnchorOffset",50,f.getNumberValidator()),a.Factory.addGetterSetter(F,"rotationSnapTolerance",5,f.getNumberValidator()),a.Factory.addGetterSetter(F,"borderEnabled",!0),a.Factory.addGetterSetter(F,"anchorStroke","rgb(0, 161, 255)"),a.Factory.addGetterSetter(F,"anchorStrokeWidth",1,f.getNumberValidator()),a.Factory.addGetterSetter(F,"anchorFill","white"),a.Factory.addGetterSetter(F,"anchorCornerRadius",0,f.getNumberValidator()),a.Factory.addGetterSetter(F,"borderStroke","rgb(0, 161, 255)"),a.Factory.addGetterSetter(F,"borderStrokeWidth",1,f.getNumberValidator()),a.Factory.addGetterSetter(F,"borderDash"),a.Factory.addGetterSetter(F,"keepRatio",!0),a.Factory.addGetterSetter(F,"centeredScaling",!1),a.Factory.addGetterSetter(F,"ignoreStroke",!1),a.Factory.addGetterSetter(F,"padding",0,f.getNumberValidator()),a.Factory.addGetterSetter(F,"node"),a.Factory.addGetterSetter(F,"nodes"),a.Factory.addGetterSetter(F,"boundBoxFunc"),a.Factory.addGetterSetter(F,"shouldOverdrawWholeArea",!1),a.Factory.backCompat(F,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"}),o.Collection.mapMethods(F)},d6af:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("ea61"),a=n("4971"),s=n("f0b4"),c=n("f655"),h=function(t){function e(e){var n=t.call(this,e)||this;return n.canvas=new c.SceneCanvas,n._waitingForDraw=!1,n.on("visibleChange",n._checkVisibility),n._checkVisibility(),n.on("imageSmoothingEnabledChange",n._setSmoothEnabled),n._setSmoothEnabled(),n}return r(e,t),e.prototype.createPNGStream=function(){var t=this.canvas._canvas;return t.createPNGStream()},e.prototype.getCanvas=function(){return this.canvas},e.prototype.getHitCanvas=function(){return this.hitCanvas},e.prototype.getContext=function(){return this.getCanvas().getContext()},e.prototype.clear=function(t){return this.getContext().clear(t),this},e.prototype.setZIndex=function(e){t.prototype.setZIndex.call(this,e);var n=this.getStage();return n&&(n.content.removeChild(this.getCanvas()._canvas),e<n.children.length-1?n.content.insertBefore(this.getCanvas()._canvas,n.children[e+1].getCanvas()._canvas):n.content.appendChild(this.getCanvas()._canvas)),this},e.prototype.moveToTop=function(){a.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&(t.content.removeChild(this.getCanvas()._canvas),t.content.appendChild(this.getCanvas()._canvas)),!0},e.prototype.moveUp=function(){var t=a.Node.prototype.moveUp.call(this);if(!t)return!1;var e=this.getStage();return!!e&&(e.content.removeChild(this.getCanvas()._canvas),this.index<e.children.length-1?e.content.insertBefore(this.getCanvas()._canvas,e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getCanvas()._canvas),!0)},e.prototype.moveDown=function(){if(a.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.children;t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[this.index+1].getCanvas()._canvas)}return!0}return!1},e.prototype.moveToBottom=function(){if(a.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.children;t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[1].getCanvas()._canvas)}return!0}return!1},e.prototype.getLayer=function(){return this},e.prototype.hitGraphEnabled=function(){return!0},e.prototype.remove=function(){var t=this.getCanvas()._canvas;return a.Node.prototype.remove.call(this),t&&t.parentNode&&i.Util._isInDocument(t)&&t.parentNode.removeChild(t),this},e.prototype.getStage=function(){return this.parent},e.prototype.setSize=function(t){var e=t.width,n=t.height;return this.canvas.setSize(e,n),this._setSmoothEnabled(),this},e.prototype._toKonvaCanvas=function(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.x(),t.y=void 0!==t.y?t.y:this.y(),a.Node.prototype._toKonvaCanvas.call(this,t)},e.prototype._checkVisibility=function(){var t=this.visible();this.canvas._canvas.style.display=t?"block":"none"},e.prototype._setSmoothEnabled=function(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()},e.prototype.getWidth=function(){if(this.parent)return this.parent.width()},e.prototype.setWidth=function(){i.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},e.prototype.getHeight=function(){if(this.parent)return this.parent.height()},e.prototype.setHeight=function(){i.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},e.prototype.getIntersection=function(t,e){return null},e.prototype.batchDraw=function(){var t=this;return this._waitingForDraw||(this._waitingForDraw=!0,i.Util.requestAnimFrame((function(){t.draw(),t._waitingForDraw=!1}))),this},e.prototype._applyTransform=function(t,e,n){var r=t.getAbsoluteTransform(n).getMatrix();e.transform(r[0],r[1],r[2],r[3],r[4],r[5])},e}(o.Container);e.BaseLayer=h,h.prototype.nodeType="BaseLayer",s.Factory.addGetterSetter(h,"imageSmoothingEnabled",!0),s.Factory.addGetterSetter(h,"clearBeforeDraw",!0),i.Collection.mapMethods(h)},d777:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=Math.PI/180;function r(){return"undefined"!==typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window))}var i=function(t){var e=t.indexOf("msie ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("trident/");if(n>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)};e._parseUA=function(t){var e=t.toLowerCase(),n=/(chrome)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],r=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),o=!!t.match(/IEMobile/i);return{browser:n[1]||"",version:n[2]||"0",isIE:i(e),mobile:r,ieMobile:o}},e.glob="undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope?self:{},e.Konva={_global:e.glob,version:"5.0.3",isBrowser:r(),isUnminified:/param/.test(function(t){}.toString()),dblClickWindow:400,getAngle:function(t){return e.Konva.angleDeg?t*n:t},enableTrace:!1,_pointerEventsEnabled:!1,hitOnDragEnabled:!1,captureTouchEventsEnabled:!1,listenClickTap:!1,inDblClickWindow:!1,pixelRatio:void 0,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:function(){return e.Konva["DD"].isDragging},isDragReady:function(){return!!e.Konva["DD"].node},UA:e._parseUA(e.glob.navigator&&e.glob.navigator.userAgent||""),document:e.glob.document,_injectGlobal:function(t){e.glob.Konva=t},_parseUA:e._parseUA},e._NODES_REGISTRY={},e._registerNode=function(t){e._NODES_REGISTRY[t.prototype.getClassName()]=t,e.Konva[t.prototype.getClassName()]=t}}).call(this,n("c8ba"))},da04:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("f35c"),c=n("4546"),h=n("d777"),u=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width"],l="Change.konva",f="none",d="up",p="right",g="down",v="left",y=u.length,m=function(t){function e(e){var n=t.call(this,e)||this;return n.on("add.konva",(function(t){this._addListeners(t.child),this._sync()})),n}return r(e,t),e.prototype.getText=function(){return this.find("Text")[0]},e.prototype.getTag=function(){return this.find("Tag")[0]},e.prototype._addListeners=function(t){var e,n=this,r=function(){n._sync()};for(e=0;e<y;e++)t.on(u[e]+l,r)},e.prototype.getWidth=function(){return this.getText().width()},e.prototype.getHeight=function(){return this.getText().height()},e.prototype._sync=function(){var t,e,n,r,i,o,a,s=this.getText(),c=this.getTag();if(s&&c){switch(t=s.width(),e=s.height(),n=c.pointerDirection(),r=c.pointerWidth(),a=c.pointerHeight(),i=0,o=0,n){case d:i=t/2,o=-1*a;break;case p:i=t+r,o=e/2;break;case g:i=t/2,o=e+a;break;case v:i=-1*r,o=e/2;break}c.setAttrs({x:-1*i,y:-1*o,width:t,height:e}),s.setAttrs({x:-1*i,y:-1*o})}},e}(s.Group);e.Label=m,m.prototype.className="Label",h._registerNode(m),i.Collection.mapMethods(m);var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.width(),n=this.height(),r=this.pointerDirection(),i=this.pointerWidth(),o=this.pointerHeight(),a=Math.min(this.cornerRadius(),e/2,n/2);t.beginPath(),a?t.moveTo(a,0):t.moveTo(0,0),r===d&&(t.lineTo((e-i)/2,0),t.lineTo(e/2,-1*o),t.lineTo((e+i)/2,0)),a?(t.lineTo(e-a,0),t.arc(e-a,a,a,3*Math.PI/2,0,!1)):t.lineTo(e,0),r===p&&(t.lineTo(e,(n-o)/2),t.lineTo(e+i,n/2),t.lineTo(e,(n+o)/2)),a?(t.lineTo(e,n-a),t.arc(e-a,n-a,a,0,Math.PI/2,!1)):t.lineTo(e,n),r===g&&(t.lineTo((e+i)/2,n),t.lineTo(e/2,n+o),t.lineTo((e-i)/2,n)),a?(t.lineTo(a,n),t.arc(a,n-a,a,Math.PI/2,Math.PI,!1)):t.lineTo(0,n),r===v&&(t.lineTo(0,(n+o)/2),t.lineTo(-1*i,n/2),t.lineTo(0,(n-o)/2)),a&&(t.lineTo(0,a),t.arc(a,a,a,Math.PI,3*Math.PI/2,!1)),t.closePath(),t.fillStrokeShape(this)},e.prototype.getSelfRect=function(){var t=0,e=0,n=this.pointerWidth(),r=this.pointerHeight(),i=this.pointerDirection(),o=this.width(),a=this.height();return i===d?(e-=r,a+=r):i===g?a+=r:i===v?(t-=1.5*n,o+=n):i===p&&(o+=1.5*n),{x:t,y:e,width:o,height:a}},e}(a.Shape);e.Tag=_,_.prototype.className="Tag",h._registerNode(_),o.Factory.addGetterSetter(_,"pointerDirection",f),o.Factory.addGetterSetter(_,"pointerWidth",0,c.getNumberValidator()),o.Factory.addGetterSetter(_,"pointerHeight",0,c.getNumberValidator()),o.Factory.addGetterSetter(_,"cornerRadius",0,c.getNumberValidator()),i.Collection.mapMethods(_)},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),c=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),i=s.f,h=o(r),u={},l=0;while(h.length>l)n=i(r,e=h[l++]),void 0!==n&&c(u,e,n);return u}})},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),c=s("iterator"),h=s("toStringTag"),u=o.values;for(var l in i){var f=r[l],d=f&&f.prototype;if(d){if(d[c]!==u)try{a(d,c,u)}catch(g){d[c]=u}if(d[h]||a(d,h,l),i[l])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(g){d[p]=o[p]}}}},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},df93:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=n("9cb8");e.DD={get isDragging(){var t=!1;return e.DD._dragElements.forEach((function(e){"dragging"===e.dragStatus&&(t=!0)})),t},justDragged:!1,get node(){var t;return e.DD._dragElements.forEach((function(e){t=e.node})),t},_dragElements:new Map,_drag:function(t){e.DD._dragElements.forEach((function(e,n){var r=e.node,o=r.getStage();o.setPointersPositions(t),void 0===e.pointerId&&(e.pointerId=i.Util._getFirstPointerId(t));var a=o._changedPointerPositions.find((function(t){return t.id===e.pointerId}));if(a){if("dragging"!==e.dragStatus){var s=r.dragDistance(),c=Math.max(Math.abs(a.x-e.startPointerPos.x),Math.abs(a.y-e.startPointerPos.y));if(c<s)return;if(r.startDrag({evt:t}),!r.isDragging())return}r._setDragPosition(t,e),r.fire("dragmove",{type:"dragmove",target:r,evt:t},!0)}}))},_endDragBefore:function(t){e.DD._dragElements.forEach((function(n,i){var o=n.node,a=o.getStage();t&&a.setPointersPositions(t);var s=a._changedPointerPositions.find((function(t){return t.id===n.pointerId}));if(s){"dragging"!==n.dragStatus&&"stopped"!==n.dragStatus||(e.DD.justDragged=!0,r.Konva.listenClickTap=!1,n.dragStatus="stopped");var c=n.node.getLayer()||n.node instanceof r.Konva["Stage"]&&n.node;c&&c.draw()}}))},_endDragAfter:function(t){e.DD._dragElements.forEach((function(n,r){"stopped"===n.dragStatus&&n.node.fire("dragend",{type:"dragend",target:n.node,evt:t},!0),"dragging"!==n.dragStatus&&e.DD._dragElements.delete(r)}))}},r.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),c=n("9bf2").f,h=n("e893"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var l={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new u(t):void 0===t?u():u(t);return""===t&&(l[e]=!0),e};h(f,u);var d=f.prototype=u.prototype;d.constructor=f;var p=d.toString,g="Symbol(test)"==String(u("test")),v=/^Symbol\((.*)\)[^)]+$/;c(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(l,t))return"";var n=g?e.slice(7,-1):e.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),c="Array Iterator",h=a.set,u=a.getterFor(c);t.exports=s(Array,"Array",(function(t,e){h(this,{type:c,target:r(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e3af:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("fce6"),s=n("4546"),c=n("d777"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var i=1;i<2*r;i++){var o=i%2===0?n:e,a=o*Math.sin(i*Math.PI/r),s=-1*o*Math.cos(i*Math.PI/r);t.lineTo(a,s)}t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(a.Shape);e.Star=h,h.prototype.className="Star",h.prototype._centroid=!0,h.prototype._attrsAffectingSize=["innerRadius","outerRadius"],c._registerNode(h),o.Factory.addGetterSetter(h,"numPoints",5,s.getNumberValidator()),o.Factory.addGetterSetter(h,"innerRadius",0,s.getNumberValidator()),o.Factory.addGetterSetter(h,"outerRadius",0,s.getNumberValidator()),i.Collection.mapMethods(h)},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),c=i((function(){a(1)})),h=!s||c;r({target:"Object",stat:!0,forced:h,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},e4b0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f0b4"),i=n("4971"),o=n("9cb8"),a=n("4546");e.Emboss=function(t){var e=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),i=this.embossBlend(),a=0,s=0,c=t.data,h=t.width,u=t.height,l=4*h,f=u;switch(r){case"top-left":a=-1,s=-1;break;case"top":a=-1,s=0;break;case"top-right":a=-1,s=1;break;case"right":a=0,s=1;break;case"bottom-right":a=1,s=1;break;case"bottom":a=1,s=0;break;case"bottom-left":a=1,s=-1;break;case"left":a=0,s=-1;break;default:o.Util.error("Unknown emboss direction: "+r)}do{var d=(f-1)*l,p=a;f+p<1&&(p=0),f+p>u&&(p=0);var g=(f-1+p)*h*4,v=h;do{var y=d+4*(v-1),m=s;v+m<1&&(m=0),v+m>h&&(m=0);var _=g+4*(v-1+m),b=c[y]-c[_],w=c[y+1]-c[_+1],x=c[y+2]-c[_+2],S=b,C=S>0?S:-S,P=w>0?w:-w,k=x>0?x:-x;if(P>C&&(S=w),k>C&&(S=x),S*=e,i){var O=c[y]+S,A=c[y+1]+S,T=c[y+2]+S;c[y]=O>255?255:O<0?0:O,c[y+1]=A>255?255:A<0?0:A,c[y+2]=T>255?255:T<0?0:T}else{var M=n-S;M<0?M=0:M>255&&(M=255),c[y]=c[y+1]=c[y+2]=M}}while(--v)}while(--f)},r.Factory.addGetterSetter(i.Node,"embossStrength",.5,a.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossWhiteLevel",.5,a.getNumberValidator(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossDirection","top-left",null,r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossBlend",!1,null,r.Factory.afterSetFilter)},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,i,o,a,s=n("23e7"),c=n("c430"),h=n("da84"),u=n("d066"),l=n("fea9"),f=n("6eeb"),d=n("e2cc"),p=n("d2bb"),g=n("d44e"),v=n("2626"),y=n("861d"),m=n("1c0b"),_=n("19aa"),b=n("8925"),w=n("2266"),x=n("1c7e"),S=n("4840"),C=n("2cf4").set,P=n("b575"),k=n("cdf9"),O=n("44de"),A=n("f069"),T=n("e667"),M=n("69f3"),F=n("94ca"),N=n("b622"),L=n("6069"),D=n("605d"),E=n("2d00"),I=N("species"),j="Promise",G=M.get,R=M.set,$=M.getterFor(j),U=l&&l.prototype,V=l,H=U,B=h.TypeError,W=h.document,z=h.process,K=A.f,Y=K,X=!!(W&&W.createEvent&&h.dispatchEvent),q="function"==typeof PromiseRejectionEvent,Z="unhandledrejection",J="rejectionhandled",Q=0,tt=1,et=2,nt=1,rt=2,it=!1,ot=F(j,(function(){var t=b(V)!==String(V);if(!t&&66===E)return!0;if(c&&!H["finally"])return!0;if(E>=51&&/native code/.test(V))return!1;var e=new V((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[I]=n,it=e.then((function(){}))instanceof n,!it||!t&&L&&!q})),at=ot||!x((function(t){V.all(t)["catch"]((function(){}))})),st=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},ct=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;P((function(){var r=t.value,i=t.state==tt,o=0;while(n.length>o){var a,s,c,h=n[o++],u=i?h.ok:h.fail,l=h.resolve,f=h.reject,d=h.domain;try{u?(i||(t.rejection===rt&&ft(t),t.rejection=nt),!0===u?a=r:(d&&d.enter(),a=u(r),d&&(d.exit(),c=!0)),a===h.promise?f(B("Promise-chain cycle")):(s=st(a))?s.call(a,l,f):l(a)):f(r)}catch(p){d&&!c&&d.exit(),f(p)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ut(t)}))}},ht=function(t,e,n){var r,i;X?(r=W.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),h.dispatchEvent(r)):r={promise:e,reason:n},!q&&(i=h["on"+t])?i(r):t===Z&&O("Unhandled promise rejection",n)},ut=function(t){C.call(h,(function(){var e,n=t.facade,r=t.value,i=lt(t);if(i&&(e=T((function(){D?z.emit("unhandledRejection",r,n):ht(Z,n,r)})),t.rejection=D||lt(t)?rt:nt,e.error))throw e.value}))},lt=function(t){return t.rejection!==nt&&!t.parent},ft=function(t){C.call(h,(function(){var e=t.facade;D?z.emit("rejectionHandled",e):ht(J,e,t.value)}))},dt=function(t,e,n){return function(r){t(e,r,n)}},pt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=et,ct(t,!0))},gt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw B("Promise can't be resolved itself");var r=st(e);r?P((function(){var n={done:!1};try{r.call(e,dt(gt,n,t),dt(pt,n,t))}catch(i){pt(n,i,t)}})):(t.value=e,t.state=tt,ct(t,!1))}catch(i){pt({done:!1},i,t)}}};if(ot&&(V=function(t){_(this,V,j),m(t),r.call(this);var e=G(this);try{t(dt(gt,e),dt(pt,e))}catch(n){pt(e,n)}},H=V.prototype,r=function(t){R(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Q,value:void 0})},r.prototype=d(H,{then:function(t,e){var n=$(this),r=K(S(this,V));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=D?z.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Q&&ct(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=G(t);this.promise=t,this.resolve=dt(gt,e),this.reject=dt(pt,e)},A.f=K=function(t){return t===V||t===o?new i(t):Y(t)},!c&&"function"==typeof l&&U!==Object.prototype)){a=U.then,it||(f(U,"then",(function(t,e){var n=this;return new V((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),f(U,"catch",H["catch"],{unsafe:!0}));try{delete U.constructor}catch(vt){}p&&p(U,H)}s({global:!0,wrap:!0,forced:ot},{Promise:V}),g(V,j,!1,!0),v(j),o=u(j),s({target:j,stat:!0,forced:ot},{reject:function(t){var e=K(this);return e.reject.call(void 0,t),e.promise}}),s({target:j,stat:!0,forced:c||ot},{resolve:function(t){return k(c&&this===o?V:this,t)}}),s({target:j,stat:!0,forced:at},{all:function(t){var e=this,n=K(e),r=n.resolve,i=n.reject,o=T((function(){var n=m(e.resolve),o=[],a=0,s=1;w(t,(function(t){var c=a++,h=!1;o.push(void 0),s++,n.call(e,t).then((function(t){h||(h=!0,o[c]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=K(e),r=n.reject,i=T((function(){var i=m(e.resolve);w(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),s=a.f,c=o.f,h=0;h<n.length;h++){var u=n[h];r(t,u)||s(t,u,c(e,u))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},ea61:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("4971"),s=n("df93"),c=n("4546"),h=n("d777"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=new i.Collection,e}return r(e,t),e.prototype.getChildren=function(t){if(!t)return this.children;var e=new i.Collection;return this.children.each((function(n){t(n)&&e.push(n)})),e},e.prototype.hasChildren=function(){return this.getChildren().length>0},e.prototype.removeChildren=function(){for(var t,e=0;e<this.children.length;e++)t=this.children[e],t.parent=null,t.index=0,t.remove();return this.children=new i.Collection,this},e.prototype.destroyChildren=function(){for(var t,e=0;e<this.children.length;e++)t=this.children[e],t.parent=null,t.index=0,t.destroy();return this.children=new i.Collection,this},e.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}var r=t[0];if(r.getParent())return r.moveTo(this),this;var i=this.children;return this._validateAdd(r),r._clearCaches(),r.index=i.length,r.parent=this,i.push(r),this._fire("add",{child:r}),this},e.prototype.destroy=function(){return this.hasChildren()&&this.destroyChildren(),t.prototype.destroy.call(this),this},e.prototype.find=function(t){return this._generalFind(t,!1)},e.prototype.get=function(t){return i.Util.warn("collection.get() method is deprecated. Please use collection.find() instead."),this.find(t)},e.prototype.findOne=function(t){var e=this._generalFind(t,!0);return e.length>0?e[0]:void 0},e.prototype._generalFind=function(t,e){var n=[];return this._descendants((function(r){var i=r._isMatch(t);return i&&n.push(r),!(!i||!e)})),i.Collection.toCollection(n)},e.prototype._descendants=function(t){for(var e=!1,n=0;n<this.children.length;n++){var r=this.children[n];if(e=t(r),e)return!0;if(r.hasChildren()&&(e=r._descendants(t),e))return!0}return!1},e.prototype.toObject=function(){var t=a.Node.prototype.toObject.call(this);t.children=[];for(var e=this.getChildren(),n=e.length,r=0;r<n;r++){var i=e[r];t.children.push(i.toObject())}return t},e.prototype.isAncestorOf=function(t){var e=t.getParent();while(e){if(e._id===this._id)return!0;e=e.getParent()}return!1},e.prototype.clone=function(t){var e=a.Node.prototype.clone.call(this,t);return this.getChildren().each((function(t){e.add(t.clone())})),e},e.prototype.getAllIntersections=function(t){var e=[];return this.find("Shape").each((function(n){n.isVisible()&&n.intersects(t)&&e.push(n)})),e},e.prototype._setChildrenIndices=function(){this.children.each((function(t,e){t.index=e}))},e.prototype.drawScene=function(t,e,n){var r=this.getLayer(),i=t||r&&r.getCanvas(),o=i&&i.getContext(),a=this._getCanvasCache(),s=a&&a.scene;return(this.isVisible()||n)&&(!n&&s?(o.save(),r._applyTransform(this,o,e),this._drawCachedSceneCanvas(o),o.restore()):this._drawChildren(i,"drawScene",e,!1,n,n)),this},e.prototype.drawHit=function(t,e,n){var r=this.getLayer(),i=t||r&&r.hitCanvas,o=i&&i.getContext(),a=this._getCanvasCache(),s=a&&a.hit;return(this.shouldDrawHit(i)||n)&&(!n&&s?(o.save(),r._applyTransform(this,o,e),this._drawCachedHitCanvas(o),o.restore()):this._drawChildren(i,"drawHit",e,!1,n,n)),this},e.prototype._drawChildren=function(t,e,n,r,i,o){var a,s,c=this.getLayer(),h=t&&t.getContext(),u=this.clipWidth(),l=this.clipHeight(),f=this.clipFunc(),d=u&&l||f;if(d&&c){h.save();var p=this.getAbsoluteTransform(n),g=p.getMatrix();h.transform(g[0],g[1],g[2],g[3],g[4],g[5]),h.beginPath(),f?f.call(this,h,this):(a=this.clipX(),s=this.clipY(),h.rect(a,s,u,l)),h.clip(),g=p.copy().invert().getMatrix(),h.transform(g[0],g[1],g[2],g[3],g[4],g[5])}var v="source-over"!==this.globalCompositeOperation()&&!o&&"drawScene"===e;v&&c&&(h.save(),h._applyGlobalCompositeOperation(this)),this.children.each((function(o){o[e](t,n,r,i)})),v&&c&&h.restore(),d&&c&&h.restore()},e.prototype.shouldDrawHit=function(t){if(t&&t.isCache)return!0;var e=this.getLayer(),n=!1;s.DD._dragElements.forEach((function(t){"dragging"===t.dragStatus&&t.node.getLayer()===e&&(n=!0)}));var r=!h.Konva.hitOnDragEnabled&&n;return e&&e.hitGraphEnabled()&&this.isVisible()&&!r},e.prototype.getClientRect=function(t){t=t||{};var e,n,r,i,o=t.skipTransform,a=t.relativeTo,s={x:1/0,y:1/0,width:0,height:0},c=this;this.children.each((function(o){if(o.visible()){var a=o.getClientRect({relativeTo:c,skipShadow:t.skipShadow,skipStroke:t.skipStroke});0===a.width&&0===a.height||(void 0===e?(e=a.x,n=a.y,r=a.x+a.width,i=a.y+a.height):(e=Math.min(e,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height)))}}));for(var h=this.find("Shape"),u=!1,l=0;l<h.length;l++){var f=h[l];if(f._isVisible(this)){u=!0;break}}return s=u&&void 0!==e?{x:e,y:n,width:r-e,height:i-n}:{x:0,y:0,width:0,height:0},o?s:this._transformedRect(s,a)},e}(a.Node);e.Container=u,o.Factory.addComponentsGetterSetter(u,"clip",["x","y","width","height"]),o.Factory.addGetterSetter(u,"clipX",void 0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"clipY",void 0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"clipWidth",void 0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"clipHeight",void 0,c.getNumberValidator()),o.Factory.addGetterSetter(u,"clipFunc"),i.Collection.mapMethods(u)},eba4:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("f0b4"),a=n("ea61"),s=n("d777"),c=n("f655"),h=n("df93"),u=n("d777"),l=n("7d2a"),f="Stage",d="string",p="px",g="mouseout",v="mouseleave",y="mouseover",m="mouseenter",_="mousemove",b="mousedown",w="mouseup",x="pointermove",S="pointerdown",C="pointerup",P="pointercancel",k="lostpointercapture",O="contextmenu",A="click",T="dblclick",M="touchstart",F="touchend",N="tap",L="dbltap",D="touchmove",E="wheel",I="contentMouseout",j="contentMouseover",G="contentMousemove",R="contentMousedown",$="contentMouseup",U="contentContextmenu",V="contentClick",H="contentDblclick",B="contentTouchstart",W="contentTouchend",z="contentDbltap",K="contentTap",Y="contentTouchmove",X="contentWheel",q="relative",Z="konvajs-content",J="_",Q="container",tt=5,et="",nt=[m,b,_,w,g,M,D,F,y,E,O,S,x,C,P,k],rt=nt.length;function it(t,e){t.content.addEventListener(e,(function(n){t[J+e](n)}),!1)}var ot="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";function at(t){return void 0===t&&(t={}),(t.clipFunc||t.clipWidth||t.clipHeight)&&i.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}e.stages=[];var st=function(t){function n(n){var r=t.call(this,at(n))||this;return r._pointerPositions=[],r._changedPointerPositions=[],r._buildDOM(),r._bindContentEvents(),e.stages.push(r),r.on("widthChange.konva heightChange.konva",r._resizeDOM),r.on("visibleChange.konva",r._checkVisibility),r.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",(function(){at(r.attrs)})),r._checkVisibility(),r}return r(n,t),n.prototype._validateAdd=function(t){var e="Layer"===t.getType(),n="FastLayer"===t.getType(),r=e||n;r||i.Util.throw("You may only add layers to the stage.")},n.prototype._checkVisibility=function(){if(this.content){var t=this.visible()?"":"none";this.content.style.display=t}},n.prototype.setContainer=function(t){if(typeof t===d){if("."===t.charAt(0)){var e=t.slice(1);t=document.getElementsByClassName(e)[0]}else{var n;n="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(n)}if(!t)throw"Can not find container in document with id "+n}return this._setAttr(Q,t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this},n.prototype.shouldDrawHit=function(){return!0},n.prototype.clear=function(){var t,e=this.children,n=e.length;for(t=0;t<n;t++)e[t].clear();return this},n.prototype.clone=function(t){return t||(t={}),t.container=document.createElement("div"),a.Container.prototype.clone.call(this,t)},n.prototype.destroy=function(){t.prototype.destroy.call(this);var n=this.content;n&&i.Util._isInDocument(n)&&this.container().removeChild(n);var r=e.stages.indexOf(this);return r>-1&&e.stages.splice(r,1),this},n.prototype.getPointerPosition=function(){var t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(i.Util.warn(ot),null)},n.prototype._getPointerById=function(t){return this._pointerPositions.find((function(e){return e.id===t}))},n.prototype.getPointersPositions=function(){return this._pointerPositions},n.prototype.getStage=function(){return this},n.prototype.getContent=function(){return this.content},n.prototype._toKonvaCanvas=function(t){t=t||{};var e=t.x||0,n=t.y||0,r=new c.SceneCanvas({width:t.width||this.width(),height:t.height||this.height(),pixelRatio:t.pixelRatio||1}),i=r.getContext()._context,o=this.children;return(e||n)&&i.translate(-1*e,-1*n),o.each((function(r){if(r.isVisible()){var o=r._toKonvaCanvas(t);i.drawImage(o._canvas,e,n,o.getWidth()/o.getPixelRatio(),o.getHeight()/o.getPixelRatio())}})),r},n.prototype.getIntersection=function(t,e){if(!t)return null;var n,r,i=this.children,o=i.length,a=o-1;for(n=a;n>=0;n--)if(r=i[n].getIntersection(t,e),r)return r;return null},n.prototype._resizeDOM=function(){var t=this.width(),e=this.height();this.content&&(this.content.style.width=t+p,this.content.style.height=e+p),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.each((function(n){n.setSize({width:t,height:e}),n.draw()}))},n.prototype.add=function(e){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}t.prototype.add.call(this,e);var r=this.children.length;return r>tt&&i.Util.warn("The stage has "+r+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),s.Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this},n.prototype.getParent=function(){return null},n.prototype.getLayer=function(){return null},n.prototype.hasPointerCapture=function(t){return l.hasPointerCapture(t,this)},n.prototype.setPointerCapture=function(t){l.setPointerCapture(t,this)},n.prototype.releaseCapture=function(t){l.releaseCapture(t,this)},n.prototype.getLayers=function(){return this.getChildren()},n.prototype._bindContentEvents=function(){if(s.Konva.isBrowser)for(var t=0;t<rt;t++)it(this,nt[t])},n.prototype._mouseenter=function(t){this.setPointersPositions(t),this._fire(m,{evt:t,target:this,currentTarget:this})},n.prototype._mouseover=function(t){this.setPointersPositions(t),this._fire(j,{evt:t}),this._fire(y,{evt:t,target:this,currentTarget:this})},n.prototype._mouseout=function(t){this.setPointersPositions(t);var e=this.targetShape,n=!h.DD.isDragging||s.Konva.hitOnDragEnabled;e&&n?(e._fireAndBubble(g,{evt:t}),e._fireAndBubble(v,{evt:t}),this._fire(v,{evt:t,target:this,currentTarget:this}),this.targetShape=null):n&&(this._fire(v,{evt:t,target:this,currentTarget:this}),this._fire(g,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[],this._fire(I,{evt:t})},n.prototype._mousemove=function(t){if(s.Konva.UA.ieMobile)return this._touchmove(t);this.setPointersPositions(t);var e,n=i.Util._getFirstPointerId(t),r=!h.DD.isDragging||s.Konva.hitOnDragEnabled;if(r){if(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()){var o=!this.targetShape||this.targetShape!==e;r&&o?(this.targetShape&&(this.targetShape._fireAndBubble(g,{evt:t,pointerId:n},e),this.targetShape._fireAndBubble(v,{evt:t,pointerId:n},e)),e._fireAndBubble(y,{evt:t,pointerId:n},this.targetShape),e._fireAndBubble(m,{evt:t,pointerId:n},this.targetShape),e._fireAndBubble(_,{evt:t,pointerId:n}),this.targetShape=e):e._fireAndBubble(_,{evt:t,pointerId:n})}else this.targetShape&&r&&(this.targetShape._fireAndBubble(g,{evt:t,pointerId:n}),this.targetShape._fireAndBubble(v,{evt:t,pointerId:n}),this._fire(y,{evt:t,target:this,currentTarget:this,pointerId:n}),this.targetShape=null),this._fire(_,{evt:t,target:this,currentTarget:this,pointerId:n});this._fire(G,{evt:t})}t.cancelable&&t.preventDefault()},n.prototype._mousedown=function(t){if(s.Konva.UA.ieMobile)return this._touchstart(t);this.setPointersPositions(t);var e=i.Util._getFirstPointerId(t),n=this.getIntersection(this.getPointerPosition());h.DD.justDragged=!1,s.Konva.listenClickTap=!0,n&&n.isListening()?(this.clickStartShape=n,n._fireAndBubble(b,{evt:t,pointerId:e})):this._fire(b,{evt:t,target:this,currentTarget:this,pointerId:e}),this._fire(R,{evt:t})},n.prototype._mouseup=function(t){if(s.Konva.UA.ieMobile)return this._touchend(t);this.setPointersPositions(t);var e=i.Util._getFirstPointerId(t),n=this.getIntersection(this.getPointerPosition()),r=this.clickStartShape,o=this.clickEndShape,a=!1;s.Konva.inDblClickWindow?(a=!0,clearTimeout(this.dblTimeout)):h.DD.justDragged||(s.Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout((function(){s.Konva.inDblClickWindow=!1}),s.Konva.dblClickWindow),n&&n.isListening()?(this.clickEndShape=n,n._fireAndBubble(w,{evt:t,pointerId:e}),s.Konva.listenClickTap&&r&&r._id===n._id&&(n._fireAndBubble(A,{evt:t,pointerId:e}),a&&o&&o===n&&n._fireAndBubble(T,{evt:t,pointerId:e}))):(this._fire(w,{evt:t,target:this,currentTarget:this,pointerId:e}),s.Konva.listenClickTap&&this._fire(A,{evt:t,target:this,currentTarget:this,pointerId:e}),a&&this._fire(T,{evt:t,target:this,currentTarget:this,pointerId:e})),this._fire($,{evt:t}),s.Konva.listenClickTap&&(this._fire(V,{evt:t}),a&&this._fire(H,{evt:t})),s.Konva.listenClickTap=!1,t.cancelable&&t.preventDefault()},n.prototype._contextmenu=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(O,{evt:t}):this._fire(O,{evt:t,target:this,currentTarget:this}),this._fire(U,{evt:t})},n.prototype._touchstart=function(t){var e=this;this.setPointersPositions(t);var n=!1;this._changedPointerPositions.forEach((function(r){var i=e.getIntersection(r);s.Konva.listenClickTap=!0,h.DD.justDragged=!1;var o=i&&i.isListening();o&&(s.Konva.captureTouchEventsEnabled&&i.setPointerCapture(r.id),e.tapStartShape=i,i._fireAndBubble(M,{evt:t,pointerId:r.id},e),n=!0,i.isListening()&&i.preventDefault()&&t.cancelable&&t.preventDefault())})),n||this._fire(M,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire(B,{evt:t})},n.prototype._touchmove=function(t){var e=this;this.setPointersPositions(t);var n=!h.DD.isDragging||s.Konva.hitOnDragEnabled;if(n){var r=!1,i={};this._changedPointerPositions.forEach((function(n){var o=l.getCapturedShape(n.id)||e.getIntersection(n),a=o&&o.isListening();a&&(i[o._id]||(i[o._id]=!0,o._fireAndBubble(D,{evt:t,pointerId:n.id}),r=!0,o.isListening()&&o.preventDefault()&&t.cancelable&&t.preventDefault()))})),r||this._fire(D,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire(Y,{evt:t})}h.DD.isDragging&&h.DD.node.preventDefault()&&t.cancelable&&t.preventDefault()},n.prototype._touchend=function(t){var e=this;this.setPointersPositions(t);var n=this.clickEndShape,r=!1;s.Konva.inDblClickWindow?(r=!0,clearTimeout(this.dblTimeout)):h.DD.justDragged||(s.Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout((function(){s.Konva.inDblClickWindow=!1}),s.Konva.dblClickWindow);var i=!1,o={},a=!1,c=!1;this._changedPointerPositions.forEach((function(h){var u=l.getCapturedShape(h.id)||e.getIntersection(h);u&&u.releaseCapture(h.id);var f=u&&u.isListening();f&&(o[u._id]||(o[u._id]=!0,e.clickEndShape=u,u._fireAndBubble(F,{evt:t,pointerId:h.id}),i=!0,s.Konva.listenClickTap&&u===e.tapStartShape&&(a=!0,u._fireAndBubble(N,{evt:t,pointerId:h.id}),r&&n&&n===u&&(c=!0,u._fireAndBubble(L,{evt:t,pointerId:h.id}))),u.isListening()&&u.preventDefault()&&t.cancelable&&t.preventDefault()))})),i||this._fire(F,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),s.Konva.listenClickTap&&!a&&this._fire(N,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),r&&!c&&this._fire(L,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire(W,{evt:t}),s.Konva.listenClickTap&&(this._fire(K,{evt:t}),r&&this._fire(z,{evt:t})),s.Konva.listenClickTap=!1},n.prototype._wheel=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(E,{evt:t}):this._fire(E,{evt:t,target:this,currentTarget:this}),this._fire(X,{evt:t})},n.prototype._pointerdown=function(t){if(s.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=l.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(S,l.createEvent(t))}},n.prototype._pointermove=function(t){if(s.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=l.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(x,l.createEvent(t))}},n.prototype._pointerup=function(t){if(s.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=l.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(C,l.createEvent(t)),l.releaseCapture(t.pointerId)}},n.prototype._pointercancel=function(t){if(s.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=l.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(C,l.createEvent(t)),l.releaseCapture(t.pointerId)}},n.prototype._lostpointercapture=function(t){l.releaseCapture(t.pointerId)},n.prototype.setPointersPositions=function(t){var e=this,n=this._getContentPosition(),r=null,o=null;t=t||window.event,void 0!==t.touches?(this._pointerPositions=[],this._changedPointerPositions=[],i.Collection.prototype.each.call(t.touches,(function(t){e._pointerPositions.push({id:t.identifier,x:(t.clientX-n.left)/n.scaleX,y:(t.clientY-n.top)/n.scaleY})})),i.Collection.prototype.each.call(t.changedTouches||t.touches,(function(t){e._changedPointerPositions.push({id:t.identifier,x:(t.clientX-n.left)/n.scaleX,y:(t.clientY-n.top)/n.scaleY})}))):(r=(t.clientX-n.left)/n.scaleX,o=(t.clientY-n.top)/n.scaleY,this.pointerPos={x:r,y:o},this._pointerPositions=[{x:r,y:o,id:i.Util._getFirstPointerId(t)}],this._changedPointerPositions=[{x:r,y:o,id:i.Util._getFirstPointerId(t)}])},n.prototype._setPointerPosition=function(t){i.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)},n.prototype._getContentPosition=function(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}},n.prototype._buildDOM=function(){if(this.bufferCanvas=new c.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new c.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),s.Konva.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML=et,this.content=document.createElement("div"),this.content.style.position=q,this.content.style.userSelect="none",this.content.className=Z,this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}},n.prototype.cache=function(){return i.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this},n.prototype.clearCache=function(){return this},n.prototype.batchDraw=function(){return this.children.each((function(t){t.batchDraw()})),this},n}(a.Container);e.Stage=st,st.prototype.nodeType=f,u._registerNode(st),o.Factory.addGetterSetter(st,"container")},ed3d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d777"),i=function(){return r.glob.performance&&r.glob.performance.now?function(){return r.glob.performance.now()}:function(){return(new Date).getTime()}}(),o=function(){function t(e,n){this.id=t.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:i(),frameRate:0},this.func=e,this.setLayers(n)}return t.prototype.setLayers=function(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this},t.prototype.getLayers=function(){return this.layers},t.prototype.addLayer=function(t){var e,n=this.layers,r=n.length;for(e=0;e<r;e++)if(n[e]._id===t._id)return!1;return this.layers.push(t),!0},t.prototype.isRunning=function(){var e,n=t,r=n.animations,i=r.length;for(e=0;e<i;e++)if(r[e].id===this.id)return!0;return!1},t.prototype.start=function(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=i(),t._addAnimation(this),this},t.prototype.stop=function(){return t._removeAnimation(this),this},t.prototype._updateFrameObject=function(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff},t._addAnimation=function(t){this.animations.push(t),this._handleAnimation()},t._removeAnimation=function(t){var e,n=t.id,r=this.animations,i=r.length;for(e=0;e<i;e++)if(r[e].id===n){this.animations.splice(e,1);break}},t._runFrames=function(){var t,e,n,r,o,a,s,c,h,u={},l=this.animations;for(r=0;r<l.length;r++)if(t=l[r],e=t.layers,n=t.func,t._updateFrameObject(i()),a=e.length,h=!n||!1!==n.call(t,t.frame),h)for(o=0;o<a;o++)s=e[o],void 0!==s._id&&(u[s._id]=s);for(c in u)u.hasOwnProperty(c)&&u[c].draw()},t._animationLoop=function(){var e=t;e.animations.length?(e._runFrames(),requestAnimationFrame(e._animationLoop)):e.animRunning=!1},t._handleAnimation=function(){this.animRunning||(this.animRunning=!0,requestAnimationFrame(this._animationLoop))},t.animations=[],t.animIdCounter=0,t.animRunning=!1,t}();e.Animation=o},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f0b4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9cb8"),i=n("4546"),o="get",a="set";e.Factory={addGetterSetter:function(t,e,n,r,i){this.addGetter(t,e,n),this.addSetter(t,e,r,i),this.addOverloadedGetterSetter(t,e)},addGetter:function(t,e,n){var i=o+r.Util._capitalize(e);t.prototype[i]=t.prototype[i]||function(){var t=this.attrs[e];return void 0===t?n:t}},addSetter:function(t,n,i,o){var s=a+r.Util._capitalize(n);t.prototype[s]||e.Factory.overWriteSetter(t,n,i,o)},overWriteSetter:function(t,e,n,i){var o=a+r.Util._capitalize(e);t.prototype[o]=function(t){return n&&void 0!==t&&null!==t&&(t=n.call(this,t,e)),this._setAttr(e,t),i&&i.call(this),this}},addComponentsGetterSetter:function(t,e,n,s,c){var h,u,l=n.length,f=r.Util._capitalize,d=o+f(e),p=a+f(e);t.prototype[d]=function(){var t={};for(h=0;h<l;h++)u=n[h],t[u]=this.getAttr(e+f(u));return t};var g=i.getComponentValidator(n);t.prototype[p]=function(t){var n,r=this.attrs[e];for(n in s&&(t=s.call(this,t)),g&&g.call(this,t,e),t)t.hasOwnProperty(n)&&this._setAttr(e+f(n),t[n]);return this._fireChangeEvent(e,r,t),c&&c.call(this),this},this.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter:function(t,e){var n=r.Util._capitalize(e),i=a+n,s=o+n;t.prototype[e]=function(){return arguments.length?(this[i](arguments[0]),this):this[s]()}},addDeprecatedGetterSetter:function(t,e,n,i){r.Util.error("Adding deprecated "+e);var a=o+r.Util._capitalize(e),s=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[a]=function(){r.Util.error(s);var t=this.attrs[e];return void 0===t?n:t},this.addSetter(t,e,i,(function(){r.Util.error(s)})),this.addOverloadedGetterSetter(t,e)},backCompat:function(t,e){r.Util.each(e,(function(e,n){var i=t.prototype[n],s=o+r.Util._capitalize(e),c=a+r.Util._capitalize(e);function h(){i.apply(this,arguments),r.Util.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}t.prototype[e]=h,t.prototype[s]=h,t.prototype[c]=h}))},afterSetFilter:function(){this._filterUpToDate=!1}}},f35c:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("9cb8"),o=n("ea61"),a=n("d777"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._validateAdd=function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&i.Util.throw("You may only add groups and shapes to groups.")},e}(o.Container);e.Group=s,s.prototype.nodeType="Group",a._registerNode(s),i.Collection.mapMethods(s)},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f655:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i,o=n("9cb8"),a=n("c527"),s=n("d777"),c=n("f0b4"),h=n("4546");function u(){if(i)return i;var t=o.Util.createCanvasElement(),e=t.getContext("2d");return i=function(){var t=s.Konva._global.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}(),i}var l=function(){function t(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var e=t||{},n=e.pixelRatio||s.Konva.pixelRatio||u();this.pixelRatio=n,this._canvas=o.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}return t.prototype.getContext=function(){return this.context},t.prototype.getPixelRatio=function(){return this.pixelRatio},t.prototype.setPixelRatio=function(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)},t.prototype.setWidth=function(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)},t.prototype.setHeight=function(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.setSize=function(t,e){this.setWidth(t||0),this.setHeight(e||0)},t.prototype.toDataURL=function(t,e){try{return this._canvas.toDataURL(t,e)}catch(n){try{return this._canvas.toDataURL()}catch(r){return o.Util.error("Unable to get data URL. "+r.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}},t}();e.Canvas=l,c.Factory.addGetterSetter(l,"pixelRatio",void 0,h.getNumberValidator());var f=function(t){function e(e){void 0===e&&(e={width:0,height:0});var n=t.call(this,e)||this;return n.context=new a.SceneContext(n),n.setSize(e.width,e.height),n}return r(e,t),e}(l);e.SceneCanvas=f;var d=function(t){function e(e){void 0===e&&(e={width:0,height:0});var n=t.call(this,e)||this;return n.hitCanvas=!0,n.context=new a.HitContext(n),n.setSize(e.width,e.height),n}return r(e,t),e}(l);e.HitCanvas=d},f709:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(e,"__esModule",{value:!0});var o=n("9cb8"),a=n("f0b4"),s=n("fce6"),c=n("4546"),h=n("d777"),u=function(t){function e(e){var n=t.call(this,e)||this;return n.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")})),n}return r(e,t),e.prototype._sceneFunc=function(t){var e,n,r,i=this.points(),o=i.length,a=this.tension(),s=this.closed(),c=this.bezier();if(o){if(t.beginPath(),t.moveTo(i[0],i[1]),0!==a&&o>4){e=this.getTensionPoints(),n=e.length,r=s?0:4,s||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);while(r<n-2)t.bezierCurveTo(e[r++],e[r++],e[r++],e[r++],e[r++],e[r++]);s||t.quadraticCurveTo(e[n-2],e[n-1],i[o-2],i[o-1])}else if(c){r=2;while(r<o)t.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++])}else for(r=2;r<o;r+=2)t.lineTo(i[r],i[r+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}},e.prototype.getTensionPoints=function(){return this._getCache("tensionPoints",this._getTensionPoints)},e.prototype._getTensionPoints=function(){return this.closed()?this._getTensionPointsClosed():o.Util._expandPoints(this.points(),this.tension())},e.prototype._getTensionPointsClosed=function(){var t=this.points(),e=t.length,n=this.tension(),r=o.Util._getControlPoints(t[e-2],t[e-1],t[0],t[1],t[2],t[3],n),i=o.Util._getControlPoints(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],n),a=o.Util._expandPoints(t,n),s=[r[2],r[3]].concat(a).concat([i[0],i[1],t[e-2],t[e-1],i[2],i[3],r[0],r[1],t[0],t[1]]);return s},e.prototype.getWidth=function(){return this.getSelfRect().width},e.prototype.getHeight=function(){return this.getSelfRect().height},e.prototype.getSelfRect=function(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};t=0!==this.tension()?i([t[0],t[1]],this._getTensionPoints(),[t[t.length-2],t[t.length-1]]):this.points();for(var e,n,r=t[0],o=t[0],a=t[1],s=t[1],c=0;c<t.length/2;c++)e=t[2*c],n=t[2*c+1],r=Math.min(r,e),o=Math.max(o,e),a=Math.min(a,n),s=Math.max(s,n);return{x:r,y:a,width:o-r,height:s-a}},e}(s.Shape);e.Line=u,u.prototype.className="Line",u.prototype._attrsAffectingSize=["points","bezier","tension"],h._registerNode(u),a.Factory.addGetterSetter(u,"closed",!1),a.Factory.addGetterSetter(u,"bezier",!1),a.Factory.addGetterSetter(u,"tension",0,c.getNumberValidator()),a.Factory.addGetterSetter(u,"points",[],c.getNumberArrayValidator()),o.Collection.mapMethods(u)},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fce6:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i,o=n("9cb8"),a=n("f0b4"),s=n("4971"),c=n("4546"),h=n("d777"),u=n("7d2a"),l="hasShadow",f="shadowRGBA",d="patternImage",p="linearGradient",g="radialGradient";function v(){return i||(i=o.Util.createCanvasElement().getContext("2d"),i)}function y(t){t.fill()}function m(t){t.stroke()}function _(t){t.fill()}function b(t){t.stroke()}function w(){this._clearCache(l)}function x(){this._clearCache(f)}function S(){this._clearCache(d)}function C(){this._clearCache(p)}function P(){this._clearCache(g)}e.shapes={};var k=function(t){function n(n){var r,i=t.call(this,n)||this;while(1)if(r=o.Util.getRandomColor(),r&&!(r in e.shapes))break;return i.colorKey=r,e.shapes[r]=i,i.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",w),i.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",x),i.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva",S),i.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",C),i.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",P),i}return r(n,t),n.prototype.getContext=function(){return this.getLayer().getContext()},n.prototype.getCanvas=function(){return this.getLayer().getCanvas()},n.prototype.getSceneFunc=function(){return this.attrs.sceneFunc||this["_sceneFunc"]},n.prototype.getHitFunc=function(){return this.attrs.hitFunc||this["_hitFunc"]},n.prototype.hasShadow=function(){return this._getCache(l,this._hasShadow)},n.prototype._hasShadow=function(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())},n.prototype._getFillPattern=function(){return this._getCache(d,this.__getFillPattern)},n.prototype.__getFillPattern=function(){if(this.fillPatternImage()){var t=v(),e=t.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");return e}},n.prototype._getLinearGradient=function(){return this._getCache(p,this.__getLinearGradient)},n.prototype.__getLinearGradient=function(){var t=this.fillLinearGradientColorStops();if(t){for(var e=v(),n=this.fillLinearGradientStartPoint(),r=this.fillLinearGradientEndPoint(),i=e.createLinearGradient(n.x,n.y,r.x,r.y),o=0;o<t.length;o+=2)i.addColorStop(t[o],t[o+1]);return i}},n.prototype._getRadialGradient=function(){return this._getCache(g,this.__getRadialGradient)},n.prototype.__getRadialGradient=function(){var t=this.fillRadialGradientColorStops();if(t){for(var e=v(),n=this.fillRadialGradientStartPoint(),r=this.fillRadialGradientEndPoint(),i=e.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),r.x,r.y,this.fillRadialGradientEndRadius()),o=0;o<t.length;o+=2)i.addColorStop(t[o],t[o+1]);return i}},n.prototype.getShadowRGBA=function(){return this._getCache(f,this._getShadowRGBA)},n.prototype._getShadowRGBA=function(){if(this.hasShadow()){var t=o.Util.colorToRGBA(this.shadowColor());return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}},n.prototype.hasFill=function(){return this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())},n.prototype.hasStroke=function(){return this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())},n.prototype.hasHitStroke=function(){var t=this.hitStrokeWidth();return"auto"===t?this.hasStroke():this.strokeEnabled()&&!!t},n.prototype.intersects=function(t){var e,n=this.getStage(),r=n.bufferHitCanvas;return r.getContext().clear(),this.drawHit(r),e=r.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,e[3]>0},n.prototype.destroy=function(){return s.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this},n.prototype._useBufferCanvas=function(t){return!(t&&!this.hasShadow()||!this.perfectDrawEnabled()||1===this.getAbsoluteOpacity()||!this.hasFill()||!this.hasStroke()||!this.getStage())},n.prototype.setStrokeHitEnabled=function(t){o.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)},n.prototype.getStrokeHitEnabled=function(){return 0!==this.hitStrokeWidth()},n.prototype.getSelfRect=function(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}},n.prototype.getClientRect=function(t){t=t||{};var e=t.skipTransform,n=t.relativeTo,r=this.getSelfRect(),i=!t.skipStroke&&this.hasStroke(),o=i&&this.strokeWidth()||0,a=r.width+o,s=r.height+o,c=!t.skipShadow&&this.hasShadow(),h=c?this.shadowOffsetX():0,u=c?this.shadowOffsetY():0,l=a+Math.abs(h),f=s+Math.abs(u),d=c&&this.shadowBlur()||0,p=l+2*d,g=f+2*d,v=0;Math.round(o/2)!==o/2&&(v=1);var y={width:p+v,height:g+v,x:-Math.round(o/2+d)+Math.min(h,0)+r.x,y:-Math.round(o/2+d)+Math.min(u,0)+r.y};return e?y:this._transformedRect(y,n)},n.prototype.drawScene=function(t,e,n,r){var i,o,a,s=this.getLayer(),c=t||s.getCanvas(),h=c.getContext(),u=this._getCanvasCache(),l=this.sceneFunc(),f=this.hasShadow(),d=this.hasStroke();if(!this.isVisible()&&!n)return this;if(u)return h.save(),s._applyTransform(this,h,e),this._drawCachedSceneCanvas(h),h.restore(),this;if(!l)return this;if(h.save(),this._useBufferCanvas(n)&&!r){if(i=this.getStage(),o=i.bufferCanvas,a=o.getContext(),a.clear(),a.save(),a._applyLineJoin(this),!n)if(s)s._applyTransform(this,a,e);else{var p=this.getAbsoluteTransform(e).getMatrix();h.transform(p[0],p[1],p[2],p[3],p[4],p[5])}l.call(this,a,this),a.restore();var g=o.pixelRatio;f&&!c.hitCanvas?(h.save(),h._applyShadow(this),h._applyOpacity(this),h._applyGlobalCompositeOperation(this),h.drawImage(o._canvas,0,0,o.width/g,o.height/g),h.restore()):(h._applyOpacity(this),h._applyGlobalCompositeOperation(this),h.drawImage(o._canvas,0,0,o.width/g,o.height/g))}else{if(h._applyLineJoin(this),!n)if(s)s._applyTransform(this,h,e);else{var v=this.getAbsoluteTransform(e).getMatrix();h.transform(v[0],v[1],v[2],v[3],v[4],v[5])}f&&d&&!c.hitCanvas?(h.save(),n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),h._applyShadow(this),l.call(this,h,this),h.restore(),this.hasFill()&&this.shadowForStrokeEnabled()&&l.call(this,h,this)):f&&!c.hitCanvas?(h.save(),n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),h._applyShadow(this),l.call(this,h,this),h.restore()):(n||(h._applyOpacity(this),h._applyGlobalCompositeOperation(this)),l.call(this,h,this))}return h.restore(),this},n.prototype.drawHit=function(t,e,n){var r=this.getLayer(),i=t||r.hitCanvas,a=i&&i.getContext(),s=this.hitFunc()||this.sceneFunc(),c=this._getCanvasCache(),h=c&&c.hit;if(this.colorKey||(console.log(this),o.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. See the shape in logs above. If you want to reuse shape you should call remove() instead of destroy()")),!this.shouldDrawHit()&&!n)return this;if(h)return a.save(),r._applyTransform(this,a,e),this._drawCachedHitCanvas(a),a.restore(),this;if(!s)return this;if(a.save(),a._applyLineJoin(this),!n)if(r)r._applyTransform(this,a,e);else{var u=this.getAbsoluteTransform(e).getMatrix();a.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return s.call(this,a,this),a.restore(),this},n.prototype.drawHitFromCache=function(t){void 0===t&&(t=0);var e,n,r,i,a,s,c=this._getCanvasCache(),h=this._getCachedSceneCanvas(),u=c.hit,l=u.getContext(),f=u.getWidth(),d=u.getHeight();l.clear(),l.drawImage(h._canvas,0,0,f,d);try{for(e=l.getImageData(0,0,f,d),n=e.data,r=n.length,i=o.Util._hexToRgb(this.colorKey),a=0;a<r;a+=4)s=n[a+3],s>t?(n[a]=i.r,n[a+1]=i.g,n[a+2]=i.b,n[a+3]=255):n[a+3]=0;l.putImageData(e,0,0)}catch(p){o.Util.error("Unable to draw hit graph from cached scene canvas. "+p.message)}return this},n.prototype.hasPointerCapture=function(t){return u.hasPointerCapture(t,this)},n.prototype.setPointerCapture=function(t){u.setPointerCapture(t,this)},n.prototype.releaseCapture=function(t){u.releaseCapture(t,this)},n}(s.Node);e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=m,k.prototype._fillFuncHit=_,k.prototype._strokeFuncHit=b,k.prototype._centroid=!1,k.prototype.nodeType="Shape",h._registerNode(k),a.Factory.addGetterSetter(k,"stroke",void 0,c.getStringValidator()),a.Factory.addGetterSetter(k,"strokeWidth",2,c.getNumberValidator()),a.Factory.addGetterSetter(k,"hitStrokeWidth","auto",c.getNumberOrAutoValidator()),a.Factory.addGetterSetter(k,"strokeHitEnabled",!0,c.getBooleanValidator()),a.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,c.getBooleanValidator()),a.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,c.getBooleanValidator()),a.Factory.addGetterSetter(k,"lineJoin"),a.Factory.addGetterSetter(k,"lineCap"),a.Factory.addGetterSetter(k,"sceneFunc"),a.Factory.addGetterSetter(k,"hitFunc"),a.Factory.addGetterSetter(k,"dash"),a.Factory.addGetterSetter(k,"dashOffset",0,c.getNumberValidator()),a.Factory.addGetterSetter(k,"shadowColor",void 0,c.getStringValidator()),a.Factory.addGetterSetter(k,"shadowBlur",0,c.getNumberValidator()),a.Factory.addGetterSetter(k,"shadowOpacity",1,c.getNumberValidator()),a.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),a.Factory.addGetterSetter(k,"shadowOffsetX",0,c.getNumberValidator()),a.Factory.addGetterSetter(k,"shadowOffsetY",0,c.getNumberValidator()),a.Factory.addGetterSetter(k,"fillPatternImage"),a.Factory.addGetterSetter(k,"fill",void 0,c.getStringValidator()),a.Factory.addGetterSetter(k,"fillPatternX",0,c.getNumberValidator()),a.Factory.addGetterSetter(k,"fillPatternY",0,c.getNumberValidator()),a.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),a.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),a.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),a.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),a.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),a.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),a.Factory.addGetterSetter(k,"fillEnabled",!0),a.Factory.addGetterSetter(k,"strokeEnabled",!0),a.Factory.addGetterSetter(k,"shadowEnabled",!0),a.Factory.addGetterSetter(k,"dashEnabled",!0),a.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),a.Factory.addGetterSetter(k,"fillPriority","color"),a.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),a.Factory.addGetterSetter(k,"fillPatternOffsetX",0,c.getNumberValidator()),a.Factory.addGetterSetter(k,"fillPatternOffsetY",0,c.getNumberValidator()),a.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),a.Factory.addGetterSetter(k,"fillPatternScaleX",1,c.getNumberValidator()),a.Factory.addGetterSetter(k,"fillPatternScaleY",1,c.getNumberValidator()),a.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),a.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),a.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),a.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),a.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),a.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),a.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),a.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),a.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),a.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),a.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),a.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),a.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),a.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),a.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),a.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),a.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),a.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),a.Factory.addGetterSetter(k,"fillPatternRotation",0),a.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),o.Collection.mapMethods(k)},fd15:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("36da"),i=n("8603"),o=n("1bd8"),a=n("1f21"),s=n("383f"),c=n("229a"),h=n("da04"),u=n("f709"),l=n("8c18"),f=n("5d5a"),d=n("26c8"),p=n("bf11"),g=n("a34e"),v=n("e3af"),y=n("5414"),m=n("2a01"),_=n("d488"),b=n("96ee"),w=n("bdee"),x=n("6b7e"),S=n("c742"),C=n("e4b0"),P=n("bcb1"),k=n("cf29"),O=n("926b"),A=n("461e"),T=n("89c1"),M=n("1c49"),F=n("9470"),N=n("bbce"),L=n("405a"),D=n("2013"),E=n("8e84"),I=n("b33b"),j=n("769d"),G=n("7cc1"),R=n("122f");e.Konva=r.Konva.Util._assign(r.Konva,{Arc:i.Arc,Arrow:o.Arrow,Circle:a.Circle,Ellipse:s.Ellipse,Image:c.Image,Label:h.Label,Tag:h.Tag,Line:u.Line,Path:l.Path,Rect:f.Rect,RegularPolygon:d.RegularPolygon,Ring:p.Ring,Sprite:g.Sprite,Star:v.Star,Text:y.Text,TextPath:m.TextPath,Transformer:_.Transformer,Wedge:b.Wedge,Filters:{Blur:w.Blur,Brighten:x.Brighten,Contrast:S.Contrast,Emboss:C.Emboss,Enhance:P.Enhance,Grayscale:k.Grayscale,HSL:O.HSL,HSV:A.HSV,Invert:T.Invert,Kaleidoscope:M.Kaleidoscope,Mask:F.Mask,Noise:N.Noise,Pixelate:L.Pixelate,Posterize:D.Posterize,RGB:E.RGB,RGBA:I.RGBA,Sepia:j.Sepia,Solarize:G.Solarize,Threshold:R.Threshold}})},fdbc:function(t,e){t.exports={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}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}}]);
|
||
//# sourceMappingURL=picture-annotation-chunk-vendors.min.js.map
|