1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dde2f01b-1d82-44e3-a5fc-d00d1b9b54ef",t._sentryDebugIdIdentifier="sentry-dbid-dde2f01b-1d82-44e3-a5fc-d00d1b9b54ef")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[194],{2421:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});let o=(0,i(15021).A)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},11775:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});let o=(0,i(15021).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},15048:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});let o=(0,i(15021).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},21764:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});
1let o=(0,i(15021).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},31404:(t,e,i)=>{"use strict";i.d(e,{p:()=>ti});var o=i(7620),s=i(65711),n=i(97509),r=i(72902),a=i(77011);function h(t,e){for(let i=0,o=t.length;i<o;i++)if(e.apply(e,[t[i],i,t]))return t[i]}function p(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)}function l(t){return"number"==typeof t&&!isNaN(t)}function d(t){return parseInt(t,10)}function u(t,e,i){if(t[e])return Error(`Invalid prop ${e} passed to ${i} - do not set this, set it on the child.`)}var c=["Moz","Webkit","O","ms"];function g(t,e){return e?`${e}${function(t){let e="",i=!0;for(let o=0;o<t.length;o++)i?(e+=t[o].toUpperCase(),i=!1):"-"===t[o]?i=!0:e+=t[o];return e}(t)}`:t}var f=function(t="transform"){var e,i;if("undefined"==typeof window)return"";let o=null==(i=null==(e=window.document)?void 0:e.documentElement)?void 0:i.style;if(!o||t in o)return"";for(let e=0;e<c.length;e++)if(g(t,c[e])in o)return c[e];return""}(),b="";function m(t,e,i){let o=t;do{if(function(t,e){var i;b||(b=null!=(i=h(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(e){return p(t[e])}))?i:"");let o=t[b];return!!p(o)&&!!o.call(t,e)}(o,e))return!0;if(o===i)break;o=o.parentNode}while(o);return!1}function y(t,e,i,o){if(!t)return;let s={capture:!0,...o};t.addEventListener?t.addEventListener(e,i,s):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i}function v(t,e,i,o){if(!t)return;let s={capture:!0,...o};t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=null}function w({x:t,y:e},i,o){let s=`translate(${t}${o},${e}${o})`;if(i){let t=`${"string"==typeof i.x?i.x:i.x+o}`,e=`${"string"==typeof i.y?i.y:i.y+o}`;s=`translate(${t}, ${e})`+s}return s}function x(t){window.requestAnimationFrame?window.requestAnimationFrame(()=>{z(t)}):z(t)}function z(t){if(t)try{var e,i;t.body&&(e=t.body,i="react-draggable-transparent-selection",e.classList?e.classList.remove(i):e.className=e.className.replace(RegExp(`(?:^|\\s)${i}
1(?!\\S)`,"g"),""));let o=t.selection;if(o)o.empty();else{let e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges()}}catch{}}function S(t,e,i){return[Math.round(e/t[0])*t[0],Math.round(i/t[1])*t[1]]}function D(t,e,i){let o="number"==typeof e?t.targetTouches&&h(t.targetTouches,t=>e===t.identifier)||t.changedTouches&&h(t.changedTouches,t=>e===t.identifier):null;if("number"==typeof e&&!o)return null;let s=W(i);return function(t,e,i){let o=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect();return{x:(t.clientX+e.scrollLeft-o.left)/i,y:(t.clientY+e.scrollTop-o.top)/i}}(o||t,i.props.offsetParent||s.offsetParent||s.ownerDocument.body,i.props.scale)}function R(t,e,i){let o=!l(t.lastX),s=W(t);return o?{node:s,deltaX:0,deltaY:0,lastX:e,lastY:i,x:e,y:i}:{node:s,deltaX:e-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:i}}function M(t,e){let i=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/i,y:t.state.y+e.deltaY/i,deltaX:e.deltaX/i,deltaY:e.deltaY/i,lastX:t.state.x,lastY:t.state.y}}function W(t){let e=t.findDOMNode();if(!e)throw Error("<DraggableCore>: Unmounted during event!");return e}function E(...t){a.env.DRAGGABLE_DEBUG&&console.log(...t)}var k={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},N=k.mouse,P=class extends o.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&("number"==typeof t.button&&0!==t.button||t.ctrlKey))return!1;let e=this.findDOMNode();if(!e||!e.ownerDocument||!e.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:o}=e;if(this.props.disabled||!(t.target instanceof o.defaultView.Node)||this.props.handle&&!m(t.target,this.props.handle,e)||this.props.cancel&&m(t.target,this.props.cancel,e))return;"touchstart"!==t.type||this.props.allowMobileScroll||t.preventDefault();let s=function(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0}(t);this.touchIdentifier=s;let n=D(t,s,this);if(null==n)return;let{x:r,y:a}=n,h=R(this,r,a);E("DraggableCore: handleDragStart: %j",h),E("calling",this.props.onStart),!1!==this.props.onStart(t,h)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&function(t,e){var o,s;if(!t)return;let n=t.getElementById("react-draggable-style-el");if(!n){(n=t.createElement("style")).type="text/css",n.id="react-draggable-style-el";let o=null!=e?e:i.nc;o&&n.setAttribute("nonce",o),n.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",n.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(n)}t.body&&(o=t.body,s="react-draggable-transparent-selection",o.classList?o.classList.add(s):o.className.match(RegExp(`(?:^|\\s)${s}(?!\\S)`))||(o.className+=` ${s}`))}(o,this.props.nonce),this.dragging=!0,this.lastX=r,this.lastY=a,y(o,N.move,this.handleDrag),y(o,N.stop,this.handleDragStop))},this.handleDrag=t=>{let e=D(t,this.touchIdentifier,this);if(null==e)return;let{x:i,y:o}=e;if(Array.isArray(this.props.grid)){let t=i-this.lastX,e=o-this.lastY;if([t,e]=S(this.props.grid,t,e),!t&&!e)return;i=this.lastX+t,o=this.lastY+e}let s=R(this,i,o);if(E("DraggableCore: handleDrag: %j",s),!1===this.props.onDrag(t,s)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}return}this.lastX=i,this.lastY=o},this.handleDragStop=t=>{if(!this.dragging)return;let e=D(t,this.touchIdentifier,this);if(null==e)return;let{x:i,y:o}=e;if(Array.isArray(this.props.grid)){let t=i-this.lastX||0,e=o-this.lastY||0;[t,e]=S(this.props.grid,t,e),i=this.lastX+t,o=this.lastY+e}let s=R(this,i,o);if(!1===this.props.onStop(t,s)||!1===this.mounted)return!1;let n=this.findDOMNode();n&&this.props.enableUserSelectHack&&x(n.ownerDocument),E("DraggableCore: handleDragStop: %j",s),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,n&&(E("DraggableCore: Removing handlers"),v(n.ownerDocument,N.move,this.handleDrag),v(n.ownerDocument,N.stop,this.handleDragStop))},this.onMouseDown=t=>(N=k.mouse,this.handleDragStart(t)),this.onMouseUp=t=>(N=k.mouse,this.handleDragStop(t)),this.onTouchStart=t=>(N=k.touch,this.handleDragStart(t)),this.onTouchEnd=t=>(N=k.touch,this.handleDragStop(t))}componentDidMount(){this.mounted=!0;let t=this.findDOMNode();t&&y(t,k.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let t=this.findDOMNode();if(t){let{ownerDocument:e}=t;v(e,k.mouse.move,this.handleDrag),v(e,k.touch.move,this.handleDrag),v(e,k.mouse.stop,this.handleDragStop),v(e,k.touch.stop,this.handleDragStop),v(t,k.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&x(e)}}findDOMNode(){var t;return(null==(t=this.props)?void 0:t.nodeRef)?this.props.nodeRef.current:"function"==typeof n.findDOMNode?n.findDOMNode(this):(E("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};P.displayName="DraggableCore",P.propTypes={allowAnyClick:s.bool,allowMobileScroll:s.bool,children:s.node.isRequired,disabled:s.bool,enableUserSelectHack:s.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:s.arrayOf(s.number),handle:s.string,cancel:s.string,nodeRef:s.object,nonce:s.string,onStart:s.func,onDrag:s.func,onStop:s.func,onMouseDown:s.func,scale:s.number,className:u,style:u,transform:u},P.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var H=class extends o.Component{constructor(t){super(t),this.onDragStart=(t,e)=>{if(E("Draggable: onDragStart: %j",e),!1===this.props.onStart(t,M(this,e)))return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,e)=>{if(!this.state.dragging)return!1;E("Draggable: onDrag: %j",e);let i=M(this,e),o={x:i.x,y:i.y,slackX:0,slackY:0};if(this.props.bounds){let{x:t,y:e}=o;o.x+=this.state.slackX,o.y+=this.state.slackY;
1let[s,n]=function(t,e,i){var o;if(!t.props.bounds)return[e,i];let{bounds:s}=t.props;s="string"==typeof s?s:{left:(o=s).left,top:o.top,right:o.right,bottom:o.bottom};let n=W(t);if("string"==typeof s){let t,{ownerDocument:e}=n,i=e.defaultView;if(!i)throw Error("Cannot resolve the owner window of the draggable node.");if(!((t="parent"===s?n.parentNode:n.getRootNode().querySelector(s))instanceof i.HTMLElement))throw Error('Bounds selector "'+s+'" could not find an element.');let o=i.getComputedStyle(n),r=i.getComputedStyle(t);s={left:-n.offsetLeft+d(r.paddingLeft)+d(o.marginLeft),top:-n.offsetTop+d(r.paddingTop)+d(o.marginTop),right:function(t){let e=t.clientWidth,i=t.ownerDocument.defaultView.getComputedStyle(t);return e-=d(i.paddingLeft),e-=d(i.paddingRight)}(t)-function(t){let e=t.clientWidth,i=t.ownerDocument.defaultView.getComputedStyle(t);return e+=d(i.borderLeftWidth),e+=d(i.borderRightWidth)}(n)-n.offsetLeft+d(r.paddingRight)-d(o.marginRight),bottom:function(t){let e=t.clientHeight,i=t.ownerDocument.defaultView.getComputedStyle(t);return e-=d(i.paddingTop),e-=d(i.paddingBottom)}(t)-function(t){let e=t.clientHeight,i=t.ownerDocument.defaultView.getComputedStyle(t);return e+=d(i.borderTopWidth),e+=d(i.borderBottomWidth)}(n)-n.offsetTop+d(r.paddingBottom)-d(o.marginBottom)}}return l(s.right)&&(e=Math.min(e,s.right)),l(s.bottom)&&(i=Math.min(i,s.bottom)),l(s.left)&&(e=Math.max(e,s.left)),l(s.top)&&(i=Math.max(i,s.top)),[e,i]}(this,o.x,o.y);o.x=s,o.y=n,o.slackX=this.state.slackX+(t-o.x),o.slackY=this.state.slackY+(e-o.y),i.x=o.x,i.y=o.y,i.deltaX=o.x-this.state.x,i.deltaY=o.y-this.state.y}if(!1===this.props.onDrag(t,i))return!1;this.setState(o)},this.onDragStop=(t,e)=>{if(!this.state.dragging||!1===this.props.onStop(t,M(this,e)))return!1;E("Draggable: onDragStop: %j",e);let i={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:t,y:e}=this.props.position;i.x=t,i.y=e}this.setState(i)},this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},t.position&&!(t.onDrag||t.onStop)&&console.warn("A `position` was applied to this <Draggable>, 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.")}static getDerivedStateFromProps({position:t},{prevPropsPosition:e}){return t&&(!e||t.x!==e.x||t.y!==e.y)?(E("Draggable: getDerivedStateFromProps %j",{position:t,prevPropsPosition:e}),{x:t.x,y:t.y,prevPropsPosition:{...t}}):null}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var t;return(null==(t=this.props)?void 0:t.nodeRef)?this.props.nodeRef.current:"function"==typeof n.findDOMNode?n.findDOMNode(this):null}render(){let{axis:t,bounds:e,children:i,defaultPosition:s,defaultClassName:n,defaultClassNameDragging:a,defaultClassNameDragged:h,position:p,positionOffset:l,scale:d,...u}=this.props,c={},b=null,m=!p||this.state.dragging,y=p||s,v={x:("both"===this.props.axis||"x"===this.props.axis)&&m?this.state.x:y.x,y:("both"===this.props.axis||"y"===this.props.axis)&&m?this.state.y:y.y};this.state.isElementSVG?b=w(v,l,""):c=function(t,e){let i=w(t,e,"px");return{[g("transform",f)]:i}}(v,l);let x=o.Children.only(i),z=(0,r.$)(x.props.className||"",n,{[a]:this.state.dragging,[h]:this.state.dragged});return o.createElement(P,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},o.cloneElement(x,{className:z,style:{...x.props.style,...c},transform:b}))}};H.displayName="Draggable",H.propTypes={...P.propTypes,axis:s.oneOf(["both","x","y","none"]),bounds:s.oneOfType([s.shape({left:s.number,right:s.number,top:s.number,bottom:s.number}),s.string,s.oneOf([!1])]),defaultClassName:s.string,defaultClassNameDragging:s.string,defaultClassNameDragged:s.string,defaultPosition:s.shape({x:s.number,y:s.number}),positionOffset:s.shape({x:s.oneOfType([s.number,s.string]),y:s.oneOfType([s.number,s.string])}),position:s.shape({x:s.number,y:s.number}),className:u,style:u,transform:u}
1,H.defaultProps={...P.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var C=i(54568),A=function(){return(A=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},O={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},T={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},L={width:"20px",height:"20px",position:"absolute",zIndex:1},B={top:A(A({},O),{top:"-5px"}),right:A(A({},T),{left:void 0,right:"-5px"}),bottom:A(A({},O),{top:void 0,bottom:"-5px"}),left:A(A({},T),{left:"-5px"}),topRight:A(A({},L),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:A(A({},L),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:A(A({},L),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:A(A({},L),{left:"-10px",top:"-10px",cursor:"nw-resize"})},_=(0,o.memo)(function(t){var e=t.onResizeStart,i=t.direction,s=t.children,n=t.replaceStyles,r=t.className,a=(0,o.useCallback)(function(t){e(t,i)},[e,i]),h=(0,o.useCallback)(function(t){e(t,i)},[e,i]),p=(0,o.useMemo)(function(){return A(A({position:"absolute",userSelect:"none"},B[i]),null!=n?n:{})},[n,i]);return(0,C.jsx)("div",{className:r||void 0,style:p,onMouseDown:a,onTouchStart:h,children:s})}),j=function(){var t=function(e,i){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),F=function(){return(F=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},X={width:"auto",height:"auto"},Y=function(t,e,i){return Math.max(Math.min(t,i),e)},U=function(t,e,i){var o=Math.round(t/e);return o*e+i*(o-1)},G=function(t,e){return RegExp(t,"i").test(e)},I=function(t){return!!(t.touches&&t.touches.length)},$=function(t,e,i){void 0===i&&(i=0);var o=e.reduce(function(i,o,s){return Math.abs(o-t)<Math.abs(e[i]-t)?s:i},0),s=Math.abs(e[o]-t);return 0===i||s<i?e[o]:t},V=function(t){return"auto"===(t=t.toString())||t.endsWith("px")||t.endsWith("%")||t.endsWith("vh")||t.endsWith("vw")||t.endsWith("vmax")||t.endsWith("vmin")?t:"".concat(t,"px")},q=function(t,e,i,o){if(t&&"string"==typeof t){if(t.endsWith("px"))return Number(t.replace("px",""));if(t.endsWith("%")){var s=Number(t.replace("%",""))/100;return e*s}if(t.endsWith("vw")){var s=Number(t.replace("vw",""))/100;return i*s}if(t.endsWith("vh")){var s=Number(t.replace("vh",""))/100;return o*s}}return t},K=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Z="__resizable_base__",J=function(t){function e(e){var i,o,s,n,r=t.call(this,e)||this;return r.ratio=1,r.resizable=null,r.parentLeft=0,r.parentTop=0,r.resizableLeft=0,r.resizableRight=0,r.resizableTop=0,r.resizableBottom=0,r.targetLeft=0,r.targetTop=0,r.delta={width:0,height:0},r.appendBase=function(){if(!r.resizable||!r.window)return null;var t=r.parentNode;if(!t)return null;var e=r.window.document.createElement("div");return e.style.width="100%",e.style.height="100%",e.style.position="absolute",e.style.transform="scale(0, 0)",e.style.left="0",e.style.flex="0 0 100%",e.classList?e.classList.add(Z):e.className+=Z,t.appendChild(e),e},r.removeBase=function(t){var e=r.parentNode;e&&e.removeChild(t)},r.state={isResizing:!1,width:null!=(o=null==(i=r.propsSize)?void 0:i.width)?o:"auto",height:null!=(n=null==(s=r.propsSize)?void 0:s.height)?n:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},r.onResizeStart=r.onResizeStart.bind(r),r.onMouseMove=r.onMouseMove.bind(r),r.onMouseUp=r.onMouseUp.bind(r),r}return j(e,t),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null}
vendor: 4,129 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||X},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var t=0,e=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,o=this.resizable.offsetHeight,s=this.resizable.style.position;"relative"!==s&&(this.resizable.style.position="relative"),t="auto"!==this.resizable.style.width?this.resizable.offsetWidth:i,e="auto"!==this.resizable.style.height?this.resizable.offsetHeight:o,this.resizable.style.position=s}return{width:t,height:e}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var t=this,e=this.props.size,i=function(e){var i;if(void 0===t.state[e]||"auto"===t.state[e])return"auto";if(t.propsSize&&t.propsSize[e]&&(null==(i=t.propsSize[e])?void 0:i.toString().endsWith("%"))){if(t.state[e].toString().endsWith("%"))return t.state[e].toString();var o=t.getParentSize(),s=Number(t.state[e].toString().replace("px",""))/o[e]*100;return"".concat(s,"%")}return V(t.state[e])};return{width:e&&void 0!==e.width&&!this.state.isResizing?V(e.width):i("width"),height:e&&void 0!==e.height&&!this.state.isResizing?V(e.height):i("height")}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var e=!1,i=this.parentNode.style.flexWrap;"wrap"!==i&&(e=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var o={width:t.offsetWidth,height:t.offsetHeight};return e&&(this.parentNode.style.flexWrap=i),this.removeBase(t),o},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(this.resizable&&this.window){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==t.flexBasis?t.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(t,e){var i=this.propsSize&&this.propsSize[e];return"auto"===this.state[e]&&this.state.original[e]===t&&(void 0===i||"auto"===i)?"auto":t},e.prototype.calculateNewMaxFromBoundary=function(t,e){var i,o,s=this.props.boundsByDirection,n=this.state.direction,r=s&&G("left",n),a=s&&G("top",n);if("parent"===this.props.bounds){var h=this.parentNode;h&&(i=r?this.resizableRight-this.parentLeft:h.offsetWidth+(this.parentLeft-this.resizableLeft),o=a?this.resizableBottom-this.parentTop:h.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(i=r?this.resizableRight:this.window.innerWidth-this.resizableLeft,o=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(i=r?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return i&&Number.isFinite(i)&&(t=t&&t<i?t:i),o&&Number.isFinite(o)&&
1(e=e&&e<o?e:o),{maxWidth:t,maxHeight:e}},e.prototype.calculateNewSizeFromDirection=function(t,e){var i,o=this.props.scale||1,s=Array.isArray(i=this.props.resizeRatio||1)?i:[i,i],n=s[0],r=s[1],a=this.state,h=a.direction,p=a.original,l=this.props,d=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,c=l.lockAspectRatioExtraWidth,g=p.width,f=p.height,b=u||0,m=c||0;return G("right",h)&&(g=p.width+(t-p.x)*n/o,d&&(f=(g-m)/this.ratio+b)),G("left",h)&&(g=p.width-(t-p.x)*n/o,d&&(f=(g-m)/this.ratio+b)),G("bottom",h)&&(f=p.height+(e-p.y)*r/o,d&&(g=(f-b)*this.ratio+m)),G("top",h)&&(f=p.height-(e-p.y)*r/o,d&&(g=(f-b)*this.ratio+m)),{newWidth:g,newHeight:f}},e.prototype.calculateNewSizeFromAspectRatio=function(t,e,i,o){var s=this.props,n=s.lockAspectRatio,r=s.lockAspectRatioExtraHeight,a=s.lockAspectRatioExtraWidth,h=void 0===o.width?10:o.width,p=void 0===i.width||i.width<0?t:i.width,l=void 0===o.height?10:o.height,d=void 0===i.height||i.height<0?e:i.height,u=r||0,c=a||0;if(n){var g=(l-u)*this.ratio+c,f=(d-u)*this.ratio+c,b=(h-c)/this.ratio+u,m=(p-c)/this.ratio+u,y=Math.max(l,b),v=Math.min(d,m);t=Y(t,Math.max(h,g),Math.min(p,f)),e=Y(e,y,v)}else t=Y(t,h,p),e=Y(e,l,d);return{newWidth:t,newHeight:e}},e.prototype.setBoundingClientRect=function(){var t=1/(this.props.scale||1);if("parent"===this.props.bounds){var e=this.parentNode;if(e){var i=e.getBoundingClientRect();this.parentLeft=i.left*t,this.parentTop=i.top*t}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left*t,this.targetTop=o.top*t}if(this.resizable){var s=this.resizable.getBoundingClientRect(),n=s.left,r=s.top,a=s.right,h=s.bottom;this.resizableLeft=n*t,this.resizableRight=a*t,this.resizableTop=r*t,this.resizableBottom=h*t}},e.prototype.onResizeStart=function(t,e){if(this.resizable&&this.window){var i,o,s=0,n=0;if(t.nativeEvent&&((i=t.nativeEvent).clientX||0===i.clientX)&&(i.clientY||0===i.clientY)?(s=t.nativeEvent.clientX,n=t.nativeEvent.clientY):t.nativeEvent&&I(t.nativeEvent)&&(s=t.nativeEvent.touches[0].clientX,n=t.nativeEvent.touches[0].clientY),!this.props.onResizeStart||!this.resizable||!1!==this.props.onResizeStart(t,e,this.resizable)){this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var r=this.window.getComputedStyle(this.resizable);if("auto"!==r.flexBasis){var a=this.parentNode;if(a){var h=this.window.getComputedStyle(a).flexDirection;this.flexDir=h.startsWith("row")?"row":"column",o=r.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:s,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:F(F({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:e,flexBasis:o};this.setState(p)}}},e.prototype.onMouseMove=function(t){var e=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&I(t))try{t.preventDefault(),t.stopPropagation()}catch(t){}var i,o,s,r,a,h,p=this.props,l=p.maxWidth,d=p.maxHeight,u=p.minWidth,c=p.minHeight,g=I(t)?t.touches[0].clientX:t.clientX,f=I(t)?t.touches[0].clientY:t.clientY,b=this.state,m=b.direction,y=b.original,v=b.width,w=b.height,x=this.getParentSize(),z=(i=this.window.innerWidth,o=this.window.innerHeight,s=l,r=d,a=u,h=c,s=q(s,x.width,i,o),r=q(r,x.height,i,o),a=q(a,x.width,i,o),h=q(h,x.height,i,o),{maxWidth:void 0===s?void 0:Number(s),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===a?void 0:Number(a),minHeight:void 0===h?void 0:Number(h)});l=z.maxWidth,d=z.maxHeight,u=z.minWidth,c=z.minHeight;var S=this.calculateNewSizeFromDirection(g,f),D=S.newHeight,R=S.newWidth,M=this.calculateNewMaxFromBoundary(l,d);this.props.snap&&this.props.snap.x&&(R=$(R,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(D=$(D,this.props.snap.y,this.props.snapGap));var W=this.calculateNewSizeFromAspectRatio(R,D,{width:M.maxWidth,height:M.maxHeight},{width:u,height:c});if(R=W.newWidth,D=W.newHeight,this.props.grid){var E=U(R,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),k=U(D,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),N=this.props.snapGap||0,P=0===N||Math.abs(E-R)<=N?E:R,H=0===N||Math.abs(k-D)<=N?k:D;R=P,D=H}var C={width:R-y.width,height:D-y.height};if(this.delta=C,v&&"string"==typeof v){if(v.endsWith("%")){var A=R/x.width*100;R="".concat(A,"%")}else if(v.endsWith("vw")){var O=R/this.window.innerWidth*100;R="".concat(O,"vw")}else if(v.endsWith("vh")){var T=R/this.window.innerHeight*100;R="".concat(T,"vh")}}if(w&&"string"==typeof w){if(w.endsWith("%")){var A=D/x.height*100;D="".concat(A,"%")}else if(w.endsWith("vw")){var O=D/this.window.innerWidth*100;D="".concat(O,"vw")}else if(w.endsWith("vh")){var T=D/this.window.innerHeight*100;D="".concat(T,"vh")}}var L={width:this.createSizeForCssProperty(R,"width"),height:this.createSizeForCssProperty(D,"height")};"row"===this.flexDir?L.flexBasis=L.width:"column"===this.flexDir&&(L.flexBasis=L.height);var B=this.state.width!==L.width,_=this.state.height!==L.height,j=this.state.flexBasis!==L.flexBasis,F=B||_||j;F&&(0,n.flushSync)(function(){e.setState(L)}),this.props.onResize&&F&&this.props.onResize(t,m,this.resizable,C)}},e.prototype.onMouseUp=function(t){var e,i,o=this.state,s=o.isResizing,
1n=o.direction;o.original,s&&this.resizable&&(this.props.onResizeStop&&this.props.onResizeStop(t,n,this.resizable,this.delta),this.props.size&&this.setState({width:null!=(e=this.props.size.width)?e:"auto",height:null!=(i=this.props.size.height)?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:F(F({},this.state.backgroundStyle),{cursor:"auto"})}))},e.prototype.updateSize=function(t){var e,i;this.setState({width:null!=(e=t.width)?e:"auto",height:null!=(i=t.height)?i:"auto"})},e.prototype.renderResizer=function(){var t=this,e=this.props,i=e.enable,o=e.handleStyles,s=e.handleClasses,n=e.handleWrapperStyle,r=e.handleWrapperClass,a=e.handleComponent;if(!i)return null;var h=Object.keys(i).map(function(e){return!1!==i[e]?(0,C.jsx)(_,{direction:e,onResizeStart:t.onResizeStart,replaceStyles:o&&o[e],className:s&&s[e],children:a&&a[e]?a[e]:null},e):null});return(0,C.jsx)("div",{className:r,style:n,children:h})},e.prototype.render=function(){var t=this,e=Object.keys(this.props).reduce(function(e,i){return -1!==K.indexOf(i)||(e[i]=t.props[i]),e},{}),i=F(F(F({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return(0,C.jsxs)(o,F({style:i,className:this.props.className},e,{ref:function(e){e&&(t.resizable=e)},children:[this.state.isResizing&&(0,C.jsx)("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e}(o.PureComponent),Q=function(t,e){return(Q=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},tt=function(){return(tt=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},te={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},ti=function(t){function e(){this.constructor=i}function i(e){var i=t.call(this,e)||this;return i.resizingPosition={x:0,y:0},i.offsetFromParent={left:0,top:0},i.resizableElement={current:null},i.originalPosition={x:0,y:0},i.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:e.maxWidth,maxHeight:e.maxHeight},i.onResizeStart=i.onResizeStart.bind(i),i.onResize=i.onResize.bind(i),i.onResizeStop=i.onResizeStop.bind(i),i.onDragStart=i.onDragStart.bind(i),i.onDrag=i.onDrag.bind(i),i.onDragStop=i.onDragStop.bind(i),i.getMaxSizesFromProps=i.getMaxSizesFromProps.bind(i),i}return Q(i,t),i.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e),i.prototype.componentDidMount=function(){this.updateOffsetFromParent();var t=this.offsetFromParent,e=t.left,i=t.top,o=this.getDraggablePosition(),s=o.x,n=o.y;this.draggable.setState({x:s-e,y:n-i}),this.forceUpdate()},i.prototype.getDraggablePosition=function(){var t=this.draggable.state;return{x:t.x,y:t.y}},i.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},i.prototype.getParentSize=function(){return this.resizable.getParentSize()},i.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},i.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},i.prototype.getOffsetHeight=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/e;case"body":return document.body.offsetHeight/e;default:return t.offsetHeight}},i.prototype.getOffsetWidth=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/e;case"body":return document.body.offsetWidth/e;default:return t.offsetWidth}},i.prototype.onDragStart=function(t,e){if(this.props.onDragStart&&!1===this.props.onDragStart(t,e))return!1;var i,o=this.getDraggablePosition();if(this.originalPosition=o,this.props.bounds){var s=this.getParent(),n=this.props.scale;if("parent"===this.props.bounds)i=s;else if("body"===this.props.bounds){var r=s.getBoundingClientRect(),a=r.left,h=r.top,p=document.body.getBoundingClientRect(),l=-(a-s.offsetLeft*n-p.left)/n,d=-(h-s.offsetTop*n-p.top)/n,u=(document.body.offsetWidth-this.resizable.size.width*n)/n+l,c=(document.body.offsetHeight-this.resizable.size.height*n)/n+d;
1return this.setState({bounds:{top:d,right:u,bottom:c,left:l}})}else if("window"===this.props.bounds){if(!this.resizable)return;var g=s.getBoundingClientRect(),f=g.left,b=g.top,m=-(f-s.offsetLeft*n)/n,y=-(b-s.offsetTop*n)/n,u=(window.innerWidth-this.resizable.size.width*n)/n+m,c=(window.innerHeight-this.resizable.size.height*n)/n+y;return this.setState({bounds:{top:y,right:u,bottom:c,left:m}})}else"string"==typeof this.props.bounds?i=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(i=this.props.bounds);if(i instanceof HTMLElement&&s instanceof HTMLElement){var v=i.getBoundingClientRect(),w=v.left,x=v.top,z=s.getBoundingClientRect(),S=z.left,D=z.top,R=(w-S)/n,M=x-D;if(this.resizable){this.updateOffsetFromParent();var W=this.offsetFromParent;this.setState({bounds:{top:M-W.top,right:R+(i.offsetWidth-this.resizable.size.width)-W.left/n,bottom:M+(i.offsetHeight-this.resizable.size.height)-W.top,left:R-W.left/n}})}}}},i.prototype.onDrag=function(t,e){if(this.props.onDrag){var i=this.offsetFromParent,o=i.left,s=i.top;if(!this.props.dragAxis||"both"===this.props.dragAxis)return this.props.onDrag(t,tt(tt({},e),{x:e.x+o,y:e.y+s}));if("x"===this.props.dragAxis)return this.props.onDrag(t,tt(tt({},e),{x:e.x+o,y:this.originalPosition.y+s,deltaY:0}));if("y"===this.props.dragAxis)return this.props.onDrag(t,tt(tt({},e),{x:this.originalPosition.x+o,y:e.y+s,deltaX:0}))}},i.prototype.onDragStop=function(t,e){if(this.props.onDragStop){var i=this.offsetFromParent,o=i.left,s=i.top;if(!this.props.dragAxis||"both"===this.props.dragAxis)return this.props.onDragStop(t,tt(tt({},e),{x:e.x+o,y:e.y+s}));if("x"===this.props.dragAxis)return this.props.onDragStop(t,tt(tt({},e),{x:e.x+o,y:this.originalPosition.y+s,deltaY:0}));if("y"===this.props.dragAxis)return this.props.onDragStop(t,tt(tt({},e),{x:this.originalPosition.x+o,y:e.y+s,deltaX:0}))}},i.prototype.onResizeStart=function(t,e,i){if(this.props.onResizeStart&&!1===this.props.onResizeStart(t,e,i))return!1;t.stopPropagation(),this.setState({resizing:!0});var o=this.props.scale,s=this.offsetFromParent,n=this.getDraggablePosition();if(this.resizingPosition={x:n.x+s.left,y:n.y+s.top},this.originalPosition=n,this.props.bounds){var r=this.getParent(),a=void 0;"parent"===this.props.bounds?a=r:"body"===this.props.bounds?a=document.body:"window"===this.props.bounds?a=window:"string"==typeof this.props.bounds?a=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(a=this.props.bounds);var h=this.getSelfElement();if(h instanceof Element&&(a instanceof HTMLElement||a===window)&&r instanceof HTMLElement){var p=this.getMaxSizesFromProps(),l=p.maxWidth,d=p.maxHeight,u=this.getParentSize();if(l&&"string"==typeof l)if(l.endsWith("%")){var c=Number(l.replace("%",""))/100;l=u.width*c}else l.endsWith("px")&&(l=Number(l.replace("px","")));if(d&&"string"==typeof d)if(d.endsWith("%")){var c=Number(d.replace("%",""))/100;d=u.height*c}else d.endsWith("px")&&(d=Number(d.replace("px","")));var g=h.getBoundingClientRect(),f=g.left,b=g.top,m="window"===this.props.bounds?{left:0,top:0}:a.getBoundingClientRect(),y=m.left,v=m.top,w=this.getOffsetWidth(a),x=this.getOffsetHeight(a),z=e.toLowerCase().endsWith("left"),S=e.toLowerCase().endsWith("right"),D=e.startsWith("top"),R=e.startsWith("bottom");if((z||D)&&this.resizable){var M=(f-y)/o+this.resizable.size.width;this.setState({maxWidth:M>Number(l)?l:M})}if(S||this.props.lockAspectRatio&&!z&&!D){var M=w+(y-f)/o;this.setState({maxWidth:M>Number(l)?l:M})}if((D||z)&&this.resizable){var M=(b-v)/o+this.resizable.size.height;this.setState({maxHeight:M>Number(d)?d:M})}if(R||this.props.lockAspectRatio&&!D&&!z){var M=x+(v-b)/o;this.setState({maxHeight:M>Number(d)?d:M})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight})},i.prototype.onResize=function(t,e,i,o){var s=this,r={x:this.originalPosition.x,y:this.originalPosition.y},a=-o.width,h=-o.height;["top","left","topLeft","bottomLeft","topRight"].includes(e)&&("bottomLeft"===e?r.x+=a:("topRight"===e||(r.x+=a),r.y+=h));var p=this.draggable.state;(r.x!==p.x||r.y!==p.y)&&(0,n.flushSync)(function(){s.draggable.setState(r)}),this.updateOffsetFromParent();var l=this.offsetFromParent,d=this.getDraggablePosition().x+l.left,u=this.getDraggablePosition().y+l.top;this.resizingPosition={x:d,y:u},this.props.onResize&&this.props.onResize(t,e,i,o,{x:d,y:u})}
1,i.prototype.onResizeStop=function(t,e,i,o){this.setState({resizing:!1});var s=this.getMaxSizesFromProps(),n=s.maxWidth,r=s.maxHeight;this.setState({maxWidth:n,maxHeight:r}),this.props.onResizeStop&&this.props.onResizeStop(t,e,i,o,this.resizingPosition)},i.prototype.updateSize=function(t){this.resizable&&this.resizable.updateSize({width:t.width,height:t.height})},i.prototype.updatePosition=function(t){this.draggable.setState(t)},i.prototype.updateOffsetFromParent=function(){var t=this.props.scale,e=this.getParent(),i=this.getSelfElement();if(!e||null===i)return{top:0,left:0};var o=e.getBoundingClientRect(),s=o.left,n=o.top,r=i.getBoundingClientRect(),a=this.getDraggablePosition(),h=e.scrollLeft,p=e.scrollTop;this.offsetFromParent={left:r.left-s+h-a.x*t,top:r.top-n+p-a.y*t}},i.prototype.render=function(){var t,e=this,i=this.props,s=i.disableDragging,n=i.style,r=i.dragHandleClassName,a=i.position,h=i.onMouseDown,p=i.onMouseUp,l=i.dragAxis,d=i.dragGrid,u=i.bounds,c=i.enableUserSelectHack,g=i.cancel,f=i.children,b=(i.onResizeStart,i.onResize,i.onResizeStop,i.onDragStart,i.onDrag,i.onDragStop,i.resizeHandleStyles),m=i.resizeHandleClasses,y=i.resizeHandleComponent,v=i.enableResizing,w=i.resizeGrid,x=i.resizeHandleWrapperClass,z=i.resizeHandleWrapperStyle,S=i.scale,D=i.allowAnyClick,R=i.dragPositionOffset,M=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)0>e.indexOf(o[s])&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]]);return i}(i,["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"]),W=this.props.default?tt({},this.props.default):void 0;delete M.default;var E=tt(tt(tt({},te),s||r?{cursor:"auto"}:{cursor:"move"}),n),k=this.offsetFromParent,N=k.left,P=k.top;a&&(t={x:a.x-N,y:a.y-P});var C=this.state.resizing?void 0:t,A=this.state.resizing?"both":l;return(0,o.createElement)(H,{ref:function(t){t&&(e.draggable=t)},handle:r?".".concat(r):void 0,defaultPosition:W,onMouseDown:h,onMouseUp:p,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:A,disabled:s,grid:d,bounds:u?this.state.bounds:void 0,position:C,enableUserSelectHack:c,cancel:g,scale:S,allowAnyClick:D,nodeRef:this.resizableElement,positionOffset:R},(0,o.createElement)(J,tt({},M,{ref:function(t){t&&(e.resizable=t,e.resizableElement.current=t.resizable)},defaultSize:W,size:this.props.size,enable:"boolean"==typeof v?{bottom:v,bottomLeft:v,bottomRight:v,left:v,right:v,top:v,topLeft:v,topRight:v}:v,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:E,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:w,handleWrapperClass:x,handleWrapperStyle:z,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:b,handleClasses:m,handleComponent:y,scale:this.props.scale}),f))},i.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(){}},i}(o.PureComponent)},42449:(t,e,i)=>{"use strict";var o=i(64798);function s(){}function n(){}n.resetWarningCache=s,t.exports=function(){function t(t,e,i,s,n,r){if(r!==o){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var i={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:n,resetWarningCache:s};return i.PropTypes=i,i}},58142:(t,e,i)=>{"use strict";i.d(e,{A:()=>
1o});let o=(0,i(15021).A)("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},64798:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},65711:(t,e,i)=>{t.exports=i(42449)()},72902:(t,e,i)=>{"use strict";function o(){for(var t,e,i=0,o="",s=arguments.length;i<s;i++)(t=arguments[i])&&(e=function t(e){var i,o,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(i=0;i<n;i++)e[i]&&(o=t(e[i]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}(t))&&(o&&(o+=" "),o+=e);return o}i.d(e,{$:()=>o})},73477:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});let o=(0,i(15021).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},92186:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});let o=(0,i(15021).A)("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},98099:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});
1let o=(0,i(15021).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.