%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/beta1.gracafilmes.com.br/wp-content/plugins/elementor/assets/js/
Upload File :
Create Path :
Current File : /var/www/projetos/beta1.gracafilmes.com.br/wp-content/plugins/elementor/assets/js/ai-admin.min.js

/*! elementor - v3.14.0 - 26-06-2023 */
/*! For license information please see ai-admin.min.js.LICENSE.txt */
(()=>{var e={17927:(e,t,n)=>{"use strict";var i=n(38003).__;Object.defineProperty(t,"__esModule",{value:!0}),t.vocalTones=t.translateLanguages=t.textareaAutocomplete=t.textAutocomplete=t.codeHtmlAutocomplete=t.codeCssAutocomplete=void 0;var b=[i("Craft a catchy slogan for","elementor"),i("Write a strong section header for","elementor"),i("Create a blog title for","elementor"),i("Suggest a 4 word headline for","elementor"),i("Write an attention grabbing title for","elementor")];t.textAutocomplete=b;var C=[i("Write a product description for","elementor"),i("Create a blog post for","elementor"),i("Craft an about us section for","elementor"),i("Offer a few sentences to invite visitors to","elementor"),i("Write microcopy for a submission form that includes","elementor")];t.textareaAutocomplete=C;var x=[i("GA event fired on every button element click (assume GA was loaded)","elementor"),i("Iframe code to embed a Spotify widget on my web page. My ID is 1234567890","elementor"),i("Write an embed code of Google Analytics","elementor"),i("Write an embed code of Facebook Pixel","elementor"),i("HTML code that embeds the following PDF into a webpage: link to PDF","elementor")];t.codeHtmlAutocomplete=x;var w=[i("On hover, animate 20% bigger, rotate 10 deg CCW","elementor"),i("Add a circle-shaped clip mask, semi transparent on hover","elementor"),i("Rainbow colored animated text gradient","elementor"),i("Add a 3D shadow to the text","elementor")];t.codeCssAutocomplete=w;var E=[{label:i("Casual","elementor")},{label:i("Confidence","elementor")},{label:i("Formal","elementor")},{label:i("Friendly","elementor")},{label:i("Inspirational","elementor")},{label:i("Motivational","elementor")},{label:i("Nostalgic","elementor")},{label:i("Playful","elementor")},{label:i("Professional","elementor")},{label:i("Scientific","elementor")},{label:i("Straightforward","elementor")},{label:i("Witty","elementor")}];t.vocalTones=E;var k=[{label:i("Arabic","elementor"),value:"ar-SA"},{label:i("Chinese","elementor"),value:"zh-CN"},{label:i("Czech","elementor"),value:"cs-CZ"},{label:i("Danish","elementor"),value:"da-DK"},{label:i("Dutch","elementor"),value:"nl-NL"},{label:i("English","elementor"),value:"en-US"},{label:i("Finnish","elementor"),value:"fi-FI"},{label:i("French","elementor"),value:"fr-FR"},{label:i("German","elementor"),value:"de-DE"},{label:i("Greek","elementor"),value:"el-GR"},{label:i("Hebrew","elementor"),value:"he-IL"},{label:i("Hungarian","elementor"),value:"hu-HU"},{label:i("Indonesian","elementor"),value:"id-ID"},{label:i("Italian","elementor"),value:"it-IT"},{label:i("Japanese","elementor"),value:"ja-JP"},{label:i("Korean","elementor"),value:"ko-KR"},{label:i("Persian","elementor"),value:"fa-IR"},{label:i("Polish","elementor"),value:"pl-PL"},{label:i("Portuguese","elementor"),value:"pt-PT"},{label:i("Russian","elementor"),value:"ru-RU"},{label:i("Spanish","elementor"),value:"es-ES"},{label:i("Swedish","elementor"),value:"sv-SE"},{label:i("Thai","elementor"),value:"th-TH"},{label:i("Turkish","elementor"),value:"tr-TR"},{label:i("Vietnamese","elementor"),value:"vi-VN"}];t.translateLanguages=k},46183:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.uploadImage=t.setStatusFeedback=t.setGetStarted=t.getUserInformation=t.getTextToImageGeneration=t.getImageToImageUpscale=t.getImageToImageOutPainting=t.getImageToImageMaskGeneration=t.getImageToImageGeneration=t.getImagePromptEnhanced=t.getEditText=t.getCustomCode=t.getCustomCSS=t.getCompletionText=void 0;var b=i(n(93231));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}var C=function request(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){return elementorCommon.ajax.addRequest(e,{success:n,error:i,data:t})}))};t.getUserInformation=function getUserInformation(){return C("ai_get_user_information")};t.getCompletionText=function getCompletionText(e){return C("ai_get_completion_text",{prompt:e})};t.getEditText=function getEditText(e,t){return C("ai_get_edit_text",{input:e,instruction:t})};t.getCustomCode=function getCustomCode(e,t){return C("ai_get_custom_code",{prompt:e,language:t})};t.getCustomCSS=function getCustomCSS(e,t,n){return C("ai_get_custom_css",{prompt:e,html_markup:t,element_id:n})};t.setGetStarted=function setGetStarted(){return C("ai_set_get_started")};t.setStatusFeedback=function setStatusFeedback(e){return C("ai_set_status_feedback",{response_id:e})};t.getTextToImageGeneration=function getTextToImageGeneration(e,t){return C("ai_get_text_to_image",{prompt:e,promptSettings:t})};t.getImageToImageGeneration=function getImageToImageGeneration(e,t,n){return C("ai_get_image_to_image",{prompt:e,promptSettings:t,image:n})};t.getImageToImageMaskGeneration=function getImageToImageMaskGeneration(e,t,n,i){return C("ai_get_image_to_image_mask",{prompt:e,promptSettings:t,image:n,mask:i})};t.getImageToImageOutPainting=function getImageToImageOutPainting(e,t,n,i){return C("ai_get_image_to_image_outpainting",{prompt:e,promptSettings:t,mask:i})};t.getImageToImageUpscale=function getImageToImageUpscale(e,t,n){return C("ai_get_image_to_image_upscale",{prompt:e,promptSettings:t,image:n})};t.getImagePromptEnhanced=function getImagePromptEnhanced(e){return C("ai_get_image_prompt_enhancer",{prompt:e})};t.uploadImage=function uploadImage(e){return C("ai_upload_image",function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,b.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}},74270:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=n(5856),w=b(n(88450)),E=n(50702),k=function App(e){return C.default.createElement(x.DirectionProvider,{rtl:e.isRTL},C.default.createElement(x.ThemeProvider,{colorScheme:e.colorScheme},C.default.createElement(w.default,{type:e.type,controlType:e.controlType,onClose:e.onClose,onConnect:E.onConnect,getControlValue:e.getControlValue,setControlValue:e.setControlValue,controlView:e.controlView,additionalOptions:e.additionalOptions})))};k.propTypes={colorScheme:i.oneOf(["auto","light","dark"]),type:i.string,controlType:i.string,onClose:i.func,getControlValue:i.func,setControlValue:i.func,additionalOptions:i.object,controlView:i.object,isRTL:i.bool};var S=k;t.default=S},78029:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=C(n(73119)),E=n(5856),k=n(62506),S=C(n(15338)),_=(0,E.styled)((function ElementorLogo(e){return x.default.createElement(E.SvgIcon,(0,w.default)({viewBox:"0 0 32 32"},e),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.69648 24.8891C0.938383 22.2579 0 19.1645 0 16C0 11.7566 1.68571 7.68687 4.68629 4.68629C7.68687 1.68571 11.7566 0 16 0C19.1645 0 22.2579 0.938383 24.8891 2.69648C27.5203 4.45459 29.5711 6.95344 30.7821 9.87706C31.9931 12.8007 32.3099 16.0177 31.6926 19.1214C31.0752 22.2251 29.5514 25.0761 27.3137 27.3137C25.0761 29.5514 22.2251 31.0752 19.1214 31.6926C16.0177 32.3099 12.8007 31.9931 9.87706 30.7821C6.95344 29.5711 4.45459 27.5203 2.69648 24.8891ZM12.0006 9.33281H9.33437V22.6665H12.0006V9.33281ZM22.6657 9.33281H14.6669V11.9991H22.6657V9.33281ZM22.6657 14.6654H14.6669V17.3316H22.6657V14.6654ZM22.6657 20.0003H14.6669V22.6665H22.6657V20.0003Z"}))}))((function(e){var t=e.theme;return{width:t.sizing[400],height:t.sizing[400],"& path":{fill:t.palette.text.primary}}})),P=function DialogHeader(e){return x.default.createElement(E.DialogTitle,{sx:{fontWeight:"normal"}},x.default.createElement(_,{sx:{mr:3}}),i("AI","elementor"),x.default.createElement(S.default,{label:i("Beta","elementor"),color:"default",sx:{ml:3}}),x.default.createElement(E.Stack,{direction:"row",spacing:3,alignItems:"center",sx:{ml:"auto"}},e.children,x.default.createElement(E.IconButton,{size:"small","aria-label":"close",onClick:e.onClose,sx:{"&.MuiButtonBase-root":{mr:-4}}},x.default.createElement(k.XIcon,null))))};P.propTypes={onClose:b.func.isRequired,children:b.oneOfType([b.arrayOf(b.node),b.node])};var O=P;t.default=O},4466:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=b(n(73119)),w=n(5856),E=n(62506),k=function GenerateButton(e){return C.default.createElement(w.Button,(0,x.default)({variant:"contained",endIcon:C.default.createElement(E.AIIcon,null),disabled:!prompt,"aria-label":i("search","elementor"),type:"submit",size:"small",sx:{"& .MuiButton-endIcon":{width:18}}},e))};t.default=k},71871:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=function Loader(e){return b.default.createElement(x.Box,{sx:{px:4,py:6}},b.default.createElement(x.LinearProgress,(0,C.default)({color:"secondary"},e)))};t.default=w},93970:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=n(5856),w=function PromptActionSelection(e){var t=function labelToDashCash(e){return e.toLowerCase().replace(/ /g,"-")}(e.label),n=e.wrapperStyle,i=void 0===n?{width:138}:n;return C.default.createElement(x.FormControl,{sx:i},C.default.createElement(x.InputLabel,{id:t},e.label),C.default.createElement(x.Select,{labelId:t,id:t,value:e.value||"",color:"secondary",onChange:e.onChange,size:"small",label:e.label,disabled:e.disabled,MenuProps:{PaperProps:{sx:{width:138}}},sx:{"&.Mui-disabled .MuiSelect-nativeInput":{backgroundColor:"initial",opacity:0}}},e.options.map((function(e){var t;return C.default.createElement(x.MenuItem,{dense:!0,key:e.label,value:null!==(t=e.value)&&void 0!==t?t:e.label},e.label)}))))};w.propTypes={label:i.string.isRequired,options:i.arrayOf(i.shape({label:i.string.isRequired,value:i.string})).isRequired,onChange:i.func.isRequired,value:i.string,wrapperStyle:i.object,disabled:i.bool};var E=w;t.default=E},77655:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=i(n(15338)),w=function PromptAction(e){return b.default.createElement(x.default,(0,C.default)({size:"large",color:"secondary",variant:"outlined"},e))};t.default=w},98495:(e,t,n)=>{"use strict";var i=n(38003).sprintf,b=n(38003).__,C=n(23615),x=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=x(n(87363)),E=n(5856),k=function PromptCredits(e){if(e.usagePercentage<80)return null;var t=e.usagePercentage<100?"https://go.elementor.com/ai-popup-purchase-limit-reached-80-percent/":"https://go.elementor.com/ai-popup-purchase-limit-reached/";return w.default.createElement(E.Typography,{variant:"caption",color:"text.tertiary"},i(b("You've used %s of the free trial.","elementor"),e.usagePercentage+"%")," ",w.default.createElement("a",{href:t,target:"_blank",rel:"noreferrer"},b("Upgrade for unlimited access","elementor")),".")};k.propTypes={usagePercentage:C.number.isRequired};var S=k;t.default=S},59441:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=b(n(73119)),w=n(5856),E=b(n(49529)),k=b(n(78029)),S=function PromptDialog(e){return C.default.createElement(E.default,{handle:".MuiDialogTitle-root",cancel:'[class*="MuiDialogContent-root"]'},C.default.createElement(w.Dialog,(0,x.default)({open:!0,fullWidth:!0,hideBackdrop:!0,scroll:"paper",sx:{"& .MuiDialog-container":{alignItems:"flex-start",mt:"18vh"}},PaperProps:{sx:{m:0,maxHeight:"76vh"}}},e),e.children))};S.propTypes={onClose:i.func.isRequired,children:i.node.isRequired,maxWidth:i.oneOf(["xs","sm","md","lg","xl",!1])},S.Header=k.default,S.Content=w.DialogContent;var _=S;t.default=_},86960:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=C(n(73119)),E=C(n(70966)),k=n(5856),S=["error","onRetry","actionPosition"],_=function PromptErrorMessage(e){var t=e.error,n=e.onRetry,b=void 0===n?function(){}:n,C=e.actionPosition,_=void 0===C?"default":C,P=(0,E.default)(e,S),O={default:{text:x.default.createElement(k.AlertTitle,null,i("Unknown error. Please try again later.","elementor")),description:i("Error code:","elementor")+" "+t,buttonText:i("Try Again","elementor"),buttonAction:b},service_outage_internal:{text:x.default.createElement(k.AlertTitle,null,i("Elementor AI is temporarily unavailable","elementor")),description:i("Seems like we are experiencing technical difficulty. We should be up and running shortly.","elementor"),buttonText:i("Try Again","elementor"),buttonAction:b},invalid_connect_data:{text:x.default.createElement(k.AlertTitle,null,i("Reconnect your account","elementor")),description:x.default.createElement(x.default.Fragment,null,i("We couldn't connect to your account due to technical difficulties on our end. Reconnect your account to continue.","elementor")," ",x.default.createElement("a",{href:"https://elementor.com/help/disconnecting-reconnecting-your-elementor-account/",target:"_blank",rel:"noreferrer"},i("Show me how","elementor"))),buttonText:i("Reconnect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},not_connected:{text:x.default.createElement(k.AlertTitle,null,i("You aren't connected to Elementor AI.","elementor")),description:i("Elementor AI is just a few clicks away. Connect your account to instantly create texts and custom code.","elementor"),buttonText:i("Connect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},quota_reached_trail:{text:x.default.createElement(k.AlertTitle,null,i("It's time to upgrade.","elementor")),description:i("Enjoy the free trial? Upgrade now for unlimited access to built-in image, text and custom code generators.","elementor"),buttonText:i("Upgrade","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}},quota_reached_subscription:{text:x.default.createElement(k.AlertTitle,null,i("It's time to upgrade.","elementor")),description:i("Love Elementor AI? Upgrade to continue creating with built-in image, text and custom code generators.","elementor"),buttonText:i("Upgrade","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}},rate_limit_network:{text:x.default.createElement(k.AlertTitle,null,i("Whoa! Slow down there.","elementor")),description:i("We can’t process that many requests so fast. Try again in 15 minutes.","elementor")},invalid_prompts:{text:x.default.createElement(k.AlertTitle,null,i("We were unable to generate that prompt.","elementor")),description:i("Seems like the prompt contains words that could generate harmful content. Write a different prompt to continue.","elementor")}},I=O[t]||O.default,T=(null==I?void 0:I.buttonText)&&x.default.createElement(k.Button,{color:"inherit",size:"small",variant:"outlined",onClick:I.buttonAction},I.buttonText);return x.default.createElement(k.Alert,(0,w.default)({severity:I.severity||"error",action:"default"===_&&T},P),I.text,I.description,"bottom"===_&&x.default.createElement(k.Box,{sx:{mt:3}},T))};_.propTypes={error:b.string,onRetry:b.func,actionPosition:b.oneOf(["default","bottom"])};var P=_;t.default=P},51391:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(73203),C=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==C(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 x in e)if("default"!==x&&Object.prototype.hasOwnProperty.call(e,x)){var w=b?Object.getOwnPropertyDescriptor(e,x):null;w&&(w.get||w.set)?Object.defineProperty(i,x,w):i[x]=e[x]}i.default=e,n&&n.set(e,i);return i}(n(87363)),w=b(n(73119)),E=b(n(3491));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)}var k=(0,x.forwardRef)((function(e,t){return x.default.createElement(E.default,(0,w.default)({name:"prompt",placeholder:i("Describe the text and tone you want to use","elementor")+"..."},e,{ref:t}))}));t.default=k},79619:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=n(5856),E=C(n(15338)),k=function PromptSuggestions(e){var t;return x.default.createElement(w.Box,null,x.default.createElement(w.Typography,{variant:"subtitle1",color:"text.secondary"},i("Suggested prompts","elementor")+":"),x.default.createElement(w.Stack,{direction:"column",alignItems:"flex-start",gap:3,sx:{my:3}},null===(t=e.suggestions)||void 0===t?void 0:t.map((function(t,n){var i;return x.default.createElement(E.default,{key:n,variant:"outlined",size:"large",color:"secondary",label:(null===(i=e.suggestionFilter)||void 0===i?void 0:i.call(e,t))||t,onClick:function onClick(){return e.onSelect(t)}})}))))};k.propTypes={suggestions:b.arrayOf(b.string),onSelect:b.func.isRequired,suggestionFilter:b.func};var S=k;t.default=S},87105:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203),C=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==C(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 x in e)if("default"!==x&&Object.prototype.hasOwnProperty.call(e,x)){var w=b?Object.getOwnPropertyDescriptor(e,x):null;w&&(w.get||w.set)?Object.defineProperty(i,x,w):i[x]=e[x]}i.default=e,n&&n.set(e,i);return i}(n(87363)),w=b(n(73119)),E=n(5856);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)}var k=(0,x.forwardRef)((function(e,t){return x.default.createElement(E.TextField,(0,w.default)({ref:t,multiline:!0,minRows:4,maxRows:20,color:"secondary"},e))}));k.propTypes={value:i.string,onChange:i.func,helperText:i.string};var S=k;t.default=S},28932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(5856),b=(0,i.styled)(i.Stack)((function(e){var t=e.theme,n=e.position,i={width:"100%",position:"absolute",left:0,padding:t.spacing(6)};return"top"===n?i.top=0:"bottom"===n&&(i.bottom=0),i}));t.default=b},22231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(5856),b=(0,i.styled)(i.Box)((function(e){var t=e.theme;return{width:"100%",height:"100%",position:"absolute",backgroundColor:"rgba(0,0,0,0.5)",transition:"opacity ".concat(t.transitions.duration.short,"ms ").concat(t.transitions.easing.easeInOut),opacity:0,"&:hover":{opacity:1}}}));t.default=b},86300:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=b(n(73119)),w=b(n(93231)),E=b(n(70966)),k=n(5856),S=["sx"];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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,w.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=function Panel(e){var t=e.sx,n=void 0===t?{}:t,i=(0,E.default)(e,S);return C.default.createElement(k.Drawer,(0,x.default)({open:!0,anchor:"left",variant:"persistent",PaperProps:{sx:{position:"relative",width:360,px:8,pt:8,bgcolor:"background.default"}},sx:_objectSpread({height:"100%"},n)},i),i.children)};_.propTypes={children:i.node,sx:i.object};var P=_;t.default=P},3491:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203),C=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==C(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 x in e)if("default"!==x&&Object.prototype.hasOwnProperty.call(e,x)){var w=b?Object.getOwnPropertyDescriptor(e,x):null;w&&(w.get||w.set)?Object.defineProperty(i,x,w):i[x]=e[x]}i.default=e,n&&n.set(e,i);return i}(n(87363)),w=b(n(73119)),E=n(5856),k=n(62506);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)}var S=(0,E.styled)(E.TextField)((function(e){var t=e.theme;return{"& .MuiInputBase-input, & .MuiInputBase-input:focus":{backgroundColor:t.palette.background.default,border:"none",boxShadow:"none",color:t.palette.text.primary,padding:t.spacing(0,3),outline:"none"},"& .MuiInputAdornment-root":{color:t.palette.text.tertiary}}})),_=(0,x.forwardRef)((function(e,t){return x.default.createElement(S,(0,w.default)({autoFocus:!0,fullWidth:!0,required:!0,color:"secondary",InputProps:{autoComplete:"off",startAdornment:x.default.createElement(E.InputAdornment,{position:"start"},x.default.createElement(k.SearchIcon,null))},placeholder:e.placeholder,name:e.name,value:e.value,onChange:e.onChange},e,{ref:t}))}));_.propTypes={placeholder:i.string,name:i.string,value:i.string,onChange:i.func};var P=_;t.default=P},15338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(5856),b=(0,i.styled)(i.Chip)((function(){return{"& .MuiChip-label":{lineHeight:1.5},"& .MuiSvgIcon-root.MuiChip-icon":{fontSize:"1.25rem"}}}));t.default=b},46369:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(40131)),k=n(5856),S=n(62506);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)}var _=(0,k.styled)(k.Box)((function(e){var t=e.theme;return{position:"relative",marginTop:t.spacing(6),padding:t.spacing(7),backgroundColor:t.palette.background.paper,boxShadow:t.shadows[4],borderRadius:t.border.radius.sm,zIndex:"9999"}})),P=(0,k.styled)(k.Box)((function(e){var t=e.theme;return{width:t.sizing[500],height:t.sizing[200],position:"absolute",top:"calc(".concat(t.sizing[200]," * -1)"),left:"50%",transform:"translateX(-50%) rotate(180deg)",overflow:"hidden","&::after":{backgroundColor:t.palette.background.paper,content:'""',display:"block",position:"absolute",width:t.sizing[200],height:t.sizing[200],top:0,left:"50%",transform:"translateX(-50%) translateY(-50%) rotate(45deg)",boxShadow:"1px 1px 5px 0px rgba(0, 0, 0, 0.2)"}}})),O=[i("Generate professional texts about any topic, in any tone.","elementor"),i("Translate your content into twenty-five different languages.","elementor"),i("Unleash infinite possibilities with the custom code generator.","elementor")],I=(0,k.styled)(k.Chip)((function(){return{"& .MuiChip-label":{lineHeight:1.5},"& .MuiSvgIcon-root.MuiChip-icon":{fontSize:"1.25rem"}}})),T=function UpgradeChip(e){var t=e.hasSubscription,n=void 0!==t&&t,b=e.usagePercentage,C=void 0===b?0:b,x=(0,w.useState)(!1),T=(0,E.default)(x,2),A=T[0],M=T[1],R=(0,w.useRef)(null),j="https://go.elementor.com/ai-popup-purchase-dropdown/";n&&(j=C>=100?"https://go.elementor.com/ai-popup-upgrade-limit-reached/":"https://go.elementor.com/ai-popup-upgrade-limit-reached-80-percent/");var D=i(n?"Upgrade Elementor AI":"Get Elementor AI","elementor");return w.default.createElement(k.Box,{component:"span","aria-owns":A?"e-ai-upgrade-popover":void 0,"aria-haspopup":"true",onMouseEnter:function showPopover(){return M(!0)},onMouseLeave:function hidePopover(){return M(!1)},ref:R,display:"flex",alignItems:"center"},w.default.createElement(I,{color:"accent",label:i("Upgrade","elementor"),icon:w.default.createElement(S.UpgradeIcon,null)}),w.default.createElement(k.Popper,{open:A,anchorEl:R.current,sx:{zIndex:"9999",maxWidth:300}},w.default.createElement(_,null,w.default.createElement(P,null),w.default.createElement(k.Typography,{variant:"h5",color:"text.primary"},i("Unlimited access to Elementor AI","elementor")),w.default.createElement(k.List,{sx:{mb:7}},O.map((function(e,t){return w.default.createElement(k.ListItem,{key:t,disableGutters:!0,sx:{alignItems:"flex-start",my:4}},w.default.createElement(k.ListItemIcon,{sx:{mr:3}},w.default.createElement(S.CheckedCircleIcon,null)),w.default.createElement(k.ListItemText,{sx:{m:0}},w.default.createElement(k.Typography,{variant:"body2"},e)))}))),w.default.createElement(k.Button,{variant:"contained",color:"accent",size:"small",href:j,target:"_blank",startIcon:w.default.createElement(S.UpgradeIcon,null),sx:{"&:hover":{color:"accent.contrastText"}}},D))))},A=T;t.default=A,T.propTypes={hasSubscription:b.bool,usagePercentage:b.number}},30313:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=b(n(73119)),w=b(n(93231)),E=b(n(70966)),k=n(5856),S=b(n(78029)),_=["sx"];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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,w.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=function WizardDialog(e){return C.default.createElement(k.Dialog,{open:!0,onClose:e.onClose,fullWidth:!0,hideBackdrop:!0,maxWidth:"lg",PaperProps:{sx:{height:"88vh"}},sx:{zIndex:9999}},e.children)};P.propTypes={onClose:i.func.isRequired,children:i.node.isRequired};var O=function WizardDialogContent(e){var t=e.sx,n=void 0===t?{}:t,i=(0,E.default)(e,_);return C.default.createElement(k.DialogContent,(0,x.default)({},i,{sx:_objectSpread({display:"flex",flexDirection:"column",justifyContent:"center"},n)}))};O.propTypes={sx:i.object},P.Header=S.default,P.Content=O;var I=P;t.default=I},50702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onConnect=void 0;t.onConnect=function onConnect(e){elementorCommon.config.library_connect.is_connected=!0,elementorCommon.config.library_connect.current_access_level=e.accessLevel}},5348:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(50824)),C=i(n(10029)),x=n(46183),w=i(n(60675)),E=function(){var e=(0,C.default)(b.default.mark((function _callee(e,t){var n,i,C;return b.default.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:if(n=t.codeLanguage,i=t.htmlMarkup,C=t.elementId,"css"!==n){b.next=3;break}return b.abrupt("return",(0,x.getCustomCSS)(e,i,C));case 3:return b.abrupt("return",(0,x.getCustomCode)(e,n));case 4:case"end":return b.stop()}}),_callee)})));return function getCodeResult(t,n){return e.apply(this,arguments)}}(),k=function useCodePrompt(e){var t=e.codeLanguage,n=e.htmlMarkup,i=e.elementId,b=e.initialCredits;return(0,w.default)((function(e){return E(e,{codeLanguage:t,htmlMarkup:n,elementId:i})}),{credits:b})};t.default=k},66690:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(40131)),C=n(87363),x=function useImageNavigation(e){var t=(0,C.useState)(-1),n=(0,b.default)(t,2),i=n[0],x=n[1],w={backToResults:function backToResults(){return x(-1)},navigatePrevImage:function navigatePrevImage(){var t=i+1;t>=e.length&&(t=0),x(t)},navigateNextImage:function navigateNextImage(){var t=i-1;t<0&&(t=e.length-1),x(t)}};return{zoomedImageIndex:i,setZoomedImageIndex:x,imageNavigation:w}};t.default=x},90334:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(50824)),C=i(n(10029)),x=n(46183),w=i(n(60675)),E=function(){var e=(0,C.default)(b.default.mark((function _callee(e){return b.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,x.getImagePromptEnhanced)(e));case 1:case"end":return t.stop()}}),_callee)})));return function getResult(t){return e.apply(this,arguments)}}(),k=function useImagePromptEnhancer(e){return(0,w.default)(E,e)};t.default=k},36023:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(93231)),C=i(n(40131)),x=n(87363),w=n(80702);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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,b.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=function useImagePromptSettings(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.style,i=void 0===n?"":n,E=t.type,k=void 0===E?"":E,S=t.imageWeight,_=void 0===S?0:S,P=t.aspectRatio,O=void 0===P?"1:1":P,I=t.zoom,T=void 0===I?"1":I,A=t.upScaleTo,M=void 0===A?"512":A,R=(0,x.useState)((e={},(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE,i),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.STYLE_PRESET,k),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.IMAGE_STRENGTH,_),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO,O),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.ZOOM,T),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.UPSCALE_TO,M),e)),j=(0,C.default)(R,2),D=j[0],L=j[1];return{promptSettings:D,updatePromptSettings:function updatePromptSettings(e){L(_objectSpread(_objectSpread({},D),e))},setPromptSettings:L,resetPromptSettings:function resetPromptSettings(){var e;L((e={},(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE,i),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.STYLE_PRESET,""),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.IMAGE_STRENGTH,0),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO,"1:1"),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.ZOOM,"1"),(0,b.default)(e,w.IMAGE_PROMPT_SETTINGS.UPSCALE_TO,"512"),e))}}};t.default=E},87159:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(50824)),C=i(n(10029)),x=n(46183),w=i(n(60675)),E=n(80702),k=function(){var e=(0,C.default)(b.default.mark((function _callee(e,t){var n,i,C,w,k=arguments;return b.default.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return i=k.length>3&&void 0!==k[3]?k[3]:null,C=k.length>4&&void 0!==k[4]?k[4]:null,w=(n=k.length>2&&void 0!==k[2]?k[2]:null)?x.getImageToImageGeneration:x.getTextToImageGeneration,i&&E.PANELS.IN_PAINTING===i&&(w=x.getImageToImageMaskGeneration),i&&E.PANELS.OUT_PAINTING===i&&(w=x.getImageToImageOutPainting),i&&E.PANELS.UPSCALE===i&&(w=x.getImageToImageUpscale),b.abrupt("return",w(e,t,n,C));case 8:case"end":return b.stop()}}),_callee)})));return function getImageResponse(t,n){return e.apply(this,arguments)}}(),S=function useImagePrompt(e){return(0,w.default)(k,e)};t.default=S},59176:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(40131)),C=n(87363),x=function useImageScreenPanel(e,t){var n=(0,C.useState)(e),i=(0,b.default)(n,2),x=i[0],w=i[1],E=(0,C.useState)(t),k=(0,b.default)(E,2);return{screen:x,setScreen:w,panel:k[0],setPanel:k[1]}};t.default=x},89031:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(50824)),C=i(n(10029)),x=i(n(40131)),w=n(87363),E=n(46183),k=function useImageUpload(){var e=(0,w.useState)(!1),t=(0,x.default)(e,2),n=t[0],i=t[1],k=(0,w.useState)(""),S=(0,x.default)(k,2),_=S[0],P=S[1],O=(0,w.useState)({}),I=(0,x.default)(O,2),T=I[0],A=I[1],M=function(){var e=(0,C.default)(b.default.mark((function _callee(){var e=arguments;return b.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:P(""),i(!0),E.uploadImage.apply(void 0,e).then((function(e){return A(e)})).catch((function(e){return P((null==e?void 0:e.responseText)||e)})).finally((function(){return i(!1)}));case 3:case"end":return t.stop()}}),_callee)})));return function upload(){return e.apply(this,arguments)}}();return{attachmentData:T,isUploading:n,uploadError:_,resetUpload:function resetUpload(){A({}),P(""),i(!1)},upload:M}};t.default=k},30420:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(40131)),C=n(87363),x=function useImagesPreload(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"url",t=(0,C.useState)(!1),n=(0,b.default)(t,2),i=n[0],x=n[1];return{imagesPreloaded:i,preloadImages:function preloadImages(t){x(!1);Promise.all(t.map((function(t){return function loadImage(t){return new Promise((function(n,i){var b=new Image;b.src=t[e],b.onload=function(){return n(t[e])},b.onerror=function(e){return i(e)}}))}(t)}))).then((function(){return x(!0)})).catch((function(e){return console.log("Failed to load images",e)}))}}};t.default=x},60675:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(50824)),C=i(n(10029)),x=i(n(40131)),w=n(87363),E=n(46183),k=function normalizeResponse(e){var t=e.text,n=e.response_id,i=e.usage,b=e.images,C=i?i.quota-i.usedQuota:0;return{result:t||b,responseId:n,credits:Math.max(C,0)}},S=function usePrompt(e,t){var n=(0,w.useState)(!1),i=(0,x.default)(n,2),S=i[0],_=i[1],P=(0,w.useState)(""),O=(0,x.default)(P,2),I=O[0],T=O[1],A=(0,w.useState)(t),M=(0,x.default)(A,2),R=M[0],j=M[1],D=function(){var t=(0,C.default)(b.default.mark((function _callee(){var t=arguments;return b.default.wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:T(""),_(!0),e.apply(void 0,t).then((function(e){return j(k(e))})).catch((function(e){return T((null==e?void 0:e.responseText)||e)})).finally((function(){return _(!1)}));case 3:case"end":return n.stop()}}),_callee)})));return function send(){return t.apply(this,arguments)}}();return{isLoading:S,error:I,data:R,reset:function reset(){j((function(e){return{credits:e.credits,result:"",responseId:""}})),T(""),_(!1)},send:D,sendUsageData:function sendUsageData(){return R.responseId&&(0,E.setStatusFeedback)(R.responseId)}}};t.default=S},38136:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(40131)),C=n(87363),x=function useSessionStorage(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(0,C.useState)(function getSessionStorageData(){return JSON.parse(sessionStorage.getItem(e))||t}()),i=(0,b.default)(n,2),x=i[0],w=i[1];return{data:x,setStateAndSessionData:function setStateAndSessionData(t){!function setSessionStorageData(t){sessionStorage.setItem(e,JSON.stringify(t))}(t),w(t)}}};t.default=x},65441:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(50824)),C=i(n(10029)),x=n(46183),w=i(n(60675)),E=function(){var e=(0,C.default)(b.default.mark((function _callee(e,t){return b.default.wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:if(!t){n.next=2;break}return n.abrupt("return",(0,x.getEditText)(e,t));case 2:return n.abrupt("return",(0,x.getCompletionText)(e));case 3:case"end":return n.stop()}}),_callee)})));return function getTextResult(t,n){return e.apply(this,arguments)}}(),k=function useTextPrompt(e){return(0,w.default)(E,e)};t.default=k},5647:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(50824)),C=i(n(93231)),x=i(n(10029)),w=i(n(40131)),E=n(87363),k=n(46183);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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,C.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=function useUserInfo(){var e=(0,E.useState)(!1),t=(0,w.default)(e,2),n=t[0],i=t[1],C=(0,E.useState)({is_connected:!1,is_get_started:!1,connect_url:"",usage:{hasAiSubscription:!1,quota:0,usedQuota:0}}),S=(0,w.default)(C,2),_=S[0],P=S[1],O=_.usage.quota-_.usage.usedQuota,I=_.usage.usedQuota/_.usage.quota*100,T=function(){var e=(0,x.default)(b.default.mark((function _callee(){var e;return b.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return i(!0),t.next=3,(0,k.getUserInformation)();case 3:e=t.sent,P((function(t){return _objectSpread(_objectSpread({},t),e)})),i(!1);case 6:case"end":return t.stop()}}),_callee)})));return function fetchData(){return e.apply(this,arguments)}}();return(0,E.useEffect)((function(){T()}),[]),{isLoading:n,isConnected:_.is_connected,isGetStarted:_.is_get_started,connectUrl:_.connect_url,hasSubscription:_.usage.hasAiSubscription,credits:O<0?0:O,usagePercentage:Math.round(I),fetchData:T}};t.default=S},88371:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8815 2.25919C20.9203 2.25301 20.9599 2.24983 21 2.24988C21.0827 2.24978 21.1629 2.26335 21.2384 2.2887C21.367 2.33162 21.4784 2.40776 21.5642 2.5058C21.6895 2.64891 21.76 2.83868 21.749 3.03992C21.7477 3.06492 21.7452 3.08966 21.7414 3.11407C21.3311 6.09743 20.124 8.91507 18.2472 11.2703C16.5079 13.4529 14.2532 15.1635 11.6906 16.2509C11.8289 17.1168 11.7249 18.0054 11.3884 18.8177C11.0289 19.6857 10.4201 20.4275 9.63896 20.9495C8.85782 21.4714 7.93946 21.75 7 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V17C2.25 16.0605 2.52858 15.1421 3.05052 14.361C3.57246 13.5799 4.3143 12.9711 5.18225 12.6115C5.99455 12.2751 6.88314 12.1711 7.74905 12.3094C8.83643 9.74682 10.547 7.49212 12.7296 5.75287C15.0837 3.87693 17.8998 2.67012 20.8815 2.25919ZM10.0984 16.0649C10.077 16.0082 10.0629 15.9506 10.0557 15.893C9.89413 15.4471 9.63624 15.04 9.2981 14.7019C8.96001 14.3638 8.55301 14.1059 8.10721 13.9444C8.04953 13.9372 7.99178 13.9231 7.93499 13.9016C7.90509 13.8903 7.87632 13.8773 7.84877 13.8628C7.77794 13.8436 7.70633 13.8268 7.63404 13.8124C7.0036 13.687 6.35014 13.7514 5.75628 13.9974C5.16242 14.2433 4.65484 14.6599 4.29772 15.1944C3.94061 15.7288 3.75 16.3572 3.75 17V20.25H7C7.64279 20.25 8.27114 20.0594 8.8056 19.7022C9.34006 19.3451 9.75662 18.8376 10.0026 18.2437C10.2486 17.6498 10.313 16.9964 10.1876 16.3659C10.1732 16.2935 10.1563 16.2218 10.1371 16.1509C10.1226 16.1234 10.1097 16.0947 10.0984 16.0649ZM10.3588 13.6412C10.7069 13.9894 10.9969 14.3876 11.2204 14.8204C12.2258 14.3839 13.1782 13.8417 14.0621 13.2048C13.3066 11.827 12.173 10.6933 10.7952 9.93782C10.1583 10.8218 9.61603 11.7741 9.17957 12.7795C9.61238 13.0031 10.0106 13.293 10.3588 13.6412ZM11.7434 8.75107C13.1943 9.59789 14.4021 10.8057 15.2489 12.2565C15.9093 11.6727 16.5204 11.0304 17.0741 10.3355C18.5698 8.45849 19.5983 6.25889 20.0821 3.9179C17.7411 4.40165 15.5415 5.43018 13.6644 6.92595C12.9696 7.47964 12.3273 8.0907 11.7434 8.75107Z"}))}));t.default=w},82752:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5303 18.2803C15.8232 17.9874 15.8232 17.5126 15.5303 17.2197L10.0607 11.75L15.5303 6.28033C15.8232 5.98744 15.8232 5.51256 15.5303 5.21967C15.2374 4.92678 14.7626 4.92678 14.4697 5.21967L8.46967 11.2197C8.17678 11.5126 8.17678 11.9874 8.46967 12.2803L14.4697 18.2803C14.7626 18.5732 15.2374 18.5732 15.5303 18.2803Z"}))}));t.default=w},49448:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.46967 18.2803C8.17678 17.9874 8.17678 17.5126 8.46967 17.2197L13.9393 11.75L8.46967 6.28033C8.17678 5.98744 8.17678 5.51256 8.46967 5.21967C8.76256 4.92678 9.23744 4.92678 9.53033 5.21967L15.5303 11.2197C15.8232 11.5126 15.8232 11.9874 15.5303 12.2803L9.53033 18.2803C9.23744 18.5732 8.76256 18.5732 8.46967 18.2803Z"}))}));t.default=w},85541:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 3.75C8.30964 3.75 7.75 4.30964 7.75 5V15C7.75 15.6904 8.30964 16.25 9 16.25H19C19.6904 16.25 20.25 15.6904 20.25 15V5C20.25 4.30964 19.6904 3.75 19 3.75H9ZM6.25 5C6.25 3.48122 7.48122 2.25 9 2.25H19C20.5188 2.25 21.75 3.48122 21.75 5V15C21.75 16.5188 20.5188 17.75 19 17.75H9C7.48122 17.75 6.25 16.5188 6.25 15V5Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 7.75C4.66848 7.75 4.35054 7.8817 4.11612 8.11612C3.8817 8.35054 3.75 8.66848 3.75 9V19C3.75 19.3315 3.8817 19.6495 4.11612 19.8839C4.35054 20.1183 4.66848 20.25 5 20.25H15C15.3315 20.25 15.6495 20.1183 15.8839 19.8839C16.1183 19.6495 16.25 19.3315 16.25 19V17C16.25 16.5858 16.5858 16.25 17 16.25C17.4142 16.25 17.75 16.5858 17.75 17V19C17.75 19.7293 17.4603 20.4288 16.9445 20.9445C16.4288 21.4603 15.7293 21.75 15 21.75H5C4.27065 21.75 3.57118 21.4603 3.05546 20.9445C2.53973 20.4288 2.25 19.7293 2.25 19V9C2.25 8.27065 2.53973 7.57118 3.05546 7.05546C3.57118 6.53973 4.27065 6.25 5 6.25H7C7.41421 6.25 7.75 6.58579 7.75 7C7.75 7.41421 7.41421 7.75 7 7.75H5Z"}))}));t.default=w},90350:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 16.25C4.41421 16.25 4.75 16.5858 4.75 17V19C4.75 19.3315 4.8817 19.6495 5.11612 19.8839C5.35054 20.1183 5.66848 20.25 6 20.25H18C18.3315 20.25 18.6495 20.1183 18.8839 19.8839C19.1183 19.6495 19.25 19.3315 19.25 19V17C19.25 16.5858 19.5858 16.25 20 16.25C20.4142 16.25 20.75 16.5858 20.75 17V19C20.75 19.7293 20.4603 20.4288 19.9445 20.9445C19.4288 21.4603 18.7293 21.75 18 21.75H6C5.27065 21.75 4.57118 21.4603 4.05546 20.9445C3.53973 20.4288 3.25 19.7293 3.25 19V17C3.25 16.5858 3.58579 16.25 4 16.25Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.46967 10.4697C6.76256 10.1768 7.23744 10.1768 7.53033 10.4697L12 14.9393L16.4697 10.4697C16.7626 10.1768 17.2374 10.1768 17.5303 10.4697C17.8232 10.7626 17.8232 11.2374 17.5303 11.5303L12.5303 16.5303C12.2374 16.8232 11.7626 16.8232 11.4697 16.5303L6.46967 11.5303C6.17678 11.2374 6.17678 10.7626 6.46967 10.4697Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C12.4142 3.25 12.75 3.58579 12.75 4V16C12.75 16.4142 12.4142 16.75 12 16.75C11.5858 16.75 11.25 16.4142 11.25 16V4C11.25 3.58579 11.5858 3.25 12 3.25Z"}))}));t.default=w},33375:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9697 4.96967C14.6408 4.29858 15.5509 3.92157 16.5 3.92157C17.4491 3.92157 18.3592 4.29858 19.0303 4.96967C19.7014 5.64075 20.0784 6.55094 20.0784 7.5C20.0784 8.44905 19.7014 9.35924 19.0303 10.0303L8.53033 20.5303C8.38968 20.671 8.19891 20.75 8 20.75H4C3.58579 20.75 3.25 20.4142 3.25 20V16C3.25 15.8011 3.32902 15.6103 3.46967 15.4697L13.9697 4.96967ZM16.5 5.42157C15.9488 5.42157 15.4201 5.64055 15.0303 6.03033L4.75 16.3107V19.25H7.68934L17.9697 8.96967C18.3595 8.57989 18.5784 8.05123 18.5784 7.5C18.5784 6.94876 18.3595 6.42011 17.9697 6.03033C17.5799 5.64055 17.0512 5.42157 16.5 5.42157Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9697 5.96967C13.2626 5.67677 13.7374 5.67677 14.0303 5.96967L18.0303 9.96967C18.3232 10.2626 18.3232 10.7374 18.0303 11.0303C17.7374 11.3232 17.2626 11.3232 16.9697 11.0303L12.9697 7.03033C12.6768 6.73743 12.6768 6.26256 12.9697 5.96967Z"}))}));t.default=w},46819:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.11612 5.11612C5.35054 4.8817 5.66848 4.75 6 4.75H18C18.3315 4.75 18.6495 4.8817 18.8839 5.11612C19.1183 5.35054 19.25 5.66848 19.25 6V18C19.25 18.3315 19.1183 18.6495 18.8839 18.8839C18.6495 19.1183 18.3315 19.25 18 19.25H11.7335C11.7444 19.1709 11.75 19.0908 11.75 19.01V14.01C11.75 13.8051 11.7141 13.604 11.6457 13.4149L16.25 8.81066V11C16.25 11.4142 16.5858 11.75 17 11.75C17.4142 11.75 17.75 11.4142 17.75 11V7C17.75 6.89831 17.7298 6.80134 17.6931 6.71291C17.6565 6.62445 17.6022 6.54158 17.5303 6.46967C17.4584 6.39776 17.3755 6.34351 17.2871 6.30691C17.1993 6.27051 17.1031 6.2503 17.0022 6.25C17.0015 6.25 17.0007 6.25 17 6.25H16.9997H13C12.5858 6.25 12.25 6.58579 12.25 7C12.25 7.41421 12.5858 7.75 13 7.75H15.1893L10.5803 12.359C10.3956 12.2941 10.1995 12.26 10 12.26H5C4.91585 12.26 4.83232 12.2661 4.75 12.278V6C4.75 5.66848 4.8817 5.35054 5.11612 5.11612ZM4.75 14.01V18C4.75 18.3315 4.8817 18.6495 5.11612 18.8839C5.35054 19.1183 5.66848 19.25 6 19.25H10.07C10.11 19.2383 10.1468 19.2168 10.1768 19.1868C10.2237 19.1399 10.25 19.0763 10.25 19.01V14.01C10.25 13.9437 10.2237 13.8801 10.1768 13.8332C10.1299 13.7863 10.0663 13.76 10 13.76H5C4.9337 13.76 4.87011 13.7863 4.82322 13.8332C4.77634 13.8801 4.75 13.9437 4.75 14.01ZM3.25 14.01V6C3.25 5.27065 3.53973 4.57118 4.05546 4.05546C4.57118 3.53973 5.27065 3.25 6 3.25H18C18.7293 3.25 19.4288 3.53973 19.9445 4.05546C20.4603 4.57118 20.75 5.27065 20.75 6V18C20.75 18.7293 20.4603 19.4288 19.9445 19.9445C19.4288 20.4603 18.7293 20.75 18 20.75H10.187C10.1251 20.7566 10.0627 20.76 10 20.76H5C4.53587 20.76 4.09075 20.5756 3.76256 20.2474C3.43438 19.9193 3.25 19.4741 3.25 19.01V18V14.01Z"}))}));t.default=w},18578:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.30691 2.71291C2.27024 2.80134 2.25 2.89831 2.25 3V8C2.25 8.41421 2.58579 8.75 3 8.75C3.41421 8.75 3.75 8.41421 3.75 8V4.81066L10.0056 11.0663L10.0057 11.0663C10.8022 11.8631 11.2497 12.9434 11.25 14.07V14.0702V15V21C11.25 21.4142 11.5858 21.75 12 21.75C12.4142 21.75 12.75 21.4142 12.75 21V15V14.0702V14.07C12.7503 12.9434 13.1979 11.863 13.9944 11.0663L20.25 4.81066V8C20.25 8.41421 20.5858 8.75 21 8.75C21.4142 8.75 21.75 8.41421 21.75 8V3C21.75 2.98706 21.7497 2.97419 21.749 2.96141C21.7446 2.87376 21.7251 2.79009 21.6931 2.71291C21.6565 2.62445 21.6022 2.54158 21.5303 2.46967C21.4584 2.39776 21.3755 2.34351 21.2871 2.30691C21.1987 2.27024 21.1017 2.25 21 2.25H16C15.5858 2.25 15.25 2.58579 15.25 3C15.25 3.41421 15.5858 3.75 16 3.75H19.1893L12.9337 10.0057L12.9336 10.0057C12.5656 10.3739 12.2526 10.7867 12 11.2316C11.7474 10.7867 11.4344 10.3739 11.0664 10.0057L11.0663 10.0057L4.81066 3.75H8C8.41421 3.75 8.75 3.41421 8.75 3C8.75 2.58579 8.41421 2.25 8 2.25H3C2.7937 2.25 2.60686 2.33329 2.47126 2.46808C2.47073 2.46861 2.4702 2.46914 2.46967 2.46967C2.46914 2.4702 2.46861 2.47073 2.46808 2.47126C2.39696 2.5428 2.34324 2.62511 2.30691 2.71291Z"}))}));t.default=w},7882:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 3.25C15.5858 3.25 15.25 3.58579 15.25 4C15.25 4.41421 15.5858 4.75 16 4.75H18.1893L13.4697 9.46967C13.1768 9.76256 13.1768 10.2374 13.4697 10.5303C13.7626 10.8232 14.2374 10.8232 14.5303 10.5303L19.25 5.81066V8C19.25 8.41421 19.5858 8.75 20 8.75C20.4142 8.75 20.75 8.41421 20.75 8V4C20.75 3.80806 20.6768 3.61612 20.5303 3.46967C20.4584 3.39776 20.3755 3.34351 20.2871 3.30691C20.1987 3.27024 20.1017 3.25 20 3.25H16ZM4 15.25C4.41421 15.25 4.75 15.5858 4.75 16V18.1893L9.46967 13.4697C9.76256 13.1768 10.2374 13.1768 10.5303 13.4697C10.8232 13.7626 10.8232 14.2374 10.5303 14.5303L5.81066 19.25H8C8.41421 19.25 8.75 19.5858 8.75 20C8.75 20.4142 8.41421 20.75 8 20.75H4C3.80806 20.75 3.61612 20.6768 3.46967 20.5303C3.39776 20.4584 3.34351 20.3755 3.30691 20.2871C3.27024 20.1987 3.25 20.1017 3.25 20V16C3.25 15.5858 3.58579 15.25 4 15.25ZM20.75 16V20C20.75 20.1017 20.7298 20.1987 20.6931 20.2871C20.6565 20.3755 20.6022 20.4584 20.5303 20.5303C20.4584 20.6022 20.3755 20.6565 20.2871 20.6931C20.2099 20.7251 20.1262 20.7446 20.0386 20.749C20.0258 20.7497 20.0129 20.75 20 20.75H16C15.5858 20.75 15.25 20.4142 15.25 20C15.25 19.5858 15.5858 19.25 16 19.25H18.1893L13.4697 14.5303C13.1768 14.2374 13.1768 13.7626 13.4697 13.4697C13.7626 13.1768 14.2374 13.1768 14.5303 13.4697L19.25 18.1893V16C19.25 15.5858 19.5858 15.25 20 15.25C20.4142 15.25 20.75 15.5858 20.75 16ZM3.71291 3.30691C3.80134 3.27024 3.89831 3.25 4 3.25H8C8.41421 3.25 8.75 3.58579 8.75 4C8.75 4.41421 8.41421 4.75 8 4.75H5.81066L10.5303 9.46967C10.8232 9.76256 10.8232 10.2374 10.5303 10.5303C10.2374 10.8232 9.76256 10.8232 9.46967 10.5303L4.75 5.81066V8C4.75 8.41421 4.41421 8.75 4 8.75C3.58579 8.75 3.25 8.41421 3.25 8V4C3.25 3.7937 3.33329 3.60686 3.46808 3.47126C3.46861 3.47073 3.46914 3.4702 3.46967 3.46967C3.4702 3.46914 3.47073 3.46861 3.47126 3.46808C3.5428 3.39696 3.62511 3.34324 3.71291 3.30691Z"}))}));t.default=w},61433:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{d:"M15.5303 5.46967C15.2374 5.17678 14.7626 5.17678 14.4697 5.46967C14.1768 5.76256 14.1768 6.23744 14.4697 6.53033L17.1893 9.25H8C6.74022 9.25 5.53204 9.75044 4.64124 10.6412C3.75044 11.532 3.25 12.7402 3.25 14C3.25 15.2598 3.75044 16.468 4.64124 17.3588C5.53204 18.2496 6.74022 18.75 8 18.75H9C9.41421 18.75 9.75 18.4142 9.75 18C9.75 17.5858 9.41421 17.25 9 17.25H8C7.13805 17.25 6.3114 16.9076 5.7019 16.2981C5.09241 15.6886 4.75 14.862 4.75 14C4.75 13.138 5.09241 12.3114 5.7019 11.7019C6.3114 11.0924 7.13805 10.75 8 10.75H17.1893L14.4697 13.4697C14.1768 13.7626 14.1768 14.2374 14.4697 14.5303C14.7626 14.8232 15.2374 14.8232 15.5303 14.5303L19.5303 10.5303C19.6768 10.3839 19.75 10.1919 19.75 10C19.75 9.89831 19.7298 9.80134 19.6931 9.71291C19.6565 9.62445 19.6022 9.54158 19.5303 9.46967L15.5303 5.46967Z"}))}));t.default=w},28965:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.55012 4.45178C9.23098 3.48072 11.1845 3.08925 13.1097 3.33767C15.035 3.58609 16.8251 4.46061 18.2045 5.82653C19.5838 7.19245 20.4757 8.97399 20.743 10.8967C20.8 11.307 20.5136 11.6858 20.1033 11.7428C19.6931 11.7998 19.3142 11.5135 19.2572 11.1032C19.0353 9.50635 18.2945 8.02677 17.149 6.89236C16.0035 5.75795 14.5167 5.03165 12.9178 4.82534C11.3189 4.61902 9.69644 4.94414 8.30047 5.75061C7.24361 6.36117 6.36093 7.22198 5.72541 8.24995H8.00009C8.41431 8.24995 8.75009 8.58574 8.75009 8.99995C8.75009 9.41417 8.41431 9.74995 8.00009 9.74995H4.51686C4.5055 9.75021 4.49412 9.75021 4.48272 9.74995H4.00009C3.58588 9.74995 3.25009 9.41417 3.25009 8.99995V4.99995C3.25009 4.58574 3.58588 4.24995 4.00009 4.24995C4.41431 4.24995 4.75009 4.58574 4.75009 4.99995V7.00691C5.48358 5.96916 6.43655 5.0951 7.55012 4.45178Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.89686 12.2571C4.30713 12.2001 4.68594 12.4864 4.74295 12.8967C4.96487 14.4936 5.70565 15.9731 6.85119 17.1075C7.99673 18.242 9.48347 18.9683 11.0824 19.1746C12.6813 19.3809 14.3037 19.0558 15.6997 18.2493C16.7566 17.6387 17.6393 16.7779 18.2748 15.75H16.0001C15.5859 15.75 15.2501 15.4142 15.2501 15C15.2501 14.5857 15.5859 14.25 16.0001 14.25H19.4833C19.4947 14.2497 19.5061 14.2497 19.5175 14.25H20.0001C20.4143 14.25 20.7501 14.5857 20.7501 15V19C20.7501 19.4142 20.4143 19.75 20.0001 19.75C19.5859 19.75 19.2501 19.4142 19.2501 19V16.993C18.5166 18.0307 17.5636 18.9048 16.4501 19.5481C14.7692 20.5192 12.8157 20.9107 10.8904 20.6622C8.9652 20.4138 7.17504 19.5393 5.79572 18.1734C4.4164 16.8074 3.52443 15.0259 3.25723 13.1032C3.20022 12.6929 3.48658 12.3141 3.89686 12.2571Z"}))}));t.default=w},58155:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{d:"M9.53033 6.53033C9.82322 6.23744 9.82322 5.76256 9.53033 5.46967C9.23744 5.17678 8.76256 5.17678 8.46967 5.46967L4.46967 9.46967C4.39776 9.54158 4.34351 9.62445 4.30691 9.71291C4.27024 9.80134 4.25 9.89831 4.25 10C4.25 10.1017 4.27024 10.1987 4.30691 10.2871C4.34351 10.3755 4.39776 10.4584 4.46967 10.5303L8.46967 14.5303C8.76256 14.8232 9.23744 14.8232 9.53033 14.5303C9.82322 14.2374 9.82322 13.7626 9.53033 13.4697L6.81066 10.75H16C16.862 10.75 17.6886 11.0924 18.2981 11.7019C18.9076 12.3114 19.25 13.138 19.25 14C19.25 14.862 18.9076 15.6886 18.2981 16.2981C17.6886 16.9076 16.862 17.25 16 17.25H15C14.5858 17.25 14.25 17.5858 14.25 18C14.25 18.4142 14.5858 18.75 15 18.75H16C17.2598 18.75 18.468 18.2496 19.3588 17.3588C20.2496 16.468 20.75 15.2598 20.75 14C20.75 12.7402 20.2496 11.532 19.3588 10.6412C18.468 9.75044 17.2598 9.25 16 9.25H6.81066L9.53033 6.53033Z"}))}));t.default=w},55995:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2.25C9.41421 2.25 9.75 2.58579 9.75 3C9.75 3.33152 9.8817 3.64946 10.1161 3.88388C10.3505 4.1183 10.6685 4.25 11 4.25C11.4142 4.25 11.75 4.58579 11.75 5C11.75 5.41421 11.4142 5.75 11 5.75C10.6685 5.75 10.3505 5.8817 10.1161 6.11612C9.8817 6.35054 9.75 6.66848 9.75 7C9.75 7.41421 9.41421 7.75 9 7.75C8.58579 7.75 8.25 7.41421 8.25 7C8.25 6.66848 8.1183 6.35054 7.88388 6.11612C7.64946 5.8817 7.33152 5.75 7 5.75C6.58579 5.75 6.25 5.41421 6.25 5C6.25 4.58579 6.58579 4.25 7 4.25C7.33152 4.25 7.64946 4.1183 7.88388 3.88388C8.1183 3.64946 8.25 3.33152 8.25 3C8.25 2.58579 8.58579 2.25 9 2.25ZM9 4.88746C8.98182 4.90673 8.96333 4.92576 8.94454 4.94454C8.92576 4.96333 8.90673 4.98182 8.88746 5C8.90673 5.01818 8.92576 5.03667 8.94454 5.05546C8.96333 5.07424 8.98182 5.09327 9 5.11254C9.01818 5.09327 9.03667 5.07424 9.05546 5.05546C9.07424 5.03667 9.09327 5.01818 9.11254 5C9.09327 4.98182 9.07424 4.96333 9.05546 4.94454C9.03667 4.92576 9.01818 4.90673 9 4.88746Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 2.46967C18.2374 2.17678 17.7626 2.17678 17.4697 2.46967L2.46967 17.4697C2.17678 17.7626 2.17678 18.2374 2.46967 18.5303L5.46967 21.5303C5.76256 21.8232 6.23744 21.8232 6.53033 21.5303L21.5303 6.53033C21.8232 6.23744 21.8232 5.76256 21.5303 5.46967L18.5303 2.46967ZM18 7.93934L19.9393 6L18 4.06066L16.0607 6L18 7.93934ZM15 7.06066L16.9393 9L6 19.9393L4.06066 18L15 7.06066Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.75 13C19.75 12.5858 19.4142 12.25 19 12.25C18.5858 12.25 18.25 12.5858 18.25 13C18.25 13.3315 18.1183 13.6495 17.8839 13.8839C17.6495 14.1183 17.3315 14.25 17 14.25C16.5858 14.25 16.25 14.5858 16.25 15C16.25 15.4142 16.5858 15.75 17 15.75C17.3315 15.75 17.6495 15.8817 17.8839 16.1161C18.1183 16.3505 18.25 16.6685 18.25 17C18.25 17.4142 18.5858 17.75 19 17.75C19.4142 17.75 19.75 17.4142 19.75 17C19.75 16.6685 19.8817 16.3505 20.1161 16.1161C20.3505 15.8817 20.6685 15.75 21 15.75C21.4142 15.75 21.75 15.4142 21.75 15C21.75 14.5858 21.4142 14.25 21 14.25C20.6685 14.25 20.3505 14.1183 20.1161 13.8839C19.8817 13.6495 19.75 13.3315 19.75 13ZM18.9445 14.9445C18.9633 14.9258 18.9818 14.9067 19 14.8875C19.0182 14.9067 19.0367 14.9258 19.0555 14.9445C19.0742 14.9633 19.0933 14.9818 19.1125 15C19.0933 15.0182 19.0742 15.0367 19.0555 15.0555C19.0367 15.0742 19.0182 15.0933 19 15.1125C18.9818 15.0933 18.9633 15.0742 18.9445 15.0555C18.9258 15.0367 18.9067 15.0182 18.8875 15C18.9067 14.9818 18.9258 14.9633 18.9445 14.9445Z"}))}));t.default=w},80897:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=i(n(73119)),x=n(5856),w=b.default.forwardRef((function(e,t){return b.default.createElement(x.SvgIcon,(0,C.default)({viewBox:"0 0 24 24"},e,{ref:t}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.75C6.54822 3.75 3.75 6.54822 3.75 10C3.75 13.4518 6.54822 16.25 10 16.25C13.4518 16.25 16.25 13.4518 16.25 10C16.25 6.54822 13.4518 3.75 10 3.75ZM2.25 10C2.25 5.71979 5.71979 2.25 10 2.25C14.2802 2.25 17.75 5.71979 17.75 10C17.75 14.2802 14.2802 17.75 10 17.75C5.71979 17.75 2.25 14.2802 2.25 10Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 10C6.25 9.58579 6.58579 9.25 7 9.25H13C13.4142 9.25 13.75 9.58579 13.75 10C13.75 10.4142 13.4142 10.75 13 10.75H7C6.58579 10.75 6.25 10.4142 6.25 10Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V13C10.75 13.4142 10.4142 13.75 10 13.75C9.58579 13.75 9.25 13.4142 9.25 13V7C9.25 6.58579 9.58579 6.25 10 6.25Z"}),b.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4697 14.4697C14.7626 14.1768 15.2374 14.1768 15.5303 14.4697L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L14.4697 15.5303C14.1768 15.2374 14.1768 14.7626 14.4697 14.4697Z"}))}));t.default=w},39324:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(73119)),k=C(n(40131)),S=C(n(59441)),_=C(n(62193)),P=n(5856);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)}var O=function MediaDialog(e){var t=e.onClose,n=e.DialogProps,b=e.getControlValue,C=e.controlView,x=e.additionalOptions,O=e.credits,I=e.maybeRenderUpgradeChip,T=(0,w.useState)(!1),A=(0,k.default)(T,2),M=A[0],R=A[1],j=(0,w.useState)(!1),D=(0,k.default)(j,2),L=D[0],N=D[1],F=function onCloseIntent(){M?N(!0):t()};return w.default.createElement(w.default.Fragment,null,w.default.createElement(S.default,(0,E.default)({onClose:F,maxWidth:"lg"},n),w.default.createElement(S.default.Header,{onClose:F},I()),w.default.createElement(P.Divider,null),w.default.createElement(_.default,{onClose:t,getControlValue:b,controlView:C,additionalOptions:x,credits:O,setHasUnsavedChanges:R})),L&&w.default.createElement(P.Dialog,{open:!0,onClose:t,"aria-labelledby":"unsaved-changes-alert-title","aria-describedby":"unsaved-changes-alert-description"},w.default.createElement(P.DialogTitle,{id:"unsaved-changes-alert-title",sx:{borderBottom:0}},i("Leave Elementor AI?","elementor")),w.default.createElement(P.DialogContent,null,w.default.createElement(P.DialogContentText,{id:"unsaved-changes-alert-description"},i("Images will be gone forever and we won’t be able to recover them.","elementor"))),w.default.createElement(P.DialogActions,null,w.default.createElement(P.Button,{onClick:function onClick(){return N(!1)},color:"secondary"},i("Cancel","elementor")),w.default.createElement(P.Button,{onClick:t,color:"error",variant:"contained"},i("Yes, leave","elementor")))))};O.propTypes={onClose:b.func.isRequired,DialogProps:b.object,getControlValue:b.func.isRequired,controlView:b.object,additionalOptions:b.object,credits:b.number,maybeRenderUpgradeChip:b.func};var I=O;t.default=I},88450:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=b(n(73119)),w=b(n(85157)),E=b(n(65345)),k=b(n(69714)),S=b(n(96587)),_=b(n(71871)),P=b(n(5647)),O=b(n(30313)),I=b(n(59441)),T=b(n(46369)),A=b(n(39324)),M=function PageContent(e){var t=e.type,n=e.controlType,i=e.onClose,b=e.onConnect,M=e.getControlValue,R=e.setControlValue,j=e.controlView,D=e.additionalOptions,L=(0,P.default)(),N=L.isLoading,F=L.isConnected,B=L.isGetStarted,z=L.connectUrl,W=L.fetchData,G=L.hasSubscription,q=L.credits,U=L.usagePercentage,V={sx:{"& .MuiDialog-container":{alignItems:"flex-start",mt:"media"===t?"2.5vh":"18vh"}},PaperProps:{sx:{m:0,maxHeight:"media"===t?"95vh":"76vh",height:N||"media"!==t?"auto":"95vh"}}},H=function maybeRenderUpgradeChip(){if(!G||80<=U)return C.default.createElement(T.default,{hasSubscription:G,usagePercentage:U})};return N?C.default.createElement(I.default,(0,x.default)({onClose:i},V,{maxWidth:"media"===t?"lg":"sm"}),C.default.createElement(I.default.Header,{onClose:i}),C.default.createElement(I.default.Content,{dividers:!0},C.default.createElement(_.default,null))):F?B?"media"===t?C.default.createElement(A.default,{onClose:i,getControlValue:M,controlView:j,additionalOptions:D,credits:q,maybeRenderUpgradeChip:H,DialogProps:V}):"code"===t?C.default.createElement(I.default,(0,x.default)({onClose:i},V),C.default.createElement(I.default.Header,{onClose:i},H()),C.default.createElement(I.default.Content,{dividers:!0},C.default.createElement(k.default,{onClose:i,getControlValue:M,setControlValue:R,additionalOptions:D,credits:q,usagePercentage:U}))):C.default.createElement(I.default,(0,x.default)({onClose:i},V),C.default.createElement(I.default.Header,{onClose:i},H()),C.default.createElement(I.default.Content,{dividers:!0},C.default.createElement(w.default,{type:t,controlType:n,onClose:i,getControlValue:M,setControlValue:R,additionalOptions:D,credits:q,usagePercentage:U}))):C.default.createElement(O.default,{onClose:i},C.default.createElement(O.default.Header,{onClose:i}),C.default.createElement(O.default.Content,{dividers:!0},C.default.createElement(S.default,{onSuccess:W}))):C.default.createElement(O.default,{onClose:i},C.default.createElement(O.default.Header,{onClose:i}),C.default.createElement(O.default.Content,{dividers:!0},C.default.createElement(E.default,{connectUrl:z,onSuccess:function onSuccess(e){b(e),W()}})))};M.propTypes={type:i.string,controlType:i.string,onClose:i.func.isRequired,onConnect:i.func.isRequired,getControlValue:i.func.isRequired,setControlValue:i.func.isRequired,additionalOptions:i.object,controlView:i.object};var R=M;t.default=R},65345:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==C(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 x in e)if("default"!==x&&Object.prototype.hasOwnProperty.call(e,x)){var w=b?Object.getOwnPropertyDescriptor(e,x):null;w&&(w.get||w.set)?Object.defineProperty(i,x,w):i[x]=e[x]}i.default=e,n&&n.set(e,i);return i}(n(87363)),w=n(5856),E=n(62506);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)}var k=function Connect(e){var t=e.connectUrl,n=e.onSuccess,b=(0,x.useRef)();return(0,x.useEffect)((function(){jQuery(b.current).elementorConnect({success:function success(e,t){return n(t)},error:function error(){throw new Error("Elementor AI: Failed to connect.")}})}),[]),x.default.createElement(w.Stack,{alignItems:"center",gap:5},x.default.createElement(E.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:3}}),x.default.createElement(w.Typography,{variant:"h4",sx:{color:"text.primary"}},i("Step into the future with Elementor AI","elementor")),x.default.createElement(w.Typography,{variant:"body2"},i("Create smarter with AI text and code generators built right into the editor.","elementor")),x.default.createElement(w.Typography,{variant:"caption",sx:{maxWidth:520,textAlign:"center"}},i('By clicking "Connect", I approve the ',"elementor"),x.default.createElement(w.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},i("Terms of Service","elementor"))," & ",x.default.createElement(w.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},i("Privacy Policy","elementor")),i(" of the Elementor AI service.","elementor")),x.default.createElement(w.Button,{ref:b,href:t,variant:"contained",sx:{mt:3,"&:hover":{color:"primary.contrastText"}}},i("Connect","elementor")))};k.propTypes={connectUrl:b.string.isRequired,onSuccess:b.func.isRequired};var S=k;t.default=S},56577:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(73119)),k=C(n(70966)),S=n(5856),_=C(n(87105)),P=["node","inline","children","defaultValue","onInsert"];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)}var O=function CodeBlock(e){e.node;var t=e.inline,n=e.children,b=e.defaultValue,C=e.onInsert,x=(0,k.default)(e,P),O=(0,w.useRef)(null);return t?w.default.createElement("code",x):w.default.createElement(S.Box,{sx:{position:"relative"},dir:"ltr"},w.default.createElement(_.default,(0,E.default)({fullWidth:!0,ref:O,defaultValue:n[0],sx:{mb:3},helperText:i("Code generated by AI may be inaccurate.","elementor")},x)),w.default.createElement(S.Button,{size:"small",variant:"contained",onClick:function onClick(){return C(b+"\n"+O.current.value)},sx:{position:"absolute",right:"11px /* @noflip */",bottom:"44px"}},i("Insert","elementor")))};O.propTypes={node:b.object,inline:b.bool,children:b.arrayOf(b.node).isRequired,defaultValue:b.string,onInsert:b.func.isRequired};var I=O;t.default=I},69714:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(50824)),k=C(n(73119)),S=C(n(10029)),_=C(n(40131)),P=C(n(93231)),O=n(5856),I=C(n(21477)),T=n(17927),A=C(n(71871)),M=C(n(51391)),R=C(n(79619)),j=C(n(4466)),D=C(n(86960)),L=C(n(56577)),N=C(n(5348)),F=C(n(98495));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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,P.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var B=(0,O.styled)(O.Box)((function(){return{"& p":{mb:"10px",fontSize:"13px",lineHeight:"1.5"},"& pre":{position:"relative"},"& textarea":{fontSize:"13px",lineHeight:"1.7"}}})),z=function FormCode(e){var t=e.onClose,n=e.getControlValue,b=e.setControlValue,C=e.additionalOptions,x=e.credits,P=e.usagePercentage,z=(0,N.default)(_objectSpread(_objectSpread({},C),{},{credits:x})),W=z.data,G=z.isLoading,q=z.error,U=z.reset,V=z.send,H=z.sendUsageData,Z=(0,w.useState)(""),Y=(0,_.default)(Z,2),X=Y[0],K=Y[1],$=(0,w.useRef)((function(){})),Q="css"===(null==C?void 0:C.codeLanguage)?T.codeCssAutocomplete:T.codeHtmlAutocomplete,J=!X,ee=function(){var e=(0,S.default)(E.default.mark((function _callee(e){return E.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:e.preventDefault(),$.current=function(){return V(X)},$.current();case 3:case"end":return t.stop()}}),_callee)})));return function handleSubmit(t){return e.apply(this,arguments)}}(),te=function applyPrompt(e){H(),b(e),t()};return G?w.default.createElement(A.default,null):w.default.createElement(w.default.Fragment,null,q&&w.default.createElement(D.default,{error:q,onRetry:$.current,sx:{mb:6}}),!W.result&&w.default.createElement(O.Box,{component:"form",onSubmit:ee},w.default.createElement(O.Box,{sx:{pb:4}},w.default.createElement(M.default,{placeholder:i("Describe the code you want to use...","elementor"),name:"prompt",value:X,color:"secondary",onChange:function onChange(e){return K(e.target.value)}})),J&&w.default.createElement(R.default,{suggestions:Q,onSelect:K}),w.default.createElement(O.Stack,{direction:"row",alignItems:"center",sx:{py:4,mt:8}},w.default.createElement(F.default,{usagePercentage:P}),w.default.createElement(O.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},w.default.createElement(j.default,null,i("Generate code","elementor"))))),W.result&&w.default.createElement(B,null,w.default.createElement(I.default,{components:{code:function code(e){return w.default.createElement(L.default,(0,k.default)({},e,{defaultValue:n(),onInsert:te}))}}},W.result),w.default.createElement(O.Stack,{direction:"row",alignItems:"center",sx:{mt:8}},w.default.createElement(F.default,{usagePercentage:P}),w.default.createElement(O.Stack,{direction:"row",gap:3,justifyContent:"flex-end",flexGrow:1},w.default.createElement(O.Button,{size:"small",color:"secondary",variant:"text",onClick:U},i("New prompt","elementor"))))))};z.propTypes={onClose:b.func.isRequired,getControlValue:b.func.isRequired,setControlValue:b.func.isRequired,additionalOptions:b.shape({codeLanguage:b.string,htmlMarkup:b.string,elementId:b.string,initialCredits:b.number}),credits:b.number,usagePercentage:b.number};var W=z;t.default=W},80702:(e,t,n)=>{"use strict";var i=n(38003).__;Object.defineProperty(t,"__esModule",{value:!0}),t.SCREENS=t.PANELS=t.IMAGE_PROMPT_SETTINGS=t.IMAGE_PROMPT_CATEGORIES=t.IMAGE_ASPECT_RATIO_DIMENSIONS=t.IMAGE_ASPECT_RATIOS=t.IMAGE_ACTIONS=void 0;t.IMAGE_ACTIONS={USE:"use",REFERENCE:"reference",ZOOM:"zoom"};t.SCREENS={GENERATE:"generate",GENERATE_RESULTS:"generate-results",VARIATIONS:"variations",GALLERY:"gallery",IMAGE_EDITOR:"image-editor",IN_PAINTING:"in-painting",OUT_PAINTING:"out-painting"};t.PANELS={TEXT_TO_IMAGE:"text-to-image",IMAGE_TO_IMAGE:"image-to-image",TOOLS:"tools",IN_PAINTING:"in-painting",OUT_PAINTING:"out-painting",UPSCALE:"upscale"};t.IMAGE_PROMPT_SETTINGS={IMAGE_TYPE:"image_type",STYLE_PRESET:"style_preset",IMAGE_STRENGTH:"image_strength",ASPECT_RATIO:"ratio",ZOOM:"zoom",UPSCALE_TO:"upscale_to"};var b=[{key:"",label:i("None","elementor"),subCategories:{}},{key:"photographic",label:i("Photographic","elementor"),subCategories:{"":i("None","elementor"),landscape:i("Landscape","elementor"),macro:i("Macro","elementor"),portrait:i("Portrait","elementor"),"long-exposure":i("Long Exposure","elementor")}},{key:"background",label:i("Background","elementor"),subCategories:{"":i("None","elementor"),floral:i("Floral","elementor"),gradient:i("Gradient","elementor"),mosaic:i("Mosaic","elementor"),neon:i("Neon","elementor"),bokeh:i("Bokeh","elementor")}},{key:"digital-art",label:i("Digital Art","elementor"),subCategories:{"":i("None","elementor"),amine:i("Anime","elementor"),cartoon:i("Cartoon","elementor"),cinematic:i("Cinematic","elementor"),"comic-book":i("Comic Book","elementor"),"fantasy-art":i("Fantasy Art","elementor"),isometric:i("Isometric","elementor"),vector:i("Vector","elementor"),"pixel-art":i("Pixel Art","elementor"),"low-poly":i("Low Poly","elementor"),"neon-punk":i("Neon Punk","elementor")}},{key:"handmade",label:i("Handmade","elementor"),subCategories:{"":i("None","elementor"),doodle:i("Doodle","elementor"),"line-art":i("Line Art","elementor"),"oil-painting":i("Oil Painting","elementor"),"pencil-drawing":i("Pencil Drawing","elementor"),watercolor:i("Watercolor","elementor")}},{key:"3d",label:i("3D","elementor"),subCategories:{"":i("None","elementor"),clay:i("Clay","elementor"),digital:i("Digital","elementor"),origami:i("Origami","elementor"),stone:i("Stone","elementor"),wood:i("Wood","elementor")}}];t.IMAGE_PROMPT_CATEGORIES=b;var C={"1:1":i("Square","elementor")+" (1:1)","3:2":i("Landscape","elementor")+" (3:2)","4:3":i("Landscape","elementor")+" (4:3)","16:9":i("Landscape","elementor")+" (16:9)","2:3":i("Portrait","elementor")+" (2:3)","3:4":i("Portrait","elementor")+" (3:4)","9:16":i("Portrait","elementor")+" (9:16)"};t.IMAGE_ASPECT_RATIOS=C;t.IMAGE_ASPECT_RATIO_DIMENSIONS={"1:1":{width:512,height:512},"2:3":{width:448,height:640},"3:4":{width:448,height:640},"9:16":{width:384,height:704},"3:2":{width:640,height:448},"4:3":{width:640,height:448},"16:9":{width:704,height:384}}},62193:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203),C=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==C(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 x in e)if("default"!==x&&Object.prototype.hasOwnProperty.call(e,x)){var w=b?Object.getOwnPropertyDescriptor(e,x):null;w&&(w.get||w.set)?Object.defineProperty(i,x,w):i[x]=e[x]}i.default=e,n&&n.set(e,i);return i}(n(87363)),w=b(n(70966)),E=b(n(93231)),k=b(n(40131)),S=n(5856),_=b(n(87159)),P=b(n(89031)),O=b(n(36023)),I=b(n(59176)),T=n(80702),A=n(40728),M=n(91516),R=b(n(86300)),j=n(82643),D=["image"];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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,E.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=function FormMedia(e){var t=e.onClose,n=e.getControlValue,i=e.additionalOptions,b=e.controlView,C=e.credits,L=e.setHasUnsavedChanges,N=n()===(null==i?void 0:i.defaultValue)?{id:"",url:""}:n(),F=(0,x.useState)(N),B=(0,k.default)(F,2),z=B[0],W=B[1],G=(0,I.default)(""!==(null==N?void 0:N.id)?T.SCREENS.IMAGE_EDITOR:T.SCREENS.GALLERY,""===N.id&&""===z.id?T.PANELS.TEXT_TO_IMAGE:T.PANELS.TOOLS),q=G.screen,U=G.setScreen,V=G.panel,H=G.setPanel,Z=(0,x.useState)(""),Y=(0,k.default)(Z,2),X=Y[0],K=Y[1],$=(0,x.useState)(""),Q=(0,k.default)($,2),J=Q[0],ee=Q[1],te=(0,O.default)({style:""===N.id?(null==i?void 0:i.defaultImageType)||T.IMAGE_PROMPT_CATEGORIES[1].key:""}),ne=te.promptSettings,re=te.updatePromptSettings,oe=te.resetPromptSettings,ae=(0,x.useState)([]),ie=(0,k.default)(ae,2),le=ie[0],ue=ie[1],ce=(0,x.useState)(!1),se=(0,k.default)(ce,2),de=se[0],fe=se[1],pe=(0,_.default)({result:N,credits:C,responseId:!1}),me=pe.data,ge=pe.isLoading,he=pe.error,ye=pe.send,ve=pe.sendUsageData,be=pe.reset,Ce=(0,P.default)(),xe=Ce.attachmentData,we=Ce.isUploading,Ee=Ce.uploadError,ke=Ce.upload,Se=Ce.resetUpload,_e=(0,x.useState)((function(){return!(null==z||!z.url)})),Pe=(0,k.default)(_e,2),Oe=Pe[0],Ie=Pe[1],Te=!ge&&!we&&!Oe,Ae=ne[T.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO],Me={width:T.IMAGE_ASPECT_RATIO_DIMENSIONS[Ae].width,height:T.IMAGE_ASPECT_RATIO_DIMENSIONS[Ae].height,ratio:Ae},Re=function setAttachment(){L(!1),ve(),b.setSettingsModel(xe.image),b.applySavedValue(),t()};(0,x.useEffect)((function(){if(null!=z&&z.url){Ie(!0);var e=new Image;e.src=z.url,e.onload=function(){var t=(0,j.getAspectRatioSizes)(e.width,e.height).ratio;re((0,E.default)({},T.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO,t)),Ie(!1)}}}),[z]),(0,x.useEffect)((function(){!ge&&null!=me&&me.result&&Array.isArray(null==me?void 0:me.result)&&(ue(null==me?void 0:me.result),U(T.SCREENS.GENERATE_RESULTS))}),[ge]),(0,x.useEffect)((function(){var e;!we&&null!=xe&&null!==(e=xe.image)&&void 0!==e&&e.id&&(de?Re(xe.image):(W(xe.image),H(T.PANELS.TOOLS),U(T.SCREENS.IMAGE_EDITOR)))}),[we]);var je=function generateNewPrompt(){K(""),ue([]),ee(null),W({id:"",url:""}),oe(),U(T.SCREENS.GALLERY),H(T.PANELS.TEXT_TO_IMAGE),L(!1),be(),Se()};return x.default.createElement(S.Box,{display:"flex",sx:{overflowY:"auto"},height:"100%"},x.default.createElement(S.Box,{position:"relative"},x.default.createElement(R.default,null,x.default.createElement(M.PanelContent,{error:he||Ee,prompt:X,setPrompt:K,panelActive:Te,generateNewPrompt:je,promptSettings:ne,updatePromptSettings:re,submitPrompt:function submitPrompt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return be(),Se(),L(!0),T.PANELS.TEXT_TO_IMAGE===e?ye(t,ne):T.PANELS.IN_PAINTING===e?ye(t,ne,z,T.PANELS.IN_PAINTING,n):T.PANELS.OUT_PAINTING===e?ye(t,ne,!0,T.PANELS.OUT_PAINTING,J):T.PANELS.UPSCALE===e?ye(null,ne,z,T.PANELS.UPSCALE):ye(X,ne,z)},panel:V,editImage:z,images:le,setTool:function setTool(e){var t=e||T.PANELS.TOOLS,n=T.SCREENS.IMAGE_EDITOR;switch(e){case T.PANELS.IMAGE_TO_IMAGE:n=T.SCREENS.VARIATIONS;break;case T.PANELS.IN_PAINTING:n=T.SCREENS.IN_PAINTING;break;case T.PANELS.OUT_PAINTING:n=T.SCREENS.OUT_PAINTING;break;case T.PANELS.UPSCALE:n=T.SCREENS.IMAGE_EDITOR}H(t),U(n)},maskImage:J,reset:be,viewData:Me}))),x.default.createElement(A.Screen,{isUploading:we,isLoading:ge,screen:q,images:le,promptSettings:ne,updatePromptSettings:re,generateNewPrompt:je,maybeUploadImage:function maybeUploadImage(e){var t,n,i,b,C=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){if(C&&fe(!0),null!=z&&null!==(t=z.image)&&void 0!==t&&t.seed&&(null==z||null===(n=z.image)||void 0===n?void 0:n.seed)===(null===(i=e)||void 0===i?void 0:i.seed)){if(C){z.image,(0,w.default)(z,D);return Re()}H(T.PANELS.TOOLS),re((0,E.default)({},T.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO,"1:1"))}null!==(b=e)&&void 0!==b&&b.imageUrl&&(e=_objectSpread(_objectSpread({},e),{},{image_url:e.imageUrl,use_gallery_image:!0})),ke({image:_objectSpread({},e),prompt:X||e.prompt})}},setPrompt:K,editImage:z,setMaskImage:ee,viewData:Me,shouldWaitForInitialImage:Oe}))};L.propTypes={getControlValue:i.func.isRequired,onClose:i.func.isRequired,additionalOptions:i.object,controlView:i.object,credits:i.number,setHasUnsavedChanges:i.func.isRequired};var N=L;t.default=N},12277:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(40131)),k=C(n(93231)),S=n(80702),_=C(n(93970)),P=n(5856),O=C(n(38136)),I=C(n(87105)),T=C(n(55995)),A=C(n(90334));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)}var M=function PromptForm(e){var t=e.promptSettings,n=e.updatePromptSettings,b=e.prompt,C=void 0===b?"":b,x=e.setPrompt,M=e.panelActive,R=e.hasImage,j=void 0!==R&&R,D=e.disableAspectRatio,L=void 0!==D&&D,N=S.IMAGE_PROMPT_CATEGORIES.find((function(e){return e.key===t[S.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE]}))||{subCategories:{}},F=(0,O.default)("ai-image-gallery").data,B=(0,A.default)(C),z=B.data,W=B.isLoading,G=B.send;(0,w.useEffect)((function(){!W&&null!=z&&z.result&&x(null==z?void 0:z.result)}),[W]);var q=function getPromptPlaceholder(e){var t;if(null==e||null===(t=e.images)||void 0===t||!t.length)return i("describe your image","elementor");var n=e.images;return n[Math.floor(Math.random()*n.length)].prompt}(F),U=t[S.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE],V=t[S.IMAGE_PROMPT_SETTINGS.STYLE_PRESET],H=t[S.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO];return w.default.createElement(w.default.Fragment,null,j&&w.default.createElement(P.FormControl,{sx:{width:"100%",mb:6}},w.default.createElement(P.Slider,{onChange:function onChange(e,t){return n((0,k.default)({},S.IMAGE_PROMPT_SETTINGS.IMAGE_STRENGTH,t))},id:"image_strength",name:"image_strength","aria-label":i("Reference strength","elementor"),defaultValue:45,getAriaValueText:function getAriaValueText(e){return"".concat(e,"%")},valueLabelDisplay:"auto",step:10,marks:!0,min:0,max:100,color:"secondary"}),w.default.createElement(P.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},w.default.createElement(P.Typography,{variant:"caption"},i("Prompt","elementor")),w.default.createElement(P.Typography,{variant:"caption"},i("Reference image","elementor")))),w.default.createElement(P.Stack,{gap:6},w.default.createElement(I.default,{minRows:3,maxRows:6,disabled:!M||W,placeholder:q,onChange:function onChange(e){return x(e.target.value)},value:C,onKeyDown:function onKeyDown(e){"Tab"===e.key&&(e.preventDefault(),x(q))},InputProps:{endAdornment:w.default.createElement(P.InputAdornment,{position:"end",sx:{position:"absolute",bottom:"24px",right:"8px"}},W?w.default.createElement(P.CircularProgress,{color:"secondary",size:20,sx:{mr:2}}):w.default.createElement(P.Tooltip,{title:i("Enhance prompt","elementor")},w.default.createElement(P.Box,{component:"span",sx:{cursor:"pointer"}},w.default.createElement(P.IconButton,{size:"small",color:"secondary",onClick:function onClick(){return G(C)},disabled:!M||W||!C},w.default.createElement(T.default,null)))))},sx:{"& .MuiInputBase-input.MuiOutlinedInput-input.MuiInputBase-inputMultiline":{pb:9,width:"89%"}}}),w.default.createElement(_.default,{wrapperStyle:{width:"100%"},label:i("Image type","elementor"),options:S.IMAGE_PROMPT_CATEGORIES.map((function(e){return{label:e.label,value:e.key}})),onChange:function onChange(e){return n((0,k.default)({},S.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE,e.target.value))},value:U,disabled:!M}),w.default.createElement(_.default,{wrapperStyle:{width:"100%"},label:i("Style","elementor"),options:Object.entries(N.subCategories).map((function(e){var t=(0,E.default)(e,2),n=t[0];return{label:t[1],value:n}})),onChange:function onChange(e){return n((0,k.default)({},S.IMAGE_PROMPT_SETTINGS.STYLE_PRESET,e.target.value))},value:V,disabled:!M||!U||!1}),!L&&w.default.createElement(_.default,{wrapperStyle:{width:"100%"},label:i("Aspect ratio","elementor"),options:Object.entries(S.IMAGE_ASPECT_RATIOS).map((function(e){var t=(0,E.default)(e,2),n=t[0];return{label:t[1],value:n}})),onChange:function onChange(e){return n((0,k.default)({},S.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO,e.target.value))},value:H,disabled:!M||L})))};M.propTypes={panelActive:b.bool,prompt:b.string,setPrompt:b.func,promptSettings:b.object,updatePromptSettings:b.func,hasImage:b.bool,disableAspectRatio:b.bool};var R=M;t.default=R},40044:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=n(5856),E=C(n(4466)),k=C(n(12277)),S=n(80702),_=C(n(86960)),P=C(n(28965)),O=function ImagePromptForm(e){var t=e.panelActive,n=e.prompt,b=void 0===n?"":n,C=e.setPrompt,O=e.generateNewPrompt,I=e.images,T=e.promptSettings,A=e.updatePromptSettings,M=e.submitPrompt,R=e.error,j=function handleSubmit(e){e.preventDefault(),M(S.PANELS.TEXT_TO_IMAGE,b)};return x.default.createElement(w.Box,{component:"form",onSubmit:j},x.default.createElement(w.Typography,{variant:"h3",sx:{mb:3}},i("Imagine anything create everything","elementor")),x.default.createElement(w.Typography,{variant:"body1",color:"secondary",sx:{mb:8}},i("Generate images by selecting the desired type and style, and entering a prompt.","elementor")),R&&x.default.createElement(_.default,{error:R,sx:{mb:6},actionPosition:"bottom",onRetry:j}),x.default.createElement(k.default,{prompt:b,setPrompt:C,panelActive:t,promptSettings:T,updatePromptSettings:A}),I.length?x.default.createElement(w.Stack,{gap:5,sx:{my:6}},x.default.createElement(w.Button,{fullWidth:!0,type:"submit",variant:"contained",color:"secondary",startIcon:x.default.createElement(P.default,null),disabled:!t||""===b,sx:{color:"background.paper"}},i("Generate again","elementor")),x.default.createElement(w.Button,{fullWidth:!0,variant:"text",color:"secondary",disabled:!t,onClick:O},i("New prompt","elementor"))):x.default.createElement(E.default,{size:"medium",disabled:!t||""===b,fullWidth:!0,sx:{my:6}},i("Generate images","elementor")))};O.propTypes={panelActive:b.bool,prompt:b.string,setPrompt:b.func,generateNewPrompt:b.func,images:b.array,promptSettings:b.object,updatePromptSettings:b.func,submitPrompt:b.func,error:b.string,backToTools:b.func};var I=O;t.default=I},34400:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=n(5856),E=C(n(7882)),k=C(n(88371)),S=C(n(18578)),_=C(n(46819)),P=n(80702),O=C(n(82752)),I=(0,w.withDirection)(O.default),T=function TeaserDrawing(){return x.default.createElement(w.SvgIcon,{viewBox:"0 0 184 80",sx:{width:184,height:80}},x.default.createElement("g",{clipPath:"url(#clip0_3127_96542)"},x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.6014 1.36364C49.6014 0.610521 48.9907 0 48.2373 0C47.4839 0 46.8731 0.610521 46.8731 1.36364C46.8731 1.9664 46.6336 2.54448 46.2072 2.9707C45.7808 3.39692 45.2025 3.63636 44.5995 3.63636C43.8461 3.63636 43.2354 4.24689 43.2354 5C43.2354 5.75311 43.8461 6.36364 44.5995 6.36364C45.2025 6.36364 45.7808 6.60308 46.2072 7.0293C46.6336 7.45552 46.8731 8.0336 46.8731 8.63636C46.8731 9.38948 47.4839 10 48.2373 10C48.9907 10 49.6014 9.38948 49.6014 8.63636C49.6014 8.0336 49.8409 7.45552 50.2673 7.0293C50.6937 6.60308 51.272 6.36364 51.875 6.36364C52.6284 6.36364 53.2392 5.75311 53.2392 5C53.2392 4.24689 52.6284 3.63636 51.875 3.63636C51.272 3.63636 50.6937 3.39692 50.2673 2.9707C49.8409 2.54448 49.6014 1.9664 49.6014 1.36364ZM48.1364 4.89917C48.1706 4.86501 48.2042 4.83041 48.2373 4.79538C48.2703 4.83041 48.304 4.86501 48.3381 4.89917C48.3723 4.93333 48.4069 4.96694 48.4419 5C48.4069 5.03306 48.3723 5.06667 48.3381 5.10083C48.304 5.13499 48.2703 5.16959 48.2373 5.20462C48.2042 5.16959 48.1706 5.13499 48.1364 5.10083C48.1022 5.06667 48.0676 5.03306 48.0326 5C48.0676 4.96694 48.1022 4.93333 48.1364 4.89917Z",fill:"#69727D"}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.6927 22.3677C66.6927 21.6177 66.082 21.0098 65.3286 21.0098C64.5752 21.0098 63.9644 21.6177 63.9644 22.3677C63.9644 22.9679 63.7249 23.5436 63.2985 23.968C62.8721 24.3924 62.2938 24.6309 61.6908 24.6309C60.9374 24.6309 60.3267 25.2388 60.3267 25.9888C60.3267 26.7387 60.9374 27.3467 61.6908 27.3467C62.2938 27.3467 62.8721 27.5851 63.2985 28.0096C63.7249 28.434 63.9644 29.0096 63.9644 29.6099C63.9644 30.3598 64.5752 30.9678 65.3286 30.9678C66.082 30.9678 66.6927 30.3598 66.6927 29.6099C66.6927 29.0096 66.9323 28.434 67.3586 28.0096C67.785 27.5851 68.3633 27.3467 68.9663 27.3467C69.7197 27.3467 70.3305 26.7387 70.3305 25.9888C70.3305 25.2388 69.7197 24.6309 68.9663 24.6309C68.3633 24.6309 67.785 24.3924 67.3586 23.968C66.9323 23.5436 66.6927 22.9679 66.6927 22.3677ZM65.2277 25.8884C65.2619 25.8544 65.2955 25.8199 65.3286 25.785C65.3616 25.8199 65.3953 25.8544 65.4294 25.8884C65.4636 25.9224 65.4982 25.9559 65.5333 25.9888C65.4982 26.0217 65.4636 26.0552 65.4294 26.0892C65.3953 26.1232 65.3616 26.1577 65.3286 26.1925C65.2955 26.1577 65.2619 26.1232 65.2277 26.0892C65.1935 26.0552 65.1589 26.0217 65.1239 25.9888C65.1589 25.9559 65.1935 25.9224 65.2277 25.8884Z",fill:"#69727D"}),x.default.createElement("path",{d:"M53.9717 12L57.2198 17.0456L3.24796 51.4731L-0.000164873 46.4275L53.9717 12Z",fill:"#69727D"}),x.default.createElement("path",{d:"M64.9761 5L68.2242 10.0456L57.2612 17.0387L54.013 11.9931L64.9761 5Z",fill:"#E6E8EA"}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.7284 9.49923L64.432 7.48537L56.5088 12.5394L57.8052 14.5533L65.7284 9.49923ZM64.9761 5L54.013 11.9931L57.2612 17.0387L68.2242 10.0456L64.9761 5Z",fill:"#69727D"}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M128 41C128 43.7687 121.671 46.2089 112.052 47.6451L114.482 74.7976C114.494 74.8647 114.5 74.9322 114.5 75C114.5 75.0001 114.5 75.0002 114.5 75.0003C114.513 75.1456 114.487 75.2779 114.43 75.3982C113.514 77.9735 103.8 80 91.95 80C79.496 80 69.4 77.7614 69.4 75C69.4 74.8146 69.4456 74.6315 69.5343 74.4513L71.2141 47.5326C62.0087 46.0835 56 43.6977 56 41C56 36.5817 72.1177 33 92 33C111.882 33 128 36.5817 128 41Z",fill:"#69727D"}),x.default.createElement("path",{d:"M106.685 3.08259C112.562 16.564 109.338 34.1761 106.713 41.4407C106.713 41.4407 105.151 41.9127 100.894 41.9715C96.6371 42.0303 95.0251 41.9866 95.0251 41.4558C95.0252 40.9249 94.6272 34.6461 96.4177 22.3308C98.0343 11.2116 102.692 5.02553 105.448 2.75675C105.865 2.4137 106.47 2.58777 106.685 3.08259Z",fill:"#E6E8EA"}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.883 4.66783C105.347 4.17219 106.14 4.35208 106.38 4.9873C108.716 11.1748 109.254 18.1507 108.889 24.5355C108.513 31.1152 107.184 36.9856 105.954 40.5842C105.778 40.6166 105.55 40.6541 105.265 40.6927C104.388 40.8119 102.974 40.9423 100.88 40.9712C98.7385 41.0008 97.3196 41.0031 96.4377 40.9371C96.2614 40.9239 96.1203 40.9088 96.0088 40.8935C95.9567 39.0573 95.8782 32.9919 97.4073 22.4743C98.766 13.1288 102.302 7.42438 104.883 4.66783ZM106.713 41.4403L107.002 42.3975C107.305 42.3062 107.546 42.0773 107.653 41.7802C109 38.0524 110.481 31.7376 110.886 24.6496C111.29 17.5654 110.626 9.61894 107.602 2.68255C107.147 1.63949 105.792 1.17814 104.812 1.98425C101.838 4.43294 97.0752 10.8574 95.4281 22.1866C93.7715 33.5811 93.975 39.865 94.0187 41.2138C94.0225 41.3324 94.0251 41.4128 94.0251 41.4552C94.025 42.261 94.695 42.5983 95.0067 42.7098C95.3591 42.8358 95.8079 42.8956 96.2886 42.9316C97.2769 43.0055 98.7924 43.0002 100.908 42.971C103.071 42.9411 104.566 42.806 105.534 42.6745C106.018 42.6088 106.371 42.5438 106.61 42.4932C106.729 42.4679 106.82 42.4461 106.885 42.4296C106.917 42.4214 106.943 42.4144 106.962 42.409L106.987 42.4021L106.996 42.3995L106.999 42.3984L107.001 42.398C107.001 42.398 107.002 42.3975 106.713 41.4403ZM106.426 40.4822L106.428 40.4817L106.43 40.4812C106.43 40.4812 106.429 40.4814 106.426 40.4822Z",fill:"#69727D"}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.22 13.8372C104.787 15.7536 104.996 18.3439 104.953 21.2589C104.907 24.4148 104.569 27.8559 104.134 31.0529C103.7 34.2469 103.172 37.1799 102.753 39.3152C102.544 40.3824 102.361 41.2491 102.232 41.8481C102.22 41.9009 102.209 41.9516 102.199 42.0001H100.503C100.526 38.5025 100.676 33.4168 101.183 28.2866C101.724 22.8227 102.66 17.4299 104.22 13.8372ZM103 43.0001C103.974 43.2266 103.974 43.2264 103.974 43.2262L103.978 43.2093L103.989 43.1613C103.999 43.1192 104.013 43.0571 104.031 42.976C104.067 42.814 104.12 42.5763 104.186 42.2713C104.318 41.6613 104.503 40.7819 104.716 39.7006C105.14 37.5391 105.675 34.5658 106.116 31.3223C106.556 28.0818 106.905 24.5541 106.953 21.2881C107 18.0456 106.753 14.9635 105.943 12.6671C105.815 12.3045 105.676 11.9539 105.512 11.6797C105.394 11.4809 105.045 10.9388 104.371 10.9076C103.702 10.8766 103.301 11.3772 103.156 11.5722C102.959 11.8385 102.774 12.1912 102.594 12.5778C100.767 16.4945 99.7565 22.3931 99.1929 28.0897C98.6258 33.8211 98.5 39.4812 98.5 43.0001V44.0001H103.794L103.974 43.2262L103 43.0001Z",fill:"#69727D"}),x.default.createElement("path",{d:"M79.2952 3.08259C73.4181 16.564 76.6423 34.1761 79.2676 41.4407C79.2676 41.4407 80.8299 41.9127 85.0867 41.9715C89.3434 42.0303 90.9554 41.9866 90.9554 41.4558C90.9553 40.9249 91.3533 34.6461 89.5628 22.3308C87.9462 11.2116 83.2888 5.02553 80.5325 2.75675C80.1157 2.4137 79.511 2.58777 79.2952 3.08259Z",fill:"#E6E8EA"}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M81.0978 4.66783C80.6337 4.17219 79.8403 4.35208 79.6005 4.9873C77.2644 11.1748 76.7267 18.1507 77.0914 24.5355C77.4671 31.1152 78.7963 36.9856 80.0267 40.5842C80.2028 40.6166 80.4308 40.6541 80.7155 40.6927C81.5929 40.8119 83.0069 40.9423 85.1005 40.9712C87.242 41.0008 88.6609 41.0031 89.5427 40.9371C89.7191 40.9239 89.8602 40.9088 89.9716 40.8935C90.0238 39.0573 90.1023 32.9919 88.5732 22.4743C87.2145 13.1288 83.6789 7.42438 81.0978 4.66783ZM79.2676 41.4403L78.9784 42.3975C78.676 42.3062 78.4345 42.0773 78.3271 41.7802C76.98 38.0524 75.4994 31.7376 75.0946 24.6496C74.69 17.5654 75.3547 9.61894 78.3786 2.68255C78.8333 1.63949 80.1887 1.17814 81.168 1.98425C84.1429 4.43294 88.9053 10.8574 90.5524 22.1866C92.209 33.5811 92.0055 39.865 91.9618 41.2138C91.958 41.3324 91.9554 41.4128 91.9554 41.4552C91.9554 42.261 91.2855 42.5983 90.9737 42.7098C90.6214 42.8358 90.1726 42.8956 89.6919 42.9316C88.7036 43.0055 87.1881 43.0002 85.0728 42.971C82.9096 42.9411 81.4141 42.806 80.4462 42.6745C79.9621 42.6088 79.6094 42.5438 79.3707 42.4932C79.2514 42.4679 79.1605 42.4461 79.0958 42.4296C79.0635 42.4214 79.0377 42.4144 79.0182 42.409L78.9937 42.4021L78.9849 42.3995L78.9814 42.3984L78.9798 42.398C78.9798 42.398 78.9784 42.3975 79.2676 41.4403ZM79.5541 40.4822L79.5526 40.4817L79.5507 40.4812C79.5507 40.4812 79.5514 40.4814 79.5541 40.4822Z",fill:"#69727D"}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M81.7604 13.8372C81.1939 15.7536 80.9847 18.3439 81.0272 21.2589C81.0733 24.4148 81.4118 27.8559 81.8464 31.0529C82.2805 34.2469 82.8081 37.1799 83.2274 39.3152C83.4369 40.3824 83.6192 41.2491 83.7488 41.8481C83.7603 41.9009 83.7713 41.9516 83.7819 42.0001H85.4771C85.4542 38.5025 85.3049 33.4168 84.7973 28.2866C84.2567 22.8227 83.32 17.4299 81.7604 13.8372ZM82.9805 43.0001C82.0065 43.2266 82.0064 43.2264 82.0064 43.2262L82.0025 43.2093L81.9914 43.1613C81.9818 43.1192 81.9677 43.0571 81.9494 42.976C81.913 42.814 81.8602 42.5763 81.7941 42.2713C81.6621 41.6613 81.4772 40.7819 81.2648 39.7006C80.8404 37.5391 80.3054 34.5658 79.8646 31.3223C79.4241 28.0818 79.0751 24.5541 79.0275 21.2881C78.9801 18.0456 79.227 14.9635 80.0375 12.6671C80.1655 12.3045 80.305 11.9539 80.4683 11.6797C80.5868 11.4809 80.9351 10.9388 81.6092 10.9076C82.2782 10.8766 82.6793 11.3772 82.8241 11.5722C83.0217 11.8385 83.2064 12.1912 83.3867 12.5778C85.2136 16.4945 86.224 22.3931 86.7876 28.0897C87.3546 33.8211 87.4805 39.4812 87.4805 43.0001V44.0001H82.1863L82.0064 43.2262L82.9805 43.0001Z",fill:"#69727D"})),x.default.createElement("defs",null,x.default.createElement("clipPath",{id:"clip0_3127_96542"},x.default.createElement("rect",{width:"184",height:"80",fill:"white"}))))},A=(0,w.styled)(w.Box)((function(e){var t=e.theme;return{height:"calc(100% - ".concat(t.spacing(8),")")}})),M=(0,w.styled)(w.Box)((function(e){var t=e.theme;return{position:"sticky",top:"calc(100% - ".concat(t.spacing(10),")")}})),R=function ImageTools(e){var t=e.setTool,n=e.generateNewPrompt,b=e.panelActive,C=[{label:i("Expand Image","elementor"),Icon:E.default,onClick:function onClick(){return t(P.PANELS.OUT_PAINTING)}},{label:i("Generative Fill","elementor"),Icon:k.default,onClick:function onClick(){return t(P.PANELS.IN_PAINTING)}},{label:i("Resize","elementor"),Icon:_.default,onClick:function onClick(){return t(P.PANELS.UPSCALE)}},{label:i("Variations","elementor"),Icon:S.default,onClick:function onClick(){return t(P.PANELS.IMAGE_TO_IMAGE)}}];return x.default.createElement(A,null,x.default.createElement(w.Box,{sx:{mb:3}},x.default.createElement(w.Button,{size:"small",variant:"text",color:"secondary",startIcon:x.default.createElement(I,null),onClick:function onClick(e){e.preventDefault(),n()}},i("Generate with a prompt","elementor"))),x.default.createElement(w.Typography,{variant:"h3",sx:{mb:7}},i("Edit with AI","elementor")),x.default.createElement(w.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:3,justifyContent:"center"},C.map((function(e){var t=e.label,n=e.Icon,i=e.onClick;return x.default.createElement(w.Button,{onClick:i,key:t,variant:"outlined",color:"secondary",disabled:!b,sx:{py:7,fontSize:"12px",height:"auto",borderRadius:"4px"}},x.default.createElement(w.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},x.default.createElement(n,{sx:{mb:2}}),t))}))),x.default.createElement(M,{display:"flex",flexDirection:"column",alignItems:"center"},x.default.createElement(T,null),x.default.createElement(w.Typography,{variant:"body2",align:"center",color:"secondary",sx:{mt:5}},i("Stay tuned! More incredible AI tools are coming your way soon.","elementor"))))};R.propTypes={setTool:b.func.isRequired,generateNewPrompt:b.func.isRequired,panelActive:b.bool.isRequired};var j=R;t.default=j},67854:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=n(5856),E=C(n(4466)),k=C(n(12277)),S=C(n(86960)),_=C(n(28965)),P=C(n(82752)),O=(0,w.withDirection)(P.default),I=function ImageVariationsForm(e){var t=e.panelActive,n=e.editImage,b=e.prompt,C=void 0===b?"":b,P=e.setPrompt,I=e.promptSettings,T=e.updatePromptSettings,A=e.submitPrompt,M=e.error,R=e.images,j=e.disableAspectRatio,D=void 0!==j&&j,L=e.backToTools,N=e.viewData,F=function handleSubmit(e){e.preventDefault(),A()};return x.default.createElement(w.Box,{component:"form",onSubmit:F},x.default.createElement(w.Box,{sx:{mb:3}},x.default.createElement(w.Button,{size:"small",variant:"text",color:"secondary",startIcon:x.default.createElement(O,null),onClick:function onClick(e){e.preventDefault(),L()}},i("Back","elementor"))),x.default.createElement(w.Typography,{variant:"h3",sx:{mb:3}},i("Variations","elementor")),x.default.createElement(w.Typography,{variant:"body1",color:"secondary",sx:{mb:8}},i("Create new versions of the original image.","elementor")),M&&x.default.createElement(S.default,{error:M,sx:{mb:6},actionPosition:"bottom",onRetry:F}),x.default.createElement(w.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"secondary.background",mb:4}},x.default.createElement("img",{src:(null==n?void 0:n.image_url)||n.url,alt:C,style:{width:"auto",height:"auto",maxWidth:"100%",maxHeight:166,objectFit:"contained"}})),x.default.createElement(k.default,{prompt:C,setPrompt:P,panelActive:t,promptSettings:I,updatePromptSettings:T,hasImage:!0,disableAspectRatio:D,viewData:N}),x.default.createElement(w.Stack,{gap:5,sx:{my:6}},R.length?x.default.createElement(w.Button,{fullWidth:!0,type:"submit",variant:"contained",color:"secondary",startIcon:x.default.createElement(_.default,null),disabled:!t||""===C,sx:{color:"background.paper"}},i("Generate again","elementor")):x.default.createElement(E.default,{size:"medium",disabled:!t||""===C},i("Generate images","elementor"))))};I.propTypes={panelActive:b.bool,prompt:b.string,setPrompt:b.func,editImage:b.object,promptSettings:b.object,updatePromptSettings:b.func,submitPrompt:b.func,error:b.string,images:b.array,disableAspectRatio:b.bool,backToTools:b.func,viewData:b.object};var T=I;t.default=T},51792:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=n(5856),k=C(n(86960)),S=n(80702),_=C(n(55995)),P=C(n(87105)),O=C(n(90334)),I=C(n(82752));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)}var T=(0,E.withDirection)(I.default),A=function InPaintingForm(e){var t=e.panelActive,n=e.prompt,b=void 0===n?"":n,C=e.setPrompt,x=e.submitPrompt,I=e.error,A=e.maskImage,M=e.backToTools,R=(0,O.default)(b),j=R.data,D=R.isLoading,L=R.send;(0,w.useEffect)((function(){!D&&null!=j&&j.result&&C(null==j?void 0:j.result)}),[D]);var N=function handleSubmit(e){e.preventDefault();var t=b||"Remove object and fill based on the surroundings";x(S.PANELS.IN_PAINTING,t,A)};return w.default.createElement(E.Box,{component:"form",onSubmit:N},w.default.createElement(E.Box,{sx:{mb:3}},w.default.createElement(E.Button,{size:"small",variant:"text",color:"secondary",startIcon:w.default.createElement(T,null),onClick:function onClick(e){e.preventDefault(),M()}},i("Back","elementor"))),w.default.createElement(E.Typography,{variant:"h3",sx:{mb:3}},i("Generative Fill","elementor")),w.default.createElement(E.Typography,{variant:"body1",color:"secondary",sx:{mb:8}},i("Mark an area and edit it with a prompt.","elementor")),I&&w.default.createElement(k.default,{error:I,sx:{mb:6},actionPosition:"bottom",onRetry:N}),w.default.createElement(E.Stack,{gap:5,sx:{my:6}},w.default.createElement(P.default,{minRows:3,maxRows:6,disabled:!t||D,placeholder:i("Describe what you want to generate in the marked area (English only)","elementor"),onChange:function onChange(e){return C(e.target.value)},value:b,InputProps:{endAdornment:w.default.createElement(E.InputAdornment,{position:"end",sx:{position:"absolute",bottom:"24px",right:"8px"}},D?w.default.createElement(E.CircularProgress,{color:"secondary",size:20,sx:{mr:2}}):w.default.createElement(E.Tooltip,{title:i("Enhance prompt","elementor")},w.default.createElement(E.Box,{component:"span",sx:{cursor:"pointer"}},w.default.createElement(E.IconButton,{size:"small",color:"secondary",onClick:function onClick(){return L(b)},disabled:!t||D||!b},w.default.createElement(_.default,null)))))},sx:{"& .MuiInputBase-input.MuiOutlinedInput-input.MuiInputBase-inputMultiline":{pb:9,width:"89%"}}}),w.default.createElement(E.Button,{type:"submit",variant:"contained",disabled:!t},i("Generate","elementor"))))};A.propTypes={panelActive:b.bool,prompt:b.string,setPrompt:b.func,generateNewPrompt:b.func,editImage:b.object,promptSettings:b.object,updatePromptSettings:b.func,submitPrompt:b.func,error:b.string,images:b.array,maskImage:b.string,backToTools:b.func};var M=A;t.default=M},49006:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(40131)),k=C(n(93231)),S=n(5856),_=C(n(86960)),P=n(80702),O=C(n(93970)),I=C(n(87105)),T=C(n(55995)),A=C(n(90334)),M=C(n(82752));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)}var R=(0,S.withDirection)(M.default),j=function OutPaintingForm(e){var t=e.panelActive,n=e.prompt,b=void 0===n?"":n,C=e.setPrompt,x=e.updatePromptSettings,M=e.submitPrompt,j=e.error,D=e.maskImage,L=e.backToTools,N=e.viewData,F=(0,w.useMemo)((function(){return N.ratio}),[]),B=(0,A.default)(b),z=B.data,W=B.isLoading,G=B.send;(0,w.useEffect)((function(){!W&&null!=z&&z.result&&C(null==z?void 0:z.result)}),[W]);var q=function handleSubmit(e){e.preventDefault();var t=b||"Fill based on the surroundings";M(P.PANELS.OUT_PAINTING,t,D)};return w.default.createElement(S.Box,{component:"form",onSubmit:q},w.default.createElement(S.Box,{sx:{mb:3}},w.default.createElement(S.Button,{size:"small",variant:"text",color:"secondary",startIcon:w.default.createElement(R,null),onClick:function onClick(e){e.preventDefault(),L(),F!==N.ratio&&x((0,k.default)({},P.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO,F))}},i("Back","elementor"))),w.default.createElement(S.Typography,{variant:"h3",sx:{mb:3}},i("Expand Image","elementor")),w.default.createElement(S.Typography,{variant:"body1",color:"secondary",sx:{mb:8}},i("Position image in it’s new size to generate content around the edges.","elementor")),j&&w.default.createElement(_.default,{error:j,sx:{mb:6},actionPosition:"bottom",onRetry:q}),w.default.createElement(S.Stack,{gap:6},w.default.createElement(O.default,{wrapperStyle:{width:"100%"},label:i("Aspect ratio","elementor"),options:Object.entries(P.IMAGE_ASPECT_RATIOS).map((function(e){var t=(0,E.default)(e,2),n=t[0];return{label:t[1],value:n}})),onChange:function onChange(e){x((0,k.default)({},P.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO,e.target.value))},value:N.ratio,disabled:!t}),w.default.createElement(S.FormControl,{sx:{width:"100%",mb:6}},w.default.createElement(S.Slider,{onChange:function onChange(e,t){return x((0,k.default)({},P.IMAGE_PROMPT_SETTINGS.ZOOM,t))},id:"zoom",name:"zoom","aria-label":i("Reference strength","elementor"),defaultValue:1,valueLabelDisplay:"auto",step:.1,marks:!0,min:.1,max:2,color:"secondary","aria-labelledby":"image-size-slider"}),w.default.createElement(S.Typography,{id:"image-size-slider",variant:"caption",gutterBottom:!0},i("Original image size","elementor"))),w.default.createElement(I.default,{minRows:3,maxRows:6,disabled:!t||W,placeholder:i("Describe what you want to generate in the expended area (English only)","elementor"),onChange:function onChange(e){return C(e.target.value)},value:b,InputProps:{endAdornment:w.default.createElement(S.InputAdornment,{position:"end",sx:{position:"absolute",bottom:"24px",right:"8px"}},W?w.default.createElement(S.CircularProgress,{color:"secondary",size:20,sx:{mr:2}}):w.default.createElement(S.Tooltip,{title:i("Enhance prompt","elementor")},w.default.createElement(S.Box,{component:"span",sx:{cursor:"pointer"}},w.default.createElement(S.IconButton,{size:"small",color:"secondary",onClick:function onClick(){return G(b)},disabled:!t||W||!b},w.default.createElement(T.default,null)))))},sx:{"& .MuiInputBase-input.MuiOutlinedInput-input.MuiInputBase-inputMultiline":{pb:9,width:"89%"}}})),w.default.createElement(S.Stack,{gap:5,sx:{my:6}},w.default.createElement(S.Button,{type:"submit",variant:"contained",disabled:!t},i("Generate","elementor"))))};j.propTypes={panelActive:b.bool,prompt:b.string,setPrompt:b.func,promptSettings:b.object,updatePromptSettings:b.func,submitPrompt:b.func,error:b.string,maskImage:b.string,backToTools:b.func,viewData:b.object};var D=j;t.default=D},91516:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.PanelContent=void 0;var C=b(n(87363)),x=b(n(93231)),w=n(80702),E=b(n(40044)),k=b(n(67854)),S=b(n(34400)),_=b(n(51792)),P=b(n(49006)),O=b(n(86011));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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,x.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=function PanelContent(e){var t=e.error,n=e.images,i=e.submitPrompt,b=e.generateNewPrompt,x=e.promptSettings,I=e.updatePromptSettings,T=e.editImage,A=e.panel,M=e.prompt,R=e.setPrompt,j=e.panelActive,D=e.setTool,L=e.maskImage,N=e.reset,F=e.viewData,B={prompt:M,setPrompt:R,panelActive:j,generateNewPrompt:b,promptSettings:x,updatePromptSettings:I,submitPrompt:i,error:t,images:n,backToTools:function backToTools(){t&&N(),D(!1)}};return A===w.PANELS.TEXT_TO_IMAGE?C.default.createElement(E.default,B):A===w.PANELS.IMAGE_TO_IMAGE?C.default.createElement(k.default,_objectSpread({editImage:T},B)):A===w.PANELS.IN_PAINTING?C.default.createElement(_.default,_objectSpread(_objectSpread({editImage:T},B),{},{disableAspectRatio:!0,maskImage:L})):A===w.PANELS.OUT_PAINTING?C.default.createElement(P.default,_objectSpread(_objectSpread({editImage:T},B),{},{disableAspectRatio:!0,maskImage:L,viewData:F})):A===w.PANELS.UPSCALE?C.default.createElement(O.default,_objectSpread({editImage:T},B)):C.default.createElement(S.default,{setTool:D,generateNewPrompt:b,panelActive:j})};t.PanelContent=I,I.propTypes={error:i.any.isRequired,images:i.array,generateNewPrompt:i.func,promptSettings:i.object,updatePromptSettings:i.func,editImage:i.object,submitPrompt:i.func,panel:i.string,prompt:i.string,setPrompt:i.func,panelActive:i.bool,setTool:i.func,maskImage:i.string,reset:i.func,viewData:i.object}},86011:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=C(n(93231)),E=n(5856),k=C(n(86960)),S=n(80702),_=C(n(82752)),P=(0,E.withDirection)(_.default),O=function UpscaleForm(e){var t=e.panelActive,n=e.updatePromptSettings,b=e.submitPrompt,C=e.error,_=e.backToTools,O=function handleSubmit(e){e.preventDefault(),b(S.PANELS.UPSCALE)};return x.default.createElement(E.Box,{component:"form",onSubmit:O},x.default.createElement(E.Box,{sx:{mb:3}},x.default.createElement(E.Button,{size:"small",variant:"text",color:"secondary",startIcon:x.default.createElement(P,null),onClick:function onClick(e){e.preventDefault(),_()}},i("Back","elementor"))),x.default.createElement(E.Typography,{variant:"h3",sx:{mb:3}},i("Resize","elementor")),x.default.createElement(E.Typography,{variant:"body1",color:"secondary",sx:{mb:8}},i("Make an image larger and improve it’s resolution.","elementor")),C&&x.default.createElement(k.default,{error:C,sx:{mb:6},actionPosition:"bottom",onRetry:O}),x.default.createElement(E.Stack,{gap:6},x.default.createElement(E.FormControl,{sx:{width:"100%"}},x.default.createElement(E.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},x.default.createElement(E.Typography,{variant:"caption"},"512"),x.default.createElement(E.Typography,{variant:"caption"},"1024")),x.default.createElement(E.Slider,{onChange:function onChange(e,t){return n((0,w.default)({},S.IMAGE_PROMPT_SETTINGS.UPSCALE_TO,t))},id:"upscale_to",name:"upscale_to","aria-label":i("Upscale to","elementor"),defaultValue:1,valueLabelDisplay:"auto",step:64,marks:!0,min:512,max:1024,color:"secondary"}),x.default.createElement(E.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},x.default.createElement(E.Typography,{variant:"caption"},i("Current","elementor")),x.default.createElement(E.Typography,{variant:"caption"},i("Output","elementor"))),x.default.createElement(E.Button,{type:"submit",variant:"contained",disabled:!t,sx:{mt:6}},i("Generate","elementor")))))};O.propTypes={panelActive:b.bool,prompt:b.string,setPrompt:b.func,generateNewPrompt:b.func,editImage:b.object,promptSettings:b.object,updatePromptSettings:b.func,submitPrompt:b.func,error:b.string,maskImage:b.string,backToTools:b.func};var I=O;t.default=I},30637:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=n(5856),E=n(80702),k=C(n(22231)),S=C(n(28932)),_=C(n(80897)),P=C(n(33375)),O=C(n(90350)),I=function ResultsGrid(e){var t=e.images,n=e.handleImageAction,b=e.aspectRatio;if(1===t.length){var C=t[0];return x.default.createElement(w.Box,null,x.default.createElement(w.Stack,{spacing:2,justifyContent:"space-around",alignItems:"center"},x.default.createElement(w.Box,{display:"flex",width:"100%",justifyContent:"flex-end",alignItems:"center",sx:{mb:4}},x.default.createElement(w.Stack,{direction:"row",spacing:3,justifyContent:"flex-end",width:"100%"},x.default.createElement(w.Button,{size:"small",color:"secondary",startIcon:x.default.createElement(P.default,null),onClick:function onClick(){return n(E.IMAGE_ACTIONS.REFERENCE,C)}},i("Edit","elementor")),x.default.createElement(w.Button,{size:"small",variant:"contained",startIcon:x.default.createElement(O.default,null),onClick:function onClick(){return n(E.IMAGE_ACTIONS.USE,C)}},i("Use Image","elementor"))))),x.default.createElement(w.Box,{display:"flex",justifyContent:"center"},x.default.createElement("img",{src:C.image_url,alt:"generated--resized",style:{maxWidth:"100%",width:"auto",maxHeight:"100%"}})))}return x.default.createElement(w.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:7},t.map((function(e,t){return x.default.createElement(w.Box,{key:"result-".concat(e.seed),display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"secondary.background",height:336,position:"relative",overflow:"hidden"}},x.default.createElement("img",{src:e.image_url,alt:"generated-".concat(t),style:{width:"auto",height:"auto",maxWidth:"100%",maxHeight:"1:1"===b?"initial":"100%",objectFit:"contain",aspectRatio:b.replace(":"," / ")}}),x.default.createElement(k.default,null,x.default.createElement(S.default,{position:"bottom",direction:"row",gap:3,alignItems:"center",justifyContent:"space-between"},x.default.createElement(w.Button,{fullWidth:!0,variant:"contained",startIcon:x.default.createElement(O.default,null),onClick:function onClick(){return n(E.IMAGE_ACTIONS.USE,e)}},i("Use Image","Elementor")),x.default.createElement(w.Stack,{direction:"row",gap:1},x.default.createElement(w.Tooltip,{title:i("Zoom","elementor")},x.default.createElement(w.IconButton,{color:"secondary",sx:{color:"common.white","&:hover":{color:"common.white"}},"aria-label":i("Zoom","elementor"),onClick:function onClick(){return n(E.IMAGE_ACTIONS.ZOOM,t)}},x.default.createElement(_.default,null))),x.default.createElement(w.Tooltip,{title:i("Edit","elementor")},x.default.createElement(w.IconButton,{color:"secondary",sx:{color:"common.white","&:hover":{color:"common.white"}},"aria-label":i("Edit","elementor"),onClick:function onClick(){return n(E.IMAGE_ACTIONS.REFERENCE,e)}},x.default.createElement(P.default,null)))))))})))};I.propTypes={images:b.array,handleImageAction:b.func,aspectRatio:b.string};var T=I;t.default=T},98746:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=C(n(87363)),w=n(5856),E=n(80702),k=C(n(90350)),S=C(n(33375)),_=C(n(49448)),P=C(n(82752)),O=(0,w.withDirection)(P.default),I=(0,w.withDirection)(_.default),T=function ZoomImage(e){var t=e.images,n=e.zoomedImageIndex,b=e.imageNavigation,C=e.handleImageAction,_=e.viewData,P=t[n],T=_.width,A=_.height;return x.default.createElement(w.Stack,{alignItems:"flex-start",spacing:2},x.default.createElement(w.Stack,{direction:"row",spacing:6,alignSelf:"center",alignItems:"center"},x.default.createElement(w.IconButton,{onClick:function onClick(){return b.navigatePrevImage()},size:"large",color:"secondary"},x.default.createElement(O,null)),x.default.createElement(w.Stack,{spacing:2,justifyContent:"space-around",alignItems:"center"},x.default.createElement(w.Box,{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center",sx:{mb:4}},x.default.createElement(w.Button,{size:"small",variant:"text",color:"secondary",startIcon:x.default.createElement(O,null),onClick:function onClick(){return b.backToResults()}},i("Back","elementor")),x.default.createElement(w.Stack,{direction:"row",spacing:3,justifyContent:"flex-end",width:"100%"},x.default.createElement(w.Button,{size:"small",color:"secondary",startIcon:x.default.createElement(S.default,null),onClick:function onClick(){return C(E.IMAGE_ACTIONS.REFERENCE,P)}},i("Edit","elementor")),x.default.createElement(w.Button,{size:"small",variant:"contained",startIcon:x.default.createElement(k.default,null),onClick:function onClick(){return C(E.IMAGE_ACTIONS.USE,P)}},i("Use Image","elementor")))),x.default.createElement(w.Box,{display:"flex",justifyContent:"center",alignItems:"center"},x.default.createElement("img",{src:P.image_url,alt:"",style:{width:T,height:A}}))),x.default.createElement(w.IconButton,{onClick:function onClick(){return b.navigateNextImage()},size:"large",color:"secondary"},x.default.createElement(I,null))))};T.propTypes={images:b.array,zoomedImageIndex:b.number,handleImageAction:b.func,imageNavigation:b.object,viewData:b.object};var A=T;t.default=A},12053:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=n(5856),w=n(80702),E=b(n(66690)),k=b(n(98746)),S=b(n(30637)),_=function FormGenerateResult(e){var t=e.maybeUploadImage,n=e.images,i=e.aspectRatio,b=e.viewData,_=(0,E.default)(n),P=_.zoomedImageIndex,O=_.setZoomedImageIndex,I=_.imageNavigation,T=function handleImageAction(e,n){switch(e){case w.IMAGE_ACTIONS.USE:t(n,!0);break;case w.IMAGE_ACTIONS.REFERENCE:t(n);break;case w.IMAGE_ACTIONS.ZOOM:O(n)}};return C.default.createElement(x.Box,{sx:{overflowY:"scroll",p:8},flexGrow:1},P>-1?C.default.createElement(k.default,{images:n,zoomedImageIndex:P,handleImageAction:T,imageNavigation:I,viewData:b}):C.default.createElement(S.default,{images:n,handleImageAction:T,aspectRatio:i}))};_.propTypes={maybeUploadImage:i.func.isRequired,images:i.array,aspectRatio:i.string,viewData:i.object.isRequired};var P=_;t.default=P},88088:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=n(5856),w=n(62506),E=function ImageLoader(){return C.default.createElement(x.Stack,{alignItems:"center",justifyContent:"center",gap:5,width:"100%"},C.default.createElement(w.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:3}}),C.default.createElement(x.Typography,{variant:"h4",sx:{color:"text.primary"}},i("Bringing your vision to life...","elementor")),C.default.createElement(x.Typography,{variant:"body2"},i("Hold tight, painting dreams might take a moment.","elementor")),C.default.createElement(x.Box,{sx:{px:4,py:6,width:"100%",maxWidth:600}},C.default.createElement(x.LinearProgress,{color:"inherit"})))};t.default=E},34995:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=b(n(87363)),x=n(5856),w=function ImagePreview(e){var t=e.editImage;return C.default.createElement(x.Stack,{alignItems:"flex-start",spacing:2,flexGrow:1,sx:{py:9,overflowY:"scroll"}},C.default.createElement(x.Stack,{direction:"row",spacing:6,alignSelf:"center",alignItems:"center"},C.default.createElement(x.Box,{display:"flex",justifyContent:"center",alignItems:"center"},C.default.createElement("img",{src:t.url,alt:"",style:{maxWidth:"90%",maxHeight:"100%"}}))))};w.propTypes={editImage:i.object.isRequired};var E=w;t.default=E},32037:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203),C=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==C(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 x in e)if("default"!==x&&Object.prototype.hasOwnProperty.call(e,x)){var w=b?Object.getOwnPropertyDescriptor(e,x):null;w&&(w.get||w.set)?Object.defineProperty(i,x,w):i[x]=e[x]}i.default=e,n&&n.set(e,i);return i}(n(87363)),w=b(n(50824)),E=b(n(10029)),k=b(n(40131)),S=n(5856),_=n(23866),P=b(n(58155)),O=b(n(61433));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)}var I=(0,S.styled)(S.Box,{shouldForwardProp:function shouldForwardProp(e){return"size"===e}})((function(e){var t=e.theme,n=e.size;return{position:"absolute",width:n,height:n,borderRadius:"50%",backgroundColor:t.palette.common.black,pointerEvents:"none",transform:"translate(".concat("rtl"===t.direction?"50%":"-50%",", -50%)")}})),T=(0,S.styled)(S.Box,{shouldForwardProp:function shouldForwardProp(e){return"size"===e}})((function(e){var t=e.theme,n=e.size;return{width:n/2,height:n/2,borderRadius:"50%",backgroundColor:t.palette.secondary.main}})),A=function InPainting(e){var t=e.editImage,n=e.setMaskImage,i=e.viewData,b=(0,x.useRef)(),C=(0,x.useState)(30),A=(0,k.default)(C,2),M=A[0],R=A[1],j=(0,x.useRef)(),D=i.width,L=i.height;return(0,x.useEffect)((function(){var e=document.querySelector(".eui-in-painting-canvas"),t=function positionElement(t){var n=e.getBoundingClientRect(),i=n.left,b=n.top,C=n.width,x=n.height,w=t.clientX-i,E=t.clientY-b;w>0&&w<C&&E>0&&E<x&&(j.current.style.left="".concat(w,"px"),j.current.style.top="".concat(E,"px"))};return window.addEventListener("mousemove",t),function(){window.removeEventListener("mousemove",t)}}),[M]),x.default.createElement(S.Stack,{alignItems:"flex-start",spacing:2,flexGrow:1,sx:{pt:9}},x.default.createElement(S.Stack,{width:"100%",direction:"row",spacing:7,alignSelf:"center",justifyContent:"center",sx:{mb:6}},x.default.createElement(S.Stack,{direction:"row",gap:3},x.default.createElement(S.Tooltip,{title:"Undo"},x.default.createElement(S.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return b.current.undo()},sx:{px:0}},x.default.createElement(P.default,null))),x.default.createElement(S.Tooltip,{title:"Redo"},x.default.createElement(S.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return b.current.redo()},sx:{px:0}},x.default.createElement(O.default,null)))),x.default.createElement(S.FormControl,{sx:{minWidth:120}},x.default.createElement(S.InputLabel,{id:"stroke"},"Stroke"),x.default.createElement(S.Select,{autoWidth:!0,label:"Stroke",value:M,color:"secondary",id:"demo-simple-select",labelId:"demo-simple-select-label",onChange:function onChange(e){return R(e.target.value)},MenuProps:{PaperProps:{sx:{maxWidth:120}},MenuListProps:{sx:{minWidth:120}}},sx:{"& .MuiSelect-select .MuiListItemIcon-root":{mr:1,width:"initial",minWidth:"initial",justifyContent:"flex-start"}}},[10,20,30,40,50].map((function(e){return x.default.createElement(S.MenuItem,{key:"stroke-width-option-"+e,value:e},x.default.createElement(S.Stack,{direction:"row",alignItems:"center",gap:3},x.default.createElement(S.ListItemIcon,{sx:{width:30,display:"flex",justifyContent:"center"}},x.default.createElement(T,{size:e})),x.default.createElement(S.ListItemText,null,e)))}))))),x.default.createElement("div",{style:{margin:"0 auto",position:"relative",cursor:"none",overflow:"hidden"}},x.default.createElement(I,{ref:j,size:M}),x.default.createElement(_.ReactSketchCanvas,{className:"eui-in-painting-canvas",withViewBox:!0,ref:b,height:L+"px",width:D+"px",strokeWidth:M,strokeColor:"black",backgroundImage:t.url,onChange:(0,E.default)(w.default.mark((function _callee(){var e;return w.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b.current.exportSvg();case 2:e=t.sent,n(e);case 4:case"end":return t.stop()}}),_callee)})))})))};A.propTypes={editImage:i.object.isRequired,setMaskImage:i.func.isRequired,promptSettings:i.object.isRequired,viewData:i.object.isRequired};var M=A;t.default=M},36790:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203),C=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==C(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 x in e)if("default"!==x&&Object.prototype.hasOwnProperty.call(e,x)){var w=b?Object.getOwnPropertyDescriptor(e,x):null;w&&(w.get||w.set)?Object.defineProperty(i,x,w):i[x]=e[x]}i.default=e,n&&n.set(e,i);return i}(n(87363)),w=b(n(50824)),E=b(n(10029)),k=n(5856),S=b(n(78462)),_=n(80702);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)}var P=function OutPainting(e){var t=e.editImage,n=e.setMaskImage,i=e.promptSettings,b=e.viewData,C=(0,x.useRef)(),P=b.width,O=b.height,I=i[_.IMAGE_PROMPT_SETTINGS.ZOOM]||1,T=function(){var e=(0,E.default)(w.default.mark((function _callee(){var e;return w.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C.current.getImageScaledToCanvas().toDataURL();case 2:e=t.sent,n(e);case 4:case"end":return t.stop()}}),_callee)})));return function updateMask(){return e.apply(this,arguments)}}();return x.default.createElement(k.Stack,{alignItems:"center",spacing:2,flexGrow:1,sx:{pt:9}},x.default.createElement(S.default,{ref:C,image:t.url,style:{backgroundImage:"linear-gradient(45deg, #bbb 25%, transparent 25%), linear-gradient(-45deg, #bbb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bbb 75%), linear-gradient(-45deg, transparent 75%, #bbb 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",outline:"2px dashed #000",marginTop:"12px"},color:[0,0,0,.9],rotate:0,border:0,allowZoomOut:!0,backgroundColor:"transparent",showGrid:!0,onImageChange:function onImageChange(){return T()},onPositionChange:function onPositionChange(){return T()},width:P,height:O,scale:I}))};P.propTypes={editImage:i.object.isRequired,setMaskImage:i.func.isRequired,promptSettings:i.object.isRequired,viewData:i.object.isRequired};var O=P;t.default=O},10552:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(93231)),k=C(n(40131)),S=n(5856),_=C(n(71871)),P=C(n(30420)),O=n(80702),I=C(n(38136)),T=C(n(22231)),A=C(n(28932)),M=C(n(85541)),R=C(n(90350)),j=C(n(33375));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)}var D=function PromptGallery(e){var t=e.maybeUploadImage,n=e.setPrompt,b=e.selectedCategory,C=e.updatePromptSettings,x=(0,I.default)("ai-image-gallery",{images:[]}),D=x.data,L=x.setStateAndSessionData,N=(0,P.default)("thumbnailUrl"),F=N.imagesPreloaded,B=N.preloadImages,z=(0,w.useMemo)((function(){var e=function shuffleImages(e){return e.map((function(e){return[Math.random(),e]})).sort((function(e,t){return(0,k.default)(e,1)[0]-(0,k.default)(t,1)[0]})).map((function(e){return(0,k.default)(e,2)[1]}))}(D.images);if(!b)return e;var t=e.filter((function(e){return e.imageType.includes(b)}));return t.length?t:e}),[b,D]);return(0,w.useEffect)((function(){0!==(null==D?void 0:D.images.length)?B(D.images):function fetchJson(){fetch("https://my.elementor.com/ai/images-prompt-gallery/ai-gallery.json").then((function(e){return e.json()})).then((function(e){return L(e)})).catch((function(e){return console.log(e.message)}))}()}),[D]),F?w.default.createElement(S.Box,{sx:{overflowY:"scroll",p:8},flexGrow:1},w.default.createElement(S.Stack,{gap:4,sx:{mb:7}},w.default.createElement(S.Typography,{variant:"h6"},i("Spark your imagination with images generated by our community","elementor"))),w.default.createElement(S.ImageList,{width:"100%",cols:3,gap:24},z.map((function(e){return w.default.createElement(S.ImageListItem,{key:e.prompt},w.default.createElement("img",{src:"".concat(e.thumbnailUrl),alt:e.prompt,style:{width:"100%",maxHeight:"238px"}}),w.default.createElement(T.default,null,w.default.createElement(A.default,{gap:3,position:"bottom"},w.default.createElement(S.Typography,{variant:"caption",color:"common.white"},e.prompt),w.default.createElement(S.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},w.default.createElement(S.Button,{fullWidth:!0,size:"small",variant:"contained",startIcon:w.default.createElement(R.default,null),onClick:function onClick(){return t(e,!0)}},i("Use Image","elementor")),w.default.createElement(S.Tooltip,{title:i("Copy prompt","elementor")},w.default.createElement(S.IconButton,{sx:{mr:-4,ml:2,color:"common.white","&:hover":{color:"common.white"}},onClick:function onClick(){var t;n(e.prompt);var i=e.imageType.split("/"),b=(0,k.default)(i,2),x=b[0],w=b[1];C((t={},(0,E.default)(t,O.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE,x),(0,E.default)(t,O.IMAGE_PROMPT_SETTINGS.STYLE_PRESET,w),t))}},w.default.createElement(M.default,null))),w.default.createElement(S.Tooltip,{title:i("Edit","elementor")},w.default.createElement(S.IconButton,{sx:{mr:-4,ml:2,color:"common.white","&:hover":{color:"common.white"}},onClick:function onClick(){return t(e)}},w.default.createElement(j.default,null)))))))})))):w.default.createElement(S.Box,{sx:{width:"100%",maxWidth:600,margin:"0 auto",alignSelf:"center"}},w.default.createElement(_.default,{color:"inherit"}))};D.propTypes={maybeUploadImage:b.func,setPrompt:b.func,selectedCategory:b.string,updatePromptSettings:b.func,aspectRatio:b.string};var L=D;t.default=L},40728:(e,t,n)=>{"use strict";var i=n(23615),b=n(73203),C=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var x=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==C(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 x in e)if("default"!==x&&Object.prototype.hasOwnProperty.call(e,x)){var w=b?Object.getOwnPropertyDescriptor(e,x):null;w&&(w.get||w.set)?Object.defineProperty(i,x,w):i[x]=e[x]}i.default=e,n&&n.set(e,i);return i}(n(87363)),w=b(n(88088)),E=n(80702),k=b(n(12053)),S=b(n(10552)),_=b(n(98439)),P=b(n(34995)),O=b(n(32037)),I=b(n(36790));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)}var T=function Screen(e){var t=e.isLoading,n=e.isUploading,i=e.screen,b=e.images,C=e.generateNewPrompt,T=e.maybeUploadImage,A=e.setPrompt,M=e.promptSettings,R=e.updatePromptSettings,j=e.editImage,D=e.setMaskImage,L=e.viewData,N=e.shouldWaitForInitialImage,F=(0,x.useMemo)((function(){return M[E.IMAGE_PROMPT_SETTINGS.ASPECT_RATIO]}),[b]);return t||n||N?x.default.createElement(w.default,null):i===E.SCREENS.GENERATE_RESULTS?x.default.createElement(k.default,{images:b,generateNewPrompt:C,maybeUploadImage:T,aspectRatio:F,viewData:L}):i===E.SCREENS.VARIATIONS?x.default.createElement(_.default,null):i===E.SCREENS.IMAGE_EDITOR?x.default.createElement(P.default,{editImage:j}):i===E.SCREENS.IN_PAINTING?x.default.createElement(O.default,{editImage:j,setMaskImage:D,promptSettings:M,viewData:L}):i===E.SCREENS.OUT_PAINTING?x.default.createElement(I.default,{editImage:j,setMaskImage:D,promptSettings:M,viewData:L}):x.default.createElement(S.default,{setPrompt:A,maybeUploadImage:T,updatePromptSettings:R,selectedCategory:M[E.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE]})};t.Screen=T,T.propTypes={isLoading:i.bool.isRequired,isUploading:i.bool.isRequired,screen:i.string,images:i.array,generateNewPrompt:i.func,maybeUploadImage:i.func,setPrompt:i.func,promptSettings:i.object,updatePromptSettings:i.func,editImage:i.object,setMaskImage:i.func,viewData:i.object,shouldWaitForInitialImage:i.bool}},98439:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var b=i(n(87363)),C=n(5856),x=n(62506),w=function VariationsPlaceholder(){return b.default.createElement(C.Box,{sx:{overflowY:"scroll",p:8},flexGrow:1},b.default.createElement(C.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:7},Array(4).fill(!0).map((function(e,t){return b.default.createElement(C.Box,{key:"placeholder-".concat(t),display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"secondary.background",height:336}},b.default.createElement(x.AIIcon,{color:"secondary",sx:{fontSize:36}}))}))))};w.propTypes={};var E=w;t.default=E},82643:(e,t,n)=>{"use strict";var i=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.getAspectRatioSizes=void 0;var b=i(n(93231)),C=i(n(40131)),x=n(80702);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}t.getAspectRatioSizes=function getAspectRatioSizes(e,t){var n=Object.keys(x.IMAGE_ASPECT_RATIO_DIMENSIONS),i=e/t,w=n[0],E=1/0;return n.forEach((function(e){var t=e.split(":").map(Number),n=(0,C.default)(t,2),b=n[0],x=n[1],k=Math.abs(i-b/x);k<E&&(E=k,w=e)})),function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){(0,b.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ratio:w},x.IMAGE_ASPECT_RATIO_DIMENSIONS[w])}},85157:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(50824)),k=C(n(10029)),S=C(n(40131)),_=n(5856),P=n(62506),O=C(n(71871)),I=C(n(51391)),T=C(n(87105)),A=C(n(79619)),M=C(n(93970)),R=C(n(4466)),j=C(n(77655)),D=C(n(86960)),L=C(n(65441)),N=n(17927),F=C(n(98495));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)}var B=[{label:i("Simplify language","elementor"),icon:w.default.createElement(P.MessageIcon,null),value:"Simplify the language of the following message"},{label:i("Make it longer","elementor"),icon:w.default.createElement(P.ExpandIcon,null),value:"Make the following message longer"},{label:i("Make it shorter","elementor"),icon:w.default.createElement(P.ShrinkIcon,null),value:"Make the following message shorter"},{label:i("Fix spelling & grammar","elementor"),icon:w.default.createElement(P.AIIcon,null),value:"Fix the spelling and grammar of the following message"}],z=[{label:i("Change tone","elementor"),options:N.vocalTones,getInstruction:function getInstruction(e){return"Change the tone of the following message to ".concat(e)}},{label:i("Translate to","elementor"),options:N.translateLanguages,getInstruction:function getInstruction(e){return"Translate the following message to ".concat(e)}}],W=function FormText(e){var t=e.type,n=e.onClose,b=e.getControlValue,C=e.setControlValue,x=e.additionalOptions,P=e.credits,W=e.usagePercentage,G=b()===(null==x?void 0:x.defaultValue)?"":b(),q=(0,L.default)({result:G,credits:P}),U=q.data,V=q.isLoading,H=q.error,Z=q.reset,Y=q.send,X=q.sendUsageData,K=(0,w.useState)(""),$=(0,S.default)(K,2),Q=$[0],J=$[1],ee=(0,w.useRef)(null),te=(0,w.useRef)(null),ne=(0,w.useRef)((function(){})),re="textarea"===t?N.textareaAutocomplete:N.textAutocomplete,oe=!Q,ae=function(){var e=(0,k.default)(E.default.mark((function _callee(e){return E.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:ne.current=function(){return Y(te.current.value,e)},ne.current();case 2:case"end":return t.stop()}}),_callee)})));return function handleCustomInstruction(t){return e.apply(this,arguments)}}();return V?w.default.createElement(O.default,null):w.default.createElement(w.default.Fragment,null,H&&w.default.createElement(D.default,{error:H,onRetry:ne.current,sx:{mb:6}}),!U.result&&w.default.createElement(_.Box,{component:"form",onSubmit:function handleSubmit(e){e.preventDefault(),ne.current=function(){return Y(Q)},ne.current()}},w.default.createElement(_.Box,{sx:{mb:6}},w.default.createElement(I.default,{ref:ee,placeholder:i("Describe the text and tone you want to use...","elementor"),name:"prompt",value:Q,onChange:function onChange(e){return J(e.target.value)}})),oe&&w.default.createElement(A.default,{suggestions:re,onSelect:function handleSuggestion(e){J(e+" "),ee.current.focus()},suggestionFilter:function suggestionFilter(e){return e+"..."}}),w.default.createElement(_.Stack,{direction:"row",alignItems:"center",sx:{py:4,mt:8}},w.default.createElement(F.default,{usagePercentage:W}),w.default.createElement(_.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},w.default.createElement(R.default,null,i("Generate text","elementor"))))),U.result&&w.default.createElement(_.Box,{sx:{mt:3}},w.default.createElement(T.default,{fullWidth:!0,ref:te,defaultValue:U.result,helperText:i("Text generated by AI may be inaccurate or offensive.","elementor")}),w.default.createElement(_.Grid,{container:!0,spacing:3,sx:{mt:6}},B.map((function(e){var t=e.label,n=e.icon,i=e.value;return w.default.createElement(_.Grid,{item:!0,key:t},w.default.createElement(j.default,{label:t,icon:n,onClick:function onClick(){return ae(i)}}))}))),w.default.createElement(_.Grid,{container:!0,spacing:3,sx:{mt:6}},z.map((function(e){var t=e.label,n=e.options,i=e.getInstruction;return w.default.createElement(_.Grid,{item:!0,key:t},w.default.createElement(M.default,{label:t,options:n,onChange:function onChange(e){return ae(i(e.target.value))}}))}))),w.default.createElement(_.Stack,{direction:"row",alignItems:"center",sx:{my:8}},w.default.createElement(F.default,{usagePercentage:W}),w.default.createElement(_.Stack,{direction:"row",gap:3,justifyContent:"flex-end",flexGrow:1},w.default.createElement(_.Button,{size:"small",color:"secondary",variant:"text",onClick:Z},i("New prompt","elementor")),w.default.createElement(_.Button,{size:"small",variant:"contained",color:"primary",onClick:function applyPrompt(){X(),C(te.current.value),n()}},i("Use text","elementor"))))))};W.propTypes={type:b.string.isRequired,controlType:b.string,onClose:b.func.isRequired,getControlValue:b.func.isRequired,setControlValue:b.func.isRequired,additionalOptions:b.object,credits:b.number,usagePercentage:b.number};var G=W;t.default=G},96587:(e,t,n)=>{"use strict";var i=n(38003).__,b=n(23615),C=n(73203),x=n(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==x(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 w=b?Object.getOwnPropertyDescriptor(e,C):null;w&&(w.get||w.set)?Object.defineProperty(i,C,w):i[C]=e[C]}i.default=e,n&&n.set(e,i);return i}(n(87363)),E=C(n(50824)),k=C(n(10029)),S=C(n(40131)),_=n(5856),P=n(46183),O=n(62506);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)}var I=function GetStarted(e){var t=e.onSuccess,n=(0,w.useState)(!1),b=(0,S.default)(n,2),C=b[0],x=b[1],I=function(){var e=(0,k.default)(E.default.mark((function _callee(){return E.default.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,P.setGetStarted)();case 2:t();case 3:case"end":return e.stop()}}),_callee)})));return function onGetStartedClick(){return e.apply(this,arguments)}}();return w.default.createElement(_.Stack,{alignItems:"center",gap:4},w.default.createElement(O.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:3}}),w.default.createElement(_.Typography,{variant:"h4",sx:{color:"text.primary"}},i("Step into the future with Elementor AI","elementor")),w.default.createElement(_.Typography,{variant:"body2"},i("Create smarter with AI text and code generators built right into the editor.","elementor")),w.default.createElement(_.Stack,{direction:"row",gap:4,alignItems:"flex-start"},w.default.createElement(_.Checkbox,{id:"e-ai-terms-approval",color:"secondary",sx:{p:0},onChange:function onChange(){return x((function(e){return!e}))}}),w.default.createElement(_.Stack,null,w.default.createElement(_.Typography,{variant:"caption",sx:{maxWidth:520},component:"label",htmlFor:"e-ai-terms-approval"},i("I approve the ","elementor"),w.default.createElement(_.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},i("Terms of Service","elementor"))," & ",w.default.createElement(_.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},i("Privacy Policy","elementor")),i(" of the Elementor AI service.","elementor"),w.default.createElement("br",null),i("This includes consenting to the collection and use of data to improve user experience.","elementor")))),w.default.createElement(_.Button,{disabled:!C,variant:"contained",onClick:I,sx:{mt:3,"&:hover":{color:"primary.contrastText"}}},i("Get Started","elementor")))};I.propTypes={onSuccess:b.func.isRequired};var T=I;t.default=T},38944:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function clsx(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.r(t),n.d(t,{clsx:()=>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,S=arguments[0],_=1,P=arguments.length,O=!1;for("boolean"==typeof S&&(O=S,S=arguments[1]||{},_=2),(null==S||"object"!=typeof S&&"function"!=typeof S)&&(S={});_<P;++_)if(null!=(e=arguments[_]))for(t in e)n=E(S,t),S!==(i=E(e,t))&&(O&&i&&(x(i)||(b=C(i)))?(b?(b=!1,k=n&&C(n)?n:[]):k=n&&x(n)?n:{},w(S,{name:t,newValue:extend(O,k,i)})):void 0!==i&&w(S,{name:t,newValue:i}));return S}},3812:e=>{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 S=1,_=1;function updatePosition(e){var t=e.match(n);t&&(S+=t.length);var i=e.lastIndexOf("\n");_=~i?e.length-i:_+e.length}function position(){var e={line:S,column:_};return function(t){return t.position=new Position(e),whitespace(),t}}function Position(e){this.start=e,this.end={line:S,column:_},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=S,n.column=_,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 _+=2,updatePosition(i),e=e.slice(n),_+=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;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if(null==e)return{};var n,i=function(e,t){if(null==e)return{};for(var n,i={},b=Object.keys(e),C=0;C<b.length;C++)n=b[C],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var b=Object.getOwnPropertySymbols(e),C=0;C<b.length;C++)n=b[C],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i,b=h(e);return!(i=t?(n=h(this).constructor,Reflect.construct(b,arguments,n)):b.apply(this,arguments))||"object"!=typeof i&&"function"!=typeof i?d(this):i}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,b=!1,C=void 0;try{for(var x,w=e[Symbol.iterator]();!(i=(x=w.next()).done)&&(n.push(x.value),!t||n.length!==t);i=!0);}catch(e){b=!0,C=e}finally{try{i||null==w.return||w.return()}finally{if(b)throw C}}return n}}(e,t)||g(e,t)||function(){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 g(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function v(e,t){return new Promise((function(n,i){var b,C=new Image;C.onload=function(){return n(C)},C.onerror=i,0==(null!==(b=e)&&!!b.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&t&&(C.crossOrigin=t),C.src=e}))}var b,C=!("undefined"==typeof window||"undefined"==typeof navigator||!("ontouchstart"in window||0<navigator.msMaxTouchPoints)),x="undefined"!=typeof File,w={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}}},E=C?w.touch:w.desktop,k="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,S={x:.5,y:.5},_=function(){!function(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}}),t&&c(e,t)}(a,i.default.Component);var e,t,n,b=p(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),s(d(t=b.call(this,e)),"state",{drag:!1,my:null,mx:null,image:S}),s(d(t),"handleImageReady",(function(e){var n=t.getInitialSize(e.width,e.height);n.resource=e,n.x=.5,n.y=.5,n.backgroundColor=t.props.backgroundColor,t.setState({drag:!1,image:n},t.props.onImageReady),t.props.onLoadSuccess(n)})),s(d(t),"clearImage",(function(){t.canvas.getContext("2d").clearRect(0,0,t.canvas.width,t.canvas.height),t.setState({image:S})})),s(d(t),"handleMouseDown",(function(e){(e=e||window.event).preventDefault(),t.setState({drag:!0,mx:null,my:null})})),s(d(t),"handleMouseUp",(function(){t.state.drag&&(t.setState({drag:!1}),t.props.onMouseUp())})),s(d(t),"handleMouseMove",(function(e){var n,i,b,C,x,w,E,k,S,_,P,O,I,T,A,M;e=e||window.event,!1!==t.state.drag&&(e.preventDefault(),b={mx:n=e.targetTouches?e.targetTouches[0].pageX:e.clientX,my:i=e.targetTouches?e.targetTouches[0].pageY:e.clientY},M=t.props.rotate,M=(M%=360)<0?M+360:M,t.state.mx&&t.state.my&&(C=t.state.mx-n,x=t.state.my-i,w=t.state.image.width*t.props.scale,E=t.state.image.height*t.props.scale,S=(k=t.getCroppingRect()).x,_=k.y,S*=w,_*=E,P=function(e){return e*(Math.PI/180)},O=Math.cos(P(M)),T=_+-C*(I=Math.sin(P(M)))+x*O,A={x:(S+C*O+x*I)/w+1/t.props.scale*t.getXScale()/2,y:T/E+1/t.props.scale*t.getYScale()/2},t.props.onPositionChange(A),b.image=y(y({},t.state.image),A)),t.setState(b),t.props.onMouseMove(e))})),s(d(t),"setCanvas",(function(e){t.canvas=e})),t.canvas=null,t}return e=a,(t=[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(k=1);var e,t,n=this.canvas.getContext("2d");this.props.image&&this.loadImage(this.props.image),this.paint(n),document&&(e=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()&&{passive:!1},t=E.native,document.addEventListener(t.move,this.handleMouseMove,e),document.addEventListener(t.up,this.handleMouseUp,e),C&&(document.addEventListener(t.mouseMove,this.handleMouseMove,e),document.addEventListener(t.mouseUp,this.handleMouseUp,e)))}},{key:"componentDidUpdate",value:function(e,t){this.props.image&&this.props.image!==e.image||this.props.width!==e.width||this.props.height!==e.height||this.props.backgroundColor!==e.backgroundColor?this.loadImage(this.props.image):this.props.image||t.image===S||this.clearImage();var n=this.canvas.getContext("2d");n.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(n),this.paintImage(n,this.state.image,this.props.border),e.image===this.props.image&&e.width===this.props.width&&e.height===this.props.height&&e.position===this.props.position&&e.scale===this.props.scale&&e.rotate===this.props.rotate&&t.my===this.state.my&&t.mx===this.state.mx&&t.image.x===this.state.image.x&&t.image.y===this.state.image.y&&t.backgroundColor===this.state.backgroundColor||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){var e;document&&(e=E.native,document.removeEventListener(e.move,this.handleMouseMove,!1),document.removeEventListener(e.up,this.handleMouseUp,!1),C&&(document.removeEventListener(e.mouseMove,this.handleMouseMove,!1),document.removeEventListener(e.mouseUp,this.handleMouseUp,!1)))}},{key:"isVertical",value:function(){return!this.props.disableCanvasRotation&&this.props.rotate%180!=0}},{key:"getBorders",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.props.border;return Array.isArray(t)?t:[t,t]}},{key:"getDimensions",value:function(){var e=this.props,t=e.width,n=e.height,i=e.rotate,b=e.border,C={},x=m(this.getBorders(b),2),w=x[0],E=x[1],k=t,S=n;return this.isVertical()?(C.width=S,C.height=k):(C.width=k,C.height=S),C.width+=2*w,C.height+=2*E,{canvas:C,rotate:i,width:t,height:n,border:b}}},{key:"getImage",value:function(){var e=this.getCroppingRect(),t=this.state.image;e.x*=t.resource.width,e.y*=t.resource.height,e.width*=t.resource.width,e.height*=t.resource.height;var n=document.createElement("canvas");this.isVertical()?(n.width=e.height,n.height=e.width):(n.width=e.width,n.height=e.height);var i=n.getContext("2d");return i.translate(n.width/2,n.height/2),i.rotate(this.props.rotate*Math.PI/180),i.translate(-n.width/2,-n.height/2),this.isVertical()&&i.translate((n.width-n.height)/2,(n.height-n.width)/2),t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(-e.x,-e.y,t.resource.width,t.resource.height)),i.drawImage(t.resource,-e.x,-e.y),n}},{key:"getImageScaledToCanvas",value:function(){var e=this.getDimensions(),t=e.width,n=e.height,i=document.createElement("canvas");return this.isVertical()?(i.width=n,i.height=t):(i.width=t,i.height=n),this.paintImage(i.getContext("2d"),this.state.image,0,1),i}},{key:"getXScale",value:function(){var e=this.props.width/this.props.height,t=this.state.image.width/this.state.image.height;return Math.min(1,e/t)}},{key:"getYScale",value:function(){var e=this.props.height/this.props.width,t=this.state.image.height/this.state.image.width;return Math.min(1,e/t)}},{key:"getCroppingRect",value:function(){var e=this.props.position||{x:this.state.image.x,y:this.state.image.y},t=1/this.props.scale*this.getXScale(),n=1/this.props.scale*this.getYScale(),i={x:e.x-t/2,y:e.y-n/2,width:t,height:n},b=0,C=1-i.width,x=0,w=1-i.height;return(this.props.disableBoundaryChecks||1<t||1<n)&&(b=-i.width,x=-i.height,w=C=1),y(y({},i),{},{x:Math.max(b,Math.min(i.x,C)),y:Math.max(x,Math.min(i.y,w))})}},{key:"loadImage",value:function(e){var t;x&&e instanceof File?this.loadingImage=(t=e,new Promise((function(e,n){var i=new FileReader;i.onload=function(t){try{var i=v(t.target.result);e(i)}catch(t){n(t)}},i.readAsDataURL(t)})).then(this.handleImageReady).catch(this.props.onLoadFailure)):"string"==typeof e&&(this.loadingImage=v(e,this.props.crossOrigin).then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(e,t){var n,i,b=this.getDimensions();return t/e<b.height/b.width?i=e*((n=this.getDimensions().height)/t):n=t*((i=this.getDimensions().width)/e),{height:n,width:i}}},{key:"paintImage",value:function(e,t,n,i){var b,C=3<arguments.length&&void 0!==i?i:k;t.resource&&(b=this.calculatePosition(t,n),e.save(),e.translate(e.canvas.width/2,e.canvas.height/2),e.rotate(this.props.rotate*Math.PI/180),e.translate(-e.canvas.width/2,-e.canvas.height/2),this.isVertical()&&e.translate((e.canvas.width-e.canvas.height)/2,(e.canvas.height-e.canvas.width)/2),e.scale(C,C),e.globalCompositeOperation="destination-over",e.drawImage(t.resource,b.x,b.y,b.width,b.height),t.backgroundColor&&(e.fillStyle=t.backgroundColor,e.fillRect(b.x,b.y,b.width,b.height)),e.restore())}},{key:"calculatePosition",value:function(e,t){e=e||this.state.image;var n=m(this.getBorders(t),2),i=n[0],b=n[1],C=this.getCroppingRect(),x=e.width*this.props.scale,w=e.height*this.props.scale,E=-C.x*x,k=-C.y*w;return this.isVertical()?(E+=b,k+=i):(E+=i,k+=b),{x:E,y:k,height:w,width:x}}},{key:"paint",value:function(e){e.save(),e.scale(k,k),e.translate(0,0),e.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var t,n,i,b,C,x,w,E,S=this.props.borderRadius,_=this.getDimensions(),P=m(this.getBorders(_.border),2),O=P[0],I=P[1],T=_.canvas.height,A=_.canvas.width;S=Math.max(S,0),S=Math.min(S,A/2-O,T/2-I),e.beginPath(),t=e,b=A-2*(n=O),C=T-2*(i=I),0===(x=S)?t.rect(n,i,b,C):(w=b-x,E=C-x,t.translate(n,i),t.arc(x,x,x,Math.PI,1.5*Math.PI),t.lineTo(w,0),t.arc(w,x,x,1.5*Math.PI,2*Math.PI),t.lineTo(b,E),t.arc(w,E,x,2*Math.PI,.5*Math.PI),t.lineTo(x,C),t.arc(x,E,x,.5*Math.PI,Math.PI),t.translate(-n,-i)),e.rect(A,0,-A,T),e.fill("evenodd"),e.restore()}},{key:"render",value:function(){var e=this.props,t=(e.scale,e.rotate,e.image,e.border,e.borderRadius,e.width,e.height,e.position,e.color,e.backgroundColor,e.style),n=(e.crossOrigin,e.onLoadFailure,e.onLoadSuccess,e.onImageReady,e.onImageChange,e.onMouseUp,e.onMouseMove,e.onPositionChange,e.disableBoundaryChecks,e.disableHiDPIScaling,e.disableCanvasRotation,l(e,["scale","rotate","image","border","borderRadius","width","height","position","color","backgroundColor","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling","disableCanvasRotation"])),b=this.getDimensions(),x={width:b.canvas.width,height:b.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},w={width:b.canvas.width*k,height:b.canvas.height*k,style:y(y({},x),t)};return w[E.react.down]=this.handleMouseDown,C&&(w[E.react.mouseDown]=this.handleMouseDown),i.default.createElement("canvas",u({ref:this.setCanvas},w,n))}}])&&r(e.prototype,t),n&&r(e,n),a}();return s(_,"propTypes",{scale:n.default.number,rotate:n.default.number,image:n.default.oneOfType([n.default.string].concat(function(e){if(Array.isArray(e))return f(e)}(b=x?[n.default.instanceOf(File)]:[])||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(b)||g(b)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),border:n.default.oneOfType([n.default.number,n.default.arrayOf(n.default.number)]),borderRadius:n.default.number,width:n.default.number,height:n.default.number,position:n.default.shape({x:n.default.number,y:n.default.number}),color:n.default.arrayOf(n.default.number),backgroundColor:n.default.string,crossOrigin:n.default.oneOf(["","anonymous","use-credentials"]),onLoadFailure:n.default.func,onLoadSuccess:n.default.func,onImageReady:n.default.func,onImageChange:n.default.func,onMouseUp:n.default.func,onMouseMove:n.default.func,onPositionChange:n.default.func,disableBoundaryChecks:n.default.bool,disableHiDPIScaling:n.default.bool,disableCanvasRotation:n.default.bool}),s(_,"defaultProps",{scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0}),_}(n(23615),n(87363))},55322:(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}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function get(){return S.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),S=_interopRequireDefault(n(50700)),_=_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<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends.apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var n,i,b=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,i,b={},C=Object.keys(e);for(i=0;i<C.length;i++)n=C[i],t.indexOf(n)>=0||(b[n]=e[n]);return b}(e,t);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(e);for(i=0;i<C.length;i++)n=C[i],t.indexOf(n)>=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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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<t;n++)i[n]=e[n];return i}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var n,i=_getPrototypeOf(e);if(t){var b=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,b)}else n=i.apply(this,arguments);return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){!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&&_setPrototypeOf(e,t)}(Draggable,e);var t=_createSuper(Draggable);function Draggable(e){var n;return function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Draggable),_defineProperty(_assertThisInitialized(n=t.call(this,e)),"onDragStart",(function(e,t){if((0,_.default)("Draggable: onDragStart: %j",t),!1===n.props.onStart(e,(0,E.createDraggableData)(_assertThisInitialized(n),t)))return!1;n.setState({dragging:!0,dragged:!0})})),_defineProperty(_assertThisInitialized(n),"onDrag",(function(e,t){if(!n.state.dragging)return!1;(0,_.default)("Draggable: onDrag: %j",t);var i=(0,E.createDraggableData)(_assertThisInitialized(n),t),b={x:i.x,y:i.y};if(n.props.bounds){var C=b.x,x=b.y;b.x+=n.state.slackX,b.y+=n.state.slackY;var w=_slicedToArray((0,E.getBoundPosition)(_assertThisInitialized(n),b.x,b.y),2),k=w[0],S=w[1];b.x=k,b.y=S,b.slackX=n.state.slackX+(C-b.x),b.slackY=n.state.slackY+(x-b.y),i.x=b.x,i.y=b.y,i.deltaX=b.x-n.state.x,i.deltaY=b.y-n.state.y}if(!1===n.props.onDrag(e,i))return!1;n.setState(b)})),_defineProperty(_assertThisInitialized(n),"onDragStop",(function(e,t){if(!n.state.dragging)return!1;if(!1===n.props.onStop(e,(0,E.createDraggableData)(_assertThisInitialized(n),t)))return!1;(0,_.default)("Draggable: onDragStop: %j",t);var i={dragging:!1,slackX:0,slackY:0};if(Boolean(n.props.position)){var b=n.props.position,C=b.x,x=b.y;i.x=C,i.y=x}n.setState(i)})),n.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:_objectSpread({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),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,_=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,_,this.state.dragged),e));return i.createElement(S.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,_.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({},S.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({},S.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<t;n++)i[n]=e[n];return i}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var n,i=_getPrototypeOf(e);if(t){var b=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,b)}else n=i.apply(this,arguments);return function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}(this,n)}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S={start:"touchstart",move:"touchmove",stop:"touchend"},_={start:"mousedown",move:"mousemove",stop:"mouseup"},P=_,O=function(e){!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&&_setPrototypeOf(e,t)}(DraggableCore,e);var t=_createSuper(DraggableCore);function DraggableCore(){var e;!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,DraggableCore);for(var n=arguments.length,i=new Array(n),b=0;b<n;b++)i[b]=arguments[b];return _defineProperty(_assertThisInitialized(e=t.call.apply(t,[this].concat(i))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),_defineProperty(_assertThisInitialized(e),"mounted",!1),_defineProperty(_assertThisInitialized(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> 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,S=C.y,_=(0,w.createCoreData)(_assertThisInitialized(e),E,S);(0,k.default)("DraggableCore: handleDragStart: %j",_),(0,k.default)("calling",e.props.onStart),!1!==e.props.onStart(t,_)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,x.addUserSelectStyles)(i),e.setState({dragging:!0,lastX:E,lastY:S}),(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 S=(0,w.createCoreData)(_assertThisInitialized(e),i,b);if((0,k.default)("DraggableCore: handleDrag: %j",S),!1!==e.props.onDrag(t,S)&&!1!==e.mounted)e.setState({lastX:i,lastY:b});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var _=document.createEvent("MouseEvents");_.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(_)}}})),_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,S=_slicedToArray((0,w.snapToGrid)(e.props.grid,C,E),2);C=S[0],E=S[1],i=e.state.lastX+C,b=e.state.lastY+E}var _=(0,w.createCoreData)(_assertThisInitialized(e),i,b);if(!1===e.props.onStop(t,_)||!1===e.mounted)return!1;var O=e.findDOMNode();O&&e.props.enableUserSelectHack&&(0,x.removeUserSelectStyles)(O.ownerDocument),(0,k.default)("DraggableCore: handleDragStop: %j",_),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=_,e.handleDragStart(t)})),_defineProperty(_assertThisInitialized(e),"onMouseUp",(function(t){return P=_,e.handleDragStop(t)})),_defineProperty(_assertThisInitialized(e),"onTouchStart",(function(t){return P=S,e.handleDragStart(t)})),_defineProperty(_assertThisInitialized(e),"onTouchEnd",(function(t){return P=S,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,S.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,_.move,this.handleDrag),(0,x.removeEvent)(t,S.move,this.handleDrag),(0,x.removeEvent)(t,_.stop,this.handleDragStop),(0,x.removeEvent)(t,S.stop,this.handleDragStop),(0,x.removeEvent)(e,S.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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C="";function matchesSelector(e,t){return C||(C=(0,i.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,i.isFunction)(e[t])}))),!!(0,i.isFunction)(e[C])&&e[C](t)}function getTranslation(e,t,n){var i=e.x,b=e.y,C="translate(".concat(i).concat(n,",").concat(b).concat(n,")");if(t){var x="".concat("string"==typeof t.x?t.x:t.x+n),w="".concat("string"==typeof t.y?t.y:t.y+n);C="translate(".concat(x,", ").concat(w,")")+C}return C}function addClassName(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function removeClassName(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},42249:(e,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<n.length;C++)if(browserPrefixToKey(i,n[C])in b)return n[C];return""}function browserPrefixToKey(e,t){return t?"".concat(t).concat(function kebabToTitleCase(e){for(var t="",n=!0,i=0;i<e.length;i++)n?(t+=e[i].toUpperCase(),n=!1):"-"===e[i]?n=!0:t+=e[i];return t}(e)):e}var i=getPrefix();t.default=i},73936:(e,t)=>{"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 S=w,_=k.getComputedStyle(x),P=k.getComputedStyle(S);C={left:-x.offsetLeft+(0,i.int)(P.paddingLeft)+(0,i.int)(_.marginLeft),top:-x.offsetTop+(0,i.int)(P.paddingTop)+(0,i.int)(_.marginTop),right:(0,b.innerWidth)(S)-(0,b.outerWidth)(x)-x.offsetLeft+(0,i.int)(P.paddingRight)-(0,i.int)(_.marginRight),bottom:(0,b.innerHeight)(S)-(0,b.outerHeight)(x)-x.offsetTop+(0,i.int)(P.paddingBottom)-(0,i.int)(_.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("<DraggableCore>: 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<i;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function int(e){return parseInt(e,10)},t.isFunction=function isFunction(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function isNum(e){return"number"==typeof e&&!isNaN(e)}},58702:(e,t)=>{"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"),S=Symbol.for("react.server_context"),_=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 S:case k:case _: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=_,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)===_},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===_||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:()=>_,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<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends.apply(this,arguments)}var b={exports:{}};!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},C=b.iterator||"@@iterator",x=b.asyncIterator||"@@asyncIterator",w=b.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(e,t,n){return e[t]=n}}function wrap(e,t,n,i){var b=t&&t.prototype instanceof Generator?t:Generator,C=Object.create(b.prototype),x=new Context(i||[]);return C._invoke=function makeInvokeMethod(e,t,n){var i=E;return function invoke(b,C){if(i===S)throw new Error("Generator is already running");if(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===P)continue;return w}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===E)throw i=_,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=S;var O=tryCatch(e,t,n);if("normal"===O.type){if(i=n.done?_:k,O.arg===P)continue;return{value:O.arg,done:n.done}}"throw"===O.type&&(i=_,n.method="throw",n.arg=O.arg)}}}(e,n,x),C}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var E="suspendedStart",k="suspendedYield",S="executing",_="completed",P={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var O={};define(O,C,(function(){return this}));var I=Object.getPrototypeOf,T=I&&I(I(values([])));T&&T!==n&&i.call(T,C)&&(O=T);var A=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(O);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,b,C,x){var w=tryCatch(e[n],e,b);if("throw"!==w.type){var E=w.arg,k=E.value;return k&&"object"==typeof k&&i.call(k,"__await")?t.resolve(k.__await).then((function(e){invoke("next",e,C,x)}),(function(e){invoke("throw",e,C,x)})):t.resolve(k).then((function(e){E.value=e,C(E)}),(function(e){return invoke("throw",e,C,x)}))}x(w.arg)}var n;this._invoke=function enqueue(e,i){function callInvokeWithMethodAndArg(){return new t((function(t,n){invoke(e,i,t,n)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,maybeInvokeDelegate(e,n),"throw"===n.method))return P;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var b=tryCatch(i,e.iterator,n.arg);if("throw"===b.type)return n.method="throw",n.arg=b.arg,n.delegate=null,P;var C=b.arg;return C?C.done?(n[e.resultName]=C.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,P):C:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,P)}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 n=e[C];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var b=-1,x=function next(){for(;++b<e.length;)if(i.call(e,b))return next.value=e[b],next.done=!1,next;return next.value=t,next.done=!0,next};return x.next=x}}return{next:doneResult}}function doneResult(){return{value:t,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(A,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,w,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===GeneratorFunction||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,w,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,x,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,n,i,b,C){void 0===C&&(C=Promise);var x=new AsyncIterator(wrap(t,n,i,b),C);return e.isGeneratorFunction(n)?x:x.next().then((function(e){return e.done?e.value:x.next()}))},defineIteratorMethods(A),define(A,w,"Generator"),define(A,C,(function(){return this})),define(A,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function next(){for(;t.length;){var n=t.pop();if(n in e)return next.value=n,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function handle(i,b){return x.type="throw",x.arg=e,n.next=i,b&&(n.method="next",n.arg=t),!!b}for(var b=this.tryEntries.length-1;b>=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<C.catchLoc)return handle(C.catchLoc,!0);if(this.prev<C.finallyLoc)return handle(C.finallyLoc)}else if(w){if(this.prev<C.catchLoc)return handle(C.catchLoc,!0)}else{if(!E)throw new Error("try statement without catch or finally");if(this.prev<C.finallyLoc)return handle(C.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var b=this.tryEntries[n];if(b.tryLoc<=this.prev&&i.call(b,"finallyLoc")&&this.prev<b.finallyLoc){var C=b;break}}C&&("break"===e||"continue"===e)&&C.tryLoc<=t&&t<=C.finallyLoc&&(C=null);var x=C?C.completion:{};return x.type=e,x.arg=t,C?(this.method="next",this.next=C.finallyLoc,P):this.complete(x)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),P},finish:function(e){for(var t=this.tryEntries.length-1;t>=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],S=k.x,_=k.y,P=b/2;return i.createElement("circle",{key:n,id:n,cx:S,cy:_,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})})))},S=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 _=i.forwardRef((function(e,t){var n=e.paths,b=e.isDrawing,w=e.onPointerDown,E=e.onPointerMove,_=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,U=void 0===q?"all":q,V=e.style,H=void 0===V?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:V,Z=e.svgStyle,Y=void 0===Z?{}:Z,X=i.useRef(null),K=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}},$=function handlePointerUp(e){"mouse"===e.pointerType&&0!==e.button||"all"!==U&&e.pointerType!==U||_()};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,_,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,S(k);case 8:if(C.t0=C.sent,_=[C.t0],!z){C.next=21;break}return C.prev=11,C.next=14,S(F);case 14:P=C.sent,_.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(_).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",$),function(){document.removeEventListener("pointerup",$)}}),[$]);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"!==U&&e.pointerType!==U||"mouse"===e.pointerType&&0!==e.button)){var t=K(e);w(t)}},onPointerMove:function handlePointerMove(e){if(b&&("all"===U||e.pointerType===U)){var t=K(e);E(t)}},onPointerUp:$},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,S=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,U=void 0===q?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:q,V=e.svgStyle,H=void 0===V?{}:V,Z=e.onChange,Y=void 0===Z?function(e){}:Z,X=e.onStroke,K=void 0===X?function(e,t){}:X,$=e.withTimestamp,Q=void 0!==$&&$,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?K(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(_,{ref:J,id:b,width:x,height:E,className:S,canvasColor:O,backgroundImage:M,exportWithBackgroundImage:j,preserveBackgroundImageAspectRatio:L,allowOnlyPointerType:G,style:U,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,S=w.length;k<S;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<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports.default=e.exports},17358:e=>{e.exports=function _arrayWithHoles(e){if(Array.isArray(e))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},93231:(e,t,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<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,_extends.apply(this,arguments)}e.exports=_extends,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<x.length;b++)n=x[b],t.indexOf(n)>=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<C.length;i++)n=C[i],t.indexOf(n)>=0||(b[n]=e[n]);return b},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 S={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var _={};define(_,w,(function(){return this}));var P=Object.getPrototypeOf,O=P&&P(P(values([])));O&&O!==n&&b.call(O,w)&&(_=O);var I=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(_);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,S=k.value;return S&&"object"==i(S)&&b.call(S,"__await")?t.resolve(S.__await).then((function(e){invoke("next",e,x,w)}),(function(e){invoke("throw",e,x,w)})):t.resolve(S).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===S)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===S)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")),S;var b=tryCatch(i,e.iterator,t.arg);if("throw"===b.type)return t.method="throw",t.arg=b.arg,t.delegate=null,S;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,S):C:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,S)}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<e.length;)if(b.call(e,n))return next.value=e[n],next.done=!1,next;return next.value=void 0,next.done=!0,next};return i.next=i}}return{next:doneResult}}function doneResult(){return{value:void 0,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,C(I,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),C(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,k,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===GeneratorFunction||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,k,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,E,(function(){return this})),t.AsyncIterator=AsyncIterator,t.async=function(e,n,i,b,C){void 0===C&&(C=Promise);var x=new AsyncIterator(wrap(e,n,i,b),C);return t.isGeneratorFunction(n)?x:x.next().then((function(e){return e.done?e.value:x.next()}))},defineIteratorMethods(I),define(I,k,"Generator"),define(I,w,(function(){return this})),define(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function next(){for(;n.length;){var e=n.pop();if(e in t)return next.value=e,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!e)for(var t in this)"t"===t.charAt(0)&&b.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function stop(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function dispatchException(e){if(this.done)throw e;var t=this;function handle(n,i){return C.type="throw",C.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var n=this.tryEntries.length-1;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<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(x){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!w)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&b.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var C=i;break}}C&&("break"===e||"continue"===e)&&C.tryLoc<=t&&t<=C.finallyLoc&&(C=null);var x=C?C.completion:{};return x.type=e,x.arg=t,C?(this.method="next",this.next=C.finallyLoc,S):this.complete(x)},complete:function complete(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),S},finish:function finish(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),S}},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),S}},t}e.exports=_regeneratorRuntime,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:()=>_e,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:()=>$e,overloadedBoolean:()=>Ke,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(;++b<C.length;){const e=C[b];if(i===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return b=t.indexOf("?"),-1!==b&&i>b?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(;++n<e.length;)assertPath(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function normalize(e){assertPath(e);const t=47===e.charCodeAt(0);let n=function normalizeString(e,t){let n,i,b="",C=0,x=-1,w=0,E=-1;for(;++E<=e.length;){if(E<e.length)n=e.charCodeAt(E);else{if(47===n)break;n=47}if(47===n){if(x===E-1||1===w);else if(x!==E-1&&2===w){if(b.length<2||2!==C||46!==b.charCodeAt(b.length-1)||46!==b.charCodeAt(b.length-2))if(b.length>2){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(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const S=["history","path","basename","stem","extname","dirname"];class VFile{constructor(e){let t;t=e?"string"==typeof e||function buffer(e){return w(e)}(e)?{value:e}:isUrl(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=k.cwd(),this.value,this.stored,this.result,this.map;let n,i=-1;for(;++i<S.length;){const e=S[i];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)S.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){isUrl(e)&&(e=urlToPath(e)),assertNonEmpty(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?E.dirname(this.path):void 0}set dirname(e){lib_assertPath(this.basename,"dirname"),this.path=E.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?E.basename(this.path):void 0}set basename(e){assertNonEmpty(e,"basename"),assertPart(e,"basename"),this.path=E.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?E.extname(this.path):void 0}set extname(e){if(assertPart(e,"extname"),lib_assertPath(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=E.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?E.basename(this.path,this.extname):void 0}set stem(e){assertNonEmpty(e,"stem"),assertPart(e,"stem"),this.path=E.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const i=new VFileMessage(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(e,t,n){const i=this.message(e,t,n);return i.fatal=null,i}fail(e,t,n){const i=this.message(e,t,n);throw i.fatal=!0,i}}function assertPart(e,t){if(e&&e.includes(E.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+E.sep+"`")}function assertNonEmpty(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function lib_assertPath(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function bail(e){if(e)throw e}var _=n(50229);function isPlainObject(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function trough(){const e=[],t={run:function run(...t){let n=-1;const i=t.pop();if("function"!=typeof i)throw new TypeError("Expected function as last argument, not "+i);!function next(b,...C){const x=e[++n];let w=-1;if(b)i(b);else{for(;++w<t.length;)null!==C[w]&&void 0!==C[w]||(C[w]=t[w]);t=C,x?function wrap(e,t){let n;return wrapped;function wrapped(...t){const i=e.length>t.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<t.length;){const[n,...i]=t[b];if(!1===i[0])continue;!0===i[0]&&(i[0]=void 0);const C=n.call(processor,...i);"function"==typeof C&&e.use(C)}return n=!0,b=Number.POSITIVE_INFINITY,processor},processor.attachers=t,processor.use=function use(e,...b){let C;if(assertUnfrozen("use",n),null==e);else if("function"==typeof e)addPlugin(e,...b);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?addList(e):addPreset(e)}C&&(i.settings=Object.assign(i.settings||{},C));return processor;function add(e){if("function"==typeof e)addPlugin(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;addPlugin(t,...n)}else addPreset(e)}}function addPreset(e){addList(e.plugins),e.settings&&(C=Object.assign(C||{},e.settings))}function addList(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){add(e[t])}}}function addPlugin(e,n){let i,b=-1;for(;++b<t.length;)if(t[b][0]===e){i=t[b];break}i?(isPlainObject(i[1])&&isPlainObject(n)&&(n=_(!0,i[1],n)),i[1]=n):t.push([...arguments])}},processor.parse=function parse(e){processor.freeze();const t=vfile(e),n=processor.Parser;if(assertParser("parse",n),newable(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},processor.stringify=function stringify(e,t){processor.freeze();const n=vfile(t),i=processor.Compiler;if(assertCompiler("stringify",i),assertNode(e),newable(i,"compile"))return new i(e,n).compile();return i(e,n)},processor.run=function run(t,n,i){assertNode(t),processor.freeze(),i||"function"!=typeof n||(i=n,n=void 0);if(!i)return new Promise(executor);function executor(b,C){function done(e,n,x){n=n||t,e?C(e):b?b(n):i(null,n,x)}e.run(t,vfile(n),done)}executor(null,i)},processor.runSync=function runSync(e,t){let n,i;return processor.run(e,t,done),assertDone("runSync","run",i),n;function done(e,t){bail(e),n=t,i=!0}},processor.process=function process(e,t){if(processor.freeze(),assertParser("process",processor.Parser),assertCompiler("process",processor.Compiler),!t)return new Promise(executor);function executor(n,i){const b=vfile(e);function done(e,b){e||!b?i(e):n?n(b):t(null,b)}processor.run(processor.parse(b),b,((e,t,n)=>{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(;++n<t.length;)e.use(...t[n]);return e.data(_(!0,{},i)),e}}().freeze(),O={}.hasOwnProperty;function newable(e,t){return"function"==typeof e&&e.prototype&&(function keys(e){let t;for(t in e)if(O.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function assertParser(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function assertCompiler(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function assertUnfrozen(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(e){if(!isPlainObject(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function assertDone(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vfile(e){return function looksLikeAVFile(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new VFile(e)}const I={};function one(e,t,n){if(function node(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lib_all(e.children,t,n)}return Array.isArray(e)?lib_all(e,t,n):""}function lib_all(e,t,n){const i=[];let b=-1;for(;++b<e.length;)i[b]=one(e[b],t,n);return i.join("")}function splice(e,t,n,i){const b=e.length;let C,x=0;if(t=t<0?-t>b?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]);x<i.length;)C=i.slice(x,x+1e4),C.unshift(t,0),[].splice.apply(e,C),x+=1e4,t+=1e4}function push(e,t){return e.length>0?(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(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);splice(e,0,0,i)}const A=regexCheck(/[A-Za-z]/),M=regexCheck(/\d/),R=regexCheck(/[\dA-Fa-f]/),j=regexCheck(/[\dA-Za-z]/),D=regexCheck(/[!-/:-@[-`{-~]/),L=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(e){return null!==e&&(e<32||127===e)}function markdownLineEndingOrSpace(e){return null!==e&&(e<0||32===e)}function markdownLineEnding(e){return null!==e&&e<-2}function markdownSpace(e){return-2===e||-1===e||32===e}const N=regexCheck(/\s/),F=regexCheck(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function regexCheck(e){return function check(t){return null!==t&&e.test(String.fromCharCode(t))}}function factorySpace(e,t,n,i){const b=i?i-1:Number.POSITIVE_INFINITY;let C=0;return function start(i){if(markdownSpace(i))return e.enter(n),prefix(i);return t(i)};function prefix(i){return markdownSpace(i)&&C++<b?(e.consume(i),prefix):(e.exit(n),t(i))}}const B={tokenize:function initializeContent(e){const t=e.attempt(this.parser.constructs.contentInitial,(function afterContentStartConstruct(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),factorySpace(e,t,"linePrefix")}),(function paragraphInitial(t){return e.enter("paragraph"),lineStart(t)}));let n;return t;function lineStart(t){const i=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=i),n=i,data(t)}function data(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):markdownLineEnding(t)?(e.consume(t),e.exit("chunkText"),lineStart):(e.consume(t),data)}}};const z={tokenize:function initializeDocument(e){const t=this,n=[];let i,b,C,x=0;return start;function start(i){if(x<n.length){const b=n[x];return t.containerState=b[1],e.attempt(b[0].continuation,documentContinue,checkNewContainers)(i)}return checkNewContainers(i)}function documentContinue(e){if(x++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&closeFlow();const n=t.events.length;let b,C=n;for(;C--;)if("exit"===t.events[C][0]&&"chunkFlow"===t.events[C][1].type){b=t.events[C][1].end;break}exitContainers(x);let w=n;for(;w<t.events.length;)t.events[w][1].end=Object.assign({},b),w++;return splice(t.events,C+1,0,t.events.slice(n)),t.events.length=w,checkNewContainers(e)}return start(e)}function checkNewContainers(b){if(x===n.length){if(!i)return documentContinued(b);if(i.currentConstruct&&i.currentConstruct.concrete)return flowStart(b);t.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(W,thereIsANewContainer,thereIsNoNewContainer)(b)}function thereIsANewContainer(e){return i&&closeFlow(),exitContainers(x),documentContinued(e)}function thereIsNoNewContainer(e){return t.parser.lazy[t.now().line]=x!==n.length,C=t.now().offset,flowStart(e)}function documentContinued(n){return t.containerState={},e.attempt(W,containerContinue,flowStart)(n)}function containerContinue(e){return x++,n.push([t.currentConstruct,t.containerState]),documentContinued(e)}function flowStart(n){return null===n?(i&&closeFlow(),exitContainers(0),void e.consume(n)):(i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:b,_tokenizer:i}),flowContinue(n))}function flowContinue(n){return null===n?(writeToChild(e.exit("chunkFlow"),!0),exitContainers(0),void e.consume(n)):markdownLineEnding(n)?(e.consume(n),writeToChild(e.exit("chunkFlow")),x=0,t.interrupt=void 0,start):(e.consume(n),flowContinue)}function writeToChild(e,n){const w=t.sliceStream(e);if(n&&w.push(null),e.previous=b,b&&(b.next=e),b=e,i.defineSkip(e.start),i.write(w),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<C&&(!i.events[e][1].end||i.events[e][1].end.offset>C))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;e<t.events.length;)t.events[e][1].end=Object.assign({},w),e++;splice(t.events,E+1,0,t.events.slice(n)),t.events.length=e}}function exitContainers(i){let b=n.length;for(;b-- >i;){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<e.length;){for(;k in t;)k=t[k];if(n=e[k],k&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[k-1][1].type&&(w=n[1]._tokenizer.events,b=0,b<w.length&&"lineEndingBlank"===w[b][1].type&&(b+=2),b<w.length&&"content"===w[b][1].type))for(;++b<w.length&&"content"!==w[b][1].type;)"chunkText"===w[b][1].type&&(w[b][1]._isInFirstContentOfListItem=!0,b++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,subcontent(e,k)),k=t[k],E=!0);else if(n[1]._container){for(b=k,i=void 0;b--&&(C=e[b],"lineEnding"===C[1].type||"lineEndingBlank"===C[1].type);)"enter"===C[0]&&(i&&(e[i][1].type="lineEndingBlank"),C[1].type="lineEnding",i=b);i&&(n[1].end=Object.assign({},e[i][1].start),x=e.slice(i,k),x.unshift(n),splice(e,i,k-i+1,x))}}return!E}function subcontent(e,t){const n=e[t][1],i=e[t][2];let b=t-1;const C=[],x=n._tokenizer||i.parser[n.contentType](n.start),w=x.events,E=[],k={};let S,_,P=-1,O=n,I=0,T=0;const A=[T];for(;O;){for(;e[++b][1]!==O;);C.push(b),O._tokenizer||(S=i.sliceStream(O),O.next||S.push(null),_&&x.defineSkip(O.start),O._isInFirstContentOfListItem&&(x._gfmTasklistFirstContentOfListItem=!0),x.write(S),O._isInFirstContentOfListItem&&(x._gfmTasklistFirstContentOfListItem=void 0)),_=O,O=O.next}for(O=n;++P<w.length;)"exit"===w[P][0]&&"enter"===w[P-1][0]&&w[P][1].type===w[P-1][1].type&&w[P][1].start.line!==w[P][1].end.line&&(T=P+1,A.push(T),O._tokenizer=void 0,O.previous=void 0,O=O.next);for(x.events=[],O?(O._tokenizer=void 0,O.previous=void 0):A.pop(),P=A.length;P--;){const t=w.slice(A[P],A[P+1]),n=C.pop();E.unshift([n,n+t.length-1]),splice(e,n,2,t)}for(P=-1;++P<E.length;)k[I+E[P][0]]=I+E[P][1],I+=E[P][1]-E[P][0]-1;return k}const q={tokenize:function tokenizeContent(e,t){let n;return function start(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),data(t)};function data(t){return null===t?contentEnd(t):markdownLineEnding(t)?e.check(U,contentContinue,contentEnd)(t):(e.consume(t),data)}function contentEnd(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function contentContinue(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,data}},resolve:function resolveContent(e){return subtokenize(e),e}},U={tokenize:function tokenizeContinuation(e,t,n){const i=this;return function startLookahead(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),factorySpace(e,prefixed,"linePrefix")};function prefixed(b){if(null===b||markdownLineEnding(b))return n(b);const C=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&C&&"linePrefix"===C[1].type&&C[2].sliceSerialize(C[1],!0).length>=4?t(b):e.interrupt(i.parser.constructs.flow,n,t)(b)}},partial:!0};const V={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<t.length;){const e=t[b];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:createResolver("text"===e?resolveAllLineSuffixes:void 0)}}function createResolver(e){return function resolveAllText(t,n){let i,b=-1;for(;++b<=t.length;)void 0===i?t[b]&&"data"===t[b][1].type&&(i=b,b++):t[b]&&"data"===t[b][1].type||(b!==i+2&&(t[i][1].end=t[b-1][1].end,t.splice(i+2,b-i-2),b=i+2),i=void 0);return e?e(t,n):t}}function resolveAllLineSuffixes(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const i=e[n-1][1],b=t.sliceStream(i);let C,x=b.length,w=-1,E=0;for(;x--;){const e=b[x];if("string"==typeof e){for(w=e.length;32===e.charCodeAt(w-1);)E++,w--;if(w)break;w=-1}else if(-2===e)C=!0,E++;else if(-1!==e){x++;break}}if(E){const b={type:n===e.length||C||E<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-E,offset:i.end.offset-E,_index:i.start._index+x,_bufferIndex:x?w:i.start._bufferIndex+w},end:Object.assign({},i.end)};i.end=Object.assign({},b.start),i.start.offset===i.end.offset?Object.assign(i,b):(e.splice(n,0,["enter",b,t],["exit",b,t]),n+=2)}n++}return e}function resolveAll(e,t,n){const i=[];let b=-1;for(;++b<e.length;){const C=e[b].resolveAll;C&&!i.includes(C)&&(t=C(t,n),i.push(C))}return t}function createTokenizer(e,t,n){let i=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const b={},C=[];let x=[],w=[],E=!0;const k={consume:function consume(e){markdownLineEnding(e)?(i.line++,i.column=1,i.offset+=-3===e?2:1,accountForPotentialSkip()):-1!==e&&(i.column++,i.offset++);i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===x[i._index].length&&(i._bufferIndex=-1,i._index++));S.previous=e,E=!0},enter:function enter(e,t){const n=t||{};return n.type=e,n.start=now(),S.events.push(["enter",n,S]),w.push(n),n},exit:function exit(e){const t=w.pop();return t.end=now(),S.events.push(["exit",t,S]),t},attempt:constructFactory((function onsuccessfulconstruct(e,t){addResult(e,t.from)})),check:constructFactory(onsuccessfulcheck),interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0})},S={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream,sliceSerialize:function sliceSerialize(e,t){return function serializeChunks(e,t){let n=-1;const i=[];let b;for(;++n<e.length;){const C=e[n];let x;if("string"==typeof C)x=C;else switch(C){case-5:x="\r";break;case-4:x="\n";break;case-3:x="\r\n";break;case-2:x=t?" ":"\t";break;case-1:if(!t&&b)continue;x=" ";break;default:x=String.fromCharCode(C)}b=-2===C,i.push(x)}return i.join("")}(sliceStream(e),t)},now,defineSkip:function defineSkip(e){b[e.line]=e.column,accountForPotentialSkip()},write:function write(e){if(x=push(x,e),main(),null!==x[x.length-1])return[];return addResult(t,0),S.events=resolveAll(C,S.events,S),S.events}};let _,P=t.tokenize.call(S,k);return t.resolveAll&&C.push(t),S;function sliceStream(e){return function sliceChunks(e,t){const n=t.start._index,i=t.start._bufferIndex,b=t.end._index,C=t.end._bufferIndex;let x;n===b?x=[e[n].slice(i,C)]:(x=e.slice(n,b),i>-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._index<x.length;){const t=x[i._index];if("string"==typeof t)for(e=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===e&&i._bufferIndex<t.length;)go(t.charCodeAt(i._bufferIndex));else go(t)}}function go(e){E=void 0,_=e,P=P(e)}function onsuccessfulcheck(e,t){t.restore()}function constructFactory(e,t){return function hook(n,b,C){let x,_,P,O;return Array.isArray(n)?handleListOfConstructs(n):"tokenize"in n?handleListOfConstructs([n]):function handleMapOfConstructs(e){return start;function start(t){const n=null!==t&&e[t],i=null!==t&&e.null;return handleListOfConstructs([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(i)?i:i?[i]:[]])(t)}}(n);function handleListOfConstructs(e){return x=e,_=0,0===e.length?C:handleConstruct(e[_])}function handleConstruct(e){return function start(n){O=function store(){const e=now(),t=S.previous,n=S.currentConstruct,b=S.events.length,C=Array.from(w);return{restore,from:b};function restore(){i=e,S.previous=t,S.currentConstruct=n,S.events.length=b,w=C,accountForPotentialSkip()}}(),P=e,e.partial||(S.currentConstruct=e);if(e.name&&S.parser.constructs.disable.null.includes(e.name))return nok(n);return e.tokenize.call(t?Object.assign(Object.create(S),t):S,k,ok,nok)(n)}}function ok(t){return E=!0,e(P,O),b}function nok(e){return E=!0,O.restore(),++_<x.length?handleConstruct(x[_]):C}}}function addResult(e,t){e.resolveAll&&!C.includes(e)&&C.push(e),e.resolve&&splice(S.events,t,S.events.length-t,e.resolve(S.events.slice(t),S)),e.resolveTo&&(S.events=e.resolveTo(S.events,S))}function accountForPotentialSkip(){i.line in b&&i.column<2&&(i.column=b[i.line],i.offset+=b[i.line]-1)}}const X={name:"thematicBreak",tokenize:function tokenizeThematicBreak(e,t,n){let i,b=0;return function start(t){return e.enter("thematicBreak"),i=t,atBreak(t)};function atBreak(C){return C===i?(e.enter("thematicBreakSequence"),sequence(C)):markdownSpace(C)?factorySpace(e,atBreak,"whitespace")(C):b<3||null!==C&&!markdownLineEnding(C)?n(C):(e.exit("thematicBreak"),t(C))}function sequence(t){return t===i?(e.consume(t),b++,sequence):(e.exit("thematicBreakSequence"),atBreak(t))}}};const K={name:"list",tokenize:function tokenizeListStart(e,t,n){const i=this,b=i.events[i.events.length-1];let C=b&&"linePrefix"===b[1].type?b[2].sliceSerialize(b[1],!0).length:0,x=0;return function start(t){const b=i.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===b?!i.containerState.marker||t===i.containerState.marker:M(t)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),"listUnordered"===b)return e.enter("listItemPrefix"),42===t||45===t?e.check(X,n,atMarker)(t):atMarker(t);if(!i.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),inside(t)}return n(t)};function inside(t){return M(t)&&++x<10?(e.consume(t),inside):(!i.interrupt||x<2)&&(i.containerState.marker?t===i.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),atMarker(t)):n(t)}function atMarker(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||t,e.check(G,i.interrupt?n:onBlank,e.attempt($,endOfPrefix,otherPrefix))}function onBlank(e){return i.containerState.initialBlankLine=!0,C++,endOfPrefix(e)}function otherPrefix(t){return markdownSpace(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),endOfPrefix):n(t)}function endOfPrefix(n){return i.containerState.size=C+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function tokenizeListContinuation(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(G,onBlank,notBlank);function onBlank(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,factorySpace(e,t,"listItemIndent",i.containerState.size+1)(n)}function notBlank(n){return i.containerState.furtherBlankLines||!markdownSpace(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,notInCurrentItem(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Q,t,notInCurrentItem)(n))}function notInCurrentItem(b){return i.containerState._closeFlow=!0,i.interrupt=void 0,factorySpace(e,e.attempt(K,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b)}}},exit:function tokenizeListEnd(e){e.exit(this.containerState.type)}},$={tokenize:function tokenizeListItemPrefixWhitespace(e,t,n){const i=this;return factorySpace(e,(function afterPrefix(e){const b=i.events[i.events.length-1];return!markdownSpace(e)&&b&&"listItemPrefixWhitespace"===b[1].type?t(e):n(e)}),"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Q={tokenize:function tokenizeIndent(e,t,n){const i=this;return factorySpace(e,(function afterPrefix(e){const b=i.events[i.events.length-1];return b&&"listItemIndent"===b[1].type&&b[2].sliceSerialize(b[1],!0).length===i.containerState.size?t(e):n(e)}),"listItemIndent",i.containerState.size+1)},partial:!0};const J={name:"blockQuote",tokenize:function tokenizeBlockQuoteStart(e,t,n){const i=this;return function start(t){if(62===t){const n=i.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),after}return n(t)};function after(n){return markdownSpace(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function tokenizeBlockQuoteContinuation(e,t,n){return factorySpace(e,e.attempt(J,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function exit(e){e.exit("blockQuote")}};function factoryDestination(e,t,n,i,b,C,x,w,E){const k=E||Number.POSITIVE_INFINITY;let S=0;return function start(t){if(60===t)return e.enter(i),e.enter(b),e.enter(C),e.consume(t),e.exit(C),destinationEnclosedBefore;if(null===t||41===t||asciiControl(t))return n(t);return e.enter(i),e.enter(x),e.enter(w),e.enter("chunkString",{contentType:"string"}),destinationRaw(t)};function destinationEnclosedBefore(n){return 62===n?(e.enter(C),e.consume(n),e.exit(C),e.exit(b),e.exit(i),t):(e.enter(w),e.enter("chunkString",{contentType:"string"}),destinationEnclosed(n))}function destinationEnclosed(t){return 62===t?(e.exit("chunkString"),e.exit(w),destinationEnclosedBefore(t)):null===t||60===t||markdownLineEnding(t)?n(t):(e.consume(t),92===t?destinationEnclosedEscape:destinationEnclosed)}function destinationEnclosedEscape(t){return 60===t||62===t||92===t?(e.consume(t),destinationEnclosed):destinationEnclosed(t)}function destinationRaw(b){return 40===b?++S>k?n(b):(e.consume(b),destinationRaw):41===b?S--?(e.consume(b),destinationRaw):(e.exit("chunkString"),e.exit(w),e.exit(x),e.exit(i),t(b)):null===b||markdownLineEndingOrSpace(b)?S?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):i<k?n(t):(e.exit("codeFencedFenceSequence"),factorySpace(e,closingSequenceEnd,"whitespace")(t))}function closingSequenceEnd(i){return null===i||markdownLineEnding(i)?(e.exit("codeFencedFence"),t(i)):n(i)}},partial:!0},C={tokenize:function tokenizeNonLazyLine(e,t,n){const i=this;return start;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)}},partial:!0},x=this.events[this.events.length-1],w=x&&"linePrefix"===x[1].type?x[2].sliceSerialize(x[1],!0).length:0;let E,k=0;return function start(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),E=t,sequenceOpen(t)};function sequenceOpen(t){return t===E?(e.consume(t),k++,sequenceOpen):(e.exit("codeFencedFenceSequence"),k<3?n(t):factorySpace(e,infoOpen,"whitespace")(t))}function infoOpen(t){return null===t||markdownLineEnding(t)?openAfter(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),info(t))}function info(t){return null===t||markdownLineEndingOrSpace(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),factorySpace(e,infoAfter,"whitespace")(t)):96===t&&t===E?n(t):(e.consume(t),info)}function infoAfter(t){return null===t||markdownLineEnding(t)?openAfter(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),meta(t))}function meta(t){return null===t||markdownLineEnding(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),openAfter(t)):96===t&&t===E?n(t):(e.consume(t),meta)}function openAfter(n){return e.exit("codeFencedFence"),i.interrupt?t(n):contentStart(n)}function contentStart(t){return null===t?after(t):markdownLineEnding(t)?e.attempt(C,e.attempt(b,after,w?factorySpace(e,contentStart,"linePrefix",w+1):contentStart),after)(t):(e.enter("codeFlowValue"),contentContinue(t))}function contentContinue(t){return null===t||markdownLineEnding(t)?(e.exit("codeFlowValue"),contentStart(t)):(e.consume(t),contentContinue)}function after(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const de=document.createElement("i");function decodeNamedCharacterReference(e){const t="&"+e+";";de.innerHTML=t;const n=de.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const fe={name:"characterReference",tokenize:function tokenizeCharacterReference(e,t,n){const i=this;let b,C,x=0;return function start(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),open};function open(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),numeric):(e.enter("characterReferenceValue"),b=31,C=j,value(t))}function numeric(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),b=6,C=R,value):(e.enter("characterReferenceValue"),b=7,C=M,value(t))}function value(w){let E;return 59===w&&x?(E=e.exit("characterReferenceValue"),C!==j||decodeNamedCharacterReference(i.sliceSerialize(E))?(e.enter("characterReferenceMarker"),e.consume(w),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(w)):C(w)&&x++<b?(e.consume(w),value):n(w)}}};const pe={name:"characterEscape",tokenize:function tokenizeCharacterEscape(e,t,n){return function start(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),open};function open(i){return D(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}};const me={name:"lineEnding",tokenize:function tokenizeLineEnding(e,t){return function start(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),factorySpace(e,t,"linePrefix")}}};const ge={name:"labelEnd",tokenize:function tokenizeLabelEnd(e,t,n){const i=this;let b,C,x=i.events.length;for(;x--;)if(("labelImage"===i.events[x][1].type||"labelLink"===i.events[x][1].type)&&!i.events[x][1]._balanced){b=i.events[x][1];break}return function start(t){if(!b)return n(t);return b._inactive?balanced(t):(C=i.parser.defined.includes(normalizeIdentifier(i.sliceSerialize({start:b.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),afterLabelEnd)};function afterLabelEnd(n){return 40===n?e.attempt(he,t,C?t:balanced)(n):91===n?e.attempt(ye,t,C?e.attempt(ve,t,balanced):balanced)(n):C?t(n):balanced(n)}function balanced(e){return b._balanced=!0,n(e)}},resolveTo:function resolveToLabelEnd(e,t){let n,i,b,C,x=e.length,w=0;for(;x--;)if(n=e[x][1],i){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[x][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(b){if("enter"===e[x][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(i=x,"labelLink"!==n.type)){w=2;break}}else"labelEnd"===n.type&&(b=x);const E={type:"labelLink"===e[i][1].type?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},k={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[b][1].end)},S={type:"labelText",start:Object.assign({},e[i+w+2][1].end),end:Object.assign({},e[b-2][1].start)};return C=[["enter",E,t],["enter",k,t]],C=push(C,e.slice(i+1,i+w+3)),C=push(C,[["enter",S,t]]),C=push(C,resolveAll(t.parser.constructs.insideSpan.null,e.slice(i+w+4,b-3),t)),C=push(C,[["exit",S,t],e[b-2],e[b-1],["exit",k,t]]),C=push(C,e.slice(b+1)),C=push(C,[["exit",E,t]]),splice(e,i,e.length,C),e},resolveAll:function resolveAllLabelEnd(e){let t,n=-1;for(;++n<e.length;)t=e[n][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},he={tokenize:function tokenizeResource(e,t,n){return function start(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),factoryWhitespace(e,open)};function open(t){return 41===t?end(t):factoryDestination(e,destinationAfter,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function destinationAfter(t){return markdownLineEndingOrSpace(t)?factoryWhitespace(e,between)(t):end(t)}function between(t){return 34===t||39===t||40===t?factoryTitle(e,factoryWhitespace(e,end),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):end(t)}function end(i){return 41===i?(e.enter("resourceMarker"),e.consume(i),e.exit("resourceMarker"),e.exit("resource"),t):n(i)}}},ye={tokenize:function tokenizeFullReference(e,t,n){const i=this;return function start(t){return factoryLabel.call(i,e,afterLabel,n,"reference","referenceMarker","referenceString")(t)};function afterLabel(e){return i.parser.defined.includes(normalizeIdentifier(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(e):n(e)}}},ve={tokenize:function tokenizeCollapsedReference(e,t,n){return function start(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),open};function open(i){return 93===i?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}};const be={name:"labelStartImage",tokenize:function tokenizeLabelStartImage(e,t,n){const i=this;return function start(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),open};function open(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),after):n(t)}function after(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}},resolveAll:ge.resolveAll};function classifyCharacter(e){return null===e||markdownLineEndingOrSpace(e)||N(e)?1:F(e)?2:void 0}const Ce={name:"attention",tokenize:function tokenizeAttention(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,b=classifyCharacter(i);let C;return function start(t){return e.enter("attentionSequence"),C=t,sequence(t)};function sequence(x){if(x===C)return e.consume(x),sequence;const w=e.exit("attentionSequence"),E=classifyCharacter(x),k=!E||2===E&&b||n.includes(x),S=!b||2===b&&E||n.includes(i);return w._open=Boolean(42===C?k:k&&(b||!S)),w._close=Boolean(42===C?S:S&&(E||!k)),t(x)}},resolveAll:function resolveAllAttention(e,t){let n,i,b,C,x,w,E,k,S=-1;for(;++S<e.length;)if("enter"===e[S][0]&&"attentionSequence"===e[S][1].type&&e[S][1]._close)for(n=S;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[S][1]).charCodeAt(0)){if((e[n][1]._close||e[S][1]._open)&&(e[S][1].end.offset-e[S][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[S][1].end.offset-e[S][1].start.offset)%3))continue;w=e[n][1].end.offset-e[n][1].start.offset>1&&e[S][1].end.offset-e[S][1].start.offset>1?2:1;const _=Object.assign({},e[n][1].end),P=Object.assign({},e[S][1].start);movePoint(_,-w),movePoint(P,w),C={type:w>1?"strongSequence":"emphasisSequence",start:_,end:Object.assign({},e[n][1].end)},x={type:w>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[S][1].start),end:P},b={type:w>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[S][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[S][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,S),t)),E=push(E,[["exit",b,t],["enter",x,t],["exit",x,t],["exit",i,t]]),e[S][1].end.offset-e[S][1].start.offset?(k=2,E=push(E,[["enter",e[S][1],t],["exit",e[S][1],t]])):k=0,splice(e,n-1,S-n+3,E),S=n+E.length-k-2;break}S=-1;for(;++S<e.length;)"attentionSequence"===e[S][1].type&&(e[S][1].type="data");return e}};function movePoint(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const xe={name:"autolink",tokenize:function tokenizeAutolink(e,t,n){let i=1;return function start(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),open};function open(t){return A(t)?(e.consume(t),schemeOrEmailAtext):L(t)?emailAtext(t):n(t)}function schemeOrEmailAtext(e){return 43===e||45===e||46===e||j(e)?schemeInsideOrEmailAtext(e):emailAtext(e)}function schemeInsideOrEmailAtext(t){return 58===t?(e.consume(t),urlInside):(43===t||45===t||46===t||j(t))&&i++<32?(e.consume(t),schemeInsideOrEmailAtext):emailAtext(t)}function urlInside(t){return 62===t?(e.exit("autolinkProtocol"),end(t)):null===t||32===t||60===t||asciiControl(t)?n(t):(e.consume(t),urlInside)}function emailAtext(t){return 64===t?(e.consume(t),i=0,emailAtSignOrDot):L(t)?(e.consume(t),emailAtext):n(t)}function emailAtSignOrDot(e){return j(e)?emailLabel(e):n(e)}function emailLabel(t){return 46===t?(e.consume(t),i=0,emailAtSignOrDot):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",end(t)):emailValue(t)}function emailValue(t){return(45===t||j(t))&&i++<63?(e.consume(t),45===t?emailValue:emailLabel):n(t)}function end(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const we={name:"htmlText",tokenize:function tokenizeHtmlText(e,t,n){const i=this;let b,C,x,w;return function start(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),open};function open(t){return 33===t?(e.consume(t),declarationOpen):47===t?(e.consume(t),tagCloseStart):63===t?(e.consume(t),instruction):A(t)?(e.consume(t),tagOpen):n(t)}function declarationOpen(t){return 45===t?(e.consume(t),commentOpen):91===t?(e.consume(t),C="CDATA[",x=0,cdataOpen):A(t)?(e.consume(t),declaration):n(t)}function commentOpen(t){return 45===t?(e.consume(t),commentStart):n(t)}function commentStart(t){return null===t||62===t?n(t):45===t?(e.consume(t),commentStartDash):comment(t)}function commentStartDash(e){return null===e||62===e?n(e):comment(e)}function comment(t){return null===t?n(t):45===t?(e.consume(t),commentClose):markdownLineEnding(t)?(w=comment,atLineEnding(t)):(e.consume(t),comment)}function commentClose(t){return 45===t?(e.consume(t),end):comment(t)}function cdataOpen(t){return t===C.charCodeAt(x++)?(e.consume(t),x===C.length?cdata:cdataOpen):n(t)}function cdata(t){return null===t?n(t):93===t?(e.consume(t),cdataClose):markdownLineEnding(t)?(w=cdata,atLineEnding(t)):(e.consume(t),cdata)}function cdataClose(t){return 93===t?(e.consume(t),cdataEnd):cdata(t)}function cdataEnd(t){return 62===t?end(t):93===t?(e.consume(t),cdataEnd):cdata(t)}function declaration(t){return null===t||62===t?end(t):markdownLineEnding(t)?(w=declaration,atLineEnding(t)):(e.consume(t),declaration)}function instruction(t){return null===t?n(t):63===t?(e.consume(t),instructionClose):markdownLineEnding(t)?(w=instruction,atLineEnding(t)):(e.consume(t),instruction)}function instructionClose(e){return 62===e?end(e):instruction(e)}function tagCloseStart(t){return A(t)?(e.consume(t),tagClose):n(t)}function tagClose(t){return 45===t||j(t)?(e.consume(t),tagClose):tagCloseBetween(t)}function tagCloseBetween(t){return markdownLineEnding(t)?(w=tagCloseBetween,atLineEnding(t)):markdownSpace(t)?(e.consume(t),tagCloseBetween):end(t)}function tagOpen(t){return 45===t||j(t)?(e.consume(t),tagOpen):47===t||62===t||markdownLineEndingOrSpace(t)?tagOpenBetween(t):n(t)}function tagOpenBetween(t){return 47===t?(e.consume(t),end):58===t||95===t||A(t)?(e.consume(t),tagOpenAttributeName):markdownLineEnding(t)?(w=tagOpenBetween,atLineEnding(t)):markdownSpace(t)?(e.consume(t),tagOpenBetween):end(t)}function tagOpenAttributeName(t){return 45===t||46===t||58===t||95===t||j(t)?(e.consume(t),tagOpenAttributeName):tagOpenAttributeNameAfter(t)}function tagOpenAttributeNameAfter(t){return 61===t?(e.consume(t),tagOpenAttributeValueBefore):markdownLineEnding(t)?(w=tagOpenAttributeNameAfter,atLineEnding(t)):markdownSpace(t)?(e.consume(t),tagOpenAttributeNameAfter):tagOpenBetween(t)}function tagOpenAttributeValueBefore(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),b=t,tagOpenAttributeValueQuoted):markdownLineEnding(t)?(w=tagOpenAttributeValueBefore,atLineEnding(t)):markdownSpace(t)?(e.consume(t),tagOpenAttributeValueBefore):(e.consume(t),b=void 0,tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(t){return t===b?(e.consume(t),tagOpenAttributeValueQuotedAfter):null===t?n(t):markdownLineEnding(t)?(w=tagOpenAttributeValueQuoted,atLineEnding(t)):(e.consume(t),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueQuotedAfter(e){return 62===e||47===e||markdownLineEndingOrSpace(e)?tagOpenBetween(e):n(e)}function tagOpenAttributeValueUnquoted(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||markdownLineEndingOrSpace(t)?tagOpenBetween(t):(e.consume(t),tagOpenAttributeValueUnquoted)}function atLineEnding(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),factorySpace(e,afterPrefix,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function afterPrefix(t){return e.enter("htmlTextData"),w(t)}function end(i){return 62===i?(e.consume(i),e.exit("htmlTextData"),e.exit("htmlText"),t):n(i)}}};const Ee={name:"labelStartLink",tokenize:function tokenizeLabelStartLink(e,t,n){const i=this;return function start(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),after};function after(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}},resolveAll:ge.resolveAll};const ke={name:"hardBreakEscape",tokenize:function tokenizeHardBreakEscape(e,t,n){return function start(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),open};function open(i){return markdownLineEnding(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}};const Se={name:"codeText",tokenize:function tokenizeCodeText(e,t,n){let i,b,C=0;return function start(t){return e.enter("codeText"),e.enter("codeTextSequence"),openingSequence(t)};function openingSequence(t){return 96===t?(e.consume(t),C++,openingSequence):(e.exit("codeTextSequence"),gap(t))}function gap(t){return null===t?n(t):96===t?(b=e.enter("codeTextSequence"),i=0,closingSequence(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),gap):markdownLineEnding(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),gap):(e.enter("codeTextData"),data(t))}function data(t){return null===t||32===t||96===t||markdownLineEnding(t)?(e.exit("codeTextData"),gap(t)):(e.consume(t),data)}function closingSequence(n){return 96===n?(e.consume(n),i++,closingSequence):i===C?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(b.type="codeTextData",data(n))}},resolve:function resolveCodeText(e){let t,n,i=e.length-4,b=3;if(!("lineEnding"!==e[b][1].type&&"space"!==e[b][1].type||"lineEnding"!==e[i][1].type&&"space"!==e[i][1].type))for(t=b;++t<i;)if("codeTextData"===e[t][1].type){e[b][1].type="codeTextPadding",e[i][1].type="codeTextPadding",b+=2,i-=2;break}t=b-1,i++;for(;++t<=i;)void 0===n?t!==i&&"lineEnding"!==e[t][1].type&&(n=t):t!==i&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),i-=t-n-2,t=n+2),n=void 0);return e},previous:function previous(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const _e={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:J},Pe={91:ee},Oe={[-2]:ne,[-1]:ne,32:ne},Ie={35:oe,42:X,45:[ae,X],60:ue,61:ae,95:X,96:se,126:se},Te={38:fe,92:pe},Ae={[-5]:me,[-4]:me,[-3]:me,33:be,38:fe,42:Ce,60:[xe,we],91:Ee,92:[ke,pe],93:ge,95:Ce,96:Se},Me={null:[Ce,H]},Re={null:[42,95]},je={null:[]};function parse(e={}){const t=function combineExtensions(e){const t={};let n=-1;for(;++n<e.length;)syntaxExtension(t,e[n]);return t}([i].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:create(B),document:create(z),flow:create(V),string:create(Z),text:create(Y)};return n;function create(e){return function creator(t){return createTokenizer(n,e,t)}}}const De=/[\0\t\n\r]/g;function decodeNumericCharacterReference(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>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(;++C<e.length;)if("listOrdered"===e[C][1].type||"listUnordered"===e[C][1].type)if("enter"===e[C][0])b.push(C);else{C=prepareList(e,b.pop(),C)}for(C=-1;++C<e.length;){const n=t[e[C][0]];Ne.call(n,e[C][1].type)&&n[e[C][1].type].call(Object.assign({sliceSerialize:e[C][2].sliceSerialize},i),e[C][1])}if(i.tokenStack.length>0){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<t.transforms.length;)n=t.transforms[C](n)||n;return n}function prepareList(e,t,n){let i,b,C,x,w=t-1,E=-1,k=!1;for(;++w<=n;){const t=e[w];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?E++:E--,x=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!i||x||E||C||(C=w),x=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(x=void 0),!E&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===E&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(i){let x=w;for(b=void 0;x--;){const t=e[x];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;b&&(e[b][1].type="lineEndingBlank",k=!0),t[1].type="lineEnding",b=x}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}C&&(!b||C<b)&&(i._spread=!0),i.end=Object.assign({},b?e[b][1].start:t[1].end),e.splice(b||w,0,["exit",i,t[2]]),w++,n++}"listItemPrefix"===t[1].type&&(i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(w,0,["enter",i,t[2]]),w++,n++,C=void 0,x=!0)}}return e[t][1]._spread=k,n}function setData(e,t){n[e]=t}function getData(e){return n[e]}function opener(e,t){return open;function open(n){enter.call(this,e(n),n),t&&t.call(this,n)}}function buffer(){this.stack.push({type:"fragment",children:[]})}function enter(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:lib_point(t.start)},e}function closer(e){return close;function close(t){e&&e.call(this,t),exit.call(this,t)}}function exit(e,t){const n=this.stack.pop(),i=this.tokenStack.pop();if(!i)throw new Error("Cannot close `"+e.type+"` ("+stringifyPosition({start:e.start,end:e.end})+"): it’s not open");if(i[0].type!==e.type)if(t)t.call(this,e,i[0]);else{(i[1]||defaultOnError).call(this,e,i[0])}return n.position.end=lib_point(e.end),n}function resume(){return function lib_toString(e,t){const n=t||I;return one(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function onenterlistordered(){setData("expectingFirstListItemValue",!0)}function onenterlistitemvalue(e){if(getData("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),setData("expectingFirstListItemValue")}}function onexitcodefencedfenceinfo(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function onexitcodefencedfencemeta(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function onexitcodefencedfence(){getData("flowCodeInside")||(this.buffer(),setData("flowCodeInside",!0))}function onexitcodefenced(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),setData("flowCodeInside")}function onexitcodeindented(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function onexitdefinitionlabelstring(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=normalizeIdentifier(this.sliceSerialize(e)).toLowerCase()}function onexitdefinitiontitlestring(){const e=this.resume();this.stack[this.stack.length-1].title=e}function onexitdefinitiondestinationstring(){const e=this.resume();this.stack[this.stack.length-1].url=e}function onexitatxheadingsequence(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function onexitsetextheadingtext(){setData("setextHeadingSlurpLineEnding",!0)}function onexitsetextheadinglinesequence(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function onexitsetextheading(){setData("setextHeadingSlurpLineEnding")}function onenterdata(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n=text(),n.position={start:lib_point(e.start)},t.children.push(n)),this.stack.push(n)}function onexitdata(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lib_point(e.end)}function onexitlineending(e){const n=this.stack[this.stack.length-1];if(getData("atHardBreak")){return n.children[n.children.length-1].position.end=lib_point(e.end),void setData("atHardBreak")}!getData("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(onenterdata.call(this,e),onexitdata.call(this,e))}function onexithardbreak(){setData("atHardBreak",!0)}function onexithtmlflow(){const e=this.resume();this.stack[this.stack.length-1].value=e}function onexithtmltext(){const e=this.resume();this.stack[this.stack.length-1].value=e}function onexitcodetext(){const e=this.resume();this.stack[this.stack.length-1].value=e}function onexitlink(){const e=this.stack[this.stack.length-1];if(getData("inReference")){const t=getData("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;setData("referenceType")}function onexitimage(){const e=this.stack[this.stack.length-1];if(getData("inReference")){const t=getData("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;setData("referenceType")}function onexitlabeltext(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function decodeString(e){return e.replace(Le,decode)}(t),n.identifier=normalizeIdentifier(t).toLowerCase()}function onexitlabel(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(setData("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function onexitresourcedestinationstring(){const e=this.resume();this.stack[this.stack.length-1].url=e}function onexitresourcetitlestring(){const e=this.resume();this.stack[this.stack.length-1].title=e}function onexitresource(){setData("inReference")}function onenterreference(){setData("referenceType","collapsed")}function onexitreferencestring(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=normalizeIdentifier(this.sliceSerialize(e)).toLowerCase(),setData("referenceType","full")}function onexitcharacterreferencemarker(e){setData("characterReferenceType",e.type)}function onexitcharacterreferencevalue(e){const t=this.sliceSerialize(e),n=getData("characterReferenceType");let i;if(n)i=decodeNumericCharacterReference(t,"characterReferenceMarkerNumeric"===n?10:16),setData("characterReferenceType");else{i=decodeNamedCharacterReference(t)}const b=this.stack.pop();b.value+=i,b.position.end=lib_point(e.end)}function onexitautolinkprotocol(e){onexitdata.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function onexitautolinkemail(e){onexitdata.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function blockQuote(){return{type:"blockquote",children:[]}}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function codeText(){return{type:"inlineCode",value:""}}function definition(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function emphasis(){return{type:"emphasis",children:[]}}function heading(){return{type:"heading",depth:void 0,children:[]}}function hardBreak(){return{type:"break"}}function html(){return{type:"html",value:""}}function image(){return{type:"image",title:null,url:"",alt:null}}function link(){return{type:"link",title:null,url:"",children:[]}}function list(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function listItem(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function paragraph(){return{type:"paragraph",children:[]}}function strong(){return{type:"strong",children:[]}}function text(){return{type:"text",value:""}}function thematicBreak(){return{type:"thematicBreak"}}}(n)(function postprocess(e){for(;!subtokenize(e););return e}(parse(n).document().write(function preprocess(){let e,t=1,n="",i=!0;return function preprocessor(b,C,x){const w=[];let E,k,S,_,P;for(b=n+b.toString(C),S=0,n="",i&&(65279===b.charCodeAt(0)&&S++,i=void 0);S<b.length;){if(De.lastIndex=S,E=De.exec(b),_=E&&void 0!==E.index?E.index:b.length,P=b.charCodeAt(_),!E){n=b.slice(S);break}if(10===P&&S===_&&e)w.push(-3),e=void 0;else switch(e&&(w.push(-5),e=void 0),S<_&&(w.push(b.slice(S,_)),t+=_-S),P){case 0:w.push(65533),t++;break;case 9:for(k=4*Math.ceil(t/4),w.push(-2);t++<k;)w.push(-1);break;case 10:w.push(-4),t=1;break;default:e=!0,t=1}S=_+1}return x&&(e&&w.push(-5),n&&w.push(n),w.push(null)),w}}()(e,t,!0))))};function lib_point(e){return{line:e.line,column:e.column,offset:e.offset}}function configure(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?configure(e,i):extension(e,i)}}function extension(e,t){let n;for(n in t)if(Ne.call(t,n))if("canContainEols"===n){const i=t[n];i&&e[n].push(...i)}else if("transforms"===n){const i=t[n];i&&e[n].push(...i)}else if("enter"===n||"exit"===n){const i=t[n];i&&Object.assign(e[n],i)}}function defaultOnError(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+stringifyPosition({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+stringifyPosition({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+stringifyPosition({start:t.start,end:t.end})+") is still open")}const Fe=function remarkParse(e){Object.assign(this,{Parser:t=>{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(;++n<e.length;){const C=e.charCodeAt(n);let x="";if(37===C&&j(e.charCodeAt(n+1))&&j(e.charCodeAt(n+2)))b=2;else if(C<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(C))||(x=String.fromCharCode(C));else if(C>55295&&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<e.length;)t[n]=convert(e[n]);return castFactory(any);function any(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}(e):function propsFactory(e){return castFactory(all);function all(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"==typeof e)return castFactory(e);throw new Error("Expected function, string, or object as test")};function castFactory(e){return function assertion(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function ok(){return!0}const visitParents=function(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null);const b=convert(t),C=i?-1:1;!function factory(e,x,w){const E=e&&"object"==typeof e?e:{};if("string"==typeof E.type){const t="string"==typeof E.tagName?E.tagName:"string"==typeof E.name?E.name:void 0;Object.defineProperty(visit,"name",{value:"node ("+e.type+(t?"<"+t+">":"")+")"})}return visit;function visit(){let E,k,S,_=[];if((!t||b(e,x,w[w.length-1]||null))&&(_=function toResult(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(n(e,w)),false===_[0]))return _;if(e.children&&"skip"!==_[0])for(k=(i?e.children.length:-1)+C,S=w.concat(e);k>-1&&k<e.children.length;){if(E=factory(e.children[k],k,S)(),false===E[0])return E;k="number"==typeof E[1]?E[1]:k+C}return _}}(e,void 0,[])()};const visit=function(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),visitParents(e,t,(function overload(e,t){const i=t[t.length-1];return n(e,i?i.children.indexOf(e):null,i)}),i)},Be=unist_util_position_lib_point("start"),ze=unist_util_position_lib_point("end");function unist_util_position_lib_point(e){return function point(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-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 Ue={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&&++i<n.length;)t=listItemLoose(n[i])}return t}(n):listItemLoose(t),C={},x=[];if("boolean"==typeof t.checked){const e=i[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},i.unshift(n)),n.children.length>0&&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(;++w<i.length;){const e=i[w];(b||0!==w||"element"!==e.type||"p"!==e.tagName)&&x.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||b?x.push(e):x.push(...e.children)}const E=i[i.length-1];E&&(b||"element"!==E.type||"p"!==E.tagName)&&x.push({type:"text",value:"\n"});const k={type:"element",tagName:"li",properties:C,children:x};return e.patch(t,k),e.applyData(t,k)},list:function list_list(e,t){const n={},i=e.all(t);let b=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++b<i.length;){const e=i[b];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const C={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,C),e.applyData(t,C)},paragraph:function paragraph(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function root(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function strong(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function table(e,t){const n=e.all(t),i=n.shift(),b=[];if(i){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],n),b.push(n)}if(n.length>0){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<x;){const n=t.children[w],i={},x=C?C[w]:void 0;x&&(i.align=x);let k={type:"element",tagName:b,properties:i,children:[]};n&&(k.children=e.all(n),e.patch(n,k),k=e.applyData(t,k)),E.push(k)}const k={type:"element",tagName:"tr",properties:{},children:e.wrap(E,!0)};return e.patch(t,k),e.applyData(t,k)},text:function handlers_text_text(e,t){const n={type:"text",value:trimLines(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function thematic_break_thematicBreak(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){return null}const Ve={}.hasOwnProperty;function createState(e,t){const n=t||{},i=n.allowDangerousHtml||!1,b={};return state.dangerous=i,state.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,state.footnoteLabel=n.footnoteLabel||"Footnotes",state.footnoteLabelTagName=n.footnoteLabelTagName||"h2",state.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},state.footnoteBackLabel=n.footnoteBackLabel||"Back to content",state.unknownHandler=n.unknownHandler,state.passThrough=n.passThrough,state.handlers={...Ue,...n.handlers},state.definition=function definitions(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return visit(e,"definition",(e=>{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();Ve.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 Ve.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)||Ve.call(n,"hProperties")||Ve.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(;++b<i.length;){const C=state_one(e,i[b],t);if(C){if(b&&"break"===i[b-1].type&&(Array.isArray(C)||"text"!==C.type||(C.value=C.value.replace(/^\s+/,"")),!Array.isArray(C)&&"element"===C.type)){const e=C.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(C)?n.push(...C):n.push(C)}}}return n}function state_wrap(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:"\n"});++i<e.length;)i&&n.push({type:"text",value:"\n"}),n.push(e[i]);return t&&e.length>0&&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(;++n<e.footnoteOrder.length;){const i=e.footnoteById[e.footnoteOrder[n]];if(!i)continue;const b=e.all(i),C=String(i.identifier).toUpperCase(),x=normalizeUri(C.toLowerCase());let w=0;const E=[];for(;++w<=e.footnoteCounts[C];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+x+(w>1?"-"+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 S={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+x},children:e.wrap(b,!0)};e.patch(i,S),t.push(S)}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<e.length;)Object.assign(n,e[b].property),Object.assign(i,e[b].normal);return new Schema(n,i,t)}function normalize_normalize(e){return e.toLowerCase()}Schema.prototype.property={},Schema.prototype.normal={},Schema.prototype.space=null;class Info{constructor(e,t){this.property=e,this.attribute=t}}Info.prototype.space=null,Info.prototype.boolean=!1,Info.prototype.booleanish=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.number=!1,Info.prototype.commaSeparated=!1,Info.prototype.spaceSeparated=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.mustUseProperty=!1,Info.prototype.defined=!1;let Ze=0;const Ye=increment(),Xe=increment(),Ke=increment(),$e=increment(),Qe=increment(),Je=increment(),et=increment();function increment(){return 2**++Ze}const tt=Object.keys(b);class DefinedInfo extends Info{constructor(e,t,n,i){let C=-1;if(super(e,t),mark(this,"space",i),"number"==typeof n)for(;++C<tt.length;){const e=tt[C];mark(this,tt[C],(n&b[e])===b[e])}}}function mark(e,t,n){n&&(e[t]=n)}DefinedInfo.prototype.defined=!0;const nt={}.hasOwnProperty;function create(e){const t={},n={};let i;for(i in e.properties)if(nt.call(e.properties,i)){const b=e.properties[i],C=new DefinedInfo(i,e.transform(e.attributes||{},i),b,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(C.mustUseProperty=!0),t[i]=C,n[normalize_normalize(i)]=i,n[normalize_normalize(C.attribute)]=i}return new Schema(t,n,e.space)}const rt=create({space:"xlink",transform:(e,t)=>"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:$e,ariaColIndex:$e,ariaColSpan:$e,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:$e,ariaLive:null,ariaModal:Xe,ariaMultiLine:Xe,ariaMultiSelectable:Xe,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:$e,ariaPressed:Xe,ariaReadOnly:Xe,ariaRelevant:null,ariaRequired:Xe,ariaRoleDescription:Qe,ariaRowCount:$e,ariaRowIndex:$e,ariaRowSpan:$e,ariaSelected:Xe,ariaSetSize:$e,ariaSort:null,ariaValueMax:$e,ariaValueMin:$e,ariaValueNow:$e,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:$e,colSpan:null,content:null,contentEditable:Xe,controls:Ye,controlsList:Qe,coords:$e|Je,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ye,defer:Ye,dir:null,dirName:null,disabled:Ye,download:Ke,draggable:Xe,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ye,formTarget:null,headers:Qe,height:$e,hidden:Ye,high:$e,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:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,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:$e,pattern:null,ping:Qe,placeholder:null,playsInline:Ye,poster:null,preload:null,readOnly:Ye,referrerPolicy:null,rel:Qe,required:Ye,reversed:Ye,rows:$e,rowSpan:$e,sandbox:Qe,scope:null,scoped:Ye,seamless:Ye,selected:Ye,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:Xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:Ye,useMap:null,value:Xe,width:$e,wrap:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,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:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:Ye,noHref:Ye,noShade:Ye,noWrap:Ye,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:Xe,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ye,disableRemotePlayback:Ye,prefix:null,property:null,results:$e,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:$e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$e,amplitude:$e,arabicForm:null,ascent:$e,attributeName:null,attributeType:null,azimuth:$e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$e,by:null,calcMode:null,capHeight:$e,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:$e,diffuseConstant:$e,direction:null,display:null,dur:null,divisor:$e,dominantBaseline:null,download:Ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:$e,enableBackground:null,end:null,event:null,exponent:$e,externalResourcesRequired:null,fill:null,fillOpacity:$e,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:$e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$e,horizOriginX:$e,horizOriginY:$e,id:null,ideographic:$e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$e,k:$e,k1:$e,k2:$e,k3:$e,k4:$e,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$e,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:$e,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:$e,overlineThickness:$e,paintOrder:null,panose1:null,path:null,pathLength:$e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$e,pointsAtY:$e,pointsAtZ:$e,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:$e,specularExponent:$e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$e,strikethroughThickness:$e,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$e,strokeOpacity:$e,strokeWidth:null,style:null,surfaceScale:$e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:$e,tableValues:null,target:null,targetX:$e,targetY:$e,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:$e,underlineThickness:$e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$e,values:null,vAlphabetic:$e,vMathematical:$e,vectorEffect:null,vHanging:$e,vIdeographic:$e,version:null,vertAdvY:$e,vertOriginX:$e,vertOriginY:$e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$e,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(;++b<t.children.length;)i=t.children[b],"element"===i.type?n.push(toReact(e,i,b,t)):"text"===i.type?"element"===t.type&&vt.has(t.tagName)&&whitespace(i)||n.push(i.value):"raw"!==i.type||e.options.skipHtml||n.push(i.value);return n}function toReact(e,t,n,i){const b=e.options,C=void 0===b.transformLinkUri?uriTransformer:b.transformLinkUri,w=e.schema,E=t.tagName,k={};let S,_=w;if("html"===w.space&&"svg"===E&&(_=st,e.schema=_),t.properties)for(S in t.properties)yt.call(t.properties,S)&&addProperty(k,S,t.properties[S],e);"ol"!==E&&"ul"!==E||e.listDepth++;const P=childrenToReact(e,t);"ol"!==E&&"ul"!==E||e.listDepth--,e.schema=w;const O=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},I=b.components&&yt.call(b.components,E)?b.components[E]:E,T="string"==typeof I||I===x.Fragment;if(!dt.isValidElementType(I))throw new TypeError(`Component for name \`${E}\` not defined or is not renderable`);if(k.key=n,"a"===E&&b.linkTarget&&(k.target="function"==typeof b.linkTarget?b.linkTarget(String(k.href||""),t.children,"string"==typeof k.title?k.title:null):b.linkTarget),"a"===E&&C&&(k.href=C(String(k.href||""),t.children,"string"==typeof k.title?k.title:null)),T||"code"!==E||"element"!==i.type||"pre"===i.tagName||(k.inline=!0),T||"h1"!==E&&"h2"!==E&&"h3"!==E&&"h4"!==E&&"h5"!==E&&"h6"!==E||(k.level=Number.parseInt(E.charAt(1),10)),"img"===E&&b.transformImageUri&&(k.src=b.transformImageUri(String(k.src||""),String(k.alt||""),"string"==typeof k.title?k.title:null)),!T&&"li"===E&&"element"===i.type){const e=function getInputElement(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);k.checked=e&&e.properties?Boolean(e.properties.checked):null,k.index=getElementsBeforeCount(i,t),k.ordered="ol"===i.tagName}return T||"ol"!==E&&"ul"!==E||(k.ordered="ol"===E,k.depth=e.listDepth),"td"!==E&&"th"!==E||(k.align&&(k.style||(k.style={}),k.style.textAlign=k.align,delete k.align),T||(k.isHeader="th"===E)),T||"tr"!==E||"element"!==i.type||(k.isHeader=Boolean("thead"===i.tagName)),b.sourcePos&&(k["data-sourcepos"]=function flattenPosition(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}(O)),!T&&b.rawSourcePos&&(k.sourcePosition=t.position),!T&&b.includeElementIndex&&(k.index=getElementsBeforeCount(i,t),k.siblingCount=getElementsBeforeCount(i)),T||(k.node=t),P.length>0?x.createElement(I,k,P):x.createElement(I,k)}function getElementsBeforeCount(e,t){let n=-1,i=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&i++;return i}function addProperty(e,t,n,i){const b=function find(e,t){const n=normalize_normalize(t);let i=t,b=Info;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"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";var e=__webpack_require__(73203)(__webpack_require__(74270));window.__UNSTABLE__elementorAI={App:e.default}})()})();

Zerion Mini Shell 1.0