PageSourceSearch

https://admarket.se/assets/js/common_app_711dd51f.777aae02904d32261488.js

js admarket.se collected 2026-09-25 15:11:17 UTC 114,778 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="be66929c-6598-5330-8d9d-4d8a45d8ce1e")}catch(e){}}();
3(self.webpackChunk_schibsted_ads_admarket_front=self.webpackChunk_schibsted_ads_admarket_front||[]).push([[5208],{
vendor: 1,905 bytes, line 3
3"../../node_modules/konva/lib/Animation.js":function(St,ut,L){L.d(ut,{X:function(){return J}});var x=L("../../node_modules/konva/lib/Global.js"),M=L("../../node_modules/konva/lib/Util.js"),y=function(){return x.TI.performance&&x.TI.performance.now?function(){return x.TI.performance.now()}:function(){return new Date().getTime()}}();class J{constructor(d,C){this.id=J.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:y(),frameRate:0},this.func=d,this.setLayers(C)}setLayers(d){var C=[];return d?d.length>0?C=d:C=[d]:C=[],this.layers=C,this}getLayers(){return this.layers}addLayer(d){var C=this.layers,D=C.length,O;for(O=0;O<D;O++)if(C[O]._id===d._id)return!1;return this.layers.push(d),!0}isRunning(){var d=J,C=d.animations,D=C.length,O;for(O=0;O<D;O++)if(C[O].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=y(),J._addAnimation(this),this}stop(){return J._removeAnimation(this),this}_updateFrameObject(d){this.frame.timeDiff=d-this.frame.lastTime,this.frame.lastTime=d,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(d){this.animations.push(d),this._handleAnimation()}static _removeAnimation(d){var C=d.id,D=this.animations,O=D.length,F;for(F=0;F<O;F++)if(D[F].id===C){this.animations.splice(F,1);break}}static _runFrames(){var d={},C=this.animations,D,O,F,X,Y,Z,at,j,tt;for(X=0;X<C.length;X++)if(D=C[X],O=D.layers,F=D.func,D._updateFrameObject(y()),Z=O.length,F?tt=F.call(D,D.frame)!==!1:tt=!0,!!tt)for(Y=0;Y<Z;Y++)at=O[Y],at._id!==void 0&&(d[at._id]=at);for(j in d)d.hasOwnProperty(j)&&d[j].batchDraw()}static _animationLoop(){var d=J;d.animations.length?(d._runFrames(),M.J.requestAnimFrame(d._animationLoop)):d.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,M.J.requestAnimFrame(this._animationLoop))}}J.animations=[],J.animIdCounter=0,J.animRunning=!1},
vendor: 2,296 bytes, line 3
3"../../node_modules/konva/lib/Canvas.js":function(St,ut,L){L.d(ut,{Hl:function(){return D},Sf:function(){return F},pv:function(){return O}});var x=L("../../node_modules/konva/lib/Util.js"),M=L("../../node_modules/konva/lib/Context.js"),y=L("../../node_modules/konva/lib/Global.js"),J=L("../../node_modules/konva/lib/Factory.js"),W=L("../../node_modules/konva/lib/Validators.js"),d;function C(){if(d)return d;var X=x.J.createCanvasElement(),Y=X.getContext("2d");return d=function(){var Z=y.kg._global.devicePixelRatio||1,at=Y.webkitBackingStorePixelRatio||Y.mozBackingStorePixelRatio||Y.msBackingStorePixelRatio||Y.oBackingStorePixelRatio||Y.backingStorePixelRatio||1;return Z/at}(),x.J.releaseCanvas(X),d}class D{constructor(Y){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var Z=Y||{},at=Z.pixelRatio||y.kg.pixelRatio||C();this.pixelRatio=at,this._canvas=x.J.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"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(Y){var Z=this.pixelRatio;this.pixelRatio=Y,this.setSize(this.getWidth()/Z,this.getHeight()/Z)}setWidth(Y){this.width=this._canvas.width=Y*this.pixelRatio,this._canvas.style.width=Y+"px";var Z=this.pixelRatio,at=this.getContext()._context;at.scale(Z,Z)}setHeight(Y){this.height=this._canvas.height=Y*this.pixelRatio,this._canvas.style.height=Y+"px";var Z=this.pixelRatio,at=this.getContext()._context;at.scale(Z,Z)}getWidth(){return this.width}getHeight(){return this.height}setSize(Y,Z){this.setWidth(Y||0),this.setHeight(Z||0)}toDataURL(Y,Z){try{return this._canvas.toDataURL(Y,Z)}catch{try{return this._canvas.toDataURL()}catch(j){return x.J.error("Unable to get data URL. "+j.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}J.$.addGetterSetter(D,"pixelRatio",void 0,(0,W.oz)());class O extends D{constructor(Y={width:0,height:0}){super(Y),this.context=new M.Q_(this),this.setSize(Y.width,Y.height)}}class F extends D{constructor(Y={width:0,height:0}){super(Y),this.hitCanvas=!0,this.context=new M.Tl(this),this.setSize(Y.width,Y.height)}}},
vendor: 4,719 bytes, line 3
3"../../node_modules/konva/lib/Container.js":function(St,ut,L){L.d(ut,{m:function(){return J}});var x=L("../../node_modules/konva/lib/Factory.js"),M=L("../../node_modules/konva/lib/Node.js"),y=L("../../node_modules/konva/lib/Validators.js");class J extends M.b{constructor(){super(...arguments),this.children=[]}getChildren(d){if(!d)return this.children||[];const C=this.children||[];var D=[];return C.forEach(function(O){d(O)&&D.push(O)}),D}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(d=>{d.parent=null,d.index=0,d.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(d=>{d.parent=null,d.index=0,d.destroy()}),this.children=[],this._requestDraw(),this}add(...d){if(d.length===0)return this;if(d.length>1){for(var C=0;C<d.length;C++)this.add(d[C]);return this}const D=d[0];return D.getParent()?(D.moveTo(this),this):(this._validateAdd(D),D.index=this.getChildren().length,D.parent=this,D._clearCaches(),this.getChildren().push(D),this._fire("add",{child:D}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(d){return this._generalFind(d,!1)}findOne(d){var C=this._generalFind(d,!0);return C.length>0?C[0]:void 0}_generalFind(d,C){var D=[];return this._descendants(O=>{const F=O._isMatch(d);return F&&D.push(O),!!(F&&C)}),D}_descendants(d){let C=!1;const D=this.getChildren();for(const O of D){if(C=d(O),C)return!0;if(O.hasChildren()&&(C=O._descendants(d),C))return!0}return!1}toObject(){var d=M.b.prototype.toObject.call(this);return d.children=[],this.getChildren().forEach(C=>{d.children.push(C.toObject())}),d}isAncestorOf(d){for(var C=d.getParent();C;){if(C._id===this._id)return!0;C=C.getParent()}return!1}clone(d){var C=M.b.prototype.clone.call(this,d);return this.getChildren().forEach(function(D){C.add(D.clone())}),C}getAllIntersections(d){var C=[];return this.find("Shape").forEach(function(D){D.isVisible()&&D.intersects(d)&&C.push(D)}),C}_clearSelfAndDescendantCache(d){var C;super._clearSelfAndDescendantCache(d),!this.isCached()&&((C=this.children)===null||C===void 0||C.forEach(function(D){D._clearSelfAndDescendantCache(d)}))}_setChildrenIndices(){var d;(d=this.children)===null||d===void 0||d.forEach(function(C,D){C.index=D}),this._requestDraw()}drawScene(d,C){var D=this.getLayer(),O=d||D&&D.getCanvas(),F=O&&O.getContext(),X=this._getCanvasCache(),Y=X&&X.scene,Z=O&&O.isCache;if(!this.isVisible()&&!Z)return this;if(Y){F.save();var at=this.getAbsoluteTransform(C).getMatrix();F.transform(at[0],at[1],at[2],at[3],at[4],at[5]),this._drawCachedSceneCanvas(F),F.restore()}else this._drawChildren("drawScene",O,C);return this}drawHit(d,C){if(!this.shouldDrawHit(C))return this;var D=this.getLayer(),O=d||D&&D.hitCanvas,F=O&&O.getContext(),X=this._getCanvasCache(),Y=X&&X.hit;if(Y){F.save();var Z=this.getAbsoluteTransform(C).getMatrix();F.transform(Z[0],Z[1],Z[2],Z[3],Z[4],Z[5]),this._drawCachedHitCanvas(F),F.restore()}else this._drawChildren("drawHit",O,C);return this}_drawChildren(d,C,D){var O,F=C&&C.getContext(),X=this.clipWidth(),Y=this.clipHeight(),Z=this.clipFunc(),at=X&&Y||Z;const j=D===this;if(at){F.save();var tt=this.getAbsoluteTransform(D),rt=tt.getMatrix();if(F.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5]),F.beginPath(),Z)Z.call(this,F,this);else{var nt=this.clipX(),n=this.clipY();F.rect(nt,n,X,Y)}F.clip(),rt=tt.copy().invert().getMatrix(),F.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5])}var e=!j&&this.globalCompositeOperation()!=="source-over"&&d==="drawScene";e&&(F.save(),F._applyGlobalCompositeOperation(this)),(O=this.children)===null||O===void 0||O.forEach(function(a){a[d](C,D)}),e&&F.restore(),at&&F.restore()}getClientRect(d){var C;d=d||{};var D=d.skipTransform,O=d.relativeTo,F,X,Y,Z,at={x:1/0,y:1/0,width:0,height:0},j=this;(C=this.children)===null||C===void 0||C.forEach(function(e){if(e.visible()){var a=e.getClientRect({relativeTo:j,skipShadow:d.skipShadow,skipStroke:d.skipStroke});a.width===0&&a.height===0||(F===void 0?(F=a.x,X=a.y,Y=a.x+a.width,Z=a.y+a.height):(F=Math.min(F,a.x),X=Math.min(X,a.y),Y=Math.max(Y,a.x+a.width),Z=Math.max(Z,a.y+a.height)))}});for(var tt=this.find("Shape"),rt=!1,nt=0;nt<tt.length;nt++){var n=tt[nt];if(n._isVisible(this)){rt=!0;break}}return rt&&F!==void 0?at={x:F,y:X,width:Y-F,height:Z-X}:at={x:0,y:0,width:0,height:0},D?at:this._transformedRect(at,O)}}x.$.addComponentsGetterSetter(J,"clip",["x","y","width","height"]),x.$.addGetterSetter(J,"clipX",void 0,(0,y.oz)()),x.$.addGetterSetter(J,"clipY",void 0,(0,y.oz)()),x.$.addGetterSetter(J,"clipWidth",void 0,(0,y.oz)()),x.$.addGetterSetter(J,"clipHeight",void 0,(0,y.oz)()),x.$.addGetterSetter(J,"clipFunc")},
vendor: 8,105 bytes, line 3
3"../../node_modules/konva/lib/Context.js":function(St,ut,L){L.d(ut,{Q_:function(){return tt},Tl:function(){return rt},ob:function(){return j}});var x=L("../../node_modules/konva/lib/Util.js"),M=L("../../node_modules/konva/lib/Global.js");function y(nt){var n=[],e=nt.length,a=x.J,u,T;for(u=0;u<e;u++)T=nt[u],a._isNumber(T)?T=Math.round(T*1e3)/1e3:a._isString(T)||(T=T+""),n.push(T);return n}var J=",",W="(",d=")",C="([",D="])",O=";",F="()",X="=",Y=["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"],Z=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const at=100;class j{constructor(n){this.canvas=n,M.kg.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(n){n.fillEnabled()&&this._fill(n)}_fill(n){}strokeShape(n){n.hasStroke()&&this._stroke(n)}_stroke(n){}fillStrokeShape(n){n.attrs.fillAfterStrokeEnabled?(this.strokeShape(n),this.fillShape(n)):(this.fillShape(n),this.strokeShape(n))}getTrace(n,e){var a=this.traceArr,u=a.length,T="",v,H,R,I;for(v=0;v<u;v++)H=a[v],R=H.method,R?(I=H.args,T+=R,n?T+=F:x.J._isArray(I[0])?T+=C+I.join(J)+D:(e&&(I=I.map(k=>typeof k=="number"?Math.floor(k):k)),T+=W+I.join(J)+d)):(T+=H.property,n||(T+=X+H.val)),T+=O;return T}clearTrace(){this.traceArr=[]}_trace(n){var e=this.traceArr,a;e.push(n),a=e.length,a>=at&&e.shift()}reset(){var n=this.getCanvas().getPixelRatio();this.setTransform(1*n,0,0,1*n,0,0)}getCanvas(){return this.canvas}clear(n){var e=this.getCanvas();n?this.clearRect(n.x||0,n.y||0,n.width||0,n.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)}_applyLineCap(n){const e=n.attrs.lineCap;e&&this.setAttr("lineCap",e)}_applyOpacity(n){var e=n.getAbsoluteOpacity();e!==1&&this.setAttr("globalAlpha",e)}_applyLineJoin(n){const e=n.attrs.lineJoin;e&&this.setAttr("lineJoin",e)}setAttr(n,e){this._context[n]=e}arc(n,e,a,u,T,v){this._context.arc(n,e,a,u,T,v)}arcTo(n,e,a,u,T){this._context.arcTo(n,e,a,u,T)}beginPath(){this._context.beginPath()}bezierCurveTo(n,e,a,u,T,v){this._context.bezierCurveTo(n,e,a,u,T,v)}clearRect(n,e,a,u){this._context.clearRect(n,e,a,u)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(n,e){var a=arguments;if(a.length===2)return this._context.createImageData(n,e);if(a.length===1)return this._context.createImageData(n)}createLinearGradient(n,e,a,u){return this._context.createLinearGradient(n,e,a,u)}createPattern(n,e){return this._context.createPattern(n,e)}createRadialGradient(n,e,a,u,T,v){return this._context.createRadialGradient(n,e,a,u,T,v)}drawImage(n,e,a,u,T,v,H,R,I){var k=arguments,B=this._context;k.length===3?B.drawImage(n,e,a):k.length===5?B.drawImage(n,e,a,u,T):k.length===9&&B.drawImage(n,e,a,u,T,v,H,R,I)}ellipse(n,e,a,u,T,v,H,R){this._context.ellipse(n,e,a,u,T,v,H,R)}isPointInPath(n,e,a,u){return a?this._context.isPointInPath(a,n,e,u):this._context.isPointInPath(n,e,u)}fill(n){n?this._context.fill(n):this._context.fill()}fillRect(n,e,a,u){this._context.fillRect(n,e,a,u)}strokeRect(n,e,a,u){this._context.strokeRect(n,e,a,u)}fillText(n,e,a,u){u?this._context.fillText(n,e,a,u):this._context.fillText(n,e,a)}measureText(n){return this._context.measureText(n)}getImageData(n,e,a,u){return this._context.getImageData(n,e,a,u)}lineTo(n,e){this._context.lineTo(n,e)}moveTo(n,e){this._context.moveTo(n,e)}rect(n,e,a,u){this._context.rect(n,e,a,u)}putImageData(n,e,a){this._context.putImageData(n,e,a)}quadraticCurveTo(n,e,a,u){this._context.quadraticCurveTo(n,e,a,u)}restore(){this._context.restore()}rotate(n){this._context.rotate(n)}save(){this._context.save()}scale(n,e){this._context.scale(n,e)}setLineDash(n){this._context.setLineDash?this._context.setLineDash(n):"mozDash"in this._context?this._context.mozDash=n:"webkitLineDash"in this._context&&(this._context.webkitLineDash=n)}getLineDash(){return this._context.getLineDash()}setTransform(n,e,a,u,T,v){this._context.setTransform(n,e,a,u,T,v)}stroke(n){n?this._context.stroke(n):this._context.stroke()}strokeText(n,e,a,u){this._context.strokeText(n,e,a,u)}transform(n,e,a,u,T,v){this._context.transform(n,e,a,u,T,v)}translate(n,e){this._context.translate(n,e)}_enableTrace(){var n=this,e=Y.length,a=this.setAttr,u,T,v=function(H){var R=n[H],I;n[H]=function(){return T=y(Array.prototype.slice.call(arguments,0)),I=R.apply(n,arguments),n._trace({method:H,args:T}),I}};for(u=0;u<e;u++)v(Y[u]);n.setAttr=function(){a.apply(n,arguments);var H=arguments[0],R=arguments[1];(H==="shadowOffsetX"||H==="shadowOffsetY"||H==="shadowBlur")&&(R=R/this.canvas.getPixelRatio()),n._trace({property:H,val:R})}}_applyGlobalCompositeOperation(n){const e=n.attrs.globalCompositeOperation;var a=!e||e==="source-over";a||this.setAttr("globalCompositeOperation",e)}}Z.forEach(function(nt){Object.defineProperty(j.prototype,nt,{get(){return this._context[nt]},set(n){this._context[nt]=n}})});class tt extends j{constructor(n){super(n),this._context=n._canvas.getContext("2d")}_fillColor(n){var e=n.fill();this.setAttr("fillStyle",e),n._fillFunc(this)}_fillPattern(n){this.setAttr("fillStyle",n._getFillPattern()),n._fillFunc(this)}_fillLinearGradient(n){var e=n._getLinearGradient();e&&(this.setAttr("fillStyle",e),n._fillFunc(this))}_fillRadialGradient(n){const e=n._getRadialGradient();e&&(this.setAttr("fillStyle",e),n._fillFunc(this))}_fill(n){const e=n.fill(),a=n.getFillPriority();if(e&&a==="color"){this._fillColor(n);return}const u=n.getFillPatternImage();if(u&&a==="pattern"){this._fillPattern(n);return}const T=n.getFillLinearGradientColorStops();if(T&&a==="linear-gradient"){this._fillLinearGradient(n);return}const v=n.getFillRadialGradientColorStops();if(v&&a==="radial-gradient"){this._fillRadialGradient(n);return}e?this._fillColor(n):u?this._fillPattern(n):T?this._fillLinearGradient(n):v&&this._fillRadialGradient(n)}_strokeLinearGradient(n){const e=n.getStrokeLinearGradientStartPoint(),a=n.getStrokeLinearGradientEndPoint(),u=n.getStrokeLinearGradientColorStops(),T=this.createLinearGradient(e.x,e.y,a.x,a.y);if(u){for(var v=0;v<u.length;v+=2)T.addColorStop(u[v],u[v+1]);this.setAttr("strokeStyle",T)}}_stroke(n){var e=n.dash(),a=n.getStrokeScaleEnabled();if(n.hasStroke()){if(!a){this.save();var u=this.getCanvas().getPixelRatio();this.setTransform(u,0,0,u,0,0)}this._applyLineCap(n),e&&n.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",n.dashOffset())),this.setAttr("lineWidth",n.strokeWidth()),n.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var T=n.getStrokeLinearGradientColorStops();T?this._strokeLinearGradient(n):this.setAttr("strokeStyle",n.stroke()),n._strokeFunc(this),a||this.restore()}}_applyShadow(n){var e,a,u,T=(e=n.getShadowRGBA())!==null&&e!==void 0?e:"black",v=(a=n.getShadowBlur())!==null&&a!==void 0?a:5,H=(u=n.getShadowOffset())!==null&&u!==void 0?u:{x:0,y:0},R=n.getAbsoluteScale(),I=this.canvas.getPixelRatio(),k=R.x*I,B=R.y*I;this.setAttr("shadowColor",T),this.setAttr("shadowBlur",v*Math.min(Math.abs(k),Math.abs(B))),this.setAttr("shadowOffsetX",H.x*k),this.setAttr("shadowOffsetY",H.y*B)}}class rt extends j{constructor(n){super(n),this._context=n._canvas.getContext("2d",{willReadFrequently:!0})}_fill(n){this.save(),this.setAttr("fillStyle",n.colorKey),n._fillFuncHit(this),this.restore()}strokeShape(n){n.hasHitStroke()&&this._stroke(n)}_stroke(n){if(n.hasHitStroke()){const T=n.getStrokeScaleEnabled();if(!T){this.save();var e=this.getCanvas().getPixelRatio();this.setTransform(e,0,0,e,0,0)}this._applyLineCap(n);var a=n.hitStrokeWidth(),u=a==="auto"?n.strokeWidth():a;this.setAttr("lineWidth",u),this.setAttr("strokeStyle",n.colorKey),n._strokeFuncHit(this),T||this.restore()}}}},
vendor: 125 bytes, line 3
3"../../node_modules/konva/lib/Core.js":function(St,ut,L){var x=L("../../node_modules/konva/lib/_CoreInternals.js");ut.A=x.k},
vendor: 1,948 bytes, line 3
3"../../node_modules/konva/lib/DragAndDrop.js":function(St,ut,L){L.d(ut,{DD:function(){return y}});var x=L("../../node_modules/konva/lib/Global.js"),M=L("../../node_modules/konva/lib/Util.js");const y={get isDragging(){var J=!1;return y._dragElements.forEach(W=>{W.dragStatus==="dragging"&&(J=!0)}),J},justDragged:!1,get node(){var J;return y._dragElements.forEach(W=>{J=W.node}),J},_dragElements:new Map,_drag(J){const W=[];y._dragElements.forEach((d,C)=>{const{node:D}=d,O=D.getStage();O.setPointersPositions(J),d.pointerId===void 0&&(d.pointerId=M.J._getFirstPointerId(J));const F=O._changedPointerPositions.find(Z=>Z.id===d.pointerId);if(F){if(d.dragStatus!=="dragging"){var X=D.dragDistance(),Y=Math.max(Math.abs(F.x-d.startPointerPos.x),Math.abs(F.y-d.startPointerPos.y));if(Y<X||(D.startDrag({evt:J}),!D.isDragging()))return}D._setDragPosition(J,d),W.push(D)}}),W.forEach(d=>{d.fire("dragmove",{type:"dragmove",target:d,evt:J},!0)})},_endDragBefore(J){const W=[];y._dragElements.forEach(d=>{const{node:C}=d,D=C.getStage();if(J&&D.setPointersPositions(J),!D._changedPointerPositions.find(X=>X.id===d.pointerId))return;(d.dragStatus==="dragging"||d.dragStatus==="stopped")&&(y.justDragged=!0,x.kg._mouseListenClick=!1,x.kg._touchListenClick=!1,x.kg._pointerListenClick=!1,d.dragStatus="stopped");const F=d.node.getLayer()||d.node instanceof x.kg.Stage&&d.node;F&&W.indexOf(F)===-1&&W.push(F)}),W.forEach(d=>{d.draw()})},_endDragAfter(J){y._dragElements.forEach((W,d)=>{W.dragStatus==="stopped"&&W.node.fire("dragend",{type:"dragend",target:W.node,evt:J},!0),W.dragStatus!=="dragging"&&y._dragElements.delete(d)})}};x.kg.isBrowser&&(window.addEventListener("mouseup",y._endDragBefore,!0),window.addEventListener("touchend",y._endDragBefore,!0),window.addEventListener("mousemove",y._drag),window.addEventListener("touchmove",y._drag),window.addEventListener("mouseup",y._endDragAfter,!1),window.addEventListener("touchend",y._endDragAfter,!1))},
vendor: 2,077 bytes, line 3
3"../../node_modules/konva/lib/Factory.js":function(St,ut,L){L.d(ut,{$:function(){return W}});var x=L("../../node_modules/konva/lib/Util.js"),M=L("../../node_modules/konva/lib/Validators.js"),y="get",J="set";const W={addGetterSetter(d,C,D,O,F){W.addGetter(d,C,D),W.addSetter(d,C,O,F),W.addOverloadedGetterSetter(d,C)},addGetter(d,C,D){var O=y+x.J._capitalize(C);d.prototype[O]=d.prototype[O]||function(){var F=this.attrs[C];return F===void 0?D:F}},addSetter(d,C,D,O){var F=J+x.J._capitalize(C);d.prototype[F]||W.overWriteSetter(d,C,D,O)},overWriteSetter(d,C,D,O){var F=J+x.J._capitalize(C);d.prototype[F]=function(X){return D&&X!==void 0&&X!==null&&(X=D.call(this,X,C)),this._setAttr(C,X),O&&O.call(this),this}},addComponentsGetterSetter(d,C,D,O,F){var X=D.length,Y=x.J._capitalize,Z=y+Y(C),at=J+Y(C),j,tt;d.prototype[Z]=function(){var nt={};for(j=0;j<X;j++)tt=D[j],nt[tt]=this.getAttr(C+Y(tt));return nt};var rt=(0,M.aS)(D);d.prototype[at]=function(nt){var n=this.attrs[C],e;O&&(nt=O.call(this,nt)),rt&&rt.call(this,nt,C);for(e in nt)nt.hasOwnProperty(e)&&this._setAttr(C+Y(e),nt[e]);return nt||D.forEach(a=>{this._setAttr(C+Y(a),void 0)}),this._fireChangeEvent(C,n,nt),F&&F.call(this),this},W.addOverloadedGetterSetter(d,C)},addOverloadedGetterSetter(d,C){var D=x.J._capitalize(C),O=J+D,F=y+D;d.prototype[C]=function(){return arguments.length?(this[O](arguments[0]),this):this[F]()}},addDeprecatedGetterSetter(d,C,D,O){x.J.error("Adding deprecated "+C);var F=y+x.J._capitalize(C),X=C+" property is deprecated and will be removed soon. Look at Konva change log for more information.";d.prototype[F]=function(){x.J.error(X);var Y=this.attrs[C];return Y===void 0?D:Y},W.addSetter(d,C,O,function(){x.J.error(X)}),W.addOverloadedGetterSetter(d,C)},backCompat(d,C){x.J.each(C,function(D,O){var F=d.prototype[O],X=y+x.J._capitalize(D),Y=J+x.J._capitalize(D);function Z(){F.apply(this,arguments),x.J.error('"'+D+'" method is deprecated and will be removed soon. Use ""'+O+'" instead.')}d.prototype[D]=Z,d.prototype[X]=Z,d.prototype[Y]=Z})},afterSetFilter(){this._filterUpToDate=!1}}},
vendor: 1,202 bytes, line 3
3"../../node_modules/konva/lib/Global.js":function(St,ut,L){L.d(ut,{TI:function(){return y},bo:function(){return W},kg:function(){return J}});var x=Math.PI/180;function M(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const y=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},J={_global:y,version:"8.4.3",isBrowser:M(),isUnminified:/param/.test(function(d){}.toString()),dblClickWindow:400,getAngle(d){return J.angleDeg?d*x:d},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return J.DD.isDragging},isDragReady(){return!!J.DD.node},releaseCanvasOnDestroy:!0,document:y.document,_injectGlobal(d){y.Konva=d}},W=d=>{J[d.prototype.getClassName()]=d};J._injectGlobal(J)},
vendor: 416 bytes, line 3
3"../../node_modules/konva/lib/Group.js":function(St,ut,L){L.d(ut,{Y:function(){return J}});var x=L("../../node_modules/konva/lib/Util.js"),M=L("../../node_modules/konva/lib/Container.js"),y=L("../../node_modules/konva/lib/Global.js");class J extends M.m{_validateAdd(d){var C=d.getType();C!=="Group"&&C!=="Shape"&&x.J.throw("You may only add groups and shapes to groups.")}}J.prototype.nodeType="Group",(0,y.bo)(J)},
vendor: 22,811 bytes, line 3
3"../../node_modules/konva/lib/Node.js":function(St,ut,L){L.d(ut,{b:function(){return k}});var x=L("../../node_modules/konva/lib/Util.js"),M=L("../../node_modules/konva/lib/Factory.js"),y=L("../../node_modules/konva/lib/Canvas.js"),J=L("../../node_modules/konva/lib/Global.js"),W=L("../../node_modules/konva/lib/DragAndDrop.js"),d=L("../../node_modules/konva/lib/Validators.js"),C="absoluteOpacity",D="allEventListeners",O="absoluteTransform",F="absoluteScale",X="canvas",Y="Change",Z="children",at="konva",j="listening",tt="mouseenter",rt="mouseleave",nt="name",n="set",e="Shape",a=" ",u="stage",T="transform",v="Stage",H="visible",R=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(a);let I=1;class k{constructor(i){this._id=I++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(i),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(i){(i===T||i===O)&&this._cache.get(i)?this._cache.get(i).dirty=!0:i?this._cache.delete(i):this._cache.clear()}_getCache(i,s){var l=this._cache.get(i),c=i===T||i===O,b=l===void 0||c&&l.dirty===!0;return b&&(l=s.call(this),this._cache.set(i,l)),l}_calculate(i,s,l){if(!this._attachedDepsListeners.get(i)){const c=s.map(b=>b+"Change.konva").join(a);this.on(c,()=>{this._clearCache(i)}),this._attachedDepsListeners.set(i,!0)}return this._getCache(i,l)}_getCanvasCache(){return this._cache.get(X)}_clearSelfAndDescendantCache(i){this._clearCache(i),i===O&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(X)){const{scene:i,filter:s,hit:l}=this._cache.get(X);x.J.releaseCanvas(i,s,l),this._cache.delete(X)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(i){var s=i||{},l={};(s.x===void 0||s.y===void 0||s.width===void 0||s.height===void 0)&&(l=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var c=Math.ceil(s.width||l.width),b=Math.ceil(s.height||l.height),U=s.pixelRatio,$=s.x===void 0?Math.floor(l.x):s.x,et=s.y===void 0?Math.floor(l.y):s.y,st=s.offset||0,ot=s.drawBorder||!1,ft=s.hitCanvasPixelRatio||1;if(!c||!b){x.J.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}c+=st*2+1,b+=st*2+1,$-=st,et-=st;var bt=new y.pv({pixelRatio:U,width:c,height:b}),Ot=new y.pv({pixelRatio:U,width:0,height:0}),Pt=new y.Sf({pixelRatio:ft,width:c,height:b}),yt=bt.getContext(),At=Pt.getContext();return Pt.isCache=!0,bt.isCache=!0,this._cache.delete(X),this._filterUpToDate=!1,s.imageSmoothingEnabled===!1&&(bt.getContext()._context.imageSmoothingEnabled=!1,Ot.getContext()._context.imageSmoothingEnabled=!1),yt.save(),At.save(),yt.translate(-$,-et),At.translate(-$,-et),this._isUnderCache=!0,this._clearSelfAndDescendantCache(C),this._clearSelfAndDescendantCache(F),this.drawScene(bt,this),this.drawHit(Pt,this),this._isUnderCache=!1,yt.restore(),At.restore(),ot&&(yt.save(),yt.beginPath(),yt.rect(0,0,c,b),yt.closePath(),yt.setAttr("strokeStyle","red"),yt.setAttr("lineWidth",5),yt.stroke(),yt.restore()),this._cache.set(X,{scene:bt,filter:Ot,hit:Pt,x:$,y:et}),this._requestDraw(),this}isCached(){return this._cache.has(X)}getClientRect(i){throw new Error('abstract "getClientRect" method call')}_transformedRect(i,s){var l=[{x:i.x,y:i.y},{x:i.x+i.width,y:i.y},{x:i.x+i.width,y:i.y+i.height},{x:i.x,y:i.y+i.height}],c,b,U,$,et=this.getAbsoluteTransform(s);return l.forEach(function(st){var ot=et.point(st);c===void 0&&(c=U=ot.x,b=$=ot.y),c=Math.min(c,ot.x),b=Math.min(b,ot.y),U=Math.max(U,ot.x),$=Math.max($,ot.y)}),{x:c,y:b,width:U-c,height:$-b}}_drawCachedSceneCanvas(i){i.save(),i._applyOpacity(this),i._applyGlobalCompositeOperation(this);const s=this._getCanvasCache();i.translate(s.x,s.y);var l=this._getCachedSceneCanvas(),c=l.pixelRatio;i.drawImage(l._canvas,0,0,l.width/c,l.height/c),i.restore()}_drawCachedHitCanvas(i){var s=this._getCanvasCache(),l=s.hit;i.save(),i.translate(s.x,s.y),i.drawImage(l._canvas,0,0,l.width/l.pixelRatio,l.height/l.pixelRatio),i.restore()}_getCachedSceneCanvas(){var i=this.filters(),s=this._getCanvasCache(),l=s.scene,c=s.filter,b=c.getContext(),U,$,et,st;if(i){if(!this._filterUpToDate){var ot=l.pixelRatio;c.setSize(l.width/l.pixelRatio,l.height/l.pixelRatio);try{for(U=i.length,b.clear(),b.drawImage(l._canvas,0,0,l.getWidth()/ot,l.getHeight()/ot),$=b.getImageData(0,0,c.getWidth(),c.getHeight()),et=0;et<U;et++){if(st=i[et],typeof st!="function"){x.J.error("Filter should be type of function, but got "+typeof st+" instead. Please check correct filters");continue}st.call(this,$),b.putImageData($,0,0)}}catch(ft){x.J.error("Unable to apply filter. "+ft.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return c}return l}on(i,s){if(this._cache&&this._cache.delete(D),arguments.length===3)return this._delegate.apply(this,arguments);var l=i.split(a),c=l.length,b,U,$,et,st;for(b=0;b<c;b++)U=l[b],$=U.split("."),et=$[0],st=$[1]||"",this.eventListeners[et]||(this.eventListeners[et]=[]),this.eventListeners[et].push({name:st,handler:s});return this}off(i,s){var l=(i||"").split(a),c=l.length,b,U,$,et,st,ot;if(this._cache&&this._cache.delete(D),!i)for(U in this.eventListeners)this._off(U);for(b=0;b<c;b++)if($=l[b],et=$.split("."),st=et[0],ot=et[1],st)this.eventListeners[st]&&this._off(st,ot,s);else for(U in this.eventListeners)this._off(U,ot,s);return this}dispatchEvent(i){var s={target:this,type:i.type,evt:i};return this.fire(i.type,s),this}addEventListener(i,s){return this.on(i,function(l){s.call(this,l.evt)}),this}removeEventListener(i){return this.off(i),this}_delegate(i,s,l){var c=this;this.on(i,function(b){for(var U=b.target.findAncestors(s,!0,c),$=0;$<U.length;$++)b=x.J.cloneObject(b),b.currentTarget=U[$],l.call(U[$],b)})}remove(){return this.isDragging()&&this.stopDrag(),W.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(O),this._clearSelfAndDescendantCache(C),this._clearSelfAndDescendantCache(F),this._clearSelfAndDescendantCache(u),this._clearSelfAndDescendantCache(H),this._clearSelfAndDescendantCache(j)}_remove(){this._clearCaches();var i=this.getParent();i&&i.children&&(i.children.splice(this.index,1),i._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(i){var s="get"+x.J._capitalize(i);return x.J._isFunction(this[s])?this[s]():this.attrs[i]}getAncestors(){for(var i=this.getParent(),s=[];i;)s.push(i),i=i.getParent();return s}getAttrs(){return this.attrs||{}}setAttrs(i){return this._batchTransformChanges(()=>{var s,l;if(!i)return this;for(s in i)s!==Z&&(l=n+x.J._capitalize(s),x.J._isFunction(this[l])?this[l](i[s]):this._setAttr(s,i[s]))}),this}isListening(){return this._getCache(j,this._isListening)}_isListening(i){if(!this.listening())return!1;const l=this.getParent();return l&&l!==i&&this!==i?l._isListening(i):!0}isVisible(){return this._getCache(H,this._isVisible)}_isVisible(i){if(!this.visible())return!1;const l=this.getParent();return l&&l!==i&&this!==i?l._isVisible(i):!0}shouldDrawHit(i,s=!1){if(i)return this._isVisible(i)&&this._isListening(i);var l=this.getLayer(),c=!1;W.DD._dragElements.forEach(U=>{U.dragStatus==="dragging"&&(U.node.nodeType==="Stage"||U.node.getLayer()===l)&&(c=!0)});var b=!s&&!J.kg.hitOnDragEnabled&&c;return this.isListening()&&this.isVisible()&&!b}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var i=this.getDepth(),s=this,l=0,c,b,U,$;function et(st){for(c=[],b=st.length,U=0;U<b;U++)$=st[U],l++,$.nodeType!==e&&(c=c.concat($.getChildren().slice())),$._id===s._id&&(U=b);c.length>0&&c[0].getDepth()<=i&&et(c)}return s.nodeType!==v&&et(s.getStage().getChildren()),l}getDepth(){for(var i=0,s=this.parent;s;)i++,s=s.parent;return i}_batchTransformChanges(i){this._batchingTransformChange=!0,i(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(T),this._clearSelfAndDescendantCache(O)),this._needClearTransformCache=!1}setPosition(i){return this._batchTransformChanges(()=>{this.x(i.x),this.y(i.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var i=this.getStage().getPointerPosition();if(!i)return null;var s=this.getAbsoluteTransform().copy();return s.invert(),s.point(i)}getAbsolutePosition(i){let s=!1,l=this.parent;for(;l;){if(l.isCached()){s=!0;break}l=l.parent}s&&!i&&(i=!0);var c=this.getAbsoluteTransform(i).getMatrix(),b=new x.d,U=this.offset();return b.m=c.slice(),b.translate(U.x,U.y),b.getTranslation()}setAbsolutePosition(i){var s=this._clearTransform();this.attrs.x=s.x,this.attrs.y=s.y,delete s.x,delete s.y,this._clearCache(T);var l=this._getAbsoluteTransform().copy();return l.invert(),l.translate(i.x,i.y),i={x:this.attrs.x+l.getTranslation().x,y:this.attrs.y+l.getTranslation().y},this._setTransform(s),this.setPosition({x:i.x,y:i.y}),this._clearCache(T),this._clearSelfAndDescendantCache(O),this}_setTransform(i){var s;for(s in i)this.attrs[s]=i[s]}_clearTransform(){var i={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,i}move(i){var s=i.x,l=i.y,c=this.x(),b=this.y();return s!==void 0&&(c+=s),l!==void 0&&(b+=l),this.setPosition({x:c,y:b}),this}_eachAncestorReverse(i,s){var l=[],c=this.getParent(),b,U;if(!(s&&s._id===this._id)){for(l.unshift(this);c&&(!s||c._id!==s._id);)l.unshift(c),c=c.parent;for(b=l.length,U=0;U<b;U++)i(l[U])}}rotate(i){return this.rotation(this.rotation()+i),this}moveToTop(){if(!this.parent)return x.J.warn("Node has no parent. moveToTop function is ignored."),!1;var i=this.index,s=this.parent.getChildren().length;return i<s-1?(this.parent.children.splice(i,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return x.J.warn("Node has no parent. moveUp function is ignored."),!1;var i=this.index,s=this.parent.getChildren().length;return i<s-1?(this.parent.children.splice(i,1),this.parent.children.splice(i+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return x.J.warn("Node has no parent. moveDown function is ignored."),!1;var i=this.index;return i>0?(this.parent.children.splice(i,1),this.parent.children.splice(i-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return x.J.warn("Node has no parent. moveToBottom function is ignored."),!1;var i=this.index;return i>0?(this.parent.children.splice(i,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(i){if(!this.parent)return x.J.warn("Node has no parent. zIndex parameter is ignored."),this;(i<0||i>=this.parent.children.length)&&x.J.warn("Unexpected value "+i+" 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 s=this.index;return this.parent.children.splice(s,1),this.parent.children.splice(i,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(C,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var i=this.opacity(),s=this.getParent();return s&&!s._isUnderCache&&(i*=s.getAbsoluteOpacity()),i}moveTo(i){return this.getParent()!==i&&(this._remove(),i.add(this)),this}toObject(){var i={},s=this.getAttrs(),l,c,b,U,$;i.attrs={};for(l in s)c=s[l],$=x.J.isObject(c)&&!x.J._isPlainObject(c)&&!x.J._isArray(c),!$&&(b=typeof this[l]=="function"&&this[l],delete s[l],U=b?b.call(this):null,s[l]=c,U!==c&&(i.attrs[l]=c));return i.className=this.getClassName(),x.J._prepareToStringify(i)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(i,s,l){var c=[];s&&this._isMatch(i)&&c.push(this);for(var b=this.parent;b;){if(b===l)return c;b._isMatch(i)&&c.push(b),b=b.parent}return c}isAncestorOf(i){return!1}findAncestor(i,s,l){return this.findAncestors(i,s,l)[0]}_isMatch(i){if(!i)return!1;if(typeof i=="function")return i(this);var s=i.replace(/ /g,"").split(","),l=s.length,c,b;for(c=0;c<l;c++)if(b=s[c],x.J.isValidSelector(b)||(x.J.warn('Selector "'+b+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),x.J.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),x.J.warn("Konva is awesome, right?")),b.charAt(0)==="#"){if(this.id()===b.slice(1))return!0}else if(b.charAt(0)==="."){if(this.hasName(b.slice(1)))return!0}else if(this.className===b||this.nodeType===b)return!0;return!1}getLayer(){var i=this.getParent();return i?i.getLayer():null}getStage(){return this._getCache(u,this._getStage)}_getStage(){var i=this.getParent();if(i)return i.getStage()}fire(i,s={},l){return s.target=s.target||this,l?this._fireAndBubble(i,s):this._fire(i,s),this}getAbsoluteTransform(i){return i?this._getAbsoluteTransform(i):this._getCache(O,this._getAbsoluteTransform)}_getAbsoluteTransform(i){var s;if(i)return s=new x.d,this._eachAncestorReverse(function(c){var b=c.transformsEnabled();b==="all"?s.multiply(c.getTransform()):b==="position"&&s.translate(c.x()-c.offsetX(),c.y()-c.offsetY())},i),s;s=this._cache.get(O)||new x.d,this.parent?this.parent.getAbsoluteTransform().copyInto(s):s.reset();var l=this.transformsEnabled();if(l==="all")s.multiply(this.getTransform());else if(l==="position"){const c=this.attrs.x||0,b=this.attrs.y||0,U=this.attrs.offsetX||0,$=this.attrs.offsetY||0;s.translate(c-U,b-$)}return s.dirty=!1,s}getAbsoluteScale(i){for(var s=this;s;)s._isUnderCache&&(i=s),s=s.getParent();const c=this.getAbsoluteTransform(i).decompose();return{x:c.scaleX,y:c.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(T,this._getTransform)}_getTransform(){var i,s,l=this._cache.get(T)||new x.d;l.reset();var c=this.x(),b=this.y(),U=J.kg.getAngle(this.rotation()),$=(i=this.attrs.scaleX)!==null&&i!==void 0?i:1,et=(s=this.attrs.scaleY)!==null&&s!==void 0?s:1,st=this.attrs.skewX||0,ot=this.attrs.skewY||0,ft=this.attrs.offsetX||0,bt=this.attrs.offsetY||0;return(c!==0||b!==0)&&l.translate(c,b),U!==0&&l.rotate(U),(st!==0||ot!==0)&&l.skew(st,ot),($!==1||et!==1)&&l.scale($,et),(ft!==0||bt!==0)&&l.translate(-1*ft,-1*bt),l.dirty=!1,l}clone(i){var s=x.J.cloneObject(this.attrs),l,c,b,U,$;for(l in i)s[l]=i[l];var et=new this.constructor(s);for(l in this.eventListeners)for(c=this.eventListeners[l],b=c.length,U=0;U<b;U++)$=c[U],$.name.indexOf(at)<0&&(et.eventListeners[l]||(et.eventListeners[l]=[]),et.eventListeners[l].push($));return et}_toKonvaCanvas(i){i=i||{};var s=this.getClientRect(),l=this.getStage(),c=i.x!==void 0?i.x:Math.floor(s.x),b=i.y!==void 0?i.y:Math.floor(s.y),U=i.pixelRatio||1,$=new y.pv({width:i.width||Math.ceil(s.width)||(l?l.width():0),height:i.height||Math.ceil(s.height)||(l?l.height():0),pixelRatio:U}),et=$.getContext();return i.imageSmoothingEnabled===!1&&(et._context.imageSmoothingEnabled=!1),et.save(),(c||b)&&et.translate(-1*c,-1*b),this.drawScene($),et.restore(),$}toCanvas(i){return this._toKonvaCanvas(i)._canvas}toDataURL(i){i=i||{};var s=i.mimeType||null,l=i.quality||null,c=this._toKonvaCanvas(i).toDataURL(s,l);return i.callback&&i.callback(c),c}toImage(i){return new Promise((s,l)=>{try{const c=i?.callback;c&&delete i.callback,x.J._urlToImage(this.toDataURL(i),function(b){s(b),c?.(b)})}catch(c){l(c)}})}toBlob(i){return new Promise((s,l)=>{try{const c=i?.callback;c&&delete i.callback,this.toCanvas(i).toBlob(b=>{s(b),c?.(b)})}catch(c){l(c)}})}setSize(i){return this.width(i.width),this.height(i.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():J.kg.dragDistance}_off(i,s,l){var c=this.eventListeners[i],b,U,$;for(b=0;b<c.length;b++)if(U=c[b].name,$=c[b].handler,(U!=="konva"||s==="konva")&&(!s||U===s)&&(!l||l===$)){if(c.splice(b,1),c.length===0){delete this.eventListeners[i];break}b--}}_fireChangeEvent(i,s,l){this._fire(i+Y,{oldVal:s,newVal:l})}addName(i){if(!this.hasName(i)){var s=this.name(),l=s?s+" "+i:i;this.name(l)}return this}hasName(i){if(!i)return!1;const s=this.name();if(!s)return!1;var l=(s||"").split(/\s/g);return l.indexOf(i)!==-1}removeName(i){var s=(this.name()||"").split(/\s/g),l=s.indexOf(i);return l!==-1&&(s.splice(l,1),this.name(s.join(" "))),this}setAttr(i,s){var l=this[n+x.J._capitalize(i)];return x.J._isFunction(l)?l.call(this,s):this._setAttr(i,s),this}_requestDraw(){if(J.kg.autoDrawEnabled){const i=this.getLayer()||this.getStage();i?.batchDraw()}}_setAttr(i,s){var l=this.attrs[i];l===s&&!x.J.isObject(s)||(s==null?delete this.attrs[i]:this.attrs[i]=s,this._shouldFireChangeEvents&&this._fireChangeEvent(i,l,s),this._requestDraw())}_setComponentAttr(i,s,l){var c;l!==void 0&&(c=this.attrs[i],c||(this.attrs[i]=this.getAttr(i)),this.attrs[i][s]=l,this._fireChangeEvent(i,c,l))}_fireAndBubble(i,s,l){s&&this.nodeType===e&&(s.target=this);var c=(i===tt||i===rt)&&(l&&(this===l||this.isAncestorOf&&this.isAncestorOf(l))||this.nodeType==="Stage"&&!l);if(!c){this._fire(i,s);var b=(i===tt||i===rt)&&l&&l.isAncestorOf&&l.isAncestorOf(this)&&!l.isAncestorOf(this.parent);(s&&!s.cancelBubble||!s)&&this.parent&&this.parent.isListening()&&!b&&(l&&l.parent?this._fireAndBubble.call(this.parent,i,s,l):this._fireAndBubble.call(this.parent,i,s))}}_getProtoListeners(i){let s=this._cache.get(D);if(!s){s={};let c=Object.getPrototypeOf(this);for(;c;){if(!c.eventListeners){c=Object.getPrototypeOf(c);continue}for(var l in c.eventListeners){const b=c.eventListeners[l],U=s[l]||[];s[l]=b.concat(U)}c=Object.getPrototypeOf(c)}this._cache.set(D,s)}return s[i]}_fire(i,s){s=s||{},s.currentTarget=this,s.type=i;const l=this._getProtoListeners(i);if(l)for(var c=0;c<l.length;c++)l[c].handler.call(this,s);const b=this.eventListeners[i];if(b)for(var c=0;c<b.length;c++)b[c].handler.call(this,s)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(i){var s=i?i.pointerId:void 0,l=this.getStage(),c=this.getAbsolutePosition(),b=l._getPointerById(s)||l._changedPointerPositions[0]||c;W.DD._dragElements.set(this._id,{node:this,startPointerPos:b,offset:{x:b.x-c.x,y:b.y-c.y},dragStatus:"ready",pointerId:s})}startDrag(i,s=!0){W.DD._dragElements.has(this._id)||this._createDragElement(i);const l=W.DD._dragElements.get(this._id);l.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:i&&i.evt},s)}_setDragPosition(i,s){const l=this.getStage()._getPointerById(s.pointerId);if(l){var c={x:l.x-s.offset.x,y:l.y-s.offset.y},b=this.dragBoundFunc();if(b!==void 0){const U=b.call(this,c,i);U?c=U:x.J.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==c.x||this._lastPos.y!==c.y)&&(this.setAbsolutePosition(c),this._requestDraw()),this._lastPos=c}}stopDrag(i){const s=W.DD._dragElements.get(this._id);s&&(s.dragStatus="stopped"),W.DD._endDragBefore(i),W.DD._endDragAfter(i)}setDraggable(i){this._setAttr("draggable",i),this._dragChange()}isDragging(){const i=W.DD._dragElements.get(this._id);return i?i.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(i){var s=i.evt.button!==void 0,l=!s||J.kg.dragButtons.indexOf(i.evt.button)>=0;if(l&&!this.isDragging()){var c=!1;W.DD._dragElements.forEach(b=>{this.isAncestorOf(b.node)&&(c=!0)}),c||this._createDragElement(i)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var i=this.getStage();if(!i)return;const s=W.DD._dragElements.get(this._id),l=s&&s.dragStatus==="dragging",c=s&&s.dragStatus==="ready";l?this.stopDrag():c&&W.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(i={x:0,y:0}){const s=this.getStage();if(!s)return!1;const l={x:-i.x,y:-i.y,width:s.width()+2*i.x,height:s.height()+2*i.y};return x.J.haveIntersection(l,this.getClientRect())}static create(i,s){return x.J._isString(i)&&(i=JSON.parse(i)),this._createNode(i,s)}static _createNode(i,s){var l=k.prototype.getClassName.call(i),c=i.children,b,U,$;s&&(i.attrs.container=s),J.kg[l]||(x.J.warn('Can not find a node with class name "'+l+'". Fallback to "Shape".'),l="Shape");const et=J.kg[l];if(b=new et(i.attrs),c)for(U=c.length,$=0;$<U;$++)b.add(k._createNode(c[$]));return b}}k.prototype.nodeType="Node",k.prototype._attrsAffectingSize=[],k.prototype.eventListeners={},k.prototype.on.call(k.prototype,R,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(T),this._clearSelfAndDescendantCache(O)}),k.prototype.on.call(k.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(H)}),k.prototype.on.call(k.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(j)}),k.prototype.on.call(k.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(C)});const B=M.$.addGetterSetter;B(k,"zIndex"),B(k,"absolutePosition"),B(k,"position"),B(k,"x",0,(0,d.oz)()),B(k,"y",0,(0,d.oz)()),B(k,"globalCompositeOperation","source-over",(0,d.gl)()),B(k,"opacity",1,(0,d.oz)()),B(k,"name","",(0,d.gl)()),B(k,"id","",(0,d.gl)()),B(k,"rotation",0,(0,d.oz)()),M.$.addComponentsGetterSetter(k,"scale",["x","y"]),B(k,"scaleX",1,(0,d.oz)()),B(k,"scaleY",1,(0,d.oz)()),M.$.addComponentsGetterSetter(k,"skew",["x","y"]),B(k,"skewX",0,(0,d.oz)()),B(k,"skewY",0,(0,d.oz)()),M.$.addComponentsGetterSetter(k,"offset",["x","y"]),B(k,"offsetX",0,(0,d.oz)()),B(k,"offsetY",0,(0,d.oz)()),B(k,"dragDistance",null,(0,d.oz)()),B(k,"width",0,(0,d.oz)()),B(k,"height",0,(0,d.oz)()),B(k,"listening",!0,(0,d.f1)()),B(k,"preventDefault",!0,(0,d.f1)()),B(k,"filters",null,function(q){return this._filterUpToDate=!1,q}),B(k,"visible",!0,(0,d.f1)()),B(k,"transformsEnabled","all",(0,d.gl)()),B(k,"size"),B(k,"dragBoundFunc"),B(k,"draggable",!1,(0,d.f1)()),M.$.backCompat(k,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"})},
vendor: 705 bytes, line 3
3"../../node_modules/konva/lib/PointerEvents.js":function(St,ut,L){L.d(ut,{YY:function(){return C},_V:function(){return d},cw:function(){return J},lh:function(){return W},yc:function(){return D}});var x=L("../../node_modules/konva/lib/Global.js");const M=new Map,y=x.kg._global.PointerEvent!==void 0;function J(O){return M.get(O)}function W(O){return{evt:O,pointerId:O.pointerId}}function d(O,F){return M.get(O)===F}function C(O,F){D(O),F.getStage()&&(M.set(O,F),y&&F._fire("gotpointercapture",W(new PointerEvent("gotpointercapture"))))}function D(O,F){const X=M.get(O);if(!X)return;const Y=X.getStage();Y&&Y.content,M.delete(O),y&&X._fire("lostpointercapture",W(new PointerEvent("lostpointercapture")))}},
vendor: 12,365 bytes, line 3
3"../../node_modules/konva/lib/Shape.js":function(St,ut,L){L.d(ut,{n:function(){return at},y:function(){return v}});var x=L("../../node_modules/konva/lib/Global.js"),M=L("../../node_modules/konva/lib/Util.js"),y=L("../../node_modules/konva/lib/Factory.js"),J=L("../../node_modules/konva/lib/Node.js"),W=L("../../node_modules/konva/lib/Validators.js"),d=L("../../node_modules/konva/lib/PointerEvents.js"),C="hasShadow",D="shadowRGBA",O="patternImage",F="linearGradient",X="radialGradient";let Y;function Z(){return Y||(Y=M.J.createCanvasElement().getContext("2d"),Y)}const at={};function j(H){H.fill()}function tt(H){H.stroke()}function rt(H){H.fill()}function nt(H){H.stroke()}function n(){this._clearCache(C)}function e(){this._clearCache(D)}function a(){this._clearCache(O)}function u(){this._clearCache(F)}function T(){this._clearCache(X)}class v extends J.b{constructor(R){super(R);let I;for(;I=M.J.getRandomColor(),!(I&&!(I in at)););this.colorKey=I,at[I]=this}getContext(){return M.J.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return M.J.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(C,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(O,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var R=Z();const I=R.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(I&&I.setTransform){const k=new M.d;k.translate(this.fillPatternX(),this.fillPatternY()),k.rotate(x.kg.getAngle(this.fillPatternRotation())),k.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),k.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const B=k.getMatrix(),q=typeof DOMMatrix>"u"?{a:B[0],b:B[1],c:B[2],d:B[3],e:B[4],f:B[5]}:new DOMMatrix(B);I.setTransform(q)}return I}}_getLinearGradient(){return this._getCache(F,this.__getLinearGradient)}__getLinearGradient(){var R=this.fillLinearGradientColorStops();if(R){for(var I=Z(),k=this.fillLinearGradientStartPoint(),B=this.fillLinearGradientEndPoint(),q=I.createLinearGradient(k.x,k.y,B.x,B.y),i=0;i<R.length;i+=2)q.addColorStop(R[i],R[i+1]);return q}}_getRadialGradient(){return this._getCache(X,this.__getRadialGradient)}__getRadialGradient(){var R=this.fillRadialGradientColorStops();if(R){for(var I=Z(),k=this.fillRadialGradientStartPoint(),B=this.fillRadialGradientEndPoint(),q=I.createRadialGradient(k.x,k.y,this.fillRadialGradientStartRadius(),B.x,B.y,this.fillRadialGradientEndRadius()),i=0;i<R.length;i+=2)q.addColorStop(R[i],R[i+1]);return q}}getShadowRGBA(){return this._getCache(D,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var R=M.J.colorToRGBA(this.shadowColor());if(R)return"rgba("+R.r+","+R.g+","+R.b+","+R.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const R=this.hitStrokeWidth();return R==="auto"?this.hasStroke():this.strokeEnabled()&&!!R}intersects(R){var I=this.getStage(),k=I.bufferHitCanvas,B;return k.getContext().clear(),this.drawHit(k,null,!0),B=k.context.getImageData(Math.round(R.x),Math.round(R.y),1,1).data,B[3]>0}destroy(){return J.b.prototype.destroy.call(this),delete at[this.colorKey],delete this.colorKey,this}_useBufferCanvas(R){var I;if(!this.getStage()||!((I=this.attrs.perfectDrawEnabled)!==null&&I!==void 0?I:!0))return!1;const B=R||this.hasFill(),q=this.hasStroke(),i=this.getAbsoluteOpacity()!==1;if(B&&q&&i)return!0;const s=this.hasShadow(),l=this.shadowForStrokeEnabled();return!!(B&&q&&s&&l)}setStrokeHitEnabled(R){M.J.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),R?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var R=this.size();return{x:this._centroid?-R.width/2:0,y:this._centroid?-R.height/2:0,width:R.width,height:R.height}}getClientRect(R={}){const I=R.skipTransform,k=R.relativeTo,B=this.getSelfRect(),i=!R.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,s=B.width+i,l=B.height+i,c=!R.skipShadow&&this.hasShadow(),b=c?this.shadowOffsetX():0,U=c?this.shadowOffsetY():0,$=s+Math.abs(b),et=l+Math.abs(U),st=c&&this.shadowBlur()||0,ot=$+st*2,ft=et+st*2,bt={width:ot,height:ft,x:-(i/2+st)+Math.min(b,0)+B.x,y:-(i/2+st)+Math.min(U,0)+B.y};return I?bt:this._transformedRect(bt,k)}drawScene(R,I){var k=this.getLayer(),B=R||k.getCanvas(),q=B.getContext(),i=this._getCanvasCache(),s=this.getSceneFunc(),l=this.hasShadow(),c,b,U,$=B.isCache,et=I===this;if(!this.isVisible()&&!et)return this;if(i){q.save();var st=this.getAbsoluteTransform(I).getMatrix();return q.transform(st[0],st[1],st[2],st[3],st[4],st[5]),this._drawCachedSceneCanvas(q),q.restore(),this}if(!s)return this;if(q.save(),this._useBufferCanvas()&&!$){c=this.getStage(),b=c.bufferCanvas,U=b.getContext(),U.clear(),U.save(),U._applyLineJoin(this);var ot=this.getAbsoluteTransform(I).getMatrix();U.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5]),s.call(this,U,this),U.restore();var ft=b.pixelRatio;l&&q._applyShadow(this),q._applyOpacity(this),q._applyGlobalCompositeOperation(this),q.drawImage(b._canvas,0,0,b.width/ft,b.height/ft)}else{if(q._applyLineJoin(this),!et){var ot=this.getAbsoluteTransform(I).getMatrix();q.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5]),q._applyOpacity(this),q._applyGlobalCompositeOperation(this)}l&&q._applyShadow(this),s.call(this,q,this)}return q.restore(),this}drawHit(R,I,k=!1){if(!this.shouldDrawHit(I,k))return this;var B=this.getLayer(),q=R||B.hitCanvas,i=q&&q.getContext(),s=this.hitFunc()||this.sceneFunc(),l=this._getCanvasCache(),c=l&&l.hit;if(this.colorKey||M.J.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),c){i.save();var b=this.getAbsoluteTransform(I).getMatrix();return i.transform(b[0],b[1],b[2],b[3],b[4],b[5]),this._drawCachedHitCanvas(i),i.restore(),this}if(!s)return this;if(i.save(),i._applyLineJoin(this),!(this===I)){var $=this.getAbsoluteTransform(I).getMatrix();i.transform($[0],$[1],$[2],$[3],$[4],$[5])}return s.call(this,i,this),i.restore(),this}drawHitFromCache(R=0){var I=this._getCanvasCache(),k=this._getCachedSceneCanvas(),B=I.hit,q=B.getContext(),i=B.getWidth(),s=B.getHeight(),l,c,b,U,$,et;q.clear(),q.drawImage(k._canvas,0,0,i,s);try{for(l=q.getImageData(0,0,i,s),c=l.data,b=c.length,U=M.J._hexToRgb(this.colorKey),$=0;$<b;$+=4)et=c[$+3],et>R?(c[$]=U.r,c[$+1]=U.g,c[$+2]=U.b,c[$+3]=255):c[$+3]=0;q.putImageData(l,0,0)}catch(st){M.J.error("Unable to draw hit graph from cached scene canvas. "+st.message)}return this}hasPointerCapture(R){return d._V(R,this)}setPointerCapture(R){d.YY(R,this)}releaseCapture(R){d.yc(R,this)}}v.prototype._fillFunc=j,v.prototype._strokeFunc=tt,v.prototype._fillFuncHit=rt,v.prototype._strokeFuncHit=nt,v.prototype._centroid=!1,v.prototype.nodeType="Shape",(0,x.bo)(v),v.prototype.eventListeners={},v.prototype.on.call(v.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",n),v.prototype.on.call(v.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",e),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",a),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",u),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),y.$.addGetterSetter(v,"stroke",void 0,(0,W.Pk)()),y.$.addGetterSetter(v,"strokeWidth",2,(0,W.oz)()),y.$.addGetterSetter(v,"fillAfterStrokeEnabled",!1),y.$.addGetterSetter(v,"hitStrokeWidth","auto",(0,W.gM)()),y.$.addGetterSetter(v,"strokeHitEnabled",!0,(0,W.f1)()),y.$.addGetterSetter(v,"perfectDrawEnabled",!0,(0,W.f1)()),y.$.addGetterSetter(v,"shadowForStrokeEnabled",!0,(0,W.f1)()),y.$.addGetterSetter(v,"lineJoin"),y.$.addGetterSetter(v,"lineCap"),y.$.addGetterSetter(v,"sceneFunc"),y.$.addGetterSetter(v,"hitFunc"),y.$.addGetterSetter(v,"dash"),y.$.addGetterSetter(v,"dashOffset",0,(0,W.oz)()),y.$.addGetterSetter(v,"shadowColor",void 0,(0,W.gl)()),y.$.addGetterSetter(v,"shadowBlur",0,(0,W.oz)()),y.$.addGetterSetter(v,"shadowOpacity",1,(0,W.oz)()),y.$.addComponentsGetterSetter(v,"shadowOffset",["x","y"]),y.$.addGetterSetter(v,"shadowOffsetX",0,(0,W.oz)()),y.$.addGetterSetter(v,"shadowOffsetY",0,(0,W.oz)()),y.$.addGetterSetter(v,"fillPatternImage"),y.$.addGetterSetter(v,"fill",void 0,(0,W.Pk)()),y.$.addGetterSetter(v,"fillPatternX",0,(0,W.oz)()),y.$.addGetterSetter(v,"fillPatternY",0,(0,W.oz)()),y.$.addGetterSetter(v,"fillLinearGradientColorStops"),y.$.addGetterSetter(v,"strokeLinearGradientColorStops"),y.$.addGetterSetter(v,"fillRadialGradientStartRadius",0),y.$.addGetterSetter(v,"fillRadialGradientEndRadius",0),y.$.addGetterSetter(v,"fillRadialGradientColorStops"),y.$.addGetterSetter(v,"fillPatternRepeat","repeat"),y.$.addGetterSetter(v,"fillEnabled",!0),y.$.addGetterSetter(v,"strokeEnabled",!0),y.$.addGetterSetter(v,"shadowEnabled",!0),y.$.addGetterSetter(v,"dashEnabled",!0),y.$.addGetterSetter(v,"strokeScaleEnabled",!0),y.$.addGetterSetter(v,"fillPriority","color"),y.$.addComponentsGetterSetter(v,"fillPatternOffset",["x","y"]),y.$.addGetterSetter(v,"fillPatternOffsetX",0,(0,W.oz)()),y.$.addGetterSetter(v,"fillPatternOffsetY",0,(0,W.oz)()),y.$.addComponentsGetterSetter(v,"fillPatternScale",["x","y"]),y.$.addGetterSetter(v,"fillPatternScaleX",1,(0,W.oz)()),y.$.addGetterSetter(v,"fillPatternScaleY",1,(0,W.oz)()),y.$.addComponentsGetterSetter(v,"fillLinearGradientStartPoint",["x","y"]),y.$.addComponentsGetterSetter(v,"strokeLinearGradientStartPoint",["x","y"]),y.$.addGetterSetter(v,"fillLinearGradientStartPointX",0),y.$.addGetterSetter(v,"strokeLinearGradientStartPointX",0),y.$.addGetterSetter(v,"fillLinearGradientStartPointY",0),y.$.addGetterSetter(v,"strokeLinearGradientStartPointY",0),y.$.addComponentsGetterSetter(v,"fillLinearGradientEndPoint",["x","y"]),y.$.addComponentsGetterSetter(v,"strokeLinearGradientEndPoint",["x","y"]),y.$.addGetterSetter(v,"fillLinearGradientEndPointX",0),y.$.addGetterSetter(v,"strokeLinearGradientEndPointX",0),y.$.addGetterSetter(v,"fillLinearGradientEndPointY",0),y.$.addGetterSetter(v,"strokeLinearGradientEndPointY",0),y.$.addComponentsGetterSetter(v,"fillRadialGradientStartPoint",["x","y"]),y.$.addGetterSetter(v,"fillRadialGradientStartPointX",0),y.$.addGetterSetter(v,"fillRadialGradientStartPointY",0),y.$.addComponentsGetterSetter(v,"fillRadialGradientEndPoint",["x","y"]),y.$.addGetterSetter(v,"fillRadialGradientEndPointX",0),y.$.addGetterSetter(v,"fillRadialGradientEndPointY",0),y.$.addGetterSetter(v,"fillPatternRotation",0),y.$.backCompat(v,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})},
vendor: 12,153 bytes, line 3
3"../../node_modules/konva/lib/Util.js":function(St,ut,L){L.d(ut,{J:function(){return n},d:function(){return M}});var x=L("../../node_modules/konva/lib/Global.js");class M{constructor(a=[1,0,0,1,0,0]){this.dirty=!1,this.m=a&&a.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new M(this.m)}copyInto(a){a.m[0]=this.m[0],a.m[1]=this.m[1],a.m[2]=this.m[2],a.m[3]=this.m[3],a.m[4]=this.m[4],a.m[5]=this.m[5]}point(a){var u=this.m;return{x:u[0]*a.x+u[2]*a.y+u[4],y:u[1]*a.x+u[3]*a.y+u[5]}}translate(a,u){return this.m[4]+=this.m[0]*a+this.m[2]*u,this.m[5]+=this.m[1]*a+this.m[3]*u,this}scale(a,u){return this.m[0]*=a,this.m[1]*=a,this.m[2]*=u,this.m[3]*=u,this}rotate(a){var u=Math.cos(a),T=Math.sin(a),v=this.m[0]*u+this.m[2]*T,H=this.m[1]*u+this.m[3]*T,R=this.m[0]*-T+this.m[2]*u,I=this.m[1]*-T+this.m[3]*u;return this.m[0]=v,this.m[1]=H,this.m[2]=R,this.m[3]=I,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(a,u){var T=this.m[0]+this.m[2]*u,v=this.m[1]+this.m[3]*u,H=this.m[2]+this.m[0]*a,R=this.m[3]+this.m[1]*a;return this.m[0]=T,this.m[1]=v,this.m[2]=H,this.m[3]=R,this}multiply(a){var u=this.m[0]*a.m[0]+this.m[2]*a.m[1],T=this.m[1]*a.m[0]+this.m[3]*a.m[1],v=this.m[0]*a.m[2]+this.m[2]*a.m[3],H=this.m[1]*a.m[2]+this.m[3]*a.m[3],R=this.m[0]*a.m[4]+this.m[2]*a.m[5]+this.m[4],I=this.m[1]*a.m[4]+this.m[3]*a.m[5]+this.m[5];return this.m[0]=u,this.m[1]=T,this.m[2]=v,this.m[3]=H,this.m[4]=R,this.m[5]=I,this}invert(){var a=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),u=this.m[3]*a,T=-this.m[1]*a,v=-this.m[2]*a,H=this.m[0]*a,R=a*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),I=a*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=u,this.m[1]=T,this.m[2]=v,this.m[3]=H,this.m[4]=R,this.m[5]=I,this}getMatrix(){return this.m}decompose(){var a=this.m[0],u=this.m[1],T=this.m[2],v=this.m[3],H=this.m[4],R=this.m[5],I=a*v-u*T;let k={x:H,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(a!=0||u!=0){var B=Math.sqrt(a*a+u*u);k.rotation=u>0?Math.acos(a/B):-Math.acos(a/B),k.scaleX=B,k.scaleY=I/B,k.skewX=(a*T+u*v)/I,k.skewY=0}else if(T!=0||v!=0){var q=Math.sqrt(T*T+v*v);k.rotation=Math.PI/2-(v>0?Math.acos(-T/q):-Math.acos(T/q)),k.scaleX=I/q,k.scaleY=q,k.skewX=0,k.skewY=(a*T+u*v)/I}return k.rotation=n._getRotation(k.rotation),k}}var y="[object Array]",J="[object Number]",W="[object String]",d="[object Boolean]",C=Math.PI/180,D=180/Math.PI,O="#",F="",X="0",Y="Konva warning: ",Z="Konva error: ",at="rgb(",j={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]},tt=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,rt=[];const nt=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(e){setTimeout(e,60)},n={_isElement(e){return!!(e&&e.nodeType==1)},_isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isPlainObject(e){return!!e&&e.constructor===Object},_isArray(e){return Object.prototype.toString.call(e)===y},_isNumber(e){return Object.prototype.toString.call(e)===J&&!isNaN(e)&&isFinite(e)},_isString(e){return Object.prototype.toString.call(e)===W},_isBoolean(e){return Object.prototype.toString.call(e)===d},isObject(e){return e instanceof Object},isValidSelector(e){if(typeof e!="string")return!1;var a=e[0];return a==="#"||a==="."||a===a.toUpperCase()},_sign(e){return e===0||e>0?1:-1},requestAnimFrame(e){rt.push(e),rt.length===1&&nt(function(){const a=rt;rt=[],a.forEach(function(u){u()})})},createCanvasElement(){var e=document.createElement("canvas");try{e.style=e.style||{}}catch{}return e},createImageElement(){return document.createElement("img")},_isInDocument(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},_urlToImage(e,a){var u=n.createImageElement();u.onload=function(){a(u)},u.src=e},_rgbToHex(e,a,u){return((1<<24)+(e<<16)+(a<<8)+u).toString(16).slice(1)},_hexToRgb(e){e=e.replace(O,F);var a=parseInt(e,16);return{r:a>>16&255,g:a>>8&255,b:a&255}},getRandomColor(){for(var e=(Math.random()*16777215<<0).toString(16);e.length<6;)e=X+e;return O+e},getRGB(e){var a;return e in j?(a=j[e],{r:a[0],g:a[1],b:a[2]}):e[0]===O?this._hexToRgb(e.substring(1)):e.substr(0,4)===at?(a=tt.exec(e.replace(/ /g,"")),{r:parseInt(a[1],10),g:parseInt(a[2],10),b:parseInt(a[3],10)}):{r:0,g:0,b:0}},colorToRGBA(e){return e=e||"black",n._namedColorToRBA(e)||n._hex3ColorToRGBA(e)||n._hex4ColorToRGBA(e)||n._hex6ColorToRGBA(e)||n._hex8ColorToRGBA(e)||n._rgbColorToRGBA(e)||n._rgbaColorToRGBA(e)||n._hslColorToRGBA(e)},_namedColorToRBA(e){var a=j[e.toLowerCase()];return a?{r:a[0],g:a[1],b:a[2],a:1}:null},_rgbColorToRGBA(e){if(e.indexOf("rgb(")===0){e=e.match(/rgb\(([^)]+)\)/)[1];var a=e.split(/ *, */).map(Number);return{r:a[0],g:a[1],b:a[2],a:1}}},_rgbaColorToRGBA(e){if(e.indexOf("rgba(")===0){e=e.match(/rgba\(([^)]+)\)/)[1];var a=e.split(/ *, */).map((u,T)=>u.slice(-1)==="%"?T===3?parseInt(u)/100:parseInt(u)/100*255:Number(u));return{r:a[0],g:a[1],b:a[2],a:a[3]}}},_hex8ColorToRGBA(e){if(e[0]==="#"&&e.length===9)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:parseInt(e.slice(7,9),16)/255}},_hex6ColorToRGBA(e){if(e[0]==="#"&&e.length===7)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex4ColorToRGBA(e){if(e[0]==="#"&&e.length===5)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:parseInt(e[4]+e[4],16)/255}},_hex3ColorToRGBA(e){if(e[0]==="#"&&e.length===4)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){const[a,...u]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),T=Number(u[0])/360,v=Number(u[1])/100,H=Number(u[2])/100;let R,I,k;if(v===0)return k=H*255,{r:Math.round(k),g:Math.round(k),b:Math.round(k),a:1};H<.5?R=H*(1+v):R=H+v-H*v;const B=2*H-R,q=[0,0,0];for(let i=0;i<3;i++)I=T+1/3*-(i-1),I<0&&I++,I>1&&I--,6*I<1?k=B+(R-B)*6*I:2*I<1?k=R:3*I<2?k=B+(R-B)*(2/3-I)*6:k=B,q[i]=k*255;return{r:Math.round(q[0]),g:Math.round(q[1]),b:Math.round(q[2]),a:1}}},haveIntersection(e,a){return!(a.x>e.x+e.width||a.x+a.width<e.x||a.y>e.y+e.height||a.y+a.height<e.y)},cloneObject(e){var a={};for(var u in e)this._isPlainObject(e[u])?a[u]=this.cloneObject(e[u]):this._isArray(e[u])?a[u]=this.cloneArray(e[u]):a[u]=e[u];return a},cloneArray(e){return e.slice(0)},degToRad(e){return e*C},radToDeg(e){return e*D},_degToRad(e){return n.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),n.degToRad(e)},_radToDeg(e){return n.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),n.radToDeg(e)},_getRotation(e){return x.kg.angleDeg?n.radToDeg(e):e},_capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw(e){throw new Error(Z+e)},error(e){console.error(Z+e)},warn(e){x.kg.showWarnings&&console.warn(Y+e)},each(e,a){for(var u in e)a(u,e[u])},_inRange(e,a,u){return a<=e&&e<u},_getProjectionToSegment(e,a,u,T,v,H){var R,I,k,B=(e-u)*(e-u)+(a-T)*(a-T);if(B==0)R=e,I=a,k=(v-u)*(v-u)+(H-T)*(H-T);else{var q=((v-e)*(u-e)+(H-a)*(T-a))/B;q<0?(R=e,I=a,k=(e-v)*(e-v)+(a-H)*(a-H)):q>1?(R=u,I=T,k=(u-v)*(u-v)+(T-H)*(T-H)):(R=e+q*(u-e),I=a+q*(T-a),k=(R-v)*(R-v)+(I-H)*(I-H))}return[R,I,k]},_getProjectionToLine(e,a,u){var T=n.cloneObject(e),v=Number.MAX_VALUE;return a.forEach(function(H,R){if(!(!u&&R===a.length-1)){var I=a[(R+1)%a.length],k=n._getProjectionToSegment(H.x,H.y,I.x,I.y,e.x,e.y),B=k[0],q=k[1],i=k[2];i<v&&(T.x=B,T.y=q,v=i)}}),T},_prepareArrayForTween(e,a,u){var T,v=[],H=[];if(e.length>a.length){var R=a;a=e,e=R}for(T=0;T<e.length;T+=2)v.push({x:e[T],y:e[T+1]});for(T=0;T<a.length;T+=2)H.push({x:a[T],y:a[T+1]});var I=[];return H.forEach(function(k){var B=n._getProjectionToLine(k,v,u);I.push(B.x),I.push(B.y)}),I},_prepareToStringify(e){var a;e.visitedByCircularReferenceRemoval=!0;for(var u in e)if(e.hasOwnProperty(u)&&e[u]&&typeof e[u]=="object"){if(a=Object.getOwnPropertyDescriptor(e,u),e[u].visitedByCircularReferenceRemoval||n._isElement(e[u]))if(a.configurable)delete e[u];else return null;else if(n._prepareToStringify(e[u])===null)if(a.configurable)delete e[u];else return null}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,a){for(var u in a)e[u]=a[u];return e},_getFirstPointerId(e){return e.touches?e.changedTouches[0].identifier:e.pointerId||999},releaseCanvas(...e){x.kg.releaseCanvasOnDestroy&&e.forEach(a=>{a.width=0,a.height=0})},drawRoundedRectPath(e,a,u,T){let v=0,H=0,R=0,I=0;typeof T=="number"?v=H=R=I=Math.min(T,a/2,u/2):(v=Math.min(T[0]||0,a/2,u/2),H=Math.min(T[1]||0,a/2,u/2),I=Math.min(T[2]||0,a/2,u/2),R=Math.min(T[3]||0,a/2,u/2)),e.moveTo(v,0),e.lineTo(a-H,0),e.arc(a-H,H,H,Math.PI*3/2,0,!1),e.lineTo(a,u-I),e.arc(a-I,u-I,I,0,Math.PI/2,!1),e.lineTo(R,u),e.arc(R,u-R,R,Math.PI/2,Math.PI,!1),e.lineTo(0,v),e.arc(v,v,v,Math.PI,Math.PI*3/2,!1)}}},
vendor: 2,748 bytes, line 3
3"../../node_modules/konva/lib/Validators.js":function(St,ut,L){L.d(ut,{Pk:function(){return F},VQ:function(){return C},aS:function(){return at},f1:function(){return Z},gM:function(){return D},gl:function(){return O},hV:function(){return J},oz:function(){return d},rK:function(){return Y}});var x=L("../../node_modules/konva/lib/Global.js"),M=L("../../node_modules/konva/lib/Util.js");function y(j){return M.J._isString(j)?'"'+j+'"':Object.prototype.toString.call(j)==="[object Number]"||M.J._isBoolean(j)?j:Object.prototype.toString.call(j)}function J(j){return j>255?255:j<0?0:Math.round(j)}function W(j){return j>1?1:j<1e-4?1e-4:j}function d(){if(x.kg.isUnminified)return function(j,tt){return M.J._isNumber(j)||M.J.warn(y(j)+' is a not valid value for "'+tt+'" attribute. The value should be a number.'),j}}function C(j){if(x.kg.isUnminified)return function(tt,rt){let nt=M.J._isNumber(tt),n=M.J._isArray(tt)&&tt.length==j;return!nt&&!n&&M.J.warn(y(tt)+' is a not valid value for "'+rt+'" attribute. The value should be a number or Array<number>('+j+")"),tt}}function D(){if(x.kg.isUnminified)return function(j,tt){var rt=M.J._isNumber(j),nt=j==="auto";return rt||nt||M.J.warn(y(j)+' is a not valid value for "'+tt+'" attribute. The value should be a number or "auto".'),j}}function O(){if(x.kg.isUnminified)return function(j,tt){return M.J._isString(j)||M.J.warn(y(j)+' is a not valid value for "'+tt+'" attribute. The value should be a string.'),j}}function F(){if(x.kg.isUnminified)return function(j,tt){const rt=M.J._isString(j),nt=Object.prototype.toString.call(j)==="[object CanvasGradient]"||j&&j.addColorStop;return rt||nt||M.J.warn(y(j)+' is a not valid value for "'+tt+'" attribute. The value should be a string or a native gradient.'),j}}function X(){if(Konva.isUnminified)return function(j,tt){return Util._isFunction(j)||Util.warn(y(j)+' is a not valid value for "'+tt+'" attribute. The value should be a function.'),j}}function Y(){if(x.kg.isUnminified)return function(j,tt){const rt=Int8Array?Object.getPrototypeOf(Int8Array):null;return rt&&j instanceof rt||(M.J._isArray(j)?j.forEach(function(nt){M.J._isNumber(nt)||M.J.warn('"'+tt+'" attribute has non numeric element '+nt+". Make sure that all elements are numbers.")}):M.J.warn(y(j)+' is a not valid value for "'+tt+'" attribute. The value should be a array of numbers.')),j}}function Z(){if(x.kg.isUnminified)return function(j,tt){var rt=j===!0||j===!1;return rt||M.J.warn(y(j)+' is a not valid value for "'+tt+'" attribute. The value should be a boolean.'),j}}function at(j){if(x.kg.isUnminified)return function(tt,rt){return tt==null||M.J.isObject(tt)||M.J.warn(y(tt)+' is a not valid value for "'+rt+'" attribute. The value should be an object with properties '+j),tt}}},
vendor: 24,223 bytes, line 3
3"../../node_modules/konva/lib/_CoreInternals.js":function(St,ut,L){L.d(ut,{k:function(){return A}});var x=L("../../node_modules/konva/lib/Global.js"),M=L("../../node_modules/konva/lib/Util.js"),y=L("../../node_modules/konva/lib/Node.js"),J=L("../../node_modules/konva/lib/Container.js"),W=L("../../node_modules/konva/lib/Factory.js"),d=L("../../node_modules/konva/lib/Canvas.js"),C=L("../../node_modules/konva/lib/DragAndDrop.js"),D=L("../../node_modules/konva/lib/PointerEvents.js"),O="Stage",F="string",X="px",Y="mouseout",Z="mouseleave",at="mouseover",j="mouseenter",tt="mousemove",rt="mousedown",nt="mouseup",n="pointermove",e="pointerdown",a="pointerup",u="pointercancel",T="lostpointercapture",v="pointerout",H="pointerleave",R="pointerover",I="pointerenter",k="contextmenu",B="touchstart",q="touchend",i="touchmove",s="touchcancel",l="wheel",c=5,b=[[j,"_pointerenter"],[rt,"_pointerdown"],[tt,"_pointermove"],[nt,"_pointerup"],[Z,"_pointerleave"],[B,"_pointerdown"],[i,"_pointermove"],[q,"_pointerup"],[s,"_pointercancel"],[at,"_pointerover"],[l,"_wheel"],[k,"_contextmenu"],[e,"_pointerdown"],[n,"_pointermove"],[a,"_pointerup"],[u,"_pointercancel"],[T,"_lostpointercapture"]];const U={mouse:{[v]:Y,[H]:Z,[R]:at,[I]:j,[n]:tt,[e]:rt,[a]:nt,[u]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[v]:"touchout",[H]:"touchleave",[R]:"touchover",[I]:"touchenter",[n]:i,[e]:B,[a]:q,[u]:s,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[v]:v,[H]:H,[R]:R,[I]:I,[n]:n,[e]:e,[a]:a,[u]:u,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},$=o=>o.indexOf("pointer")>=0?"pointer":o.indexOf("touch")>=0?"touch":"mouse",et=o=>{const t=$(o);if(t==="pointer")return x.kg.pointerEventsEnabled&&U.pointer;if(t==="touch")return U.touch;if(t==="mouse")return U.mouse};function st(o={}){return(o.clipFunc||o.clipWidth||o.clipHeight)&&M.J.warn("Stage does not support clipping. Please use clip for Layers or Groups."),o}const 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);",ft=[];class bt extends J.m{constructor(t){super(st(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),ft.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{st(this.attrs)}),this._checkVisibility()}_validateAdd(t){const r=t.getType()==="Layer",h=t.getType()==="FastLayer";r||h||M.J.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if(typeof t===F){if(t.charAt(0)==="."){var r=t.slice(1);t=document.getElementsByClassName(r)[0]}else{var h;t.charAt(0)!=="#"?h=t:h=t.slice(1),t=document.getElementById(h)}if(!t)throw"Can not find container in document with id "+h}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var t=this.children,r=t.length,h;for(h=0;h<r;h++)t[h].clear();return this}clone(t){return t||(t={}),t.container=typeof document<"u"&&document.createElement("div"),J.m.prototype.clone.call(this,t)}destroy(){super.destroy();var t=this.content;t&&M.J._isInDocument(t)&&this.container().removeChild(t);var r=ft.indexOf(this);return r>-1&&ft.splice(r,1),M.J.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(M.J.warn(ot),null)}_getPointerById(t){return this._pointerPositions.find(r=>r.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){t=t||{},t.x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();var r=new d.pv({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),h=r.getContext()._context,_=this.children;return(t.x||t.y)&&h.translate(-1*t.x,-1*t.y),_.forEach(function(p){if(p.isVisible()){var S=p._toKonvaCanvas(t);h.drawImage(S._canvas,t.x,t.y,S.getWidth()/S.getPixelRatio(),S.getHeight()/S.getPixelRatio())}}),r}getIntersection(t){if(!t)return null;var r=this.children,h=r.length,_=h-1,p;for(p=_;p>=0;p--){const S=r[p].getIntersection(t);if(S)return S}return null}_resizeDOM(){var t=this.width(),r=this.height();this.content&&(this.content.style.width=t+X,this.content.style.height=r+X),this.bufferCanvas.setSize(t,r),this.bufferHitCanvas.setSize(t,r),this.children.forEach(h=>{h.setSize({width:t,height:r}),h.draw()})}add(t,...r){if(arguments.length>1){for(var h=0;h<arguments.length;h++)this.add(arguments[h]);return this}super.add(t);var _=this.children.length;return _>c&&M.J.warn("The stage has "+_+" 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."),t.setSize({width:this.width(),height:this.height()}),t.draw(),x.kg.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return D._V(t,this)}setPointerCapture(t){D.YY(t,this)}releaseCapture(t){D.yc(t,this)}getLayers(){return this.children}_bindContentEvents(){x.kg.isBrowser&&b.forEach(([t,r])=>{this.content.addEventListener(t,h=>{this[r](h)},{passive:!1})})}_pointerenter(t){this.setPointersPositions(t);const r=et(t.type);this._fire(r.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const r=et(t.type);this._fire(r.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let r=this[t+"targetShape"];return r&&!r.getStage()&&(r=null),r}_pointerleave(t){const r=et(t.type),h=$(t.type);if(r){this.setPointersPositions(t);var _=this._getTargetShape(h),p=!C.DD.isDragging||x.kg.hitOnDragEnabled;_&&p?(_._fireAndBubble(r.pointerout,{evt:t}),_._fireAndBubble(r.pointerleave,{evt:t}),this._fire(r.pointerleave,{evt:t,target:this,currentTarget:this}),this[h+"targetShape"]=null):p&&(this._fire(r.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(r.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(t){const r=et(t.type),h=$(t.type);if(r){this.setPointersPositions(t);var _=!1;this._changedPointerPositions.forEach(p=>{var S=this.getIntersection(p);if(C.DD.justDragged=!1,x.kg["_"+h+"ListenClick"]=!0,!(S&&S.isListening()))return;x.kg.capturePointerEventsEnabled&&S.setPointerCapture(p.id),this[h+"ClickStartShape"]=S,S._fireAndBubble(r.pointerdown,{evt:t,pointerId:p.id}),_=!0;const N=t.type.indexOf("touch")>=0;S.preventDefault()&&t.cancelable&&N&&t.preventDefault()}),_||this._fire(r.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(t){const r=et(t.type),h=$(t.type);if(!r)return;C.DD.isDragging&&C.DD.node.preventDefault()&&t.cancelable&&t.preventDefault(),this.setPointersPositions(t);var _=!C.DD.isDragging||x.kg.hitOnDragEnabled;if(!_)return;var p={};let S=!1;var z=this._getTargetShape(h);this._changedPointerPositions.forEach(N=>{const G=D.cw(N.id)||this.getIntersection(N),V=N.id,Q={evt:t,pointerId:V};var K=z!==G;if(K&&z&&(z._fireAndBubble(r.pointerout,Object.assign({},Q),G),z._fireAndBubble(r.pointerleave,Object.assign({},Q),G)),G){if(p[G._id])return;p[G._id]=!0}G&&G.isListening()?(S=!0,K&&(G._fireAndBubble(r.pointerover,Object.assign({},Q),z),G._fireAndBubble(r.pointerenter,Object.assign({},Q),z),this[h+"targetShape"]=G),G._fireAndBubble(r.pointermove,Object.assign({},Q))):z&&(this._fire(r.pointerover,{evt:t,target:this,currentTarget:this,pointerId:V}),this[h+"targetShape"]=null)}),S||this._fire(r.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const r=et(t.type),h=$(t.type);if(!r)return;this.setPointersPositions(t);const _=this[h+"ClickStartShape"],p=this[h+"ClickEndShape"];var S={};let z=!1;this._changedPointerPositions.forEach(N=>{const G=D.cw(N.id)||this.getIntersection(N);if(G){if(G.releaseCapture(N.id),S[G._id])return;S[G._id]=!0}const V=N.id,Q={evt:t,pointerId:V};let K=!1;x.kg["_"+h+"InDblClickWindow"]?(K=!0,clearTimeout(this[h+"DblTimeout"])):C.DD.justDragged||(x.kg["_"+h+"InDblClickWindow"]=!0,clearTimeout(this[h+"DblTimeout"])),this[h+"DblTimeout"]=setTimeout(function(){x.kg["_"+h+"InDblClickWindow"]=!1},x.kg.dblClickWindow),G&&G.isListening()?(z=!0,this[h+"ClickEndShape"]=G,G._fireAndBubble(r.pointerup,Object.assign({},Q)),x.kg["_"+h+"ListenClick"]&&_&&_===G&&(G._fireAndBubble(r.pointerclick,Object.assign({},Q)),K&&p&&p===G&&G._fireAndBubble(r.pointerdblclick,Object.assign({},Q)))):(this[h+"ClickEndShape"]=null,x.kg["_"+h+"ListenClick"]&&this._fire(r.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:V}),K&&this._fire(r.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:V}))}),z||this._fire(r.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),x.kg["_"+h+"ListenClick"]=!1,t.cancelable&&h!=="touch"&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);var r=this.getIntersection(this.getPointerPosition());r&&r.isListening()?r._fireAndBubble(k,{evt:t}):this._fire(k,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);var r=this.getIntersection(this.getPointerPosition());r&&r.isListening()?r._fireAndBubble(l,{evt:t}):this._fire(l,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const r=D.cw(t.pointerId)||this.getIntersection(this.getPointerPosition());r&&r._fireAndBubble(a,D.lh(t)),D.yc(t.pointerId)}_lostpointercapture(t){D.yc(t.pointerId)}setPointersPositions(t){var r=this._getContentPosition(),h=null,_=null;t=t||window.event,t.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,p=>{this._pointerPositions.push({id:p.identifier,x:(p.clientX-r.left)/r.scaleX,y:(p.clientY-r.top)/r.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,p=>{this._changedPointerPositions.push({id:p.identifier,x:(p.clientX-r.left)/r.scaleX,y:(p.clientY-r.top)/r.scaleY})})):(h=(t.clientX-r.left)/r.scaleX,_=(t.clientY-r.top)/r.scaleY,this.pointerPos={x:h,y:_},this._pointerPositions=[{x:h,y:_,id:M.J._getFirstPointerId(t)}],this._changedPointerPositions=[{x:h,y:_,id:M.J._getFirstPointerId(t)}])}_setPointerPosition(t){M.J.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){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}}_buildDOM(){if(this.bufferCanvas=new d.pv({width:this.width(),height:this.height()}),this.bufferHitCanvas=new d.Sf({pixelRatio:1,width:this.width(),height:this.height()}),!!x.kg.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}}cache(){return M.J.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}}bt.prototype.nodeType=O,(0,x.bo)(bt),W.$.addGetterSetter(bt,"container");var Ot=L("../../node_modules/konva/lib/Validators.js"),Pt=L("../../node_modules/konva/lib/Shape.js"),yt="#",At="beforeDraw",jt="draw",It=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Ut=It.length;class kt extends J.m{constructor(t){super(t),this.canvas=new d.pv,this.hitCanvas=new d.Sf({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t<r.children.length-1?r.content.insertBefore(this.getNativeCanvasElement(),r.children[t+1].getCanvas()._canvas):r.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){y.b.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=y.b.prototype.moveUp.call(this);if(!t)return!1;var r=this.getStage();return!r||!r.content?!1:(r.content.removeChild(this.getNativeCanvasElement()),this.index<r.children.length-1?r.content.insertBefore(this.getNativeCanvasElement(),r.children[this.index+1].getCanvas()._canvas):r.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(y.b.prototype.moveDown.call(this)){var t=this.getStage();if(t){var r=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),r[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(y.b.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var r=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),r[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return y.b.prototype.remove.call(this),t&&t.parentNode&&M.J._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:r}){return this.canvas.setSize(t,r),this.hitCanvas.setSize(t,r),this._setSmoothEnabled(),this}_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&M.J.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),y.b.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){M.J.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){M.J.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,M.J.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var r=1,h=!1;;){for(let _=0;_<Ut;_++){const p=It[_],S=this._getIntersection({x:t.x+p.x*r,y:t.y+p.y*r}),z=S.shape;if(z)return z;if(h=!!S.antialiased,!S.antialiased)break}if(h)r+=1;else return null}}_getIntersection(t){const r=this.hitCanvas.pixelRatio,h=this.hitCanvas.context.getImageData(Math.round(t.x*r),Math.round(t.y*r),1,1).data,_=h[3];if(_===255){const p=M.J._rgbToHex(h[0],h[1],h[2]),S=Pt.n[yt+p];return S?{shape:S}:{antialiased:!0}}else if(_>0)return{antialiased:!0};return{}}drawScene(t,r){var h=this.getLayer(),_=t||h&&h.getCanvas();return this._fire(At,{node:this}),this.clearBeforeDraw()&&_.getContext().clear(),J.m.prototype.drawScene.call(this,_,r),this._fire(jt,{node:this}),this}drawHit(t,r){var h=this.getLayer(),_=t||h&&h.hitCanvas;return h&&h.clearBeforeDraw()&&h.getHitCanvas().getContext().clear(),J.m.prototype.drawHit.call(this,_,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){M.J.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return M.J.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,r=!!this.hitCanvas._canvas.parentNode;r?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return M.J.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}kt.prototype.nodeType="Layer",(0,x.bo)(kt),W.$.addGetterSetter(kt,"imageSmoothingEnabled",!0),W.$.addGetterSetter(kt,"clearBeforeDraw",!0),W.$.addGetterSetter(kt,"hitGraphEnabled",!0,(0,Ot.f1)());class Mt extends kt{constructor(t){super(t),this.listening(!1),M.J.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}Mt.prototype.nodeType="FastLayer",(0,x.bo)(Mt);var Nt=L("../../node_modules/konva/lib/Group.js"),Lt=L("../../node_modules/konva/lib/Animation.js"),Jt={node:1,duration:1,easing:1,onFinish:1,yoyo:1},$t=1,Bt=2,zt=3,Yt=0,E=["fill","stroke","shadowColor"];class f{constructor(t,r,h,_,p,S,z){this.prop=t,this.propFunc=r,this.begin=_,this._pos=_,this.duration=S,this._change=0,this.prevPos=0,this.yoyo=z,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=h,this._change=p-this.begin,this.pause()}fire(t){var r=this[t];r&&r()}setTime(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())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return t===void 0&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=Bt,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=zt,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var t=this.getTimer()-this._startTime;this.state===Bt?this.setTime(t):this.state===zt&&this.setTime(this.duration-t)}pause(){this.state=$t,this.fire("onPause")}getTimer(){return new Date().getTime()}}class g{constructor(t){var r=this,h=t.node,_=h._id,p,S=t.easing||m.Linear,z=!!t.yoyo,N;typeof t.duration>"u"?p=.3:t.duration===0?p=.001:p=t.duration,this.node=h,this._id=Yt++;var G=h.getLayer()||(h instanceof x.kg.Stage?h.getLayers():null);G||M.J.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Lt.X(function(){r.tween.onEnterFrame()},G),this.tween=new f(N,function(V){r._tweenFunc(V)},S,0,1,p*1e3,z),this._addListeners(),g.attrs[_]||(g.attrs[_]={}),g.attrs[_][this._id]||(g.attrs[_][this._id]={}),g.tweens[_]||(g.tweens[_]={});for(N in t)Jt[N]===void 0&&this._addAttr(N,t[N]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,r){var h=this.node,_=h._id,p,S,z,N,G,V,Q,K;if(z=g.tweens[_][t],z&&delete g.attrs[_][z][t],p=h.getAttr(t),M.J._isArray(r))if(S=[],G=Math.max(r.length,p.length),t==="points"&&r.length!==p.length&&(r.length>p.length?(Q=p,p=M.J._prepareArrayForTween(p,r,h.closed())):(V=r,r=M.J._prepareArrayForTween(r,p,h.closed()))),t.indexOf("fill")===0)for(N=0;N<G;N++)if(N%2===0)S.push(r[N]-p[N]);else{var it=M.J.colorToRGBA(p[N]);K=M.J.colorToRGBA(r[N]),p[N]=it,S.push({r:K.r-it.r,g:K.g-it.g,b:K.b-it.b,a:K.a-it.a})}else for(N=0;N<G;N++)S.push(r[N]-p[N]);else E.indexOf(t)!==-1?(p=M.J.colorToRGBA(p),K=M.J.colorToRGBA(r),S={r:K.r-p.r,g:K.g-p.g,b:K.b-p.b,a:K.a-p.a}):S=r-p;g.attrs[_][this._id][t]={start:p,diff:S,end:r,trueEnd:V,trueStart:Q},g.tweens[_][t]=this._id}_tweenFunc(t){var r=this.node,h=g.attrs[r._id][this._id],_,p,S,z,N,G,V,Q;for(_ in h){if(p=h[_],S=p.start,z=p.diff,Q=p.end,M.J._isArray(S))if(N=[],V=Math.max(S.length,Q.length),_.indexOf("fill")===0)for(G=0;G<V;G++)G%2===0?N.push((S[G]||0)+z[G]*t):N.push("rgba("+Math.round(S[G].r+z[G].r*t)+","+Math.round(S[G].g+z[G].g*t)+","+Math.round(S[G].b+z[G].b*t)+","+(S[G].a+z[G].a*t)+")");else for(G=0;G<V;G++)N.push((S[G]||0)+z[G]*t);else E.indexOf(_)!==-1?N="rgba("+Math.round(S.r+z.r*t)+","+Math.round(S.g+z.g*t)+","+Math.round(S.b+z.b*t)+","+(S.a+z.a*t)+")":N=S+z*t;r.setAttr(_,N)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,r=g.attrs[t._id][this._id];r.points&&r.points.trueEnd&&t.setAttr("points",r.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,r=g.attrs[t._id][this._id];r.points&&r.points.trueStart&&t.points(r.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(t*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t=this.node._id,r=this._id,h=g.tweens[t],_;this.pause();for(_ in h)delete g.tweens[t][_];delete g.attrs[t][r]}}g.attrs={},g.tweens={},y.b.prototype.to=function(o){var t=o.onFinish;o.node=this,o.onFinish=function(){this.destroy(),t&&t()};var r=new g(o);r.play()};const m={BackEaseIn(o,t,r,h){var _=1.70158;return r*(o/=h)*o*((_+1)*o-_)+t},BackEaseOut(o,t,r,h){var _=1.70158;return r*((o=o/h-1)*o*((_+1)*o+_)+1)+t},BackEaseInOut(o,t,r,h){var _=1.70158;return(o/=h/2)<1?r/2*(o*o*(((_*=1.525)+1)*o-_))+t:r/2*((o-=2)*o*(((_*=1.525)+1)*o+_)+2)+t},ElasticEaseIn(o,t,r,h,_,p){var S=0;return o===0?t:(o/=h)===1?t+r:(p||(p=h*.3),!_||_<Math.abs(r)?(_=r,S=p/4):S=p/(2*Math.PI)*Math.asin(r/_),-(_*Math.pow(2,10*(o-=1))*Math.sin((o*h-S)*(2*Math.PI)/p))+t)},ElasticEaseOut(o,t,r,h,_,p){var S=0;return o===0?t:(o/=h)===1?t+r:(p||(p=h*.3),!_||_<Math.abs(r)?(_=r,S=p/4):S=p/(2*Math.PI)*Math.asin(r/_),_*Math.pow(2,-10*o)*Math.sin((o*h-S)*(2*Math.PI)/p)+r+t)},ElasticEaseInOut(o,t,r,h,_,p){var S=0;return o===0?t:(o/=h/2)===2?t+r:(p||(p=h*(.3*1.5)),!_||_<Math.abs(r)?(_=r,S=p/4):S=p/(2*Math.PI)*Math.asin(r/_),o<1?-.5*(_*Math.pow(2,10*(o-=1))*Math.sin((o*h-S)*(2*Math.PI)/p))+t:_*Math.pow(2,-10*(o-=1))*Math.sin((o*h-S)*(2*Math.PI)/p)*.5+r+t)},BounceEaseOut(o,t,r,h){return(o/=h)<1/2.75?r*(7.5625*o*o)+t:o<2/2.75?r*(7.5625*(o-=1.5/2.75)*o+.75)+t:o<2.5/2.75?r*(7.5625*(o-=2.25/2.75)*o+.9375)+t:r*(7.5625*(o-=2.625/2.75)*o+.984375)+t},BounceEaseIn(o,t,r,h){return r-m.BounceEaseOut(h-o,0,r,h)+t},BounceEaseInOut(o,t,r,h){return o<h/2?m.BounceEaseIn(o*2,0,r,h)*.5+t:m.BounceEaseOut(o*2-h,0,r,h)*.5+r*.5+t},EaseIn(o,t,r,h){return r*(o/=h)*o+t},EaseOut(o,t,r,h){return-r*(o/=h)*(o-2)+t},EaseInOut(o,t,r,h){return(o/=h/2)<1?r/2*o*o+t:-r/2*(--o*(o-2)-1)+t},StrongEaseIn(o,t,r,h){return r*(o/=h)*o*o*o*o+t},StrongEaseOut(o,t,r,h){return r*((o=o/h-1)*o*o*o*o+1)+t},StrongEaseInOut(o,t,r,h){return(o/=h/2)<1?r/2*o*o*o*o*o+t:r/2*((o-=2)*o*o*o*o+2)+t},Linear(o,t,r,h){return r*o/h+t}};var w=L("../../node_modules/konva/lib/Context.js");const A=M.J._assign(x.kg,{Util:M.J,Transform:M.d,Node:y.b,Container:J.m,Stage:bt,stages:ft,Layer:kt,FastLayer:Mt,Group:Nt.Y,DD:C.DD,Shape:Pt.y,shapes:Pt.n,Animation:Lt.X,Tween:g,Easings:m,Context:w.ob,Canvas:d.Hl});var P=null},
vendor: 16,490 bytes, line 3
3"../../node_modules/konva/lib/index.js":function(St,ut,L){var x=L("../../node_modules/konva/lib/_CoreInternals.js"),M=L("../../node_modules/konva/lib/shapes/Arc.js"),y=L("../../node_modules/konva/lib/shapes/Arrow.js"),J=L("../../node_modules/konva/lib/shapes/Circle.js"),W=L("../../node_modules/konva/lib/shapes/Ellipse.js"),d=L("../../node_modules/konva/lib/shapes/Image.js"),C=L("../../node_modules/konva/lib/shapes/Label.js"),D=L("../../node_modules/konva/lib/shapes/Line.js"),O=L("../../node_modules/konva/lib/shapes/Path.js"),F=L("../../node_modules/konva/lib/shapes/Rect.js"),X=L("../../node_modules/konva/lib/shapes/RegularPolygon.js"),Y=L("../../node_modules/konva/lib/shapes/Ring.js"),Z=L("../../node_modules/konva/lib/shapes/Sprite.js"),at=L("../../node_modules/konva/lib/shapes/Star.js"),j=L("../../node_modules/konva/lib/shapes/Text.js"),tt=L("../../node_modules/konva/lib/shapes/TextPath.js"),rt=L("../../node_modules/konva/lib/shapes/Transformer.js"),nt=L("../../node_modules/konva/lib/shapes/Wedge.js"),n=L("../../node_modules/konva/lib/Factory.js"),e=L("../../node_modules/konva/lib/Node.js"),a=L("../../node_modules/konva/lib/Validators.js");function u(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var T=[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],v=[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(E,f){var g=E.data,m=E.width,w=E.height,A,P,o,t,r,h,_,p,S,z,N,G,V,Q,K,it,ht,lt,pt,vt,mt,_t,dt,wt,Rt=f+f+1,Ft=m-1,Ht=w-1,Ct=f+1,xt=Ct*(Ct+1)/2,Gt=new u,Wt=null,ct=Gt,gt=null,Et=null,Tt=T[f],Dt=v[f];for(o=1;o<Rt;o++)ct=ct.next=new u,o===Ct&&(Wt=ct);for(ct.next=Gt,_=h=0,P=0;P<w;P++){for(it=ht=lt=pt=p=S=z=N=0,G=Ct*(vt=g[h]),V=Ct*(mt=g[h+1]),Q=Ct*(_t=g[h+2]),K=Ct*(dt=g[h+3]),p+=xt*vt,S+=xt*mt,z+=xt*_t,N+=xt*dt,ct=Gt,o=0;o<Ct;o++)ct.r=vt,ct.g=mt,ct.b=_t,ct.a=dt,ct=ct.next;for(o=1;o<Ct;o++)t=h+((Ft<o?Ft:o)<<2),p+=(ct.r=vt=g[t])*(wt=Ct-o),S+=(ct.g=mt=g[t+1])*wt,z+=(ct.b=_t=g[t+2])*wt,N+=(ct.a=dt=g[t+3])*wt,it+=vt,ht+=mt,lt+=_t,pt+=dt,ct=ct.next;for(gt=Gt,Et=Wt,A=0;A<m;A++)g[h+3]=dt=N*Tt>>Dt,dt!==0?(dt=255/dt,g[h]=(p*Tt>>Dt)*dt,g[h+1]=(S*Tt>>Dt)*dt,g[h+2]=(z*Tt>>Dt)*dt):g[h]=g[h+1]=g[h+2]=0,p-=G,S-=V,z-=Q,N-=K,G-=gt.r,V-=gt.g,Q-=gt.b,K-=gt.a,t=_+((t=A+f+1)<Ft?t:Ft)<<2,it+=gt.r=g[t],ht+=gt.g=g[t+1],lt+=gt.b=g[t+2],pt+=gt.a=g[t+3],p+=it,S+=ht,z+=lt,N+=pt,gt=gt.next,G+=vt=Et.r,V+=mt=Et.g,Q+=_t=Et.b,K+=dt=Et.a,it-=vt,ht-=mt,lt-=_t,pt-=dt,Et=Et.next,h+=4;_+=m}for(A=0;A<m;A++){for(ht=lt=pt=it=S=z=N=p=0,h=A<<2,G=Ct*(vt=g[h]),V=Ct*(mt=g[h+1]),Q=Ct*(_t=g[h+2]),K=Ct*(dt=g[h+3]),p+=xt*vt,S+=xt*mt,z+=xt*_t,N+=xt*dt,ct=Gt,o=0;o<Ct;o++)ct.r=vt,ct.g=mt,ct.b=_t,ct.a=dt,ct=ct.next;for(r=m,o=1;o<=f;o++)h=r+A<<2,p+=(ct.r=vt=g[h])*(wt=Ct-o),S+=(ct.g=mt=g[h+1])*wt,z+=(ct.b=_t=g[h+2])*wt,N+=(ct.a=dt=g[h+3])*wt,it+=vt,ht+=mt,lt+=_t,pt+=dt,ct=ct.next,o<Ht&&(r+=m);for(h=A,gt=Gt,Et=Wt,P=0;P<w;P++)t=h<<2,g[t+3]=dt=N*Tt>>Dt,dt>0?(dt=255/dt,g[t]=(p*Tt>>Dt)*dt,g[t+1]=(S*Tt>>Dt)*dt,g[t+2]=(z*Tt>>Dt)*dt):g[t]=g[t+1]=g[t+2]=0,p-=G,S-=V,z-=Q,N-=K,G-=gt.r,V-=gt.g,Q-=gt.b,K-=gt.a,t=A+((t=P+Ct)<Ht?t:Ht)*m<<2,p+=it+=gt.r=g[t],S+=ht+=gt.g=g[t+1],z+=lt+=gt.b=g[t+2],N+=pt+=gt.a=g[t+3],gt=gt.next,G+=vt=Et.r,V+=mt=Et.g,Q+=_t=Et.b,K+=dt=Et.a,it-=vt,ht-=mt,lt-=_t,pt-=dt,Et=Et.next,h+=m}}const R=function(f){var g=Math.round(this.blurRadius());g>0&&H(f,g)};n.$.addGetterSetter(e.b,"blurRadius",0,(0,a.oz)(),n.$.afterSetFilter);const I=function(E){var f=this.brightness()*255,g=E.data,m=g.length,w;for(w=0;w<m;w+=4)g[w]+=f,g[w+1]+=f,g[w+2]+=f};n.$.addGetterSetter(e.b,"brightness",0,(0,a.oz)(),n.$.afterSetFilter);const k=function(E){var f=Math.pow((this.contrast()+100)/100,2),g=E.data,m=g.length,w=150,A=150,P=150,o;for(o=0;o<m;o+=4)w=g[o],A=g[o+1],P=g[o+2],w/=255,w-=.5,w*=f,w+=.5,w*=255,A/=255,A-=.5,A*=f,A+=.5,A*=255,P/=255,P-=.5,P*=f,P+=.5,P*=255,w=w<0?0:w>255?255:w,A=A<0?0:A>255?255:A,P=P<0?0:P>255?255:P,g[o]=w,g[o+1]=A,g[o+2]=P};n.$.addGetterSetter(e.b,"contrast",0,(0,a.oz)(),n.$.afterSetFilter);var B=L("../../node_modules/konva/lib/Util.js");const q=function(E){var f=this.embossStrength()*10,g=this.embossWhiteLevel()*255,m=this.embossDirection(),w=this.embossBlend(),A=0,P=0,o=E.data,t=E.width,r=E.height,h=t*4,_=r;switch(m){case"top-left":A=-1,P=-1;break;case"top":A=-1,P=0;break;case"top-right":A=-1,P=1;break;case"right":A=0,P=1;break;case"bottom-right":A=1,P=1;break;case"bottom":A=1,P=0;break;case"bottom-left":A=1,P=-1;break;case"left":A=0,P=-1;break;default:B.J.error("Unknown emboss direction: "+m)}do{var p=(_-1)*h,S=A;_+S<1&&(S=0),_+S>r&&(S=0);var z=(_-1+S)*t*4,N=t;do{var G=p+(N-1)*4,V=P;N+V<1&&(V=0),N+V>t&&(V=0);var Q=z+(N-1+V)*4,K=o[G]-o[Q],it=o[G+1]-o[Q+1],ht=o[G+2]-o[Q+2],lt=K,pt=lt>0?lt:-lt,vt=it>0?it:-it,mt=ht>0?ht:-ht;if(vt>pt&&(lt=it),mt>pt&&(lt=ht),lt*=f,w){var _t=o[G]+lt,dt=o[G+1]+lt,wt=o[G+2]+lt;o[G]=_t>255?255:_t<0?0:_t,o[G+1]=dt>255?255:dt<0?0:dt,o[G+2]=wt>255?255:wt<0?0:wt}else{var Rt=g-lt;Rt<0?Rt=0:Rt>255&&(Rt=255),o[G]=o[G+1]=o[G+2]=Rt}}while(--N)}while(--_)};n.$.addGetterSetter(e.b,"embossStrength",.5,(0,a.oz)(),n.$.afterSetFilter),n.$.addGetterSetter(e.b,"embossWhiteLevel",.5,(0,a.oz)(),n.$.afterSetFilter),n.$.addGetterSetter(e.b,"embossDirection","top-left",null,n.$.afterSetFilter),n.$.addGetterSetter(e.b,"embossBlend",!1,null,n.$.afterSetFilter);function i(E,f,g,m,w){var A=g-f,P=w-m,o;return A===0?m+P/2:P===0?m:(o=(E-f)/A,o=P*o+m,o)}const s=function(E){var f=E.data,g=f.length,m=f[0],w=m,A,P=f[1],o=P,t,r=f[2],h=r,_,p,S=this.enhance();if(S!==0){for(p=0;p<g;p+=4)A=f[p+0],A<m?m=A:A>w&&(w=A),t=f[p+1],t<P?P=t:t>o&&(o=t),_=f[p+2],_<r?r=_:_>h&&(h=_);w===m&&(w=255,m=0),o===P&&(o=255,P=0),h===r&&(h=255,r=0);var z,N,G,V,Q,K,it,ht,lt;for(S>0?(N=w+S*(255-w),G=m-S*(m-0),Q=o+S*(255-o),K=P-S*(P-0),ht=h+S*(255-h),lt=r-S*(r-0)):(z=(w+m)*.5,N=w+S*(w-z),G=m+S*(m-z),V=(o+P)*.5,Q=o+S*(o-V),K=P+S*(P-V),it=(h+r)*.5,ht=h+S*(h-it),lt=r+S*(r-it)),p=0;p<g;p+=4)f[p+0]=i(f[p+0],m,w,G,N),f[p+1]=i(f[p+1],P,o,K,Q),f[p+2]=i(f[p+2],r,h,lt,ht)}};n.$.addGetterSetter(e.b,"enhance",0,(0,a.oz)(),n.$.afterSetFilter);const l=function(E){var f=E.data,g=f.length,m,w;for(m=0;m<g;m+=4)w=.34*f[m]+.5*f[m+1]+.16*f[m+2],f[m]=w,f[m+1]=w,f[m+2]=w};n.$.addGetterSetter(e.b,"hue",0,(0,a.oz)(),n.$.afterSetFilter),n.$.addGetterSetter(e.b,"saturation",0,(0,a.oz)(),n.$.afterSetFilter),n.$.addGetterSetter(e.b,"luminance",0,(0,a.oz)(),n.$.afterSetFilter);const c=function(E){var f=E.data,g=f.length,m=1,w=Math.pow(2,this.saturation()),A=Math.abs(this.hue()+360)%360,P=this.luminance()*127,o,t=m*w*Math.cos(A*Math.PI/180),r=m*w*Math.sin(A*Math.PI/180),h=.299*m+.701*t+.167*r,_=.587*m-.587*t+.33*r,p=.114*m-.114*t-.497*r,S=.299*m-.299*t-.328*r,z=.587*m+.413*t+.035*r,N=.114*m-.114*t+.293*r,G=.299*m-.3*t+1.25*r,V=.587*m-.586*t-1.05*r,Q=.114*m+.886*t-.2*r,K,it,ht,lt;for(o=0;o<g;o+=4)K=f[o+0],it=f[o+1],ht=f[o+2],lt=f[o+3],f[o+0]=h*K+_*it+p*ht+P,f[o+1]=S*K+z*it+N*ht+P,f[o+2]=G*K+V*it+Q*ht+P,f[o+3]=lt},b=function(E){var f=E.data,g=f.length,m=Math.pow(2,this.value()),w=Math.pow(2,this.saturation()),A=Math.abs(this.hue()+360)%360,P,o=m*w*Math.cos(A*Math.PI/180),t=m*w*Math.sin(A*Math.PI/180),r=.299*m+.701*o+.167*t,h=.587*m-.587*o+.33*t,_=.114*m-.114*o-.497*t,p=.299*m-.299*o-.328*t,S=.587*m+.413*o+.035*t,z=.114*m-.114*o+.293*t,N=.299*m-.3*o+1.25*t,G=.587*m-.586*o-1.05*t,V=.114*m+.886*o-.2*t,Q,K,it,ht;for(P=0;P<g;P+=4)Q=f[P+0],K=f[P+1],it=f[P+2],ht=f[P+3],f[P+0]=r*Q+h*K+_*it,f[P+1]=p*Q+S*K+z*it,f[P+2]=N*Q+G*K+V*it,f[P+3]=ht};n.$.addGetterSetter(e.b,"hue",0,(0,a.oz)(),n.$.afterSetFilter),n.$.addGetterSetter(e.b,"saturation",0,(0,a.oz)(),n.$.afterSetFilter),n.$.addGetterSetter(e.b,"value",0,(0,a.oz)(),n.$.afterSetFilter);const U=function(E){var f=E.data,g=f.length,m;for(m=0;m<g;m+=4)f[m]=255-f[m],f[m+1]=255-f[m+1],f[m+2]=255-f[m+2]};var $=function(E,f,g){var m=E.data,w=f.data,A=E.width,P=E.height,o=g.polarCenterX||A/2,t=g.polarCenterY||P/2,r,h,_,p=0,S=0,z=0,N=0,G,V=Math.sqrt(o*o+t*t);h=A-o,_=P-t,G=Math.sqrt(h*h+_*_),V=G>V?G:V;var Q=P,K=A,it,ht,lt=360/K*Math.PI/180,pt,vt;for(ht=0;ht<K;ht+=1)for(pt=Math.sin(ht*lt),vt=Math.cos(ht*lt),it=0;it<Q;it+=1)h=Math.floor(o+V*it/Q*vt),_=Math.floor(t+V*it/Q*pt),r=(_*A+h)*4,p=m[r+0],S=m[r+1],z=m[r+2],N=m[r+3],r=(ht+it*A)*4,w[r+0]=p,w[r+1]=S,w[r+2]=z,w[r+3]=N},et=function(E,f,g){var m=E.data,w=f.data,A=E.width,P=E.height,o=g.polarCenterX||A/2,t=g.polarCenterY||P/2,r,h,_,p,S,z=0,N=0,G=0,V=0,Q,K=Math.sqrt(o*o+t*t);h=A-o,_=P-t,Q=Math.sqrt(h*h+_*_),K=Q>K?Q:K;var it=P,ht=A,lt,pt,vt=g.polarRotation||0,mt,_t;for(h=0;h<A;h+=1)for(_=0;_<P;_+=1)p=h-o,S=_-t,lt=Math.sqrt(p*p+S*S)*it/K,pt=(Math.atan2(S,p)*180/Math.PI+360+vt)%360,pt=pt*ht/360,mt=Math.floor(pt),_t=Math.floor(lt),r=(_t*A+mt)*4,z=m[r+0],N=m[r+1],G=m[r+2],V=m[r+3],r=(_*A+h)*4,w[r+0]=z,w[r+1]=N,w[r+2]=G,w[r+3]=V};const st=function(E){var f=E.width,g=E.height,m,w,A,P,o,t,r,h,_,p,S=Math.round(this.kaleidoscopePower()),z=Math.round(this.kaleidoscopeAngle()),N=Math.floor(f*(z%360)/360);if(!(S<1)){var G=B.J.createCanvasElement();G.width=f,G.height=g;var V=G.getContext("2d").getImageData(0,0,f,g);B.J.releaseCanvas(G),$(E,V,{polarCenterX:f/2,polarCenterY:g/2});for(var Q=f/Math.pow(2,S);Q<=8;)Q=Q*2,S-=1;Q=Math.ceil(Q);var K=Q,it=0,ht=K,lt=1;for(N+Q>f&&(it=K,ht=0,lt=-1),w=0;w<g;w+=1)for(m=it;m!==ht;m+=lt)A=Math.round(m+N)%f,_=(f*w+A)*4,o=V.data[_+0],t=V.data[_+1],r=V.data[_+2],h=V.data[_+3],p=(f*w+m)*4,V.data[p+0]=o,V.data[p+1]=t,V.data[p+2]=r,V.data[p+3]=h;for(w=0;w<g;w+=1)for(K=Math.floor(Q),P=0;P<S;P+=1){for(m=0;m<K+1;m+=1)_=(f*w+m)*4,o=V.data[_+0],t=V.data[_+1],r=V.data[_+2],h=V.data[_+3],p=(f*w+K*2-m-1)*4,V.data[p+0]=o,V.data[p+1]=t,V.data[p+2]=r,V.data[p+3]=h;K*=2}et(V,E,{polarRotation:0})}};n.$.addGetterSetter(e.b,"kaleidoscopePower",2,(0,a.oz)(),n.$.afterSetFilter),n.$.addGetterSetter(e.b,"kaleidoscopeAngle",0,(0,a.oz)(),n.$.afterSetFilter);function ot(E,f,g){var m=(g*E.width+f)*4,w=[];return w.push(E.data[m++],E.data[m++],E.data[m++],E.data[m++]),w}function ft(E,f){return Math.sqrt(Math.pow(E[0]-f[0],2)+Math.pow(E[1]-f[1],2)+Math.pow(E[2]-f[2],2))}function bt(E){for(var f=[0,0,0],g=0;g<E.length;g++)f[0]+=E[g][0],f[1]+=E[g][1],f[2]+=E[g][2];return f[0]/=E.length,f[1]/=E.length,f[2]/=E.length,f}function Ot(E,f){var g=ot(E,0,0),m=ot(E,E.width-1,0),w=ot(E,0,E.height-1),A=ot(E,E.width-1,E.height-1),P=f||10;if(ft(g,m)<P&&ft(m,A)<P&&ft(A,w)<P&&ft(w,g)<P){for(var o=bt([m,g,A,w]),t=[],r=0;r<E.width*E.height;r++){var h=ft(o,[E.data[r*4],E.data[r*4+1],E.data[r*4+2]]);t[r]=h<P?0:255}return t}}function Pt(E,f){for(var g=0;g<E.width*E.height;g++)E.data[4*g+3]=f[g]}function yt(E,f,g){for(var m=[1,1,1,1,0,1,1,1,1],w=Math.round(Math.sqrt(m.length)),A=Math.floor(w/2),P=[],o=0;o<g;o++)for(var t=0;t<f;t++){for(var r=o*f+t,h=0,_=0;_<w;_++)for(var p=0;p<w;p++){var S=o+_-A,z=t+p-A;if(S>=0&&S<g&&z>=0&&z<f){var N=S*f+z,G=m[_*w+p];h+=E[N]*G}}P[r]=h===255*8?255:0}return P}function At(E,f,g){for(var m=[1,1,1,1,1,1,1,1,1],w=Math.round(Math.sqrt(m.length)),A=Math.floor(w/2),P=[],o=0;o<g;o++)for(var t=0;t<f;t++){for(var r=o*f+t,h=0,_=0;_<w;_++)for(var p=0;p<w;p++){var S=o+_-A,z=t+p-A;if(S>=0&&S<g&&z>=0&&z<f){var N=S*f+z,G=m[_*w+p];h+=E[N]*G}}P[r]=h>=255*4?255:0}return P}function jt(E,f,g){for(var m=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],w=Math.round(Math.sqrt(m.length)),A=Math.floor(w/2),P=[],o=0;o<g;o++)for(var t=0;t<f;t++){for(var r=o*f+t,h=0,_=0;_<w;_++)for(var p=0;p<w;p++){var S=o+_-A,z=t+p-A;if(S>=0&&S<g&&z>=0&&z<f){var N=S*f+z,G=m[_*w+p];h+=E[N]*G}}P[r]=h}return P}const It=function(E){var f=this.threshold(),g=Ot(E,f);return g&&(g=yt(g,E.width,E.height),g=At(g,E.width,E.height),g=jt(g,E.width,E.height),Pt(E,g)),E};n.$.addGetterSetter(e.b,"threshold",0,(0,a.oz)(),n.$.afterSetFilter);const Ut=function(E){var f=this.noise()*255,g=E.data,m=g.length,w=f/2,A;for(A=0;A<m;A+=4)g[A+0]+=w-2*w*Math.random(),g[A+1]+=w-2*w*Math.random(),g[A+2]+=w-2*w*Math.random()};n.$.addGetterSetter(e.b,"noise",.2,(0,a.oz)(),n.$.afterSetFilter);const kt=function(E){var f=Math.ceil(this.pixelSize()),g=E.width,m=E.height,w,A,P,o,t,r,h,_=Math.ceil(g/f),p=Math.ceil(m/f),S,z,N,G,V,Q,K,it=E.data;if(f<=0){B.J.error("pixelSize value can not be <= 0");return}for(V=0;V<_;V+=1)for(Q=0;Q<p;Q+=1){for(o=0,t=0,r=0,h=0,S=V*f,z=S+f,N=Q*f,G=N+f,K=0,w=S;w<z;w+=1)if(!(w>=g))for(A=N;A<G;A+=1)A>=m||(P=(g*A+w)*4,o+=it[P+0],t+=it[P+1],r+=it[P+2],h+=it[P+3],K+=1);for(o=o/K,t=t/K,r=r/K,h=h/K,w=S;w<z;w+=1)if(!(w>=g))for(A=N;A<G;A+=1)A>=m||(P=(g*A+w)*4,it[P+0]=o,it[P+1]=t,it[P+2]=r,it[P+3]=h)}};n.$.addGetterSetter(e.b,"pixelSize",8,(0,a.oz)(),n.$.afterSetFilter);const Mt=function(E){var f=Math.round(this.levels()*254)+1,g=E.data,m=g.length,w=255/f,A;for(A=0;A<m;A+=1)g[A]=Math.floor(g[A]/w)*w};n.$.addGetterSetter(e.b,"levels",.5,(0,a.oz)(),n.$.afterSetFilter);const Nt=function(E){var f=E.data,g=f.length,m=this.red(),w=this.green(),A=this.blue(),P,o;for(P=0;P<g;P+=4)o=(.34*f[P]+.5*f[P+1]+.16*f[P+2])/255,f[P]=o*m,f[P+1]=o*w,f[P+2]=o*A,f[P+3]=f[P+3]};n.$.addGetterSetter(e.b,"red",0,function(E){return this._filterUpToDate=!1,E>255?255:E<0?0:Math.round(E)}),n.$.addGetterSetter(e.b,"green",0,function(E){return this._filterUpToDate=!1,E>255?255:E<0?0:Math.round(E)}),n.$.addGetterSetter(e.b,"blue",0,a.hV,n.$.afterSetFilter);const Lt=function(E){var f=E.data,g=f.length,m=this.red(),w=this.green(),A=this.blue(),P=this.alpha(),o,t;for(o=0;o<g;o+=4)t=1-P,f[o]=m*P+f[o]*t,f[o+1]=w*P+f[o+1]*t,f[o+2]=A*P+f[o+2]*t};n.$.addGetterSetter(e.b,"red",0,function(E){return this._filterUpToDate=!1,E>255?255:E<0?0:Math.round(E)}),n.$.addGetterSetter(e.b,"green",0,function(E){return this._filterUpToDate=!1,E>255?255:E<0?0:Math.round(E)}),n.$.addGetterSetter(e.b,"blue",0,a.hV,n.$.afterSetFilter),n.$.addGetterSetter(e.b,"alpha",1,function(E){return this._filterUpToDate=!1,E>1?1:E<0?0:E});const Jt=function(E){var f=E.data,g=f.length,m,w,A,P;for(m=0;m<g;m+=4)w=f[m+0],A=f[m+1],P=f[m+2],f[m+0]=Math.min(255,w*.393+A*.769+P*.189),f[m+1]=Math.min(255,w*.349+A*.686+P*.168),f[m+2]=Math.min(255,w*.272+A*.534+P*.131)},$t=function(E){var f=E.data,g=E.width,m=E.height,w=g*4,A=m;do{var P=(A-1)*w,o=g;do{var t=P+(o-1)*4,r=f[t],h=f[t+1],_=f[t+2];r>127&&(r=255-r),h>127&&(h=255-h),_>127&&(_=255-_),f[t]=r,f[t+1]=h,f[t+2]=_}while(--o)}while(--A)},Bt=function(E){var f=this.threshold()*255,g=E.data,m=g.length,w;for(w=0;w<m;w+=1)g[w]=g[w]<f?0:255};n.$.addGetterSetter(e.b,"threshold",.5,(0,a.oz)(),n.$.afterSetFilter);const zt=x.k.Util._assign(x.k,{Arc:M.l,Arrow:y.i,Circle:J.j,Ellipse:W.P,Image:d._,Label:C.J,Tag:C.v,Line:D.N,Path:O.w,Rect:F.r,RegularPolygon:X.R,Ring:Y.J,Sprite:Z.k,Star:at.F,Text:j.E,TextPath:tt.t,Transformer:rt.G,Wedge:nt.R,Filters:{Blur:R,Brighten:I,Contrast:k,Emboss:q,Enhance:s,Grayscale:l,HSL:c,HSV:b,Invert:U,Kaleidoscope:st,Mask:It,Noise:Ut,Pixelate:kt,Posterize:Mt,RGB:Nt,RGBA:Lt,Sepia:Jt,Solarize:$t,Threshold:Bt}});var Yt=null}
3}]);
4
5//# debugId=be66929c-6598-5330-8d9d-4d8a45d8ce1e

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.