clsx,default:()=>i});const i=clsx},50229:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,b=Object.getOwnPropertyDescriptor,C=function isArray(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},x=function isPlainObject(e){if(!e||"[object Object]"!==n.call(e))return!1;var i,b=t.call(e,"constructor"),C=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!b&&!C)return!1;for(i in e);return void 0===i||t.call(e,i)},w=function setProperty(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},E=function getProperty(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(b)return b(e,n).value}return e[n]};e.exports=function extend(){var e,t,n,i,b,k,_=arguments[0],S=1,P=arguments.length,O=!1;for("boolean"==typeof _&&(O=_,_=arguments[1]||{},S=2),(null==_||"object"!=typeof _&&"function"!=typeof _)&&(_={});S{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,b=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,C=/^:\s*/,x=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,w=/^[;\s]*/,E=/^\s+|\s+$/g,k="";function trim(e){return e?e.replace(E,k):k}e.exports=function(e,E){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];E=E||{};var _=1,S=1;function updatePosition(e){var t=e.match(n);t&&(_+=t.length);var i=e.lastIndexOf("\n");S=~i?e.length-i:S+e.length}function position(){var e={line:_,column:S};return function(t){return t.position=new Position(e),whitespace(),t}}function Position(e){this.start=e,this.end={line:_,column:S},this.source=E.source}Position.prototype.content=e;var P=[];function error(t){var n=new Error(E.source+":"+_+":"+S+": "+t);if(n.reason=t,n.filename=E.source,n.line=_,n.column=S,n.source=e,!E.silent)throw n;P.push(n)}function match(t){var n=t.exec(e);if(n){var i=n[0];return updatePosition(i),e=e.slice(i.length),n}}function whitespace(){match(i)}function comments(e){var t;for(e=e||[];t=comment();)!1!==t&&e.push(t);return e}function comment(){var t=position();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;k!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,k===e.charAt(n-1))return error("End of comment missing");var i=e.slice(2,n-2);return S+=2,updatePosition(i),e=e.slice(n),S+=2,t({type:"comment",comment:i})}}function declaration(){var e=position(),n=match(b);if(n){if(comment(),!match(C))return error("property missing ':'");var i=match(x),E=e({type:"declaration",property:trim(n[0].replace(t,k)),value:i?trim(i[0].replace(t,k)):k});return match(w),E}}return whitespace(),function declarations(){var e,t=[];for(comments(t);e=declaration();)!1!==e&&(t.push(e),comments(t));return t}()}},48809:e=>{e.exports=function isBuffer(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},58772:(e,t,n)=>{"use strict";var i=n(90331);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,b,C,x){if(x!==i){var w=new 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 w.name="Invariant Violation",w}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},23615:(e,t,n)=>{e.exports=n(58772)()},90331:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},78462:function(e,t,n){e.exports=function(e,t){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(e),i=o(t);function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n{"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function get(){return _.default}}),t.default=void 0;var i=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var i={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in e)if("default"!==C&&Object.prototype.hasOwnProperty.call(e,C)){var x=b?Object.getOwnPropertyDescriptor(e,C):null;x&&(x.get||x.set)?Object.defineProperty(i,C,x):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),b=_interopRequireDefault(n(23615)),C=_interopRequireDefault(n(61533)),x=_interopRequireDefault(n(38944)),w=n(88065),E=n(39237),k=n(70972),_=_interopRequireDefault(n(50700)),S=_interopRequireDefault(n(73936)),P=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?n:t})(e)}function _extends(){return _extends=Object.assign||function(e){for(var t=1;t=0||(b[n]=e[n]);return b}(e,t);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(b[n]=e[n])}return b}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n, 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."),n}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(Draggable,[{key:"componentDidMount",value:function componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function findDOMNode(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:C.default.findDOMNode(this)}},{key:"render",value:function render(){var e,t=this.props,n=(t.axis,t.bounds,t.children),b=t.defaultPosition,C=t.defaultClassName,k=t.defaultClassNameDragging,S=t.defaultClassNameDragged,O=t.position,I=t.positionOffset,T=(t.scale,_objectWithoutProperties(t,P)),A={},M=null,R=!Boolean(O)||this.state.dragging,j=O||b,D={x:(0,E.canDragX)(this)&&R?this.state.x:j.x,y:(0,E.canDragY)(this)&&R?this.state.y:j.y};this.state.isElementSVG?M=(0,w.createSVGTransform)(D,I):A=(0,w.createCSSTransform)(D,I);var L=(0,x.default)(n.props.className||"",C,(_defineProperty(e={},k,this.state.dragging),_defineProperty(e,S,this.state.dragged),e));return i.createElement(_.default,_extends({},T,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),i.cloneElement(i.Children.only(n),{className:L,style:_objectSpread(_objectSpread({},n.props.style),A),transform:M}))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(e,t){var n=e.position,i=t.prevPropsPosition;return!n||i&&n.x===i.x&&n.y===i.y?null:((0,S.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:i}),{x:n.x,y:n.y,prevPropsPosition:_objectSpread({},n)})}}]),Draggable}(i.Component);t.default=O,_defineProperty(O,"displayName","Draggable"),_defineProperty(O,"propTypes",_objectSpread(_objectSpread({},_.default.propTypes),{},{axis:b.default.oneOf(["both","x","y","none"]),bounds:b.default.oneOfType([b.default.shape({left:b.default.number,right:b.default.number,top:b.default.number,bottom:b.default.number}),b.default.string,b.default.oneOf([!1])]),defaultClassName:b.default.string,defaultClassNameDragging:b.default.string,defaultClassNameDragged:b.default.string,defaultPosition:b.default.shape({x:b.default.number,y:b.default.number}),positionOffset:b.default.shape({x:b.default.oneOfType([b.default.number,b.default.string]),y:b.default.oneOfType([b.default.number,b.default.string])}),position:b.default.shape({x:b.default.number,y:b.default.number}),className:k.dontSetMe,style:k.dontSetMe,transform:k.dontSetMe})),_defineProperty(O,"defaultProps",_objectSpread(_objectSpread({},_.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},50700:(e,t,n)=>{"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var i={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in e)if("default"!==C&&Object.prototype.hasOwnProperty.call(e,C)){var x=b?Object.getOwnPropertyDescriptor(e,C):null;x&&(x.get||x.set)?Object.defineProperty(i,C,x):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),b=_interopRequireDefault(n(23615)),C=_interopRequireDefault(n(61533)),x=n(88065),w=n(39237),E=n(70972),k=_interopRequireDefault(n(73936));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?n:t})(e)}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,b,C=[],x=!0,w=!1;try{for(n=n.call(e);!(x=(i=n.next()).done)&&(C.push(i.value),!t||C.length!==t);x=!0);}catch(e){w=!0,b=e}finally{try{x||null==n.return||n.return()}finally{if(w)throw b}}return C}(e,t)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n not mounted on DragStart!");var i=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof i.defaultView.Node)||e.props.handle&&!(0,x.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,x.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var b=(0,x.getTouchIdentifier)(t);e.setState({touchIdentifier:b});var C=(0,w.getControlPosition)(t,b,_assertThisInitialized(e));if(null!=C){var E=C.x,_=C.y,S=(0,w.createCoreData)(_assertThisInitialized(e),E,_);(0,k.default)("DraggableCore: handleDragStart: %j",S),(0,k.default)("calling",e.props.onStart),!1!==e.props.onStart(t,S)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,x.addUserSelectStyles)(i),e.setState({dragging:!0,lastX:E,lastY:_}),(0,x.addEvent)(i,P.move,e.handleDrag),(0,x.addEvent)(i,P.stop,e.handleDragStop))}}})),_defineProperty(_assertThisInitialized(e),"handleDrag",(function(t){var n=(0,w.getControlPosition)(t,e.state.touchIdentifier,_assertThisInitialized(e));if(null!=n){var i=n.x,b=n.y;if(Array.isArray(e.props.grid)){var C=i-e.state.lastX,x=b-e.state.lastY,E=_slicedToArray((0,w.snapToGrid)(e.props.grid,C,x),2);if(C=E[0],x=E[1],!C&&!x)return;i=e.state.lastX+C,b=e.state.lastY+x}var _=(0,w.createCoreData)(_assertThisInitialized(e),i,b);if((0,k.default)("DraggableCore: handleDrag: %j",_),!1!==e.props.onDrag(t,_)&&!1!==e.mounted)e.setState({lastX:i,lastY:b});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(S)}}})),_defineProperty(_assertThisInitialized(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,w.getControlPosition)(t,e.state.touchIdentifier,_assertThisInitialized(e));if(null!=n){var i=n.x,b=n.y;if(Array.isArray(e.props.grid)){var C=i-e.state.lastX||0,E=b-e.state.lastY||0,_=_slicedToArray((0,w.snapToGrid)(e.props.grid,C,E),2);C=_[0],E=_[1],i=e.state.lastX+C,b=e.state.lastY+E}var S=(0,w.createCoreData)(_assertThisInitialized(e),i,b);if(!1===e.props.onStop(t,S)||!1===e.mounted)return!1;var O=e.findDOMNode();O&&e.props.enableUserSelectHack&&(0,x.removeUserSelectStyles)(O.ownerDocument),(0,k.default)("DraggableCore: handleDragStop: %j",S),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),O&&((0,k.default)("DraggableCore: Removing handlers"),(0,x.removeEvent)(O.ownerDocument,P.move,e.handleDrag),(0,x.removeEvent)(O.ownerDocument,P.stop,e.handleDragStop))}}})),_defineProperty(_assertThisInitialized(e),"onMouseDown",(function(t){return P=S,e.handleDragStart(t)})),_defineProperty(_assertThisInitialized(e),"onMouseUp",(function(t){return P=S,e.handleDragStop(t)})),_defineProperty(_assertThisInitialized(e),"onTouchStart",(function(t){return P=_,e.handleDragStart(t)})),_defineProperty(_assertThisInitialized(e),"onTouchEnd",(function(t){return P=_,e.handleDragStop(t)})),e}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(DraggableCore,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0;var e=this.findDOMNode();e&&(0,x.addEvent)(e,_.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,x.removeEvent)(t,S.move,this.handleDrag),(0,x.removeEvent)(t,_.move,this.handleDrag),(0,x.removeEvent)(t,S.stop,this.handleDragStop),(0,x.removeEvent)(t,_.stop,this.handleDragStop),(0,x.removeEvent)(e,_.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,x.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function findDOMNode(){var e,t,n;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current:C.default.findDOMNode(this)}},{key:"render",value:function render(){return i.cloneElement(i.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),DraggableCore}(i.Component);t.default=O,_defineProperty(O,"displayName","DraggableCore"),_defineProperty(O,"propTypes",{allowAnyClick:b.default.bool,disabled:b.default.bool,enableUserSelectHack:b.default.bool,offsetParent:function offsetParent(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:b.default.arrayOf(b.default.number),handle:b.default.string,cancel:b.default.string,nodeRef:b.default.object,onStart:b.default.func,onDrag:b.default.func,onStop:b.default.func,onMouseDown:b.default.func,scale:b.default.number,className:E.dontSetMe,style:E.dontSetMe,transform:E.dontSetMe}),_defineProperty(O,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function onStart(){},onDrag:function onDrag(){},onStop:function onStop(){},onMouseDown:function onMouseDown(){},scale:1})},49529:(e,t,n)=>{"use strict";var i=n(55322),b=i.default,C=i.DraggableCore;e.exports=b,e.exports.default=b,e.exports.DraggableCore=C},88065:(e,t,n)=>{"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=addClassName,t.addEvent=function addEvent(e,t,n,i){if(!e)return;var b=_objectSpread({capture:!0},i);e.addEventListener?e.addEventListener(t,n,b):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function addUserSelectStyles(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&addClassName(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function createCSSTransform(e,t){var n=getTranslation(e,t,"px");return _defineProperty({},(0,b.browserPrefixToKey)("transform",b.default),n)},t.createSVGTransform=function createSVGTransform(e,t){return getTranslation(e,t,"")},t.getTouch=function getTouch(e,t){return e.targetTouches&&(0,i.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,i.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function getTouchIdentifier(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=getTranslation,t.innerHeight=function innerHeight(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,i.int)(n.paddingTop),t-=(0,i.int)(n.paddingBottom)},t.innerWidth=function innerWidth(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,i.int)(n.paddingLeft),t-=(0,i.int)(n.paddingRight)},t.matchesSelector=matchesSelector,t.matchesSelectorAndParentsTo=function matchesSelectorAndParentsTo(e,t,n){var i=e;do{if(matchesSelector(i,t))return!0;if(i===n)return!1;i=i.parentNode}while(i);return!1},t.offsetXYFromParent=function offsetXYFromParent(e,t,n){var i=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),b=(e.clientX+t.scrollLeft-i.left)/n,C=(e.clientY+t.scrollTop-i.top)/n;return{x:b,y:C}},t.outerHeight=function outerHeight(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,i.int)(n.borderTopWidth),t+=(0,i.int)(n.borderBottomWidth)},t.outerWidth=function outerWidth(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,i.int)(n.borderLeftWidth),t+=(0,i.int)(n.borderRightWidth)},t.removeClassName=removeClassName,t.removeEvent=function removeEvent(e,t,n,i){if(!e)return;var b=_objectSpread({capture:!0},i);e.removeEventListener?e.removeEventListener(t,n,b):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function removeUserSelectStyles(e){if(!e)return;try{if(e.body&&removeClassName(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var i=n(70972),b=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var i={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in e)if("default"!==C&&Object.prototype.hasOwnProperty.call(e,C)){var x=b?Object.getOwnPropertyDescriptor(e,C):null;x&&(x.get||x.set)?Object.defineProperty(i,C,x):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(42249));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?n:t})(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=browserPrefixToKey,t.browserPrefixToStyle=function browserPrefixToStyle(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=getPrefix;var n=["Moz","Webkit","O","ms"];function getPrefix(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var b=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!b)return"";if(i in b)return"";for(var C=0;C{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function log(){0}},39237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function canDragX(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function canDragY(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function createCoreData(e,t,n){var b=e.state,C=!(0,i.isNum)(b.lastX),x=findDOMNode(e);return C?{node:x,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:x,deltaX:t-b.lastX,deltaY:n-b.lastY,lastX:b.lastX,lastY:b.lastY,x:t,y:n}},t.createDraggableData=function createDraggableData(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function getBoundPosition(e,t,n){if(!e.props.bounds)return[t,n];var C=e.props.bounds;C="string"==typeof C?C:function cloneBounds(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(C);var x=findDOMNode(e);if("string"==typeof C){var w,E=x.ownerDocument,k=E.defaultView;if(!((w="parent"===C?x.parentNode:E.querySelector(C))instanceof k.HTMLElement))throw new Error('Bounds selector "'+C+'" could not find an element.');var _=w,S=k.getComputedStyle(x),P=k.getComputedStyle(_);C={left:-x.offsetLeft+(0,i.int)(P.paddingLeft)+(0,i.int)(S.marginLeft),top:-x.offsetTop+(0,i.int)(P.paddingTop)+(0,i.int)(S.marginTop),right:(0,b.innerWidth)(_)-(0,b.outerWidth)(x)-x.offsetLeft+(0,i.int)(P.paddingRight)-(0,i.int)(S.marginRight),bottom:(0,b.innerHeight)(_)-(0,b.outerHeight)(x)-x.offsetTop+(0,i.int)(P.paddingBottom)-(0,i.int)(S.marginBottom)}}(0,i.isNum)(C.right)&&(t=Math.min(t,C.right));(0,i.isNum)(C.bottom)&&(n=Math.min(n,C.bottom));(0,i.isNum)(C.left)&&(t=Math.max(t,C.left));(0,i.isNum)(C.top)&&(n=Math.max(n,C.top));return[t,n]},t.getControlPosition=function getControlPosition(e,t,n){var i="number"==typeof t?(0,b.getTouch)(e,t):null;if("number"==typeof t&&!i)return null;var C=findDOMNode(n),x=n.props.offsetParent||C.offsetParent||C.ownerDocument.body;return(0,b.offsetXYFromParent)(i||e,x,n.props.scale)},t.snapToGrid=function snapToGrid(e,t,n){var i=Math.round(t/e[0])*e[0],b=Math.round(n/e[1])*e[1];return[i,b]};var i=n(70972),b=n(88065);function findDOMNode(e){var t=e.findDOMNode();if(!t)throw new Error(": Unmounted during event!");return t}},70972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function dontSetMe(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function findInArray(e,t){for(var n=0,i=e.length;n{"use strict";var n,i=Symbol.for("react.element"),b=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),k=Symbol.for("react.context"),_=Symbol.for("react.server_context"),S=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case C:case w:case x:case P:case O:return e;default:switch(e=e&&e.$$typeof){case _:case k:case S:case T:case I:case E:return e;default:return t}}case b:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=k,t.ContextProvider=E,t.Element=i,t.ForwardRef=S,t.Fragment=C,t.Lazy=T,t.Memo=I,t.Portal=b,t.Profiler=w,t.StrictMode=x,t.Suspense=P,t.SuspenseList=O,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===k},t.isContextProvider=function(e){return v(e)===E},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return v(e)===S},t.isFragment=function(e){return v(e)===C},t.isLazy=function(e){return v(e)===T},t.isMemo=function(e){return v(e)===I},t.isPortal=function(e){return v(e)===b},t.isProfiler=function(e){return v(e)===w},t.isStrictMode=function(e){return v(e)===x},t.isSuspense=function(e){return v(e)===P},t.isSuspenseList=function(e){return v(e)===O},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===C||e===w||e===x||e===P||e===O||e===A||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===I||e.$$typeof===E||e.$$typeof===k||e.$$typeof===S||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},19185:(e,t,n)=>{"use strict";e.exports=n(58702)},23866:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Canvas:()=>S,ReactSketchCanvas:()=>P});var i=n(87363);function asyncGeneratorStep(e,t,n,i,b,C,x){try{var w=e[C](x),E=w.value}catch(e){return void n(e)}w.done?t(E):Promise.resolve(E).then(i,b)}function _extends(){return _extends=Object.assign||function(e){for(var t=1;t=0;--b){var C=this.tryEntries[b],x=C.completion;if("root"===C.tryLoc)return handle("end");if(C.tryLoc<=this.prev){var w=i.call(C,"catchLoc"),E=i.call(C,"finallyLoc");if(w&&E){if(this.prev=0;--n){var b=this.tryEntries[n];if(b.tryLoc<=this.prev&&i.call(b,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),P}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var b=i.arg;resetTryEntry(n)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:values(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),P}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(b);var C=b.exports,x=function SvgPath(e){var t=e.paths,n=e.id,b=e.strokeWidth,C=e.strokeColor,x=e.command,w=void 0===x?E:x;if(1===t.length){var k=t[0],_=k.x,S=k.y,P=b/2;return i.createElement("circle",{key:n,id:n,cx:_,cy:S,r:P,stroke:C,fill:C})}var O=t.reduce((function(e,t,n,i){return 0===n?"M "+t.x+","+t.y:e+" "+w(t,n,i)}),"");return i.createElement("path",{key:n,id:n,d:O,fill:"none",strokeLinecap:"round",stroke:C,strokeWidth:b})},w=function controlPoint(e){var t=e.current,n=e.next,i=e.previous,b=e.reverse,C=function line(e,t){var n=t.x-e.x,i=t.y-e.y;return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}}(i||t,n||t),x=C.angle+(b?Math.PI:0),w=.2*C.length;return[t.x+Math.cos(x)*w,t.y+Math.sin(x)*w]},E=function bezierCommand(e,t,n){var i=null,b=null;switch(t){case 0:var C=w({current:e});i=C[0],b=C[1];break;case 1:var x=w({current:n[t-1],next:e});i=x[0],b=x[1];break;default:var E=w({current:n[t-1],previous:n[t-2],next:e});i=E[0],b=E[1]}var k=w({current:e,previous:n[t-1],next:n[t+1],reverse:!0});return"C "+i+","+b+" "+k[0]+","+k[1]+" "+e.x+", "+e.y},k=function Paths(e){var t=e.id,n=e.paths;return i.createElement(i.Fragment,null,n.map((function(e,n){return i.createElement(x,{key:t+"__"+n,paths:e.paths,id:t+"__"+n,strokeWidth:e.strokeWidth,strokeColor:e.strokeColor,command:E})})))},_=function loadImage(e){return new Promise((function(t,n){var i=new Image;i.addEventListener("load",(function(){i.width>0&&t(i),n("Image not found")})),i.addEventListener("error",(function(e){return n(e)})),i.src=e,i.setAttribute("crossorigin","anonymous")}))};function getCanvasWithViewBox(e){var t,n=null==(t=e.firstChild)?void 0:t.cloneNode(!0),i=e.offsetWidth,b=e.offsetHeight;return n.setAttribute("viewBox","0 0 "+i+" "+b),n.setAttribute("width",i.toString()),n.setAttribute("height",b.toString()),{svgCanvas:n,width:i,height:b}}var S=i.forwardRef((function(e,t){var n=e.paths,b=e.isDrawing,w=e.onPointerDown,E=e.onPointerMove,S=e.onPointerUp,P=e.id,O=void 0===P?"react-sketch-canvas":P,I=e.width,T=void 0===I?"100%":I,A=e.height,M=void 0===A?"100%":A,R=e.className,j=void 0===R?"react-sketch-canvas":R,D=e.canvasColor,L=void 0===D?"red":D,N=e.backgroundImage,F=void 0===N?"":N,B=e.exportWithBackgroundImage,z=void 0!==B&&B,W=e.preserveBackgroundImageAspectRatio,G=void 0===W?"none":W,q=e.allowOnlyPointerType,V=void 0===q?"all":q,U=e.style,H=void 0===U?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:U,Z=e.svgStyle,Y=void 0===Z?{}:Z,X=i.useRef(null),$=function getCoordinates(e){var t,n,i,b=null==(t=X.current)?void 0:t.getBoundingClientRect(),C=null!=(n=window.scrollX)?n:0,x=null!=(i=window.scrollY)?i:0;return b?{x:e.pageX-b.left-C,y:e.pageY-b.top-x}:{x:0,y:0}},K=function handlePointerUp(e){"mouse"===e.pointerType&&0!==e.button||"all"!==V&&e.pointerType!==V||S()};i.useImperativeHandle(t,(function(){return{exportImage:function exportImage(e){return new Promise(function(){var t=function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(i,b){var C=e.apply(t,n);function _next(e){asyncGeneratorStep(C,i,b,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(C,i,b,_next,_throw,"throw",e)}_next(void 0)}))}}(C.mark((function _callee(t,n){var i,b,x,w,E,k,S,P;return C.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:if(C.prev=0,i=X.current){C.next=4;break}throw Error("Canvas not rendered yet");case 4:return b=getCanvasWithViewBox(i),x=b.svgCanvas,w=b.width,E=b.height,k="data:image/svg+xml;base64,"+btoa(x.outerHTML),C.next=8,_(k);case 8:if(C.t0=C.sent,S=[C.t0],!z){C.next=21;break}return C.prev=11,C.next=14,_(F);case 14:P=C.sent,S.push(P),C.next=21;break;case 18:C.prev=18,C.t1=C.catch(11),console.warn("exportWithBackgroundImage props is set without a valid background image URL. This option is ignored");case 21:Promise.all(S).then((function(n){var i=document.createElement("canvas");i.setAttribute("width",w.toString()),i.setAttribute("height",E.toString());var b=i.getContext("2d");if(!b)throw Error("Canvas not rendered yet");n.reverse().forEach((function(e){b.drawImage(e,0,0)})),t(i.toDataURL("image/"+e))})).catch((function(e){throw e})),C.next=27;break;case 24:C.prev=24,C.t2=C.catch(0),n(C.t2);case 27:case"end":return C.stop()}}),_callee,null,[[0,24],[11,18]])})));return function(e,n){return t.apply(this,arguments)}}())},exportSvg:function exportSvg(){return new Promise((function(e,t){try{var n,i=null!=(n=X.current)?n:null;if(null!==i){var b,C,x=getCanvasWithViewBox(i).svgCanvas;if(z)return void e(x.outerHTML);null==(b=x.querySelector("#"+O+"__background"))||b.remove(),null==(C=x.querySelector("#"+O+"__canvas-background"))||C.setAttribute("fill",L),e(x.outerHTML)}t(new Error("Canvas not loaded"))}catch(e){t(e)}}))}}})),i.useEffect((function(){return document.addEventListener("pointerup",K),function(){document.removeEventListener("pointerup",K)}}),[K]);var Q=n.filter((function(e){return!e.drawMode})),J=0,ee=n.reduce((function(e,t){return t.drawMode?(void 0===e[J]&&(e[J]=[]),e[J].push(t),e):(J+=1,e)}),[[]]);return i.createElement("div",{role:"presentation",ref:X,className:j,style:_extends({touchAction:"none",width:T,height:M},H),"touch-action":"none",onPointerDown:function handlePointerDown(e){if(!("all"!==V&&e.pointerType!==V||"mouse"===e.pointerType&&0!==e.button)){var t=$(e);w(t)}},onPointerMove:function handlePointerMove(e){if(b&&("all"===V||e.pointerType===V)){var t=$(e);E(t)}},onPointerUp:K},i.createElement("svg",{version:"1.1",baseProfile:"full",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:_extends({width:"100%",height:"100%"},Y),id:O},i.createElement("g",{id:O+"__eraser-stroke-group",display:"none"},i.createElement("rect",{id:O+"__mask-background",x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),Q.map((function(e,t){return i.createElement(x,{key:O+"__eraser-"+t,id:O+"__eraser-"+t,paths:e.paths,strokeColor:"#000000",strokeWidth:e.strokeWidth})}))),i.createElement("defs",null,F&&i.createElement("pattern",{id:O+"__background",x:"0",y:"0",width:"100%",height:"100%",patternUnits:"userSpaceOnUse"},i.createElement("image",{x:"0",y:"0",width:"100%",height:"100%",xlinkHref:F,preserveAspectRatio:G})),Q.map((function(e,t){return i.createElement("mask",{id:O+"__eraser-mask-"+t,key:O+"__eraser-mask-"+t,maskUnits:"userSpaceOnUse"},i.createElement("use",{href:"#"+O+"__mask-background"}),Array.from({length:Q.length-t},(function(e,n){return n+t})).map((function(e){return i.createElement("use",{key:e.toString(),href:"#"+O+"__eraser-"+e.toString()})})))}))),i.createElement("g",{id:O+"__canvas-background-group"},i.createElement("rect",{id:O+"__canvas-background",x:"0",y:"0",width:"100%",height:"100%",fill:F?"url(#"+O+"__background)":L})),ee.map((function(e,t){return i.createElement("g",{id:O+"__stroke-group-"+t,key:O+"__stroke-group-"+t,mask:"url(#"+O+"__eraser-mask-"+t+")"},i.createElement(k,{id:O,paths:e}))}))))})),P=i.forwardRef((function(e,t){var n=e.id,b=void 0===n?"react-sketch-canvas":n,C=e.width,x=void 0===C?"100%":C,w=e.height,E=void 0===w?"100%":w,k=e.className,_=void 0===k?"":k,P=e.canvasColor,O=void 0===P?"white":P,I=e.strokeColor,T=void 0===I?"red":I,A=e.backgroundImage,M=void 0===A?"":A,R=e.exportWithBackgroundImage,j=void 0!==R&&R,D=e.preserveBackgroundImageAspectRatio,L=void 0===D?"none":D,N=e.strokeWidth,F=void 0===N?4:N,B=e.eraserWidth,z=void 0===B?8:B,W=e.allowOnlyPointerType,G=void 0===W?"all":W,q=e.style,V=void 0===q?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:q,U=e.svgStyle,H=void 0===U?{}:U,Z=e.onChange,Y=void 0===Z?function(e){}:Z,X=e.onStroke,$=void 0===X?function(e,t){}:X,K=e.withTimestamp,Q=void 0!==K&&K,J=i.createRef(),ee=i.useState(!0),te=ee[0],ne=ee[1],re=i.useState(!1),oe=re[0],ae=re[1],ie=i.useState([]),le=ie[0],ue=ie[1],ce=i.useState([]),se=ce[0],de=ce[1],fe=i.useState([]),pe=fe[0],me=fe[1],ge=i.useCallback((function(){var e,t,n=null!=(e=null==(t=pe.slice(-1))?void 0:t[0])?e:null;null!==n?$(n,!n.drawMode):console.warn("No stroke found!")}),[oe]);i.useEffect((function(){ge()}),[oe]),i.useEffect((function(){Y(pe)}),[pe]),i.useImperativeHandle(t,(function(){return{eraseMode:function eraseMode(e){ne(!e)},clearCanvas:function clearCanvas(){ue([].concat(pe)),me([])},undo:function undo(){if(0!==le.length)return me([].concat(le)),void ue([]);de((function(e){return[].concat(e,pe.slice(-1))})),me((function(e){return e.slice(0,-1)}))},redo:function redo(){0!==se.length&&(me((function(e){return[].concat(e,se.slice(-1))})),de((function(e){return e.slice(0,-1)})))},exportImage:function exportImage(e){var t,exportImage=null==(t=J.current)?void 0:t.exportImage;if(exportImage)return exportImage(e);throw Error("Export function called before canvas loaded")},exportSvg:function exportSvg(){return new Promise((function(e,t){var n,i=null==(n=J.current)?void 0:n.exportSvg;i?i().then((function(t){e(t)})).catch((function(e){t(e)})):t(Error("Export function called before canvas loaded"))}))},exportPaths:function exportPaths(){return new Promise((function(e,t){try{e(pe)}catch(e){t(e)}}))},loadPaths:function loadPaths(e){me((function(t){return[].concat(t,e)}))},getSketchingTime:function getSketchingTime(){return new Promise((function(e,t){Q||t(new Error("Set 'withTimestamp' prop to get sketching time"));try{e(pe.reduce((function(e,t){var n,i,b=null!=(n=t.startTimestamp)?n:0;return e+((null!=(i=t.endTimestamp)?i:0)-b)}),0))}catch(e){t(e)}}))},resetCanvas:function resetCanvas(){ue([]),de([]),me([])}}}));return i.createElement(S,{ref:J,id:b,width:x,height:E,className:_,canvasColor:O,backgroundImage:M,exportWithBackgroundImage:j,preserveBackgroundImageAspectRatio:L,allowOnlyPointerType:G,style:V,svgStyle:H,paths:pe,isDrawing:oe,onPointerDown:function handlePointerDown(e){ae(!0),de([]);var t={drawMode:te,strokeColor:te?T:"#000000",strokeWidth:te?F:z,paths:[e]};Q&&(t=_extends({},t,{startTimestamp:Date.now(),endTimestamp:0})),me((function(e){return[].concat(e,[t])}))},onPointerMove:function handlePointerMove(e){if(oe){var t=pe.slice(-1)[0],n=_extends({},t,{paths:[].concat(t.paths,[e])});me((function(e){return[].concat(e.slice(0,-1),[n])}))}},onPointerUp:function handlePointerUp(){var e,t;if(oe&&(ae(!1),Q)){var n=null!=(e=null==(t=pe.slice(-1))?void 0:t[0])?e:null;if(null!==n){var i=_extends({},n,{endTimestamp:Date.now()});me((function(e){return[].concat(e.slice(0,-1),[i])}))}}}})}))},55862:(e,t,n)=>{var i=n(3812);function StyleToObject(e,t){var n,b=null;if(!e||"string"!=typeof e)return b;for(var C,x,w=i(e),E="function"==typeof t,k=0,_=w.length;k<_;k++)C=(n=w[k]).property,x=n.value,E?t(C,x,n):x&&(b||(b={}),b[C]=x);return b}e.exports=StyleToObject,e.exports.default=StyleToObject},87363:e=>{"use strict";e.exports=React},61533:e=>{"use strict";e.exports=ReactDOM},62506:e=>{"use strict";e.exports=__UNSTABLE__elementorPackages.icons},5856:e=>{"use strict";e.exports=__UNSTABLE__elementorPackages.ui},38003:e=>{"use strict";e.exports=wp.i18n},98106:e=>{e.exports=function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n{e.exports=function _arrayWithHoles(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},77266:e=>{e.exports=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},10029:e=>{function asyncGeneratorStep(e,t,n,i,b,C,x){try{var w=e[C](x),E=w.value}catch(e){return void n(e)}w.done?t(E):Promise.resolve(E).then(i,b)}e.exports=function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(i,b){var C=e.apply(t,n);function _next(e){asyncGeneratorStep(C,i,b,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(C,i,b,_next,_throw,"throw",e)}_next(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},78983:e=>{e.exports=function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},42081:(e,t,n)=>{var i=n(74040);function _defineProperties(e,t){for(var n=0;n{var i=n(74040);e.exports=function _defineProperty(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},73119:e=>{function _extends(){return e.exports=_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{function _getPrototypeOf(t){return e.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,_getPrototypeOf(t)}e.exports=_getPrototypeOf,e.exports.__esModule=!0,e.exports.default=e.exports},58724:(e,t,n)=>{var i=n(96196);e.exports=function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},73203:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},40608:e=>{e.exports=function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,b,C,x,w=[],E=!0,k=!1;try{if(C=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;E=!1}else for(;!(E=(i=C.call(n)).done)&&(w.push(i.value),w.length!==t);E=!0);}catch(e){k=!0,b=e}finally{try{if(!E&&null!=n.return&&(x=n.return(),Object(x)!==x))return}finally{if(k)throw b}}return w}},e.exports.__esModule=!0,e.exports.default=e.exports},56894:e=>{e.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},70966:(e,t,n)=>{var i=n(22412);e.exports=function _objectWithoutProperties(e,t){if(null==e)return{};var n,b,C=i(e,t);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(e);for(b=0;b=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(C[n]=e[n])}return C},e.exports.__esModule=!0,e.exports.default=e.exports},22412:e=>{e.exports=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,i,b={},C=Object.keys(e);for(i=0;i=0||(b[n]=e[n]);return b},e.exports.__esModule=!0,e.exports.default=e.exports},71173:(e,t,n)=>{var i=n(7501).default,b=n(77266);e.exports=function _possibleConstructorReturn(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)},e.exports.__esModule=!0,e.exports.default=e.exports},21337:(e,t,n)=>{var i=n(7501).default;function _regeneratorRuntime(){"use strict";e.exports=_regeneratorRuntime=function _regeneratorRuntime(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,b=n.hasOwnProperty,C=Object.defineProperty||function(e,t,n){e[t]=n.value},x="function"==typeof Symbol?Symbol:{},w=x.iterator||"@@iterator",E=x.asyncIterator||"@@asyncIterator",k=x.toStringTag||"@@toStringTag";function define(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function define(e,t,n){return e[t]=n}}function wrap(e,t,n,i){var b=t&&t.prototype instanceof Generator?t:Generator,x=Object.create(b.prototype),w=new Context(i||[]);return C(x,"_invoke",{value:makeInvokeMethod(e,n,w)}),x}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=wrap;var _={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var S={};define(S,w,(function(){return this}));var P=Object.getPrototypeOf,O=P&&P(P(values([])));O&&O!==n&&b.call(O,w)&&(S=O);var I=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(S);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){function invoke(n,C,x,w){var E=tryCatch(e[n],e,C);if("throw"!==E.type){var k=E.arg,_=k.value;return _&&"object"==i(_)&&b.call(_,"__await")?t.resolve(_.__await).then((function(e){invoke("next",e,x,w)}),(function(e){invoke("throw",e,x,w)})):t.resolve(_).then((function(e){k.value=e,x(k)}),(function(e){return invoke("throw",e,x,w)}))}w(E.arg)}var n;C(this,"_invoke",{value:function value(e,i){function callInvokeWithMethodAndArg(){return new t((function(t,n){invoke(e,i,t,n)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,t,n){var i="suspendedStart";return function(b,C){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===b)throw C;return doneResult()}for(n.method=b,n.arg=C;;){var x=n.delegate;if(x){var w=maybeInvokeDelegate(x,n);if(w){if(w===_)continue;return w}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var E=tryCatch(e,t,n);if("normal"===E.type){if(i=n.done?"completed":"suspendedYield",E.arg===_)continue;return{value:E.arg,done:n.done}}"throw"===E.type&&(i="completed",n.method="throw",n.arg=E.arg)}}}function maybeInvokeDelegate(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,maybeInvokeDelegate(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),_;var b=tryCatch(i,e.iterator,t.arg);if("throw"===b.type)return t.method="throw",t.arg=b.arg,t.delegate=null,_;var C=b.arg;return C?C.done?(t[e.resultName]=C.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,_):C:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,_)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var t=e[w];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function next(){for(;++n=0;--n){var i=this.tryEntries[n],C=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var x=b.call(i,"catchLoc"),w=b.call(i,"finallyLoc");if(x&&w){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&b.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),_}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var b=i.arg;resetTryEntry(n)}return b}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:values(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),_}},t}e.exports=_regeneratorRuntime,e.exports.__esModule=!0,e.exports.default=e.exports},96196:e=>{function _setPrototypeOf(t,n){return e.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,_setPrototypeOf(t,n)}e.exports=_setPrototypeOf,e.exports.__esModule=!0,e.exports.default=e.exports},40131:(e,t,n)=>{var i=n(17358),b=n(40608),C=n(35068),x=n(56894);e.exports=function _slicedToArray(e,t){return i(e)||b(e,t)||C(e,t)||x()},e.exports.__esModule=!0,e.exports.default=e.exports},56027:(e,t,n)=>{var i=n(7501).default;e.exports=function _toPrimitive(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var b=n.call(e,t||"default");if("object"!==i(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},74040:(e,t,n)=>{var i=n(7501).default,b=n(56027);e.exports=function _toPropertyKey(e){var t=b(e,"string");return"symbol"===i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports},35068:(e,t,n)=>{var i=n(98106);e.exports=function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},50824:(e,t,n)=>{var i=n(21337)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},21477:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ReactMarkdown,uriTransformer:()=>uriTransformer});var i={};n.r(i),n.d(i,{attentionMarkers:()=>Re,contentInitial:()=>Pe,disable:()=>je,document:()=>Se,flow:()=>Ie,flowInitial:()=>Oe,insideSpan:()=>Me,string:()=>Te,text:()=>Ae});var b={};n.r(b),n.d(b,{boolean:()=>Ye,booleanish:()=>Xe,commaOrSpaceSeparated:()=>et,commaSeparated:()=>Je,number:()=>Ke,overloadedBoolean:()=>$e,spaceSeparated:()=>Qe});const C=["http","https","mailto","tel"];function uriTransformer(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const i=t.indexOf(":");if(-1===i)return t;let b=-1;for(;++bb?t:(b=t.indexOf("#"),-1!==b&&i>b?t:"javascript:void(0)")}var x=n(87363),w=n(48809);function stringifyPosition(e){return e&&"object"==typeof e?"position"in e||"type"in e?position(e.position):"start"in e||"end"in e?position(e):"line"in e||"column"in e?point(e):"":""}function point(e){return index(e&&e.line)+":"+index(e&&e.column)}function position(e){return point(e&&e.start)+"-"+point(e&&e.end)}function index(e){return e&&"number"==typeof e?e:1}class VFileMessage extends Error{constructor(e,t,n){const i=[null,null];let b={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?i[1]=n:(i[0]=n.slice(0,e),i[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(b=t.position):"start"in t||"end"in t?b=t:("line"in t||"column"in t)&&(b.start=t)),this.name=stringifyPosition(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=b.start.line,this.column=b.start.column,this.position=b,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}VFileMessage.prototype.file="",VFileMessage.prototype.name="",VFileMessage.prototype.reason="",VFileMessage.prototype.message="",VFileMessage.prototype.stack="",VFileMessage.prototype.fatal=null,VFileMessage.prototype.column=null,VFileMessage.prototype.line=null,VFileMessage.prototype.source=null,VFileMessage.prototype.ruleId=null,VFileMessage.prototype.position=null;const E={basename:function basename(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');assertPath(e);let n,i=0,b=-1,C=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;C--;)if(47===e.charCodeAt(C)){if(n){i=C+1;break}}else b<0&&(n=!0,b=C+1);return b<0?"":e.slice(i,b)}if(t===e)return"";let x=-1,w=t.length-1;for(;C--;)if(47===e.charCodeAt(C)){if(n){i=C+1;break}}else x<0&&(n=!0,x=C+1),w>-1&&(e.charCodeAt(C)===t.charCodeAt(w--)?w<0&&(b=C):(w=-1,b=x));i===b?b=x:b<0&&(b=e.length);return e.slice(i,b)},dirname:function dirname(e){if(assertPath(e),0===e.length)return".";let t,n=-1,i=e.length;for(;--i;)if(47===e.charCodeAt(i)){if(t){n=i;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function extname(e){assertPath(e);let t,n=e.length,i=-1,b=0,C=-1,x=0;for(;n--;){const w=e.charCodeAt(n);if(47!==w)i<0&&(t=!0,i=n+1),46===w?C<0?C=n:1!==x&&(x=1):C>-1&&(x=-1);else if(t){b=n+1;break}}if(C<0||i<0||0===x||1===x&&C===i-1&&C===b+1)return"";return e.slice(C,i)},join:function join(...e){let t,n=-1;for(;++n2){if(i=b.lastIndexOf("/"),i!==b.length-1){i<0?(b="",C=0):(b=b.slice(0,i),C=b.length-1-b.lastIndexOf("/")),x=E,w=0;continue}}else if(b.length>0){b="",C=0,x=E,w=0;continue}t&&(b=b.length>0?b+"/..":"..",C=2)}else b.length>0?b+="/"+e.slice(x+1,E):b=e.slice(x+1,E),C=E-x-1;x=E,w=0}else 46===n&&w>-1?w++:w=-1}return b}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function assertPath(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const k={cwd:function cwd(){return"/"}};function isUrl(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function urlToPath(e){if("string"==typeof e)e=new URL(e);else if(!isUrl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function getPathFromURLPosix(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++nt.length;let b;i&&t.push(done);try{b=e.apply(this,t)}catch(e){if(i&&n)throw e;return done(e)}i||(b instanceof Promise?b.then(then,done):b instanceof Error?done(b):then(b))}function done(e,...i){n||(n=!0,t(e,...i))}function then(e){done(null,e)}}(x,next)(...C):i(null,...C)}}(null,...t)},use:function use(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const P=function base(){const e=trough(),t=[];let n,i={},b=-1;return processor.data=function data(e,t){if("string"==typeof e)return 2===arguments.length?(assertUnfrozen("data",n),i[e]=t,processor):O.call(i,e)&&i[e]||null;if(e)return assertUnfrozen("data",n),i=e,processor;return i},processor.Parser=void 0,processor.Compiler=void 0,processor.freeze=function freeze(){if(n)return processor;for(;++b{if(!e&&t&&n){const i=processor.stringify(t,n);null==i||(!function looksLikeAVFileValue(e){return"string"==typeof e||w(e)}(i)?n.result=i:n.value=i),done(e,n)}else done(e)}))}executor(null,t)},processor.processSync=function processSync(e){let t;processor.freeze(),assertParser("processSync",processor.Parser),assertCompiler("processSync",processor.Compiler);const n=vfile(e);return processor.process(n,done),assertDone("processSync","process",t),n;function done(e){t=!0,bail(e)}},processor;function processor(){const e=base();let n=-1;for(;++nb?0:b+t:t>b?b:t,n=n>0?n:0,i.length<1e4)C=Array.from(i),C.unshift(t,n),[].splice.apply(e,C);else for(n&&[].splice.apply(e,[t,n]);x0?(splice(e,e.length,0,t),e):t}const T={}.hasOwnProperty;function syntaxExtension(e,t){let n;for(n in t){const i=(T.call(e,n)?e[n]:void 0)||(e[n]={}),b=t[n];let C;for(C in b){T.call(i,C)||(i[C]=[]);const e=b[C];constructs(i[C],Array.isArray(e)?e:e?[e]:[])}}}function constructs(e,t){let n=-1;const i=[];for(;++nC))return;const n=t.events.length;let b,w,E=n;for(;E--;)if("exit"===t.events[E][0]&&"chunkFlow"===t.events[E][1].type){if(b){w=t.events[E][1].end;break}b=!0}for(exitContainers(x),e=n;ei;){const i=n[b];t.containerState=i[1],i[0].exit.call(t,e)}n.length=i}function closeFlow(){i.write([null]),b=void 0,i=void 0,t.containerState._closeFlow=void 0}}},W={tokenize:function tokenizeContainer(e,t,n){return factorySpace(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const G={tokenize:function tokenizeBlankLine(e,t,n){return factorySpace(e,(function afterWhitespace(e){return null===e||markdownLineEnding(e)?t(e):n(e)}),"linePrefix")},partial:!0};function subtokenize(e){const t={};let n,i,b,C,x,w,E,k=-1;for(;++k=4?t(b):e.interrupt(i.parser.constructs.flow,n,t)(b)}},partial:!0};const U={tokenize:function initializeFlow(e){const t=this,n=e.attempt(G,(function atBlankEnding(i){if(null===i)return void e.consume(i);return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(e,e.attempt(this.parser.constructs.flow,afterConstruct,e.attempt(q,afterConstruct)),"linePrefix")));return n;function afterConstruct(i){if(null!==i)return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(i)}}};const H={resolveAll:createResolver()},Z=initializeFactory("string"),Y=initializeFactory("text");function initializeFactory(e){return{tokenize:function initializeText(t){const n=this,i=this.parser.constructs[e],b=t.attempt(i,start,notText);return start;function start(e){return atBreak(e)?b(e):notText(e)}function notText(e){if(null!==e)return t.enter("data"),t.consume(e),data;t.consume(e)}function data(e){return atBreak(e)?(t.exit("data"),b(e)):(t.consume(e),data)}function atBreak(e){if(null===e)return!0;const t=i[e];let b=-1;if(t)for(;++b-1&&(x[0]=x[0].slice(i)),C>0&&x.push(e[b].slice(0,C)));return x}(x,e)}function now(){return Object.assign({},i)}function main(){let e;for(;i._indexk?n(b):(e.consume(b),destinationRaw):41===b?_--?(e.consume(b),destinationRaw):(e.exit("chunkString"),e.exit(w),e.exit(x),e.exit(i),t(b)):null===b||markdownLineEndingOrSpace(b)?_?n(b):(e.exit("chunkString"),e.exit(w),e.exit(x),e.exit(i),t(b)):asciiControl(b)?n(b):(e.consume(b),92===b?destinationRawEscape:destinationRaw)}function destinationRawEscape(t){return 40===t||41===t||92===t?(e.consume(t),destinationRaw):destinationRaw(t)}}function factoryLabel(e,t,n,i,b,C){const x=this;let w,E=0;return function start(t){return e.enter(i),e.enter(b),e.consume(t),e.exit(b),e.enter(C),atBreak};function atBreak(k){return null===k||91===k||93===k&&!w||94===k&&!E&&"_hiddenFootnoteSupport"in x.parser.constructs||E>999?n(k):93===k?(e.exit(C),e.enter(b),e.consume(k),e.exit(b),e.exit(i),t):markdownLineEnding(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),atBreak):(e.enter("chunkString",{contentType:"string"}),label(k))}function label(t){return null===t||91===t||93===t||markdownLineEnding(t)||E++>999?(e.exit("chunkString"),atBreak(t)):(e.consume(t),w=w||!markdownSpace(t),92===t?labelEscape:label)}function labelEscape(t){return 91===t||92===t||93===t?(e.consume(t),E++,label):label(t)}}function factoryTitle(e,t,n,i,b,C){let x;return function start(t){return e.enter(i),e.enter(b),e.consume(t),e.exit(b),x=40===t?41:t,atFirstTitleBreak};function atFirstTitleBreak(n){return n===x?(e.enter(b),e.consume(n),e.exit(b),e.exit(i),t):(e.enter(C),atTitleBreak(n))}function atTitleBreak(t){return t===x?(e.exit(C),atFirstTitleBreak(x)):null===t?n(t):markdownLineEnding(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),factorySpace(e,atTitleBreak,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),title(t))}function title(t){return t===x||null===t||markdownLineEnding(t)?(e.exit("chunkString"),atTitleBreak(t)):(e.consume(t),92===t?titleEscape:title)}function titleEscape(t){return t===x||92===t?(e.consume(t),title):title(t)}}function factoryWhitespace(e,t){let n;return function start(i){if(markdownLineEnding(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,start;if(markdownSpace(i))return factorySpace(e,start,n?"linePrefix":"lineSuffix")(i);return t(i)}}function normalizeIdentifier(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ee={name:"definition",tokenize:function tokenizeDefinition(e,t,n){const i=this;let b;return function start(t){return e.enter("definition"),factoryLabel.call(i,e,labelAfter,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function labelAfter(t){return b=normalizeIdentifier(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),factoryWhitespace(e,factoryDestination(e,e.attempt(te,factorySpace(e,after,"whitespace"),factorySpace(e,after,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function after(C){return null===C||markdownLineEnding(C)?(e.exit("definition"),i.parser.defined.includes(b)||i.parser.defined.push(b),t(C)):n(C)}}},te={tokenize:function tokenizeTitle(e,t,n){return function start(t){return markdownLineEndingOrSpace(t)?factoryWhitespace(e,before)(t):n(t)};function before(t){return 34===t||39===t||40===t?factoryTitle(e,factorySpace(e,after,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function after(e){return null===e||markdownLineEnding(e)?t(e):n(e)}},partial:!0};const ne={name:"codeIndented",tokenize:function tokenizeCodeIndented(e,t,n){const i=this;return function start(t){return e.enter("codeIndented"),factorySpace(e,afterStartPrefix,"linePrefix",5)(t)};function afterStartPrefix(e){const t=i.events[i.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?afterPrefix(e):n(e)}function afterPrefix(t){return null===t?after(t):markdownLineEnding(t)?e.attempt(re,afterPrefix,after)(t):(e.enter("codeFlowValue"),content(t))}function content(t){return null===t||markdownLineEnding(t)?(e.exit("codeFlowValue"),afterPrefix(t)):(e.consume(t),content)}function after(n){return e.exit("codeIndented"),t(n)}}},re={tokenize:function tokenizeIndentedContent(e,t,n){const i=this;return start;function start(t){return i.parser.lazy[i.now().line]?n(t):markdownLineEnding(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),start):factorySpace(e,afterPrefix,"linePrefix",5)(t)}function afterPrefix(e){const b=i.events[i.events.length-1];return b&&"linePrefix"===b[1].type&&b[2].sliceSerialize(b[1],!0).length>=4?t(e):markdownLineEnding(e)?start(e):n(e)}},partial:!0};const oe={name:"headingAtx",tokenize:function tokenizeHeadingAtx(e,t,n){const i=this;let b=0;return function start(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),fenceOpenInside(t)};function fenceOpenInside(C){return 35===C&&b++<6?(e.consume(C),fenceOpenInside):null===C||markdownLineEndingOrSpace(C)?(e.exit("atxHeadingSequence"),i.interrupt?t(C):headingBreak(C)):n(C)}function headingBreak(n){return 35===n?(e.enter("atxHeadingSequence"),sequence(n)):null===n||markdownLineEnding(n)?(e.exit("atxHeading"),t(n)):markdownSpace(n)?factorySpace(e,headingBreak,"whitespace")(n):(e.enter("atxHeadingText"),data(n))}function sequence(t){return 35===t?(e.consume(t),sequence):(e.exit("atxHeadingSequence"),headingBreak(t))}function data(t){return null===t||35===t||markdownLineEndingOrSpace(t)?(e.exit("atxHeadingText"),headingBreak(t)):(e.consume(t),data)}},resolve:function resolveHeadingAtx(e,t){let n,i,b=e.length-2,C=3;"whitespace"===e[C][1].type&&(C+=2);b-2>C&&"whitespace"===e[b][1].type&&(b-=2);"atxHeadingSequence"===e[b][1].type&&(C===b-1||b-4>C&&"whitespace"===e[b-2][1].type)&&(b-=C+1===b?2:4);b>C&&(n={type:"atxHeadingText",start:e[C][1].start,end:e[b][1].end},i={type:"chunkText",start:e[C][1].start,end:e[b][1].end,contentType:"text"},splice(e,C,b-C+1,[["enter",n,t],["enter",i,t],["exit",i,t],["exit",n,t]]));return e}};const ae={name:"setextUnderline",tokenize:function tokenizeSetextUnderline(e,t,n){const i=this;let b,C,x=i.events.length;for(;x--;)if("lineEnding"!==i.events[x][1].type&&"linePrefix"!==i.events[x][1].type&&"content"!==i.events[x][1].type){C="paragraph"===i.events[x][1].type;break}return function start(t){if(!i.parser.lazy[i.now().line]&&(i.interrupt||C))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),b=t,closingSequence(t);return n(t)};function closingSequence(t){return t===b?(e.consume(t),closingSequence):(e.exit("setextHeadingLineSequence"),factorySpace(e,closingSequenceEnd,"lineSuffix")(t))}function closingSequenceEnd(i){return null===i||markdownLineEnding(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}},resolveTo:function resolveToSetextUnderline(e,t){let n,i,b,C=e.length;for(;C--;)if("enter"===e[C][0]){if("content"===e[C][1].type){n=C;break}"paragraph"===e[C][1].type&&(i=C)}else"content"===e[C][1].type&&e.splice(C,1),b||"definition"!==e[C][1].type||(b=C);const x={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};e[i][1].type="setextHeadingText",b?(e.splice(i,0,["enter",x,t]),e.splice(b+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[b][1].end)):e[n][1]=x;return e.push(["exit",x,t]),e}};const ie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],le=["pre","script","style","textarea"],ue={name:"htmlFlow",tokenize:function tokenizeHtmlFlow(e,t,n){const i=this;let b,C,x,w,E;return function start(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),open};function open(w){return 33===w?(e.consume(w),declarationStart):47===w?(e.consume(w),tagCloseStart):63===w?(e.consume(w),b=3,i.interrupt?t:continuationDeclarationInside):A(w)?(e.consume(w),x=String.fromCharCode(w),C=!0,tagName):n(w)}function declarationStart(C){return 45===C?(e.consume(C),b=2,commentOpenInside):91===C?(e.consume(C),b=5,x="CDATA[",w=0,cdataOpenInside):A(C)?(e.consume(C),b=4,i.interrupt?t:continuationDeclarationInside):n(C)}function commentOpenInside(b){return 45===b?(e.consume(b),i.interrupt?t:continuationDeclarationInside):n(b)}function cdataOpenInside(b){return b===x.charCodeAt(w++)?(e.consume(b),w===x.length?i.interrupt?t:continuation:cdataOpenInside):n(b)}function tagCloseStart(t){return A(t)?(e.consume(t),x=String.fromCharCode(t),tagName):n(t)}function tagName(w){return null===w||47===w||62===w||markdownLineEndingOrSpace(w)?47!==w&&C&&le.includes(x.toLowerCase())?(b=1,i.interrupt?t(w):continuation(w)):ie.includes(x.toLowerCase())?(b=6,47===w?(e.consume(w),basicSelfClosing):i.interrupt?t(w):continuation(w)):(b=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(w):C?completeAttributeNameBefore(w):completeClosingTagAfter(w)):45===w||j(w)?(e.consume(w),x+=String.fromCharCode(w),tagName):n(w)}function basicSelfClosing(b){return 62===b?(e.consume(b),i.interrupt?t:continuation):n(b)}function completeClosingTagAfter(t){return markdownSpace(t)?(e.consume(t),completeClosingTagAfter):completeEnd(t)}function completeAttributeNameBefore(t){return 47===t?(e.consume(t),completeEnd):58===t||95===t||A(t)?(e.consume(t),completeAttributeName):markdownSpace(t)?(e.consume(t),completeAttributeNameBefore):completeEnd(t)}function completeAttributeName(t){return 45===t||46===t||58===t||95===t||j(t)?(e.consume(t),completeAttributeName):completeAttributeNameAfter(t)}function completeAttributeNameAfter(t){return 61===t?(e.consume(t),completeAttributeValueBefore):markdownSpace(t)?(e.consume(t),completeAttributeNameAfter):completeAttributeNameBefore(t)}function completeAttributeValueBefore(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),E=t,completeAttributeValueQuoted):markdownSpace(t)?(e.consume(t),completeAttributeValueBefore):(E=null,completeAttributeValueUnquoted(t))}function completeAttributeValueQuoted(t){return null===t||markdownLineEnding(t)?n(t):t===E?(e.consume(t),completeAttributeValueQuotedAfter):(e.consume(t),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||markdownLineEndingOrSpace(t)?completeAttributeNameAfter(t):(e.consume(t),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(e){return 47===e||62===e||markdownSpace(e)?completeAttributeNameBefore(e):n(e)}function completeEnd(t){return 62===t?(e.consume(t),completeAfter):n(t)}function completeAfter(t){return markdownSpace(t)?(e.consume(t),completeAfter):null===t||markdownLineEnding(t)?continuation(t):n(t)}function continuation(t){return 45===t&&2===b?(e.consume(t),continuationCommentInside):60===t&&1===b?(e.consume(t),continuationRawTagOpen):62===t&&4===b?(e.consume(t),continuationClose):63===t&&3===b?(e.consume(t),continuationDeclarationInside):93===t&&5===b?(e.consume(t),continuationCharacterDataInside):!markdownLineEnding(t)||6!==b&&7!==b?null===t||markdownLineEnding(t)?continuationAtLineEnding(t):(e.consume(t),continuation):e.check(ce,continuationClose,continuationAtLineEnding)(t)}function continuationAtLineEnding(t){return e.exit("htmlFlowData"),htmlContinueStart(t)}function htmlContinueStart(t){return null===t?done(t):markdownLineEnding(t)?e.attempt({tokenize:htmlLineEnd,partial:!0},htmlContinueStart,done)(t):(e.enter("htmlFlowData"),continuation(t))}function htmlLineEnd(e,t,n){return function start(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),lineStart};function lineStart(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}function continuationCommentInside(t){return 45===t?(e.consume(t),continuationDeclarationInside):continuation(t)}function continuationRawTagOpen(t){return 47===t?(e.consume(t),x="",continuationRawEndTag):continuation(t)}function continuationRawEndTag(t){return 62===t&&le.includes(x.toLowerCase())?(e.consume(t),continuationClose):A(t)&&x.length<8?(e.consume(t),x+=String.fromCharCode(t),continuationRawEndTag):continuation(t)}function continuationCharacterDataInside(t){return 93===t?(e.consume(t),continuationDeclarationInside):continuation(t)}function continuationDeclarationInside(t){return 62===t?(e.consume(t),continuationClose):45===t&&2===b?(e.consume(t),continuationDeclarationInside):continuation(t)}function continuationClose(t){return null===t||markdownLineEnding(t)?(e.exit("htmlFlowData"),done(t)):(e.consume(t),continuationClose)}function done(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function resolveToHtmlFlow(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},ce={tokenize:function tokenizeNextBlank(e,t,n){return function start(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(G,t,n)}},partial:!0};const se={name:"codeFenced",tokenize:function tokenizeCodeFenced(e,t,n){const i=this,b={tokenize:function tokenizeClosingFence(e,t,n){let i=0;return factorySpace(e,closingSequenceStart,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function closingSequenceStart(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),closingSequence(t)}function closingSequence(t){return t===E?(e.consume(t),i++,closingSequence):i1&&e[_][1].end.offset-e[_][1].start.offset>1?2:1;const S=Object.assign({},e[n][1].end),P=Object.assign({},e[_][1].start);movePoint(S,-w),movePoint(P,w),C={type:w>1?"strongSequence":"emphasisSequence",start:S,end:Object.assign({},e[n][1].end)},x={type:w>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[_][1].start),end:P},b={type:w>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[_][1].start)},i={type:w>1?"strong":"emphasis",start:Object.assign({},C.start),end:Object.assign({},x.end)},e[n][1].end=Object.assign({},C.start),e[_][1].start=Object.assign({},x.end),E=[],e[n][1].end.offset-e[n][1].start.offset&&(E=push(E,[["enter",e[n][1],t],["exit",e[n][1],t]])),E=push(E,[["enter",i,t],["enter",C,t],["exit",C,t],["enter",b,t]]),E=push(E,resolveAll(t.parser.constructs.insideSpan.null,e.slice(n+1,_),t)),E=push(E,[["exit",b,t],["enter",x,t],["exit",x,t],["exit",i,t]]),e[_][1].end.offset-e[_][1].start.offset?(k=2,E=push(E,[["enter",e[_][1],t],["exit",e[_][1],t]])):k=0,splice(e,n-1,_-n+3,E),_=n+E.length-k-2;break}_=-1;for(;++_13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"":String.fromCharCode(n)}const Le=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decode(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return decodeNumericCharacterReference(n.slice(t?2:1),t?16:10)}return decodeNamedCharacterReference(n)||e}const Ne={}.hasOwnProperty,fromMarkdown=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function compiler(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading),blockQuote:opener(blockQuote),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(codeText,buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(definition),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(emphasis),hardBreakEscape:opener(hardBreak),hardBreakTrailing:opener(hardBreak),htmlFlow:opener(html,buffer),htmlFlowData:onenterdata,htmlText:opener(html,buffer),htmlTextData:onenterdata,image:opener(image),label:buffer,link:opener(link),listItem:opener(listItem),listItemValue:onenterlistitemvalue,listOrdered:opener(list,onenterlistordered),listUnordered:opener(list),paragraph:opener(paragraph),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading),strong:opener(strong),thematicBreak:opener(thematicBreak)},exit:{atxHeading:closer(),atxHeadingSequence:onexitatxheadingsequence,autolink:closer(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:onexitcharacterreferencevalue,codeFenced:closer(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:closer(onexitcodeindented),codeText:closer(onexitcodetext),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(onexithtmlflow),htmlFlowData:onexitdata,htmlText:closer(onexithtmltext),htmlTextData:onexitdata,image:closer(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:closer(onexitlink),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:closer(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:closer(),thematicBreak:closer()}};configure(t,(e||{}).mdastExtensions||[]);const n={};return compile;function compile(e){let n={type:"root",children:[]};const i={stack:[n],tokenStack:[],config:t,enter,exit,buffer,resume,setData,getData},b=[];let C=-1;for(;++C0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||defaultOnError).call(i,void 0,e[0])}for(n.position={start:lib_point(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lib_point(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},C=-1;++C{const n=this.data("settings");return fromMarkdown(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})};function normalizeUri(e){const t=[];let n=-1,i=0,b=0;for(;++n55295&&C<57344){const t=e.charCodeAt(n+1);C<56320&&t>56319&&t<57344?(x=String.fromCharCode(C,t),b=1):x=""}else x=String.fromCharCode(C);x&&(t.push(e.slice(i,n),encodeURIComponent(x)),i=n+b+1,x=""),b&&(n+=b,b=0)}return t.join("")+e.slice(i)}const convert=function(e){if(null==e)return ok;if("string"==typeof e)return function typeFactory(e){return castFactory(type);function type(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function anyFactory(e){const t=[];let n=-1;for(;++n":"")+")"})}return visit;function visit(){let E,k,_,S=[];if((!t||b(e,x,w[w.length-1]||null))&&(S=function toResult(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(n(e,w)),false===S[0]))return S;if(e.children&&"skip"!==S[0])for(k=(i?e.children.length:-1)+C,_=w.concat(e);k>-1&&k-1?n.offset:null}}}const We={}.hasOwnProperty;function clean(e){return String(e||"").toUpperCase()}function footnoteReference(e,t){const n=String(t.identifier).toUpperCase(),i=normalizeUri(n.toLowerCase()),b=e.footnoteOrder.indexOf(n);let C;-1===b?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,C=e.footnoteOrder.length):(e.footnoteCounts[n]++,C=b+1);const x=e.footnoteCounts[n],w={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(x>1?"-"+x:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(C)}]};e.patch(t,w);const E={type:"element",tagName:"sup",properties:{},children:[w]};return e.patch(t,E),e.applyData(t,E)}function revert(e,t){const n=t.referenceType;let i="]";if("collapsed"===n?i+="[]":"full"===n&&(i+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+i};const b=e.all(t),C=b[0];C&&"text"===C.type?C.value="["+C.value:b.unshift({type:"text",value:"["});const x=b[b.length-1];return x&&"text"===x.type?x.value+=i:b.push({type:"text",value:i}),b}function listItemLoose(e){const t=e.spread;return null==t?e.children.length>1:t}const Ge=9,qe=32;function trimLines(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),b=0;const C=[];for(;i;)C.push(trimLine(t.slice(b,i.index),b>0,!0),i[0]),b=i.index+i[0].length,i=n.exec(t);return C.push(trimLine(t.slice(b),b>0,!1)),C.join("")}function trimLine(e,t,n){let i=0,b=e.length;if(t){let t=e.codePointAt(i);for(;t===Ge||t===qe;)i++,t=e.codePointAt(i)}if(n){let t=e.codePointAt(b-1);for(;t===Ge||t===qe;)b--,t=e.codePointAt(b-1)}return b>i?e.slice(i,b):""}const Ve={blockquote:function blockquote(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function hardBreak(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function code(e,t){const n=t.value?t.value+"\n":"",i=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,b={};i&&(b.className=["language-"+i]);let C={type:"element",tagName:"code",properties:b,children:[{type:"text",value:n}]};return t.meta&&(C.data={meta:t.meta}),e.patch(t,C),C=e.applyData(t,C),C={type:"element",tagName:"pre",properties:{},children:[C]},e.patch(t,C),C},delete:function strikethrough(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function emphasis(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference,footnote:function footnote(e,t){const n=e.footnoteById;let i=1;for(;i in n;)i++;const b=String(i);return n[b]={type:"footnoteDefinition",identifier:b,children:[{type:"paragraph",children:t.children}],position:t.position},footnoteReference(e,{type:"footnoteReference",identifier:b,position:t.position})},heading:function heading(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function html(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function imageReference(e,t){const n=e.definition(t.identifier);if(!n)return revert(e,t);const i={src:normalizeUri(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(i.title=n.title);const b={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,b),e.applyData(t,b)},image:function image_image(e,t){const n={src:normalizeUri(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)},inlineCode:function inlineCode(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)},linkReference:function linkReference(e,t){const n=e.definition(t.identifier);if(!n)return revert(e,t);const i={href:normalizeUri(n.url||"")};null!==n.title&&void 0!==n.title&&(i.title=n.title);const b={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,b),e.applyData(t,b)},link:function link_link(e,t){const n={href:normalizeUri(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},listItem:function listItem(e,t,n){const i=e.all(t),b=n?function listLoose(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),C.className=["task-list-item"]}let w=-1;for(;++w0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},C=Be(t.children[1]),x=ze(t.children[t.children.length-1]);C.line&&x.line&&(i.position={start:C,end:x}),b.push(i)}const C={type:"element",tagName:"table",properties:{},children:e.wrap(b,!0)};return e.patch(t,C),e.applyData(t,C)},tableCell:function tableCell(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function tableRow(e,t,n){const i=n?n.children:void 0,b=0===(i?i.indexOf(t):1)?"th":"td",C=n&&"table"===n.type?n.align:void 0,x=C?C.length:t.children.length;let w=-1;const E=[];for(;++w{const n=clean(e.identifier);n&&!We.call(t,n)&&(t[n]=e)})),function definition(e){const n=clean(e);return n&&We.call(t,n)?t[n]:null}}(e),state.footnoteById=b,state.footnoteOrder=[],state.footnoteCounts={},state.patch=patch,state.applyData=applyData,state.one=function oneBound(e,t){return state_one(state,e,t)},state.all=function allBound(e){return state_all(state,e)},state.wrap=state_wrap,state.augment=augment,visit(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Ue.call(b,t)||(b[t]=e)})),state;function augment(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function generated(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)})(n)||(t.position={start:Be(n),end:ze(n)})}return t}function state(e,t,n,i){return Array.isArray(n)&&(i=n,n={}),augment(e,{type:"element",tagName:t,properties:n||{},children:i||[]})}}function patch(e,t){e.position&&(t.position=function lib_position(e){return{start:Be(e),end:ze(e)}}(e))}function applyData(e,t){let n=t;if(e&&e.data){const t=e.data.hName,i=e.data.hChildren,b=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&b&&(n.properties={...n.properties,...b}),"children"in n&&n.children&&null!=i&&(n.children=i)}return n}function state_one(e,t,n){const i=t&&t.type;if(!i)throw new Error("Expected node, got `"+t+"`");return Ue.call(e.handlers,i)?e.handlers[i](e,t,n):e.passThrough&&e.passThrough.includes(i)?"children"in t?{...t,children:state_all(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function defaultUnknownHandler(e,t){const n=t.data||{},i=!("value"in t)||Ue.call(n,"hProperties")||Ue.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:state_all(e,t)}:{type:"text",value:t.value};return e.patch(t,i),e.applyData(t,i)}(e,t)}function state_all(e,t){const n=[];if("children"in t){const i=t.children;let b=-1;for(;++b0&&n.push({type:"text",value:"\n"}),n}function toHast(e,t){const n=createState(e,t),i=n.one(e,null),b=function footer(e){const t=[];let n=-1;for(;++n1?"-"+w:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};w>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(w)}]}),E.length>0&&E.push({type:"text",value:" "}),E.push(t)}const k=b[b.length-1];if(k&&"element"===k.type&&"p"===k.tagName){const e=k.children[k.children.length-1];e&&"text"===e.type?e.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...E)}else b.push(...E);const _={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+x},children:e.wrap(b,!0)};e.patch(i,_),t.push(_)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return b&&i.children.push({type:"text",value:"\n"},b),Array.isArray(i)?{type:"root",children:i}:i}const lib=function(e,t){return e&&"run"in e?function bridge(e,t){return(n,i,b)=>{e.run(toHast(n,t),i,(e=>{b(e)}))}}(e,t):function mutate(e){return t=>toHast(t,e)}(e||t)};var He=n(23615);class Schema{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function merge(e,t){const n={},i={};let b=-1;for(;++b"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ot=create({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(e,t){return t in e?e[t]:t}function caseInsensitiveTransform(e,t){return caseSensitiveTransform(e,t.toLowerCase())}const at=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),it=create({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Xe,ariaAutoComplete:null,ariaBusy:Xe,ariaChecked:Xe,ariaColCount:Ke,ariaColIndex:Ke,ariaColSpan:Ke,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:Xe,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:Xe,ariaFlowTo:Qe,ariaGrabbed:Xe,ariaHasPopup:null,ariaHidden:Xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:Ke,ariaLive:null,ariaModal:Xe,ariaMultiLine:Xe,ariaMultiSelectable:Xe,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:Ke,ariaPressed:Xe,ariaReadOnly:Xe,ariaRelevant:null,ariaRequired:Xe,ariaRoleDescription:Qe,ariaRowCount:Ke,ariaRowIndex:Ke,ariaRowSpan:Ke,ariaSelected:Xe,ariaSetSize:Ke,ariaSort:null,ariaValueMax:Ke,ariaValueMin:Ke,ariaValueNow:Ke,ariaValueText:null,role:null}}),lt=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Je,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:Ye,allowPaymentRequest:Ye,allowUserMedia:Ye,alt:null,as:null,async:Ye,autoCapitalize:null,autoComplete:Qe,autoFocus:Ye,autoPlay:Ye,capture:Ye,charSet:null,checked:Ye,cite:null,className:Qe,cols:Ke,colSpan:null,content:null,contentEditable:Xe,controls:Ye,controlsList:Qe,coords:Ke|Je,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ye,defer:Ye,dir:null,dirName:null,disabled:Ye,download:$e,draggable:Xe,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ye,formTarget:null,headers:Qe,height:Ke,hidden:Ye,high:Ke,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Ye,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:Ye,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ye,low:Ke,manifest:null,max:null,maxLength:Ke,media:null,method:null,min:null,minLength:Ke,multiple:Ye,muted:Ye,name:null,nonce:null,noModule:Ye,noValidate:Ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onScrollEnd: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:Ye,optimum:Ke,pattern:null,ping:Qe,placeholder:null,playsInline:Ye,poster:null,preload:null,readOnly:Ye,referrerPolicy:null,rel:Qe,required:Ye,reversed:Ye,rows:Ke,rowSpan:Ke,sandbox:Qe,scope:null,scoped:Ye,seamless:Ye,selected:Ye,shape:null,size:Ke,sizes:null,slot:null,span:Ke,spellCheck:Xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ke,step:null,style:null,tabIndex:Ke,target:null,title:null,translate:null,type:null,typeMustMatch:Ye,useMap:null,value:Xe,width:Ke,wrap:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:Ke,borderColor:null,bottomMargin:Ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ye,declare:Ye,event:null,face:null,frame:null,frameBorder:null,hSpace:Ke,leftMargin:Ke,link:null,longDesc:null,lowSrc:null,marginHeight:Ke,marginWidth:Ke,noResize:Ye,noHref:Ye,noShade:Ye,noWrap:Ye,object:null,profile:null,prompt:null,rev:null,rightMargin:Ke,rules:null,scheme:null,scrolling:Xe,standby:null,summary:null,text:null,topMargin:Ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ye,disableRemotePlayback:Ye,prefix:null,property:null,results:Ke,security:null,unselectable:null}}),ut=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:et,accentHeight:Ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ke,amplitude:Ke,arabicForm:null,ascent:Ke,attributeName:null,attributeType:null,azimuth:Ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ke,by:null,calcMode:null,capHeight:Ke,className:Qe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ke,diffuseConstant:Ke,direction:null,display:null,dur:null,divisor:Ke,dominantBaseline:null,download:Ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ke,enableBackground:null,end:null,event:null,exponent:Ke,externalResourcesRequired:null,fill:null,fillOpacity:Ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Je,g2:Je,glyphName:Je,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ke,horizOriginX:Ke,horizOriginY:Ke,id:null,ideographic:Ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ke,k:Ke,k1:Ke,k2:Ke,k3:Ke,k4:Ke,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose: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,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ke,overlineThickness:Ke,paintOrder:null,panose1:null,path:null,pathLength:Ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ke,pointsAtY:Ke,pointsAtZ:Ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ke,specularExponent:Ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ke,strikethroughThickness:Ke,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ke,strokeOpacity:Ke,strokeWidth:null,style:null,surfaceScale:Ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:Ke,tableValues:null,target:null,targetX:Ke,targetY:Ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,u1:null,u2:null,underlinePosition:Ke,underlineThickness:Ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ke,values:null,vAlphabetic:Ke,vMathematical:Ke,vectorEffect:null,vHanging:Ke,vIdeographic:Ke,version:null,vertAdvY:Ke,vertOriginX:Ke,vertOriginY:Ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ct=merge([ot,rt,at,it,lt],"html"),st=merge([ot,rt,at,it,ut],"svg");function rehypeFilter(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{visit(t,"element",((t,n,i)=>{const b=i;let C;if(e.allowedElements?C=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(C=e.disallowedElements.includes(t.tagName)),!C&&e.allowElement&&"number"==typeof n&&(C=!e.allowElement(t,n,b)),C&&"number"==typeof n)return e.unwrapDisallowed&&t.children?b.children.splice(n,1,...t.children):b.children.splice(n,1),n}))}}var dt=n(19185);function whitespace(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const ft=/^data[-\w.:]+$/i,pt=/-[a-z]/g,mt=/[A-Z]/g;function kebab(e){return"-"+e.toLowerCase()}function camelcase(e){return e.charAt(1).toUpperCase()}const gt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};const ht=n(55862),yt={}.hasOwnProperty,vt=new Set(["table","thead","tbody","tfoot","tr"]);function childrenToReact(e,t){const n=[];let i,b=-1;for(;++b0?x.createElement(I,k,P):x.createElement(I,k)}function getElementsBeforeCount(e,t){let n=-1,i=0;for(;++n4&&"data"===n.slice(0,4)&&ft.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(pt,camelcase);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!pt.test(e)){let n=e.replace(mt,kebab);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}b=DefinedInfo}return new b(i,t)}(i.schema,t);let C=n;null!=C&&C==C&&(Array.isArray(C)&&(C=b.commaSeparated?function comma_separated_tokens_stringify(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(C):function stringify(e){return e.join(" ").trim()}(C)),"style"===b.property&&"string"==typeof C&&(C=function parseStyle(e){const t={};try{ht(e,iterator)}catch{}return t;function iterator(e,n){const i="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[i.replace(/-([a-z])/g,styleReplacer)]=n}}(C)),b.space&&b.property?e[yt.call(gt,b.property)?gt[b.property]:b.property]=C:b.attribute&&(e[b.attribute]=C))}function styleReplacer(e,t){return t.toUpperCase()}const bt={}.hasOwnProperty,Ct="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",xt={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(e){for(const t in xt)if(bt.call(xt,t)&&bt.call(e,t)){const e=xt[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <${Ct}#${e.id}> for more info)`),delete xt[t]}const t=P().use(Fe).use(e.remarkPlugins||[]).use(lib,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(rehypeFilter,e),n=new VFile;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const i=t.runSync(t.parse(n),n);if("root"!==i.type)throw new TypeError("Expected a `root` node");let b=x.createElement(x.Fragment,{},childrenToReact({options:e,schema:ct,listDepth:0},i));return e.className&&(b=x.createElement("div",{className:e.className},b)),b}ReactMarkdown.propTypes={children:He.string,className:He.string,allowElement:He.func,allowedElements:He.arrayOf(He.string),disallowedElements:He.arrayOf(He.string),unwrapDisallowed:He.bool,remarkPlugins:He.arrayOf(He.oneOfType([He.object,He.func,He.arrayOf(He.oneOfType([He.bool,He.string,He.object,He.func,He.arrayOf(He.any)]))])),rehypePlugins:He.arrayOf(He.oneOfType([He.object,He.func,He.arrayOf(He.oneOfType([He.bool,He.string,He.object,He.func,He.arrayOf(He.any)]))])),sourcePos:He.bool,rawSourcePos:He.bool,skipHtml:He.bool,includeElementIndex:He.bool,transformLinkUri:He.oneOfType([He.func,He.bool]),linkTarget:He.oneOfType([He.func,He.string]),transformImageUri:He.func,components:He.object}}},t={};function __webpack_require__(n){var i=t[n];if(void 0!==i)return i.exports;var b=t[n]={exports:{}};return e[n].call(b.exports,b,b.exports,__webpack_require__),b.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";new(__webpack_require__(73203)(__webpack_require__(94066)).default)})()})();