diff --git a/459.ebe1fba7.async.js b/459.8b8d9b82.async.js
similarity index 96%
rename from 459.ebe1fba7.async.js
rename to 459.8b8d9b82.async.js
index be3451e50c..fe921b8f3f 100644
--- a/459.ebe1fba7.async.js
+++ b/459.8b8d9b82.async.js
@@ -203,9 +203,9 @@ b`.split(/\n/).length!=3?function(e){for(var i=0,w=[],y=e.length;i<=y;){var x=e.
`,Be.style.marginLeft="5px",ge.appendChild(Be)}var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.minHeight="20px",Oe.style.flexGrow="2";var Le=document.createElement("hr");if(Le.style.minWidth="20px",Le.style.border="0px",Le.style.borderTop="3px solid "+(Q.uiStyleSettings!==void 0?Q.uiStyleSettings.toolboxColor:"#eeeeee"),Le.style.flexGrow="2",Oe.appendChild(Le),ge.appendChild(Oe),re==="both"||re==="end"){var Pe=document.createElement("div");Pe.style.display="flex",Pe.style.alignItems="center",Pe.style.minHeight="20px",Pe.innerHTML=``,Pe.style.marginRight="5px",ge.appendChild(Pe)}Q.typeBoxes.push(ge)},Q=this,z=0;z<4;z++)ne(z);return q},B.prototype.setCurrentType=function(k,q){var ne=this;this.currentType=k,this.typeBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},B}(l),G=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.arrowType="end",Q.arrowBaseHeight=10,Q.arrowBaseWidth=10,Q.getArrowPoints=Q.getArrowPoints.bind(Q),Q.setArrowType=Q.setArrowType.bind(Q),Q.arrowTypePanel=new X("Arrow type","end"),Q.arrowTypePanel.onArrowTypeChanged=Q.setArrowType,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},B.prototype.getArrowPoints=function(k,q){var ne=this.arrowBaseWidth+2*this.strokeWidth,Q=this.arrowBaseHeight+2*this.strokeWidth;return k-ne/2+","+(q+Q/2)+" "+k+","+(q-Q/2)+" "+(k+ne/2)+","+(q+Q/2)},B.prototype.createTips=function(){this.arrow1=a.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=a.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.arrow2)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if($.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",a.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),a.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var k=0;Math.abs(this.x1-this.x2)>.1&&(k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var q=this.arrow1.transform.baseVal.getItem(0);q.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(q,0);var ne=this.arrow2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ne,0)}},B.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.arrowType=q.arrowType,this.createTips(),this.adjustVisual()},B.typeName="ArrowMarker",B.title="Arrow marker",B.icon='',B}(M),ee=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor=ne.defaultFillColor,Q.strokeWidth=0,Q.fillPanel=new d("Color",ne.defaultColorSet,ne.defaultFillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q}return ie(B,$),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="CoverMarker",B.title="Cover marker",B.icon='',B}(O),Z=function($){function B(k,q,ne,Q){var z=$.call(this,k,Q||'')||this;return z.opacities=[],z.opacityBoxes=[],z.opacities=q,z.currentOpacity=ne,z.setCurrentOpacity=z.setCurrentOpacity.bind(z),z}return ie(B,$),B.prototype.getUi=function(){var k=this,q=document.createElement("div");return q.style.display="flex",q.style.overflow="hidden",q.style.flexGrow="2",q.style.justifyContent="space-between",this.opacities.forEach(function(ne){var Q=document.createElement("div");Q.style.display="flex",Q.style.alignItems="center",Q.style.justifyContent="center",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.borderColor=ne===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){k.setCurrentOpacity(ne,Q)}),q.appendChild(Q);var z=document.createElement("div");z.innerText=100*ne+"%",Q.appendChild(z),k.opacityBoxes.push(Q)}),q},B.prototype.setCurrentOpacity=function(k,q){var ne=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},B}(l),Ae=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.setOpacity=Q.setOpacity.bind(Q),Q.fillColor=ne.defaultHighlightColor,Q.strokeWidth=0,Q.opacity=ne.defaultHighlightOpacity,Q.fillPanel=new d("Color",ne.defaultColorSet,Q.fillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q.opacityPanel=new Z("Opacity",ne.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return ie(B,$),B.prototype.setOpacity=function(k){this.opacity=k,this.visual&&a.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="HighlightMarker",B.title="Highlight marker",B.icon='',B}(ee),U='',W='',le=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.bgColor="transparent",Q.tipPosition={x:0,y:0},Q.tipBase1Position={x:0,y:0},Q.tipBase2Position={x:0,y:0},Q.tipMoving=!1,Q.color=ne.defaultStrokeColor,Q.bgColor=ne.defaultFillColor,Q.fontFamily=ne.defaultFontFamily,Q.defaultSize={x:100,y:30},Q.setBgColor=Q.setBgColor.bind(Q),Q.getTipPoints=Q.getTipPoints.bind(Q),Q.positionTip=Q.positionTip.bind(Q),Q.setTipPoints=Q.setTipPoints.bind(Q),Q.colorPanel=new d("Text color",ne.defaultColorSet,Q.color,U),Q.colorPanel.onColorChanged=Q.setColor,Q.bgColorPanel=new d("Fill color",ne.defaultColorSet,Q.bgColor,W),Q.bgColorPanel.onColorChanged=Q.setBgColor,Q.fontFamilyPanel=new N("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.tipGrip=new m,Q.tipGrip.visual.transform.baseVal.appendItem(a.createTransform()),Q.controlBox.appendChild(Q.tipGrip.visual),Q}return ie(B,$),B.prototype.ownsTarget=function(k){return $.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},B.prototype.createTip=function(){a.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=a.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},B.prototype.pointerDown=function(k,q){this.state==="new"&&$.prototype.pointerDown.call(this,k,q),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(q)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):$.prototype.pointerDown.call(this,k,q)},B.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,$.prototype.pointerUp.call(this,k);else{var q=this.state==="creating";$.prototype.pointerUp.call(this,k),this.setTipPoints(q),this.positionTip()}},B.prototype.manipulate=function(k){if(this.tipMoving){var q=this.unrotatePoint(k);this.tipPosition={x:q.x-this.manipulationStartLeft,y:q.y-this.manipulationStartTop},this.positionTip()}else $.prototype.manipulate.call(this,k)},B.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(a.setAttributes(this.bgRectangle,[["fill",k]]),a.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},B.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},B.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var q=Math.min(this.height/2,15),ne=this.height/5;k&&(this.tipPosition={x:q+ne/2,y:this.height+20});var Q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Q',B}(V),he=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor="transparent",Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.opacity=1,Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.fillColor=ne.defaultFillColor,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setFillColor=Q.setFillColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.setOpacity=Q.setOpacity.bind(Q),Q.createVisual=Q.createVisual.bind(Q),Q.strokePanel=new d("Line color",b(ne.defaultColorSet,["transparent"]),ne.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.fillPanel=new d("Fill color",b(ne.defaultColorSet,["transparent"]),Q.fillColor,W),Q.fillPanel.onColorChanged=Q.setFillColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q.opacityPanel=new Z("Opacity",ne.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual)},B.prototype.createVisual=function(){this.visual=a.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},B.prototype.manipulate=function(k){$.prototype.manipulate.call(this,k)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.setSize()},B.prototype.setSize=function(){$.prototype.setSize.call(this),a.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},B.prototype.pointerUp=function(k){$.prototype.pointerUp.call(this,k),this.setSize()},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&a.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},B.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&a.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&a.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&a.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},B.prototype.setOpacity=function(k){this.opacity=k,this.visual&&a.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){var q=k;this.fillColor=q.fillColor,this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.opacity=q.opacity,this.createVisual(),$.prototype.restoreState.call(this,k),this.setSize()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setSize()},B.typeName="EllipseMarker",B.title="Ellipse marker",B.icon='',B}(_),ue=function($){function B(k,q,ne){return $.call(this,k,q,ne)||this}return ie(B,$),Object.defineProperty(B.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},B.prototype.createTips=function(){this.tip1=a.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.tip1),this.tip2=a.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.tip2)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if($.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(a.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),a.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),q=this.tip1.transform.baseVal.getItem(0);q.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(q,0);var ne=this.tip2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ne,0)}},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},B.typeName="MeasurementMarker",B.title="Measurement marker",B.icon='',B}(M),pe=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.strokePanel.colors=ne.defaultColorSet,Q.fillColor="transparent",Q}return ie(B,$),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="EllipseFrameMarker",B.title="Ellipse frame marker",B.icon='',B}(he),fe=function(){function $(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty($.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),$.prototype.addUndoStep=function(B){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(B)||(this.undoStack.push(B),JSON.stringify(this.lastRedoStep)!==JSON.stringify(B)&&this.redoStack.splice(0,this.redoStack.length))},$.prototype.replaceLastUndoStep=function(B){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=B)},$.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},$.prototype.undo=function(){if(this.undoStack.length>1){var B=this.undoStack.pop();return B!==void 0&&this.redoStack.push(B),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},$.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},$}(),ce=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.curveX=0,Q.curveY=0,Q.manipulationStartCurveX=0,Q.manipulationStartCurveY=0,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.positionGrips=Q.positionGrips.bind(Q),Q.addControlGrips=Q.addControlGrips.bind(Q),Q.adjustVisual=Q.adjustVisual.bind(Q),Q.setupControlBox=Q.setupControlBox.bind(Q),Q.resize=Q.resize.bind(Q),Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.strokePanel=new d("Line color",ne.defaultColorSet,ne.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},B.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.selectorCurve=a.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=a.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(q)&&(this.activeGrip=this.curveGrip,this._state="resize")},B.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),a.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),a.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),a.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setupControlBox=function(){$.prototype.setupControlBox.call(this),this.curveControlLine1=a.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=a.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},B.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,$.prototype.addControlGrips.call(this)},B.prototype.positionGrips=function(){$.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},B.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),$.prototype.manipulate.call(this,k)},B.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),$.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},B.prototype.scale=function(k,q){this.curveX=this.curveX*k,this.curveY=this.curveY*q,$.prototype.scale.call(this,k,q)},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.curveX=q.curveX,this.curveY=q.curveY,this.createVisual(),this.adjustVisual()},B.typeName="CurveMarker",B.title="Curve marker",B.icon='',B}(E),be=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor="transparent",Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.textColor="transparent",Q.fontSize="1rem",Q.isMoved=!1,Q.captionText="Caption",Q.PADDING=5,Q.captionBoxWidth=0,Q.captionBoxHeight=0,Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.fillColor=ne.defaultFillColor,Q.textColor=ne.defaultStrokeColor,Q.fontFamily=ne.defaultFontFamily,Q.fontSize=ne.defaultCaptionFontSize,Q.captionText=ne.defaultCaptionText,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setFillColor=Q.setFillColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.createVisual=Q.createVisual.bind(Q),Q.sizeCaption=Q.sizeCaption.bind(Q),Q.setCaptionText=Q.setCaptionText.bind(Q),Q.showTextEditor=Q.showTextEditor.bind(Q),Q.positionTextEditor=Q.positionTextEditor.bind(Q),Q.finishTextEditing=Q.finishTextEditing.bind(Q),Q.setFont=Q.setFont.bind(Q),Q.setTextColor=Q.setTextColor.bind(Q),Q.strokePanel=new d("Line color",b(ne.defaultColorSet,["transparent"]),Q.strokeColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.fillPanel=new d("Fill color",b(ne.defaultColorSet,["transparent"]),Q.fillColor,W),Q.fillPanel.onColorChanged=Q.setFillColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q.fontFamilyPanel=new N("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.textColorPanel=new d("Text color",ne.defaultColorSet,Q.textColor,U),Q.textColorPanel.onColorChanged=Q.setTextColor,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=a.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=a.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=a.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},B.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},B.prototype.manipulate=function(k){$.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.setSize()},B.prototype.sizeCaption=function(){var k=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=k.width+2*this.PADDING,this.captionBoxHeight=k.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),a.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),a.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},B.prototype.showTextEditor=function(){var k=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(q){q.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(q){q.key==="Enter"&&k.finishTextEditing(k.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(q){q.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){k.finishTextEditing(k.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){k.finishTextEditing(k.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},B.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},B.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},B.prototype.setFont=function(k){this.captionElement&&a.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},B.prototype.setTextColor=function(k){this.captionElement&&a.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},B.prototype.setSize=function(){$.prototype.setSize.call(this),a.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},B.prototype.pointerUp=function(k){$.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},B.prototype.dblClick=function(k,q){$.prototype.dblClick.call(this,k,q),this.showTextEditor()},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&a.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},B.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&a.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&a.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&a.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},$.prototype.getState.call(this));return k.typeName=this.typeName,k},B.prototype.restoreState=function(k){var q=k;this.fillColor=q.fillColor,this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.textColor=q.textColor,this.fontFamily=q.fontFamily,this.captionText=q.captionText,this.fontSize=q.fontSize,this.createVisual(),$.prototype.restoreState.call(this,k),this.setSize()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setSize()},B.typeName="CaptionFrameMarker",B.title="Caption frame marker",B.icon='',B}(_),Ce=function(){function $(B,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=B,this.cancelable=k}return Object.defineProperty($.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),$.prototype.preventDefault=function(){this._defaultPrevented=!0},$}(),xe=function($){function B(k,q,ne){var Q=$.call(this,k,!1)||this;return Q.dataUrl=q,Q.state=ne,Q}return ie(B,$),B}(Ce),Se=function($){function B(k,q,ne){ne===void 0&&(ne=!1);var Q=$.call(this,k,ne)||this;return Q.marker=q,Q}return ie(B,$),B}(Ce),me=function(){function $(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return $.prototype.addEventListener=function(B,k){this[B].push(k)},$.prototype.removeEventListener=function(B,k){var q=this[B].indexOf(k);q>-1&&this[B].splice(q,1)},$}(),te=function(){function $(B){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new I,this._isOpen=!1,this.undoRedoManager=new fe,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new me,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=$.instanceCounter++,this.styles=new h(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=B,this.targetRoot=document.body,this.width=B.clientWidth,this.height=B.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty($.prototype,"ALL_MARKER_TYPES",{get:function(){return[S,H,G,V,pe,he,Ae,le,ue,ee,M,ce,be]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[S,H,G,V,he,Ae,le]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"BASIC_MARKER_TYPES",{get:function(){return[S,H,G,V,Ae]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(B){var k=this;this._availableMarkerTypes.splice(0),B.forEach(function(q){if(typeof q=="string"){var ne=k.ALL_MARKER_TYPES.find(function(Q){return Q.typeName===q});ne!==void 0&&k._availableMarkerTypes.push(ne)}else k._availableMarkerTypes.push(q)})},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(B){this._zoomLevel=B,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),$.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),u.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},$.prototype.show=function(){var B=this;this.styles.styleSheetRoot===void 0&&c.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=c.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new Ce(B))})},$.prototype.render=function(){return t(this,void 0,void 0,function(){var B;return C(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(B=new A).naturalSize=this.renderAtNaturalSize,B.imageType=this.renderImageType,B.imageQuality=this.renderImageQuality,B.markersOnly=this.renderMarkersOnly,B.width=this.renderWidth,B.height=this.renderHeight,[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},$.prototype.close=function(B){var k=this;if(B===void 0&&(B=!1),this.isOpen){var q=!1;B||this.eventListeners.beforeclose.forEach(function(ne){var Q=new Ce(k,!0);ne(Q),Q.defaultPrevented&&(q=!0)}),q||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ne){return ne(new Ce(k))}),this.detachEvents(),this._isOpen=!1)}},$.prototype.addMarkersToToolbar=function(){for(var B,k=[],q=0;qthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*B:this.editorCanvas.clientWidth,q=k',B.title="Powered by marker.js",B.style.display="grid",B.style.alignItems="center",B.style.justifyItems="center",B.style.padding="3px",B.style.width="20px",B.style.height="20px",this.logoUI.appendChild(B),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},$.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},$.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},$.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},$.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var B=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new r(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(B),1),B.dispose()},$.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},$.prototype.toolbarButtonClicked=function(B,k){if(B==="marker"&&k!==void 0)this.createNewMarker(k);else if(B==="action")switch(k){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},$.prototype.deleteSelectedMarker=function(){var B=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ne){var Q=new Se(B,B._currentMarker,!0);ne(Q),Q.defaultPrevented&&(k=!0)}),!k){var q=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ne){return ne(new Se(B,q))})}}},$.prototype.clear=function(){var B=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(z){var Y=new Se(B,void 0,!0);z(Y),Y.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var q=function(z){var Y=ne.markers[z];ne.setCurrentMarker(ne.markers[z]),ne._currentMarker.dispose(),ne.markerImage.removeChild(ne._currentMarker.container),ne.markers.splice(ne.markers.indexOf(ne._currentMarker),1),ne.eventListeners.markerdelete.forEach(function(re){return re(new Se(B,Y))})},ne=this,Q=this.markers.length-1;Q>=0;Q--)q(Q);this.addUndoStep()}},Object.defineProperty($.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),$.prototype.showNotesEditor=function(){var B;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(B=this._currentMarker.notes)!==null&&B!==void 0?B:"",this.overlayContainer.appendChild(this.notesArea))},$.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},$.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},$.prototype.addUndoStep=function(){var B=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),q=this.undoRedoManager.getLastUndoStep();if(!q||q.width===k.width&&q.height===k.height){var ne=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ne1&&this.panTo({x:B.clientX,y:B.clientY}))},$.prototype.onPointerUp=function(B){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(B.clientX,B.clientY)),this.isDragging=!1,this.addUndoStep()},$.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},$.prototype.onKeyUp=function(B){this._currentMarker===void 0||this.notesArea!==void 0||B.key!=="Delete"&&B.key!=="Backspace"||this.deleteSelectedMarker()},$.prototype.clientToLocalCoordinates=function(B,k){var q=this.markerImage.getBoundingClientRect();return{x:(B-q.left)/this.zoomLevel,y:(k-q.top)/this.zoomLevel}},$.prototype.onWindowResize=function(){this.positionUI()},$.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},$.prototype.addLicenseKey=function(B){u.addKey(B)},$.prototype.addEventListener=function(B,k){this.eventListeners.addEventListener(B,k)},$.prototype.removeEventListener=function(B,k){this.eventListeners.removeEventListener(B,k)},$.prototype.renderState=function(B){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(B),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty($.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),$.prototype.focus=function(){var B=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new Ce(B))}))},$.prototype.blur=function(){var B=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new Ce(B))}))},$.instanceCounter=0,$}()},2637:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),Object.defineProperty(ke,"DraggableCore",{enumerable:!0,get:function(){return A.default}}),ke.default=void 0;var oe=n(J(59301)),ie=h(J(12708)),t=h(J(4676)),C=h(J(57780)),b=J(13957),a=J(60976),u=J(36641),A=h(J(80486)),c=h(J(94187));function h(g){return g&&g.__esModule?g:{default:g}}function o(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,v=new WeakMap;return(o=function(_){return _?v:m})(g)}function n(g,m){if(!m&&g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var v=o(m);if(v&&v.has(g))return v.get(g);var _={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in g)if(F!=="default"&&Object.prototype.hasOwnProperty.call(g,F)){var T=O?Object.getOwnPropertyDescriptor(g,F):null;T&&(T.get||T.set)?Object.defineProperty(_,F,T):_[F]=g[F]}return _.default=g,v&&v.set(g,_),_}function r(){return r=Object.assign?Object.assign.bind():function(g){for(var m=1;m{if((0,c.default)("Draggable: onDragStart: %j",_),this.props.onStart(v,(0,a.createDraggableData)(this,_))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),s(this,"onDrag",(v,_)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",_);const O=(0,a.createDraggableData)(this,_),F={x:O.x,y:O.y,slackX:0,slackY:0};if(this.props.bounds){const{x:S,y:I}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[E,M]=(0,a.getBoundPosition)(this,F.x,F.y);F.x=E,F.y=M,F.slackX=this.state.slackX+(S-F.x),F.slackY=this.state.slackY+(I-F.y),O.x=F.x,O.y=F.y,O.deltaX=F.x-this.state.x,O.deltaY=F.y-this.state.y}if(this.props.onDrag(v,O)===!1)return!1;this.setState(F)}),s(this,"onDragStop",(v,_)=>{if(!this.state.dragging||this.props.onStop(v,(0,a.createDraggableData)(this,_))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",_);const F={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:S,y:I}=this.props.position;F.x=S,F.y=I}this.setState(F)}),this.state={dragging:!1,dragged:!1,x:m.position?m.position.x:m.defaultPosition.x,y:m.position?m.position.y:m.defaultPosition.y,prevPropsPosition:Ui({},m.position),slackX:0,slackY:0,isElementSVG:!1},m.position&&!(m.onDrag||m.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var m,v;return(m=(v=this.props)===null||v===void 0||(v=v.nodeRef)===null||v===void 0?void 0:v.current)!==null&&m!==void 0?m:t.default.findDOMNode(this)}render(){const U=this.props,{axis:m,bounds:v,children:_,defaultPosition:O,defaultClassName:F,defaultClassNameDragging:T,defaultClassNameDragged:S,position:I,positionOffset:E,scale:M}=U,N=yu(U,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let V={},H=null;const G=!!!I||this.state.dragging,ee=I||O,Z={x:(0,a.canDragX)(this)&&G?this.state.x:ee.x,y:(0,a.canDragY)(this)&&G?this.state.y:ee.y};this.state.isElementSVG?H=(0,b.createSVGTransform)(Z,E):V=(0,b.createCSSTransform)(Z,E);const Ae=(0,C.default)(_.props.className||"",F,{[T]:this.state.dragging,[S]:this.state.dragged});return oe.createElement(A.default,r({},N,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),oe.cloneElement(oe.Children.only(_),{className:Ae,style:Ui(Ui({},_.props.style),V),transform:H}))}}ke.default=p,s(p,"displayName","Draggable"),s(p,"propTypes",au(Ui({},A.default.propTypes),{axis:ie.default.oneOf(["both","x","y","none"]),bounds:ie.default.oneOfType([ie.default.shape({left:ie.default.number,right:ie.default.number,top:ie.default.number,bottom:ie.default.number}),ie.default.string,ie.default.oneOf([!1])]),defaultClassName:ie.default.string,defaultClassNameDragging:ie.default.string,defaultClassNameDragged:ie.default.string,defaultPosition:ie.default.shape({x:ie.default.number,y:ie.default.number}),positionOffset:ie.default.shape({x:ie.default.oneOfType([ie.default.number,ie.default.string]),y:ie.default.oneOfType([ie.default.number,ie.default.string])}),position:ie.default.shape({x:ie.default.number,y:ie.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe})),s(p,"defaultProps",au(Ui({},A.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=void 0;var oe=h(J(59301)),ie=A(J(12708)),t=A(J(4676)),C=J(13957),b=J(60976),a=J(36641),u=A(J(94187));function A(p){return p&&p.__esModule?p:{default:p}}function c(p){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(c=function(v){return v?m:g})(p)}function h(p,g){if(!g&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var m=c(g);if(m&&m.has(p))return m.get(p);var v={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in p)if(O!=="default"&&Object.prototype.hasOwnProperty.call(p,O)){var F=_?Object.getOwnPropertyDescriptor(p,O):null;F&&(F.get||F.set)?Object.defineProperty(v,O,F):v[O]=p[O]}return v.default=p,m&&m.set(p,v),v}function o(p,g,m){return g=n(g),g in p?Object.defineProperty(p,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[g]=m,p}function n(p){var g=r(p,"string");return typeof g=="symbol"?g:String(g)}function r(p,g){if(typeof p!="object"||p===null)return p;var m=p[Symbol.toPrimitive];if(m!==void 0){var v=m.call(p,g||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(p)}const s={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let l=s.mouse;class d extends oe.Component{constructor(){super(...arguments),o(this,"dragging",!1),o(this,"lastX",NaN),o(this,"lastY",NaN),o(this,"touchIdentifier",null),o(this,"mounted",!1),o(this,"handleDragStart",g=>{if(this.props.onMouseDown(g),!this.props.allowAnyClick&&typeof g.button=="number"&&g.button!==0)return!1;const m=this.findDOMNode();if(!m||!m.ownerDocument||!m.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:v}=m;if(this.props.disabled||!(g.target instanceof v.defaultView.Node)||this.props.handle&&!(0,C.matchesSelectorAndParentsTo)(g.target,this.props.handle,m)||this.props.cancel&&(0,C.matchesSelectorAndParentsTo)(g.target,this.props.cancel,m))return;g.type==="touchstart"&&g.preventDefault();const _=(0,C.getTouchIdentifier)(g);this.touchIdentifier=_;const O=(0,b.getControlPosition)(g,_,this);if(O==null)return;const{x:F,y:T}=O,S=(0,b.createCoreData)(this,F,T);(0,u.default)("DraggableCore: handleDragStart: %j",S),(0,u.default)("calling",this.props.onStart),!(this.props.onStart(g,S)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,C.addUserSelectStyles)(v),this.dragging=!0,this.lastX=F,this.lastY=T,(0,C.addEvent)(v,l.move,this.handleDrag),(0,C.addEvent)(v,l.stop,this.handleDragStop))}),o(this,"handleDrag",g=>{const m=(0,b.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:v,y:_}=m;if(Array.isArray(this.props.grid)){let T=v-this.lastX,S=_-this.lastY;if([T,S]=(0,b.snapToGrid)(this.props.grid,T,S),!T&&!S)return;v=this.lastX+T,_=this.lastY+S}const O=(0,b.createCoreData)(this,v,_);if((0,u.default)("DraggableCore: handleDrag: %j",O),this.props.onDrag(g,O)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(T){const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}return}this.lastX=v,this.lastY=_}),o(this,"handleDragStop",g=>{if(!this.dragging)return;const m=(0,b.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:v,y:_}=m;if(Array.isArray(this.props.grid)){let S=v-this.lastX||0,I=_-this.lastY||0;[S,I]=(0,b.snapToGrid)(this.props.grid,S,I),v=this.lastX+S,_=this.lastY+I}const O=(0,b.createCoreData)(this,v,_);if(this.props.onStop(g,O)===!1||this.mounted===!1)return!1;const T=this.findDOMNode();T&&this.props.enableUserSelectHack&&(0,C.removeUserSelectStyles)(T.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",O),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,T&&((0,u.default)("DraggableCore: Removing handlers"),(0,C.removeEvent)(T.ownerDocument,l.move,this.handleDrag),(0,C.removeEvent)(T.ownerDocument,l.stop,this.handleDragStop))}),o(this,"onMouseDown",g=>(l=s.mouse,this.handleDragStart(g))),o(this,"onMouseUp",g=>(l=s.mouse,this.handleDragStop(g))),o(this,"onTouchStart",g=>(l=s.touch,this.handleDragStart(g))),o(this,"onTouchEnd",g=>(l=s.touch,this.handleDragStop(g)))}componentDidMount(){this.mounted=!0;const g=this.findDOMNode();g&&(0,C.addEvent)(g,s.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const g=this.findDOMNode();if(g){const{ownerDocument:m}=g;(0,C.removeEvent)(m,s.mouse.move,this.handleDrag),(0,C.removeEvent)(m,s.touch.move,this.handleDrag),(0,C.removeEvent)(m,s.mouse.stop,this.handleDragStop),(0,C.removeEvent)(m,s.touch.stop,this.handleDragStop),(0,C.removeEvent)(g,s.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,C.removeUserSelectStyles)(m)}}findDOMNode(){var g,m;return(g=this.props)!==null&&g!==void 0&&g.nodeRef?(m=this.props)===null||m===void 0||(m=m.nodeRef)===null||m===void 0?void 0:m.current:t.default.findDOMNode(this)}render(){return oe.cloneElement(oe.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}ke.default=d,o(d,"displayName","DraggableCore"),o(d,"propTypes",{allowAnyClick:ie.default.bool,children:ie.default.node.isRequired,disabled:ie.default.bool,enableUserSelectHack:ie.default.bool,offsetParent:function(p,g){if(p[g]&&p[g].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ie.default.arrayOf(ie.default.number),handle:ie.default.string,cancel:ie.default.string,nodeRef:ie.default.object,onStart:ie.default.func,onDrag:ie.default.func,onStop:ie.default.func,onMouseDown:ie.default.func,scale:ie.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),o(d,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(rt,ke,J){"use strict";const{default:oe,DraggableCore:ie}=J(2637);rt.exports=oe,rt.exports.default=oe,rt.exports.DraggableCore=ie},13957:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.addClassName=O,ke.addEvent=A,ke.addUserSelectStyles=v,ke.createCSSTransform=l,ke.createSVGTransform=d,ke.getTouch=g,ke.getTouchIdentifier=m,ke.getTranslation=p,ke.innerHeight=n,ke.innerWidth=r,ke.matchesSelector=a,ke.matchesSelectorAndParentsTo=u,ke.offsetXYFromParent=s,ke.outerHeight=h,ke.outerWidth=o,ke.removeClassName=F,ke.removeEvent=c,ke.removeUserSelectStyles=_;var oe=J(36641),ie=C(J(32092));function t(T){if(typeof WeakMap!="function")return null;var S=new WeakMap,I=new WeakMap;return(t=function(E){return E?I:S})(T)}function C(T,S){if(!S&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var I=t(S);if(I&&I.has(T))return I.get(T);var E={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in T)if(N!=="default"&&Object.prototype.hasOwnProperty.call(T,N)){var V=M?Object.getOwnPropertyDescriptor(T,N):null;V&&(V.get||V.set)?Object.defineProperty(E,N,V):E[N]=T[N]}return E.default=T,I&&I.set(T,E),E}let b="";function a(T,S){return b||(b=(0,oe.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(I){return(0,oe.isFunction)(T[I])})),(0,oe.isFunction)(T[b])?T[b](S):!1}function u(T,S,I){let E=T;do{if(a(E,S))return!0;if(E===I)return!1;E=E.parentNode}while(E);return!1}function A(T,S,I,E){if(!T)return;const M=Ui({capture:!0},E);T.addEventListener?T.addEventListener(S,I,M):T.attachEvent?T.attachEvent("on"+S,I):T["on"+S]=I}function c(T,S,I,E){if(!T)return;const M=Ui({capture:!0},E);T.removeEventListener?T.removeEventListener(S,I,M):T.detachEvent?T.detachEvent("on"+S,I):T["on"+S]=null}function h(T){let S=T.clientHeight;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S+=(0,oe.int)(I.borderTopWidth),S+=(0,oe.int)(I.borderBottomWidth),S}function o(T){let S=T.clientWidth;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S+=(0,oe.int)(I.borderLeftWidth),S+=(0,oe.int)(I.borderRightWidth),S}function n(T){let S=T.clientHeight;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S-=(0,oe.int)(I.paddingTop),S-=(0,oe.int)(I.paddingBottom),S}function r(T){let S=T.clientWidth;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S-=(0,oe.int)(I.paddingLeft),S-=(0,oe.int)(I.paddingRight),S}function s(T,S,I){const M=S===S.ownerDocument.body?{left:0,top:0}:S.getBoundingClientRect(),N=(T.clientX+S.scrollLeft-M.left)/I,V=(T.clientY+S.scrollTop-M.top)/I;return{x:N,y:V}}function l(T,S){const I=p(T,S,"px");return{[(0,ie.browserPrefixToKey)("transform",ie.default)]:I}}function d(T,S){return p(T,S,"")}function p(T,S,I){let{x:E,y:M}=T,N="translate(".concat(E).concat(I,",").concat(M).concat(I,")");if(S){const V="".concat(typeof S.x=="string"?S.x:S.x+I),H="".concat(typeof S.y=="string"?S.y:S.y+I);N="translate(".concat(V,", ").concat(H,")")+N}return N}function g(T,S){return T.targetTouches&&(0,oe.findInArray)(T.targetTouches,I=>S===I.identifier)||T.changedTouches&&(0,oe.findInArray)(T.changedTouches,I=>S===I.identifier)}function m(T){if(T.targetTouches&&T.targetTouches[0])return T.targetTouches[0].identifier;if(T.changedTouches&&T.changedTouches[0])return T.changedTouches[0].identifier}function v(T){if(!T)return;let S=T.getElementById("react-draggable-style-el");S||(S=T.createElement("style"),S.type="text/css",S.id="react-draggable-style-el",S.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
+ `,Pe.style.marginRight="5px",ge.appendChild(Pe)}Q.typeBoxes.push(ge)},Q=this,z=0;z<4;z++)ne(z);return q},B.prototype.setCurrentType=function(k,q){var ne=this;this.currentType=k,this.typeBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},B}(l),G=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.arrowType="end",Q.arrowBaseHeight=10,Q.arrowBaseWidth=10,Q.getArrowPoints=Q.getArrowPoints.bind(Q),Q.setArrowType=Q.setArrowType.bind(Q),Q.arrowTypePanel=new X("Arrow type","end"),Q.arrowTypePanel.onArrowTypeChanged=Q.setArrowType,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},B.prototype.getArrowPoints=function(k,q){var ne=this.arrowBaseWidth+2*this.strokeWidth,Q=this.arrowBaseHeight+2*this.strokeWidth;return k-ne/2+","+(q+Q/2)+" "+k+","+(q-Q/2)+" "+(k+ne/2)+","+(q+Q/2)},B.prototype.createTips=function(){this.arrow1=a.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=a.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.arrow2)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if($.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",a.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),a.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var k=0;Math.abs(this.x1-this.x2)>.1&&(k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var q=this.arrow1.transform.baseVal.getItem(0);q.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(q,0);var ne=this.arrow2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ne,0)}},B.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.arrowType=q.arrowType,this.createTips(),this.adjustVisual()},B.typeName="ArrowMarker",B.title="Arrow marker",B.icon='',B}(M),ee=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor=ne.defaultFillColor,Q.strokeWidth=0,Q.fillPanel=new d("Color",ne.defaultColorSet,ne.defaultFillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q}return ie(B,$),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="CoverMarker",B.title="Cover marker",B.icon='',B}(O),Z=function($){function B(k,q,ne,Q){var z=$.call(this,k,Q||'')||this;return z.opacities=[],z.opacityBoxes=[],z.opacities=q,z.currentOpacity=ne,z.setCurrentOpacity=z.setCurrentOpacity.bind(z),z}return ie(B,$),B.prototype.getUi=function(){var k=this,q=document.createElement("div");return q.style.display="flex",q.style.overflow="hidden",q.style.flexGrow="2",q.style.justifyContent="space-between",this.opacities.forEach(function(ne){var Q=document.createElement("div");Q.style.display="flex",Q.style.alignItems="center",Q.style.justifyContent="center",Q.style.padding="5px",Q.style.borderWidth="2px",Q.style.borderStyle="solid",Q.style.borderColor=ne===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",Q.addEventListener("click",function(){k.setCurrentOpacity(ne,Q)}),q.appendChild(Q);var z=document.createElement("div");z.innerText=100*ne+"%",Q.appendChild(z),k.opacityBoxes.push(Q)}),q},B.prototype.setCurrentOpacity=function(k,q){var ne=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(Q){Q.style.borderColor=Q===q?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},B}(l),Ae=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.setOpacity=Q.setOpacity.bind(Q),Q.fillColor=ne.defaultHighlightColor,Q.strokeWidth=0,Q.opacity=ne.defaultHighlightOpacity,Q.fillPanel=new d("Color",ne.defaultColorSet,Q.fillColor),Q.fillPanel.onColorChanged=Q.setFillColor,Q.opacityPanel=new Z("Opacity",ne.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return ie(B,$),B.prototype.setOpacity=function(k){this.opacity=k,this.visual&&a.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="HighlightMarker",B.title="Highlight marker",B.icon='',B}(ee),U='',W='',le=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.bgColor="transparent",Q.tipPosition={x:0,y:0},Q.tipBase1Position={x:0,y:0},Q.tipBase2Position={x:0,y:0},Q.tipMoving=!1,Q.color=ne.defaultStrokeColor,Q.bgColor=ne.defaultFillColor,Q.fontFamily=ne.defaultFontFamily,Q.defaultSize={x:100,y:30},Q.setBgColor=Q.setBgColor.bind(Q),Q.getTipPoints=Q.getTipPoints.bind(Q),Q.positionTip=Q.positionTip.bind(Q),Q.setTipPoints=Q.setTipPoints.bind(Q),Q.colorPanel=new d("Text color",ne.defaultColorSet,Q.color,U),Q.colorPanel.onColorChanged=Q.setColor,Q.bgColorPanel=new d("Fill color",ne.defaultColorSet,Q.bgColor,W),Q.bgColorPanel.onColorChanged=Q.setBgColor,Q.fontFamilyPanel=new N("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.tipGrip=new m,Q.tipGrip.visual.transform.baseVal.appendItem(a.createTransform()),Q.controlBox.appendChild(Q.tipGrip.visual),Q}return ie(B,$),B.prototype.ownsTarget=function(k){return $.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},B.prototype.createTip=function(){a.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=a.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},B.prototype.pointerDown=function(k,q){this.state==="new"&&$.prototype.pointerDown.call(this,k,q),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(q)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):$.prototype.pointerDown.call(this,k,q)},B.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,$.prototype.pointerUp.call(this,k);else{var q=this.state==="creating";$.prototype.pointerUp.call(this,k),this.setTipPoints(q),this.positionTip()}},B.prototype.manipulate=function(k){if(this.tipMoving){var q=this.unrotatePoint(k);this.tipPosition={x:q.x-this.manipulationStartLeft,y:q.y-this.manipulationStartTop},this.positionTip()}else $.prototype.manipulate.call(this,k)},B.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(a.setAttributes(this.bgRectangle,[["fill",k]]),a.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},B.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},B.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var q=Math.min(this.height/2,15),ne=this.height/5;k&&(this.tipPosition={x:q+ne/2,y:this.height+20});var Q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Q',B}(V),he=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor="transparent",Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.opacity=1,Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.fillColor=ne.defaultFillColor,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setFillColor=Q.setFillColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.setOpacity=Q.setOpacity.bind(Q),Q.createVisual=Q.createVisual.bind(Q),Q.strokePanel=new d("Line color",b(ne.defaultColorSet,["transparent"]),ne.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.fillPanel=new d("Fill color",b(ne.defaultColorSet,["transparent"]),Q.fillColor,W),Q.fillPanel.onColorChanged=Q.setFillColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q.opacityPanel=new Z("Opacity",ne.defaultOpacitySteps,Q.opacity),Q.opacityPanel.onOpacityChanged=Q.setOpacity,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual)},B.prototype.createVisual=function(){this.visual=a.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},B.prototype.manipulate=function(k){$.prototype.manipulate.call(this,k)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.setSize()},B.prototype.setSize=function(){$.prototype.setSize.call(this),a.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},B.prototype.pointerUp=function(k){$.prototype.pointerUp.call(this,k),this.setSize()},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&a.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},B.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&a.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&a.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&a.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},B.prototype.setOpacity=function(k){this.opacity=k,this.visual&&a.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){var q=k;this.fillColor=q.fillColor,this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.opacity=q.opacity,this.createVisual(),$.prototype.restoreState.call(this,k),this.setSize()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setSize()},B.typeName="EllipseMarker",B.title="Ellipse marker",B.icon='',B}(_),ue=function($){function B(k,q,ne){return $.call(this,k,q,ne)||this}return ie(B,$),Object.defineProperty(B.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},B.prototype.createTips=function(){this.tip1=a.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.tip1),this.tip2=a.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(a.createTransform()),this.visual.appendChild(this.tip2)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.state==="creating"&&this.createTips()},B.prototype.adjustVisual=function(){if($.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(a.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),a.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),q=this.tip1.transform.baseVal.getItem(0);q.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(q,0);var ne=this.tip2.transform.baseVal.getItem(0);ne.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ne,0)}},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},B.typeName="MeasurementMarker",B.title="Measurement marker",B.icon='',B}(M),pe=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.strokePanel.colors=ne.defaultColorSet,Q.fillColor="transparent",Q}return ie(B,$),Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=$.prototype.getState.call(this);return k.typeName=B.typeName,k},B.typeName="EllipseFrameMarker",B.title="Ellipse frame marker",B.icon='',B}(he),fe=function(){function $(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty($.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),$.prototype.addUndoStep=function(B){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(B)||(this.undoStack.push(B),JSON.stringify(this.lastRedoStep)!==JSON.stringify(B)&&this.redoStack.splice(0,this.redoStack.length))},$.prototype.replaceLastUndoStep=function(B){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=B)},$.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},$.prototype.undo=function(){if(this.undoStack.length>1){var B=this.undoStack.pop();return B!==void 0&&this.redoStack.push(B),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},$.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},$}(),ce=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.curveX=0,Q.curveY=0,Q.manipulationStartCurveX=0,Q.manipulationStartCurveY=0,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.positionGrips=Q.positionGrips.bind(Q),Q.addControlGrips=Q.addControlGrips.bind(Q),Q.adjustVisual=Q.adjustVisual.bind(Q),Q.setupControlBox=Q.setupControlBox.bind(Q),Q.resize=Q.resize.bind(Q),Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.strokePanel=new d("Line color",ne.defaultColorSet,ne.defaultColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},B.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.selectorCurve=a.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=a.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(q)&&(this.activeGrip=this.curveGrip,this._state="resize")},B.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),a.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),a.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),a.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},B.prototype.setupControlBox=function(){$.prototype.setupControlBox.call(this),this.curveControlLine1=a.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=a.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},B.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,$.prototype.addControlGrips.call(this)},B.prototype.positionGrips=function(){$.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},B.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),$.prototype.manipulate.call(this,k)},B.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),$.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},B.prototype.scale=function(k,q){this.curveX=this.curveX*k,this.curveY=this.curveY*q,$.prototype.scale.call(this,k,q)},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},$.prototype.getState.call(this));return k.typeName=B.typeName,k},B.prototype.restoreState=function(k){$.prototype.restoreState.call(this,k);var q=k;this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.curveX=q.curveX,this.curveY=q.curveY,this.createVisual(),this.adjustVisual()},B.typeName="CurveMarker",B.title="Curve marker",B.icon='',B}(E),be=function($){function B(k,q,ne){var Q=$.call(this,k,q,ne)||this;return Q.fillColor="transparent",Q.strokeColor="transparent",Q.strokeWidth=0,Q.strokeDasharray="",Q.textColor="transparent",Q.fontSize="1rem",Q.isMoved=!1,Q.captionText="Caption",Q.PADDING=5,Q.captionBoxWidth=0,Q.captionBoxHeight=0,Q.strokeColor=ne.defaultColor,Q.strokeWidth=ne.defaultStrokeWidth,Q.strokeDasharray=ne.defaultStrokeDasharray,Q.fillColor=ne.defaultFillColor,Q.textColor=ne.defaultStrokeColor,Q.fontFamily=ne.defaultFontFamily,Q.fontSize=ne.defaultCaptionFontSize,Q.captionText=ne.defaultCaptionText,Q.setStrokeColor=Q.setStrokeColor.bind(Q),Q.setFillColor=Q.setFillColor.bind(Q),Q.setStrokeWidth=Q.setStrokeWidth.bind(Q),Q.setStrokeDasharray=Q.setStrokeDasharray.bind(Q),Q.createVisual=Q.createVisual.bind(Q),Q.sizeCaption=Q.sizeCaption.bind(Q),Q.setCaptionText=Q.setCaptionText.bind(Q),Q.showTextEditor=Q.showTextEditor.bind(Q),Q.positionTextEditor=Q.positionTextEditor.bind(Q),Q.finishTextEditing=Q.finishTextEditing.bind(Q),Q.setFont=Q.setFont.bind(Q),Q.setTextColor=Q.setTextColor.bind(Q),Q.strokePanel=new d("Line color",b(ne.defaultColorSet,["transparent"]),Q.strokeColor),Q.strokePanel.onColorChanged=Q.setStrokeColor,Q.fillPanel=new d("Fill color",b(ne.defaultColorSet,["transparent"]),Q.fillColor,W),Q.fillPanel.onColorChanged=Q.setFillColor,Q.strokeWidthPanel=new F("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),Q.strokeWidthPanel.onWidthChanged=Q.setStrokeWidth,Q.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),Q.strokeStylePanel.onStyleChanged=Q.setStrokeDasharray,Q.fontFamilyPanel=new N("Font",ne.defaultFontFamilies,ne.defaultFontFamily),Q.fontFamilyPanel.onFontChanged=Q.setFont,Q.textColorPanel=new d("Text color",ne.defaultColorSet,Q.textColor,U),Q.textColorPanel.onColorChanged=Q.setTextColor,Q}return ie(B,$),B.prototype.ownsTarget=function(k){return!(!$.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},B.prototype.createVisual=function(){this.visual=a.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=a.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=a.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=a.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},B.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},B.prototype.pointerDown=function(k,q){$.prototype.pointerDown.call(this,k,q),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},B.prototype.manipulate=function(k){$.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},B.prototype.resize=function(k){$.prototype.resize.call(this,k),this.setSize()},B.prototype.sizeCaption=function(){var k=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=k.width+2*this.PADDING,this.captionBoxHeight=k.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),a.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),a.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},B.prototype.showTextEditor=function(){var k=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(q){q.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(q){q.key==="Enter"&&k.finishTextEditing(k.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(q){q.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){k.finishTextEditing(k.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){k.finishTextEditing(k.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},B.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},B.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},B.prototype.setFont=function(k){this.captionElement&&a.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},B.prototype.setTextColor=function(k){this.captionElement&&a.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},B.prototype.setSize=function(){$.prototype.setSize.call(this),a.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},B.prototype.pointerUp=function(k){$.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},B.prototype.dblClick=function(k,q){$.prototype.dblClick.call(this,k,q),this.showTextEditor()},B.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&a.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},B.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&a.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},B.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&a.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},B.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&a.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(B.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),B.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},$.prototype.getState.call(this));return k.typeName=this.typeName,k},B.prototype.restoreState=function(k){var q=k;this.fillColor=q.fillColor,this.strokeColor=q.strokeColor,this.strokeWidth=q.strokeWidth,this.strokeDasharray=q.strokeDasharray,this.textColor=q.textColor,this.fontFamily=q.fontFamily,this.captionText=q.captionText,this.fontSize=q.fontSize,this.createVisual(),$.prototype.restoreState.call(this,k),this.setSize()},B.prototype.scale=function(k,q){$.prototype.scale.call(this,k,q),this.setSize()},B.typeName="CaptionFrameMarker",B.title="Caption frame marker",B.icon='',B}(_),Ce=function(){function $(B,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=B,this.cancelable=k}return Object.defineProperty($.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),$.prototype.preventDefault=function(){this._defaultPrevented=!0},$}(),xe=function($){function B(k,q,ne){var Q=$.call(this,k,!1)||this;return Q.dataUrl=q,Q.state=ne,Q}return ie(B,$),B}(Ce),Se=function($){function B(k,q,ne){ne===void 0&&(ne=!1);var Q=$.call(this,k,ne)||this;return Q.marker=q,Q}return ie(B,$),B}(Ce),me=function(){function $(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return $.prototype.addEventListener=function(B,k){this[B].push(k)},$.prototype.removeEventListener=function(B,k){var q=this[B].indexOf(k);q>-1&&this[B].splice(q,1)},$}(),te=function(){function $(B){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new I,this._isOpen=!1,this.undoRedoManager=new fe,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new me,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=$.instanceCounter++,this.styles=new h(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=B,this.targetRoot=document.body,this.width=B.clientWidth,this.height=B.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty($.prototype,"ALL_MARKER_TYPES",{get:function(){return[S,H,G,V,pe,he,Ae,le,ue,ee,M,ce,be]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[S,H,G,V,he,Ae,le]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"BASIC_MARKER_TYPES",{get:function(){return[S,H,G,V,Ae]},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(B){var k=this;this._availableMarkerTypes.splice(0),B.forEach(function(q){if(typeof q=="string"){var ne=k.ALL_MARKER_TYPES.find(function(Q){return Q.typeName===q});ne!==void 0&&k._availableMarkerTypes.push(ne)}else k._availableMarkerTypes.push(q)})},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(B){this._zoomLevel=B,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),$.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),u.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},$.prototype.show=function(){var B=this;this.styles.styleSheetRoot===void 0&&c.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=c.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new Ce(B))})},$.prototype.render=function(){return t(this,void 0,void 0,function(){var B;return C(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(B=new A).naturalSize=this.renderAtNaturalSize,B.imageType=this.renderImageType,B.imageQuality=this.renderImageQuality,B.markersOnly=this.renderMarkersOnly,B.width=this.renderWidth,B.height=this.renderHeight,[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,B.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},$.prototype.close=function(B){var k=this;if(B===void 0&&(B=!1),this.isOpen){var q=!1;B||this.eventListeners.beforeclose.forEach(function(ne){var Q=new Ce(k,!0);ne(Q),Q.defaultPrevented&&(q=!0)}),q||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ne){return ne(new Ce(k))}),this.detachEvents(),this._isOpen=!1)}},$.prototype.addMarkersToToolbar=function(){for(var B,k=[],q=0;qthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*B:this.editorCanvas.clientWidth,q=k',B.title="Powered by marker.js",B.style.display="grid",B.style.alignItems="center",B.style.justifyItems="center",B.style.padding="3px",B.style.width="20px",B.style.height="20px",this.logoUI.appendChild(B),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},$.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},$.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},$.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},$.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var B=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new r(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(B),1),B.dispose()},$.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},$.prototype.toolbarButtonClicked=function(B,k){if(B==="marker"&&k!==void 0)this.createNewMarker(k);else if(B==="action")switch(k){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},$.prototype.deleteSelectedMarker=function(){var B=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ne){var Q=new Se(B,B._currentMarker,!0);ne(Q),Q.defaultPrevented&&(k=!0)}),!k){var q=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ne){return ne(new Se(B,q))})}}},$.prototype.clear=function(){var B=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(z){var Y=new Se(B,void 0,!0);z(Y),Y.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var q=function(z){var Y=ne.markers[z];ne.setCurrentMarker(ne.markers[z]),ne._currentMarker.dispose(),ne.markerImage.removeChild(ne._currentMarker.container),ne.markers.splice(ne.markers.indexOf(ne._currentMarker),1),ne.eventListeners.markerdelete.forEach(function(re){return re(new Se(B,Y))})},ne=this,Q=this.markers.length-1;Q>=0;Q--)q(Q);this.addUndoStep()}},Object.defineProperty($.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),$.prototype.showNotesEditor=function(){var B;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(B=this._currentMarker.notes)!==null&&B!==void 0?B:"",this.overlayContainer.appendChild(this.notesArea))},$.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},$.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},$.prototype.addUndoStep=function(){var B=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),q=this.undoRedoManager.getLastUndoStep();if(!q||q.width===k.width&&q.height===k.height){var ne=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ne1&&this.panTo({x:B.clientX,y:B.clientY}))},$.prototype.onPointerUp=function(B){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(B.clientX,B.clientY)),this.isDragging=!1,this.addUndoStep()},$.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},$.prototype.onKeyUp=function(B){this._currentMarker===void 0||this.notesArea!==void 0||B.key!=="Delete"&&B.key!=="Backspace"||this.deleteSelectedMarker()},$.prototype.clientToLocalCoordinates=function(B,k){var q=this.markerImage.getBoundingClientRect();return{x:(B-q.left)/this.zoomLevel,y:(k-q.top)/this.zoomLevel}},$.prototype.onWindowResize=function(){this.positionUI()},$.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var B=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=B+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},$.prototype.addLicenseKey=function(B){u.addKey(B)},$.prototype.addEventListener=function(B,k){this.eventListeners.addEventListener(B,k)},$.prototype.removeEventListener=function(B,k){this.eventListeners.removeEventListener(B,k)},$.prototype.renderState=function(B){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(B),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty($.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),$.prototype.focus=function(){var B=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new Ce(B))}))},$.prototype.blur=function(){var B=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new Ce(B))}))},$.instanceCounter=0,$}()},2637:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),Object.defineProperty(ke,"DraggableCore",{enumerable:!0,get:function(){return A.default}}),ke.default=void 0;var oe=n(J(59301)),ie=h(J(12708)),t=h(J(4676)),C=h(J(57780)),b=J(13957),a=J(9479),u=J(36641),A=h(J(80486)),c=h(J(94187));function h(g){return g&&g.__esModule?g:{default:g}}function o(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,v=new WeakMap;return(o=function(_){return _?v:m})(g)}function n(g,m){if(!m&&g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var v=o(m);if(v&&v.has(g))return v.get(g);var _={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in g)if(F!=="default"&&Object.prototype.hasOwnProperty.call(g,F)){var T=O?Object.getOwnPropertyDescriptor(g,F):null;T&&(T.get||T.set)?Object.defineProperty(_,F,T):_[F]=g[F]}return _.default=g,v&&v.set(g,_),_}function r(){return r=Object.assign?Object.assign.bind():function(g){for(var m=1;m{if((0,c.default)("Draggable: onDragStart: %j",_),this.props.onStart(v,(0,a.createDraggableData)(this,_))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),s(this,"onDrag",(v,_)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",_);const O=(0,a.createDraggableData)(this,_),F={x:O.x,y:O.y,slackX:0,slackY:0};if(this.props.bounds){const{x:S,y:I}=F;F.x+=this.state.slackX,F.y+=this.state.slackY;const[E,M]=(0,a.getBoundPosition)(this,F.x,F.y);F.x=E,F.y=M,F.slackX=this.state.slackX+(S-F.x),F.slackY=this.state.slackY+(I-F.y),O.x=F.x,O.y=F.y,O.deltaX=F.x-this.state.x,O.deltaY=F.y-this.state.y}if(this.props.onDrag(v,O)===!1)return!1;this.setState(F)}),s(this,"onDragStop",(v,_)=>{if(!this.state.dragging||this.props.onStop(v,(0,a.createDraggableData)(this,_))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",_);const F={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:S,y:I}=this.props.position;F.x=S,F.y=I}this.setState(F)}),this.state={dragging:!1,dragged:!1,x:m.position?m.position.x:m.defaultPosition.x,y:m.position?m.position.y:m.defaultPosition.y,prevPropsPosition:Ui({},m.position),slackX:0,slackY:0,isElementSVG:!1},m.position&&!(m.onDrag||m.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var m,v;return(m=(v=this.props)===null||v===void 0||(v=v.nodeRef)===null||v===void 0?void 0:v.current)!==null&&m!==void 0?m:t.default.findDOMNode(this)}render(){const U=this.props,{axis:m,bounds:v,children:_,defaultPosition:O,defaultClassName:F,defaultClassNameDragging:T,defaultClassNameDragged:S,position:I,positionOffset:E,scale:M}=U,N=yu(U,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let V={},H=null;const G=!!!I||this.state.dragging,ee=I||O,Z={x:(0,a.canDragX)(this)&&G?this.state.x:ee.x,y:(0,a.canDragY)(this)&&G?this.state.y:ee.y};this.state.isElementSVG?H=(0,b.createSVGTransform)(Z,E):V=(0,b.createCSSTransform)(Z,E);const Ae=(0,C.default)(_.props.className||"",F,{[T]:this.state.dragging,[S]:this.state.dragged});return oe.createElement(A.default,r({},N,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),oe.cloneElement(oe.Children.only(_),{className:Ae,style:Ui(Ui({},_.props.style),V),transform:H}))}}ke.default=p,s(p,"displayName","Draggable"),s(p,"propTypes",au(Ui({},A.default.propTypes),{axis:ie.default.oneOf(["both","x","y","none"]),bounds:ie.default.oneOfType([ie.default.shape({left:ie.default.number,right:ie.default.number,top:ie.default.number,bottom:ie.default.number}),ie.default.string,ie.default.oneOf([!1])]),defaultClassName:ie.default.string,defaultClassNameDragging:ie.default.string,defaultClassNameDragged:ie.default.string,defaultPosition:ie.default.shape({x:ie.default.number,y:ie.default.number}),positionOffset:ie.default.shape({x:ie.default.oneOfType([ie.default.number,ie.default.string]),y:ie.default.oneOfType([ie.default.number,ie.default.string])}),position:ie.default.shape({x:ie.default.number,y:ie.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe})),s(p,"defaultProps",au(Ui({},A.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=void 0;var oe=h(J(59301)),ie=A(J(12708)),t=A(J(4676)),C=J(13957),b=J(9479),a=J(36641),u=A(J(94187));function A(p){return p&&p.__esModule?p:{default:p}}function c(p){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(c=function(v){return v?m:g})(p)}function h(p,g){if(!g&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var m=c(g);if(m&&m.has(p))return m.get(p);var v={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in p)if(O!=="default"&&Object.prototype.hasOwnProperty.call(p,O)){var F=_?Object.getOwnPropertyDescriptor(p,O):null;F&&(F.get||F.set)?Object.defineProperty(v,O,F):v[O]=p[O]}return v.default=p,m&&m.set(p,v),v}function o(p,g,m){return g=n(g),g in p?Object.defineProperty(p,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[g]=m,p}function n(p){var g=r(p,"string");return typeof g=="symbol"?g:String(g)}function r(p,g){if(typeof p!="object"||p===null)return p;var m=p[Symbol.toPrimitive];if(m!==void 0){var v=m.call(p,g||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(p)}const s={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let l=s.mouse;class d extends oe.Component{constructor(){super(...arguments),o(this,"dragging",!1),o(this,"lastX",NaN),o(this,"lastY",NaN),o(this,"touchIdentifier",null),o(this,"mounted",!1),o(this,"handleDragStart",g=>{if(this.props.onMouseDown(g),!this.props.allowAnyClick&&typeof g.button=="number"&&g.button!==0)return!1;const m=this.findDOMNode();if(!m||!m.ownerDocument||!m.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:v}=m;if(this.props.disabled||!(g.target instanceof v.defaultView.Node)||this.props.handle&&!(0,C.matchesSelectorAndParentsTo)(g.target,this.props.handle,m)||this.props.cancel&&(0,C.matchesSelectorAndParentsTo)(g.target,this.props.cancel,m))return;g.type==="touchstart"&&g.preventDefault();const _=(0,C.getTouchIdentifier)(g);this.touchIdentifier=_;const O=(0,b.getControlPosition)(g,_,this);if(O==null)return;const{x:F,y:T}=O,S=(0,b.createCoreData)(this,F,T);(0,u.default)("DraggableCore: handleDragStart: %j",S),(0,u.default)("calling",this.props.onStart),!(this.props.onStart(g,S)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,C.addUserSelectStyles)(v),this.dragging=!0,this.lastX=F,this.lastY=T,(0,C.addEvent)(v,l.move,this.handleDrag),(0,C.addEvent)(v,l.stop,this.handleDragStop))}),o(this,"handleDrag",g=>{const m=(0,b.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:v,y:_}=m;if(Array.isArray(this.props.grid)){let T=v-this.lastX,S=_-this.lastY;if([T,S]=(0,b.snapToGrid)(this.props.grid,T,S),!T&&!S)return;v=this.lastX+T,_=this.lastY+S}const O=(0,b.createCoreData)(this,v,_);if((0,u.default)("DraggableCore: handleDrag: %j",O),this.props.onDrag(g,O)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(T){const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}return}this.lastX=v,this.lastY=_}),o(this,"handleDragStop",g=>{if(!this.dragging)return;const m=(0,b.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:v,y:_}=m;if(Array.isArray(this.props.grid)){let S=v-this.lastX||0,I=_-this.lastY||0;[S,I]=(0,b.snapToGrid)(this.props.grid,S,I),v=this.lastX+S,_=this.lastY+I}const O=(0,b.createCoreData)(this,v,_);if(this.props.onStop(g,O)===!1||this.mounted===!1)return!1;const T=this.findDOMNode();T&&this.props.enableUserSelectHack&&(0,C.removeUserSelectStyles)(T.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",O),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,T&&((0,u.default)("DraggableCore: Removing handlers"),(0,C.removeEvent)(T.ownerDocument,l.move,this.handleDrag),(0,C.removeEvent)(T.ownerDocument,l.stop,this.handleDragStop))}),o(this,"onMouseDown",g=>(l=s.mouse,this.handleDragStart(g))),o(this,"onMouseUp",g=>(l=s.mouse,this.handleDragStop(g))),o(this,"onTouchStart",g=>(l=s.touch,this.handleDragStart(g))),o(this,"onTouchEnd",g=>(l=s.touch,this.handleDragStop(g)))}componentDidMount(){this.mounted=!0;const g=this.findDOMNode();g&&(0,C.addEvent)(g,s.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const g=this.findDOMNode();if(g){const{ownerDocument:m}=g;(0,C.removeEvent)(m,s.mouse.move,this.handleDrag),(0,C.removeEvent)(m,s.touch.move,this.handleDrag),(0,C.removeEvent)(m,s.mouse.stop,this.handleDragStop),(0,C.removeEvent)(m,s.touch.stop,this.handleDragStop),(0,C.removeEvent)(g,s.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,C.removeUserSelectStyles)(m)}}findDOMNode(){var g,m;return(g=this.props)!==null&&g!==void 0&&g.nodeRef?(m=this.props)===null||m===void 0||(m=m.nodeRef)===null||m===void 0?void 0:m.current:t.default.findDOMNode(this)}render(){return oe.cloneElement(oe.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}ke.default=d,o(d,"displayName","DraggableCore"),o(d,"propTypes",{allowAnyClick:ie.default.bool,children:ie.default.node.isRequired,disabled:ie.default.bool,enableUserSelectHack:ie.default.bool,offsetParent:function(p,g){if(p[g]&&p[g].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ie.default.arrayOf(ie.default.number),handle:ie.default.string,cancel:ie.default.string,nodeRef:ie.default.object,onStart:ie.default.func,onDrag:ie.default.func,onStop:ie.default.func,onMouseDown:ie.default.func,scale:ie.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),o(d,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(rt,ke,J){"use strict";const{default:oe,DraggableCore:ie}=J(2637);rt.exports=oe,rt.exports.default=oe,rt.exports.DraggableCore=ie},13957:function(rt,ke,J){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.addClassName=O,ke.addEvent=A,ke.addUserSelectStyles=v,ke.createCSSTransform=l,ke.createSVGTransform=d,ke.getTouch=g,ke.getTouchIdentifier=m,ke.getTranslation=p,ke.innerHeight=n,ke.innerWidth=r,ke.matchesSelector=a,ke.matchesSelectorAndParentsTo=u,ke.offsetXYFromParent=s,ke.outerHeight=h,ke.outerWidth=o,ke.removeClassName=F,ke.removeEvent=c,ke.removeUserSelectStyles=_;var oe=J(36641),ie=C(J(32092));function t(T){if(typeof WeakMap!="function")return null;var S=new WeakMap,I=new WeakMap;return(t=function(E){return E?I:S})(T)}function C(T,S){if(!S&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var I=t(S);if(I&&I.has(T))return I.get(T);var E={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in T)if(N!=="default"&&Object.prototype.hasOwnProperty.call(T,N)){var V=M?Object.getOwnPropertyDescriptor(T,N):null;V&&(V.get||V.set)?Object.defineProperty(E,N,V):E[N]=T[N]}return E.default=T,I&&I.set(T,E),E}let b="";function a(T,S){return b||(b=(0,oe.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(I){return(0,oe.isFunction)(T[I])})),(0,oe.isFunction)(T[b])?T[b](S):!1}function u(T,S,I){let E=T;do{if(a(E,S))return!0;if(E===I)return!1;E=E.parentNode}while(E);return!1}function A(T,S,I,E){if(!T)return;const M=Ui({capture:!0},E);T.addEventListener?T.addEventListener(S,I,M):T.attachEvent?T.attachEvent("on"+S,I):T["on"+S]=I}function c(T,S,I,E){if(!T)return;const M=Ui({capture:!0},E);T.removeEventListener?T.removeEventListener(S,I,M):T.detachEvent?T.detachEvent("on"+S,I):T["on"+S]=null}function h(T){let S=T.clientHeight;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S+=(0,oe.int)(I.borderTopWidth),S+=(0,oe.int)(I.borderBottomWidth),S}function o(T){let S=T.clientWidth;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S+=(0,oe.int)(I.borderLeftWidth),S+=(0,oe.int)(I.borderRightWidth),S}function n(T){let S=T.clientHeight;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S-=(0,oe.int)(I.paddingTop),S-=(0,oe.int)(I.paddingBottom),S}function r(T){let S=T.clientWidth;const I=T.ownerDocument.defaultView.getComputedStyle(T);return S-=(0,oe.int)(I.paddingLeft),S-=(0,oe.int)(I.paddingRight),S}function s(T,S,I){const M=S===S.ownerDocument.body?{left:0,top:0}:S.getBoundingClientRect(),N=(T.clientX+S.scrollLeft-M.left)/I,V=(T.clientY+S.scrollTop-M.top)/I;return{x:N,y:V}}function l(T,S){const I=p(T,S,"px");return{[(0,ie.browserPrefixToKey)("transform",ie.default)]:I}}function d(T,S){return p(T,S,"")}function p(T,S,I){let{x:E,y:M}=T,N="translate(".concat(E).concat(I,",").concat(M).concat(I,")");if(S){const V="".concat(typeof S.x=="string"?S.x:S.x+I),H="".concat(typeof S.y=="string"?S.y:S.y+I);N="translate(".concat(V,", ").concat(H,")")+N}return N}function g(T,S){return T.targetTouches&&(0,oe.findInArray)(T.targetTouches,I=>S===I.identifier)||T.changedTouches&&(0,oe.findInArray)(T.changedTouches,I=>S===I.identifier)}function m(T){if(T.targetTouches&&T.targetTouches[0])return T.targetTouches[0].identifier;if(T.changedTouches&&T.changedTouches[0])return T.changedTouches[0].identifier}function v(T){if(!T)return;let S=T.getElementById("react-draggable-style-el");S||(S=T.createElement("style"),S.type="text/css",S.id="react-draggable-style-el",S.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,S.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
-`,T.getElementsByTagName("head")[0].appendChild(S)),T.body&&O(T.body,"react-draggable-transparent-selection")}function _(T){if(T)try{if(T.body&&F(T.body,"react-draggable-transparent-selection"),T.selection)T.selection.empty();else{const S=(T.defaultView||window).getSelection();S&&S.type!=="Caret"&&S.removeAllRanges()}}catch(S){}}function O(T,S){T.classList?T.classList.add(S):T.className.match(new RegExp("(?:^|\\s)".concat(S,"(?!\\S)")))||(T.className+=" ".concat(S))}function F(T,S){T.classList?T.classList.remove(S):T.className=T.className.replace(new RegExp("(?:^|\\s)".concat(S,"(?!\\S)"),"g"),"")}},32092:function(rt,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.browserPrefixToKey=ie,ke.browserPrefixToStyle=t,ke.default=void 0,ke.getPrefix=oe;const J=["Moz","Webkit","O","ms"];function oe(){var a;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const A=(a=window.document)===null||a===void 0||(a=a.documentElement)===null||a===void 0?void 0:a.style;if(!A||u in A)return"";for(let c=0;c: Unmounted during event!");return r}},36641:function(rt,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.dontSetMe=C,ke.findInArray=J,ke.int=t,ke.isFunction=oe,ke.isNum=ie;function J(b,a){for(let u=0,A=b.length;uNumber(xe)?xe:Le})}if(ge||this.props.lockAspectRatio&&!re&&!Be){var Le=z+(ne-B)/he;this.setState({maxWidth:Le>Number(xe)?xe:Le})}if((Be||re)&&this.resizable){var Le=(k-Q)/he+this.resizable.size.height;this.setState({maxHeight:Le>Number(Se)?Se:Le})}if(Oe||this.props.lockAspectRatio&&!Be&&!re){var Le=Y+(Q-k)/he;this.setState({maxHeight:Le>Number(Se)?Se:Le})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(U,W,le)},Ae.prototype.onResize=function(U,W,le,he){var ue=this,pe={x:this.originalPosition.x,y:this.originalPosition.y},fe=-he.width,ce=-he.height,be=["top","left","topLeft","bottomLeft","topRight"];be.includes(W)&&(W==="bottomLeft"?pe.x+=fe:(W==="topRight"||(pe.x+=fe),pe.y+=ce));var Ce=this.draggable.state;(pe.x!==Ce.x||pe.y!==Ce.y)&&(0,b.flushSync)(function(){ue.draggable.setState(pe)}),this.updateOffsetFromParent();var xe=this.offsetFromParent,Se=this.getDraggablePosition().x+xe.left,me=this.getDraggablePosition().y+xe.top;this.resizingPosition={x:Se,y:me},this.props.onResize&&this.props.onResize(U,W,le,he,{x:Se,y:me})},Ae.prototype.onResizeStop=function(U,W,le,he){this.setState({resizing:!1});var ue=this.getMaxSizesFromProps(),pe=ue.maxWidth,fe=ue.maxHeight;this.setState({maxWidth:pe,maxHeight:fe}),this.props.onResizeStop&&this.props.onResizeStop(U,W,le,he,this.resizingPosition)},Ae.prototype.updateSize=function(U){this.resizable&&this.resizable.updateSize({width:U.width,height:U.height})},Ae.prototype.updatePosition=function(U){this.draggable.setState(U)},Ae.prototype.updateOffsetFromParent=function(){var U=this.props.scale,W=this.getParent(),le=this.getSelfElement();if(!W||le===null)return{top:0,left:0};var he=W.getBoundingClientRect(),ue=he.left,pe=he.top,fe=le.getBoundingClientRect(),ce=this.getDraggablePosition(),be=W.scrollLeft,Ce=W.scrollTop;this.offsetFromParent={left:fe.left-ue+be-ce.x*U,top:fe.top-pe+Ce-ce.y*U}},Ae.prototype.render=function(){var U=this,W=this.props,le=W.disableDragging,he=W.style,ue=W.dragHandleClassName,pe=W.position,fe=W.onMouseDown,ce=W.onMouseUp,be=W.dragAxis,Ce=W.dragGrid,xe=W.bounds,Se=W.enableUserSelectHack,me=W.cancel,te=W.children,$=W.onResizeStart,B=W.onResize,k=W.onResizeStop,q=W.onDragStart,ne=W.onDrag,Q=W.onDragStop,z=W.resizeHandleStyles,Y=W.resizeHandleClasses,re=W.resizeHandleComponent,ge=W.enableResizing,Be=W.resizeGrid,Oe=W.resizeHandleWrapperClass,Le=W.resizeHandleWrapperStyle,Pe=W.scale,$e=W.allowAnyClick,Ke=W.dragPositionOffset,Ne=H(W,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),Ue=this.props.default?V({},this.props.default):void 0;delete Ne.default;var Ye=le||ue?{cursor:"auto"}:{cursor:"move"},ze=V(V(V({},X),Ye),he),Xe=this.offsetFromParent,qe=Xe.left,Qe=Xe.top,He;pe&&(He={x:pe.x-qe,y:pe.y-Qe});var Ge=this.state.resizing?void 0:He,nt=this.state.resizing?"both":be;return(0,oe.createElement)(t(),{ref:function(st){st&&(U.draggable=st)},handle:ue?".".concat(ue):void 0,defaultPosition:Ue,onMouseDown:fe,onMouseUp:ce,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:nt,disabled:le,grid:Ce,bounds:xe?this.state.bounds:void 0,position:Ge,enableUserSelectHack:Se,cancel:me,scale:Pe,allowAnyClick:$e,nodeRef:this.resizableElement,positionOffset:Ke},(0,oe.createElement)(E,V({},Ne,{ref:function(st){st&&(U.resizable=st,U.resizableElement.current=st.resizable)},defaultSize:Ue,size:this.props.size,enable:typeof ge=="boolean"?G(ge):ge,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:ze,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:Be,handleWrapperClass:Oe,handleWrapperStyle:Le,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:z,handleClasses:Y,handleComponent:re,scale:this.props.scale}),te))},Ae.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},Ae}(oe.PureComponent)},7062:function(rt,ke,J){var oe=J(19637),ie=J(97573),t=[J(96627)];rt.exports=oe.createStore(ie,t)},96627:function(rt,ke,J){rt.exports=oe;function oe(){return J(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(rt){return rt<10?"0"+rt:rt}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(rt){return rx_escapable.lastIndex=0,rx_escapable.test(rt)?'"'+rt.replace(rx_escapable,function(ke){var J=meta[ke];return typeof J=="string"?J:"\\u"+("0000"+ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+rt+'"'}function str(rt,ke){var J,oe,ie,t,C=gap,b,a=ke[rt];switch(a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(rt)),typeof rep=="function"&&(a=rep.call(ke,rt,a)),typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(gap+=indent,b=[],Object.prototype.toString.apply(a)==="[object Array]"){for(t=a.length,J=0;J0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const A=(a=window.document)===null||a===void 0||(a=a.documentElement)===null||a===void 0?void 0:a.style;if(!A||u in A)return"";for(let c=0;c: Unmounted during event!");return r}},36641:function(rt,ke){"use strict";Object.defineProperty(ke,"__esModule",{value:!0}),ke.dontSetMe=C,ke.findInArray=J,ke.int=t,ke.isFunction=oe,ke.isNum=ie;function J(b,a){for(let u=0,A=b.length;uNumber(xe)?xe:Le})}if(ge||this.props.lockAspectRatio&&!re&&!Be){var Le=z+(ne-B)/he;this.setState({maxWidth:Le>Number(xe)?xe:Le})}if((Be||re)&&this.resizable){var Le=(k-Q)/he+this.resizable.size.height;this.setState({maxHeight:Le>Number(Se)?Se:Le})}if(Oe||this.props.lockAspectRatio&&!Be&&!re){var Le=Y+(Q-k)/he;this.setState({maxHeight:Le>Number(Se)?Se:Le})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(U,W,le)},Ae.prototype.onResize=function(U,W,le,he){var ue=this,pe={x:this.originalPosition.x,y:this.originalPosition.y},fe=-he.width,ce=-he.height,be=["top","left","topLeft","bottomLeft","topRight"];be.includes(W)&&(W==="bottomLeft"?pe.x+=fe:(W==="topRight"||(pe.x+=fe),pe.y+=ce));var Ce=this.draggable.state;(pe.x!==Ce.x||pe.y!==Ce.y)&&(0,b.flushSync)(function(){ue.draggable.setState(pe)}),this.updateOffsetFromParent();var xe=this.offsetFromParent,Se=this.getDraggablePosition().x+xe.left,me=this.getDraggablePosition().y+xe.top;this.resizingPosition={x:Se,y:me},this.props.onResize&&this.props.onResize(U,W,le,he,{x:Se,y:me})},Ae.prototype.onResizeStop=function(U,W,le,he){this.setState({resizing:!1});var ue=this.getMaxSizesFromProps(),pe=ue.maxWidth,fe=ue.maxHeight;this.setState({maxWidth:pe,maxHeight:fe}),this.props.onResizeStop&&this.props.onResizeStop(U,W,le,he,this.resizingPosition)},Ae.prototype.updateSize=function(U){this.resizable&&this.resizable.updateSize({width:U.width,height:U.height})},Ae.prototype.updatePosition=function(U){this.draggable.setState(U)},Ae.prototype.updateOffsetFromParent=function(){var U=this.props.scale,W=this.getParent(),le=this.getSelfElement();if(!W||le===null)return{top:0,left:0};var he=W.getBoundingClientRect(),ue=he.left,pe=he.top,fe=le.getBoundingClientRect(),ce=this.getDraggablePosition(),be=W.scrollLeft,Ce=W.scrollTop;this.offsetFromParent={left:fe.left-ue+be-ce.x*U,top:fe.top-pe+Ce-ce.y*U}},Ae.prototype.render=function(){var U=this,W=this.props,le=W.disableDragging,he=W.style,ue=W.dragHandleClassName,pe=W.position,fe=W.onMouseDown,ce=W.onMouseUp,be=W.dragAxis,Ce=W.dragGrid,xe=W.bounds,Se=W.enableUserSelectHack,me=W.cancel,te=W.children,$=W.onResizeStart,B=W.onResize,k=W.onResizeStop,q=W.onDragStart,ne=W.onDrag,Q=W.onDragStop,z=W.resizeHandleStyles,Y=W.resizeHandleClasses,re=W.resizeHandleComponent,ge=W.enableResizing,Be=W.resizeGrid,Oe=W.resizeHandleWrapperClass,Le=W.resizeHandleWrapperStyle,Pe=W.scale,$e=W.allowAnyClick,Ke=W.dragPositionOffset,Ne=H(W,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),Ue=this.props.default?V({},this.props.default):void 0;delete Ne.default;var Ye=le||ue?{cursor:"auto"}:{cursor:"move"},ze=V(V(V({},X),Ye),he),Xe=this.offsetFromParent,qe=Xe.left,Qe=Xe.top,He;pe&&(He={x:pe.x-qe,y:pe.y-Qe});var Ge=this.state.resizing?void 0:He,nt=this.state.resizing?"both":be;return(0,oe.createElement)(t(),{ref:function(st){st&&(U.draggable=st)},handle:ue?".".concat(ue):void 0,defaultPosition:Ue,onMouseDown:fe,onMouseUp:ce,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:nt,disabled:le,grid:Ce,bounds:xe?this.state.bounds:void 0,position:Ge,enableUserSelectHack:Se,cancel:me,scale:Pe,allowAnyClick:$e,nodeRef:this.resizableElement,positionOffset:Ke},(0,oe.createElement)(E,V({},Ne,{ref:function(st){st&&(U.resizable=st,U.resizableElement.current=st.resizable)},defaultSize:Ue,size:this.props.size,enable:typeof ge=="boolean"?G(ge):ge,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:ze,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:Be,handleWrapperClass:Oe,handleWrapperStyle:Le,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:z,handleClasses:Y,handleComponent:re,scale:this.props.scale}),te))},Ae.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},Ae}(oe.PureComponent)},7062:function(rt,ke,J){var oe=J(19637),ie=J(97573),t=[J(96627)];rt.exports=oe.createStore(ie,t)},96627:function(rt,ke,J){rt.exports=oe;function oe(){return J(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(rt){return rt<10?"0"+rt:rt}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(rt){return rx_escapable.lastIndex=0,rx_escapable.test(rt)?'"'+rt.replace(rx_escapable,function(ke){var J=meta[ke];return typeof J=="string"?J:"\\u"+("0000"+ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+rt+'"'}function str(rt,ke){var J,oe,ie,t,C=gap,b,a=ke[rt];switch(a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(rt)),typeof rep=="function"&&(a=rep.call(ke,rt,a)),typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(gap+=indent,b=[],Object.prototype.toString.apply(a)==="[object Array]"){for(t=a.length,J=0;J{const{componentCls:Z}=_;return{[`${Z}-rtl`]:{direction:"rtl"}}};const ne=_=>{const{componentCls:Z,colorTextDisabled:s}=_;return{[`${Z}-wrapper`]:Object.assign(Object.assign({},(0,st.Wf)(_)),{[Z]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Z}-select`]:{display:"inline-block"},[`${Z}-hidden`]:{display:"none"},[`${Z}-disabled`]:{color:s,cursor:"not-allowed"}})}},_e=_=>({actionsColor:_.colorTextDescription});var ie=(0,qe.I$)("Upload",_=>{const{fontSizeHeading3:Z,fontHeight:s,lineWidth:Je,controlHeightLG:Pe,calc:ve}=_,Ht=(0,Ke.mergeToken)(_,{uploadThumbnailSize:ve(Z).mul(2).equal(),uploadProgressOffset:ve(ve(s).div(2)).add(Je).equal(),uploadPicCardSize:ve(Pe).mul(2.55).equal()});return[ne(Ht),Pt(Ht),we(Ht),ct(Ht),cn(Ht),Et(Ht),O(Ht),(0,q.Z)(Ht)]},_e),re={icon:function(Z,s){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:s}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Z}}]}},name:"file",theme:"twotone"},me=re,he=e(7657),Oe=function(Z,s){return t.createElement(he.Z,(0,d.Z)({},Z,{ref:s,icon:me}))},D=t.forwardRef(Oe),F=D,be=e(58617),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ht=We,dt=function(Z,s){return t.createElement(he.Z,(0,d.Z)({},Z,{ref:s,icon:ht}))},Lt=t.forwardRef(dt),Dt=Lt,ut={icon:function(Z,s){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Z}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:s}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:s}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:s}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Z}}]}},name:"picture",theme:"twotone"},v=ut,Ne=function(Z,s){return t.createElement(he.Z,(0,d.Z)({},Z,{ref:s,icon:v}))},Ge=t.forwardRef(Ne),rt=Ge,oe=e(77900),Ae=e(2738),Ue=e(40192),ae=e(86641),Ct=e(22703),Vt=e(7939);function Kt(_){return Object.assign(Object.assign({},_),{lastModified:_.lastModified,lastModifiedDate:_.lastModifiedDate,name:_.name,size:_.size,type:_.type,uid:_.uid,percent:0,originFileObj:_})}function mn(_,Z){const s=(0,u.Z)(Z),Je=s.findIndex(Pe=>{let{uid:ve}=Pe;return ve===_.uid});return Je===-1?s.push(_):s[Je]=_,s}function Qt(_,Z){const s=_.uid!==void 0?"uid":"name";return Z.filter(Je=>Je[s]===_[s])[0]}function sn(_,Z){const s=_.uid!==void 0?"uid":"name",Je=Z.filter(Pe=>Pe[s]!==_[s]);return Je.length===Z.length?null:Je}const Nt=function(){const Z=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Je=Z[Z.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Je)||[""])[0]},Xt=_=>_.indexOf("image/")===0,tn=_=>{if(_.type&&!_.thumbUrl)return Xt(_.type);const Z=_.thumbUrl||_.url||"",s=Nt(Z);return/^data:image\//.test(Z)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(s)?!0:!(/^data:/.test(Z)||s)},fn=200;function xn(_){return new Promise(Z=>{if(!_.type||!Xt(_.type)){Z("");return}const s=document.createElement("canvas");s.width=fn,s.height=fn,s.style.cssText=`position: fixed; left: 0; top: 0; width: ${fn}px; height: ${fn}px; z-index: 9999; display: none;`,document.body.appendChild(s);const Je=s.getContext("2d"),Pe=new Image;if(Pe.onload=()=>{const{width:ve,height:Ht}=Pe;let Ve=fn,an=fn,on=0,Q=0;ve>Ht?(an=Ht*(fn/ve),Q=-(an-Ve)/2):(Ve=ve*(fn/Ht),on=-(Ve-an)/2),Je.drawImage(Pe,on,Q,Ve,an);const En=s.toDataURL();document.body.removeChild(s),window.URL.revokeObjectURL(Pe.src),Z(En)},Pe.crossOrigin="anonymous",_.type.startsWith("image/svg+xml")){const ve=new FileReader;ve.onload=()=>{ve.result&&typeof ve.result=="string"&&(Pe.src=ve.result)},ve.readAsDataURL(_)}else if(_.type.startsWith("image/gif")){const ve=new FileReader;ve.onload=()=>{ve.result&&Z(ve.result)},ve.readAsDataURL(_)}else Pe.src=window.URL.createObjectURL(_)})}var Nn=e(26227),kn=e(41464),$n=e(15277),nr=e(89787),dr=e(25399),mr=t.forwardRef((_,Z)=>{let{prefixCls:s,className:Je,style:Pe,locale:ve,listType:Ht,file:Ve,items:an,progress:on,iconRender:Q,actionIconRender:En,itemRender:tt,isImgUrl:Ie,showPreviewIcon:ft,showRemoveIcon:yt,showDownloadIcon:kt,previewIcon:Jt,removeIcon:bn,downloadIcon:ln,extra:gn,onPreview:qt,onDownload:Sn,onClose:pn}=_;var zn,Pn;const{status:Vn}=Ve,[Kn,pr]=t.useState(Vn);t.useEffect(()=>{Vn!=="removed"&&pr(Vn)},[Vn]);const[Un,er]=t.useState(!1);t.useEffect(()=>{const Qn=setTimeout(()=>{er(!0)},300);return()=>{clearTimeout(Qn)}},[]);const _n=Q(Ve);let gr=t.createElement("div",{className:`${s}-icon`},_n);if(Ht==="picture"||Ht==="picture-card"||Ht==="picture-circle")if(Kn==="uploading"||!Ve.thumbUrl&&!Ve.url){const Qn=g()(`${s}-list-item-thumbnail`,{[`${s}-list-item-file`]:Kn!=="uploading"});gr=t.createElement("div",{className:Qn},_n)}else{const Qn=Ie!=null&&Ie(Ve)?t.createElement("img",{src:Ve.thumbUrl||Ve.url,alt:Ve.name,className:`${s}-list-item-image`,crossOrigin:Ve.crossOrigin}):_n,xr=g()(`${s}-list-item-thumbnail`,{[`${s}-list-item-file`]:Ie&&!Ie(Ve)});gr=t.createElement("a",{className:xr,onClick:Mr=>qt(Ve,Mr),href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qn)}const Bn=g()(`${s}-list-item`,`${s}-list-item-${Kn}`),Nr=typeof Ve.linkProps=="string"?JSON.parse(Ve.linkProps):Ve.linkProps,Yn=(typeof yt=="function"?yt(Ve):yt)?En((typeof bn=="function"?bn(Ve):bn)||t.createElement(Nn.Z,null),()=>pn(Ve),s,ve.removeFile,!0):null,or=(typeof kt=="function"?kt(Ve):kt)&&Kn==="done"?En((typeof ln=="function"?ln(Ve):ln)||t.createElement(kn.Z,null),()=>Sn(Ve),s,ve.downloadFile):null,br=Ht!=="picture-card"&&Ht!=="picture-circle"&&t.createElement("span",{key:"download-delete",className:g()(`${s}-list-item-actions`,{picture:Ht==="picture"})},or,Yn),Tr=typeof gn=="function"?gn(Ve):gn,Mn=Tr&&t.createElement("span",{className:`${s}-list-item-extra`},Tr),Gn=g()(`${s}-list-item-name`),On=Ve.url?t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Gn,title:Ve.name},Nr,{href:Ve.url,onClick:Qn=>qt(Ve,Qn)}),Ve.name,Mn):t.createElement("span",{key:"view",className:Gn,onClick:Qn=>qt(Ve,Qn),title:Ve.name},Ve.name,Mn),Gt=(typeof ft=="function"?ft(Ve):ft)&&(Ve.url||Ve.thumbUrl)?t.createElement("a",{href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Qn=>qt(Ve,Qn),title:ve.previewFile},typeof Jt=="function"?Jt(Ve):Jt||t.createElement($n.Z,null)):null,nn=(Ht==="picture-card"||Ht==="picture-circle")&&Kn!=="uploading"&&t.createElement("span",{className:`${s}-list-item-actions`},Gt,Kn==="done"&&or,Yn),{getPrefixCls:un}=t.useContext(_t.E_),rn=un(),An=t.createElement("div",{className:Bn},gr,On,br,nn,Un&&t.createElement(oe.default,{motionName:`${rn}-fade`,visible:Kn==="uploading",motionDeadline:2e3},Qn=>{let{className:xr}=Qn;const Mr="percent"in Ve?t.createElement(nr.Z,Object.assign({},on,{type:"line",percent:Ve.percent,"aria-label":Ve["aria-label"],"aria-labelledby":Ve["aria-labelledby"]})):null;return t.createElement("div",{className:g()(`${s}-list-item-progress`,xr)},Mr)})),Hn=Ve.response&&typeof Ve.response=="string"?Ve.response:((zn=Ve.error)===null||zn===void 0?void 0:zn.statusText)||((Pn=Ve.error)===null||Pn===void 0?void 0:Pn.message)||ve.uploadError,tr=Kn==="error"?t.createElement(dr.Z,{title:Hn,getPopupContainer:Qn=>Qn.parentNode},An):An;return t.createElement("div",{className:g()(`${s}-list-item-container`,Je),style:Pe,ref:Z},tt?tt(tr,Ve,an,{download:Sn.bind(null,Ve),preview:qt.bind(null,Ve),remove:pn.bind(null,Ve)}):tr)});const Rn=(_,Z)=>{const{listType:s="text",previewFile:Je=xn,onPreview:Pe,onDownload:ve,onRemove:Ht,locale:Ve,iconRender:an,isImageUrl:on=tn,prefixCls:Q,items:En=[],showPreviewIcon:tt=!0,showRemoveIcon:Ie=!0,showDownloadIcon:ft=!1,removeIcon:yt,previewIcon:kt,downloadIcon:Jt,extra:bn,progress:ln={size:[-1,2],showInfo:!1},appendAction:gn,appendActionVisible:qt=!0,itemRender:Sn,disabled:pn}=_,zn=(0,Ue.Z)(),[Pn,Vn]=t.useState(!1),Kn=["picture-card","picture-circle"].includes(s);t.useEffect(()=>{s.startsWith("picture")&&(En||[]).forEach(Mn=>{!(Mn.originFileObj instanceof File||Mn.originFileObj instanceof Blob)||Mn.thumbUrl!==void 0||(Mn.thumbUrl="",Je==null||Je(Mn.originFileObj).then(Gn=>{Mn.thumbUrl=Gn||"",zn()}))})},[s,En,Je]),t.useEffect(()=>{Vn(!0)},[]);const pr=(Mn,Gn)=>{if(Pe)return Gn==null||Gn.preventDefault(),Pe(Mn)},Un=Mn=>{typeof ve=="function"?ve(Mn):Mn.url&&window.open(Mn.url)},er=Mn=>{Ht==null||Ht(Mn)},_n=Mn=>{if(an)return an(Mn,s);const Gn=Mn.status==="uploading";if(s.startsWith("picture")){const On=s==="picture"?t.createElement(be.Z,null):Ve.uploading,Gt=on!=null&&on(Mn)?t.createElement(rt,null):t.createElement(F,null);return Gn?On:Gt}return Gn?t.createElement(be.Z,null):t.createElement(Dt,null)},gr=(Mn,Gn,On,Gt,nn)=>{const un={type:"text",size:"small",title:Gt,onClick:rn=>{var An,Hn;Gn(),t.isValidElement(Mn)&&((Hn=(An=Mn.props).onClick)===null||Hn===void 0||Hn.call(An,rn))},className:`${On}-list-item-action`};return nn&&(un.disabled=pn),t.isValidElement(Mn)?t.createElement(Vt.ZP,Object.assign({},un,{icon:(0,Ct.Tm)(Mn,Object.assign(Object.assign({},Mn.props),{onClick:()=>{}}))})):t.createElement(Vt.ZP,Object.assign({},un),t.createElement("span",null,Mn))};t.useImperativeHandle(Z,()=>({handlePreview:pr,handleDownload:Un}));const{getPrefixCls:Bn}=t.useContext(_t.E_),Nr=Bn("upload",Q),Yn=Bn(),or=g()(`${Nr}-list`,`${Nr}-list-${s}`),br=t.useMemo(()=>(0,Ae.Z)((0,ae.Z)(Yn),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Yn]),Tr=Object.assign(Object.assign({},Kn?{}:br),{motionDeadline:2e3,motionName:`${Nr}-${Kn?"animate-inline":"animate"}`,keys:(0,u.Z)(En.map(Mn=>({key:Mn.uid,file:Mn}))),motionAppear:Pn});return t.createElement("div",{className:or},t.createElement(oe.CSSMotionList,Object.assign({},Tr,{component:!1}),Mn=>{let{key:Gn,file:On,className:Gt,style:nn}=Mn;return t.createElement(mr,{key:Gn,locale:Ve,prefixCls:Nr,className:Gt,style:nn,file:On,items:En,progress:ln,listType:s,isImgUrl:on,showPreviewIcon:tt,showRemoveIcon:Ie,showDownloadIcon:ft,removeIcon:yt,previewIcon:kt,downloadIcon:Jt,extra:bn,iconRender:_n,actionIconRender:gr,itemRender:Sn,onPreview:pr,onDownload:Un,onClose:er})}),gn&&t.createElement(oe.default,Object.assign({},Tr,{visible:qt,forceRender:!0}),Mn=>{let{className:Gn,style:On}=Mn;return(0,Ct.Tm)(gn,Gt=>({className:g()(Gt.className,Gn),style:Object.assign(Object.assign(Object.assign({},On),{pointerEvents:Gn?"none":void 0}),Gt.style)}))}))};var Rr=t.forwardRef(Rn),Cr=function(_,Z,s,Je){function Pe(ve){return ve instanceof s?ve:new s(function(Ht){Ht(ve)})}return new(s||(s=Promise))(function(ve,Ht){function Ve(Q){try{on(Je.next(Q))}catch(En){Ht(En)}}function an(Q){try{on(Je.throw(Q))}catch(En){Ht(En)}}function on(Q){Q.done?ve(Q.value):Pe(Q.value).then(Ve,an)}on((Je=Je.apply(_,Z||[])).next())})};const fr=`__LIST_IGNORE_${Date.now()}__`,hr=(_,Z)=>{const{fileList:s,defaultFileList:Je,onRemove:Pe,showUploadList:ve=!0,listType:Ht="text",onPreview:Ve,onDownload:an,onChange:on,onDrop:Q,previewFile:En,disabled:tt,locale:Ie,iconRender:ft,isImageUrl:yt,progress:kt,prefixCls:Jt,className:bn,type:ln="select",children:gn,style:qt,itemRender:Sn,maxCount:pn,data:zn={},multiple:Pn=!1,hasControlInside:Vn=!0,action:Kn="",accept:pr="",supportServerRender:Un=!0,rootClassName:er}=_,_n=t.useContext(zt.Z),gr=tt!=null?tt:_n,[Bn,Nr]=(0,gt.Z)(Je||[],{value:s,postState:hn=>hn!=null?hn:[]}),[Yn,or]=t.useState("drop"),br=t.useRef(null),Tr=t.useRef(null);t.useMemo(()=>{const hn=Date.now();(s||[]).forEach((Rt,Wn)=>{!Rt.uid&&!Object.isFrozen(Rt)&&(Rt.uid=`__AUTO__${hn}_${Wn}__`)})},[s]);const Mn=(hn,Rt,Wn)=>{let ir=(0,u.Z)(Rt),wn=!1;pn===1?ir=ir.slice(-1):pn&&(wn=ir.length>pn,ir=ir.slice(0,pn)),(0,o.flushSync)(()=>{Nr(ir)});const Pr={file:hn,fileList:ir};Wn&&(Pr.event=Wn),(!wn||hn.status==="removed"||ir.some(Fr=>Fr.uid===hn.uid))&&(0,o.flushSync)(()=>{on==null||on(Pr)})},Gn=(hn,Rt)=>Cr(void 0,void 0,void 0,function*(){const{beforeUpload:Wn,transformFile:ir}=_;let wn=hn;if(Wn){const Pr=yield Wn(hn,Rt);if(Pr===!1)return!1;if(delete hn[fr],Pr===fr)return Object.defineProperty(hn,fr,{value:!0,configurable:!0}),!1;typeof Pr=="object"&&Pr&&(wn=Pr)}return ir&&(wn=yield ir(wn)),wn}),On=hn=>{const Rt=hn.filter(wn=>!wn.file[fr]);if(!Rt.length)return;const Wn=Rt.map(wn=>Kt(wn.file));let ir=(0,u.Z)(Bn);Wn.forEach(wn=>{ir=mn(wn,ir)}),Wn.forEach((wn,Pr)=>{let Fr=wn;if(Rt[Pr].parsedFile)wn.status="uploading";else{const{originFileObj:Dr}=wn;let Gr;try{Gr=new File([Dr],Dr.name,{type:Dr.type})}catch(Zr){Gr=new Blob([Dr],{type:Dr.type}),Gr.name=Dr.name,Gr.lastModifiedDate=new Date,Gr.lastModified=new Date().getTime()}Gr.uid=wn.uid,Fr=Gr}Mn(Fr,ir)})},Gt=(hn,Rt,Wn)=>{try{typeof hn=="string"&&(hn=JSON.parse(hn))}catch(Pr){}if(!Qt(Rt,Bn))return;const ir=Kt(Rt);ir.status="done",ir.percent=100,ir.response=hn,ir.xhr=Wn;const wn=mn(ir,Bn);Mn(ir,wn)},nn=(hn,Rt)=>{if(!Qt(Rt,Bn))return;const Wn=Kt(Rt);Wn.status="uploading",Wn.percent=hn.percent;const ir=mn(Wn,Bn);Mn(Wn,ir,hn)},un=(hn,Rt,Wn)=>{if(!Qt(Wn,Bn))return;const ir=Kt(Wn);ir.error=hn,ir.response=Rt,ir.status="error";const wn=mn(ir,Bn);Mn(ir,wn)},rn=hn=>{let Rt;Promise.resolve(typeof Pe=="function"?Pe(hn):Pe).then(Wn=>{var ir;if(Wn===!1)return;const wn=sn(hn,Bn);wn&&(Rt=Object.assign(Object.assign({},hn),{status:"removed"}),Bn==null||Bn.forEach(Pr=>{const Fr=Rt.uid!==void 0?"uid":"name";Pr[Fr]===Rt[Fr]&&!Object.isFrozen(Pr)&&(Pr.status="removed")}),(ir=br.current)===null||ir===void 0||ir.abort(Rt),Mn(Rt,wn))})},An=hn=>{or(hn.type),hn.type==="drop"&&(Q==null||Q(hn))};t.useImperativeHandle(Z,()=>({onBatchStart:On,onSuccess:Gt,onProgress:nn,onError:un,fileList:Bn,upload:br.current,nativeElement:Tr.current}));const{getPrefixCls:Hn,direction:tr,upload:Qn}=t.useContext(_t.E_),xr=Hn("upload",Jt),Mr=Object.assign(Object.assign({onBatchStart:On,onError:un,onProgress:nn,onSuccess:Gt},_),{data:zn,multiple:Pn,action:Kn,accept:pr,supportServerRender:Un,prefixCls:xr,disabled:gr,beforeUpload:Gn,onChange:void 0,hasControlInside:Vn});delete Mr.className,delete Mr.style,(!gn||gr)&&delete Mr.id;const ta=`${xr}-wrapper`,[aa,Hr,ma]=ie(xr,ta),[ra]=(0,w.Z)("Upload",je.Z.Upload),{showRemoveIcon:Jr,showPreviewIcon:zr,showDownloadIcon:qr,removeIcon:I,previewIcon:xe,downloadIcon:G,extra:et}=typeof ve=="boolean"?{}:ve,bt=typeof Jr=="undefined"?!gr:Jr,It=(hn,Rt)=>ve?t.createElement(Rr,{prefixCls:xr,listType:Ht,items:Bn,previewFile:En,onPreview:Ve,onDownload:an,onRemove:rn,showRemoveIcon:bt,showPreviewIcon:zr,showDownloadIcon:qr,removeIcon:I,previewIcon:xe,downloadIcon:G,iconRender:ft,extra:et,locale:Object.assign(Object.assign({},ra),Ie),isImageUrl:yt,progress:kt,appendAction:hn,appendActionVisible:Rt,itemRender:Sn,disabled:gr}):hn,Se=g()(ta,bn,er,Hr,ma,Qn==null?void 0:Qn.className,{[`${xr}-rtl`]:tr==="rtl",[`${xr}-picture-card-wrapper`]:Ht==="picture-card",[`${xr}-picture-circle-wrapper`]:Ht==="picture-circle"}),lt=Object.assign(Object.assign({},Qn==null?void 0:Qn.style),qt);if(ln==="drag"){const hn=g()(Hr,xr,`${xr}-drag`,{[`${xr}-drag-uploading`]:Bn.some(Rt=>Rt.status==="uploading"),[`${xr}-drag-hover`]:Yn==="dragover",[`${xr}-disabled`]:gr,[`${xr}-rtl`]:tr==="rtl"});return aa(t.createElement("span",{className:Se,ref:Tr},t.createElement("div",{className:hn,style:lt,onDrop:An,onDragOver:An,onDragLeave:An},t.createElement(Me,Object.assign({},Mr,{ref:br,className:`${xr}-btn`}),t.createElement("div",{className:`${xr}-drag-container`},gn))),It()))}const k=g()(xr,`${xr}-select`,{[`${xr}-disabled`]:gr,[`${xr}-hidden`]:!gn}),Ft=t.createElement("div",{className:k},t.createElement(Me,Object.assign({},Mr,{ref:br})));return aa(Ht==="picture-card"||Ht==="picture-circle"?t.createElement("span",{className:Se,ref:Tr},It(Ft,!!gn)):t.createElement("span",{className:Se,ref:Tr},Ft,It()))};var ze=t.forwardRef(hr),Ze=function(_,Z){var s={};for(var Je in _)Object.prototype.hasOwnProperty.call(_,Je)&&Z.indexOf(Je)<0&&(s[Je]=_[Je]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Je=Object.getOwnPropertySymbols(_);Pe{var{style:s,height:Je,hasControlInside:Pe=!1}=_,ve=Ze(_,["style","height","hasControlInside"]);return t.createElement(ze,Object.assign({ref:Z,hasControlInside:Pe},ve,{type:"drag",style:Object.assign(Object.assign({},s),{height:Je})}))});const ue=ze;ue.Dragger=Re,ue.LIST_IGNORE=fr;var Xe=ue},58951:function(p,a){"use strict";var e;a.Q=l,e=g;var t=",",u=" ",o="";function l(d){for(var b=[],y=String(d||o),S=y.indexOf(t),m=0,P=!1,R;!P;)S===-1&&(S=y.length,P=!0),R=y.slice(m,S).trim(),(R||!P)&&b.push(R),m=S+1,S=y.indexOf(t,m);return b}function g(d,b){var y=b||{},S=y.padLeft===!1?o:u,m=y.padRight?u:o;return d[d.length-1]===o&&(d=d.concat(o)),d.join(m+t+S).trim()}},86204:function(p){"use strict";var a=typeof Reflect=="object"?Reflect:null,e=a&&typeof a.apply=="function"?a.apply:function(W,A,N){return Function.prototype.apply.call(W,A,N)},t;a&&typeof a.ownKeys=="function"?t=a.ownKeys:Object.getOwnPropertySymbols?t=function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:t=function(W){return Object.getOwnPropertyNames(W)};function u(L){console&&console.warn&&console.warn(L)}var o=Number.isNaN||function(W){return W!==W};function l(){l.init.call(this)}p.exports=l,p.exports.once=se,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var g=10;function d(L){if(typeof L!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof L)}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return g},set:function(L){if(typeof L!="number"||L<0||o(L))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+L+".");g=L}}),l.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(W){if(typeof W!="number"||W<0||o(W))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+W+".");return this._maxListeners=W,this};function b(L){return L._maxListeners===void 0?l.defaultMaxListeners:L._maxListeners}l.prototype.getMaxListeners=function(){return b(this)},l.prototype.emit=function(W){for(var A=[],N=1;N0&&(ee=A[0]),ee instanceof Error)throw ee;var J=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw J.context=ee,J}var Le=U[W];if(Le===void 0)return!1;if(typeof Le=="function")e(Le,this,A);else for(var Y=Le.length,H=pe(Le,Y),N=0;N0&&ee.length>M&&!ee.warned){ee.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+ee.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=L,J.type=W,J.count=ee.length,u(J)}return L}l.prototype.addListener=function(W,A){return y(this,W,A,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(W,A){return y(this,W,A,!0)};function S(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(L,W,A){var N={fired:!1,wrapFn:void 0,target:L,type:W,listener:A},M=S.bind(N);return M.listener=A,N.wrapFn=M,M}l.prototype.once=function(W,A){return d(A),this.on(W,m(this,W,A)),this},l.prototype.prependOnceListener=function(W,A){return d(A),this.prependListener(W,m(this,W,A)),this},l.prototype.removeListener=function(W,A){var N,M,U,ee,J;if(d(A),M=this._events,M===void 0)return this;if(N=M[W],N===void 0)return this;if(N===A||N.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete M[W],M.removeListener&&this.emit("removeListener",W,N.listener||A));else if(typeof N!="function"){for(U=-1,ee=N.length-1;ee>=0;ee--)if(N[ee]===A||N[ee].listener===A){J=N[ee].listener,U=ee;break}if(U<0)return this;U===0?N.shift():le(N,U),N.length===1&&(M[W]=N[0]),M.removeListener!==void 0&&this.emit("removeListener",W,J||A)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(W){var A,N,M;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[W]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[W]),this;if(arguments.length===0){var U=Object.keys(N),ee;for(M=0;M=0;M--)this.removeListener(W,A[M]);return this};function P(L,W,A){var N=L._events;if(N===void 0)return[];var M=N[W];return M===void 0?[]:typeof M=="function"?A?[M.listener||M]:[M]:A?ge(M):pe(M,M.length)}l.prototype.listeners=function(W){return P(this,W,!0)},l.prototype.rawListeners=function(W){return P(this,W,!1)},l.listenerCount=function(L,W){return typeof L.listenerCount=="function"?L.listenerCount(W):R.call(L,W)},l.prototype.listenerCount=R;function R(L){var W=this._events;if(W!==void 0){var A=W[L];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function pe(L,W){for(var A=new Array(W),N=0;N{const{componentCls:Z}=_;return{[`${Z}-rtl`]:{direction:"rtl"}}};const ne=_=>{const{componentCls:Z,colorTextDisabled:s}=_;return{[`${Z}-wrapper`]:Object.assign(Object.assign({},(0,st.Wf)(_)),{[Z]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Z}-select`]:{display:"inline-block"},[`${Z}-hidden`]:{display:"none"},[`${Z}-disabled`]:{color:s,cursor:"not-allowed"}})}},_e=_=>({actionsColor:_.colorTextDescription});var ie=(0,qe.I$)("Upload",_=>{const{fontSizeHeading3:Z,fontHeight:s,lineWidth:Je,controlHeightLG:Pe,calc:ve}=_,Ht=(0,Ke.mergeToken)(_,{uploadThumbnailSize:ve(Z).mul(2).equal(),uploadProgressOffset:ve(ve(s).div(2)).add(Je).equal(),uploadPicCardSize:ve(Pe).mul(2.55).equal()});return[ne(Ht),Pt(Ht),we(Ht),ct(Ht),cn(Ht),Et(Ht),O(Ht),(0,q.Z)(Ht)]},_e),re={icon:function(Z,s){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:s}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Z}}]}},name:"file",theme:"twotone"},me=re,he=e(7657),Oe=function(Z,s){return t.createElement(he.Z,(0,d.Z)({},Z,{ref:s,icon:me}))},D=t.forwardRef(Oe),F=D,be=e(58617),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ht=We,dt=function(Z,s){return t.createElement(he.Z,(0,d.Z)({},Z,{ref:s,icon:ht}))},Lt=t.forwardRef(dt),Dt=Lt,ut={icon:function(Z,s){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Z}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:s}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:s}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:s}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Z}}]}},name:"picture",theme:"twotone"},v=ut,Ne=function(Z,s){return t.createElement(he.Z,(0,d.Z)({},Z,{ref:s,icon:v}))},Ge=t.forwardRef(Ne),rt=Ge,oe=e(77900),Ae=e(2738),Ue=e(40192),ae=e(86641),Ct=e(22703),Vt=e(7939);function Kt(_){return Object.assign(Object.assign({},_),{lastModified:_.lastModified,lastModifiedDate:_.lastModifiedDate,name:_.name,size:_.size,type:_.type,uid:_.uid,percent:0,originFileObj:_})}function mn(_,Z){const s=(0,u.Z)(Z),Je=s.findIndex(Pe=>{let{uid:ve}=Pe;return ve===_.uid});return Je===-1?s.push(_):s[Je]=_,s}function Qt(_,Z){const s=_.uid!==void 0?"uid":"name";return Z.filter(Je=>Je[s]===_[s])[0]}function sn(_,Z){const s=_.uid!==void 0?"uid":"name",Je=Z.filter(Pe=>Pe[s]!==_[s]);return Je.length===Z.length?null:Je}const Nt=function(){const Z=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Je=Z[Z.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Je)||[""])[0]},Xt=_=>_.indexOf("image/")===0,tn=_=>{if(_.type&&!_.thumbUrl)return Xt(_.type);const Z=_.thumbUrl||_.url||"",s=Nt(Z);return/^data:image\//.test(Z)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(s)?!0:!(/^data:/.test(Z)||s)},fn=200;function xn(_){return new Promise(Z=>{if(!_.type||!Xt(_.type)){Z("");return}const s=document.createElement("canvas");s.width=fn,s.height=fn,s.style.cssText=`position: fixed; left: 0; top: 0; width: ${fn}px; height: ${fn}px; z-index: 9999; display: none;`,document.body.appendChild(s);const Je=s.getContext("2d"),Pe=new Image;if(Pe.onload=()=>{const{width:ve,height:Ht}=Pe;let Ve=fn,an=fn,on=0,Q=0;ve>Ht?(an=Ht*(fn/ve),Q=-(an-Ve)/2):(Ve=ve*(fn/Ht),on=-(Ve-an)/2),Je.drawImage(Pe,on,Q,Ve,an);const En=s.toDataURL();document.body.removeChild(s),window.URL.revokeObjectURL(Pe.src),Z(En)},Pe.crossOrigin="anonymous",_.type.startsWith("image/svg+xml")){const ve=new FileReader;ve.onload=()=>{ve.result&&typeof ve.result=="string"&&(Pe.src=ve.result)},ve.readAsDataURL(_)}else if(_.type.startsWith("image/gif")){const ve=new FileReader;ve.onload=()=>{ve.result&&Z(ve.result)},ve.readAsDataURL(_)}else Pe.src=window.URL.createObjectURL(_)})}var Nn=e(26227),kn=e(41464),$n=e(15277),nr=e(89787),dr=e(25399),mr=t.forwardRef((_,Z)=>{let{prefixCls:s,className:Je,style:Pe,locale:ve,listType:Ht,file:Ve,items:an,progress:on,iconRender:Q,actionIconRender:En,itemRender:tt,isImgUrl:Ie,showPreviewIcon:ft,showRemoveIcon:yt,showDownloadIcon:kt,previewIcon:Jt,removeIcon:bn,downloadIcon:ln,extra:gn,onPreview:qt,onDownload:Sn,onClose:pn}=_;var zn,Pn;const{status:Vn}=Ve,[Kn,pr]=t.useState(Vn);t.useEffect(()=>{Vn!=="removed"&&pr(Vn)},[Vn]);const[Un,er]=t.useState(!1);t.useEffect(()=>{const Qn=setTimeout(()=>{er(!0)},300);return()=>{clearTimeout(Qn)}},[]);const _n=Q(Ve);let gr=t.createElement("div",{className:`${s}-icon`},_n);if(Ht==="picture"||Ht==="picture-card"||Ht==="picture-circle")if(Kn==="uploading"||!Ve.thumbUrl&&!Ve.url){const Qn=g()(`${s}-list-item-thumbnail`,{[`${s}-list-item-file`]:Kn!=="uploading"});gr=t.createElement("div",{className:Qn},_n)}else{const Qn=Ie!=null&&Ie(Ve)?t.createElement("img",{src:Ve.thumbUrl||Ve.url,alt:Ve.name,className:`${s}-list-item-image`,crossOrigin:Ve.crossOrigin}):_n,xr=g()(`${s}-list-item-thumbnail`,{[`${s}-list-item-file`]:Ie&&!Ie(Ve)});gr=t.createElement("a",{className:xr,onClick:Mr=>qt(Ve,Mr),href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qn)}const Bn=g()(`${s}-list-item`,`${s}-list-item-${Kn}`),Nr=typeof Ve.linkProps=="string"?JSON.parse(Ve.linkProps):Ve.linkProps,Yn=(typeof yt=="function"?yt(Ve):yt)?En((typeof bn=="function"?bn(Ve):bn)||t.createElement(Nn.Z,null),()=>pn(Ve),s,ve.removeFile,!0):null,or=(typeof kt=="function"?kt(Ve):kt)&&Kn==="done"?En((typeof ln=="function"?ln(Ve):ln)||t.createElement(kn.Z,null),()=>Sn(Ve),s,ve.downloadFile):null,br=Ht!=="picture-card"&&Ht!=="picture-circle"&&t.createElement("span",{key:"download-delete",className:g()(`${s}-list-item-actions`,{picture:Ht==="picture"})},or,Yn),Tr=typeof gn=="function"?gn(Ve):gn,Mn=Tr&&t.createElement("span",{className:`${s}-list-item-extra`},Tr),Gn=g()(`${s}-list-item-name`),On=Ve.url?t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Gn,title:Ve.name},Nr,{href:Ve.url,onClick:Qn=>qt(Ve,Qn)}),Ve.name,Mn):t.createElement("span",{key:"view",className:Gn,onClick:Qn=>qt(Ve,Qn),title:Ve.name},Ve.name,Mn),Gt=(typeof ft=="function"?ft(Ve):ft)&&(Ve.url||Ve.thumbUrl)?t.createElement("a",{href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Qn=>qt(Ve,Qn),title:ve.previewFile},typeof Jt=="function"?Jt(Ve):Jt||t.createElement($n.Z,null)):null,nn=(Ht==="picture-card"||Ht==="picture-circle")&&Kn!=="uploading"&&t.createElement("span",{className:`${s}-list-item-actions`},Gt,Kn==="done"&&or,Yn),{getPrefixCls:un}=t.useContext(_t.E_),rn=un(),An=t.createElement("div",{className:Bn},gr,On,br,nn,Un&&t.createElement(oe.default,{motionName:`${rn}-fade`,visible:Kn==="uploading",motionDeadline:2e3},Qn=>{let{className:xr}=Qn;const Mr="percent"in Ve?t.createElement(nr.Z,Object.assign({},on,{type:"line",percent:Ve.percent,"aria-label":Ve["aria-label"],"aria-labelledby":Ve["aria-labelledby"]})):null;return t.createElement("div",{className:g()(`${s}-list-item-progress`,xr)},Mr)})),Hn=Ve.response&&typeof Ve.response=="string"?Ve.response:((zn=Ve.error)===null||zn===void 0?void 0:zn.statusText)||((Pn=Ve.error)===null||Pn===void 0?void 0:Pn.message)||ve.uploadError,tr=Kn==="error"?t.createElement(dr.Z,{title:Hn,getPopupContainer:Qn=>Qn.parentNode},An):An;return t.createElement("div",{className:g()(`${s}-list-item-container`,Je),style:Pe,ref:Z},tt?tt(tr,Ve,an,{download:Sn.bind(null,Ve),preview:qt.bind(null,Ve),remove:pn.bind(null,Ve)}):tr)});const Rn=(_,Z)=>{const{listType:s="text",previewFile:Je=xn,onPreview:Pe,onDownload:ve,onRemove:Ht,locale:Ve,iconRender:an,isImageUrl:on=tn,prefixCls:Q,items:En=[],showPreviewIcon:tt=!0,showRemoveIcon:Ie=!0,showDownloadIcon:ft=!1,removeIcon:yt,previewIcon:kt,downloadIcon:Jt,extra:bn,progress:ln={size:[-1,2],showInfo:!1},appendAction:gn,appendActionVisible:qt=!0,itemRender:Sn,disabled:pn}=_,zn=(0,Ue.Z)(),[Pn,Vn]=t.useState(!1),Kn=["picture-card","picture-circle"].includes(s);t.useEffect(()=>{s.startsWith("picture")&&(En||[]).forEach(Mn=>{!(Mn.originFileObj instanceof File||Mn.originFileObj instanceof Blob)||Mn.thumbUrl!==void 0||(Mn.thumbUrl="",Je==null||Je(Mn.originFileObj).then(Gn=>{Mn.thumbUrl=Gn||"",zn()}))})},[s,En,Je]),t.useEffect(()=>{Vn(!0)},[]);const pr=(Mn,Gn)=>{if(Pe)return Gn==null||Gn.preventDefault(),Pe(Mn)},Un=Mn=>{typeof ve=="function"?ve(Mn):Mn.url&&window.open(Mn.url)},er=Mn=>{Ht==null||Ht(Mn)},_n=Mn=>{if(an)return an(Mn,s);const Gn=Mn.status==="uploading";if(s.startsWith("picture")){const On=s==="picture"?t.createElement(be.Z,null):Ve.uploading,Gt=on!=null&&on(Mn)?t.createElement(rt,null):t.createElement(F,null);return Gn?On:Gt}return Gn?t.createElement(be.Z,null):t.createElement(Dt,null)},gr=(Mn,Gn,On,Gt,nn)=>{const un={type:"text",size:"small",title:Gt,onClick:rn=>{var An,Hn;Gn(),t.isValidElement(Mn)&&((Hn=(An=Mn.props).onClick)===null||Hn===void 0||Hn.call(An,rn))},className:`${On}-list-item-action`};return nn&&(un.disabled=pn),t.isValidElement(Mn)?t.createElement(Vt.ZP,Object.assign({},un,{icon:(0,Ct.Tm)(Mn,Object.assign(Object.assign({},Mn.props),{onClick:()=>{}}))})):t.createElement(Vt.ZP,Object.assign({},un),t.createElement("span",null,Mn))};t.useImperativeHandle(Z,()=>({handlePreview:pr,handleDownload:Un}));const{getPrefixCls:Bn}=t.useContext(_t.E_),Nr=Bn("upload",Q),Yn=Bn(),or=g()(`${Nr}-list`,`${Nr}-list-${s}`),br=t.useMemo(()=>(0,Ae.Z)((0,ae.Z)(Yn),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Yn]),Tr=Object.assign(Object.assign({},Kn?{}:br),{motionDeadline:2e3,motionName:`${Nr}-${Kn?"animate-inline":"animate"}`,keys:(0,u.Z)(En.map(Mn=>({key:Mn.uid,file:Mn}))),motionAppear:Pn});return t.createElement("div",{className:or},t.createElement(oe.CSSMotionList,Object.assign({},Tr,{component:!1}),Mn=>{let{key:Gn,file:On,className:Gt,style:nn}=Mn;return t.createElement(mr,{key:Gn,locale:Ve,prefixCls:Nr,className:Gt,style:nn,file:On,items:En,progress:ln,listType:s,isImgUrl:on,showPreviewIcon:tt,showRemoveIcon:Ie,showDownloadIcon:ft,removeIcon:yt,previewIcon:kt,downloadIcon:Jt,extra:bn,iconRender:_n,actionIconRender:gr,itemRender:Sn,onPreview:pr,onDownload:Un,onClose:er})}),gn&&t.createElement(oe.default,Object.assign({},Tr,{visible:qt,forceRender:!0}),Mn=>{let{className:Gn,style:On}=Mn;return(0,Ct.Tm)(gn,Gt=>({className:g()(Gt.className,Gn),style:Object.assign(Object.assign(Object.assign({},On),{pointerEvents:Gn?"none":void 0}),Gt.style)}))}))};var Rr=t.forwardRef(Rn),Cr=function(_,Z,s,Je){function Pe(ve){return ve instanceof s?ve:new s(function(Ht){Ht(ve)})}return new(s||(s=Promise))(function(ve,Ht){function Ve(Q){try{on(Je.next(Q))}catch(En){Ht(En)}}function an(Q){try{on(Je.throw(Q))}catch(En){Ht(En)}}function on(Q){Q.done?ve(Q.value):Pe(Q.value).then(Ve,an)}on((Je=Je.apply(_,Z||[])).next())})};const fr=`__LIST_IGNORE_${Date.now()}__`,hr=(_,Z)=>{const{fileList:s,defaultFileList:Je,onRemove:Pe,showUploadList:ve=!0,listType:Ht="text",onPreview:Ve,onDownload:an,onChange:on,onDrop:Q,previewFile:En,disabled:tt,locale:Ie,iconRender:ft,isImageUrl:yt,progress:kt,prefixCls:Jt,className:bn,type:ln="select",children:gn,style:qt,itemRender:Sn,maxCount:pn,data:zn={},multiple:Pn=!1,hasControlInside:Vn=!0,action:Kn="",accept:pr="",supportServerRender:Un=!0,rootClassName:er}=_,_n=t.useContext(zt.Z),gr=tt!=null?tt:_n,[Bn,Nr]=(0,gt.Z)(Je||[],{value:s,postState:hn=>hn!=null?hn:[]}),[Yn,or]=t.useState("drop"),br=t.useRef(null),Tr=t.useRef(null);t.useMemo(()=>{const hn=Date.now();(s||[]).forEach((Rt,Wn)=>{!Rt.uid&&!Object.isFrozen(Rt)&&(Rt.uid=`__AUTO__${hn}_${Wn}__`)})},[s]);const Mn=(hn,Rt,Wn)=>{let ir=(0,u.Z)(Rt),wn=!1;pn===1?ir=ir.slice(-1):pn&&(wn=ir.length>pn,ir=ir.slice(0,pn)),(0,o.flushSync)(()=>{Nr(ir)});const Pr={file:hn,fileList:ir};Wn&&(Pr.event=Wn),(!wn||hn.status==="removed"||ir.some(Fr=>Fr.uid===hn.uid))&&(0,o.flushSync)(()=>{on==null||on(Pr)})},Gn=(hn,Rt)=>Cr(void 0,void 0,void 0,function*(){const{beforeUpload:Wn,transformFile:ir}=_;let wn=hn;if(Wn){const Pr=yield Wn(hn,Rt);if(Pr===!1)return!1;if(delete hn[fr],Pr===fr)return Object.defineProperty(hn,fr,{value:!0,configurable:!0}),!1;typeof Pr=="object"&&Pr&&(wn=Pr)}return ir&&(wn=yield ir(wn)),wn}),On=hn=>{const Rt=hn.filter(wn=>!wn.file[fr]);if(!Rt.length)return;const Wn=Rt.map(wn=>Kt(wn.file));let ir=(0,u.Z)(Bn);Wn.forEach(wn=>{ir=mn(wn,ir)}),Wn.forEach((wn,Pr)=>{let Fr=wn;if(Rt[Pr].parsedFile)wn.status="uploading";else{const{originFileObj:Dr}=wn;let Gr;try{Gr=new File([Dr],Dr.name,{type:Dr.type})}catch(Zr){Gr=new Blob([Dr],{type:Dr.type}),Gr.name=Dr.name,Gr.lastModifiedDate=new Date,Gr.lastModified=new Date().getTime()}Gr.uid=wn.uid,Fr=Gr}Mn(Fr,ir)})},Gt=(hn,Rt,Wn)=>{try{typeof hn=="string"&&(hn=JSON.parse(hn))}catch(Pr){}if(!Qt(Rt,Bn))return;const ir=Kt(Rt);ir.status="done",ir.percent=100,ir.response=hn,ir.xhr=Wn;const wn=mn(ir,Bn);Mn(ir,wn)},nn=(hn,Rt)=>{if(!Qt(Rt,Bn))return;const Wn=Kt(Rt);Wn.status="uploading",Wn.percent=hn.percent;const ir=mn(Wn,Bn);Mn(Wn,ir,hn)},un=(hn,Rt,Wn)=>{if(!Qt(Wn,Bn))return;const ir=Kt(Wn);ir.error=hn,ir.response=Rt,ir.status="error";const wn=mn(ir,Bn);Mn(ir,wn)},rn=hn=>{let Rt;Promise.resolve(typeof Pe=="function"?Pe(hn):Pe).then(Wn=>{var ir;if(Wn===!1)return;const wn=sn(hn,Bn);wn&&(Rt=Object.assign(Object.assign({},hn),{status:"removed"}),Bn==null||Bn.forEach(Pr=>{const Fr=Rt.uid!==void 0?"uid":"name";Pr[Fr]===Rt[Fr]&&!Object.isFrozen(Pr)&&(Pr.status="removed")}),(ir=br.current)===null||ir===void 0||ir.abort(Rt),Mn(Rt,wn))})},An=hn=>{or(hn.type),hn.type==="drop"&&(Q==null||Q(hn))};t.useImperativeHandle(Z,()=>({onBatchStart:On,onSuccess:Gt,onProgress:nn,onError:un,fileList:Bn,upload:br.current,nativeElement:Tr.current}));const{getPrefixCls:Hn,direction:tr,upload:Qn}=t.useContext(_t.E_),xr=Hn("upload",Jt),Mr=Object.assign(Object.assign({onBatchStart:On,onError:un,onProgress:nn,onSuccess:Gt},_),{data:zn,multiple:Pn,action:Kn,accept:pr,supportServerRender:Un,prefixCls:xr,disabled:gr,beforeUpload:Gn,onChange:void 0,hasControlInside:Vn});delete Mr.className,delete Mr.style,(!gn||gr)&&delete Mr.id;const ta=`${xr}-wrapper`,[aa,Hr,ma]=ie(xr,ta),[ra]=(0,w.Z)("Upload",je.Z.Upload),{showRemoveIcon:Jr,showPreviewIcon:zr,showDownloadIcon:qr,removeIcon:I,previewIcon:xe,downloadIcon:G,extra:et}=typeof ve=="boolean"?{}:ve,bt=typeof Jr=="undefined"?!gr:Jr,It=(hn,Rt)=>ve?t.createElement(Rr,{prefixCls:xr,listType:Ht,items:Bn,previewFile:En,onPreview:Ve,onDownload:an,onRemove:rn,showRemoveIcon:bt,showPreviewIcon:zr,showDownloadIcon:qr,removeIcon:I,previewIcon:xe,downloadIcon:G,iconRender:ft,extra:et,locale:Object.assign(Object.assign({},ra),Ie),isImageUrl:yt,progress:kt,appendAction:hn,appendActionVisible:Rt,itemRender:Sn,disabled:gr}):hn,Se=g()(ta,bn,er,Hr,ma,Qn==null?void 0:Qn.className,{[`${xr}-rtl`]:tr==="rtl",[`${xr}-picture-card-wrapper`]:Ht==="picture-card",[`${xr}-picture-circle-wrapper`]:Ht==="picture-circle"}),lt=Object.assign(Object.assign({},Qn==null?void 0:Qn.style),qt);if(ln==="drag"){const hn=g()(Hr,xr,`${xr}-drag`,{[`${xr}-drag-uploading`]:Bn.some(Rt=>Rt.status==="uploading"),[`${xr}-drag-hover`]:Yn==="dragover",[`${xr}-disabled`]:gr,[`${xr}-rtl`]:tr==="rtl"});return aa(t.createElement("span",{className:Se,ref:Tr},t.createElement("div",{className:hn,style:lt,onDrop:An,onDragOver:An,onDragLeave:An},t.createElement(Me,Object.assign({},Mr,{ref:br,className:`${xr}-btn`}),t.createElement("div",{className:`${xr}-drag-container`},gn))),It()))}const k=g()(xr,`${xr}-select`,{[`${xr}-disabled`]:gr,[`${xr}-hidden`]:!gn}),Ft=t.createElement("div",{className:k},t.createElement(Me,Object.assign({},Mr,{ref:br})));return aa(Ht==="picture-card"||Ht==="picture-circle"?t.createElement("span",{className:Se,ref:Tr},It(Ft,!!gn)):t.createElement("span",{className:Se,ref:Tr},Ft,It()))};var ze=t.forwardRef(hr),Ze=function(_,Z){var s={};for(var Je in _)Object.prototype.hasOwnProperty.call(_,Je)&&Z.indexOf(Je)<0&&(s[Je]=_[Je]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Je=Object.getOwnPropertySymbols(_);Pe{var{style:s,height:Je,hasControlInside:Pe=!1}=_,ve=Ze(_,["style","height","hasControlInside"]);return t.createElement(ze,Object.assign({ref:Z,hasControlInside:Pe},ve,{type:"drag",style:Object.assign(Object.assign({},s),{height:Je})}))});const ue=ze;ue.Dragger=Re,ue.LIST_IGNORE=fr;var Xe=ue},58951:function(p,a){"use strict";var e;a.Q=l,e=g;var t=",",u=" ",o="";function l(d){for(var b=[],y=String(d||o),S=y.indexOf(t),m=0,P=!1,R;!P;)S===-1&&(S=y.length,P=!0),R=y.slice(m,S).trim(),(R||!P)&&b.push(R),m=S+1,S=y.indexOf(t,m);return b}function g(d,b){var y=b||{},S=y.padLeft===!1?o:u,m=y.padRight?u:o;return d[d.length-1]===o&&(d=d.concat(o)),d.join(m+t+S).trim()}},86204:function(p){"use strict";var a=typeof Reflect=="object"?Reflect:null,e=a&&typeof a.apply=="function"?a.apply:function(W,A,N){return Function.prototype.apply.call(W,A,N)},t;a&&typeof a.ownKeys=="function"?t=a.ownKeys:Object.getOwnPropertySymbols?t=function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:t=function(W){return Object.getOwnPropertyNames(W)};function u(L){console&&console.warn&&console.warn(L)}var o=Number.isNaN||function(W){return W!==W};function l(){l.init.call(this)}p.exports=l,p.exports.once=se,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var g=10;function d(L){if(typeof L!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof L)}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return g},set:function(L){if(typeof L!="number"||L<0||o(L))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+L+".");g=L}}),l.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(W){if(typeof W!="number"||W<0||o(W))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+W+".");return this._maxListeners=W,this};function b(L){return L._maxListeners===void 0?l.defaultMaxListeners:L._maxListeners}l.prototype.getMaxListeners=function(){return b(this)},l.prototype.emit=function(W){for(var A=[],N=1;N0&&(ee=A[0]),ee instanceof Error)throw ee;var J=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw J.context=ee,J}var Le=U[W];if(Le===void 0)return!1;if(typeof Le=="function")e(Le,this,A);else for(var Y=Le.length,H=pe(Le,Y),N=0;N0&&ee.length>M&&!ee.warned){ee.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+ee.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=L,J.type=W,J.count=ee.length,u(J)}return L}l.prototype.addListener=function(W,A){return y(this,W,A,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(W,A){return y(this,W,A,!0)};function S(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(L,W,A){var N={fired:!1,wrapFn:void 0,target:L,type:W,listener:A},M=S.bind(N);return M.listener=A,N.wrapFn=M,M}l.prototype.once=function(W,A){return d(A),this.on(W,m(this,W,A)),this},l.prototype.prependOnceListener=function(W,A){return d(A),this.prependListener(W,m(this,W,A)),this},l.prototype.removeListener=function(W,A){var N,M,U,ee,J;if(d(A),M=this._events,M===void 0)return this;if(N=M[W],N===void 0)return this;if(N===A||N.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete M[W],M.removeListener&&this.emit("removeListener",W,N.listener||A));else if(typeof N!="function"){for(U=-1,ee=N.length-1;ee>=0;ee--)if(N[ee]===A||N[ee].listener===A){J=N[ee].listener,U=ee;break}if(U<0)return this;U===0?N.shift():le(N,U),N.length===1&&(M[W]=N[0]),M.removeListener!==void 0&&this.emit("removeListener",W,J||A)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(W){var A,N,M;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[W]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[W]),this;if(arguments.length===0){var U=Object.keys(N),ee;for(M=0;M=0;M--)this.removeListener(W,A[M]);return this};function P(L,W,A){var N=L._events;if(N===void 0)return[];var M=N[W];return M===void 0?[]:typeof M=="function"?A?[M.listener||M]:[M]:A?ge(M):pe(M,M.length)}l.prototype.listeners=function(W){return P(this,W,!0)},l.prototype.rawListeners=function(W){return P(this,W,!1)},l.listenerCount=function(L,W){return typeof L.listenerCount=="function"?L.listenerCount(W):R.call(L,W)},l.prototype.listenerCount=R;function R(L){var W=this._events;if(W!==void 0){var A=W[L];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function pe(L,W){for(var A=new Array(W),N=0;N=97&&t<=122||t>=65&&t<=90}},21127:function(p,a,e){"use strict";var t=e(91241),u=e(22347);p.exports=o;function o(l){return t(l)||u(l)}},22347:function(p){"use strict";p.exports=a;function a(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}},65207:function(p){"use strict";p.exports=a;function a(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},67842:function(p){"use strict";var a,e=59;p.exports=t;function t(u){var o="&"+u+";",l;return a=a||document.createElement("i"),a.innerHTML=o,l=a.textContent,l.charCodeAt(l.length-1)===e&&u!=="semi"||l===o?!1:l}},12256:function(p,a,e){"use strict";var t=e(47854),u=e(80501),o=e(22347),l=e(65207),g=e(21127),d=e(67842);p.exports=gt;var b={}.hasOwnProperty,y=String.fromCharCode,S=Function.prototype,m={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},P=9,R=10,pe=12,le=32,ge=38,se=59,X=60,B=61,L=35,W=88,A=120,N=65533,M="named",U="hexadecimal",ee="decimal",J={};J[U]=16,J[ee]=10;var Le={};Le[M]=g,Le[ee]=o,Le[U]=l;var Y=1,H=2,de=3,ke=4,T=5,Te=6,Ce=7,Me={};Me[Y]="Named character references must be terminated by a semicolon",Me[H]="Numeric character references must be terminated by a semicolon",Me[de]="Named character references cannot be empty",Me[ke]="Numeric character references cannot be empty",Me[T]="Named character references must be known",Me[Te]="Numeric character references cannot be disallowed",Me[Ce]="Numeric character references cannot be outside the permissible Unicode range";function gt(je,st){var q={},qe,Ke;st||(st={});for(Ke in m)qe=st[Ke],q[Ke]=qe==null?m[Ke]:qe;return(q.position.indent||q.position.start)&&(q.indent=q.position.indent||[],q.position=q.position.start),_t(je,q)}function _t(je,st){var q=st.additional,qe=st.nonTerminated,Ke=st.text,xt=st.reference,Ye=st.warning,Pt=st.textContext,Mt=st.referenceContext,cn=st.warningContext,At=st.position,He=st.indent||[],Et=je.length,Qe=0,we=-1,ct=At.column||1,$e=At.line||1,O="",ne=[],_e,ie,re,me,he,Oe,D,F,be,We,ht,dt,Lt,Dt,ut,v,Ne,Ge,rt;for(typeof q=="string"&&(q=q.charCodeAt(0)),v=oe(),F=Ye?Ae:S,Qe--,Et++;++Qe65535&&(Oe-=65536,We+=y(Oe>>>10|55296),Oe=56320|Oe&1023),Oe=We+y(Oe))):Dt!==M&&F(ke,Ge)),Oe?(Ue(),v=oe(),Qe=rt-1,ct+=rt-Lt+1,ne.push(Oe),Ne=oe(),Ne.offset++,xt&&xt.call(Mt,Oe,{start:v,end:Ne},je.slice(Lt-1,rt)),v=Ne):(me=je.slice(Lt-1,rt),O+=me,ct+=me.length,Qe=rt-1)}else he===10&&($e++,we++,ct=0),he===he?(O+=y(he),ct++):Ue();return ne.join("");function oe(){return{line:$e,column:ct,offset:Qe+(At.offset||0)}}function Ae(ae,Ct){var Vt=oe();Vt.column+=Ct,Vt.offset+=Ct,Ye.call(cn,Me[ae],Vt,ae)}function Ue(){O&&(ne.push(O),Ke&&Ke.call(Pt,O,{start:v,end:oe()}),O="")}}function zt(je){return je>=55296&&je<=57343||je>1114111}function w(je){return je>=1&&je<=8||je===11||je>=13&&je<=31||je>=127&&je<=159||je>=64976&&je<=65007||(je&65535)===65535||(je&65535)===65534}},68398:function(p,a,e){var t=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var u=function(o){var l=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,g=0,d={},b={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function B(L){return L instanceof y?new y(L.type,B(L.content),L.alias):Array.isArray(L)?L.map(B):L.replace(/&/g,"&").replace(/"+N.content+""+N.tag+">"};function S(B,L,W,A){B.lastIndex=L;var N=B.exec(W);if(N&&A&&N[1]){var M=N[1].length;N.index+=M,N[0]=N[0].slice(M)}return N}function m(B,L,W,A,N,M){for(var U in W)if(!(!W.hasOwnProperty(U)||!W[U])){var ee=W[U];ee=Array.isArray(ee)?ee:[ee];for(var J=0;J=M.reach);Me+=Ce.value.length,Ce=Ce.next){var gt=Ce.value;if(L.length>B.length)return;if(!(gt instanceof y)){var _t=1,zt;if(de){if(zt=S(Te,Me,B,H),!zt||zt.index>=B.length)break;var q=zt.index,w=zt.index+zt[0].length,je=Me;for(je+=Ce.value.length;q>=je;)Ce=Ce.next,je+=Ce.value.length;if(je-=Ce.value.length,Me=je,Ce.value instanceof y)continue;for(var st=Ce;st!==L.tail&&(jeM.reach&&(M.reach=Ye);var Pt=Ce.prev;Ke&&(Pt=R(L,Pt,Ke),Me+=Ke.length),pe(L,Pt,_t);var Mt=new y(U,Y?b.tokenize(qe,Y):qe,ke,qe);if(Ce=R(L,Pt,Mt),xt&&R(L,Ce,xt),_t>1){var cn={cause:U+","+J,reach:Ye};m(B,L,W,Ce.prev,Me,cn),M&&cn.reach>M.reach&&(M.reach=cn.reach)}}}}}}function P(){var B={value:null,prev:null,next:null},L={value:null,prev:B,next:null};B.next=L,this.head=B,this.tail=L,this.length=0}function R(B,L,W){var A=L.next,N={value:W,prev:L,next:A};return L.next=N,A.prev=N,B.length++,N}function pe(B,L,W){for(var A=L.next,N=0;N4&&ge.slice(0,4)===l&&g.test(le)&&(le.charAt(4)==="-"?se=S(le):le=m(le),X=u),new X(se,le))}function S(pe){var le=pe.slice(5).replace(d,R);return l+le.charAt(0).toUpperCase()+le.slice(1)}function m(pe){var le=pe.slice(4);return d.test(le)?pe:(le=le.replace(b,P),le.charAt(0)!=="-"&&(le="-"+le),l+le)}function P(pe){return"-"+pe.toLowerCase()}function R(pe){return pe.charAt(1).toUpperCase()}},18795:function(p,a,e){"use strict";var t=e(83576),u=e(8179),o=e(59780),l=e(68244),g=e(20019),d=e(38567);p.exports=t([o,u,l,g,d])},20019:function(p,a,e){"use strict";var t=e(70167),u=e(79318),o=t.booleanish,l=t.number,g=t.spaceSeparated;p.exports=u({transform:d,properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:l,ariaColIndex:l,ariaColSpan:l,ariaControls:g,ariaCurrent:null,ariaDescribedBy:g,ariaDetails:null,ariaDisabled:o,ariaDropEffect:g,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:g,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:g,ariaLevel:l,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:g,ariaPlaceholder:null,ariaPosInSet:l,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:g,ariaRowCount:l,ariaRowIndex:l,ariaRowSpan:l,ariaSelected:o,ariaSetSize:l,ariaSort:null,ariaValueMax:l,ariaValueMin:l,ariaValueNow:l,ariaValueText:null,role:null}});function d(b,y){return y==="role"?y:"aria-"+y.slice(4).toLowerCase()}},38567:function(p,a,e){"use strict";var t=e(70167),u=e(79318),o=e(85804),l=t.boolean,g=t.overloadedBoolean,d=t.booleanish,b=t.number,y=t.spaceSeparated,S=t.commaSeparated;p.exports=u({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:S,acceptCharset:y,accessKey:y,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:y,autoFocus:l,autoPlay:l,capture:l,charSet:null,checked:l,cite:null,className:y,cols:b,colSpan:null,content:null,contentEditable:d,controls:l,controlsList:y,coords:b|S,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:g,draggable:d,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:y,height:b,hidden:l,high:b,href:null,hrefLang:null,htmlFor:y,httpEquiv:y,id:null,imageSizes:null,imageSrcSet:S,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:y,itemRef:y,itemScope:l,itemType:y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l,optimum:b,pattern:null,ping:y,placeholder:null,playsInline:l,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:y,required:l,reversed:l,rows:b,rowSpan:b,sandbox:y,scope:null,scoped:l,seamless:l,selected:l,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:d,src:null,srcDoc:null,srcLang:null,srcSet:S,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:d,width:b,wrap:null,align:null,aLink:null,archive:y,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:d,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:b,security:null,unselectable:null}})},85804:function(p,a,e){"use strict";var t=e(56432);p.exports=u;function u(o,l){return t(o,l.toLowerCase())}},56432:function(p){"use strict";p.exports=a;function a(e,t){return t in e?e[t]:t}},79318:function(p,a,e){"use strict";var t=e(47178),u=e(44347),o=e(19095);p.exports=l;function l(g){var d=g.space,b=g.mustUseProperty||[],y=g.attributes||{},S=g.properties,m=g.transform,P={},R={},pe,le;for(pe in S)le=new o(pe,m(y,pe),S[pe],d),b.indexOf(pe)!==-1&&(le.mustUseProperty=!0),P[pe]=le,R[t(pe)]=pe,R[t(le.attribute)]=pe;return new u(P,R,d)}},19095:function(p,a,e){"use strict";var t=e(1969),u=e(70167);p.exports=g,g.prototype=new t,g.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],l=o.length;function g(b,y,S,m){var P=-1,R;for(d(this,"space",m),t.call(this,b,y);++P5&&arguments[5]!==void 0?arguments[5]:!1,Z=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,Je=m.useMemo(function(){if((0,b.Z)(ue)==="object")return ue.clearIcon;if(Xe)return Xe},[ue,Xe]),Pe=m.useMemo(function(){return!!(!_&&ue&&(Re.length||Z)&&!(s==="combobox"&&Z===""))},[ue,_,Re.length,Z,s]);return{allowClear:Pe,clearIcon:m.createElement(X,{className:"".concat(Ze,"-clear"),onMouseDown:te,customizeIcon:Je},"\xD7")}},L=m.createContext(null);function W(){return m.useContext(L)}function A(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ze=m.useState(!1),te=(0,g.Z)(Ze,2),Re=te[0],ue=te[1],Xe=m.useRef(null),_=function(){window.clearTimeout(Xe.current)};m.useEffect(function(){return _},[]);var Z=function(Je,Pe){_(),Xe.current=window.setTimeout(function(){ue(Je),Pe&&Pe()},ze)};return[Re,Z,_]}function N(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ze=m.useRef(null),te=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout(te.current)}},[]);function Re(ue){(ue||Ze.current===null)&&(Ze.current=ue),window.clearTimeout(te.current),te.current=window.setTimeout(function(){Ze.current=null},ze)}return[function(){return Ze.current},Re]}function M(ze,Ze,te,Re){var ue=m.useRef(null);ue.current={open:Ze,triggerOpen:te,customizedTrigger:Re},m.useEffect(function(){function Xe(_){var Z;if(!((Z=ue.current)!==null&&Z!==void 0&&Z.customizedTrigger)){var s=_.target;s.shadowRoot&&_.composed&&(s=_.composedPath()[0]||s),ue.current.open&&ze().filter(function(Je){return Je}).every(function(Je){return!Je.contains(s)&&Je!==s})&&ue.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Xe),function(){return window.removeEventListener("mousedown",Xe)}},[])}var U=e(10228);function ee(ze){return ze&&![U.Z.ESC,U.Z.SHIFT,U.Z.BACKSPACE,U.Z.TAB,U.Z.WIN_KEY,U.Z.ALT,U.Z.META,U.Z.WIN_KEY_RIGHT,U.Z.CTRL,U.Z.SEMICOLON,U.Z.EQUALS,U.Z.CAPS_LOCK,U.Z.CONTEXT_MENU,U.Z.F1,U.Z.F2,U.Z.F3,U.Z.F4,U.Z.F5,U.Z.F6,U.Z.F7,U.Z.F8,U.Z.F9,U.Z.F10,U.Z.F11,U.Z.F12].includes(ze)}var J=e(26112),Le=e(83836);function Y(ze,Ze,te){var Re=(0,l.Z)((0,l.Z)({},ze),te?Ze:{});return Object.keys(Ze).forEach(function(ue){var Xe=Ze[ue];typeof Xe=="function"&&(Re[ue]=function(){for(var _,Z=arguments.length,s=new Array(Z),Je=0;JeIe&&(xr="".concat(Mr.slice(0,Ie),"..."))}var ta=function(Hr){Hr&&Hr.stopPropagation(),bn(rn)};return typeof kt=="function"?Mn(tr,xr,An,Qn,ta):Tr(rn,xr,An,Qn,ta)},On=function(rn){if(!ue.length)return null;var An=typeof yt=="function"?yt(rn):yt;return typeof kt=="function"?Mn(void 0,An,!1,!1,void 0,!0):Tr({title:An},An,!1)},Gt=m.createElement("div",{className:"".concat(Yn,"-search"),style:{width:Un},onFocus:function(){Nr(!0)},onBlur:function(){Nr(!1)}},m.createElement(Te,{ref:s,open:Xe,prefixCls:Re,id:te,inputElement:null,disabled:Pe,autoFocus:Ve,autoComplete:an,editable:br,activeDescendantId:on,value:or,onKeyDown:qt,onMouseDown:Sn,onChange:ln,onPaste:gn,onCompositionStart:pn,onCompositionEnd:zn,onBlur:Pn,tabIndex:Q,attrs:(0,J.Z)(Ze,!0)}),m.createElement("span",{ref:Vn,className:"".concat(Yn,"-search-mirror"),"aria-hidden":!0},or,"\xA0")),nn=m.createElement(Le.Z,{prefixCls:"".concat(Yn,"-overflow"),data:ue,renderItem:Gn,renderRest:On,suffix:Gt,itemKey:q,maxCount:tt});return m.createElement("span",{className:"".concat(Yn,"-wrap")},nn,!ue.length&&!or&&m.createElement("span",{className:"".concat(Yn,"-placeholder")},Je))},xt=Ke,Ye=function(Ze){var te=Ze.inputElement,Re=Ze.prefixCls,ue=Ze.id,Xe=Ze.inputRef,_=Ze.disabled,Z=Ze.autoFocus,s=Ze.autoComplete,Je=Ze.activeDescendantId,Pe=Ze.mode,ve=Ze.open,Ht=Ze.values,Ve=Ze.placeholder,an=Ze.tabIndex,on=Ze.showSearch,Q=Ze.searchValue,En=Ze.activeValue,tt=Ze.maxLength,Ie=Ze.onInputKeyDown,ft=Ze.onInputMouseDown,yt=Ze.onInputChange,kt=Ze.onInputPaste,Jt=Ze.onInputCompositionStart,bn=Ze.onInputCompositionEnd,ln=Ze.onInputBlur,gn=Ze.title,qt=m.useState(!1),Sn=(0,g.Z)(qt,2),pn=Sn[0],zn=Sn[1],Pn=Pe==="combobox",Vn=Pn||on,Kn=Ht[0],pr=Q||"";Pn&&En&&!pn&&(pr=En),m.useEffect(function(){Pn&&zn(!1)},[Pn,En]);var Un=Pe!=="combobox"&&!ve&&!on?!1:!!pr,er=gn===void 0?je(Kn):gn,_n=m.useMemo(function(){return Kn?null:m.createElement("span",{className:"".concat(Re,"-selection-placeholder"),style:Un?{visibility:"hidden"}:void 0},Ve)},[Kn,Un,Ve,Re]);return m.createElement("span",{className:"".concat(Re,"-selection-wrap")},m.createElement("span",{className:"".concat(Re,"-selection-search")},m.createElement(Te,{ref:Xe,prefixCls:Re,id:ue,open:ve,inputElement:te,disabled:_,autoFocus:Z,autoComplete:s,editable:Vn,activeDescendantId:Je,value:pr,onKeyDown:Ie,onMouseDown:ft,onChange:function(Bn){zn(!0),yt(Bn)},onPaste:kt,onCompositionStart:Jt,onCompositionEnd:bn,onBlur:ln,tabIndex:an,attrs:(0,J.Z)(Ze,!0),maxLength:Pn?tt:void 0})),!Pn&&Kn?m.createElement("span",{className:"".concat(Re,"-selection-item"),title:er,style:Un?{visibility:"hidden"}:void 0},Kn.label):null,_n)},Pt=Ye,Mt=function(Ze,te){var Re=(0,m.useRef)(null),ue=(0,m.useRef)(!1),Xe=Ze.prefixCls,_=Ze.open,Z=Ze.mode,s=Ze.showSearch,Je=Ze.tokenWithEnter,Pe=Ze.disabled,ve=Ze.prefix,Ht=Ze.autoClearSearchValue,Ve=Ze.onSearch,an=Ze.onSearchSubmit,on=Ze.onToggleOpen,Q=Ze.onInputKeyDown,En=Ze.onInputBlur,tt=Ze.domRef;m.useImperativeHandle(te,function(){return{focus:function(er){Re.current.focus(er)},blur:function(){Re.current.blur()}}});var Ie=N(0),ft=(0,g.Z)(Ie,2),yt=ft[0],kt=ft[1],Jt=function(er){var _n=er.which,gr=Re.current instanceof HTMLTextAreaElement;!gr&&_&&(_n===U.Z.UP||_n===U.Z.DOWN)&&er.preventDefault(),Q&&Q(er),_n===U.Z.ENTER&&Z==="tags"&&!ue.current&&!_&&(an==null||an(er.target.value)),!(gr&&!_&&~[U.Z.UP,U.Z.DOWN,U.Z.LEFT,U.Z.RIGHT].indexOf(_n))&&ee(_n)&&on(!0)},bn=function(){kt(!0)},ln=(0,m.useRef)(null),gn=function(er){Ve(er,!0,ue.current)!==!1&&on(!0)},qt=function(){ue.current=!0},Sn=function(er){ue.current=!1,Z!=="combobox"&&gn(er.target.value)},pn=function(er){var _n=er.target.value;if(Je&&ln.current&&/[\r\n]/.test(ln.current)){var gr=ln.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_n=_n.replace(gr,ln.current)}ln.current=null,gn(_n)},zn=function(er){var _n=er.clipboardData,gr=_n==null?void 0:_n.getData("text");ln.current=gr||""},Pn=function(er){var _n=er.target;if(_n!==Re.current){var gr=document.body.style.msTouchAction!==void 0;gr?setTimeout(function(){Re.current.focus()}):Re.current.focus()}},Vn=function(er){var _n=yt();er.target!==Re.current&&!_n&&!(Z==="combobox"&&Pe)&&er.preventDefault(),(Z!=="combobox"&&(!s||!_n)||!_)&&(_&&Ht!==!1&&Ve("",!0,!1),on())},Kn={inputRef:Re,onInputKeyDown:Jt,onInputMouseDown:bn,onInputChange:pn,onInputPaste:zn,onInputCompositionStart:qt,onInputCompositionEnd:Sn,onInputBlur:En},pr=Z==="multiple"||Z==="tags"?m.createElement(xt,(0,t.Z)({},Ze,Kn)):m.createElement(Pt,(0,t.Z)({},Ze,Kn));return m.createElement("div",{ref:tt,className:"".concat(Xe,"-selector"),onClick:Pn,onMouseDown:Vn},ve&&m.createElement("div",{className:"".concat(Xe,"-prefix")},ve),pr)},cn=m.forwardRef(Mt),At=cn,He=e(65030),Et=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Qe=function(Ze){var te=Ze===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:te,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:te,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:te,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:te,adjustY:1},htmlRegion:"scroll"}}},we=function(Ze,te){var Re=Ze.prefixCls,ue=Ze.disabled,Xe=Ze.visible,_=Ze.children,Z=Ze.popupElement,s=Ze.animation,Je=Ze.transitionName,Pe=Ze.dropdownStyle,ve=Ze.dropdownClassName,Ht=Ze.direction,Ve=Ht===void 0?"ltr":Ht,an=Ze.placement,on=Ze.builtinPlacements,Q=Ze.dropdownMatchSelectWidth,En=Ze.dropdownRender,tt=Ze.dropdownAlign,Ie=Ze.getPopupContainer,ft=Ze.empty,yt=Ze.getTriggerDOMNode,kt=Ze.onPopupVisibleChange,Jt=Ze.onPopupMouseEnter,bn=(0,d.Z)(Ze,Et),ln="".concat(Re,"-dropdown"),gn=Z;En&&(gn=En(Z));var qt=m.useMemo(function(){return on||Qe(Q)},[on,Q]),Sn=s?"".concat(ln,"-").concat(s):Je,pn=typeof Q=="number",zn=m.useMemo(function(){return pn?null:Q===!1?"minWidth":"width"},[Q,pn]),Pn=Pe;pn&&(Pn=(0,l.Z)((0,l.Z)({},Pn),{},{width:Q}));var Vn=m.useRef(null);return m.useImperativeHandle(te,function(){return{getPopupElement:function(){var pr;return(pr=Vn.current)===null||pr===void 0?void 0:pr.popupElement}}}),m.createElement(He.Z,(0,t.Z)({},bn,{showAction:kt?["click"]:[],hideAction:kt?["click"]:[],popupPlacement:an||(Ve==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:qt,prefixCls:ln,popupTransitionName:Sn,popup:m.createElement("div",{onMouseEnter:Jt},gn),ref:Vn,stretch:zn,popupAlign:tt,popupVisible:Xe,getPopupContainer:Ie,popupClassName:R()(ve,(0,o.Z)({},"".concat(ln,"-empty"),ft)),popupStyle:Pn,getTriggerDOMNode:yt,onPopupVisibleChange:kt}),_)},ct=m.forwardRef(we),$e=ct,O=e(66712);function ne(ze,Ze){var te=ze.key,Re;return"value"in ze&&(Re=ze.value),te!=null?te:Re!==void 0?Re:"rc-index-key-".concat(Ze)}function _e(ze){return typeof ze!="undefined"&&!Number.isNaN(ze)}function ie(ze,Ze){var te=ze||{},Re=te.label,ue=te.value,Xe=te.options,_=te.groupLabel,Z=Re||(Ze?"children":"label");return{label:Z,value:ue||"value",options:Xe||"options",groupLabel:_||Z}}function re(ze){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=Ze.fieldNames,Re=Ze.childrenAsData,ue=[],Xe=ie(te,!1),_=Xe.label,Z=Xe.value,s=Xe.options,Je=Xe.groupLabel;function Pe(ve,Ht){Array.isArray(ve)&&ve.forEach(function(Ve){if(Ht||!(s in Ve)){var an=Ve[Z];ue.push({key:ne(Ve,ue.length),groupOption:Ht,data:Ve,label:Ve[_],value:an})}else{var on=Ve[Je];on===void 0&&Re&&(on=Ve.label),ue.push({key:ne(Ve,ue.length),group:!0,data:Ve,label:on}),Pe(Ve[s],!0)}})}return Pe(ze,!1),ue}function me(ze){var Ze=(0,l.Z)({},ze);return"props"in Ze||Object.defineProperty(Ze,"props",{get:function(){return(0,S.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ze}}),Ze}var he=function(Ze,te,Re){if(!te||!te.length)return null;var ue=!1,Xe=function Z(s,Je){var Pe=(0,O.Z)(Je),ve=Pe[0],Ht=Pe.slice(1);if(!ve)return[s];var Ve=s.split(ve);return ue=ue||Ve.length>1,Ve.reduce(function(an,on){return[].concat((0,u.Z)(an),(0,u.Z)(Z(on,Ht)))},[]).filter(Boolean)},_=Xe(Ze,te);return ue?typeof Re!="undefined"?_.slice(0,Re):_:null},Oe=m.createContext(null),D=Oe;function F(ze){var Ze=ze.visible,te=ze.values;if(!Ze)return null;var Re=50;return m.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(te.slice(0,Re).map(function(ue){var Xe=ue.label,_=ue.value;return["number","string"].includes((0,b.Z)(Xe))?Xe:_}).join(", ")),te.length>Re?", ...":null)}var be=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],We=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ht=function(Ze){return Ze==="tags"||Ze==="multiple"},dt=m.forwardRef(function(ze,Ze){var te,Re=ze.id,ue=ze.prefixCls,Xe=ze.className,_=ze.showSearch,Z=ze.tagRender,s=ze.direction,Je=ze.omitDomProps,Pe=ze.displayValues,ve=ze.onDisplayValuesChange,Ht=ze.emptyOptions,Ve=ze.notFoundContent,an=Ve===void 0?"Not Found":Ve,on=ze.onClear,Q=ze.mode,En=ze.disabled,tt=ze.loading,Ie=ze.getInputElement,ft=ze.getRawInputElement,yt=ze.open,kt=ze.defaultOpen,Jt=ze.onDropdownVisibleChange,bn=ze.activeValue,ln=ze.onActiveValueChange,gn=ze.activeDescendantId,qt=ze.searchValue,Sn=ze.autoClearSearchValue,pn=ze.onSearch,zn=ze.onSearchSplit,Pn=ze.tokenSeparators,Vn=ze.allowClear,Kn=ze.prefix,pr=ze.suffixIcon,Un=ze.clearIcon,er=ze.OptionList,_n=ze.animation,gr=ze.transitionName,Bn=ze.dropdownStyle,Nr=ze.dropdownClassName,Yn=ze.dropdownMatchSelectWidth,or=ze.dropdownRender,br=ze.dropdownAlign,Tr=ze.placement,Mn=ze.builtinPlacements,Gn=ze.getPopupContainer,On=ze.showAction,Gt=On===void 0?[]:On,nn=ze.onFocus,un=ze.onBlur,rn=ze.onKeyUp,An=ze.onKeyDown,Hn=ze.onMouseDown,tr=(0,d.Z)(ze,be),Qn=ht(Q),xr=(_!==void 0?_:Qn)||Q==="combobox",Mr=(0,l.Z)({},tr);We.forEach(function(na){delete Mr[na]}),Je==null||Je.forEach(function(na){delete Mr[na]});var ta=m.useState(!1),aa=(0,g.Z)(ta,2),Hr=aa[0],ma=aa[1];m.useEffect(function(){ma((0,le.Z)())},[]);var ra=m.useRef(null),Jr=m.useRef(null),zr=m.useRef(null),qr=m.useRef(null),I=m.useRef(null),xe=m.useRef(!1),G=A(),et=(0,g.Z)(G,3),bt=et[0],It=et[1],Se=et[2];m.useImperativeHandle(Ze,function(){var na,Vr;return{focus:(na=qr.current)===null||na===void 0?void 0:na.focus,blur:(Vr=qr.current)===null||Vr===void 0?void 0:Vr.blur,scrollTo:function(za){var Ra;return(Ra=I.current)===null||Ra===void 0?void 0:Ra.scrollTo(za)},nativeElement:ra.current||Jr.current}});var lt=m.useMemo(function(){var na;if(Q!=="combobox")return qt;var Vr=(na=Pe[0])===null||na===void 0?void 0:na.value;return typeof Vr=="string"||typeof Vr=="number"?String(Vr):""},[qt,Q,Pe]),k=Q==="combobox"&&typeof Ie=="function"&&Ie()||null,Ft=typeof ft=="function"&&ft(),hn=(0,ge.x1)(Jr,Ft==null||(te=Ft.props)===null||te===void 0?void 0:te.ref),Rt=m.useState(!1),Wn=(0,g.Z)(Rt,2),ir=Wn[0],wn=Wn[1];(0,pe.Z)(function(){wn(!0)},[]);var Pr=(0,y.Z)(!1,{defaultValue:kt,value:yt}),Fr=(0,g.Z)(Pr,2),Dr=Fr[0],Gr=Fr[1],Zr=ir?Dr:!1,Ia=!an&&Ht;(En||Ia&&Zr&&Q==="combobox")&&(Zr=!1);var ca=Ia?!1:Zr,Lr=m.useCallback(function(na){var Vr=na!==void 0?na:!Zr;En||(Gr(Vr),Zr!==Vr&&(Jt==null||Jt(Vr)))},[En,Zr,Gr,Jt]),Ur=m.useMemo(function(){return(Pn||[]).some(function(na){return[`
`,`\r
`].includes(na)})},[Pn]),wr=m.useContext(D)||{},kr=wr.maxCount,dn=wr.rawValues,Yr=function(Vr,Pa,za){if(!(Qn&&_e(kr)&&(dn==null?void 0:dn.size)>=kr)){var Ra=!0,La=Vr;ln==null||ln(null);var Ga=he(Vr,Pn,_e(kr)?kr-dn.size:void 0),qa=za?null:Ga;return Q!=="combobox"&&qa&&(La="",zn==null||zn(qa),Lr(!1),Ra=!1),pn&<!==La&&pn(La,{source:Pa?"typing":"effect"}),Ra}},oa=function(Vr){!Vr||!Vr.trim()||pn(Vr,{source:"submit"})};m.useEffect(function(){!Zr&&!Qn&&Q!=="combobox"&&Yr("",!1,!1)},[Zr]),m.useEffect(function(){Dr&&En&&Gr(!1),En&&!xe.current&&It(!1)},[En]);var wa=N(),ja=(0,g.Z)(wa,2),Ta=ja[0],Na=ja[1],ui=m.useRef(!1),Qa=function(Vr){var Pa=Ta(),za=Vr.key,Ra=za==="Enter";if(Ra&&(Q!=="combobox"&&Vr.preventDefault(),Zr||Lr(!0)),Na(!!lt),za==="Backspace"&&!Pa&&Qn&&!lt&&Pe.length){for(var La=(0,u.Z)(Pe),Ga=null,qa=La.length-1;qa>=0;qa-=1){var si=La[qa];if(!si.disabled){La.splice(qa,1),Ga=si;break}}Ga&&ve(La,{type:"remove",values:[Ga]})}for(var pi=arguments.length,li=new Array(pi>1?pi-1:0),Ni=1;Ni1?Pa-1:0),Ra=1;Ra1?Ga-1:0),si=1;si=an},[Z,an,ft==null?void 0:ft.size]),Pn=function(Gt){Gt.preventDefault()},Vn=function(Gt){var nn;(nn=pn.current)===null||nn===void 0||nn.scrollTo(typeof Gt=="number"?{index:Gt}:Gt)},Kn=m.useCallback(function(On){return s==="combobox"?!1:ft.has(On)},[s,(0,u.Z)(ft).toString(),ft.size]),pr=function(Gt){for(var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,un=Sn.length,rn=0;rn1&&arguments[1]!==void 0?arguments[1]:!1;gr(Gt);var un={source:nn?"keyboard":"mouse"},rn=Sn[Gt];if(!rn){Q(null,-1,un);return}Q(rn.value,Gt,un)};(0,m.useEffect)(function(){Bn(En!==!1?pr(0):-1)},[Sn.length,Je]);var Nr=m.useCallback(function(On){return s==="combobox"?String(On).toLowerCase()===Je.toLowerCase():ft.has(On)},[s,Je,(0,u.Z)(ft).toString(),ft.size]);(0,m.useEffect)(function(){var On=setTimeout(function(){if(!Z&&_&&ft.size===1){var nn=Array.from(ft)[0],un=Sn.findIndex(function(rn){var An=rn.data;return Je?String(An.value).startsWith(Je):An.value===nn});un!==-1&&(Bn(un),Vn(un))}});if(_){var Gt;(Gt=pn.current)===null||Gt===void 0||Gt.scrollTo(void 0)}return function(){return clearTimeout(On)}},[_,Je]);var Yn=function(Gt){Gt!==void 0&&tt(Gt,{selected:!ft.has(Gt)}),Z||Pe(!1)};if(m.useImperativeHandle(te,function(){return{onKeyDown:function(Gt){var nn=Gt.which,un=Gt.ctrlKey;switch(nn){case U.Z.N:case U.Z.P:case U.Z.UP:case U.Z.DOWN:{var rn=0;if(nn===U.Z.UP?rn=-1:nn===U.Z.DOWN?rn=1:Ae()&&un&&(nn===U.Z.N?rn=1:nn===U.Z.P&&(rn=-1)),rn!==0){var An=pr(_n+rn,rn);Vn(An),Bn(An,!0)}break}case U.Z.TAB:case U.Z.ENTER:{var Hn,tr=Sn[_n];tr&&!(tr!=null&&(Hn=tr.data)!==null&&Hn!==void 0&&Hn.disabled)&&!zn?Yn(tr.value):Yn(void 0),_&&Gt.preventDefault();break}case U.Z.ESC:Pe(!1),_&&Gt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Gt){Vn(Gt)}}}),Sn.length===0)return m.createElement("div",{role:"listbox",id:"".concat(Xe,"_list"),className:"".concat(qt,"-empty"),onMouseDown:Pn},ve);var or=Object.keys(yt).map(function(On){return yt[On]}),br=function(Gt){return Gt.label};function Tr(On,Gt){var nn=On.group;return{role:nn?"presentation":"option",id:"".concat(Xe,"_list_").concat(Gt)}}var Mn=function(Gt){var nn=Sn[Gt];if(!nn)return null;var un=nn.data||{},rn=un.value,An=nn.group,Hn=(0,J.Z)(un,!0),tr=br(nn);return nn?m.createElement("div",(0,t.Z)({"aria-label":typeof tr=="string"&&!An?tr:null},Hn,{key:Gt},Tr(nn,Gt),{"aria-selected":Nr(rn)}),rn):null},Gn={role:"listbox",id:"".concat(Xe,"_list")};return m.createElement(m.Fragment,null,kt&&m.createElement("div",(0,t.Z)({},Gn,{style:{height:0,width:0,overflow:"hidden"}}),Mn(_n-1),Mn(_n),Mn(_n+1)),m.createElement(oe.Z,{itemKey:"key",ref:pn,data:Sn,height:bn,itemHeight:ln,fullHeight:!1,onMouseDown:Pn,onScroll:Ht,virtual:kt,direction:Jt,innerProps:kt?null:Gn},function(On,Gt){var nn=On.group,un=On.groupOption,rn=On.data,An=On.label,Hn=On.value,tr=rn.key;if(nn){var Qn,xr=(Qn=rn.title)!==null&&Qn!==void 0?Qn:ae(An)?An.toString():void 0;return m.createElement("div",{className:R()(qt,"".concat(qt,"-group"),rn.className),title:xr},An!==void 0?An:tr)}var Mr=rn.disabled,ta=rn.title,aa=rn.children,Hr=rn.style,ma=rn.className,ra=(0,d.Z)(rn,Ue),Jr=(0,rt.Z)(ra,or),zr=Kn(Hn),qr=Mr||!zr&&zn,I="".concat(qt,"-option"),xe=R()(qt,I,ma,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(I,"-grouped"),un),"".concat(I,"-active"),_n===Gt&&!qr),"".concat(I,"-disabled"),qr),"".concat(I,"-selected"),zr)),G=br(On),et=!Ie||typeof Ie=="function"||zr,bt=typeof G=="number"?G:G||Hn,It=ae(bt)?bt.toString():void 0;return ta!==void 0&&(It=ta),m.createElement("div",(0,t.Z)({},(0,J.Z)(Jr),kt?{}:Tr(On,Gt),{"aria-selected":Nr(Hn),className:xe,title:It,onMouseMove:function(){_n===Gt||qr||Bn(Gt)},onClick:function(){qr||Yn(Hn)},style:Hr}),m.createElement("div",{className:"".concat(I,"-content")},typeof gn=="function"?gn(On,{index:Gt}):bt),m.isValidElement(Ie)||zr,et&&m.createElement(X,{className:"".concat(qt,"-option-state"),customizeIcon:Ie,customizeIconProps:{value:Hn,disabled:qr,isSelected:zr}},zr?"\u2713":null))}))},Vt=m.forwardRef(Ct),Kt=Vt,mn=function(ze,Ze){var te=m.useRef({values:new Map,options:new Map}),Re=m.useMemo(function(){var Xe=te.current,_=Xe.values,Z=Xe.options,s=ze.map(function(ve){if(ve.label===void 0){var Ht;return(0,l.Z)((0,l.Z)({},ve),{},{label:(Ht=_.get(ve.value))===null||Ht===void 0?void 0:Ht.label})}return ve}),Je=new Map,Pe=new Map;return s.forEach(function(ve){Je.set(ve.value,ve),Pe.set(ve.value,Ze.get(ve.value)||Z.get(ve.value))}),te.current.values=Je,te.current.options=Pe,s},[ze,Ze]),ue=m.useCallback(function(Xe){return Ze.get(Xe)||te.current.options.get(Xe)},[Ze]);return[Re,ue]};function Qt(ze,Ze){return Ce(ze).join("").toUpperCase().includes(Ze)}var sn=function(ze,Ze,te,Re,ue){return m.useMemo(function(){if(!te||Re===!1)return ze;var Xe=Ze.options,_=Ze.label,Z=Ze.value,s=[],Je=typeof Re=="function",Pe=te.toUpperCase(),ve=Je?Re:function(Ve,an){return ue?Qt(an[ue],Pe):an[Xe]?Qt(an[_!=="children"?_:"label"],Pe):Qt(an[Z],Pe)},Ht=Je?function(Ve){return me(Ve)}:function(Ve){return Ve};return ze.forEach(function(Ve){if(Ve[Xe]){var an=ve(te,Ht(Ve));if(an)s.push(Ve);else{var on=Ve[Xe].filter(function(Q){return ve(te,Ht(Q))});on.length&&s.push((0,l.Z)((0,l.Z)({},Ve),{},(0,o.Z)({},Xe,on)))}return}ve(te,Ht(Ve))&&s.push(Ve)}),s},[ze,Re,ue,te,Ze])},Nt=e(6551),Xt=e(11592),tn=["children","value"],fn=["children"];function xn(ze){var Ze=ze,te=Ze.key,Re=Ze.props,ue=Re.children,Xe=Re.value,_=(0,d.Z)(Re,tn);return(0,l.Z)({key:te,value:Xe!==void 0?Xe:te,children:ue},_)}function Nn(ze){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xt.Z)(ze).map(function(te,Re){if(!m.isValidElement(te)||!te.type)return null;var ue=te,Xe=ue.type.isSelectOptGroup,_=ue.key,Z=ue.props,s=Z.children,Je=(0,d.Z)(Z,fn);return Ze||!Xe?xn(te):(0,l.Z)((0,l.Z)({key:"__RC_SELECT_GRP__".concat(_===null?Re:_,"__"),label:_},Je),{},{options:Nn(s)})}).filter(function(te){return te})}var kn=function(Ze,te,Re,ue,Xe){return m.useMemo(function(){var _=Ze,Z=!Ze;Z&&(_=Nn(te));var s=new Map,Je=new Map,Pe=function(Ve,an,on){on&&typeof on=="string"&&Ve.set(an[on],an)},ve=function Ht(Ve){for(var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on1&&arguments[1]!==void 0?arguments[1]:!1,_=0;_0?Lr(kr.options):kr.options}):kr})},et=m.useMemo(function(){return tt?G(xe):xe},[xe,tt,Gn]),bt=m.useMemo(function(){return re(et,{fieldNames:br,childrenAsData:Yn})},[et,br,Yn]),It=function(Ur){var wr=An(Ur);if(xr(wr),er&&(wr.length!==Hr.length||wr.some(function(Yr,oa){var wa;return((wa=Hr[oa])===null||wa===void 0?void 0:wa.value)!==(Yr==null?void 0:Yr.value)}))){var kr=Un?wr:wr.map(function(Yr){return Yr.value}),dn=wr.map(function(Yr){return me(ma(Yr.value))});er(Nr?kr:kr[0],Nr?dn:dn[0])}},Se=m.useState(null),lt=(0,g.Z)(Se,2),k=lt[0],Ft=lt[1],hn=m.useState(0),Rt=(0,g.Z)(hn,2),Wn=Rt[0],ir=Rt[1],wn=bn!==void 0?bn:Re!=="combobox",Pr=m.useCallback(function(Lr,Ur){var wr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},kr=wr.source,dn=kr===void 0?"keyboard":kr;ir(Ur),_&&Re==="combobox"&&Lr!==null&&dn==="keyboard"&&Ft(String(Lr))},[_,Re]),Fr=function(Ur,wr,kr){var dn=function(){var vi,Ja=ma(Ur);return[Un?{label:Ja==null?void 0:Ja[br.label],value:Ur,key:(vi=Ja==null?void 0:Ja.key)!==null&&vi!==void 0?vi:Ur}:Ur,me(Ja)]};if(wr&&Ve){var Yr=dn(),oa=(0,g.Z)(Yr,2),wa=oa[0],ja=oa[1];Ve(wa,ja)}else if(!wr&&an&&kr!=="clear"){var Ta=dn(),Na=(0,g.Z)(Ta,2),ui=Na[0],Qa=Na[1];an(ui,Qa)}},Dr=nr(function(Lr,Ur){var wr,kr=Nr?Ur.selected:!0;kr?wr=Nr?[].concat((0,u.Z)(Hr),[Lr]):[Lr]:wr=Hr.filter(function(dn){return dn.value!==Lr}),It(wr),Fr(Lr,kr),Re==="combobox"?Ft(""):(!ht||Ht)&&(On(""),Ft(""))}),Gr=function(Ur,wr){It(Ur);var kr=wr.type,dn=wr.values;(kr==="remove"||kr==="clear")&&dn.forEach(function(Yr){Fr(Yr.value,!1,kr)})},Zr=function(Ur,wr){if(On(Ur),Ft(null),wr.source==="submit"){var kr=(Ur||"").trim();if(kr){var dn=Array.from(new Set([].concat((0,u.Z)(Jr),[kr])));It(dn),Fr(kr,!0),On("")}return}wr.source!=="blur"&&(Re==="combobox"&&It(Ur),Pe==null||Pe(Ur))},Ia=function(Ur){var wr=Ur;Re!=="tags"&&(wr=Ur.map(function(dn){var Yr=un.get(dn);return Yr==null?void 0:Yr.value}).filter(function(dn){return dn!==void 0}));var kr=Array.from(new Set([].concat((0,u.Z)(Jr),(0,u.Z)(wr))));It(kr),kr.forEach(function(dn){Fr(dn,!0)})},ca=m.useMemo(function(){var Lr=gn!==!1&&Q!==!1;return(0,l.Z)((0,l.Z)({},Gt),{},{flattenOptions:bt,onActiveValue:Pr,defaultActiveFirstOption:wn,onSelect:Dr,menuItemSelectedIcon:ln,rawValues:Jr,fieldNames:br,virtual:Lr,direction:qt,listHeight:pn,listItemHeight:Pn,childrenAsData:Yn,maxCount:_n,optionRender:kt})},[_n,Gt,bt,Pr,wn,Dr,ln,Jr,br,gn,Q,qt,pn,Pn,Yn,kt]);return m.createElement(D.Provider,{value:ca},m.createElement(Lt,(0,t.Z)({},gr,{id:Bn,prefixCls:Xe,ref:Ze,omitDomProps:Er,mode:Re,displayValues:ra,onDisplayValuesChange:Gr,direction:qt,searchValue:Gn,onSearch:Zr,autoClearSearchValue:Ht,onSearchSplit:Ia,dropdownMatchSelectWidth:Q,OptionList:Kt,emptyOptions:!bt.length,activeValue:k,activeDescendantId:"".concat(Bn,"_list_").concat(Wn)})))}),fr=Cr;fr.Option=Ne,fr.OptGroup=ut;var hr=fr,qn=hr},22711:function(p,a,e){"use strict";e.r(a),e.d(a,{ResizableTextArea:function(){return H},default:function(){return Te}});var t=e(54476),u=e(20068),o=e(33885),l=e(94480),g=e(42978),d=e(75931),b=e(92310),y=e.n(b),S=e(36901),m=e(66003),P=e(30292),R=e(18929),pe=e(59301),le=e(76190),ge=e(29301),se=e(34280),X=e(16089),B=`
@@ -198,9 +198,9 @@
`)};if(F===0){var ht=cn.slice(He+1,Et).concat(J({children:[We],className:re.properties.className})),dt=ct(ht,be);At.push(dt)}else if(F===Oe.length-1){var Lt=cn[Et+1]&&cn[Et+1].children&&cn[Et+1].children[0],Dt={type:"text",value:"".concat(D)};if(Lt){var ut=J({children:[Dt],className:re.properties.className});cn.splice(Et+1,0,ut)}else{var v=[Dt],Ne=ct(v,be,re.properties.className);At.push(Ne)}}else{var Ge=[We],rt=ct(Ge,be,re.properties.className);At.push(rt)}}),He=Et}Et++};Et code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},Ce=e(11594),Me=e.n(Ce),gt=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],_t=T(Me(),Te);_t.supportedLanguages=gt;var zt=_t},18369:function(p,a){"use strict";a.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(p,a,e){"use strict";e(84126);var t=e(59301),u=60103;if(a.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var o=Symbol.for;u=o("react.element"),a.Fragment=o("react.fragment")}var l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};function b(y,S,m){var P,R={},pe=null,le=null;m!==void 0&&(pe=""+m),S.key!==void 0&&(pe=""+S.key),S.ref!==void 0&&(le=S.ref);for(P in S)g.call(S,P)&&!d.hasOwnProperty(P)&&(R[P]=S[P]);if(y&&y.defaultProps)for(P in S=y.defaultProps,S)R[P]===void 0&&(R[P]=S[P]);return{$$typeof:u,type:y,key:pe,ref:le,props:R,_owner:l.current}}a.jsx=b,a.jsxs=b},37712:function(p,a,e){"use strict";p.exports=e(19524)},95489:function(p,a,e){"use strict";var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof e.g=="object"?e.g:{},u=N();t.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=e(43621),l=e(12256),g=e(68398),d=e(70614),b=e(54212),y=e(9720),S=e(88786);u();var m={}.hasOwnProperty;function P(){}P.prototype=g;var R=new P;p.exports=R,R.highlight=ge,R.register=pe,R.alias=le,R.registered=se,R.listLanguages=X,pe(d),pe(b),pe(y),pe(S),R.util.encode=W,R.Token.stringify=B;function pe(M){if(typeof M!="function"||!M.displayName)throw new Error("Expected `function` for `grammar`, got `"+M+"`");R.languages[M.displayName]===void 0&&M(R)}function le(M,U){var ee=R.languages,J=M,Le,Y,H,de;U&&(J={},J[M]=U);for(Le in J)for(Y=J[Le],Y=typeof Y=="string"?[Y]:Y,H=Y.length,de=-1;++de]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(p){"use strict";p.exports=a,a.displayName="abnf",a.aliases=[];function a(e){(function(t){var u="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+u+"|<"+u+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}},42746:function(p){"use strict";p.exports=a,a.displayName="actionscript",a.aliases=[];function a(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}},93281:function(p){"use strict";p.exports=a,a.displayName="ada",a.aliases=[];function a(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(p){"use strict";p.exports=a,a.displayName="agda",a.aliases=[];function a(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}},65924:function(p){"use strict";p.exports=a,a.displayName="al",a.aliases=[];function a(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(p){"use strict";p.exports=a,a.displayName="antlr4",a.aliases=["g4"];function a(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}},43556:function(p){"use strict";p.exports=a,a.displayName="apacheconf",a.aliases=[];function a(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(p,a,e){"use strict";var t=e(69435);p.exports=u,u.displayName="apex",u.aliases=[];function u(o){o.register(t),function(l){var g=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,d=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return g.source});function b(S){return RegExp(S.replace(//g,function(){return d}),"i")}var y={keyword:g,punctuation:/[()\[\]{};,:.<>]/};l.languages.apex={comment:l.languages.clike.comment,string:l.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:l.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:b(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:y},{pattern:b(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:y},{pattern:b(/(?=\s*\w+\s*[;=,(){:])/.source),inside:y}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:g,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(o)}},4248:function(p){"use strict";p.exports=a,a.displayName="apl",a.aliases=[];function a(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(p){"use strict";p.exports=a,a.displayName="applescript",a.aliases=[];function a(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(p){"use strict";p.exports=a,a.displayName="aql",a.aliases=[];function a(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(p,a,e){"use strict";var t=e(87071);p.exports=u,u.displayName="arduino",u.aliases=["ino"];function u(o){o.register(t),o.languages.arduino=o.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),o.languages.ino=o.languages.arduino}},22956:function(p){"use strict";p.exports=a,a.displayName="arff",a.aliases=[];function a(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(p){"use strict";p.exports=a,a.displayName="asciidoc",a.aliases=["adoc"];function a(e){(function(t){var u={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},o=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:u,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:u.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:u,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function l(g){g=g.split(" ");for(var d={},b=0,y=g.length;b>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(p,a,e){"use strict";var t=e(87648);p.exports=u,u.displayName="aspnet",u.aliases=[];function u(o){o.register(t),o.languages.aspnet=o.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:o.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:o.languages.csharp}}}),o.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,o.languages.insertBefore("inside","punctuation",{directive:o.languages.aspnet.directive},o.languages.aspnet.tag.inside["attr-value"]),o.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),o.languages.insertBefore("aspnet",o.languages.javascript?"script":"tag",{"asp-script":{pattern:/(