Nav apraksta

index.js 51KB

1
  1. !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(window,function(){return function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=10)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){}return t.createRect=function(e,r,o){var n=document.createElementNS("http://www.w3.org/2000/svg","rect");return n.setAttribute("width",e.toString()),n.setAttribute("height",r.toString()),o&&t.setAttributes(n,o),n},t.createLine=function(e,r,o,n,i){var s=document.createElementNS("http://www.w3.org/2000/svg","line");return s.setAttribute("x1",e.toString()),s.setAttribute("y1",r.toString()),s.setAttribute("x2",o.toString()),s.setAttribute("y2",n.toString()),i&&t.setAttributes(s,i),s},t.createPolygon=function(e,r){var o=document.createElementNS("http://www.w3.org/2000/svg","polygon");return o.setAttribute("points",e),r&&t.setAttributes(o,r),o},t.createCircle=function(e,r){var o=document.createElementNS("http://www.w3.org/2000/svg","circle");return o.setAttribute("cx",(e/2).toString()),o.setAttribute("cy",(e/2).toString()),o.setAttribute("r",e.toString()),r&&t.setAttributes(o,r),o},t.createGroup=function(e){var r=document.createElementNS("http://www.w3.org/2000/svg","g");return e&&t.setAttributes(r,e),r},t.setAttributes=function(t,e){for(var r=0,o=e;r<o.length;r++){var n=o[r],i=n[0],s=n[1];t.setAttribute(i,s)}},t.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},t.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},t.createMarker=function(e,r,o,n,i,s,a){var c=document.createElementNS("http://www.w3.org/2000/svg","marker");return t.setAttributes(c,[["id",e],["orient",r],["markerWidth",o.toString()],["markerHeight",n.toString()],["refX",i.toString()],["refY",s.toString()]]),c.appendChild(a),c},t.createText=function(e){var r=document.createElementNS("http://www.w3.org/2000/svg","text");return r.setAttribute("x","0"),r.setAttribute("y","0"),e&&t.setAttributes(r,e),r},t.createTSpan=function(e,r){var o=document.createElementNS("http://www.w3.org/2000/svg","tspan");return o.textContent=e,r&&t.setAttributes(o,r),o},t}();e.SvgHelper=o},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(0),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.setup=function(){t.prototype.setup.call(this),this.markerRect=i.SvgHelper.createRect(this.width,this.height),this.addToRenderVisual(this.markerRect)},e.prototype.resize=function(e,r,o){t.prototype.resize.call(this,e,r,o),this.markerRect.setAttribute("width",this.width.toString()),this.markerRect.setAttribute("height",this.height.toString())},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(r(4).RectangularMarker);e.RectBaseMarker=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(3);e.uuid=o},function(t,e,r){var o,n,i=r(13),s=r(14),a=0,c=0;t.exports=function(t,e,r){var l=e&&r||0,u=e||[],p=(t=t||{}).node||o,d=void 0!==t.clockseq?t.clockseq:n;if(null==p||null==d){var h=i();null==p&&(p=o=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==d&&(d=n=16383&(h[6]<<8|h[7]))}var f=void 0!==t.msecs?t.msecs:(new Date).getTime(),v=void 0!==t.nsecs?t.nsecs:c+1,m=f-a+(v-c)/1e4;if(m<0&&void 0===t.clockseq&&(d=d+1&16383),(m<0||f>a)&&void 0===t.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=f,c=v,n=d;var g=(1e4*(268435455&(f+=122192928e5))+v)%4294967296;u[l++]=g>>>24&255,u[l++]=g>>>16&255,u[l++]=g>>>8&255,u[l++]=255&g;var b=f/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var w=0;w<6;++w)u[l+w]=p[w];return e||s(u)}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(17),s=r(5),a=r(6),c=r(0),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.MIN_SIZE=5,e.CB_DISTANCE=10,e.addControlBox=function(){e.controlBox=c.SvgHelper.createGroup([["class","fc-whiteboard-rect-control-box"]]);var t=c.SvgHelper.createTransform();t.setTranslate(-e.CB_DISTANCE/2,-e.CB_DISTANCE/2),e.controlBox.transform.baseVal.appendItem(t),e.addToVisual(e.controlBox),e.controlRect=c.SvgHelper.createRect(e.width+e.CB_DISTANCE,e.height+e.CB_DISTANCE,[["class","fc-whiteboard-rect-control-rect"]]),e.controlBox.appendChild(e.controlRect),e.controlGrips=new i.RectangularMarkerGrips,e.addControlGrips()},e.adjustControlBox=function(){e.controlRect.setAttribute("width",(e.width+e.CB_DISTANCE).toString()),e.controlRect.setAttribute("height",(e.height+e.CB_DISTANCE).toString()),e.positionGrips()},e.addControlGrips=function(){e.controlGrips.topLeft=e.createGrip(),e.controlGrips.topCenter=e.createGrip(),e.controlGrips.topRight=e.createGrip(),e.controlGrips.centerLeft=e.createGrip(),e.controlGrips.centerRight=e.createGrip(),e.controlGrips.bottomLeft=e.createGrip(),e.controlGrips.bottomCenter=e.createGrip(),e.controlGrips.bottomRight=e.createGrip(),e.positionGrips()},e.createGrip=function(){var t=new a.ResizeGrip;return t.visual.transform.baseVal.appendItem(c.SvgHelper.createTransform()),e.controlBox.appendChild(t.visual),t.visual.addEventListener("mousedown",e.gripMouseDown),t.visual.addEventListener("mousemove",e.gripMouseMove),t.visual.addEventListener("mouseup",e.gripMouseUp),t.visual.addEventListener("touchstart",e.onTouch,{passive:!1}),t.visual.addEventListener("touchend",e.onTouch,{passive:!1}),t.visual.addEventListener("touchmove",e.onTouch,{passive:!1}),t},e.positionGrips=function(){var t=e.controlGrips.topLeft.GRIP_SIZE,r=-t/2,o=r,n=(e.width+e.CB_DISTANCE)/2-t/2,i=(e.height+e.CB_DISTANCE)/2-t/2,s=e.height+e.CB_DISTANCE-t/2,a=e.width+e.CB_DISTANCE-t/2;e.positionGrip(e.controlGrips.topLeft.visual,r,o),e.positionGrip(e.controlGrips.topCenter.visual,n,o),e.positionGrip(e.controlGrips.topRight.visual,a,o),e.positionGrip(e.controlGrips.centerLeft.visual,r,i),e.positionGrip(e.controlGrips.centerRight.visual,a,i),e.positionGrip(e.controlGrips.bottomLeft.visual,r,s),e.positionGrip(e.controlGrips.bottomCenter.visual,n,s),e.positionGrip(e.controlGrips.bottomRight.visual,a,s)},e.positionGrip=function(t,e,r){var o=t.transform.baseVal.getItem(0);o.setTranslate(e,r),t.transform.baseVal.replaceItem(o,0)},e.gripMouseDown=function(t){e.isResizing=!0,e.activeGrip=e.controlGrips.findGripByVisual(t.target)||null,e.previousMouseX=t.screenX,e.previousMouseY=t.screenY,t.stopPropagation()},e.gripMouseUp=function(t){e.isResizing=!1,e.activeGrip=null,t.stopPropagation()},e.gripMouseMove=function(t){e.isResizing&&e.manipulate(t)},e}return n(e,t),e.prototype.endManipulation=function(){t.prototype.endManipulation.call(this),this.isResizing=!1,this.activeGrip=null},e.prototype.select=function(){t.prototype.select.call(this),this.controlBox.style.display=""},e.prototype.deselect=function(){t.prototype.deselect.call(this),this.controlBox.style.display="none"},e.prototype.setup=function(){t.prototype.setup.call(this),this.addControlBox(),this.page&&"mirror"===this.page.mode&&(this.controlBox.style.display="none")},e.prototype.resizeByEvent=function(t,e,r){this.activeGrip=this.controlGrips[r],this.resize(t,e)},e.prototype.resize=function(t,e,r){var o=0,n=0;switch(this.activeGrip){case this.controlGrips.topLeft:this.width-=t,this.height-=e,o+=t,n+=e,r&&r("topLeft");break;case this.controlGrips.bottomLeft:this.width-=t,this.height+=e,o+=t,r&&r("bottomLeft");break;case this.controlGrips.topRight:this.width+=t,this.height-=e,n+=e,r&&r("topRight");break;case this.controlGrips.bottomRight:this.width+=t,this.height+=e,r&&r("bottomRight");break;case this.controlGrips.centerLeft:this.width-=t,o+=t,r&&r("centerLeft");break;case this.controlGrips.centerRight:this.width+=t,r&&r("centerRight");break;case this.controlGrips.topCenter:this.height-=e,n+=e,r&&r("topCenter");break;case this.controlGrips.bottomCenter:this.height+=e,r&&r("bottomCenter")}if(this.width<this.MIN_SIZE){var i=this.MIN_SIZE-this.width;this.width=this.MIN_SIZE,0!==o&&(o-=i)}if(this.height<this.MIN_SIZE){i=this.MIN_SIZE-this.height;this.height=this.MIN_SIZE,0!==n&&(n-=i)}if(0!==o||0!==n){var s=this.visual.transform.baseVal.getItem(0);s.setMatrix(s.matrix.translate(o,n)),this.visual.transform.baseVal.replaceItem(s,0)}this.adjustControlBox()},e.prototype.onTouch=function(e){t.prototype.onTouch.call(this,e)},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(s.BaseMarker);e.RectangularMarker=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(3),n=r(0),i=function(){function t(){var t=this;this.id=o(),this.type="base",this.onChange=function(){},this.defs=[],this.width=200,this.height=50,this.isActive=!0,this.isDragging=!1,this.isResizing=!1,this.previousMouseX=0,this.previousMouseY=0,this.manipulate=function(e){var r=t.visual.getScreenCTM().a,o=(e.screenX-t.previousMouseX)/r,n=(e.screenY-t.previousMouseY)/r;t.isDragging&&(t.onChange({target:"marker",id:t.id,event:"move",data:{dx:o,dy:n}}),t.move(o,n)),t.isResizing&&t.resize(o,n,function(e){t.onChange({target:"marker",id:t.id,event:"resize",data:{dx:o,dy:n,pos:e}})}),t.previousMouseX=e.screenX,t.previousMouseY=e.screenY},this.addToVisual=function(e){t.visual.appendChild(e)},this.addToRenderVisual=function(e){t.renderVisual.appendChild(e)},this.mouseDown=function(e){e.stopPropagation(),t.page&&"mirror"===t.page.mode||(t.select(),t.isDragging=!0,t.previousMouseX=e.screenX,t.previousMouseY=e.screenY)},this.mouseUp=function(e){e.stopPropagation(),t.endManipulation()},this.mouseMove=function(e){e.stopPropagation(),t.manipulate(e)},this.move=function(e,r){var o=t.visual.transform.baseVal.getItem(0);o.setMatrix(o.matrix.translate(e,r)),t.visual.transform.baseVal.replaceItem(o,0)}}return t.prototype.reactToManipulation=function(t,e){var r=e.dx,o=e.dy,n=e.pos;"move"===t&&this.move(r,o),"resize"===t&&this.resizeByEvent(r,o,n)},t.prototype.endManipulation=function(){this.isDragging=!1,this.isResizing=!1},t.prototype.select=function(){this.isActive=!0,this.onSelected&&this.onSelected(this)},t.prototype.deselect=function(){this.isActive=!1,this.endManipulation()},t.prototype.setup=function(){this.visual=n.SvgHelper.createGroup(),this.visual.transform.baseVal.appendItem(n.SvgHelper.createTransform()),this.visual.addEventListener("mousedown",this.mouseDown),this.visual.addEventListener("mouseup",this.mouseUp),this.visual.addEventListener("mousemove",this.mouseMove),this.visual.addEventListener("touchstart",this.onTouch,{passive:!1}),this.visual.addEventListener("touchend",this.onTouch,{passive:!1}),this.visual.addEventListener("touchmove",this.onTouch,{passive:!1}),this.renderVisual=n.SvgHelper.createGroup([["class","render-visual"]]),this.visual.appendChild(this.renderVisual)},t.prototype.resize=function(t,e,r){},t.prototype.resizeByEvent=function(t,e,r){},t.prototype.onTouch=function(t){t.preventDefault();var e=document.createEvent("MouseEvents"),r=t.changedTouches[0],o=null;switch(t.type){case"touchstart":o="mousedown";break;case"touchmove":o="mousemove";break;case"touchend":o="mouseup"}e.initMouseEvent(o,!0,!0,window,0,r.screenX,r.screenY,r.clientX,r.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),t.target.dispatchEvent(e)},t.createMarker=function(e){var r=new t;return r.page=e,r.setup(),r},t}();e.BaseMarker=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),n=function(){return function(){this.GRIP_SIZE=10,this.visual=o.SvgHelper.createCircle(this.GRIP_SIZE,[["class","fc-whiteboard-control-grip"]])}}();e.ResizeGrip=n},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(5),s=r(6),a=r(0),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.MIN_LENGTH=20,e.x1=0,e.y1=0,e.x2=e.width,e.y2=0,e.getLineLength=function(t,e,r,o){var n=Math.abs(t-r),i=Math.abs(e-o);return Math.sqrt(Math.pow(n,2)+Math.pow(i,2))},e.addControlBox=function(){e.controlBox=a.SvgHelper.createGroup([["class","fc-whiteboard-line-control-box"]]),e.addToVisual(e.controlBox),e.addControlGrips()},e.adjustControlBox=function(){e.positionGrips()},e.addControlGrips=function(){e.controlGrips={left:e.createGrip(),right:e.createGrip()},e.positionGrips()},e.createGrip=function(){var t=new s.ResizeGrip;return t.visual.transform.baseVal.appendItem(a.SvgHelper.createTransform()),e.controlBox.appendChild(t.visual),t.visual.addEventListener("mousedown",e.gripMouseDown),t.visual.addEventListener("mousemove",e.gripMouseMove),t.visual.addEventListener("mouseup",e.gripMouseUp),t.visual.addEventListener("touchstart",e.onTouch,{passive:!1}),t.visual.addEventListener("touchend",e.onTouch,{passive:!1}),t.visual.addEventListener("touchmove",e.onTouch,{passive:!1}),t},e.positionGrips=function(){var t=e.controlGrips.left.GRIP_SIZE,r=e.x1-t/2,o=e.y1-t/2,n=e.x2-t/2,i=e.y2-t/2;e.positionGrip(e.controlGrips.left.visual,r,o),e.positionGrip(e.controlGrips.right.visual,n,i)},e.positionGrip=function(t,e,r){var o=t.transform.baseVal.getItem(0);o.setTranslate(e,r),t.transform.baseVal.replaceItem(o,0)},e.gripMouseDown=function(t){e.isResizing=!0,e.activeGrip=t.target===e.controlGrips.left.visual?e.controlGrips.left:e.controlGrips.right,e.previousMouseX=t.screenX,e.previousMouseY=t.screenY,t.stopPropagation()},e.gripMouseUp=function(t){e.isResizing=!1,e.activeGrip=null,t.stopPropagation()},e.gripMouseMove=function(t){e.isResizing&&e.resize(t.movementX,t.movementY)},e}return n(e,t),e.prototype.endManipulation=function(){t.prototype.endManipulation.call(this),this.isResizing=!1,this.activeGrip=null},e.prototype.select=function(){t.prototype.select.call(this),this.controlBox.style.display=""},e.prototype.deselect=function(){t.prototype.deselect.call(this),this.controlBox.style.display="none"},e.prototype.setup=function(){t.prototype.setup.call(this),this.markerBgLine=a.SvgHelper.createLine(0,0,this.x2,0,[["stroke","transparent"],["stroke-width","30"]]),this.addToRenderVisual(this.markerBgLine),this.markerLine=a.SvgHelper.createLine(0,0,this.x2,0),this.addToRenderVisual(this.markerLine),this.addControlBox(),this.page&&"mirror"===this.page.mode&&(this.controlBox.style.display="none")},e.prototype.resize=function(t,e,r){this.activeGrip&&(this.activeGrip===this.controlGrips.left&&this.getLineLength(this.x1+t,this.y1+1,this.x2,this.y2)>=this.MIN_LENGTH?(this.x1+=t,this.y1+=e,this.markerBgLine.setAttribute("x1",this.x1.toString()),this.markerBgLine.setAttribute("y1",this.y1.toString()),this.markerLine.setAttribute("x1",this.x1.toString()),this.markerLine.setAttribute("y1",this.y1.toString()),r&&r("left")):this.activeGrip===this.controlGrips.right&&this.getLineLength(this.x1,this.y1,this.x2+t,this.y2+e)>=this.MIN_LENGTH&&(this.x2+=t,this.y2+=e,this.markerBgLine.setAttribute("x2",this.x2.toString()),this.markerBgLine.setAttribute("y2",this.y2.toString()),this.markerLine.setAttribute("x2",this.x2.toString()),this.markerLine.setAttribute("y2",this.y2.toString()),r&&r("right"))),this.adjustControlBox()},e.prototype.resizeByEvent=function(t,e,r){this.activeGrip="left"===r?this.controlGrips.left:this.controlGrips.right,this.resize(t,e)},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(i.BaseMarker);e.LinearMarker=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(11);e.Drawboard=o.Drawboard},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(12),s=r(15),a=r(32),c=r(34);r(36);var l=function(t){function e(e,r){var o=void 0===r?{}:r,n=o.page,i=o.onChange,l=t.call(this,e)||this;return l.scale=1,l.onComplete=function(){},l.onChange=function(){},l.open=function(t,e){t&&(l.onComplete=t),e&&(l.onCancel=e),l.setTargetRect(),l.initBoard(),l.attachEvents(),l.setStyles(),window.addEventListener("resize",l.adjustUI),"master"===l.page.mode&&l.showUI()},l.hide=function(){l.source.imgSrc&&(l.target.style.display="none"),l.boardHolder.style.opacity="0",l.boardHolder.style.zIndex="-1",l.toolbar&&l.toolbar.hide()},l.show=function(){l.source.imgSrc&&(l.target.style.display="block"),l.boardHolder.style.opacity="1",l.boardHolder.style.zIndex="9999",l.toolbar&&l.toolbar.show()},l.close=function(){l.toolbarUI&&document.body.removeChild(l.toolbarUI),l.boardCanvas&&document.body.removeChild(l.boardHolder)},l.render=function(t,e){l.onComplete=t,e&&(l.onCancel=e),l.selectMarker(null),l.startRender(l.renderFinished)},l.addMarker=function(t,e){var r=(void 0===e?{}:e).id,o=t.createMarker(l.page);if(r&&(o.id=r),o.onSelected=l.selectMarker,o.onChange=l.onChange,o.defs&&o.defs.length>0)for(var n=0,i=o.defs;n<i.length;n++){var s=i[n];s.id&&!l.boardCanvas.getElementById(s.id)&&l.defs.appendChild(s)}l.onChange({target:"marker",parentId:l.page?l.page.id:l.id,event:"add",data:{type:o.type,id:o.id}}),l.markers.push(o),l.selectMarker(o),l.boardCanvas.appendChild(o.visual);var a=o.visual.getBBox(),c=l.width/2/l.scale-a.width/2,u=l.height/2/l.scale-a.height/2,p=o.visual.transform.baseVal.getItem(0);p.setMatrix(p.matrix.translate(c,u)),o.visual.transform.baseVal.replaceItem(p,0)},l.deleteActiveMarker=function(){l.activeMarker&&(l.onChange&&l.onChange({event:"remove",id:l.activeMarker.id,target:"marker",data:{id:l.activeMarker.id}}),l.deleteMarker(l.activeMarker))},l.setTargetRect=function(){var t=l.target.getBoundingClientRect(),e=document.body.parentElement.getBoundingClientRect();l.targetRect={left:t.left-e.left,top:t.top-e.top}},l.startRender=function(t){(new a.Synthetizer).rasterize(l.target,l.boardCanvas,t)},l.attachEvents=function(){l.boardCanvas.addEventListener("mousedown",l.mouseDown),l.boardCanvas.addEventListener("mousemove",l.mouseMove),l.boardCanvas.addEventListener("mouseup",l.mouseUp)},l.mouseDown=function(t){l.activeMarker&&(1&t.buttons)>0&&(l.activeMarker.deselect(),l.activeMarker=null)},l.mouseMove=function(t){l.activeMarker&&(1&t.buttons)>0&&l.activeMarker.manipulate(t)},l.mouseUp=function(t){l.activeMarker&&l.activeMarker.endManipulation()},l.adjustUI=function(t){l.adjustSize(),l.positionUI()},l.adjustSize=function(){l.width=l.target.clientWidth,l.height=l.target.clientHeight;var t=l.target.clientWidth/l.boardHolder.clientWidth;1!==t&&(l.scale*=t,l.boardHolder.style.width=l.width+"px",l.boardHolder.style.height=l.height+"px",l.boardHolder.style.transform="scale("+l.scale+")")},l.positionUI=function(){l.setTargetRect(),l.positionBoard(),l.positionToolbar()},l.positionToolbar=function(){l.toolbarUI.style.left=l.targetRect.left+l.target.offsetWidth-l.toolbarUI.clientWidth+"px",l.toolbarUI.style.top=l.targetRect.top-l.toolbarUI.clientHeight+"px"},l.showUI=function(){l.toolbar=new c.Toolbar(l.toolbars,l.toolbarClick),l.toolbarUI=l.toolbar.getUI(),document.body.appendChild(l.toolbarUI),l.toolbarUI.style.position="absolute",l.positionToolbar()},l.setStyles=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","style");t.innerHTML='\n .rect-marker .render-visual {\n stroke: #ff0000;\n stroke-width: 3;\n fill: transparent;\n }\n .cover-marker .render-visual {\n stroke-width: 0;\n fill: #000000;\n }\n .highlight-marker .render-visual {\n stroke: transparent;\n stroke-width: 0;\n fill: #ffff00;\n fill-opacity: 0.4;\n }\n .line-marker .render-visual {\n stroke: #ff0000;\n stroke-width: 3;\n fill: transparent;\n }\n .arrow-marker .render-visual {\n stroke: #ff0000;\n stroke-width: 3;\n fill: transparent;\n }\n .arrow-marker-tip {\n stroke-width: 0;\n fill: #ff0000;\n }\n .text-marker text {\n fill: #ff0000;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",\n Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",\n "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .fc-whiteboard-rect-control-box .fc-whiteboard-rect-control-rect {\n stroke: black;\n stroke-width: 1;\n stroke-opacity: 0.5;\n stroke-dasharray: 3, 2;\n fill: transparent;\n }\n .fc-whiteboard-control-grip {\n fill: #cccccc;\n stroke: #333333;\n stroke-width: 2;\n }\n ',l.boardCanvas.appendChild(t)},l.toolbarClick=function(t,e){if(e.markerType)l.addMarker(e.markerType);else switch(e.name){case"delete":l.deleteActiveMarker();break;case"pointer":l.activeMarker&&l.selectMarker(null);break;case"close":l.cancel();break;case"ok":l.complete()}},l.selectMarker=function(t){l.activeMarker&&l.activeMarker!==t&&l.activeMarker.deselect(),l.activeMarker=t},l.deleteMarker=function(t){l.boardCanvas.removeChild(t.visual),l.activeMarker===t&&(l.activeMarker=null),l.markers.splice(l.markers.indexOf(t),1)},l.complete=function(){l.selectMarker(null),l.startRender(l.renderFinishedClose)},l.cancel=function(){l.close(),l.onCancel&&l.onCancel()},l.renderFinished=function(t){l.onComplete(t)},l.renderFinishedClose=function(t){l.close(),l.onComplete(t)},n&&(l.page=n),l.markers=[],l.activeMarker=null,l.toolbars=s.getToolbars(n),i&&(l.onChange=i),l}return n(e,t),Object.defineProperty(e.prototype,"markerMap",{get:function(){var t={};return this.markers.forEach(function(e){t[e.id]=e}),t},enumerable:!0,configurable:!0}),e}(i.Baseboard);e.Drawboard=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(2),n=r(0),i=function(){return function(t){var e=this;this.id=o.uuid(),this.initBoard=function(){e.boardHolder=document.createElement("div"),e.boardHolder.id="fcw-board-holder-"+e.id,e.boardHolder.style.setProperty("touch-action","none"),e.boardHolder.style.setProperty("-ms-touch-action","none"),document.body.appendChild(e.boardHolder),e.boardCanvas=document.createElementNS("http://www.w3.org/2000/svg","svg"),e.boardCanvas.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.boardCanvas.setAttribute("width",e.width.toString()),e.boardCanvas.setAttribute("height",e.height.toString()),e.boardCanvas.setAttribute("viewBox","0 0 "+e.width.toString()+" "+e.height.toString()),e.boardHolder.style.position="absolute",e.boardHolder.style.width=e.width+"px",e.boardHolder.style.height=e.height+"px",e.boardHolder.style.transformOrigin="top left",e.positionBoard(),e.defs=n.SvgHelper.createDefs(),e.boardCanvas.appendChild(e.defs),e.boardHolder.appendChild(e.boardCanvas)},this.positionBoard=function(){e.boardHolder.style.top=e.targetRect.top+"px",e.boardHolder.style.left=e.targetRect.left+"px"},this.source=t,t.imgEle&&(this.target=t.imgEle,this.width=this.target.clientWidth,this.height=this.target.clientHeight)}}();e.Baseboard=i},function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var o=new Uint8Array(16);t.exports=function(){return r(o),o}}else{var n=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}},function(t,e){for(var r=[],o=0;o<256;++o)r[o]=(o+256).toString(16).substr(1);t.exports=function(t,e){var o=e||0,n=r;return[n[t[o++]],n[t[o++]],n[t[o++]],n[t[o++]],"-",n[t[o++]],n[t[o++]],"-",n[t[o++]],n[t[o++]],"-",n[t[o++]],n[t[o++]],"-",n[t[o++]],n[t[o++]],n[t[o++]],n[t[o++]],n[t[o++]],n[t[o++]]].join("")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(16),n=r(18),i=r(19),s=r(20),a=r(21),c=r(22),l=r(23),u=r(7),p=r(24),d=r(25),h=r(8);e.highlightMarkerToolbarItem=new c.ToolbarItem({name:"cover-marker",tooltipText:"Cover",icon:r(26),markerType:a.HighlightMarker}),e.arrowMarkerToolbarItem=new c.ToolbarItem({name:"arrow-marker",tooltipText:"Arrow",icon:r(27),markerType:s.ArrowMarker}),e.textMarkerToolbarItem=new c.ToolbarItem({name:"text-marker",tooltipText:"Text",icon:r(28),markerType:i.TextMarker}),e.coverMarkerToolbarItem=new c.ToolbarItem({name:"cover-marker",tooltipText:"Cover",icon:r(29),markerType:n.CoverMarker}),e.rectMarkerToolbarItem=new c.ToolbarItem({name:"rect-marker",tooltipText:"Rectangle",icon:r(30),markerType:o.RectMarker}),e.lineMarkerToolbarItem=new c.ToolbarItem({name:"line-marker",tooltipText:"Line",icon:r(31),markerType:l.LineMarker}),e.getToolbars=function(t){var r=[{icon:d,name:"pointer",tooltipText:"Pointer"},{icon:p,name:"delete",tooltipText:"Delete"},{name:"separator",tooltipText:""},e.rectMarkerToolbarItem,e.coverMarkerToolbarItem,e.highlightMarkerToolbarItem,e.lineMarkerToolbarItem,e.arrowMarkerToolbarItem,e.textMarkerToolbarItem,{name:"separator",tooltipText:""}];return t||r.push.apply(r,[{icon:u,name:"ok",tooltipText:"OK"}]),r.push({icon:h,name:"close",tooltipText:"Close"}),r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),s=r(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e}return n(e,t),e.prototype.setup=function(){t.prototype.setup.call(this),s.SvgHelper.setAttributes(this.visual,[["class","rect-marker"]])},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(i.RectBaseMarker);e.RectMarker=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){return function(){var t=this;this.findGripByVisual=function(e){switch(e){case t.topLeft.visual:return t.topLeft;case t.topCenter.visual:return t.topCenter;case t.topRight.visual:return t.topRight;case t.centerLeft.visual:return t.centerLeft;case t.centerRight.visual:return t.centerRight;case t.bottomLeft.visual:return t.bottomLeft;case t.bottomCenter.visual:return t.bottomCenter;case t.bottomRight.visual:return t.bottomRight;default:return t.topLeft}}}}();e.RectangularMarkerGrips=o},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(0),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cover",e}return n(e,t),e.prototype.setup=function(){t.prototype.setup.call(this),i.SvgHelper.setAttributes(this.visual,[["class","cover-marker"]])},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(r(1).RectBaseMarker);e.CoverMarker=s},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(4),s=r(0),a=r(7),c=r(8),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.MIN_SIZE=50,e.DEFAULT_TEXT="Double-click to edit text",e.text=e.DEFAULT_TEXT,e.inDoubleTap=!1,e.renderText=function(){for(;e.textElement.lastChild;)e.textElement.removeChild(e.textElement.lastChild);for(var t=0,r=e.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/);t<r.length;t++){var o=r[t];""===o.trim()&&(o=" "),e.textElement.appendChild(s.SvgHelper.createTSpan(o,[["x","0"],["dy","1.2em"]]))}setTimeout(e.sizeText,10)},e.sizeText=function(){var t=e.textElement.getBBox(),r=0,o=0,n=1;if(t.width>0&&t.height>0){var i=1*e.width/t.width,s=1*e.height/t.height;n=Math.min(i,s),r=(e.width-t.width*n)/2,o=(e.height-t.height*n)/2}e.textElement.transform.baseVal.getItem(0).setTranslate(r,o),e.textElement.transform.baseVal.getItem(1).setScale(n,n)},e.onDblClick=function(t){e.showEditor()},e.onTap=function(t){e.inDoubleTap?(e.inDoubleTap=!1,e.showEditor()):(e.inDoubleTap=!0,setTimeout(function(){e.inDoubleTap=!1},300))},e.showEditor=function(){e.editor=document.createElement("div"),e.editor.className="fc-whiteboard-text-editor",e.editorTextArea=document.createElement("textarea"),e.text!==e.DEFAULT_TEXT&&(e.editorTextArea.value=e.text),e.editorTextArea.addEventListener("keydown",e.onEditorKeyDown),e.editor.appendChild(e.editorTextArea),document.body.appendChild(e.editor);var t=document.createElement("div");t.className="fc-whiteboard-text-editor-button-bar",e.editor.appendChild(t);var r=document.createElement("div");r.className="fc-whiteboard-text-editor-button",r.innerHTML=a,r.addEventListener("click",e.onEditorOkClick),t.appendChild(r);var o=document.createElement("div");o.className="fc-whiteboard-text-editor-button",o.innerHTML=c,o.addEventListener("click",e.closeEditor),t.appendChild(o)},e.onEditorOkClick=function(t){e.editorTextArea.value.trim()?e.text=e.editorTextArea.value:e.text=e.DEFAULT_TEXT,e.onChange({target:"marker",id:e.id,event:"changeText",data:e.text}),e.renderText(),e.closeEditor()},e.closeEditor=function(){document.body.removeChild(e.editor)},e.onEditorKeyDown=function(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),e.onEditorOkClick(null))},e}return n(e,t),e.prototype.setText=function(t){this.text=t,this.renderText()},e.prototype.setup=function(){t.prototype.setup.call(this),this.textElement=s.SvgHelper.createText(),this.addToRenderVisual(this.textElement),s.SvgHelper.setAttributes(this.visual,[["class","text-marker"]]),this.textElement.transform.baseVal.appendItem(s.SvgHelper.createTransform()),this.textElement.transform.baseVal.appendItem(s.SvgHelper.createTransform()),this.renderText(),this.visual.addEventListener("dblclick",this.onDblClick),this.visual.addEventListener("touchstart",this.onTap)},e.prototype.resize=function(e,r,o){t.prototype.resize.call(this,e,r,o),this.sizeText()},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(i.RectangularMarker);e.TextMarker=l},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),s=r(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="arrow",e.ARROW_SIZE=6,e}return n(e,t),e.prototype.setup=function(){t.prototype.setup.call(this),s.SvgHelper.setAttributes(this.visual,[["class","arrow-marker"]]);var e=s.SvgHelper.createPolygon("0,0 "+this.ARROW_SIZE+","+this.ARROW_SIZE/2+" 0,"+this.ARROW_SIZE,[["class","arrow-marker-tip"]]);this.defs.push(s.SvgHelper.createMarker("arrow-marker-head","auto",this.ARROW_SIZE,this.ARROW_SIZE,this.ARROW_SIZE-1,this.ARROW_SIZE/2,e)),this.markerLine.setAttribute("marker-end","url(#arrow-marker-head")},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(i.LinearMarker);e.ArrowMarker=a},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(0),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="highlight",e}return n(e,t),e.prototype.setup=function(){t.prototype.setup.call(this),i.SvgHelper.setAttributes(this.visual,[["class","highlight-marker"]])},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(r(1).RectBaseMarker);e.HighlightMarker=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){return function(t){var e=t.name,r=t.tooltipText,o=t.icon,n=t.markerType;this.name=e,this.tooltipText=r,this.icon=o,this.markerType=n}}();e.ToolbarItem=o},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),s=r(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return n(e,t),e.prototype.setup=function(){t.prototype.setup.call(this),s.SvgHelper.setAttributes(this.visual,[["class","line-marker"]])},e.createMarker=function(t){var r=new e;return r.page=t,r.setup(),r},e}(i.LinearMarker);e.LineMarker=a},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 544 512"><path d="M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M594.53 508.63L6.18 53.9c-6.97-5.42-8.23-15.47-2.81-22.45L23.01 6.18C28.43-.8 38.49-2.06 45.47 3.37L633.82 458.1c6.97 5.42 8.23 15.47 2.81 22.45l-19.64 25.27c-5.42 6.98-15.48 8.23-22.46 2.81z"></path></svg>\x3c!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(33),n=function(){function t(){}return t.prototype.rasterize=function(t,e,r){if(!o.isHTMLImageElement(t))throw new Error("Error: only support export HTMLImageElement");var n=document.createElement("canvas");n.width=e.width.baseVal.value,n.height=e.height.baseVal.value;var i=e.outerHTML,s=n.getContext("2d");if(!s)throw new Error("Invalid ctx");s.drawImage(t,0,0,n.width,n.height);var a=window.URL,c=new Image(n.width,n.height);c.setAttribute("crossOrigin","anonymous");var l=new Blob([i],{type:"image/svg+xml"}),u=a.createObjectURL(l);c.onload=function(){s.drawImage(c,0,0),a.revokeObjectURL(u),r(n.toDataURL("image/png"))},c.src=u},t}();e.Synthetizer=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isHTMLImageElement=function(t){return"object"==typeof t&&t instanceof HTMLImageElement}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(35),n=r(2),i=function(){function t(t,e){var r=this;this.id=n.uuid(),this.getUI=function(){r.toolbarUI=document.createElement("div"),r.toolbarUI.id="fcw-toolbar-"+r.id,r.toolbarUI.className="fc-whiteboard-toolbar";for(var t=0,e=r.toolbarItems;t<e.length;t++){var n=e[t],i=new o.ToolbarButton(n,r.clickHandler);r.toolbarUI.appendChild(i.getElement())}return r.toolbarUI},this.toolbarItems=t,this.clickHandler=e}return t.prototype.hide=function(){this.toolbarUI.style.opacity="0",this.toolbarUI.style.zIndex="-1"},t.prototype.show=function(){this.toolbarUI.style.opacity="1",this.toolbarUI.style.zIndex="999"},t}();e.Toolbar=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){return function(t,e){var r=this;this.getElement=function(){var t=document.createElement("div");return"separator"!==r.toolbarItem.name?(t.className="fc-whiteboard-toolbar-button",r.clickHandler&&t.addEventListener("click",function(t){r.clickHandler&&r.clickHandler(t,r.toolbarItem)}),r.toolbarItem.icon?(t.title=r.toolbarItem.tooltipText,t.innerHTML=r.toolbarItem.icon):t.innerText=r.toolbarItem.tooltipText):t.className="fc-whiteboard-toolbar-separator",t},this.toolbarItem=t,e&&(this.clickHandler=e)}}();e.ToolbarButton=o},function(t,e,r){var o=r(37);"string"==typeof o&&(o=[[t.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(39)(o,n);o.locals&&(t.exports=o.locals)},function(t,e,r){(t.exports=r(38)(!1)).push([t.i,".fc-whiteboard-logo {\n display: inline-block;\n margin: 0px;\n padding: 0px;\n fill: #333333;\n}\n.fc-whiteboard-logo a {\n display: grid;\n -ms-flex-align: center;\n align-items: center;\n justify-items: center;\n padding: 3px;\n width: 20px;\n height: 20px;\n}\n.fc-whiteboard-logo a:hover {\n fill: #ff8080;\n}\n.fc-whiteboard-toolbar {\n background-color: #cccccc;\n padding: 0px 5px;\n margin: 0px;\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n display: grid;\n grid-template-columns: repeat(20, auto);\n}\n.fc-whiteboard-toolbar-button,\n.fc-whiteboard-toolbar-logo a {\n display: inline-block;\n margin: 2px;\n padding: 3px;\n cursor: pointer;\n width: 20px;\n height: 20px;\n border-radius: 2px;\n border-bottom: transparent solid 1px;\n border-right: transparent solid 1px;\n fill: #333333;\n display: grid;\n -ms-flex-align: center;\n align-items: center;\n justify-items: center;\n}\n.fc-whiteboard-toolbar-separator {\n margin: 5px 5px;\n border: 1px solid #dddddd;\n}\n.fc-whiteboard-toolbar-button:hover,\n.fc-whiteboard-toolbar-logo a:hover {\n background-color: #eeeeee;\n background: -webkit-radial-gradient(#eeeeee, #cccccc);\n background: -o-radial-gradient(#eeeeee, #cccccc);\n background: radial-gradient(#eeeeee, #cccccc);\n fill: #ff8080;\n}\n.fc-whiteboard-toolbar-button svg {\n height: 16px;\n}\n.fc-whiteboard-text-editor {\n position: fixed;\n z-index: 20000;\n left: 0px;\n top: 0px;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.9);\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.fc-whiteboard-text-editor textarea {\n width: 50%;\n min-width: 50px;\n max-width: 500px;\n height: 50%;\n min-height: 50px;\n max-height: 500px;\n}\n.fc-whiteboard-text-editor .fc-whiteboard-text-editor-button-bar {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: end;\n justify-content: flex-end;\n width: 50%;\n min-width: 50px;\n max-width: 500px;\n padding-top: 10px;\n}\n.fc-whiteboard-text-editor .fc-whiteboard-text-editor-button {\n display: grid;\n -ms-flex-align: center;\n align-items: center;\n padding: 0px;\n margin-left: 15px;\n width: 20px;\n height: 20px;\n cursor: pointer;\n fill: #888888;\n}\n.fc-whiteboard-text-editor .fc-whiteboard-text-editor-button:hover {\n fill: #ff8080;\n}\n",""])},function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=function(t,e){var r=t[1]||"",o=t[3];if(!o)return r;if(e&&"function"==typeof btoa){var n=(s=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),i=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[r].concat(i).concat([n]).join("\n")}var s;return[r].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},n=0;n<this.length;n++){var i=this[n][0];null!=i&&(o[i]=!0)}for(n=0;n<t.length;n++){var s=t[n];null!=s[0]&&o[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},function(t,e,r){var o,n,i={},s=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===n&&(n=o.apply(this,arguments)),n}),a=function(t){var e={};return function(t,r){if("function"==typeof t)return t();if(void 0===e[t]){var o=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}}(),c=null,l=0,u=[],p=r(40);function d(t,e){for(var r=0;r<t.length;r++){var o=t[r],n=i[o.id];if(n){n.refs++;for(var s=0;s<n.parts.length;s++)n.parts[s](o.parts[s]);for(;s<o.parts.length;s++)n.parts.push(b(o.parts[s],e))}else{var a=[];for(s=0;s<o.parts.length;s++)a.push(b(o.parts[s],e));i[o.id]={id:o.id,refs:1,parts:a}}}}function h(t,e){for(var r=[],o={},n=0;n<t.length;n++){var i=t[n],s=e.base?i[0]+e.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};o[s]?o[s].parts.push(a):r.push(o[s]={id:s,parts:[a]})}return r}function f(t,e){var r=a(t.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=u[u.length-1];if("top"===t.insertAt)o?o.nextSibling?r.insertBefore(e,o.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),u.push(e);else if("bottom"===t.insertAt)r.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var n=a(t.insertAt.before,r);r.insertBefore(e,n)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var o=function(){0;return r.nc}();o&&(t.attrs.nonce=o)}return g(e,t.attrs),f(t,e),e}function g(t,e){Object.keys(e).forEach(function(r){t.setAttribute(r,e[r])})}function b(t,e){var r,o,n,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var s=l++;r=c||(c=m(e)),o=x.bind(null,r,s,!1),n=x.bind(null,r,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),f(t,e),e}(e),o=function(t,e,r){var o=r.css,n=r.sourceMap,i=void 0===e.convertToAbsoluteUrls&&n;(e.convertToAbsoluteUrls||i)&&(o=p(o));n&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var s=new Blob([o],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,r,e),n=function(){v(r),r.href&&URL.revokeObjectURL(r.href)}):(r=m(e),o=function(t,e){var r=e.css,o=e.media;o&&t.setAttribute("media",o);if(t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}.bind(null,r),n=function(){v(r)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else n()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=h(t,e);return d(r,e),function(t){for(var o=[],n=0;n<r.length;n++){var s=r[n];(a=i[s.id]).refs--,o.push(a)}t&&d(h(t,e),e);for(n=0;n<o.length;n++){var a;if(0===(a=o[n]).refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete i[a.id]}}}};var w,y=(w=[],function(t,e){return w[t]=e,w.filter(Boolean).join("\n")});function x(t,e,r,o){var n=r?"":o.css;if(t.styleSheet)t.styleSheet.cssText=y(e,n);else{var i=document.createTextNode(n),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var r=e.protocol+"//"+e.host,o=r+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var n,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(n=0===i.indexOf("//")?i:0===i.indexOf("/")?r+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")})}}])});