芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/elementor/assets/js/ai.min.js
/*! elementor - v3.25.0 - 20-11-2024 */ /*! For license information please see ai.min.js.LICENSE.txt */ (()=>{var i={2234:(i,C,w)=>{"use strict";w.r(C),w.d(C,{Children:()=>x.Children,Component:()=>x.Component,Fragment:()=>x.Fragment,Platform:()=>N,PureComponent:()=>x.PureComponent,RawHTML:()=>RawHTML,StrictMode:()=>x.StrictMode,Suspense:()=>x.Suspense,cloneElement:()=>x.cloneElement,concatChildren:()=>concatChildren,createContext:()=>x.createContext,createElement:()=>x.createElement,createInterpolateElement:()=>create_interpolate_element,createPortal:()=>j.createPortal,createRef:()=>x.createRef,createRoot:()=>W.createRoot,findDOMNode:()=>j.findDOMNode,flushSync:()=>j.flushSync,forwardRef:()=>x.forwardRef,hydrate:()=>j.hydrate,hydrateRoot:()=>W.hydrateRoot,isEmptyElement:()=>isEmptyElement,isValidElement:()=>x.isValidElement,lazy:()=>x.lazy,memo:()=>x.memo,render:()=>j.render,renderToString:()=>ve,startTransition:()=>x.startTransition,switchChildrenNodeName:()=>switchChildrenNodeName,unmountComponentAtNode:()=>j.unmountComponentAtNode,useCallback:()=>x.useCallback,useContext:()=>x.useContext,useDebugValue:()=>x.useDebugValue,useDeferredValue:()=>x.useDeferredValue,useEffect:()=>x.useEffect,useId:()=>x.useId,useImperativeHandle:()=>x.useImperativeHandle,useInsertionEffect:()=>x.useInsertionEffect,useLayoutEffect:()=>x.useLayoutEffect,useMemo:()=>x.useMemo,useReducer:()=>x.useReducer,useRef:()=>x.useRef,useState:()=>x.useState,useSyncExternalStore:()=>x.useSyncExternalStore,useTransition:()=>x.useTransition});var x=w(87363);let O,S,k,I;const R=/<(\/)?(\w+)\s*(\/)?>/g;function createFrame(i,C,w,x,O){return{element:i,tokenStart:C,tokenLength:w,prevOffset:x,leadingTextStart:O,children:[]}}const isValidConversionMap=i=>{const C="object"==typeof i,w=C&&Object.values(i);return C&&w.length&&w.every((i=>(0,x.isValidElement)(i)))};function proceed(i){const C=function nextToken(){const i=R.exec(O);if(null===i)return["no-more-tokens"];const C=i.index,[w,x,S,k]=i,I=w.length;if(k)return["self-closed",S,C,I];if(x)return["closer",S,C,I];return["opener",S,C,I]}(),[w,j,W,N]=C,G=I.length,$=W>S?S:null;if(!i[j])return addText(),!1;switch(w){case"no-more-tokens":if(0!==G){const{leadingTextStart:i,tokenStart:C}=I.pop();k.push(O.substr(i,C))}return addText(),!1;case"self-closed":return 0===G?(null!==$&&k.push(O.substr($,W-$)),k.push(i[j]),S=W+N,!0):(addChild(createFrame(i[j],W,N)),S=W+N,!0);case"opener":return I.push(createFrame(i[j],W,N,W+N,$)),S=W+N,!0;case"closer":if(1===G)return function closeOuterElement(i){const{element:C,leadingTextStart:w,prevOffset:S,tokenStart:R,children:j}=I.pop(),W=i?O.substr(S,i-S):O.substr(S);W&&j.push(W);null!==w&&k.push(O.substr(w,R-w));k.push((0,x.cloneElement)(C,null,...j))}(W),S=W+N,!0;const C=I.pop(),w=O.substr(C.prevOffset,W-C.prevOffset);C.children.push(w),C.prevOffset=W+N;const R=createFrame(C.element,C.tokenStart,C.tokenLength,W+N);return R.children=C.children,addChild(R),S=W+N,!0;default:return addText(),!1}}function addText(){const i=O.length-S;0!==i&&k.push(O.substr(S,i))}function addChild(i){const{element:C,tokenStart:w,tokenLength:S,prevOffset:k,children:R}=i,j=I[I.length-1],W=O.substr(j.prevOffset,w-j.prevOffset);W&&j.children.push(W),j.children.push((0,x.cloneElement)(C,null,...R)),j.prevOffset=k||w+S}const create_interpolate_element=(i,C)=>{if(O=i,S=0,k=[],I=[],R.lastIndex=0,!isValidConversionMap(C))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(proceed(C));return(0,x.createElement)(x.Fragment,null,...k)};function concatChildren(...i){return i.reduce(((i,C,w)=>(x.Children.forEach(C,((C,O)=>{C&&"string"!=typeof C&&(C=(0,x.cloneElement)(C,{key:[w,O].join()})),i.push(C)})),i)),[])}function switchChildrenNodeName(i,C){return i&&x.Children.map(i,((i,w)=>{if("string"==typeof i?.valueOf())return(0,x.createElement)(C,{key:w},i);const{children:O,...S}=i.props;return(0,x.createElement)(C,{key:w,...S},O)}))}var j=w(61533),W=w(37634);const isEmptyElement=i=>"number"!=typeof i&&("string"==typeof i?.valueOf()||Array.isArray(i)?!i.length:!i),N={OS:"web",select:i=>"web"in i?i.web:i.default,isWeb:!0};function isObject(i){return"[object Object]"===Object.prototype.toString.call(i)}var __assign=function(){return __assign=Object.assign||function __assign(i){for(var C,w=1,x=arguments.length;w
/="\uFDD0-\uFDEF]/;function escapeAmpersand(i){return i.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function escapeLessThan(i){return i.replace(//g,">")}(function escapeQuotationMark(i){return i.replace(/"/g,""")}(escapeAmpersand(i)))}function isValidAttributeName(i){return!J.test(i)}function RawHTML({children:i,...C}){let w="";return x.Children.toArray(i).forEach((i=>{"string"==typeof i&&""!==i.trim()&&(w+=i)})),(0,x.createElement)("div",{dangerouslySetInnerHTML:{__html:w},...C})}const{Provider:re,Consumer:oe}=(0,x.createContext)(void 0),ie=(0,x.forwardRef)((()=>null)),le=new Set(["string","boolean","number"]),ue=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),ce=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),se=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),de=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function hasPrefix(i,C){return C.some((C=>0===i.indexOf(C)))}function isInternalAttribute(i){return"key"===i||"children"===i}function getNormalAttributeValue(i,C){return"style"===i?function renderStyle(i){if(!function isPlainObject(i){var C,w;return!1!==isObject(i)&&(void 0===(C=i.constructor)||!1!==isObject(w=C.prototype)&&!1!==w.hasOwnProperty("isPrototypeOf"))}(i))return i;let C;for(const w in i){const x=i[w];if(null==x)continue;C?C+=";":C="";C+=getNormalStylePropertyName(w)+":"+getNormalStylePropertyValue(w,x)}return C}(C):C}const he=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce(((i,C)=>(i[C.toLowerCase()]=C,i)),{}),ge=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce(((i,C)=>(i[C.toLowerCase()]=C,i)),{}),ye=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce(((i,C)=>(i[C.replace(":","").toLowerCase()]=C,i)),{});function getNormalAttributeName(i){switch(i){case"htmlFor":return"for";case"className":return"class"}const C=i.toLowerCase();return ge[C]?ge[C]:he[C]?paramCase(he[C]):ye[C]?ye[C]:C}function getNormalStylePropertyName(i){return i.startsWith("--")?i:hasPrefix(i,["ms","O","Moz","Webkit"])?"-"+paramCase(i):paramCase(i)}function getNormalStylePropertyValue(i,C){return"number"!=typeof C||0===C||de.has(i)?C:C+"px"}function renderElement(i,C,w={}){if(null==i||!1===i)return"";if(Array.isArray(i))return renderChildren(i,C,w);switch(typeof i){case"string":return function escapeHTML(i){return escapeLessThan(escapeAmpersand(i))}(i);case"number":return i.toString()}const{type:O,props:S}=i;switch(O){case x.StrictMode:case x.Fragment:return renderChildren(S.children,C,w);case RawHTML:const{children:i,...O}=S;return renderNativeComponent(Object.keys(O).length?"div":null,{...O,dangerouslySetInnerHTML:{__html:i}},C,w)}switch(typeof O){case"string":return renderNativeComponent(O,S,C,w);case"function":return O.prototype&&"function"==typeof O.prototype.render?function renderComponent(i,C,w,x={}){const O=new i(C,x);"function"==typeof O.getChildContext&&Object.assign(x,O.getChildContext());const S=renderElement(O.render(),w,x);return S}(O,S,C,w):renderElement(O(S,w),C,w)}switch(O&&O.$$typeof){case re.$$typeof:return renderChildren(S.children,S.value,w);case oe.$$typeof:return renderElement(S.children(C||O._currentValue),C,w);case ie.$$typeof:return renderElement(O.render(S),C,w)}return""}function renderNativeComponent(i,C,w,x={}){let O="";if("textarea"===i&&C.hasOwnProperty("value")){O=renderChildren(C.value,w,x);const{value:i,...S}=C;C=S}else C.dangerouslySetInnerHTML&&"string"==typeof C.dangerouslySetInnerHTML.__html?O=C.dangerouslySetInnerHTML.__html:void 0!==C.children&&(O=renderChildren(C.children,w,x));if(!i)return O;const S=function renderAttributes(i){let C="";for(const w in i){const x=getNormalAttributeName(w);if(!isValidAttributeName(x))continue;let O=getNormalAttributeValue(w,i[w]);if(!le.has(typeof O))continue;if(isInternalAttribute(w))continue;const S=ce.has(x);if(S&&!1===O)continue;const k=S||hasPrefix(w,["data-","aria-"])||se.has(x);("boolean"!=typeof O||k)&&(C+=" "+x,S||("string"==typeof O&&(O=escapeAttribute(O)),C+='="'+O+'"'))}return C}(C);return ue.has(i)?"<"+i+S+"/>":"<"+i+S+">"+O+""+i+">"}function renderChildren(i,C,w={}){let x="";i=Array.isArray(i)?i:[i];for(let O=0;O
{"use strict";var x=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;_interopRequireWildcard(w(87363));var O=_interopRequireWildcard(w(61533)),S=w(37634);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==x(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var O={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(O,k,I):O[k]=i[k]}return O.default=i,w&&w.set(i,O),O}var k={render:function render(i,C){var w;try{var x=(0,S.createRoot)(C);x.render(i),w=function unmountFunction(){x.unmount()}}catch(x){O.render(i,C),w=function unmountFunction(){O.unmountComponentAtNode(C)}}return{unmount:w}}};C.default=k},17927:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.vocalTones=C.translateLanguages=C.textareaAutocomplete=C.textAutocomplete=C.codeHtmlAutocomplete=C.codeCssAutocomplete=void 0;var x=w(38003),O=[(0,x.__)("Craft a catchy slogan for","elementor"),(0,x.__)("Write a strong section header for","elementor"),(0,x.__)("Create a blog title for","elementor"),(0,x.__)("Suggest a 4 word headline for","elementor"),(0,x.__)("Write an attention grabbing title for","elementor")];C.textAutocomplete=O;var S=[(0,x.__)("Write a product description for","elementor"),(0,x.__)("Create a blog post for","elementor"),(0,x.__)("Craft an about us section for","elementor"),(0,x.__)("Offer a few sentences to invite visitors to","elementor"),(0,x.__)("Write microcopy for a submission form that includes","elementor")];C.textareaAutocomplete=S;var k=[(0,x.__)("GA event fired on every button element click (assume GA was loaded)","elementor"),(0,x.__)("Iframe code to embed a Spotify widget on my web page. My ID is 1234567890","elementor"),(0,x.__)("Write an embed code of Google Analytics","elementor"),(0,x.__)("Write an embed code of Facebook Pixel","elementor"),(0,x.__)("HTML code that embeds the following PDF into a webpage: link to PDF","elementor")];C.codeHtmlAutocomplete=k;var I=[(0,x.__)("On hover, animate 20% bigger, rotate 10 deg CCW","elementor"),(0,x.__)("Add a circle-shaped clip mask, semi transparent on hover","elementor"),(0,x.__)("Rainbow colored animated text gradient","elementor"),(0,x.__)("Add a 3D shadow to the text","elementor")];C.codeCssAutocomplete=I;var R=[{label:(0,x.__)("Casual","elementor")},{label:(0,x.__)("Confidence","elementor")},{label:(0,x.__)("Formal","elementor")},{label:(0,x.__)("Friendly","elementor")},{label:(0,x.__)("Inspirational","elementor")},{label:(0,x.__)("Motivational","elementor")},{label:(0,x.__)("Nostalgic","elementor")},{label:(0,x.__)("Playful","elementor")},{label:(0,x.__)("Professional","elementor")},{label:(0,x.__)("Scientific","elementor")},{label:(0,x.__)("Straightforward","elementor")},{label:(0,x.__)("Witty","elementor")}];C.vocalTones=R;var j=[{label:(0,x.__)("Arabic","elementor"),value:"ar-SA"},{label:(0,x.__)("Chinese","elementor"),value:"zh-CN"},{label:(0,x.__)("Czech","elementor"),value:"cs-CZ"},{label:(0,x.__)("Danish","elementor"),value:"da-DK"},{label:(0,x.__)("Dutch","elementor"),value:"nl-NL"},{label:(0,x.__)("English","elementor"),value:"en-US"},{label:(0,x.__)("Finnish","elementor"),value:"fi-FI"},{label:(0,x.__)("French","elementor"),value:"fr-FR"},{label:(0,x.__)("German","elementor"),value:"de-DE"},{label:(0,x.__)("Greek","elementor"),value:"el-GR"},{label:(0,x.__)("Hebrew","elementor"),value:"he-IL"},{label:(0,x.__)("Hungarian","elementor"),value:"hu-HU"},{label:(0,x.__)("Indonesian","elementor"),value:"id-ID"},{label:(0,x.__)("Italian","elementor"),value:"it-IT"},{label:(0,x.__)("Japanese","elementor"),value:"ja-JP"},{label:(0,x.__)("Korean","elementor"),value:"ko-KR"},{label:(0,x.__)("Persian","elementor"),value:"fa-IR"},{label:(0,x.__)("Polish","elementor"),value:"pl-PL"},{label:(0,x.__)("Portuguese","elementor"),value:"pt-PT"},{label:(0,x.__)("Russian","elementor"),value:"ru-RU"},{label:(0,x.__)("Spanish","elementor"),value:"es-ES"},{label:(0,x.__)("Swedish","elementor"),value:"sv-SE"},{label:(0,x.__)("Thai","elementor"),value:"th-TH"},{label:(0,x.__)("Turkish","elementor"),value:"tr-TR"},{label:(0,x.__)("Vietnamese","elementor"),value:"vi-VN"}];C.translateLanguages=j},96333:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(78983)),S=x(w(42081)),k=x(w(58724)),I=x(w(71173)),R=x(w(74910)),j=x(w(66535)),W=x(w(74270)),N=w(38003),G=x(w(58061)),$=x(w(45524)),J=w(51822),re=w(35879),oe=x(w(87363));function _createSuper(i){var C=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(i){return!1}}();return function _createSuperInternal(){var w,x=(0,R.default)(i);if(C){var O=(0,R.default)(this).constructor;w=Reflect.construct(x,arguments,O)}else w=x.apply(this,arguments);return(0,I.default)(this,w)}}var ie=function(i){(0,k.default)(AiBehavior,i);var C=_createSuper(AiBehavior);function AiBehavior(){return(0,O.default)(this,AiBehavior),C.apply(this,arguments)}return(0,S.default)(AiBehavior,[{key:"initialize",value:function initialize(){this.type="text",this.controlType="text",this.buttonLabel=(0,N.__)("Write with AI","elementor"),this.editButtonLabel=(0,N.__)("Edit with AI","elementor"),this.isLabelBlock=!1,this.additionalOptions={},this.context={},this.config=window.ElementorAiConfig}},{key:"ui",value:function ui(){return{aiButton:".e-ai-button"}}},{key:"events",value:function events(){return{"click @ui.aiButton":"onAiButtonClick"}}},{key:"getTextualContent",value:function getTextualContent(){var i,C=[],w=null===(i=window.elementor.$previewContents[0])||void 0===i?void 0:i.cloneNode(!0);w.querySelectorAll(".elementor-editor-element-settings, #elementor-add-new-section, .elementor-add-section-inner, header, footer").forEach((function(i){return i.remove()}));return function walkDOM(i){var w,x=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(x=(null===(w=i.classList)||void 0===w?void 0:w.contains("elementor-element"))||x,Node.TEXT_NODE===i.nodeType&&x){var O,S=(null!==(O=i.textContent)&&void 0!==O?O:"").trim().replace(/\t+/g,"\t").replace(/\n+/g,"\n").replace(/\s+/g," ");S&&C.push(S)}else i.childNodes.forEach((function(i){return walkDOM(i,x)}))}(w),C.join("\n")}},{key:"onAiButtonClick",value:function onAiButtonClick(i){var C,w;i.stopPropagation();var x=(null===(C=elementor)||void 0===C||null===(w=C.getPreferences)||void 0===w?void 0:w.call(C,"ui_theme"))||"auto",O=elementorCommon.config.isRTL,S=document.createElement("div");document.body.append(S),window.elementorAiCurrentContext=this.getOption("context");var k=j.default.render(this.getElementToRender(S,x,O),S).unmount;this.unmount=k}},{key:"getElementToRender",value:function getElementToRender(i,C,w){var x=this,O=function onClose(){x.handleClose(),i.remove()};if("post_featured_image"===this.options.context.controlName){return oe.default.createElement(J.AIMediaGenerateApp,{onClose:O,predefinedPrompt:this.getTextualContent(),textToImageHook:$.default,getControlValue:this.getOption("getControlValue"),setControlValue:this.getOption("setControlValue"),initialSettings:{aspectRatio:"4:3"}})}return"excerpt"===this.getOption("type")?oe.default.createElement(re.RequestIdsProvider,null,oe.default.createElement(G.default,{onClose:O,currExcerpt:this.getOption("getControlValue")(),updateExcerpt:this.getOption("setControlValue"),postTextualContent:this.getTextualContent()})):oe.default.createElement(W.default,{type:this.getOption("type"),controlType:this.getOption("controlType"),getControlValue:this.getOption("getControlValue"),setControlValue:this.getOption("setControlValue"),additionalOptions:this.getOption("additionalOptions"),onClose:O,colorScheme:C,isRTL:w})}},{key:"handleClose",value:function handleClose(){this.unmount&&this.unmount()}},{key:"getAiButtonLabel",value:function getAiButtonLabel(){var i,C=null===(i=this.getOption("additionalOptions"))||void 0===i?void 0:i.defaultValue,w=this.getOption("getControlValue")(),x="media"===this.getOption("type");return!x&&C===w||x&&(null==w?void 0:w.url)===(null==C?void 0:C.url)?this.getOption("buttonLabel"):this.getOption("editButtonLabel")}},{key:"onRender",value:function onRender(){var i=!this.config.is_get_started,C=this.getAiButtonLabel(),w=jQuery("
",{class:"e-ai-button"});i||w.addClass("e-active"),w.html('
'),this.getOption("isLabelBlock")&&i?w.append(" "+C):w.tipsy({gravity:"s",title:function title(){return C}});var x=this.$el.find(".elementor-control-responsive-switchers");x.length||(x=this.$el.find(".elementor-control-title")),x.after(w)}}]),AiBehavior}(Marionette.Behavior);C.default=ie},58061:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=x(w(50824)),k=x(w(10029)),I=x(w(40131)),R=x(w(5647)),j=x(w(37714)),W=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),N=w(2234),G=x(w(74270)),$=w(38003),J=x(w(23615)),re=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var oe=function AIExcerpt(i){var C=i.onClose,w=i.currExcerpt,x=i.updateExcerpt,O=i.postTextualContent,J=(0,R.default)(!0),oe=J.isLoading,ie=J.isConnected,le=J.isGetStarted,ue=J.connectUrl,ce=J.fetchData,se=J.hasSubscription,de=J.credits,he=J.usagePercentage,ge=(0,j.default)({result:w,credits:de}),ye=ge.data,ve=ge.error,Ce=ge.send,Se=(0,re.useRequestIds)(),Pe=Se.updateUsagePercentage,Ie=Se.usagePercentage,Re=(0,W.useState)(!1),Me=(0,I.default)(Re,2),De=Me[0],Fe=Me[1];(0,N.useEffect)((function(){De||oe||!he&&0!==he||(Pe(he),Fe(!0))}),[oe,he,De,Pe]);var He=(0,W.useRef)(!1),Ue=(0,W.useState)(!0),Ge=(0,I.default)(Ue,2),Ze=Ge[0],Ke=Ge[1],Qe=(0,N.useCallback)((0,k.default)(S.default.mark((function _callee(){return S.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(!Ce||!O){i.next=4;break}return He.current=!0,i.next=4,Ce({content:O}).finally((function(){Ke(!1)}));case 4:case"end":return i.stop()}}),_callee)}))),[O,Ce]);(0,N.useEffect)((function(){!He.current&&ie&&le&&Qe()}),[Qe,ie,le]),(0,N.useEffect)((function(){oe||ie&&le||Ke(!1)}),[ie,le,oe]);var et=elementorCommon.config.isRTL;return W.default.createElement(W.default.Fragment,null,W.default.createElement(G.default,{type:"text",getControlValue:function getControlValue(){return ye.result?ye:w},setControlValue:function setControlValue(i){return x(i)},onClose:C,isRTL:et,additionalOptions:{loadingTitle:(0,$.__)("Analyzing your post to craft an excerpt...","elementor"),useCustomInit:function initHook(){return{isLoading:Ze,isConnected:ie,isGetStarted:le,connectUrl:ue,fetchData:ce,hasSubscription:se,credits:de,usagePercentage:Ie}},initError:ve,initRetry:Qe}}))};oe.propTypes={onClose:J.default.func.isRequired,updateExcerpt:J.default.func.isRequired,currExcerpt:J.default.string.isRequired,postTextualContent:J.default.string.isRequired};var ie=oe;C.default=ie},68819:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.AiGetStartedConnect=void 0;var S=x(w(50824)),k=x(w(10029)),I=x(w(40131)),R=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),j=x(w(5647)),W=x(w(71871)),N=w(36619),G=x(w(23615)),$=w(88589),J=x(w(3633)),re=w(46183),oe=x(w(99405)),ie=w(38003);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var le=function AiGetStartedConnect(i){var C=i.onClose,w=i.source,x=i.newHashOnConnect,O=(0,j.default)(),G=O.isLoading,le=O.isConnected,ue=O.isGetStarted,ce=O.connectUrl,se=O.fetchData,de=(0,R.useState)(!1),he=(0,I.default)(de,2),ge=he[0],ye=he[1];if((0,R.useEffect)((function(){if(ue&&le){var i=elementorFrontend.elements.$body[0].querySelector(".e-ai-layout-button");(function isElementInViewport(i){var C=i.getBoundingClientRect();return C.top>=0&&C.left>=0&&C.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&C.right<=(window.innerWidth||document.documentElement.clientWidth)})(i)||i.scrollIntoView({behavior:"smooth"}),x&&(window.location.hash=x),setTimeout((function(){ye(!0)}),1e3)}}),[ue,le]),G)return R.default.createElement($.WizardDialogWrapper,{onClose:C},R.default.createElement(W.default,{BoxProps:{sx:{px:3}}}));if(!le||!ue)return R.default.createElement($.WizardDialogWrapper,{onClose:C},R.default.createElement(J.default,{connectUrl:ce,isConnected:le,getStartedAction:(0,k.default)(S.default.mark((function _callee(){return S.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,re.setGetStarted)();case 2:se();case 3:case"end":return i.stop()}}),_callee)}))),onSuccess:function(){var i=(0,k.default)(S.default.mark((function _callee2(i){return S.default.wrap((function _callee2$(C){for(;;)switch(C.prev=C.next){case 0:return(0,N.onConnect)(i),se(),C.next=4,(0,re.setGetStarted)();case 4:se();case 5:case"end":return C.stop()}}),_callee2)})));return function(C){return i.apply(this,arguments)}}()}));if(ge){var ve,Ce,Se=window.elementorFrontend.elements.$body[0].querySelector(".e-ai-layout-button"),Pe=document.querySelector("#elementor-preview-iframe").getBoundingClientRect(),Ie=Pe.x,Re=Pe.y;return R.default.createElement(oe.default,{"test-id":"ai-promotion-infotip-wrapper",source:w,anchor:Se,clickAction:function clickAction(){Se.click()},header:(0,ie.__)("Create any layout with a prompt","elementor"),contentText:(0,ie.__)("Now you can generate any layout or container for your website’s design.","elementor"),mainActionText:(0,ie.__)("Try it","elementor"),controlType:"container",unmountAction:C,colorScheme:(null===(ve=elementor)||void 0===ve||null===(Ce=ve.getPreferences)||void 0===Ce?void 0:Ce.call(ve,"ui_theme"))||"auto",isRTL:elementorCommon.config.isRTL,placement:"top",offset:{x:Ie,y:Re}})}};C.AiGetStartedConnect=le,le.propTypes={onClose:G.default.func.isRequired,source:G.default.string.isRequired,newHashOnConnect:G.default.string}},46183:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.uploadImage=C.toggleFavoriteHistoryItem=C.setStatusFeedback=C.setGetStarted=C.getUserInformation=C.getTextToImageGeneration=C.getRemoteFrontendConfig=C.getRemoteConfig=C.getLayoutPromptEnhanced=C.getImageToImageUpscale=C.getImageToImageReplaceBackground=C.getImageToImageRemoveText=C.getImageToImageRemoveBackground=C.getImageToImageOutPainting=C.getImageToImageMaskGeneration=C.getImageToImageMaskCleanup=C.getImageToImageGeneration=C.getImagePromptEnhanced=C.getHistory=C.getFeaturedImage=C.getExcerpt=C.getEditText=C.getCustomCode=C.getCustomCSS=C.getCompletionText=C.generateLayout=C.deleteHistoryItem=void 0;var O=x(w(93231));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}var S=function request(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=arguments.length>3?arguments[3]:void 0;return Object.keys(C).length&&(window.elementorAiCurrentContext?C.context=window.elementorAiCurrentContext:C.context=window.elementorWpAiCurrentContext),new Promise((function(O,S){var k=elementorCommon.ajax.addRequest(i,{success:O,error:S,data:C},w);x&&k.jqXhr&&x.addEventListener("abort",k.jqXhr.abort)}))};C.getUserInformation=function getUserInformation(i){return S("ai_get_user_information",void 0,i)};C.getRemoteConfig=function getRemoteConfig(){return S("ai_get_remote_config")};C.getRemoteFrontendConfig=function getRemoteFrontendConfig(i,C){return S("ai_get_remote_frontend_config",{payload:i},C)};C.getCompletionText=function getCompletionText(i){return S("ai_get_completion_text",{payload:i})};C.getExcerpt=function getExcerpt(i){return S("ai_get_excerpt",{payload:i})};C.getFeaturedImage=function getFeaturedImage(i){return S("ai_get_featured_image",{payload:i})};C.getEditText=function getEditText(i){return S("ai_get_edit_text",{payload:i})};C.getCustomCode=function getCustomCode(i){return S("ai_get_custom_code",{payload:i})};C.getCustomCSS=function getCustomCSS(i){return S("ai_get_custom_css",{payload:i})};C.setGetStarted=function setGetStarted(){return S("ai_set_get_started")};C.setStatusFeedback=function setStatusFeedback(i){return S("ai_set_status_feedback",{response_id:i})};C.getTextToImageGeneration=function getTextToImageGeneration(i){return S("ai_get_text_to_image",{payload:i})};C.getImageToImageGeneration=function getImageToImageGeneration(i){return S("ai_get_image_to_image",{payload:i})};C.getImageToImageMaskCleanup=function getImageToImageMaskCleanup(i){return S("ai_get_image_to_image_mask_cleanup",{payload:i})};C.getImageToImageMaskGeneration=function getImageToImageMaskGeneration(i){return S("ai_get_image_to_image_mask",{payload:i})};C.getImageToImageOutPainting=function getImageToImageOutPainting(i){return S("ai_get_image_to_image_outpainting",{payload:i})};C.getImageToImageUpscale=function getImageToImageUpscale(i){return S("ai_get_image_to_image_upscale",{payload:i})};C.getImageToImageRemoveBackground=function getImageToImageRemoveBackground(i){return S("ai_get_image_to_image_remove_background",{payload:i})};C.getImageToImageReplaceBackground=function getImageToImageReplaceBackground(i){return S("ai_get_image_to_image_replace_background",{payload:i})};C.getImageToImageRemoveText=function getImageToImageRemoveText(i){return S("ai_get_image_to_image_remove_text",{image:i})};C.getImagePromptEnhanced=function getImagePromptEnhanced(i){return S("ai_get_image_prompt_enhancer",{prompt:i})};C.uploadImage=function uploadImage(i){return S("ai_upload_image",function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=x(w(23615)),I=x(w(88450)),R=w(35879),j=w(36619),W=function App(i){return O.default.createElement(S.DirectionProvider,{rtl:i.isRTL},O.default.createElement(S.ThemeProvider,{colorScheme:i.colorScheme},O.default.createElement(R.RequestIdsProvider,null,O.default.createElement(I.default,{type:i.type,controlType:i.controlType,onClose:i.onClose,onConnect:j.onConnect,getControlValue:i.getControlValue,setControlValue:i.setControlValue,additionalOptions:i.additionalOptions}))))};W.propTypes={colorScheme:k.default.oneOf(["auto","light","dark"]),type:k.default.string,controlType:k.default.string,onClose:k.default.func,getControlValue:k.default.func,setControlValue:k.default.func,additionalOptions:k.default.object,isRTL:k.default.bool};var N=W;C.default=N},81601:(i,C,w)=>{"use strict";var x=w(23615),O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=O(w(87363)),k=w(36626),I=w(38003),R=function AiPromotionInfotipContent(i){return S.default.createElement(k.Card,{sx:{width:300},elevation:0},S.default.createElement(k.CardHeader,{subheader:"ELEMENTOR AI"}),S.default.createElement(k.CardContent,{sx:{pt:1}},S.default.createElement(k.Typography,{variant:"subtitle2",color:"text.secondary",sx:{pb:.5}},i.header),S.default.createElement(k.Typography,{variant:"body2",color:"text.secondary"},i.contentText)),S.default.createElement(k.CardActions,{disableSpacing:!0,sx:{justifyContent:"flex-end",gap:1}},S.default.createElement(k.Button,{onClick:function onClick(){return i.onClose()},color:"secondary"},(0,I.__)("Not Now","elementor")),S.default.createElement(k.Button,{onClick:function onClick(){return i.onClick()},variant:"contained"},i.mainActionText)))};R.propTypes={header:x.string,contentText:x.string,onClick:x.func,onClose:x.func,mainActionText:x.string};var j=R;C.default=j},99405:(i,C,w)=>{"use strict";var x=w(23615),O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=O(w(87363)),k=O(w(55216)),I=O(w(81601)),R=w(36626),j=O(w(24395)),W=w(64593),N=function AiPromotionInfotipWrapper(i){var C=i.anchor,w=i.header,x=i.contentText,O=i.controlType,N=i.unmountAction,G=i.colorScheme,$=i.isRTL,J=i.clickAction,re=i.placement,oe=i.offset,ie=i.mainActionText,le=i.source,ue=(0,W.useFocusOutListener)(),ce=(0,j.default)("ai_get_started_introduction_".concat(O,"_").concat(le)),se=ce.isViewed,de=ce.markAsViewed;if(!se)return S.default.createElement(R.DirectionProvider,{rtl:$},S.default.createElement(R.ThemeProvider,{colorScheme:G},S.default.createElement(W.FocusOutListener,{listener:ue,onFocusOut:function onFocusOut(){de(),N()}},S.default.createElement(k.default,{anchor:C,focusOutListener:ue,placement:re,offset:oe,content:S.default.createElement(I.default,{focusOutListener:ue,header:w,contentText:x,mainActionText:ie,onClose:function onClose(){de(),ue.remove(),N()},onClick:function onClick(){de(),ue.remove(),N(),J?J():C.click()}})}))))};N.propTypes={anchor:x.object,header:x.string,contentText:x.string,controlType:x.string,unmountAction:x.func,colorScheme:x.string,isRTL:x.bool,clickAction:x.func,placement:x.string,offset:x.object,mainActionText:x.string,source:x.string};var G=N;C.default=G},55216:(i,C,w)=>{"use strict";var x=w(23615),O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=AiPromotionInfotip;var S=O(w(87363)),k=w(36626),I=(0,k.styled)(k.Popper)((function(i){var C=i.theme;return{"& .MuiTooltip-tooltip":{width:500,minHeight:50,padding:0,backgroundColor:C.palette.background.paper,color:C.palette.text.primary,boxShadow:"0px -6px 10px 2px rgba(0,0,0,0.025),6px 0px 10px 2px rgba(0,0,0,0.025),-6px 0px 10px 2px rgba(0,0,0,0.025),0px 6px 10px 2px rgba(0,0,0,0.025)"},"& .MuiTooltip-arrow":{color:C.palette.background.paper,fontSize:"1.2rem"},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{marginTop:C.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementRight":{marginLeft:C.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementLeft":{marginRight:C.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementTop":{marginBottom:C.spacing(2)}}}));function AiPromotionInfotip(i){var C=i.anchor,w=i.content,x=i.focusOutListener,O=i.placement,R=i.offset,j=void 0===R?{x:0,y:0}:R,W=S.default.useRef({x:0,y:0,width:0,height:0}),N=S.default.useRef(null);return S.default.useEffect((function(){!function showTooltip(){var i=C.getBoundingClientRect(),w=i.x,x=i.y,O=i.width,S=i.height;W.current={x:w+j.x,y:x+j.y,width:O,height:S},null!==N.current&&N.current.update()}()}),[]),S.default.createElement(k.Tooltip,{arrow:!0,open:!0,title:w,placement:O||"left",PopperComponent:I,PopperProps:{onClick:function onClick(){return x.reset()},popperRef:N,anchorEl:{getBoundingClientRect:function getBoundingClientRect(){return new DOMRect(W.current.x,W.current.y,W.current.width,W.current.height)}}}},S.default.createElement("div",{style:{display:"none"}}))}AiPromotionInfotip.propTypes={anchor:x.object.isRequired,content:x.object.isRequired,focusOutListener:x.object.isRequired,placement:x.string,offset:x.object}},95748:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.AlertDialog=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=w(38003),j=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=function AlertDialog(i){var C=(0,S.useState)(!0),w=(0,k.default)(C,2),x=w[0],O=w[1];return x?S.default.createElement(I.Dialog,{open:!0,maxWidth:"lg"},S.default.createElement(I.DialogContent,{sx:{padding:0}},S.default.createElement(I.Typography,{sx:{textAlign:"center",padding:3}},i.message),S.default.createElement(I.Stack,{alignItems:"center",spacing:2,marginBottom:2},S.default.createElement(I.Button,{variant:"contained",type:"button",color:"primary",onClick:function onClick(){var C;O(!1),null===(C=i.onClose)||void 0===C||C.call(i)}},(0,R.__)("Close","elementor"))))):null};C.AlertDialog=W,W.propTypes={message:j.default.string.isRequired,onClose:j.default.func}},78029:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=x(w(23615)),j=w(34029),W=(0,k.styled)((function ElementorLogo(i){return O.default.createElement(k.SvgIcon,(0,S.default)({viewBox:"0 0 32 32"},i),O.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(i){var C=i.theme;return{width:C.spacing(3),height:C.spacing(3),"& path":{fill:C.palette.text.primary}}})),N=function DialogHeader(i){return O.default.createElement(k.AppBar,{sx:{fontWeight:"normal"},color:"transparent",position:"relative"},O.default.createElement(k.Toolbar,{variant:"dense"},O.default.createElement(W,{sx:{mr:1}}),O.default.createElement(k.Typography,{component:"span",variant:"subtitle2",sx:{fontWeight:"bold",textTransform:"uppercase"}},(0,I.__)("AI","elementor")),O.default.createElement(k.Chip,{label:(0,I.__)("Beta","elementor"),color:"default",size:"small",sx:{ml:1}}),O.default.createElement(k.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{ml:"auto"}},i.children,O.default.createElement(k.IconButton,{size:"small","aria-label":"close",onClick:i.onClose,sx:{"&.MuiButtonBase-root":{mr:-1}}},O.default.createElement(j.XIcon,null)))))};N.propTypes={onClose:R.default.func.isRequired,children:R.default.oneOfType([R.default.arrayOf(R.default.node),R.default.node])};var G=N;C.default=G},4466:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=w(34029),j=function GenerateButton(i){return O.default.createElement(k.Button,(0,S.default)({variant:"contained",endIcon:O.default.createElement(R.AIIcon,{fontSize:"small"}),disabled:!prompt,"aria-label":(0,I.__)("search","elementor"),type:"submit",size:"small"},i))};C.default=j},71871:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=["sx","BoxProps"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=x(w(23615)),I=function PromptActionSelection(i){var C=function labelToDashCash(i){return i.toLowerCase().replace(/ /g,"-")}(i.label),w=i.wrapperStyle,x=void 0===w?{maxWidth:138}:w;return O.default.createElement(S.FormControl,{size:"small",color:"secondary",fullWidth:!0,sx:x},O.default.createElement(S.InputLabel,{id:C},i.label),O.default.createElement(S.Select,{id:C,labelId:C,label:i.label,value:i.value||"",onChange:i.onChange,disabled:i.disabled,sx:{"&.Mui-disabled .MuiSelect-nativeInput":{backgroundColor:"initial",opacity:0}}},i.options.map((function(i){var C;return O.default.createElement(S.MenuItem,{dense:!0,key:i.label,value:null!==(C=i.value)&&void 0!==C?C:i.label},i.label)}))))};I.propTypes={label:k.default.string.isRequired,options:k.default.arrayOf(k.default.shape({label:k.default.string.isRequired,value:k.default.string})).isRequired,onChange:k.default.func.isRequired,value:k.default.string,wrapperStyle:k.default.object,disabled:k.default.bool};var R=I;C.default=R},77655:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=function PromptAction(i){return O.default.createElement(k.Chip,(0,S.default)({size:"large",color:"secondary",variant:"outlined"},i))};C.default=I},59441:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(93231)),R=x(w(40131)),j=w(36626),W=x(w(23615)),N=x(w(49529)),G=x(w(78029));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(38003).sprintf,O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=O(w(87363)),k=O(w(73119)),I=O(w(70966)),R=w(36626),j=w(38003),W=O(w(23615)),N=["error","onRetry","actionPosition"],G=function PromptErrorMessage(i){var C=i.error,w=i.onRetry,O=void 0===w?function(){}:w,W=i.actionPosition,G=void 0===W?"default":W,$=(0,I.default)(i,N);function getQuotaReachedTrailMessage(i){return i?{text:S.default.createElement(R.AlertTitle,null,x((0,j.__)("You've used all AI credits for %s.","elementor"),i.toLowerCase())),description:(0,j.__)("Upgrade now to keep using this feature. You still have credits for other AI features (Text, Code, Images, Containers, etc.)","elementor"),buttonText:(0,j.__)("Upgrade now","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}}:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("It's time to upgrade.","elementor")),description:(0,j.__)("Enjoy the free trial? Upgrade now for unlimited access to built-in image, text and custom code generators.","elementor"),buttonText:(0,j.__)("Upgrade","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}}}var J=function getErrorMessage(){var i,w=C.message||C,x=null===(i=C.extra_data)||void 0===i?void 0:i.featureName,k={default:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:(0,j.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,j.__)("Try again","elementor"),buttonAction:O},service_outage_internal:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:(0,j.__)("Wait a moment and give it another go.","elementor"),buttonText:(0,j.__)("Try again","elementor"),buttonAction:O},invalid_connect_data:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:S.default.createElement(S.default.Fragment,null,(0,j.__)("Try exiting Elementor and sign in again.","elementor")," ",S.default.createElement("a",{href:"https://elementor.com/help/disconnecting-reconnecting-your-elementor-account/",target:"_blank",rel:"noreferrer"},(0,j.__)("Show me how","elementor"))),buttonText:(0,j.__)("Reconnect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},not_connected:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("You aren't connected to Elementor AI.","elementor")),description:(0,j.__)("Elementor AI is just a few clicks away. Connect your account to instantly create texts and custom code.","elementor"),buttonText:(0,j.__)("Connect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},quota_reached_trail:getQuotaReachedTrailMessage(x),quota_reached_subscription:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("Looks like you're out of credits.","elementor")),description:(0,j.__)("Ready to take it to the next level?","elementor"),buttonText:(0,j.__)("Upgrade now","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}},rate_limit_network:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("Whoa! Slow down there.","elementor")),description:(0,j.__)("We can’t process that many requests so fast. Try again in 15 minutes.","elementor")},invalid_prompts:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("We were unable to generate that prompt.","elementor")),description:(0,j.__)("Seems like the prompt contains words that could generate harmful content. Write a different prompt to continue.","elementor")},service_unavailable:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:(0,j.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,j.__)("Try again","elementor"),buttonAction:O},request_timeout_error:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:(0,j.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,j.__)("Try again","elementor"),buttonAction:O},invalid_token:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("Try again","elementor")),description:(0,j.__)("Try exiting Elementor and sign in again.","elementor"),buttonText:(0,j.__)("Reconnect","elementor"),buttonAction:O},file_too_large:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("The file is too large.","elementor")),description:(0,j.__)("Please upload a file that is less than 4MB.","elementor")}};return k[w]||k.default}(),re=(null==J?void 0:J.buttonText)&&S.default.createElement(R.Button,{color:"inherit",size:"small",variant:"outlined",onClick:J.buttonAction},J.buttonText);return S.default.createElement(R.Alert,(0,k.default)({severity:J.severity||"error",action:"default"===G&&re},$),J.text,J.description,"bottom"===G&&S.default.createElement(R.Box,{sx:{mt:1}},re))};G.propTypes={error:W.default.oneOfType([W.default.object,W.default.string]),onRetry:W.default.func,actionPosition:W.default.oneOf(["default","bottom"])};var $=G;C.default=$},10905:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useSubscribeOnPromptHistoryAction=C.usePromptHistoryAction=C.PromptHistoryActionProvider=C.PromptHistoryActionContext=C.ACTION_TYPES=void 0;var S,k,I,R,j=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),W=x(w(40131)),N=x(w(93231)),G=x(w(23615)),$=w(62219),J=w(78293);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _createForOfIteratorHelper(i,C){var w="undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(!w){if(Array.isArray(i)||(w=function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i))||C&&i&&"number"==typeof i.length){w&&(i=w);var x=0,O=function F(){};return{s:O,n:function n(){return x>=i.length?{done:!0}:{done:!1,value:i[x++]}},e:function e(i){throw i},f:O}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,k=!0,I=!1;return{s:function s(){w=w.call(i)},n:function n(){var i=w.next();return k=i.done,i},e:function e(i){I=!0,S=i},f:function f(){try{k||null==w.return||w.return()}finally{if(I)throw S}}}}function _arrayLikeToArray(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.usePromptHistoryContext=C.PromptHistoryProvider=C.PromptHistoryContext=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(23615)),R=w(62219),j=w(8227);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=(0,S.createContext)({});C.PromptHistoryContext=W;var N=".e-ai-dialog-content",G=function getContainer(){return document.querySelector(N)},$=function getContainerHeight(){var i=document.querySelector(N);return null==i?void 0:i.clientHeight},J=function getContentHeight(){return document.querySelector(N).children[0].clientHeight+50},re=function setContentHeight(i){var C=document.querySelector(N);C.style.height="auto"!==i?"".concat(i,"px"):"auto"},oe=function PromptHistoryProvider(i){var C=i.historyType,w=i.children,x=(0,S.useState)(!1);return S.default.createElement(W.Provider,{value:{historyType:C,showHistoryState:x}},w)};C.PromptHistoryProvider=oe,oe.propTypes={historyType:I.default.oneOf(Object.values(R.HISTORY_TYPES)).isRequired,children:I.default.node};C.usePromptHistoryContext=function usePromptHistoryContext(){var i=(0,S.useContext)(W),C=i.historyType,w=i.showHistoryState,x=(0,k.default)(w,2),O=x[0],I=x[1],N=(0,S.useState)(!1),oe=(0,k.default)(N,2),ie=oe[0],le=oe[1],ue=(0,S.useState)(!1),ce=(0,k.default)(ue,2),se=ce[0],de=ce[1];(0,S.useEffect)((function(){if(O!==ie||O!==se)return C===R.HISTORY_TYPES.IMAGE?function handleFullScreenHistoryState(){if(O)return le(!0),void setTimeout((function(){return de(!0)}),200);de(!1),setTimeout((function(){return le(!1)}),500)}():void function handleDefaultHistoryState(){if(O){var i=J();return re(i),void setTimeout((function(){if(i<(0,j.vh)(61))return re((0,j.vh)(61)),setTimeout((function(){return le(!0)}),200),void setTimeout((function(){return de(!0)}),300);le(!0),de(!0)}),20)}de(!1),setTimeout((function(){le(!1),re(J()),setTimeout((function(){return re("auto")}),300)}),500)}()}),[O]);return{historyType:C,isOpen:se,isModalOpen:ie,showHistory:O,onOpen:function onOpen(){I(!0)},onClose:function onClose(){I(!1)},getContainer:G,getContainerHeight:$}}},2456:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.renderPeriods=C.groupPromptHistoryData=C.LAST_7_DAYS_KEY=C.LAST_30_DAYS_KEY=void 0;var O=x(w(87363)),S=x(w(93231)),k=x(w(9833)),I=w(38003),R=w(22809),j=x(w(27199));function _createForOfIteratorHelper(i,C){var w="undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(!w){if(Array.isArray(i)||(w=function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i))||C&&i&&"number"==typeof i.length){w&&(i=w);var x=0,O=function F(){};return{s:O,n:function n(){return x>=i.length?{done:!0}:{done:!1,value:i[x++]}},e:function e(i){throw i},f:O}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,k=!0,I=!1;return{s:function s(){w=w.call(i)},n:function n(){var i=w.next();return k=i.done,i},e:function e(i){I=!0,S=i},f:function f(){try{k||null==w.return||w.return()}finally{if(I)throw S}}}}function _arrayLikeToArray(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w
=R.MONTH_JANUARY_INDEX;re--)W[re]&&$.push(O.default.createElement(j.default,{periodTitle:W[re].label,onHistoryItemDelete:I,historyItems:W[re].items}));return $}},63693:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S=x(w(87363)),k=x(w(73119)),I=x(w(70966)),R=x(w(79769)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(34029),$=["isActive"],J=(0,j.styled)(j.IconButton)(O||(O=(0,R.default)(["\n margin-right: ",";\n\n ","\n"])),(function(i){return i.theme.spacing(2)}),(function(i){var C=i.isActive,w=i.theme;return C&&"\n background-color: ".concat(w.palette.action.hover,";\n color: ").concat(w.palette.text.tertiary,";\n ")})),re=function PromptHistoryButton(i){var C=i.isActive,w=(0,I.default)(i,$);return S.default.createElement(J,(0,k.default)({"aria-label":(0,W.__)("Show prompt history","elementor"),type:"button",size:"small",isActive:C},w),S.default.createElement(G.HistoryIcon,null))};re.propTypes={isActive:N.default.bool.isRequired};var oe=re;C.default=oe},97662:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=w(36626),j=w(38003),W=x(w(87984)),N=x(w(78632)),G=x(w(69447)),$=x(w(86960)),J=w(2456),re=x(w(6688)),oe=x(w(43674)),ie=x(w(49821)),le=w(78293),ue=x(w(66390));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var ce=["invalid_connect_data","no_subscription"],se=function PromptHistoryModal(i){var C=(0,S.useRef)((function(){})),w=(0,S.useRef)(null),x=(0,le.usePromptHistoryContext)(),O=x.historyType,se=x.onClose,de=(0,W.default)(O),he=de.items,ge=de.meta,ye=de.isLoading,ve=de.error,Ce=de.fetchData,Se=de.deleteItemById,Pe=(0,G.default)(),Ie=Pe.isLoading,Re=Pe.error,Me=Pe.deleteItem,De=ve||Re,Fe=ye||Ie,He=ge&&(null==ge?void 0:ge.currentPage)===(null==ge?void 0:ge.totalPages),Ue=(null==he?void 0:he.length)>0&&(null==ge?void 0:ge.allowedDays)<90&&He;(0,S.useEffect)((function(){C.current=(0,I.default)(k.default.mark((function _callee(){return k.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Ce({page:1,limit:10}));case 1:case"end":return i.stop()}}),_callee)}))),C.current()}),[]);var Ge=function(){var i=(0,I.default)(k.default.mark((function _callee4(i){return k.default.wrap((function _callee4$(w){for(;;)switch(w.prev=w.next){case 0:return C.current=(0,I.default)(k.default.mark((function _callee3(){return k.default.wrap((function _callee3$(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Me(i);case 2:return C.abrupt("return",C.sent);case 3:case"end":return C.stop()}}),_callee3)}))),w.next=3,C.current();case 3:Re||Se(i);case 4:case"end":return w.stop()}}),_callee4)})));return function onHistoryItemDelete(C){return i.apply(this,arguments)}}();return S.default.createElement(ue.default,i,S.default.createElement(N.default,{onClose:se}),De&&!ce.includes(De)&&S.default.createElement($.default,{error:De,onRetry:C.current,sx:{position:"absolute",zIndex:1,marginTop:Fe?.5:"revert"}}),Fe&&S.default.createElement(R.LinearProgress,{role:"progressbar","aria-label":(0,j.__)("Loading","elementor"),color:"secondary"}),S.default.createElement(R.Box,{sx:{overflowY:"scroll",height:"85%"},ref:w},De&&ce.includes(De)&&S.default.createElement(ie.default,{variant:"full",historyType:O}),!De&&0===(null==he?void 0:he.length)&&S.default.createElement(re.default,{historyType:O}),(null==he?void 0:he.length)>0&&S.default.createElement(oe.default,{loadMore:function loadNext(){Fe||He||(C.current=(0,I.default)(k.default.mark((function _callee2(){return k.default.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Ce({page:ge.currentPage+1,limit:10}));case 1:case"end":return i.stop()}}),_callee2)}))),C.current())},getScrollParent:function getScrollParent(){return w.current},useWindow:!1,isReverse:!1,threshold:30,initialLoad:!1,hasMore:!He},(0,J.renderPeriods)({items:he,onDelete:Ge})),Ue&&S.default.createElement(ie.default,{variant:"small",historyType:O})))};C.default=se},62219:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.getTranslatedPromptHistoryType=C.TRANSLATED_HISTORY_TYPES_FALLBACK=C.TRANSLATED_HISTORY_TYPES=C.HISTORY_TYPES=void 0;var O,S=x(w(93231)),k=w(38003),I=Object.freeze({ALL:"all",TEXT:"text",CODE:"code",IMAGE:"images",BLOCK:"blocks"});C.HISTORY_TYPES=I;var R=(0,k.__)("things","elementor");C.TRANSLATED_HISTORY_TYPES_FALLBACK=R;var j=Object.freeze((O={},(0,S.default)(O,I.TEXT,(0,k.__)("texts","elementor")),(0,S.default)(O,I.CODE,(0,k.__)("code","elementor")),(0,S.default)(O,I.IMAGE,(0,k.__)("images","elementor")),(0,S.default)(O,I.BLOCK,(0,k.__)("blocks","elementor")),O));C.TRANSLATED_HISTORY_TYPES=j;C.getTranslatedPromptHistoryType=function getTranslatedPromptHistoryType(i){return j[i]?j[i]:R}},76719:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(63693)),k=x(w(97662)),I=w(78293),R="prompt-history-modal",j=function PromptHistory(){var i=(0,I.usePromptHistoryContext)(),C=i.isOpen,w=i.isModalOpen,x=i.onOpen,j=i.onClose;return O.default.createElement(O.default.Fragment,null,O.default.createElement(S.default,{isActive:C,onClick:function onClick(){return C?j():x()},"aria-haspopup":"dialog","aria-controls":R}),w&&O.default.createElement(k.default,{id:R}))};C.default=j},60315:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(23615)),k=x(w(28221)),I=w(34029),R=x(w(94345)),j=O.default.createElement(I.AIIcon,{"data-testid":"e-ph-fi"}),W=Object.freeze({"enhance-image-prompt":O.default.createElement(k.default,null),"get-text":O.default.createElement(k.default,null),"edit-text":O.default.createElement(k.default,null),"custom-css":O.default.createElement(R.default,null),"custom-code":O.default.createElement(R.default,null)}),N=function PromptHistoryActionIcon(i){var C=i.action;return W[C]?W[C]:j};N.propTypes={action:S.default.string.isRequired};var G=N;C.default=G},66390:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S=x(w(87363)),k=x(w(73119)),I=x(w(70966)),R=x(w(79769)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(78293),$=["children"],J=(0,j.styled)(j.Box)(O||(O=(0,R.default)(["\n width: 360px;\n position: relative;\n margin-top: ",";\n margin-right: ",";\n background-color: ",";\n border-radius: ",";\n height: ",";\n\n @media screen and (max-width: 456px) {\n width: 320px;\n }\n\n @media screen and (max-width: 420px) {\n width: 230px;\n }\n"])),(function(i){return i.theme.spacing(2)}),(function(i){return i.theme.spacing(2)}),(function(i){return i.theme.palette.background.paper}),(function(i){var C=i.theme;return"".concat(C.shape.borderRadius,"px")}),(function(i){var C=i.height;return"calc( ".concat(C,"px - 32px )")})),re=function ModalContainer(i){var C=i.children,w=(0,I.default)(i,$),x=(0,G.usePromptHistoryContext)(),O=x.isOpen,R=x.isModalOpen,N=x.onClose,re=x.getContainerHeight,oe=x.getContainer;return S.default.createElement(j.Modal,(0,k.default)({container:oe(),open:R,hideBackdrop:!0,onClose:N,sx:{position:"absolute"}},w),S.default.createElement(j.Backdrop,{open:!0,sx:{position:"absolute",justifyContent:"flex-end",alignItems:"flex-start"},"aria-hidden":!1},S.default.createElement(j.Slide,{direction:"left",in:O,timeout:500,easing:"ease-in-out"},S.default.createElement(J,{"aria-label":(0,W.__)("Prompt history modal","elementor"),height:re()},C))))};re.propTypes={isOpen:N.default.bool.isRequired,isModalOpen:N.default.bool.isRequired,onClose:N.default.func.isRequired,children:N.default.oneOfType([N.default.arrayOf(N.default.node),N.default.node])};var oe=re;C.default=oe},6688:(i,C,w)=>{"use strict";var x=w(38003).sprintf,O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=O(w(87363)),k=w(36626),I=w(38003),R=O(w(23615)),j=w(62219),W=function PromptHistoryEmpty(i){var C=i.historyType;return S.default.createElement(k.Stack,{justifyContent:"center",sx:{height:"100%",textAlign:"center"},"data-testid":"e-ph-empty"},S.default.createElement(k.Typography,{variant:"h6"},(0,I.__)("Prepare to be amazed","elementor")),S.default.createElement(k.Typography,{variant:"body1"},x((0,I.__)("This is where you'll find all the %s you've generated using Elementor AI.","elementor"),(0,j.getTranslatedPromptHistoryType)(C))))};W.propTypes={historyType:R.default.oneOf(Object.values(j.HISTORY_TYPES)).isRequired};var N=W;C.default=N},78632:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(23615)),R=w(34029),j=(0,S.styled)(S.Box)((function(i){var C=i.theme;return{marginTop:0,padding:C.spacing(1.5),borderBottom:"1px solid ".concat(C.palette.action.focus),display:"flex",alignItems:"center",justifyContent:"space-between"}})),W=function PromptHistoryModalHeader(i){var C=i.onClose;return O.default.createElement(j,null,O.default.createElement(S.Typography,{fontWeight:"bolder",variant:"h6",sx:{userSelect:"none"}},(0,k.__)("History","elementor")),O.default.createElement(S.IconButton,{size:"small","aria-label":(0,k.__)("Hide prompt history","elementor"),onClick:C},O.default.createElement(R.XIcon,{fontSize:"small"})))};W.propTypes={onClose:I.default.func.isRequired};var N=W;C.default=N},93798:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=x(w(33977)),W=["tooltipTitle"],N=function ActionButton(i){var C=i.tooltipTitle,w=(0,k.default)(i,W);return O.default.createElement(j.default,{title:C,placement:"top"},O.default.createElement(I.IconButton,(0,S.default)({type:"button",size:"small",disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0},w)))};N.propTypes={tooltipTitle:R.default.string.isRequired};var G=N;C.default=G},57951:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S,k=x(w(87363)),I=x(w(79769)),R=w(36626),j=x(w(23615)),W=(0,R.styled)(R.Typography)(O||(O=(0,I.default)(["\n color: ",";\n"])),(function(i){return i.theme.palette.secondary.light})),N=(0,R.styled)("img")(S||(S=(0,I.default)(["\n height: 72px;\n width: 72px;\n object-fit: cover;\n margin-right: ",";\n"])),(function(i){return i.theme.spacing(.5)})),G=function PromptHistoryItemSecondaryContent(i){var C=i.date,w=i.thumbnails;return k.default.createElement(R.Stack,{direction:"column",width:"90%"},k.default.createElement(W,{variant:"caption"},C),(null==w?void 0:w.length)>0&&k.default.createElement(R.Stack,{flexDirection:"row",mt:1},w.map((function(i){return k.default.createElement(N,{key:"thumbnail-".concat(i.seed),alt:"",src:i.image_url})}))))};G.propTypes={date:j.default.string.isRequired,thumbnails:j.default.array};var $=G;C.default=$},68383:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S=x(w(87363)),k=x(w(79769)),I=w(36626),R=x(w(23615)),j=x(w(33977)),W=(0,I.styled)(I.Typography)(O||(O=(0,k.default)(["\n margin-bottom: ",";\n"])),(function(i){return i.theme.spacing(.5)})),N=function PromptHistoryItemTitle(i){var C=i.prompt;return S.default.createElement(j.default,{title:C,arrow:!1,placement:"bottom-start"},S.default.createElement(W,{variant:"body2",noWrap:!0,paragraph:!0},C))};N.propTypes={prompt:R.default.string.isRequired};var G=N;C.default=G},49496:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S,k,I,R=x(w(87363)),j=x(w(70966)),W=x(w(79769)),N=w(36626),G=w(38003),$=x(w(23615)),J=x(w(33375)),re=w(34029),oe=x(w(71688)),ie=x(w(93798)),le=w(10905),ue=x(w(60315)),ce=x(w(28965)),se=x(w(68383)),de=x(w(57951)),he=["id","date","onHistoryItemDelete"],ge=(0,N.styled)(N.ListItem)(O||(O=(0,W.default)(["\n & .e-prompt-history-item-actions {\n position: absolute;\n top: -9999px;\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within {\n .MuiTypography-body2 {\n font-weight: 700;\n max-width: ",";\n }\n\n .e-prompt-history-item-actions {\n position: relative;\n top: -3px;\n }\n }\n"])),(function(i){var C=i.actionsCount;return"calc(100% - ".concat(C," * 26px)")})),ye=(0,N.styled)(N.ListItemButton)(S||(S=(0,W.default)(["\n padding: ",";\n align-items: flex-start;\n cursor: inherit;\n"])),(function(i){return i.theme.spacing(.5,2)})),ve=(0,N.styled)(N.ListItemIcon)(k||(k=(0,W.default)(["\n min-width: auto;\n\n & > .MuiSvgIcon-root {\n margin-right: ",";\n font-size: 1rem;\n position: relative;\n top: ",";\n }\n"])),(function(i){return i.theme.spacing(1.5)}),(function(i){return i.theme.spacing(.5)})),Ce=(0,N.styled)(N.Box)(I||(I=(0,W.default)(["\n & .MuiSvgIcon-root {\n font-size: 1rem;\n }\n"]))),Se=function PromptHistoryItem(i){var C=i.id,w=i.date,x=i.onHistoryItemDelete,O=(0,j.default)(i,he),S=(0,le.usePromptHistoryAction)(),k=S.getAllowedActions,I=S.onPromptReuse,W=S.onResultEdit,$=S.onImagesRestore,Se=O.action,Pe=O.prompt,Ie=O.text,Re=O.images,Me=O.thumbnails,De=O.imageType,Fe=O.ratio,He=k();return R.default.createElement(ge,{tabIndex:"0","data-testid":"e-ph-i",disableGutters:!0,disablePadding:!0,actionsCount:Object.keys(He).length},R.default.createElement(ye,{component:"div",role:void 0},R.default.createElement(ve,null,R.default.createElement(ue.default,{action:Se})),R.default.createElement(N.ListItemText,{disableTypography:!0,primary:R.default.createElement(N.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",height:"16px"},R.default.createElement(se.default,{prompt:Pe}),R.default.createElement(Ce,{className:"e-prompt-history-item-actions"},He[le.ACTION_TYPES.REMOVE]&&R.default.createElement(ie.default,{onClick:function onClick(){return x(C)},"aria-label":(0,G.__)("Remove item","elementor"),tooltipTitle:(0,G.__)("Remove","elementor")},R.default.createElement(re.TrashIcon,null)),He[le.ACTION_TYPES.REUSE]&&R.default.createElement(ie.default,{onClick:function onClick(){return I(C,Pe)},"aria-label":(0,G.__)("Reuse prompt","elementor"),tooltipTitle:(0,G.__)("Reuse prompt","elementor")},R.default.createElement(ce.default,null)),He[le.ACTION_TYPES.RESTORE]&&R.default.createElement(ie.default,{onClick:function onClick(){return $(C,{prompt:Pe,images:Re,imageType:De,ratio:Fe})},"aria-label":(0,G.__)("Restore","elementor"),tooltipTitle:(0,G.__)("Restore","elementor")},R.default.createElement(oe.default,null)),He[le.ACTION_TYPES.EDIT]&&R.default.createElement(ie.default,{onClick:function onClick(){return W(C,Ie)},"aria-label":(0,G.__)("Edit result","elementor"),tooltipTitle:(0,G.__)("Edit","elementor")},R.default.createElement(J.default,null)))),secondary:R.default.createElement(de.default,{date:w,thumbnails:Me})})))};Se.propTypes={id:$.default.string.isRequired,action:$.default.string.isRequired,prompt:$.default.string.isRequired,date:$.default.string.isRequired,onHistoryItemDelete:$.default.func.isRequired,text:$.default.string,images:$.default.array,thumbnails:$.default.array,imageType:$.default.string,ratio:$.default.string};var Pe=Se;C.default=Pe},27199:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=x(w(49496)),N=w(22809),G=["id","date"],$=(0,I.styled)(I.List)((function(i){var C=i.theme;return{borderBottom:"1px solid ".concat(C.palette.action.focus)}})),J=(0,I.styled)(I.Typography)((function(i){var C=i.theme;return{padding:C.spacing(1.5,2),color:C.palette.secondary.light}})),re=(0,R.__)("F j, g:i A","elementor"),oe=function PromptHistoryPeriod(i){var C=i.periodTitle,w=i.historyItems,x=i.onHistoryItemDelete;return O.default.createElement($,{"data-testid":"e-ph-p",subheader:O.default.createElement(I.ListSubheader,{disableSticky:!0,disableGutters:!0},O.default.createElement(J,{variant:"body2",role:"heading","aria-level":"6"},C))},w.map((function(i){var C=i.id,w=i.date,I=(0,k.default)(i,G);return O.default.createElement(W.default,(0,S.default)({key:C,date:(0,N.translateDate)(re,w),onHistoryItemDelete:function onHistoryItemDelete(){return x(C)},id:C},I))})))};oe.propTypes={periodTitle:j.default.string.isRequired,historyItems:j.default.array.isRequired,onHistoryItemDelete:j.default.func.isRequired};var ie=oe;C.default=ie},49821:(i,C,w)=>{"use strict";var x=w(38003).sprintf,O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S,k=O(w(87363)),I=O(w(93231)),R=w(36626),j=w(38003),W=O(w(23615)),N=w(34029),G=w(62219),$="full",J="small",re=(S={},(0,I.default)(S,$,(0,j.__)("Want to see your %s generation history for as far as the past 90 days?","elementor")),(0,I.default)(S,J,(0,j.__)("Want to see your %s generation history for the past 90 days?","elementor")),S),oe=function PromptHistoryUpgrade(i){var C=i.variant,w=i.historyType;return k.default.createElement(R.Stack,{justifyContent:"center",sx:{height:J===C?"auto":"100%",textAlign:"center",p:2},"data-testid":"e-ph-upgrade-".concat(C)},k.default.createElement(R.Typography,{variant:"body1",sx:{marginBottom:2}},function getMessage(i,C){var w=re[i]||re[$],O=(0,G.getTranslatedPromptHistoryType)(C);return x(w,O)}(C,w)),k.default.createElement(R.Button,{variant:"contained",color:"promotion",size:"small",href:"https://go.elementor.com/ai-popup-purchase-dropdown/",target:"_blank",rel:"noopener noreferrer",startIcon:k.default.createElement(N.UpgradeIcon,null),sx:{width:"50%",alignSelf:"center","&:hover":{color:"promotion.contrastText"}}},(0,j.__)("Upgrade now","elementor")))};oe.propTypes={variant:W.default.oneOf([$,J]).isRequired,historyType:W.default.oneOf(Object.values(G.HISTORY_TYPES)).isRequired};var ie=oe;C.default=ie},84515:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(23615)),R=function PromptLibraryLink(i){return O.default.createElement(S.Typography,{variant:"body2",color:"text.secondary"},(0,k.__)("For more suggestions, explore our")," ",O.default.createElement(S.Link,{href:i.libraryLink,className:"elementor-clickable",target:"_blank"},(0,k.__)("prompt library")))};R.propTypes={libraryLink:I.default.string};var j=R;C.default=j},51391:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=w(38003),R=x(w(3491));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var j=(0,S.forwardRef)((function(i,C){return S.default.createElement(R.default,(0,k.default)({name:"prompt",placeholder:(0,I.__)("Describe the text and tone you want to use","elementor")+"..."},i,{ref:C}))}));C.default=j},79619:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(23615)),R=function PromptSuggestions(i){var C;return O.default.createElement(S.Box,null,O.default.createElement(S.Typography,{variant:"subtitle1",color:"text.secondary"},(0,k.__)("Suggested prompts","elementor")+":"),O.default.createElement(S.Stack,{direction:"column",alignItems:"flex-start",gap:1,sx:{my:1}},null===(C=i.suggestions)||void 0===C?void 0:C.map((function(C,w){var x;return O.default.createElement(S.Chip,{key:w,variant:"outlined",size:"large",color:"secondary",label:(null===(x=i.suggestionFilter)||void 0===x?void 0:x.call(i,C))||C,onClick:function onClick(){return i.onSelect(C)}})}))),i.children)};R.propTypes={suggestions:I.default.arrayOf(I.default.string),onSelect:I.default.func.isRequired,suggestionFilter:I.default.func,children:I.default.node};var j=R;C.default=j},87105:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=w(36626),R=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var j=(0,S.forwardRef)((function(i,C){return S.default.createElement(I.TextField,(0,k.default)({inputRef:C,multiline:!0,minRows:4,maxRows:20,color:"secondary"},i))}));j.propTypes={value:R.default.string,onChange:R.default.func,helperText:R.default.string};var W=j;C.default=W},33977:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=["children"],W=function Tooltip(i){var C=i.children,w=(0,k.default)(i,j);return O.default.createElement(I.Tooltip,(0,S.default)({componentsProps:{tooltip:{sx:{'&.MuiTooltip-tooltip[class*="MuiTooltip-tooltipPlacement"]':{m:0,fontSize:"10px",fontWeight:500,lineHeight:"1.4em"},py:.5,px:1}}}},w),C)};W.propTypes={children:R.default.oneOfType([R.default.arrayOf(R.default.node),R.default.node])};var N=W;C.default=N},39453:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=["children"],W=function OverlayBarText(i){var C=i.children,w=(0,k.default)(i,j);return O.default.createElement(I.Typography,(0,S.default)({variant:"caption",color:"common.white"},w),C)};W.propTypes={children:R.default.node};var N=W;C.default=N},28932:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=w(36626),O=(0,x.styled)(x.Stack)((function(i){var C=i.theme,w=i.position,x={width:"100%",position:"absolute",left:0,padding:C.spacing(2.5)};return"top"===w?x.top=0:"bottom"===w&&(x.bottom=0),x}));C.default=O},22231:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=w(36626),O=(0,x.styled)(x.Box)((function(i){var C=i.theme;return{width:"100%",height:"100%",position:"absolute",backgroundColor:"rgba(0,0,0,0.5)",transition:"opacity ".concat(C.transitions.duration.short,"ms ").concat(C.transitions.easing.easeInOut),opacity:0,"&:hover":{opacity:1}}}));C.default=O},86300:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=["sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=w(36626),R=x(w(23615)),j=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=(0,I.styled)(I.TextField)((function(){return{".wp-admin & .MuiInputBase-input, & .MuiInputBase-input:focus":{backgroundColor:"initial",boxShadow:"none",border:0,color:"inherit",outline:0,padding:"16.5px 14px 16.5px 0","&.MuiInputBase-inputSizeSmall":{padding:"8.5px 14px 8.5px 0"}}}})),N=(0,S.forwardRef)((function(i,C){return S.default.createElement(W,(0,k.default)({autoFocus:!0,fullWidth:!0,required:!0,size:"small",color:"secondary",InputProps:{autoComplete:"off",startAdornment:S.default.createElement(I.InputAdornment,{position:"start"},S.default.createElement(j.SearchIcon,null))},placeholder:i.placeholder,name:i.name,value:i.value,onChange:i.onChange},i,{inputRef:C}))}));N.propTypes={placeholder:R.default.string,name:R.default.string,value:R.default.string,onChange:R.default.func};var G=N;C.default=G},7124:(i,C,w)=>{"use strict";var x=w(38003).__,O=w(23615),S=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var k=S(w(87363)),I=S(w(73119)),R=S(w(70966)),j=w(36626),W=["onClose"],N=function UpgradeBanner(i){var C=i.onClose,w=(0,R.default)(i,W);return k.default.createElement(j.Alert,(0,I.default)({icon:!1,action:k.default.createElement(j.AlertAction,{onClick:function onClick(){return window.open("https://go.elementor.com/ai-banner-free-upgrade/","_blank")}},x("Upgrade","elementor")),variant:"filled",color:"promotion",onClose:C},w),x("You’re using a limited license. Get maximum access to Elementor AI.","elementor"))};N.propTypes={onClose:O.func,sx:O.object};var G=N;C.default=G},46369:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=w(38003),j=x(w(23615)),W=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var N=(0,I.styled)(I.Paper)((function(i){var C=i.theme;return{position:"relative",'[data-popper-placement="top"] &':{marginBottom:C.spacing(2.5)},'[data-popper-placement="bottom"] &':{marginTop:C.spacing(2.5)},padding:C.spacing(3),boxShadow:C.shadows[4],zIndex:"9999"}})),G=(0,I.styled)(I.Box)((function(i){var C=i.theme;return{width:C.spacing(5),height:C.spacing(2.5),position:"absolute",overflow:"hidden",left:"50% !important",transform:"translateX(-50%) rotate(var(--rotate, 0deg)) !important",'[data-popper-placement="top"] &':{top:"100%"},'[data-popper-placement="bottom"] &':{"--rotate":"180deg",top:"calc(".concat(C.spacing(2.5)," * -1)")},"&::after":{backgroundColor:C.palette.background.paper,content:'""',display:"block",position:"absolute",width:C.spacing(2.5),height:C.spacing(2.5),top:0,left:"50%",transform:"translateX(-50%) translateY(-50%) rotate(45deg)",boxShadow:"1px 1px 5px 0px rgba(0, 0, 0, 0.2)",backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"}}})),$=[(0,R.__)("Get spot-on suggestions from AI Copilot and AI Context with appropriate designs, layouts, and content for your business.","elementor"),(0,R.__)("Generate professional texts about any topic, in any tone.","elementor"),(0,R.__)("Effortlessly create or enhance stunning images and bring your ideas to life.","elementor"),(0,R.__)("Unleash infinite possibilities with the custom code generator.","elementor"),(0,R.__)("Access 30-days of AI History with the AI Starter plan and 90-days with the Power plan.","elementor")],J=(0,I.styled)(I.Chip)((function(){return{"& .MuiChip-label":{lineHeight:1.5},"& .MuiSvgIcon-root.MuiChip-icon":{fontSize:"1.25rem"}}})),re=function UpgradeChip(i){var C=i.hasSubscription,w=void 0!==C&&C,x=i.usagePercentage,O=void 0===x?0:x,j=(0,S.useState)(!1),re=(0,k.default)(j,2),oe=re[0],ie=re[1],le=(0,S.useRef)(null),ue=(0,S.useRef)(null),ce="https://go.elementor.com/ai-popup-purchase-dropdown/";w&&(ce=O>=100?"https://go.elementor.com/ai-popup-upgrade-limit-reached/":"https://go.elementor.com/ai-popup-upgrade-limit-reached-80-percent/");var se=w?(0,R.__)("Upgrade Elementor AI","elementor"):(0,R.__)("Get Elementor AI","elementor");return S.default.createElement(I.Box,{component:"span","aria-owns":oe?"e-ai-upgrade-popover":void 0,"aria-haspopup":"true",onMouseEnter:function showPopover(){return ie(!0)},onMouseLeave:function hidePopover(){return ie(!1)},ref:le,display:"flex",alignItems:"center"},S.default.createElement(J,{color:"promotion",label:(0,R.__)("Upgrade","elementor"),icon:S.default.createElement(W.AIIcon,null),size:"small"}),S.default.createElement(I.Popper,{open:oe,anchorEl:le.current,sx:{zIndex:"170001",maxWidth:300},modifiers:[{name:"arrow",enabled:!0,options:{element:ue.current}}]},S.default.createElement(N,null,S.default.createElement(G,{ref:ue}),S.default.createElement(I.Typography,{variant:"h5",color:"text.primary"},(0,R.__)("Unlimited access to Elementor AI","elementor")),S.default.createElement(I.List,{sx:{mb:1}},$.map((function(i,C){return S.default.createElement(I.ListItem,{key:C,disableGutters:!0,sx:{alignItems:"flex-start"}},S.default.createElement(I.ListItemIcon,null,S.default.createElement(W.CheckedCircleIcon,null)),S.default.createElement(I.ListItemText,{sx:{m:0}},S.default.createElement(I.Typography,{variant:"body2"},i)))}))),S.default.createElement(I.Button,{variant:"contained",color:"promotion",size:"small",href:ce,target:"_blank",startIcon:S.default.createElement(W.AIIcon,null),sx:{"&:hover":{color:"promotion.contrastText"}}},se))))},oe=re;C.default=oe,re.propTypes={hasSubscription:j.default.bool,usagePercentage:j.default.number}},24256:(i,C,w)=>{"use strict";var x=w(38003).sprintf,O=w(38003).__,S=w(23615),k=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var I,R,j,W,N,G,$=k(w(87363)),J=k(w(70966)),re=k(w(73119)),oe=k(w(93231)),ie=w(36626),le=w(44220),ue=["onClose","usagePercentage","hasSubscription","feature"],ce="subscription",se="noSubscription",de=function getUsageTitle(i){return x(O("You’ve used %s of credits for this AI feature.","elementor"),i)},he=de("95%"),ge=de("80%"),ye=de("75%"),ve=O("Get maximum access.","elementor"),Ce=Object.keys(le.FREE_TRIAL_FEATURES_NAMES),Se=[{threshold:95,title:(I={},(0,oe.default)(I,ce,he),(0,oe.default)(I,se,he),I),url:(R={},(0,oe.default)(R,ce,"https://go.elementor.com/ai-banner-paid-95-limit-reach/"),(0,oe.default)(R,se,"https://go.elementor.com/ai-banner-free-95-limit-reach/"),R),color:"error"},{threshold:80,title:(j={},(0,oe.default)(j,ce,ge),(0,oe.default)(j,se,ge),j),url:(W={},(0,oe.default)(W,ce,"https://go.elementor.com/ai-banner-paid-80-limit-reach/"),(0,oe.default)(W,se,"https://go.elementor.com/ai-banner-free-80-limit-reach/"),W),color:"warning"},{threshold:75,title:(N={},(0,oe.default)(N,ce,ye),(0,oe.default)(N,se,ye),N),url:(G={},(0,oe.default)(G,ce,"https://go.elementor.com/ai-banner-paid-80-limit-reach/"),(0,oe.default)(G,se,"https://go.elementor.com/ai-banner-free-80-limit-reach/"),G),color:"warning"}],Pe=function UpgradeButton(i){return $.default.createElement(ie.Button,(0,re.default)({color:"inherit",variant:"outlined",sx:{border:"2px solid"}},i),O("Upgrade now","elementor"))},Ie=function UsageLimitAlert(i){i.onClose;var C,w=i.usagePercentage,S=i.hasSubscription,k=i.feature,I=(0,J.default)(i,ue),R=Se.find((function(i){var C=i.threshold;return w>=C}));if(!R)return null;var j=S?ce:se,W=(C={},(0,oe.default)(C,ce,ve),(0,oe.default)(C,se,function getDescriptionNoSubscription(i){var C=Ce.filter((function(C){return C!==i})).map((function(i){return le.FREE_TRIAL_FEATURES_NAMES[i]})).join(", ");return x(O("Upgrade now to keep using this feature. You still have credits for other AI features (%s, etc.)","elementor"),C)}(k)),C),N=R.title,G=R.url,de=R.color;return $.default.createElement(ie.Alert,(0,re.default)({severity:"warning",action:$.default.createElement(Pe,{onClick:function handleUpgradeClick(){return window.open(G[j],"_blank")}}),color:de},I),$.default.createElement(ie.AlertTitle,null,N[j]),W[j])};Ie.propTypes={onClose:S.func,usagePercentage:S.number,hasSubscription:S.bool,feature:S.string};var Re=Ie;C.default=Re},86076:(i,C,w)=>{"use strict";var x=w(23615),O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=O(w(87363)),k=O(w(7124)),I=O(w(24256)),R=O(w(66604)),j=function UsageMessages(i){var C=i.hasSubscription,w=i.usagePercentage,x=i.sx,O=i.feature,j=(0,R.default)({usagePercentage:w,hasSubscription:C}),W=j.showBanner,N=j.markBannerAsViewed;return S.default.createElement(S.default.Fragment,null,W&&S.default.createElement(k.default,{onClose:N,sx:x}),S.default.createElement(I.default,{hasSubscription:C,usagePercentage:w,sx:x,feature:O}))};j.propTypes={hasSubscription:x.bool,usagePercentage:x.number,sx:x.object,feature:x.string};var W=j;C.default=W},90246:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.VoicePromotionAlert=void 0;var O=x(w(93231)),S=x(w(87363)),k=w(36626),I=x(w(21103)),R=x(w(24395)),j=x(w(23615)),W=w(38003);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(23615),O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.WizardDialogWrapper=void 0;var S=O(w(30313)),k=O(w(87363)),I=function WizardDialogWrapper(i){return k.default.createElement(S.default,{onClose:i.onClose},k.default.createElement(S.default.Header,{onClose:i.onClose}),k.default.createElement(S.default.Content,{dividers:!0},i.children))};C.WizardDialogWrapper=I,I.propTypes={onClose:x.func.isRequired,children:x.node.isRequired}},30313:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=x(w(78029)),N=["sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.RequestIdsProvider=void 0,C.generateIds=function generateIds(i){var C;i.id=j().toString(),null!==(C=i.elements)&&void 0!==C&&C.length&&i.elements.map((function(i){return generateIds(i)}));return i},C.useRequestIds=C.getUniqueId=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var R=(0,S.createContext)({});C.useRequestIds=function useRequestIds(){var i=(0,S.useContext)(R);if(!i)throw new Error("useRequestIds must be used within a RequestIdsProvider");return i};var j=function getUniqueId(i){return i+"-"+Math.random().toString(16).substr(2,7)};C.getUniqueId=j,window.EDITOR_SESSION_ID=window.EDITOR_SESSION_ID||j("editor-session");var W=function RequestIdsProvider(i){var C=(0,S.useRef)(window.EDITOR_SESSION_ID),w=(0,S.useRef)(""),x=(0,S.useRef)(""),O=(0,S.useRef)(""),I=(0,S.useRef)("");w.current=j("session");var W=(0,S.useState)(0),N=(0,k.default)(W,2),G=N[0],$=N[1];return S.default.createElement(R.Provider,{value:{editorSessionId:C,sessionId:w,generateId:x,batchId:O,requestId:I,setGenerate:function setGenerate(){return x.current=j("generate"),x},setBatch:function setBatch(){return O.current=j("batch"),O},setRequest:function setRequest(){return I.current=j("request"),I},usagePercentage:G,updateUsagePercentage:function updateUsagePercentage(i){$(i)}}},i.children)};C.RequestIdsProvider=W,W.propTypes={children:I.default.node.isRequired};var N=R;C.default=N},22809:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.translateDate=C.daysDiff=C.MONTH_JANUARY_INDEX=C.MONTH_DECEMBER_INDEX=void 0;C.MONTH_DECEMBER_INDEX=12;C.MONTH_JANUARY_INDEX=0;C.translateDate=function translateDate(i,C,w){var x,O;return null!==(x=window.wp)&&void 0!==x&&x.date?(0,(null===(O=window.wp)||void 0===O?void 0:O.date).dateI18n)(i,C,w):C};C.daysDiff=function daysDiff(i,C){var w=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()),x=Date.UTC(C.getFullYear(),C.getMonth(),C.getDate());return Math.floor((x-w)/864e5)}},44220:(i,C,w)=>{"use strict";var x=w(38003).__;Object.defineProperty(C,"__esModule",{value:!0}),C.FREE_TRIAL_FEATURES_NAMES=void 0;var O={TEXT:x("Text","elementor"),IMAGES:x("Images","elementor"),CODE:x("Code","elementor"),CONTAINERS:x("Containers","elementor")};C.FREE_TRIAL_FEATURES_NAMES=O},64593:(i,C,w)=>{"use strict";var x=w(23615),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.FocusOutListener=FocusOutListener,C.useFocusOutListener=function useFocusOutListener(){var i=S.useRef(null),C=S.useRef(null);return{indicatorRef:C,reset:function reset(){var i;return null===(i=C.current)||void 0===i?void 0:i.focus()},remove:function remove(){return clearTimeout(i.current)},runAction:function runAction(C){i.current=setTimeout(C,250)}}};var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function FocusOutListener(i){var C=i.children,w=i.listener,x=i.onFocusOut,O=w.indicatorRef,k=w.reset,I=w.remove,R=w.runAction;return S.useEffect((function(){return k(),I()}),[]),S.createElement(S.Fragment,null,C,S.createElement("input",{style:{width:0,height:0,padding:0,margin:0,outline:0,border:0,opacity:0,position:"fixed"},onFocus:I,onBlur:function onBlur(){return R(x)},ref:O}))}FocusOutListener.propTypes={children:x.node,listener:x.object,onFocusOut:x.func}},8227:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.vh=void 0;C.vh=function vh(i){return i*Math.max(document.documentElement.clientHeight,window.innerHeight||0)/100}},5348:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(93231)),k=x(w(10029)),I=w(46183),R=x(w(60675));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(10029)),k=x(w(40131)),I=w(87363),R=w(46183),j=function useDeletePromptHistoryItem(){var i=(0,I.useState)(!1),C=(0,k.default)(i,2),w=C[0],x=C[1],j=(0,I.useState)(""),W=(0,k.default)(j,2),N=W[0],G=W[1],$=function(){var i=(0,S.default)(O.default.mark((function _callee(i){return O.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",new Promise((function(C,w){G(""),x(!0),(0,R.deleteHistoryItem)(i).then((function(){C(!0)})).catch((function(i){var C=(null==i?void 0:i.responseText)||i;G(C),w(C)})).finally((function(){return x(!1)}))})));case 1:case"end":return C.stop()}}),_callee)})));return function deleteItem(C){return i.apply(this,arguments)}}();return{isLoading:w,error:N,deleteItem:$}};C.default=j},37714:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(10029)),k=w(46183),I=x(w(60675)),R=function useExcerptPrompt(i){return(0,I.default)(function(){var i=(0,S.default)(O.default.mark((function _callee(i){return O.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,k.getExcerpt)(i));case 1:case"end":return C.stop()}}),_callee)})));return function(C){return i.apply(this,arguments)}}(),i)};C.default=R},45524:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(10029)),k=w(46183),I=x(w(87327)),R=function useFeaturedImagePrompt(i){return(0,I.default)(function(){var i=(0,S.default)(O.default.mark((function _callee(i){return O.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,k.getFeaturedImage)(i));case 1:case"end":return C.stop()}}),_callee)})));return function(C){return i.apply(this,arguments)}}(),i)};C.default=R},66690:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(40131)),S=w(87363),k=function useImageNavigation(i){var C=(0,S.useState)(-1),w=(0,O.default)(C,2),x=w[0],k=w[1],I={reset:function reset(){return k(-1)},prev:function prev(){var C=x+1;C>=i.length&&(C=0),k(C)},next:function next(){var C=x-1;C<0&&(C=i.length-1),k(C)}};return{zoomIndex:x,setZoomIndex:k,actions:I}};C.default=k},30420:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(40131)),S=w(87363),k=function useImagesPreload(){var i=(0,S.useState)(!1),C=(0,O.default)(i,2),w=C[0],x=C[1];return{ready:w,preloadImages:function preloadImages(i){x(!1),Promise.all(i.map((function(i){return function loadImage(i){return new Promise((function(C,w){var x=new Image;x.src=i,x.onload=function(){return C(i)},x.onerror=function(i){return w(i)}}))}(i)}))).then((function(){return x(!0)})).catch((function(i){return console.log("Failed to load images",i)}))}}};C.default=k},24395:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=function useIntroduction(i){var C,w,x,k,I=window.elementor?null===(C=window.elementor.config)||void 0===C?void 0:C.user:null===(w=window.elementorAdmin)||void 0===w||null===(x=w.config)||void 0===x?void 0:x.user,R=(0,S.useState)(!(null==I||null===(k=I.introduction)||void 0===k||!k[i])),j=(0,O.default)(R,2),W=j[0],N=j[1];return{isViewed:W,markAsViewed:function markAsViewed(){return i?new Promise((function(C,w){W&&w(),N(!0),elementorCommon.ajax.addRequest("introduction_viewed",{data:{introductionKey:i},error:function error(){N(!1),w()},success:function success(){N(!0),null!=I&&I.introduction&&(I.introduction[i]=!0),C()}})})):Promise.reject()}}};var O=x(w(40131)),S=w(87363)},8817:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(60675)),k=w(25455),I=new Map([["media",O.getImagePromptEnhanced],["layout",O.getLayoutPromptEnhanced]]),R=function usePromptEnhancer(i,C){var w=(0,k.useConfig)().mode,x=(0,S.default)((function(){return function getResult(i,C,w){if(!I.has(C))throw new Error("Invalid prompt type: ".concat(C));return I.get(C)(i,w)}(i,C,w)}),i),O=x.data,R=x.isLoading;return{enhance:x.send,isEnhancing:R,enhancedPrompt:null==O?void 0:O.result}};C.default=R},87984:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(9833)),k=x(w(10029)),I=x(w(40131)),R=x(w(93231)),j=w(87363),W=w(46183);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(93231)),k=x(w(10029)),I=x(w(40131)),R=x(w(70966)),j=w(87363),W=w(46183),N=w(35879),G=["text","response_id","usage","images"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
1&&void 0!==arguments[1]?arguments[1]:null,w=_objectSpread({},ue);w.result=i,C&&(w.responseId=C),ce(w)},reset:function reset(){ce((function(i){return{credits:i.credits,result:"",responseId:""}})),oe(""),R(!1)},send:Ie,sendUsageData:function sendUsageData(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue;return i.responseId&&(0,W.setStatusFeedback)(i.responseId)}}};C.default=J},65441:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(10029)),k=w(46183),I=x(w(60675)),R=function(){var i=(0,S.default)(O.default.mark((function _callee(i){return O.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:if(null==i||!i.instruction){C.next=2;break}return C.abrupt("return",(0,k.getEditText)(i));case 2:return C.abrupt("return",(0,k.getCompletionText)(i));case 3:case"end":return C.stop()}}),_callee)})));return function getTextResult(C){return i.apply(this,arguments)}}(),j=function useTextPrompt(i){return(0,I.default)(R,i)};C.default=j},74859:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.useTimeout=void 0;var O=x(w(40131)),S=w(87363);C.useTimeout=function useTimeout(i){var C=(0,S.useState)(!1),w=(0,O.default)(C,2),x=w[0],k=w[1],I=(0,S.useRef)(null);return(0,S.useEffect)((function(){return I.current=setTimeout((function(){k(!0)}),i),function(){clearTimeout(I.current)}}),[i]),[x,function turnOffTimeout(){clearTimeout(I.current),k(!1)}]}},66604:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.USAGE_PERCENTAGE_THRESHOLD=void 0;var O=x(w(24395));C.USAGE_PERCENTAGE_THRESHOLD=75;var S=function useUpgradeMessage(i){var C=i.usagePercentage,w=i.hasSubscription,x=(0,O.default)("e-ai-upgrade-message"),S=!w;return{showBadge:C>=75||S,showBanner:!x.isViewed&&S&&C<75,markBannerAsViewed:x.markAsViewed}};C.default=S},5647:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(93231)),k=x(w(10029)),I=x(w(40131)),R=w(87363),j=w(46183),W=x(w(23615));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
0&&void 0!==arguments[0]&&arguments[0],C=(0,R.useState)(!1),w=(0,I.default)(C,2),x=w[0],S=w[1],W=(0,R.useState)(!1),N=(0,I.default)(W,2),G=N[0],$=N[1],J=(0,R.useState)({is_connected:!1,is_get_started:!1,connect_url:"",usage:{hasAiSubscription:!1,quota:0,usedQuota:0}}),re=(0,I.default)(J,2),oe=re[0],ie=re[1],le=oe.usage.quota-oe.usage.usedQuota,ue=oe.usage.quota?oe.usage.usedQuota/oe.usage.quota*100:0,ce=function(){var C=(0,k.default)(O.default.mark((function _callee(){var C;return O.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return $(!0),w.next=3,(0,j.getUserInformation)(i);case 3:C=w.sent,ie((function(i){return _objectSpread(_objectSpread({},i),C)})),S(!0),$(!1);case 7:case"end":return w.stop()}}),_callee)})));return function fetchData(){return C.apply(this,arguments)}}();return x||G||ce(),{isLoading:G,isLoaded:x,isConnected:oe.is_connected,isGetStarted:oe.is_get_started,connectUrl:oe.connect_url,builderUrl:oe.usage.builderUrl,hasSubscription:oe.usage.hasAiSubscription,credits:le<0?0:le,usagePercentage:Math.round(ue),fetchData:ce}};N.propTypes={immediately:W.default.bool};var G=N;C.default=G},62682:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53033 7.46967C9.82322 7.76256 9.82322 8.23744 9.53033 8.53033L6.81066 11.25H19C19.4142 11.25 19.75 11.5858 19.75 12C19.75 12.4142 19.4142 12.75 19 12.75H6.81066L9.53033 15.4697C9.82322 15.7626 9.82322 16.2374 9.53033 16.5303C9.23744 16.8232 8.76256 16.8232 8.46967 16.5303L4.46967 12.5303C4.17678 12.2374 4.17678 11.7626 4.46967 11.4697L8.46967 7.46967C8.76256 7.17678 9.23744 7.17678 9.53033 7.46967Z"}))}));C.default=I},88371:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=w(36626),k=x(w(87363)),I=k.default.forwardRef((function(i,C){return k.default.createElement(S.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),k.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"}))}));C.default=I},21103:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({},i,{ref:C}),S.default.createElement("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.default.createElement("g",{clipPath:"url(#clip0_10743_8902)"},S.default.createElement("path",{d:"M2.75 10.0833H3.66667M11 2.75V3.66667M18.3333 10.0833H19.25M5.13333 5.13333L5.775 5.775M16.8667 5.13333L16.225 5.775",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),S.default.createElement("path",{d:"M9.16675 16.041C8.70841 15.1243 6.91205 13.2842 6.62523 12.366C6.3384 11.4477 6.34775 10.4626 6.65195 9.54997C6.95615 8.63738 7.53978 7.84362 8.32016 7.28116C9.10054 6.71869 10.0381 6.41602 11.0001 6.41602C11.962 6.41602 12.8996 6.71869 13.68 7.28116C14.4604 7.84362 15.044 8.63738 15.3482 9.54997C15.6524 10.4626 15.6618 11.4477 15.3749 12.366C15.0881 13.2842 13.2917 15.1243 12.8334 16.041C12.8334 16.041 12.7597 17.3762 12.8334 17.8743C12.8334 18.3606 12.6403 18.8269 12.2964 19.1707C11.9526 19.5145 11.4863 19.7077 11.0001 19.7077C10.5139 19.7077 10.0475 19.5145 9.70372 19.1707C9.3599 18.8269 9.16675 18.3606 9.16675 17.8743C9.2405 17.3762 9.16675 16.041 9.16675 16.041Z",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),S.default.createElement("path",{d:"M10.0833 16.5H11.9166",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),S.default.createElement("defs",null,S.default.createElement("clipPath",{id:"clip0_10743_8902"},S.default.createElement("rect",{width:"22",height:"22",fill:"white"})))))}));C.default=I},82752:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}))}));C.default=I},49448:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}))}));C.default=I},78230:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 16 16"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6668 11.8334H3.66679C3.53235 11.8334 3.40357 11.7792 3.30952 11.6832L0.505518 8.81921L0.504041 8.81772C0.287672 8.59928 0.16626 8.30423 0.16626 7.99671C0.16626 7.68849 0.288225 7.3928 0.505518 7.17421L0.506568 7.17316L7.17323 0.506492L7.17429 0.505442C7.39288 0.288149 7.68857 0.166183 7.99679 0.166183C8.30501 0.166183 8.6007 0.288149 8.81929 0.505442L8.82034 0.50649L12.1547 3.84088C12.372 4.05947 12.494 4.35516 12.494 4.66338C12.494 4.97134 12.3722 5.26679 12.1553 5.48533L12.1547 5.48588L6.86473 10.8334H10.6668C10.9429 10.8334 11.1668 11.0572 11.1668 11.3334C11.1668 11.6095 10.9429 11.8334 10.6668 11.8334ZM7.87959 1.21435C7.91079 1.18349 7.9529 1.16618 7.99679 1.16618C8.04067 1.16618 8.08278 1.18349 8.11398 1.21434L11.4455 4.54588C11.4763 4.57707 11.494 4.61951 11.494 4.66338C11.494 4.70741 11.4766 4.74965 11.4455 4.78088L11.4447 4.78174L10.0411 6.20059L6.46721 2.62673L7.87959 1.21435ZM5.7601 3.33383L1.21473 7.87921C1.18387 7.91041 1.16626 7.95282 1.16626 7.99671C1.16626 8.04074 1.18368 8.08298 1.21473 8.11421L1.2174 8.11691L3.877 10.8334H5.4581L9.33779 6.91152L5.7601 3.33383Z"}))}));C.default=I},94345:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",d:"M7.53 7.47a.75.75 0 0 1 0 1.06L4.06 12l3.47 3.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0ZM16.47 7.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 1 1-1.06-1.06L19.94 12l-3.47-3.47a.75.75 0 0 1 0-1.06ZM14.182 3.272a.75.75 0 0 1 .546.91l-4 16a.75.75 0 0 1-1.456-.364l4-16a.75.75 0 0 1 .91-.546Z",clipRule:"evenodd"}))}));C.default=I},85541:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}),S.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"}))}));C.default=I},68873:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6667 0.208496C17.0534 0.208496 17.4244 0.362142 17.6979 0.635632C17.9714 0.909123 18.125 1.28006 18.125 1.66683V11.6668C18.125 12.0536 17.9714 12.4245 17.6979 12.698C17.4244 12.9715 17.0534 13.1252 16.6667 13.1252H14.7917V16.6668C14.7917 17.0536 14.638 17.4245 14.3645 17.698C14.091 17.9715 13.7201 18.1252 13.3333 18.1252H3.33333C2.94656 18.1252 2.57563 17.9715 2.30214 17.698C2.02865 17.4245 1.875 17.0536 1.875 16.6668V6.66683C1.875 6.28005 2.02865 5.90912 2.30214 5.63563C2.57563 5.36214 2.94656 5.2085 3.33333 5.2085H5.20833V1.66683C5.20833 1.28005 5.36198 0.909122 5.63547 0.635632C5.90896 0.362142 6.27989 0.208496 6.66667 0.208496H16.6667ZM6.66667 1.4585C6.61141 1.4585 6.55842 1.48045 6.51935 1.51952C6.48028 1.55859 6.45833 1.61158 6.45833 1.66683V3.54183H8.54167V1.4585H6.66667ZM3.125 9.79183V16.6668C3.125 16.7221 3.14695 16.7751 3.18602 16.8141C3.22509 16.8532 3.27808 16.8752 3.33333 16.8752H13.3333C13.3886 16.8752 13.4416 16.8532 13.4806 16.8141C13.5197 16.7751 13.5417 16.7221 13.5417 16.6668V13.1252H6.66667C6.27989 13.1252 5.90896 12.9715 5.63547 12.698C5.36198 12.4245 5.20833 12.0536 5.20833 11.6668V9.79183H3.125ZM5.20833 8.54183H3.125V6.66683C3.125 6.61158 3.14695 6.55859 3.18602 6.51952C3.22509 6.48045 3.27808 6.4585 3.33333 6.4585H5.20833V8.54183ZM6.45833 11.6668C6.45833 11.7221 6.48028 11.7751 6.51935 11.8141C6.55842 11.8532 6.61141 11.8752 6.66667 11.8752H16.6667C16.7219 11.8752 16.7749 11.8532 16.814 11.8141C16.853 11.7751 16.875 11.7221 16.875 11.6668V4.79183H6.45833V11.6668ZM9.79167 1.4585V3.54183H16.875V1.66683C16.875 1.61157 16.853 1.55858 16.814 1.51952C16.7749 1.48045 16.7219 1.4585 16.6667 1.4585H9.79167Z"}))}));C.default=I},90350:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}),S.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"}),S.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"}))}));C.default=I},33375:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}),S.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"}))}));C.default=I},46819:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}))}));C.default=I},18578:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=O.default.forwardRef((function(i,C){return O.default.createElement(k.SvgIcon,(0,S.default)({viewBox:"0 0 24 24"},i,{ref:C}),O.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"}))}));C.default=I},49294:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 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.58579 3.58579 3.25 4 3.25ZM13.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 16V20C20.75 20.4142 20.4142 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.4697Z"}))}));C.default=I},7882:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}))}));C.default=I},30344:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.8125 11.9996C7.29473 11.9996 6.875 12.4473 6.875 12.9996V18.9996C6.875 19.5519 7.29473 19.9996 7.8125 19.9996H17.1875C17.7053 19.9996 18.125 19.5519 18.125 18.9996V12.9996C18.125 12.4473 17.7053 11.9996 17.1875 11.9996H7.8125ZM5 12.9996C5 11.3428 6.2592 9.99963 7.8125 9.99963H17.1875C18.7408 9.99963 20 11.3428 20 12.9996V18.9996C20 20.6565 18.7408 21.9996 17.1875 21.9996H7.8125C6.2592 21.9996 5 20.6565 5 18.9996V12.9996Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 3.90527C11.7044 3.90527 10.9413 4.22134 10.3787 4.78395C9.81607 5.34656 9.5 6.10962 9.5 6.90527V10.9053C9.5 11.4576 9.05228 11.9053 8.5 11.9053C7.94772 11.9053 7.5 11.4576 7.5 10.9053V6.90527C7.5 5.57919 8.02678 4.30742 8.96447 3.36974C9.90215 2.43206 11.1739 1.90527 12.5 1.90527C13.8261 1.90527 15.0979 2.43206 16.0355 3.36974C16.9732 4.30742 17.5 5.57919 17.5 6.90527V10.9053C17.5 11.4576 17.0523 11.9053 16.5 11.9053C15.9477 11.9053 15.5 11.4576 15.5 10.9053V6.90527C15.5 6.10962 15.1839 5.34656 14.6213 4.78395C14.0587 4.22134 13.2956 3.90527 12.5 3.90527Z"}),S.default.createElement("path",{d:"M6 12H19V20H6V12Z"}))}));C.default=I},7377:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.46967 3.46967C3.76256 3.17678 4.23744 3.17678 4.53033 3.46967L9.25 8.18934V6C9.25 5.58579 9.58579 5.25 10 5.25C10.4142 5.25 10.75 5.58579 10.75 6V10C10.75 10.4142 10.4142 10.75 10 10.75H6C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25H8.18934L3.46967 4.53033C3.17678 4.23744 3.17678 3.76256 3.46967 3.46967ZM14 13.25H18C18.4142 13.25 18.75 13.5858 18.75 14C18.75 14.4142 18.4142 14.75 18 14.75H15.8107L20.5303 19.4697C20.8232 19.7626 20.8232 20.2374 20.5303 20.5303C20.2374 20.8232 19.7626 20.8232 19.4697 20.5303L14.75 15.8107V18C14.75 18.4142 14.4142 18.75 14 18.75C13.5858 18.75 13.25 18.4142 13.25 18V14C13.25 13.5858 13.5858 13.25 14 13.25Z"}))}));C.default=I},78170:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{d:"M12 2.69231C6.8595 2.69231 2.69231 6.8595 2.69231 12C2.69231 17.1405 6.8595 21.3077 12 21.3077C17.1405 21.3077 21.3077 17.1405 21.3077 12C21.3077 6.8595 17.1405 2.69231 12 2.69231ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 7.76923C12.4673 7.76923 12.8462 8.14807 12.8462 8.61538V11.1538H15.3846C15.8519 11.1538 16.2308 11.5327 16.2308 12C16.2308 12.4673 15.8519 12.8462 15.3846 12.8462H12.8462V15.3846C12.8462 15.8519 12.4673 16.2308 12 16.2308C11.5327 16.2308 11.1538 15.8519 11.1538 15.3846V12.8462H8.61538C8.14807 12.8462 7.76923 12.4673 7.76923 12C7.76923 11.5327 8.14807 11.1538 8.61538 11.1538H11.1538V8.61538C11.1538 8.14807 11.5327 7.76923 12 7.76923Z"}))}));C.default=I},61433:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}))}));C.default=I},28965:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}),S.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"}))}));C.default=I},36138:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 16 16"},i,{ref:C}),S.default.createElement("path",{d:"M5.74996 2.50038C5.74996 2.2242 5.52607 2.00031 5.24989 2.00031C4.9737 2.00031 4.74981 2.2242 4.74981 2.50038V2.50705C4.74981 2.78323 4.9737 3.00712 5.24989 3.00712C5.52607 3.00712 5.74996 2.78323 5.74996 2.50705V2.50038Z"}),S.default.createElement("path",{d:"M7.9997 2.00031C8.27588 2.00031 8.49978 2.2242 8.49978 2.50038V2.50705C8.49978 2.78323 8.27588 3.00712 7.9997 3.00712C7.72352 3.00712 7.49963 2.78323 7.49963 2.50705V2.50038C7.49963 2.2242 7.72352 2.00031 7.9997 2.00031Z"}),S.default.createElement("path",{d:"M11.2496 2.50038C11.2496 2.2242 11.0257 2.00031 10.7495 2.00031C10.4733 2.00031 10.2494 2.2242 10.2494 2.50038V2.50705C10.2494 2.78323 10.4733 3.00712 10.7495 3.00712C11.0257 3.00712 11.2496 2.78323 11.2496 2.50705V2.50038Z"}),S.default.createElement("path",{d:"M13.4993 2.00031C13.7755 2.00031 13.9994 2.2242 13.9994 2.50038V2.50705C13.9994 2.78323 13.7755 3.00712 13.4993 3.00712C13.2231 3.00712 12.9993 2.78323 12.9993 2.50705V2.50038C12.9993 2.2242 13.2231 2.00031 13.4993 2.00031Z"}),S.default.createElement("path",{d:"M13.9994 5.25019C13.9994 4.97401 13.7755 4.75012 13.4993 4.75012C13.2231 4.75012 12.9993 4.97401 12.9993 5.25019V5.25686C12.9993 5.53304 13.2231 5.75694 13.4993 5.75694C13.7755 5.75694 13.9994 5.53304 13.9994 5.25686V5.25019Z"}),S.default.createElement("path",{d:"M13.9994 8.00001C13.9994 7.72382 13.7755 7.49993 13.4993 7.49993C13.2231 7.49993 12.9993 7.72382 12.9993 8.00001V8.00667C12.9993 8.28286 13.2231 8.50675 13.4993 8.50675C13.7755 8.50675 13.9994 8.28286 13.9994 8.00667V8.00001Z"}),S.default.createElement("path",{d:"M2.50007 7.49993C2.77626 7.49993 3.00015 7.72382 3.00015 8.00001V8.00667C3.00015 8.28286 2.77626 8.50675 2.50007 8.50675C2.22389 8.50675 2 8.28286 2 8.00667V8.00001C2 7.72382 2.22389 7.49993 2.50007 7.49993Z"}),S.default.createElement("path",{d:"M3.00015 5.25019C3.00015 4.97401 2.77626 4.75012 2.50007 4.75012C2.22389 4.75012 2 4.97401 2 5.25019V5.25686C2 5.53304 2.22389 5.75694 2.50007 5.75694C2.77626 5.75694 3.00015 5.53304 3.00015 5.25686V5.25019Z"}),S.default.createElement("path",{d:"M2.50007 2.00031C2.77626 2.00031 3.00015 2.2242 3.00015 2.50038V2.50705C3.00015 2.78323 2.77626 3.00712 2.50007 3.00712C2.22389 3.00712 2 2.78323 2 2.50705V2.50038C2 2.2242 2.22389 2.00031 2.50007 2.00031Z"}),S.default.createElement("path",{d:"M9.37461 7.31255C9.94411 7.31255 10.4058 6.85088 10.4058 6.28137C10.4058 5.71187 9.94411 5.25019 9.37461 5.25019C8.8051 5.25019 8.34343 5.71187 8.34343 6.28137C8.34343 6.85088 8.8051 7.31255 9.37461 7.31255Z"}),S.default.createElement("path",{d:"M9.37461 9.21061L7.6724 7.44357L7.66567 7.43672C7.27331 7.04478 6.79598 6.81248 6.28107 6.81248C5.76615 6.81248 5.28883 7.04478 4.89647 7.43672L4.88973 7.44358L2.13992 10.2982C2.05015 10.3913 2 10.5157 2 10.6451V13.4996C2 13.7758 2.22389 13.9997 2.50007 13.9997H13.4993C13.7755 13.9997 13.9994 13.7758 13.9994 13.4996V10.6451C13.9994 10.6365 13.9992 10.6279 13.9988 10.6194C13.9958 10.562 13.9833 10.5072 13.9627 10.4566C13.9409 10.403 13.9093 10.3523 13.8681 10.3073C13.8651 10.304 13.8621 10.3008 13.859 10.2976L12.4846 8.87085L12.4778 8.86399C12.0855 8.47205 11.6082 8.23975 11.0932 8.23975C10.5783 8.23975 10.101 8.47205 9.70864 8.86399L9.70191 8.87084L9.37461 9.21061ZM5.60649 8.14113L3.00015 10.8468V12.9996H12.9993V10.8468L11.7678 9.5684C11.5234 9.32549 11.2897 9.2399 11.0932 9.2399C10.8968 9.2399 10.6631 9.32549 10.4187 9.5684L10.069 9.93142L11.1097 11.0118C11.3013 11.2107 11.2954 11.5272 11.0965 11.7188C10.8975 11.9104 10.581 11.9045 10.3894 11.7056L9.01604 10.28C9.01482 10.2787 9.01361 10.2775 9.01241 10.2762L6.95564 8.14113C6.7112 7.89822 6.4775 7.81263 6.28107 7.81263C6.08463 7.81263 5.85094 7.89822 5.60649 8.14113Z"}))}));C.default=I},37069:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 16 16"},i,{ref:C}),S.default.createElement("path",{d:"M4.35355 1.64645C4.54882 1.84171 4.54882 2.15829 4.35355 2.35355L2.35355 4.35355C2.15829 4.54882 1.84171 4.54882 1.64645 4.35355C1.45118 4.15829 1.45118 3.84171 1.64645 3.64645L3.64645 1.64645C3.84171 1.45118 4.15829 1.45118 4.35355 1.64645Z"}),S.default.createElement("path",{d:"M7.68689 1.64645C7.88215 1.84171 7.88215 2.15829 7.68689 2.35355L2.35355 7.68689C2.15829 7.88215 1.84171 7.88215 1.64645 7.68689C1.45118 7.49162 1.45118 7.17504 1.64645 6.97978L6.97978 1.64645C7.17504 1.45118 7.49162 1.45118 7.68689 1.64645Z"}),S.default.createElement("path",{d:"M11.0202 1.64645C11.2155 1.84171 11.2155 2.15829 11.0202 2.35355L6.68689 6.68689C6.49162 6.88215 6.17504 6.88215 5.97978 6.68689C5.78452 6.49162 5.78452 6.17504 5.97978 5.97978L10.3131 1.64645C10.5084 1.45118 10.825 1.45118 11.0202 1.64645Z"}),S.default.createElement("path",{d:"M14.3536 1.64645C14.5488 1.84171 14.5488 2.15829 14.3536 2.35355L11.0202 5.68689C10.825 5.88215 10.5084 5.88215 10.3131 5.68689C10.1179 5.49162 10.1179 5.17504 10.3131 4.97978L13.6464 1.64645C13.8417 1.45118 14.1583 1.45118 14.3536 1.64645Z"}),S.default.createElement("path",{d:"M14.3536 4.97978C14.5488 5.17504 14.5488 5.49162 14.3536 5.68689L12.0202 8.02022C11.825 8.21548 11.5084 8.21548 11.3131 8.02022C11.1179 7.82496 11.1179 7.50838 11.3131 7.31311L13.6464 4.97978C13.8417 4.78452 14.1583 4.78452 14.3536 4.97978Z"}),S.default.createElement("path",{d:"M14.3536 8.31311C14.5488 8.50838 14.5488 8.82496 14.3536 9.02022L14.0202 9.35355C13.825 9.54882 13.5084 9.54882 13.3131 9.35355C13.1179 9.15829 13.1179 8.84171 13.3131 8.64645L13.6464 8.31311C13.8417 8.11785 14.1583 8.11785 14.3536 8.31311Z"}),S.default.createElement("path",{d:"M10.3333 7C10.3333 7.55228 9.88562 8 9.33333 8C8.78105 8 8.33333 7.55228 8.33333 7C8.33333 6.44772 8.78105 6 9.33333 6C9.88562 6 10.3333 6.44772 10.3333 7Z"}),S.default.createElement("path",{d:"M6.33333 8.5C6.14679 8.5 5.92267 8.58153 5.6867 8.81725C5.67587 8.82806 5.66455 8.83838 5.65278 8.84816L2.5 11.4665V13.5H13.5V11.2318C13.5 10.9556 13.7239 10.7318 14 10.7318C14.2761 10.7318 14.5 10.9556 14.5 11.2318V14C14.5 14.2761 14.2761 14.5 14 14.5H2C1.72386 14.5 1.5 14.2761 1.5 14V11.2318C1.5 11.0831 1.56617 10.9421 1.68056 10.8471L4.99717 8.09274C5.37661 7.72073 5.83674 7.5 6.33333 7.5C6.83746 7.5 7.304 7.72747 7.6867 8.10976L7.69343 8.11662L11.0268 11.5769C11.2183 11.7758 11.2124 12.0923 11.0136 12.2839C10.8147 12.4755 10.4981 12.4696 10.3066 12.2707L6.97679 8.81408C6.74199 8.5808 6.51904 8.5 6.33333 8.5Z"}),S.default.createElement("path",{d:"M10.3564 10.1984L9.69343 10.8866C9.50185 11.0854 9.18532 11.0914 8.98645 10.8998C8.78757 10.7082 8.78166 10.3917 8.97324 10.1928L9.6399 9.50073L9.64663 9.49387C10.4992 8.64223 11.843 8.83788 12.6387 9.45172C12.6435 9.45538 12.6482 9.45913 12.6528 9.46297L14.3194 10.8471C14.5319 11.0235 14.5611 11.3388 14.3846 11.5512C14.2082 11.7636 13.893 11.7928 13.6806 11.6164L12.0213 10.2384C11.4855 9.82976 10.7405 9.81862 10.3564 10.1984Z"}))}));C.default=I},71688:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",d:"M11.913 3.22a8.781 8.781 0 0 1 3.367.634.75.75 0 1 1-.56 1.392A7.281 7.281 0 0 0 8.25 18.24V15a.75.75 0 0 1 1.5 0v4.433a.73.73 0 0 1 0 .034V20a.75.75 0 0 1-.75.75H4a.75.75 0 0 1 0-1.5h3.045a8.782 8.782 0 0 1 4.868-16.03ZM18.37 6.41a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM13 19.19a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM16.84 17.62a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM19.37 14.35a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM19.94 10.25a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0V11a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))}));C.default=I},28221:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",d:"M4.25 5A.75.75 0 0 1 5 4.25h14a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V5.75H5.75V7a.75.75 0 0 1-1.5 0V5Z",clipRule:"evenodd"}),S.default.createElement("path",{fillRule:"evenodd",d:"M12 4.25a.75.75 0 0 1 .75.75v14a.75.75 0 0 1-1.5 0V5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}),S.default.createElement("path",{fillRule:"evenodd",d:"M9.25 19a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))}));C.default=I},58155:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}))}));C.default=I},55995:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}),S.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"}),S.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"}))}));C.default=I},54572:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.16707 3.95837C4.11182 3.95837 4.05883 3.98032 4.01976 4.01939C3.98069 4.05846 3.95874 4.11145 3.95874 4.16671V6.04171H6.04207V3.95837H4.16707ZM4.16707 2.70837C3.7803 2.70837 3.40937 2.86202 3.13588 3.13551C2.86239 3.409 2.70874 3.77993 2.70874 4.16671V15.8334C2.70874 16.2201 2.86239 16.5911 3.13588 16.8646C3.40937 17.1381 3.7803 17.2917 4.16707 17.2917H15.8337C16.2205 17.2917 16.5914 17.1381 16.8649 16.8646C17.1384 16.5911 17.2921 16.2201 17.2921 15.8334V4.16671C17.2921 3.77993 17.1384 3.409 16.8649 3.13551C16.5914 2.86202 16.2205 2.70837 15.8337 2.70837H4.16707ZM7.29207 3.95837V6.04171H16.0421V4.16671C16.0421 4.11145 16.0201 4.05846 15.9811 4.01939C15.942 3.98032 15.889 3.95837 15.8337 3.95837H7.29207ZM16.0421 7.29171H3.95874V15.8334C3.95874 15.8886 3.98069 15.9416 4.01976 15.9807C4.05883 16.0198 4.11182 16.0417 4.16707 16.0417H15.8337C15.889 16.0417 15.942 16.0198 15.9811 15.9807C16.0201 15.9416 16.0421 15.8886 16.0421 15.8334V7.29171Z"}))}));C.default=I},941:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{d:"M12 2.69231C6.8595 2.69231 2.69231 6.8595 2.69231 12C2.69231 17.1405 6.8595 21.3077 12 21.3077C17.1405 21.3077 21.3077 17.1405 21.3077 12C21.3077 6.8595 17.1405 2.69231 12 2.69231ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM9.14527 9.14527C9.47571 8.81483 10.0115 8.81483 10.3419 9.14527L12 10.8034L13.6581 9.14527C13.9885 8.81483 14.5243 8.81483 14.8547 9.14527C15.1852 9.47571 15.1852 10.0115 14.8547 10.3419L13.1966 12L14.8547 13.6581C15.1852 13.9885 15.1852 14.5243 14.8547 14.8547C14.5243 15.1852 13.9885 15.1852 13.6581 14.8547L12 13.1966L10.3419 14.8547C10.0115 15.1852 9.47571 15.1852 9.14527 14.8547C8.81483 14.5243 8.81483 13.9885 9.14527 13.6581L10.8034 12L9.14527 10.3419C8.81483 10.0115 8.81483 9.47571 9.14527 9.14527Z"}))}));C.default=I},80897:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.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"}),S.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"}),S.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"}),S.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"}))}));C.default=I},4978:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var w=Marionette.Behavior.extend({ui:{aiTitlesButton:"#elementor-navigator__ai-titles"},events:{"click @ui.aiTitlesButton":"aiTitleClickHandler"},initialize:function initialize(){try{this.getTemplate()}catch(i){this.hasTemplate=!1}},getTemplate:function getTemplate(){var i=jQuery("
",{id:"elementor-navigator__ai-titles"});return i.html('
'),i[0].outerHTML},aiTitleClickHandler:function aiTitleClickHandler(){window.location.hash="welcome-ai-return-to-ai-titles",window.addEventListener("hashchange",this.handleHashChange.bind(this))},handleHashChange:function handleHashChange(){var i;null!==(i=elementorCommon.config.library_connect)&&void 0!==i&&i.is_connected&&window.location.hash.includes("ai-titles")&&(window.location.hash="",window.location.reload())},onShow:function onShow(){var i;if(null!==(i=elementorCommon.config.library_connect)&&void 0!==i&&i.is_connected)this.ui.aiTitlesButton.remove();else{var C=this.view.$el.find("#elementor-navigator__toggle-all");C.length&&C.after(this.getTemplate())}}});C.default=w},42637:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=x(w(23615)),I=function LayoutAppWrapper(i){return O.default.createElement(S.DirectionProvider,{rtl:i.isRTL},O.default.createElement(S.ThemeProvider,{colorScheme:i.colorScheme},i.children))};I.propTypes={children:k.default.node,isRTL:k.default.bool,colorScheme:k.default.oneOf(["auto","light","dark"])};var R=I;C.default=R},78949:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(23615)),k=x(w(26457)),I=w(77292),R=w(25455),j=w(84157),W=w(35879),N=function LayoutApp(i){return O.default.createElement(j.RemoteConfigProvider,{onError:i.onClose},O.default.createElement(W.RequestIdsProvider,null,O.default.createElement(R.ConfigProvider,{mode:i.mode,attachmentsTypes:i.attachmentsTypes,onClose:i.onClose,onConnect:i.onConnect,onData:i.onData,onInsert:i.onInsert,onSelect:i.onSelect,onGenerate:i.onGenerate,currentContext:i.currentContext,hasPro:i.hasPro},O.default.createElement(k.default,{attachments:i.attachments}))))};N.propTypes={mode:S.default.oneOf(R.LAYOUT_APP_MODES).isRequired,attachmentsTypes:I.AttachmentsTypesPropType,attachments:S.default.arrayOf(I.AttachmentPropType),onClose:S.default.func.isRequired,onConnect:S.default.func.isRequired,onData:S.default.func.isRequired,onInsert:S.default.func.isRequired,onSelect:S.default.func.isRequired,onGenerate:S.default.func.isRequired,currentContext:S.default.object,hasPro:S.default.bool};var G=N;C.default=G},26457:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(65345)),R=x(w(16068)),j=x(w(96587)),W=x(w(71871)),N=x(w(46369)),G=x(w(5647)),$=x(w(30313)),J=x(w(42493)),re=x(w(23615)),oe=w(77292),ie=w(25455),le=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var ue=function LayoutContent(i){var C=(0,G.default)(),w=C.isLoading,x=C.isConnected,O=C.isGetStarted,re=C.connectUrl,oe=C.fetchData,ue=C.hasSubscription,ce=C.usagePercentage,se=(0,ie.useConfig)(),de=se.onClose,he=se.onConnect,ge=(0,le.useRequestIds)(),ye=ge.updateUsagePercentage,ve=ge.usagePercentage,Ce=(0,S.useState)(!1),Se=(0,k.default)(Ce,2),Pe=Se[0],Ie=Se[1];if((0,S.useEffect)((function(){Pe||w||!ce&&0!==ce||(ye(ce),Ie(!0))}),[w,ce,Pe,ye]),w||!Pe)return S.default.createElement(J.default,{onClose:de},S.default.createElement(J.default.Header,{onClose:de}),S.default.createElement(J.default.Content,{dividers:!0},S.default.createElement(W.default,{BoxProps:{sx:{px:3}}})));if(!x)return S.default.createElement($.default,{onClose:de},S.default.createElement(J.default,{onClose:de}),S.default.createElement($.default.Content,{dividers:!0},S.default.createElement(I.default,{connectUrl:re,onSuccess:function onSuccess(i){he(i),oe()}})));if(!O)return S.default.createElement($.default,{onClose:de},S.default.createElement(J.default,{onClose:de}),S.default.createElement($.default.Content,{dividers:!0},S.default.createElement(j.default,{onSuccess:oe})));var Re=!ue||80<=ve;return S.default.createElement(R.default,{attachments:i.attachments,DialogHeaderProps:{children:Re&&S.default.createElement(N.default,{hasSubscription:ue,usagePercentage:ve})}})};ue.propTypes={attachments:re.default.arrayOf(oe.AttachmentPropType)};var ce=ue;C.default=ce},94066:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(50824)),k=x(w(78983)),I=x(w(42081)),R=x(w(58724)),j=x(w(71173)),W=x(w(74910)),N=x(w(10029)),G=x(w(96333)),$=w(38003),J=w(86802),re=x(w(66535)),oe=x(w(42637)),ie=w(68819),le=w(36619),ue=w(46183),ce=w(35879),se=x(w(4978));function _createSuper(i){var C=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(i){return!1}}();return function _createSuperInternal(){var w,x=(0,W.default)(i);if(C){var O=(0,W.default)(this).constructor;w=Reflect.construct(x,arguments,O)}else w=x.apply(this,arguments);return(0,j.default)(this,w)}}setTimeout((0,N.default)(S.default.mark((function _callee(){var i,C,w;return S.default.wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:if("1"===(null===(i=window.ElementorAiConfig)||void 0===i?void 0:i.is_get_started)){x.next=2;break}return x.abrupt("return");case 2:return window.EDITOR_SESSION_ID=window.EDITOR_SESSION_ID||(0,ce.getUniqueId)("elementor-editor-session"),x.prev=3,x.next=6,(0,ue.getRemoteFrontendConfig)({client_name:"elementor-editor-loading",client_version:elementorCommon.config.version,client_session_id:window.EDITOR_SESSION_ID},!0);case 6:C=x.sent,window.ElementorAIRemoteConfigData=C,null!=C&&C.remoteIntegrationUrl&&((w=document.createElement("script")).type="module",w.src=C.remoteIntegrationUrl,document.head.appendChild(w)),x.next=14;break;case 11:x.prev=11,x.t0=x.catch(3),console.error("Elementor AI Integration Loader",x.t0);case 14:case"end":return x.stop()}}),_callee,null,[[3,11]])}))),0);var de=function(i){(0,R.default)(Module,i);var C=_createSuper(Module);function Module(){return(0,k.default)(this,Module),C.apply(this,arguments)}return(0,I.default)(Module,[{key:"onElementorInit",value:function onElementorInit(){elementor.hooks.addFilter("controls/base/behaviors",this.registerControlBehavior.bind(this)),elementor.hooks.addFilter("navigator/layout/behaviors",this.registerNavigatorBehavior.bind(this)),window.addEventListener("hashchange",(function(i){if(i.newURL.includes("welcome-ai")){var C=i.newURL.includes("welcome-ai-whats-new")?"whats-new":"connect",w=i.newURL.includes("return-to")?i.newURL.split("return-to-")[1]:"";window.location.hash="",setTimeout((function(){var i=document.createElement("div");document.body.append(i);var x=(0,le.getUiConfig)(),S=x.colorScheme,k=x.isRTL,I=re.default.render(O.default.createElement(oe.default,{isRTL:k,colorScheme:S},O.default.createElement(ie.AiGetStartedConnect,{onClose:function onClose(){I(),i.remove()},newHashOnConnect:w,source:C})),i).unmount}),1e3)}}))}},{key:"registerNavigatorBehavior",value:function registerNavigatorBehavior(i){return i.ai={behaviorClass:se.default},i}},{key:"registerControlBehavior",value:function registerControlBehavior(i,C){var w=C.options.model.get("ai");if(null==w||!w.active)return i;var x=C.options.model.get("type");["text","textarea"].includes(w.type)&&(i.ai={behaviorClass:G.default,controlType:x,type:w.type,getControlValue:C.getControlValue.bind(C),setControlValue:function setControlValue(i){"wysiwyg"===x&&(i=i.replaceAll("\n","
")),C.setSettingsModel(i),C.applySavedValue()},isLabelBlock:C.options.model.get("label_block"),additionalOptions:{defaultValue:C.options.model.get("default")},context:this.getContextData(C,x)});if(["code"].includes(w.type)){var O,S,k,I=null!==(O=C.options)&&void 0!==O&&null!==(S=O.container)&&void 0!==S&&null!==(k=S.view)&&void 0!==k&&k.$el?C.options.container.view.$el[0].outerHTML:"";i.ai={behaviorClass:G.default,type:w.type,additionalOptions:{codeLanguage:(null==w?void 0:w.language)||C.options.model.get("language"),htmlMarkup:I,elementId:C.options.container.id},buttonLabel:(0,$.__)("Code with AI","elementor"),isLabelBlock:C.options.model.get("label_block"),getControlValue:C.getControlValue.bind(C),setControlValue:function setControlValue(i){return C.editor.setValue(i,-1)},context:this.getContextData(C,x)}}if(["media"].includes(w.type)){var R=C.options.model.get("media_types");R.length&&R.includes("image")&&(i.ai={behaviorClass:G.default,type:w.type,buttonLabel:(0,$.__)("Create with AI","elementor"),getControlValue:C.getControlValue.bind(C),setControlValue:function setControlValue(i){C.setSettingsModel(i),C.applySavedValue()},controlView:C,additionalOptions:{defaultValue:C.options.model.get("default"),defaultImageType:(null==w?void 0:w.category)||J.IMAGE_PROMPT_CATEGORIES[1].key},context:this.getContextData(C,x)})}return"excerpt"===w.type&&(i.ai={behaviorClass:G.default,type:w.type,getControlValue:C.getControlValue.bind(C),setControlValue:function setControlValue(i){"wysiwyg"===x&&(i=i.replaceAll("\n","
")),C.setSettingsModel(i),C.applySavedValue()},isLabelBlock:C.options.model.get("label_block"),additionalOptions:{defaultValue:C.options.model.get("default")},context:this.getContextData(C,x)}),i}},{key:"getContextData",value:function getContextData(i,C){var w=i.options.model.get("name");return i.options.container?{documentType:i.options.container.document.config.type,elementType:i.options.container.args.model.get("elType"),elementId:i.options.container.id,widgetType:i.options.container.args.model.get("widgetType"),controlName:w,controlType:C,controlValue:i.options.container.settings.get(w)}:{controlName:w,controlType:C}}}]),Module}(elementorModules.editor.utils.Module);C.default=de},88450:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(93231)),R=x(w(40131)),j=x(w(23615)),W=x(w(85157)),N=x(w(65345)),G=x(w(69714)),$=x(w(96587)),J=x(w(5647)),re=x(w(30313)),oe=x(w(59441)),ie=x(w(46369)),le=x(w(62193)),ue=x(w(76719)),ce=w(62219),se=w(10905),de=w(78293),he=x(w(66604)),ge=x(w(86076)),ye=w(36626),ve=x(w(71871)),Ce=w(35879),Se=w(44220);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=w(38003),j=x(w(23615)),W=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var N=function ConnectAndGetStarted(i){var C=i.connectUrl,w=i.onSuccess,x=i.isConnected,O=i.getStartedAction,j=(0,S.useRef)(),N=(0,S.useState)(!1),G=(0,k.default)(N,2),$=G[0],J=G[1];return(0,S.useEffect)((function(){jQuery.fn.elementorConnect&&jQuery(j.current).elementorConnect({success:function success(i,C){w(C)},error:function error(){throw new Error("Elementor AI: Failed to connect.")}})}),[]),S.default.createElement(I.Stack,{alignItems:"center",gap:2},S.default.createElement(W.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),S.default.createElement(I.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,R.__)("Step into the future with Elementor AI","elementor")),S.default.createElement(I.Typography,{variant:"body2"},(0,R.__)("Create websites faster with AI built right into the Editor.","elementor")),S.default.createElement(I.Divider,{sx:{mt:2,ml:2,mr:2,height:"1px",width:"50%"}}),S.default.createElement(I.Stack,{direction:"row",gap:1.5,alignItems:"flex-start"},S.default.createElement(I.Checkbox,{id:"e-ai-terms-approval",color:"secondary",checked:$,onClick:function onClick(){return J((function(i){return!i}))}}),S.default.createElement(I.Stack,null,S.default.createElement(I.Typography,{variant:"caption",sx:{maxWidth:520},component:"label",htmlFor:"e-ai-terms-approval"},(0,R.__)("I approve the ","elementor"),S.default.createElement(I.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,R.__)("Terms of Service","elementor"))," & ",S.default.createElement(I.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,R.__)("Privacy Policy","elementor")),(0,R.__)(" of the Elementor AI service. ","elementor"),(0,R.__)("This includes consenting to the collection and use of data to improve user experience.","elementor")))),x?S.default.createElement(I.Button,{disabled:!$,variant:"contained",onClick:O,sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,R.__)("Get Started","elementor")):S.default.createElement(I.Button,{ref:j,disabled:!$,href:C,variant:"contained",sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,R.__)("Connect","elementor")))};N.propTypes={connectUrl:j.default.string.isRequired,onSuccess:j.default.func.isRequired,isConnected:j.default.bool.isRequired,getStartedAction:j.default.func.isRequired};var G=N;C.default=G},65345:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=w(36626),I=w(38003),R=x(w(23615)),j=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=function Connect(i){var C=i.connectUrl,w=i.onSuccess,x=(0,S.useRef)();return(0,S.useEffect)((function(){jQuery.fn.elementorConnect&&jQuery(x.current).elementorConnect({success:function success(i,C){return w(C)},error:function error(){throw new Error("Elementor AI: Failed to connect.")}})}),[]),S.default.createElement(k.Stack,{alignItems:"center",gap:2},S.default.createElement(j.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),S.default.createElement(k.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,I.__)("Step into the future with Elementor AI","elementor")),S.default.createElement(k.Typography,{variant:"body2"},(0,I.__)("Create smarter with AI text and code generators built right into the editor.","elementor")),S.default.createElement(k.Typography,{variant:"caption",sx:{maxWidth:520,textAlign:"center"}},(0,I.__)('By clicking "Connect", I approve the ',"elementor"),S.default.createElement(k.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,I.__)("Terms of Service","elementor"))," & ",S.default.createElement(k.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,I.__)("Privacy Policy","elementor")),(0,I.__)(" of the Elementor AI service.","elementor")),S.default.createElement(k.Button,{ref:x,href:C,variant:"contained",sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,I.__)("Connect","elementor")))};W.propTypes={connectUrl:R.default.string.isRequired,onSuccess:R.default.func.isRequired};var N=W;C.default=N},56577:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(70966)),R=w(36626),j=w(38003),W=x(w(23615)),N=x(w(87105)),G=["node","inline","children","defaultValue","onInsert"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var $=function CodeBlock(i){i.node;var C=i.inline,w=i.children,x=i.defaultValue,O=i.onInsert,W=(0,I.default)(i,G),$=(0,S.useRef)(null);return C?S.default.createElement("code",W):S.default.createElement(R.Box,{sx:{position:"relative"},dir:"ltr"},S.default.createElement(N.default,(0,k.default)({fullWidth:!0,ref:$,defaultValue:w[0],sx:{mb:1},helperText:(0,j.__)("Code generated by AI may be inaccurate.","elementor")},W)),S.default.createElement(R.Button,{size:"small",variant:"contained",onClick:function onClick(){return O(x+"\n"+$.current.value)},sx:{position:"absolute",right:"11px /* @noflip */",bottom:"44px"}},(0,j.__)("Insert","elementor")))};$.propTypes={node:W.default.object,inline:W.default.bool,children:W.default.arrayOf(W.default.node).isRequired,defaultValue:W.default.string,onInsert:W.default.func.isRequired};var J=$;C.default=J},69714:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(73119)),R=x(w(10029)),j=x(w(40131)),W=x(w(93231)),N=w(36626),G=w(38003),$=x(w(23615)),J=x(w(51068)),re=w(17927),oe=x(w(71871)),ie=x(w(51391)),le=x(w(79619)),ue=x(w(4466)),ce=x(w(86960)),se=x(w(56577)),de=x(w(5348)),he=w(10905),ge=x(w(84515)),ye=w(35879),ve=w(90246),Ce=w(88293);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.splitText=function splitText(i){if(!i)return{};var C=i.match(/```([\s\S]*?)```/),w=C?"```".concat(C[1],"```").trim():"",x=i.match(/```[\s\S]*?```([\s\S]*)/),O=null==x?void 0:x[1].trim();return{code:w,details:O}}},28378:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.USER_VARIATION_SOURCE=C.USER_URL_SOURCE=C.MENU_TYPE_LIBRARY=C.ELEMENTOR_LIBRARY_SOURCE=C.ATTACHMENT_TYPE_URL=C.ATTACHMENT_TYPE_JSON=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(46567),I=x(w(865)),R=x(w(40097)),j=x(w(54572)),W=x(w(68873)),N=w(38003),G=x(w(23615)),$=w(77292),J=w(36626),re="json";C.ATTACHMENT_TYPE_JSON=re;var oe="url";C.ATTACHMENT_TYPE_URL=oe;var ie="library";C.MENU_TYPE_LIBRARY=ie;C.USER_VARIATION_SOURCE="user-variation";C.ELEMENTOR_LIBRARY_SOURCE="elementor-library";C.USER_URL_SOURCE="user-url";var le=function Attachments(i){return i.attachments.length?O.default.createElement(J.Stack,{direction:"row",spacing:1},i.attachments.map((function(C,w){switch(C.type){case re:return O.default.createElement(I.default,(0,S.default)({key:w},i));case oe:return O.default.createElement(R.default,(0,S.default)({key:w},i));default:return null}}))):O.default.createElement(k.Menu,{disabled:i.disabled,onAttach:i.onAttach,items:[{title:(0,N.__)("Reference a website","elementor"),icon:j.default,type:oe},{title:(0,N.__)("Create variations from Template Library","elementor"),icon:W.default,type:ie}]})};le.propTypes={attachments:G.default.arrayOf($.AttachmentPropType).isRequired,onAttach:G.default.func.isRequired,onDetach:G.default.func,disabled:G.default.bool};var ue=le;C.default=ue},31282:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.AttachDialog=void 0;var O=x(w(87363)),S=w(51542),k=x(w(23615)),I=w(73202),R=w(28378),j=function AttachDialog(i){var C=i.type,w=i.url;switch(C){case R.ATTACHMENT_TYPE_URL:return O.default.createElement(S.UrlDialog,{url:w,onAttach:i.onAttach,onClose:i.onClose});case R.MENU_TYPE_LIBRARY:return O.default.createElement(I.LibraryDialog,{onAttach:i.onAttach,onClose:i.onClose})}return null};C.AttachDialog=j,j.propTypes={type:k.default.string,onAttach:k.default.func,onClose:k.default.func,url:k.default.string};var W=j;C.default=W},73202:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.LibraryDialog=void 0;var O=x(w(23615)),S=w(87363),k=w(28378),I=function LibraryDialog(i){var C=(0,S.useRef)(!1);return(0,S.useEffect)((function(){var w=function onLibraryHide(){C.current||i.onClose()};return $e.components.get("library").layout.getModal().on("hide",w),function(){$e.components.get("library").layout.getModal().off("hide",w)}}),[i]),(0,S.useEffect)((function(){var w=function onMessage(w){var x=w.data,O=x.type,S=x.json,I=x.html,R=x.label,j=x.source;switch(O){case"library/attach:start":C.current=!0;break;case"library/attach":i.onAttach([{type:k.ATTACHMENT_TYPE_JSON,previewHTML:I,content:S,label:R,source:j}]),C.current=!1,i.onClose()}};return window.addEventListener("message",w),function(){window.removeEventListener("message",w)}})),$e.run("library/open",{toDefault:!0,mode:"ai-attachment"}),C.current=!1,null};C.LibraryDialog=I,I.propTypes={onAttach:O.default.func.isRequired,onClose:O.default.func.isRequired}},46567:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.Menu=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=x(w(941)),j=x(w(78170)),W=x(w(23615)),N=w(31282),G=x(w(24395));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var $=function Menu(i){var C=(0,S.useState)(!1),w=(0,k.default)(C,2),x=w[0],O=w[1],W=(0,S.useState)(null),$=(0,k.default)(W,2),J=$[0],re=$[1],oe=(0,I.useTheme)().direction,ie=(0,S.useRef)(null),le=(0,G.default)("e-ai-attachment-badge"),ue=le.isViewed,ce=le.markAsViewed;return S.default.createElement(S.default.Fragment,null,S.default.createElement(I.IconButton,{size:"small",ref:ie,disabled:i.disabled,onClick:function onClick(){O(!0),ue||ce()},color:"secondary"},x?S.default.createElement(R.default,{fontSize:"small"}):ue?S.default.createElement(j.default,{fontSize:"small"}):S.default.createElement(I.Badge,{color:"primary",badgeContent:" ",variant:"dot"},S.default.createElement(j.default,{fontSize:"small"}))),S.default.createElement(I.Popover,{open:x,anchorEl:ie.current,onClose:function onClose(){return O(!1)},anchorOrigin:{vertical:"bottom",horizontal:"rtl"===oe?"right":"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===oe?"right":"left"}},S.default.createElement(I.Stack,{sx:{width:440}},i.items.map((function(i){var C=i.icon;return S.default.createElement(I.MenuItem,{key:i.type,onClick:function onClick(){re(i.type),O(!1)}},S.default.createElement(I.ListItemIcon,null,S.default.createElement(C,null)),i.title)})))),S.default.createElement(N.AttachDialog,{type:J,onAttach:i.onAttach,onClose:function onClose(){O(!1),re(null)}}))};C.Menu=$,$.propTypes={items:W.default.arrayOf(W.default.shape({title:W.default.string.isRequired,type:W.default.string.isRequired,icon:W.default.elementType})).isRequired,onAttach:W.default.func.isRequired,disabled:W.default.bool}},42335:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.PromptPowerNotice=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(24395));C.PromptPowerNotice=function PromptPowerNotice(){var i=(0,I.default)("e-ai-builder-attachments-power"),C=i.isViewed,w=i.markAsViewed;return C?null:O.default.createElement(S.Box,{sx:{pt:2,px:2,pb:0}},O.default.createElement(S.Alert,{severity:"info",onClose:function onClose(){return w()}},O.default.createElement(S.Typography,{variant:"body2",display:"inline-block",sx:{paddingInlineEnd:1}},(0,k.__)("You’ve got the power.","elementor")),O.default.createElement(S.Typography,{variant:"body2",display:"inline-block"},(0,k.__)("Craft your prompt to affect content, images and/or colors - whichever you decide.","elementor"))))}},865:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.ThumbnailJson=void 0;var O=x(w(87363)),S=w(88482),k=x(w(23615)),I=w(36626),R=w(77292),j=function ThumbnailJson(i){var C,w=null===(C=i.attachments)||void 0===C?void 0:C.find((function(i){return"json"===i.type}));return w?w.previewHTML?O.default.createElement(S.Thumbnail,{html:w.previewHTML,disabled:i.disabled}):O.default.createElement(I.Skeleton,{animation:"wave",variant:"rounded",width:60,height:60}):null};C.ThumbnailJson=j,j.propTypes={attachments:k.default.arrayOf(R.AttachmentPropType).isRequired,disabled:k.default.bool};var W=j;C.default=W},40097:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.ThumbnailUrl=void 0;var O=x(w(87363)),S=w(88482),k=w(38003),I=x(w(23615)),R=w(36626),j=w(34029),W=w(77292),N=function ThumbnailUrl(i){var C,w=null===(C=i.attachments)||void 0===C?void 0:C.find((function(i){return"url"===i.type}));return w?O.default.createElement(R.Box,{sx:{position:"relative","&:hover::before":{content:'""',position:"absolute",userSelect:"none",inset:0,backgroundColor:"rgba(0,0,0,0.6)",borderRadius:1,zIndex:1},"&:hover .remove-attachment":{display:"flex"}}},O.default.createElement(R.IconButton,{className:"remove-attachment",size:"small","aria-label":(0,k.__)("Remove","elementor"),disabled:i.disabled,onClick:function onClick(C){C.stopPropagation(),i.onDetach()},sx:{display:"none",position:"absolute",insetInlineEnd:4,insetBlockStart:4,backgroundColor:"secondary.main",zIndex:1,borderRadius:1,p:"3px","&:hover":{backgroundColor:"secondary.dark"}}},O.default.createElement(j.TrashIcon,{sx:{fontSize:"1.125rem",color:"common.white"}})),O.default.createElement(S.Thumbnail,{disabled:i.disabled,html:w.previewHTML})):null};C.ThumbnailUrl=N,N.propTypes={attachments:I.default.arrayOf(W.AttachmentPropType).isRequired,disabled:I.default.bool,onDetach:I.default.func};var G=N;C.default=G},88482:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.Thumbnail=C.THUMBNAIL_SIZE=void 0;var O,S=x(w(87363)),k=x(w(79769)),I=w(36626),R=w(38003),j=x(w(23615)),W=x(w(63993)),N=64;C.THUMBNAIL_SIZE=N;var G=W.default.body(O||(O=(0,k.default)(["\n\thtml, body {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\toverflow: hidden;\n\t}\n\n\tbody > * {\n\t\twidth: 100% !important;\n\t}\n\n\tbody > img {\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t}\n\n\tbody:has(> img) {\n\t\theight: ","px\n\t}\n"])),N),$=function Thumbnail(i){var C,w,x,O,k=null===(C=i.html.match('data-width="(?
\\d+)"'))||void 0===C||null===(w=C.groups)||void 0===w?void 0:w.width,j=null===(x=i.html.match('data-height="(?
\\d+)"'))||void 0===x||null===(O=x.groups)||void 0===O?void 0:O.height,W=k?parseInt(k):N,$=j?parseInt(j):N,J=Math.min($,W),re=N/J,oe=$>W?(N-N*($/W))/2:0,ie=W>$?(N-N*(W/$))/2:0;return S.default.createElement(I.Box,{dir:"ltr",sx:{position:"relative",cursor:"default",overflow:"hidden",border:"1px solid",borderColor:"grey.300",borderRadius:1,boxSizing:"border-box",width:N,height:N,opacity:i.disabled?.5:1}},S.default.createElement("iframe",{title:(0,R.__)("Preview","elementor"),sandbox:"",srcDoc:""+i.html,style:{border:"none",overflow:"hidden",width:W,height:$,transform:"scale(".concat(re,")"),transformOrigin:"".concat(ie,"px ").concat(oe,"px")}}))};C.Thumbnail=$,$.propTypes={html:j.default.string.isRequired,disabled:j.default.bool}},51542:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.UrlDialog=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=x(w(23615)),j=w(38003),W=w(95748),N=w(74859),G=w(28378),$=w(84157),J=x(w(5647)),re=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var oe=function UrlDialog(i){var C=(0,N.useTimeout)(1e4),w=(0,k.default)(C,2),x=w[0],O=w[1],R=(0,J.default)(),oe=R.isLoading,ie=R.usagePercentage,le=(0,re.useRequestIds)().updateUsagePercentage,ue=(0,S.useState)(!1),ce=(0,k.default)(ue,2),se=ce[0],de=ce[1],he=(0,$.useRemoteConfig)().remoteConfig[$.CONFIG_KEYS.WEB_BASED_BUILDER_URL],ge=(he?new URL(he):{}).origin,ye=(0,S.useRef)(!1);return(0,S.useEffect)((function(){se||oe||!ie&&0!==ie||(le(ie),de(!0))}),[oe,ie,se,le]),(0,S.useEffect)((function(){if(!ye.current)try{window.$e.run("ai-integration/open-choose-element",{url:i.url}),ye.current=!0}catch(i){console.error(i)}}),[ye.current]),(0,S.useEffect)((function(){var C=function onMessage(C){if(C.origin===ge){var w=C.data,x=w.type,S=w.html,k=w.url;switch(x){case"element-selector/close":ye.current=!1,i.onClose();break;case"element-selector/loaded":O(),ye.current=!0;break;case"element-selector/attach":i.onAttach([{type:"url",previewHTML:S,content:S,label:k?new URL(k).href:"",source:G.USER_URL_SOURCE}])}}};return window.addEventListener("message",C),function(){window.removeEventListener("message",C)}}),[ge,i,O]),S.default.createElement(S.default.Fragment,null,!ye.current&&!x&&S.default.createElement(I.Dialog,{open:!0,maxWidth:"lg"},S.default.createElement(I.Typography,{sx:{textAlign:"center",padding:3}},(0,j.__)("Loading...","elementor"))),x&&S.default.createElement(W.AlertDialog,{message:(0,j.__)("The app is not responding. Please try again later. (#408)","elementor"),onClose:i.onClose}))};C.UrlDialog=oe,oe.propTypes={onAttach:R.default.func.isRequired,onClose:R.default.func.isRequired,url:R.default.string}},42493:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(93231)),R=x(w(40131)),j=x(w(70966)),W=w(36626),N=w(38003),G=x(w(23615)),$=x(w(59441)),J=w(34029),re=["sx","PaperProps"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.ProTemplateIndicator=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(38003),R=w(36626),j=x(w(30344));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=(0,R.styled)(R.Paper)((function(i){var C=i.theme;return{position:"relative",padding:C.spacing(3),boxShadow:C.shadows[4],zIndex:"9999"}})),N=(0,R.styled)(R.Box)((function(i){var C=i.theme;return{position:"absolute",width:C.spacing(5),height:C.spacing(5),overflow:"hidden",left:"100% !important",transform:"translateX(-50%) translateY(-50%) rotate(var(--rotate, 0deg)) !important","&::after":{backgroundColor:C.palette.background.paper,content:'""',display:"block",position:"absolute",width:C.spacing(2.5),height:C.spacing(2.5),top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%) rotate(45deg)",boxShadow:"5px -5px 5px 0px rgba(0, 0, 0, 0.2)",backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"}}}));C.ProTemplateIndicator=function ProTemplateIndicator(){var i=(0,I.__)("Go Pro","elementor"),C=(0,S.useState)(!1),w=(0,k.default)(C,2),x=w[0],O=w[1],G=(0,S.useRef)(null),$=(0,S.useRef)(null);return S.default.createElement(R.Box,{flexDirection:"row-reverse",component:"span",display:"flex",onMouseLeave:function hidePopover(){return O(!1)},alignItems:"center"},S.default.createElement(R.IconButton,{ref:G,onMouseEnter:function showPopover(){return O(!0)},onClick:function onClick(i){return i.stopPropagation()},"aria-owns":x?"e-pro-upgrade-popover":void 0,"aria-haspopup":"true",sx:{m:1,"&:hover":{backgroundColor:"action.selected"}}},S.default.createElement(j.default,{sx:{color:"text.primary"}})),S.default.createElement(R.Popper,{open:x,popperOptions:{placement:"left-start",modifiers:[{name:"arrow",enabled:!0,options:{element:$.current,padding:5}},{name:"offset",options:{offset:[0,10]}}]},anchorEl:G.current,sx:{zIndex:"9999",maxWidth:300}},S.default.createElement(W,null,S.default.createElement(N,{ref:$}),S.default.createElement(R.Stack,{alignItems:"start",spacing:2},S.default.createElement(R.Chip,{color:"promotion",variant:"outlined",size:"small",label:(0,I.__)("Pro","elementor"),icon:S.default.createElement(j.default,null)}),S.default.createElement(R.Typography,{variant:"body2"},(0,I.__)("This result includes an Elementor Pro widget that's not available with your current plan. Upgrade to use all the widgets in this result.","elementor")),S.default.createElement(R.Button,{variant:"contained",color:"promotion",size:"small",href:"https://go.elementor.com/go-pro-ai/",target:"_blank",sx:{alignSelf:"flex-end"}},i)))))}},40271:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(70966)),R=x(w(73119)),j=x(w(93231)),W=w(36626),N=x(w(23615)),G=w(38003),$=x(w(84515)),J=w(25455),re=["onSubmit"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(73119)),R=x(w(70966)),j=w(36626),W=w(38003),N=x(w(23615)),G=x(w(40271)),$=x(w(89216)),J=x(w(78025)),re=x(w(62682)),oe=x(w(33375)),ie=x(w(8817)),le=x(w(28378)),ue=w(25455),ce=w(77292),se=["tooltip"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var de=Object.freeze([{text:(0,W.__)("Hero section on [topic] with heading, text, buttons on the right, and an image on the left","elementor.com")},{text:(0,W.__)("About Us section on [topic] with heading, text, and big image below","elementor.com")},{text:(0,W.__)("Team section with four image boxes showcasing team members","elementor.com")},{text:(0,W.__)("FAQ section with a toggle widget showcasing FAQs about [topic]","elementor.com")},{text:(0,W.__)("Gallery section with a carousel displaying three images at once","elementor.com")},{text:(0,W.__)("Contact section with a form for [topic]","elementor.com")},{text:(0,W.__)("Client section featuring companies' logos","elementor.com")},{text:(0,W.__)("Testimonial section with testimonials, each featuring a star rating and an image","elementor.com")},{text:(0,W.__)("Service section about [topic], showcasing four services with buttons","elementor.com")},{text:(0,W.__)("Stats section with counters displaying data about [topic]","elementor.com")},{text:(0,W.__)("Quote section with colored background, featuring a centered quote","elementor.com")},{text:(0,W.__)("Pricing section for [topic] with a pricing list","elementor.com")},{text:(0,W.__)("Subscribe section featuring a simple email form, inviting users to stay informed on [topic]","elementor.com")}]),he=function IconButtonWithTooltip(i){var C=i.tooltip,w=(0,R.default)(i,se);return S.default.createElement(j.Tooltip,{title:C},S.default.createElement(j.Box,{component:"span",sx:{cursor:w.disabled?"default":"pointer"}},S.default.createElement(j.IconButton,w)))};he.propTypes={tooltip:N.default.string,disabled:N.default.bool};var ge=function BackButton(i){return S.default.createElement(he,(0,I.default)({size:"small",color:"secondary",tooltip:(0,W.__)("Back to results","elementor")},i),S.default.createElement(re.default,null))},ye=function EditButton(i){return S.default.createElement(he,(0,I.default)({size:"small",color:"primary",tooltip:(0,W.__)("Edit prompt","elementor")},i),S.default.createElement(oe.default,null))},ve=function GenerateButton(i){return S.default.createElement(J.default,(0,I.default)({size:"small",fullWidth:!1},i),(0,W.__)("Generate","elementor"))},Ce=(0,S.forwardRef)((function(i,C){var w,x=i.attachments,O=i.isActive,R=i.isLoading,N=i.showActions,J=void 0!==N&&N,re=i.onAttach,oe=i.onDetach,ce=i.onSubmit,se=i.onBack,he=i.onEdit,Ce=i.shouldResetPrompt,Se=void 0!==Ce&&Ce,Pe=(0,S.useState)(""),Ie=(0,k.default)(Pe,2),Re=Ie[0],Me=Ie[1];(0,S.useEffect)((function(){Se&&Me("")}),[Se]);var De=(0,ie.default)(Re,"layout"),Fe=De.isEnhancing,He=De.enhance,Ue=(0,S.useRef)(""),Ge=(0,ue.useConfig)().attachmentsTypes,Ze=R||Fe||!O,Ke=""===Re&&!x.length,Qe=Ze||Ke,et=Ge[(null===(w=x[0])||void 0===w?void 0:w.type)||""],tt=(null==et?void 0:et.promptSuggestions)||de,nt=(null==et?void 0:et.promptPlaceholder)||(0,W.__)("Press '/' for suggested prompts or describe the layout you want to create","elementor");return S.default.createElement(j.Stack,{component:"form",onSubmit:function onSubmit(i){return ce(i,Re)},direction:"row",sx:{p:3},alignItems:"start",gap:1},S.default.createElement(j.Stack,{direction:"row",alignItems:"start",flexGrow:1,spacing:2},J&&(O?S.default.createElement(ge,{disabled:R||Fe,onClick:function handleBack(){Me(Ue.current),se()}}):S.default.createElement(ye,{disabled:R,onClick:function handleEdit(){Ue.current=Re,he()}})),S.default.createElement(le.default,{attachments:x,onAttach:re,onDetach:oe,disabled:Ze}),S.default.createElement(G.default,{value:Re,disabled:Ze,onSubmit:function onSubmit(i){return ce(i,Re)},options:tt,onChange:function onChange(i,C){return Me(C.text+" ")},renderInput:function renderInput(i){return S.default.createElement(G.default.TextInput,(0,I.default)({},i,{ref:C,onChange:function onChange(i){return Me(i.target.value)},placeholder:nt}))}})),S.default.createElement($.default,{size:"small",disabled:Qe||""===Re,isLoading:Fe,onClick:function onClick(){return He().then((function(i){var C=i.result;return Me(C)}))}}),S.default.createElement(ve,{disabled:Qe}))}));Ce.propTypes={isActive:N.default.bool,onAttach:N.default.func,onDetach:N.default.func,isLoading:N.default.bool,showActions:N.default.bool,onSubmit:N.default.func.isRequired,onBack:N.default.func.isRequired,onEdit:N.default.func.isRequired,attachments:N.default.arrayOf(ce.AttachmentPropType),shouldResetPrompt:N.default.bool};var Se=Ce;C.default=Se},88976:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=w(36626),O=(0,x.styled)(x.Box,{shouldForwardProp:function shouldForwardProp(i){return"outlineOffset"!==i}})((function(i){var C=i.theme,w=i.selected,x=i.height,O=i.disabled,S=i.outlineOffset,k=void 0===S?"0px":S,I=w?C.palette.text.primary:C.palette.text.disabled,R="2px solid ".concat(I);return{height:x,cursor:O?"default":"pointer",overflow:"hidden",boxSizing:"border-box",backgroundPosition:"top center",backgroundSize:"100% auto",backgroundRepeat:"no-repeat",backgroundColor:C.palette.common.white,borderRadius:.5*C.shape.borderRadius,outlineOffset:k,outline:R,opacity:O?"0.4":"1",transition:"all 50ms linear","&:hover":O?{}:{outlineColor:C.palette.text.primary}}}));C.default=O},78305:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=ScreenshotUnavailable;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(23615)),R=w(38003),j=x(w(88976));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(93231)),k=w(36626),I=x(w(23615)),R=x(w(88976)),j=x(w(78305)),W=x(w(10987));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(23615)),k=w(25455),I=w(71855),R=function TemplateBadge(i){var C=(0,k.useConfig)().hasPro;return"Pro"!==i.type||C?null:O.default.createElement(I.ProTemplateIndicator,null)},j=R;C.default=j,R.propTypes={type:S.default.string}},88387:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=["onClose","onCancel","title","text"],N=function UnsavedChangesAlert(i){var C=i.onClose,w=i.onCancel,x=i.title,j=i.text,N=(0,k.default)(i,W);return O.default.createElement(I.Dialog,(0,S.default)({"aria-labelledby":"unsaved-changes-alert-title","aria-describedby":"unsaved-changes-alert-description"},N),O.default.createElement(I.DialogTitle,{id:"unsaved-changes-alert-title"},x),O.default.createElement(I.DialogContent,null,O.default.createElement(I.DialogContentText,{id:"unsaved-changes-alert-description"},j)),O.default.createElement(I.DialogActions,null,O.default.createElement(I.Button,{onClick:w,color:"secondary"},(0,R.__)("Cancel","elementor")),O.default.createElement(I.Button,{onClick:C,color:"error",variant:"contained"},(0,R.__)("Yes, leave","elementor"))))};N.propTypes={title:j.default.string,text:j.default.string,onCancel:j.default.func,onClose:j.default.func};var G=N;C.default=G},25455:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.useConfig=C.default=C.MODE_VARIATION=C.MODE_LAYOUT=C.LAYOUT_APP_MODES=C.ConfigProvider=void 0;var O=x(w(87363)),S=x(w(23615)),k="layout";C.MODE_LAYOUT=k;var I="variation";C.MODE_VARIATION=I;var R=[k,I];C.LAYOUT_APP_MODES=R;var j=O.default.createContext({});C.useConfig=function useConfig(){return O.default.useContext(j)};var W=function ConfigProvider(i){return O.default.createElement(j.Provider,{value:{mode:i.mode,attachmentsTypes:i.attachmentsTypes,onClose:i.onClose,onConnect:i.onConnect,onData:i.onData,onInsert:i.onInsert,onSelect:i.onSelect,onGenerate:i.onGenerate,currentContext:i.currentContext,hasPro:i.hasPro}},i.children)};C.ConfigProvider=W,W.propTypes={mode:S.default.oneOf(R).isRequired,children:S.default.node.isRequired,attachmentsTypes:S.default.object.isRequired,onClose:S.default.func.isRequired,onConnect:S.default.func.isRequired,onData:S.default.func.isRequired,onInsert:S.default.func.isRequired,onSelect:S.default.func.isRequired,onGenerate:S.default.func.isRequired,currentContext:S.default.object,hasPro:S.default.bool};var N=j;C.default=N},84157:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useRemoteConfig=C.RemoteConfigProvider=C.CONFIG_KEYS=void 0;var S=x(w(50824)),k=x(w(10029)),I=x(w(40131)),R=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),j=x(w(23615)),W=w(46183);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var N=R.default.createContext({});C.useRemoteConfig=function useRemoteConfig(){return R.default.useContext(N)};C.CONFIG_KEYS={WEB_BASED_BUILDER_URL:"webBasedBuilderUrl",AUTH_TOKEN:"jwt"};var G=function RemoteConfigProvider(i){var C=(0,R.useState)(!1),w=(0,I.default)(C,2),x=w[0],O=w[1],j=(0,R.useState)(!1),G=(0,I.default)(j,2),$=G[0],J=G[1],re=(0,R.useState)(!1),oe=(0,I.default)(re,2),ie=oe[0],le=oe[1],ue=(0,R.useState)({}),ce=(0,I.default)(ue,2),se=ce[0],de=ce[1],he=function(){var i=(0,k.default)(S.default.mark((function _callee(){var i;return S.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return O(!0),le(!1),C.prev=2,C.next=5,(0,W.getRemoteConfig)().finally((function(){J(!0),O(!1)}));case 5:if((i=C.sent).config){C.next=8;break}throw new Error("Invalid remote config");case 8:de(i.config),C.next=16;break;case 11:C.prev=11,C.t0=C.catch(2),le(!0),J(!0),O(!1);case 16:case"end":return C.stop()}}),_callee,null,[[2,11]])})));return function fetchData(){return i.apply(this,arguments)}}();return(0,R.useEffect)((function(){return window.addEventListener("elementor/connect/success",he),function(){window.removeEventListener("elementor/connect/success",he)}}),[]),$||x||he(),R.default.createElement(N.Provider,{value:{isLoading:x,isLoaded:$,isError:ie,remoteConfig:se}},i.children)};C.RemoteConfigProvider=G,G.propTypes={children:j.default.node.isRequired,onError:j.default.func.isRequired}},88882:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(60675)),k=function useLayoutPrompt(i,C){return(0,S.default)((function(C,w){return C.variationType=i,(0,O.generateLayout)(C,w)}),C)};C.default=k},15764:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(10029)),k=x(w(40131)),I=w(87363),R=x(w(88882)),j=function useScreenshot(i,C){var w=(0,I.useState)(""),x=(0,k.default)(w,2),j=x[0],W=x[1],N=(0,I.useState)(!1),G=(0,k.default)(N,2),$=G[0],J=G[1],re=(0,R.default)(i,null);return{generate:function generate(i,w){return J(!0),W(""),re.send(i,w).then(function(){var i=(0,S.default)(O.default.mark((function _callee(i){var w;return O.default.wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,C(i.result);case 2:return(w=x.sent).sendUsageData=function(){return re.sendUsageData(i)},w.baseTemplateId=i.baseTemplateId,w.type=i.type,x.abrupt("return",w);case 7:case"end":return x.stop()}}),_callee)})));return function(C){return i.apply(this,arguments)}}()).catch((function(i){throw W(i.extra_data?i:i.message||i),i})).finally((function(){return J(!1)}))},error:j,isLoading:$}};C.default=j},12451:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(9833)),k=x(w(10029)),I=x(w(40131)),R=w(87363),j=x(w(15764)),W=w(25455),N=w(35879),G={isPending:!0},$=function useScreenshots(i){var C=i.onData,w=(0,R.useState)([]),x=(0,I.default)(w,2),$=x[0],J=x[1],re=(0,W.useConfig)().currentContext,oe=(0,N.useRequestIds)(),ie=oe.editorSessionId,le=oe.sessionId,ue=oe.setRequest,ce=oe.setBatch,se=oe.setGenerate,de=(0,R.useRef)(""),he=ce(),ge=[(0,j.default)(0,C),(0,j.default)(1,C),(0,j.default)(2,C)],ye=ge.length,ve=ge.every((function(i){return null==i?void 0:i.error}))?ge[0].error:"",Ce=ge.some((function(i){return null==i?void 0:i.isLoading})),Se=(0,R.useRef)(null),Pe=function(){var i=(0,k.default)(O.default.mark((function _callee(i,C){var w,x,k,I;return O.default.wrap((function _callee$(O){for(;;)switch(O.prev=O.next){case 0:return Se.current=new AbortController,w=function onGenerate(i){return J((function(C){var w=(0,S.default)(C),x=w.indexOf(G);return w[x]=i,w})),!0},x=function onError(){return J((function(i){var C=(0,S.default)(i),w=C.lastIndexOf(G);return C[w]={isError:!0},C})),!1},k=ge.map((function(O){var S=O.generate,k=$.map((function(i){return i.baseTemplateId||""}));return S({prompt:i,prevGeneratedIds:k,currentContext:re,ids:{editorSessionId:ie.current,sessionId:le.current,generateId:de.current,batchId:he.current,requestId:ue().current},attachments:C.map((function(i){return{type:i.type,content:i.content,label:i.label,source:i.source}}))},Se.current.signal).then(w).catch(x)})),O.next=6,Promise.all(k);case 6:I=O.sent,I.every((function(i){return!1===i}))&&J((function(i){var C=(0,S.default)(i);return C.splice(-1*ye),C}));case 9:case"end":return O.stop()}}),_callee)})));return function createScreenshots(C,w){return i.apply(this,arguments)}}();return{generate:function generate(i,C){var w=Array(ye).fill(G);de.current=se().current,J(w),Pe(i,C)},regenerate:function regenerate(i,C){var w=Array(ye).fill(G);J((function(i){return[].concat((0,S.default)(i),(0,S.default)(w))})),Pe(i,C)},screenshots:$,isLoading:Ce,error:ve,abort:function abort(){var i;return null===(i=Se.current)||void 0===i?void 0:i.abort()}}};C.default=$},24:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.SCREENSHOTS_PER_PAGE=C.MAX_PAGES=void 0;var O=x(w(40131)),S=w(87363);C.SCREENSHOTS_PER_PAGE=3;C.MAX_PAGES=5;var k=function useSlider(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},C=i.slidesCount,w=void 0===C?0:C,x=i.slidesPerPage,k=void 0===x?3:x,I=i.gapPercentage,R=void 0===I?2:I,j=(0,S.useState)(1),W=(0,O.default)(j,2),N=W[0],G=W[1],$=(100-R*(k-1))/k,J=($+R)*k*(N-1)*-1,re=Math.ceil(w/k);return(0,S.useEffect)((function(){N>1&&N>re&&G(re)}),[re]),{currentPage:N,setCurrentPage:G,pagesCount:re,slidesPerPage:k,gapPercentage:R,offsetXPercentage:J,slideWidthPercentage:$}};C.default=k},16068:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=_interopRequireWildcard(w(87363)),k=x(w(9833)),I=x(w(70966)),R=x(w(40131)),j=x(w(73119)),W=x(w(23615)),N=w(38003),G=w(36626),$=x(w(86960)),J=x(w(88387)),re=x(w(42493)),oe=x(w(47432)),ie=x(w(28965)),le=x(w(90031)),ue=x(w(12451)),ce=_interopRequireWildcard(w(24)),se=x(w(7377)),de=x(w(49294)),he=w(25455),ge=w(77292),ye=w(42335),ve=w(28378),Ce=x(w(31282)),Se=x(w(50429)),Pe=w(90246),Ie=["children"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}return x.default=i,w&&w.set(i,x),x}var Re=(0,G.withDirection)(se.default),Me=(0,G.withDirection)(de.default),De=function RegenerateButton(i){return S.default.createElement(G.Button,(0,j.default)({size:"small",color:"secondary",startIcon:S.default.createElement(ie.default,null)},i),(0,N.__)("Regenerate","elementor"))},Fe=function UseLayoutButton(i){return S.default.createElement(G.Button,(0,j.default)({size:"small",variant:"contained"},i),(0,N.__)("Use Layout","elementor"))};Fe.propTypes={sx:W.default.object};var He=function isRegenerateButtonDisabled(i,C,w){return!(!C&&!w)||i.length>=ce.SCREENSHOTS_PER_PAGE*ce.MAX_PAGES},Ue=function FormLayout(i){var C,w,x=i.DialogHeaderProps,O=void 0===x?{}:x,W=i.DialogContentProps,ie=void 0===W?{}:W,se=i.attachments,de=(0,he.useConfig)(),ge=de.attachmentsTypes,Ue=de.onData,Ge=de.onInsert,Ze=de.onSelect,Ke=de.onClose,Qe=de.onGenerate,et=(0,ue.default)({onData:Ue}),tt=et.screenshots,nt=et.generate,rt=et.regenerate,ot=et.isLoading,at=et.error,it=et.abort,lt=(0,ce.default)({slidesCount:tt.length}),ut=lt.currentPage,ct=lt.setCurrentPage,st=lt.pagesCount,dt=lt.gapPercentage,ft=lt.slidesPerPage,pt=lt.offsetXPercentage,mt=lt.slideWidthPercentage,ht=(0,S.useState)(-1),gt=(0,R.default)(ht,2),yt=gt[0],vt=gt[1],bt=(0,S.useState)(!1),_t=(0,R.default)(bt,2),Ct=_t[0],wt=_t[1],Et=(0,S.useState)(!0),xt=(0,R.default)(Et,2),Ot=xt[0],St=xt[1],Pt=(0,S.useState)([]),kt=(0,R.default)(Pt,2),It=kt[0],Tt=kt[1],Rt=(0,S.useState)(!1),At=(0,R.default)(Rt,2),jt=At[0],Mt=At[1],Lt=(0,S.useState)(!1),Dt=(0,R.default)(Lt,2),Bt=Dt[0],Wt=Dt[1],qt=(0,S.useRef)((function(){})),Ft=(0,S.useRef)(null),Nt=null===(C=tt[yt])||void 0===C?void 0:C.template,Ht=ie.children,zt=(0,I.default)(ie,Ie),Vt=!(!at||0!==tt.length),Ut=Ot||Vt,Gt=function abortAndClose(){it(),Ke()},$t=function onCloseIntent(){if(""!==Ft.current.value.trim()||tt.length>0)return wt(!0);Gt()},Yt=function handleScreenshotClick(i,C){return function(){Ut||(vt(i),Ze(C))}},Zt=function onAttach(i){i.forEach((function(i){if(!ge[i.type])throw new Error("Invalid attachment type: ".concat(i.type));var C=ge[i.type];!i.previewHTML&&C.previewGenerator&&C.previewGenerator(i.content).then((function(C){i.previewHTML=C,Tt((function(C){return C.map((function(C){return C.content===i.content?i:C}))}))}))})),Tt(i),Mt(!1),St(!0)};return(0,S.useEffect)((function(){var i;(null===(i=tt[0])||void 0===i?void 0:i.template)&&(Ze(tt[0].template),vt(0))}),[null===(w=tt[0])||void 0===w?void 0:w.template]),(0,S.useEffect)((function(){null!=se&&se.length&&Zt(se)}),[]),S.default.createElement(re.default,{onClose:$t},S.default.createElement(re.default.Header,(0,j.default)({onClose:$t},O),O.children,S.default.createElement(G.Tooltip,{title:Bt?(0,N.__)("Expand","elementor"):(0,N.__)("Minimize","elementor")},S.default.createElement(G.IconButton,{size:"small","aria-label":"minimize",onClick:function onClick(){return Wt((function(i){return!i}))}},Bt?S.default.createElement(Me,null):S.default.createElement(Re,null)))),S.default.createElement(re.default.Content,(0,j.default)({dividers:!0},zt),S.default.createElement(G.Collapse,{in:!Bt},Ht&&S.default.createElement(G.Box,{sx:{pt:2,px:2,pb:0}},Ht),It.length>0&&S.default.createElement(ye.PromptPowerNotice,null),at&&S.default.createElement(G.Box,{sx:{pt:2,px:2,pb:0}},S.default.createElement($.default,{error:at,onRetry:qt.current})),Ct&&S.default.createElement(J.default,{open:Ct,title:(0,N.__)("Leave Elementor AI?","elementor"),text:(0,N.__)("Your progress will be deleted, and can't be recovered.","elementor"),onClose:Gt,onCancel:function onCancel(){return wt(!1)}}),jt&&S.default.createElement(Ce.default,{type:ve.ATTACHMENT_TYPE_URL,url:Ft.current.value,onAttach:Zt,onClose:function onClose(){Mt(!1)}}),S.default.createElement(oe.default,{shouldResetPrompt:jt,ref:Ft,isActive:Ut,isLoading:ot,showActions:tt.length>0||ot,attachmentsTypes:ge,attachments:It,onAttach:Zt,onDetach:function onDetach(i){Tt((function(C){var w=(0,k.default)(C);return w.splice(i,1),w})),St(!0)},onSubmit:function handleGenerate(i,C){i.preventDefault(),""===C.trim()&&0===It.length||((0,Se.default)(C)?Mt(!0):(Qe(),qt.current=function(){vt(-1),nt(C,It)},qt.current(),St(!1),ct(1)))},onBack:function onBack(){return St(!1)},onEdit:function onEdit(){return St(!0)}}),(tt.length>0||ot)&&S.default.createElement(S.default.Fragment,null,S.default.createElement(G.Divider,null),S.default.createElement(G.Box,{sx:{p:1.5}},S.default.createElement(G.Box,{sx:{overflow:"hidden",p:.5}},S.default.createElement(G.Box,{sx:{display:"flex",transition:"all 0.4s ease",gap:"".concat(dt,"%"),transform:"translateX(".concat(pt,"%)")}},tt.map((function(i,C){var w=i.screenshot,x=i.type,O=i.template,k=i.isError,I=i.isPending;return S.default.createElement(le.default,{key:C,url:w,type:x,disabled:Ut,isPlaceholder:k,isLoading:I,isSelected:yt===C,onClick:Yt(C,O),outlineOffset:"2px",sx:{flex:"0 0 ".concat(mt,"%")}})})))),S.default.createElement(Pe.VoicePromotionAlert,{introductionKey:"ai-context-layout-promotion"})),tt.length>0&&S.default.createElement(G.Box,{sx:{pt:0,px:2,pb:2},display:"grid",gridTemplateColumns:"repeat(3, 1fr)",justifyItems:"center"},S.default.createElement(De,{onClick:function handleRegenerate(){qt.current=function(){rt(Ft.current.value,It),ct(st+1)},qt.current()},disabled:He(tt,ot,Ut),sx:{justifySelf:"start"}}),tt.length>ft&&S.default.createElement(G.Pagination,{page:ut,count:st,disabled:Ut,onChange:function onChange(i,C){return ct(C)}}),S.default.createElement(Fe,{onClick:function applyTemplate(){Ge(Nt),tt[yt].sendUsageData(),Gt()},disabled:Ut||-1===yt,sx:{justifySelf:"end",gridColumn:3}}))))))};Ue.propTypes={DialogHeaderProps:W.default.object,DialogContentProps:W.default.object,attachments:W.default.arrayOf(ge.AttachmentPropType)};var Ge=Ue;C.default=Ge},99502:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=x(w(82752)),N=["children"],G=(0,I.withDirection)(W.default),$=function BackButton(i){var C=i.children,w=(0,k.default)(i,N);return O.default.createElement(I.Button,(0,S.default)({size:"small",variant:"text",color:"secondary",startIcon:O.default.createElement(G,null)},w),C||(0,R.__)("Back","elementor"))};$.propTypes={children:j.default.node};var J=$;C.default=J},89216:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=x(w(55995)),N=["isLoading"],G=(0,I.withDirection)(W.default),$=function EnhanceButton(i){var C=i.isLoading,w=(0,k.default)(i,N);return O.default.createElement(I.Tooltip,{title:(0,R.__)("Enhance prompt","elementor")},O.default.createElement(I.Box,{component:"span",sx:{cursor:w.disabled?"default":"pointer"}},O.default.createElement(I.IconButton,(0,S.default)({size:"small",color:"secondary"},w),C?O.default.createElement(I.CircularProgress,{color:"secondary",size:20}):O.default.createElement(G,{fontSize:"small"}))))};$.propTypes={disabled:j.default.bool,isLoading:j.default.bool};var J=$;C.default=J},50691:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=x(w(22231)),W=x(w(28932)),N=x(w(39453)),G=w(86802),$=["children"],J=["alt","src","text","children","aspectRatio","variant","OverlayBarProps"],re=Object.keys(G.IMAGE_ASPECT_RATIO),oe=function Gallery(i){var C=i.children,w=(0,k.default)(i,$);return O.default.createElement(I.ImageList,(0,S.default)({width:"100%",cols:2,gap:24},w),C)};oe.propTypes={children:R.default.node};var ie=function GalleryImage(i){var C=i.alt,w=i.src,x=i.text,R=i.children,G=i.aspectRatio,$=void 0===G?"1:1":G,re=i.variant,oe=void 0===re?"contained":re,ie=i.OverlayBarProps,le=void 0===ie?{}:ie,ue=(0,k.default)(i,J),ce={};return"thumbnail"===oe?(ce.width="100%",ce.maxHeight="238px",ce.minWidth="230px"):(ce.width="auto",ce.height="auto",ce.maxWidth="100%",ce.maxHeight="1:1"===$?"initial":"100%",ce.objectFit="contain",ce.aspectRatio=$.replace(":"," / ")),O.default.createElement(I.ImageListItem,ue,O.default.createElement(I.Box,{display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"action.selected",height:"contained"===oe?336:"auto",position:"relative",overflow:"hidden"}},O.default.createElement("img",{alt:C,src:w,style:ce})),R&&O.default.createElement(j.default,null,O.default.createElement(W.default,(0,S.default)({gap:1,position:"bottom"},le),x&&O.default.createElement(N.default,null,x),R)))};ie.propTypes={alt:R.default.string,src:R.default.string,text:R.default.string,children:R.default.node,BoxProps:R.default.object,OverlayBarProps:R.default.object,aspectRatio:R.default.oneOf(re),variant:R.default.oneOf(["contained","thumbnail"])},oe.Image=ie;var le=oe;C.default=le},12970:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=x(w(28965)),j=function GenerateAgainSubmit(i){return O.default.createElement(k.Button,(0,S.default)({fullWidth:!0,type:"submit",variant:"contained",color:"secondary",startIcon:O.default.createElement(R.default,null),sx:{color:"background.paper"}},i),(0,I.__)("Generate again","elementor"))};C.default=j},66467:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(4466)),I=w(38003),R=x(w(90246)),j=function GenerateImagesSubmit(i){return O.default.createElement(O.default.Fragment,null,O.default.createElement(k.default,(0,S.default)({size:"medium",fullWidth:!0},i),(0,I.__)("Generate images","elementor")),O.default.createElement(R.default,{introductionKey:"ai-context-media-promotion"}))};C.default=j},49566:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=w(34029),R=function GenerateLoader(){return O.default.createElement(S.Stack,{alignItems:"center",justifyContent:"center",gap:2,width:"100%"},O.default.createElement(I.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),O.default.createElement(S.Typography,{variant:"h5",sx:{color:"text.primary"}},(0,k.__)("Bringing your vision to life...","elementor")),O.default.createElement(S.Typography,{variant:"body1"},(0,k.__)("Hold tight, painting dreams might take a moment.","elementor")),O.default.createElement(S.Box,{sx:{px:1.5,py:2.5,width:"100%",maxWidth:600}},O.default.createElement(S.LinearProgress,{color:"inherit"})))};C.default=R},78025:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=x(w(23615)),j=function GenerateSubmit(i){return O.default.createElement(k.Button,(0,S.default)({fullWidth:!0,size:"medium",type:"submit",variant:"contained"},i),i.children||(0,I.__)("Generate","elementor"))};j.propTypes={children:R.default.node};var W=j;C.default=W},21619:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(93231)),k=x(w(70966)),I=x(w(73119)),R=w(36626),j=w(38003),W=x(w(23615)),N=x(w(85541)),G=x(w(33375)),$=x(w(90350)),J=x(w(80897)),re=["children"],oe=["sx"],ie=["sx"],le=["sx"],ue=["sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=["children"],W=function ImageForm(i){var C=i.children,w=(0,k.default)(i,j);return O.default.createElement(I.Box,(0,S.default)({component:"form"},w),O.default.createElement(I.Stack,{spacing:2.5},C))};W.propTypes={children:R.default.node};var N=W;C.default=N},84123:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(40131)),I=x(w(93970)),R=w(38003),j=w(86802),W=Object.entries(j.IMAGE_ASPECT_RATIO).map((function(i){var C=(0,k.default)(i,2),w=C[0];return{label:C[1].label,value:w}})),N=function ImageRatioSelect(i){return O.default.createElement(I.default,(0,S.default)({options:W,wrapperStyle:{width:"100%"},label:(0,R.__)("Aspect ratio","elementor")},i))};C.default=N},57239:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(93231)),k=x(w(73119)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=x(w(82752)),N=x(w(49448)),G=["onPrev","onNext","children"],$=["children","startAction","sx"],J=["src","alt"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(40131)),I=x(w(70966)),R=x(w(23615)),j=w(38003),W=x(w(93970)),N=w(86802),G=["type"],$=function ImageStyleSelect(i){var C,w=i.type,x=void 0===w?"":w,R=(0,I.default)(i,G),$=Object.entries((null===(C=N.IMAGE_PROMPT_CATEGORIES[x])||void 0===C?void 0:C.subCategories)||{}).map((function(i){var C=(0,k.default)(i,2),w=C[0];return{label:C[1],value:w}}));return O.default.createElement(W.default,(0,S.default)({options:$,wrapperStyle:{width:"100%"},label:(0,j.__)("Style","elementor")},R))};$.propTypes={type:R.default.string.isRequired};var J=$;C.default=J},50198:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(40131)),I=x(w(93970)),R=w(38003),j=w(86802),W=Object.entries(j.IMAGE_PROMPT_CATEGORIES).map((function(i){var C=(0,k.default)(i,2),w=C[0];return{label:C[1].label,value:w}})),N=function ImageTypeSelect(i){return O.default.createElement(I.default,(0,S.default)({options:W,wrapperStyle:{width:"100%"},label:(0,R.__)("Image type","elementor")},i))};C.default=N},69425:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=x(w(98608)),N=x(w(66690)),G=x(w(57239)),$=x(w(21619)),J=x(w(50691)),re=x(w(99502)),oe=x(w(20273)),ie=["children","sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
-1){var ye=C[ue];return O.default.createElement(le,null,O.default.createElement(G.default,{onPrev:se.prev,onNext:se.next},O.default.createElement(G.default.Actions,{startAction:O.default.createElement(re.default,{onClick:se.reset})},O.default.createElement($.default.EditImage,{onClick:function onClick(){return k(ye)}}),O.default.createElement($.default.UseImage,{onClick:function onClick(){return S(ye)}})),O.default.createElement(G.default.Image,{src:ye.image_url,style:{maxWidth:"630px",width:"100%",height:"auto"}})))}if(1===C.length){var ve=C[0],Ce={width:he,height:ge};return j&&(Ce.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%)",Ce.backgroundSize="20px 20px",Ce.backgroundPosition="0 0, 0 10px, 10px -10px, -10px 0px"),O.default.createElement(le,{flexDirection:"column"},O.default.createElement(oe.default,null,O.default.createElement(oe.default.Image,{src:ve.image_url||ve.url,style:Ce,alt:"generated-image"},O.default.createElement(oe.default.Actions,null,O.default.createElement($.default.EditImage,{onClick:function onClick(){return k(ve)}}),O.default.createElement($.default.UseImage,{onClick:function onClick(){return S(ve)}})))))}return O.default.createElement(le,null,O.default.createElement(J.default,null,C.map((function(i,C){return O.default.createElement(J.default.Image,{key:"result-".concat(i.seed),alt:"generated-".concat(C),src:i.image_url,aspectRatio:x,"data-testid":"e-gallery-image"},O.default.createElement($.default,null,O.default.createElement($.default.UseImage,{onClick:function onClick(){return S(i)},size:"medium",fullWidth:!0}),O.default.createElement(R.Stack,{direction:"row",spacing:.25,alignItems:"center"},O.default.createElement($.default.ZoomIcon,{onClick:function onClick(){return ce(C)},size:"medium"}),O.default.createElement($.default.EditIcon,{onClick:function onClick(){return k(i)},size:"medium"}))))}))))};ue.propTypes={images:j.default.array,aspectRatio:j.default.string,onUseImage:j.default.func,onEditImage:j.default.func,transparentContainer:j.default.bool},ue.Container=le;var ce=ue;C.default=ce},69870:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=function NewPromptButton(i){return O.default.createElement(k.Button,(0,S.default)({fullWidth:!0,variant:"text",color:"secondary"},i),(0,I.__)("New prompt","elementor"))};C.default=R},65875:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=x(w(87105)),W=x(w(89216)),N=x(w(8817)),G=["disabled","onChange"],$=function PromptField(i){var C=i.disabled,w=i.onChange,x=(0,k.default)(i,G),R=(0,N.default)(x.value,"media"),$=R.enhance,J=R.isEnhancing;return O.default.createElement(j.default,(0,S.default)({minRows:3,maxRows:6,InputProps:{endAdornment:O.default.createElement(I.InputAdornment,{position:"end",sx:{position:"absolute",bottom:"24px",right:"8px"}},O.default.createElement(W.default,{isLoading:J,disabled:C||J||!x.value,onClick:function onClick(){$(prompt).then((function(i){var C=i.result;return w(C)}))}}))},sx:{"& .MuiInputBase-input.MuiOutlinedInput-input.MuiInputBase-inputMultiline":{pb:5,width:"89%"}},onKeyDown:function onKeyDown(i){"Tab"===i.key&&(i.preventDefault(),w(x.placeholder))}},x,{onChange:function onChange(i){return w(i.target.value)},disabled:C||J}))};$.propTypes={value:R.default.string,disabled:R.default.bool,placeholder:R.default.string,onChange:R.default.func.isRequired};var J=$;C.default=J},20273:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(93231)),k=x(w(73119)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=["children"],N=["children","sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=["onClose","onCancel"],N=function UnsavedChangesAlert(i){var C=i.onClose,w=i.onCancel,x=(0,k.default)(i,W);return O.default.createElement(I.Dialog,(0,S.default)({sx:{zIndex:2e5},"aria-labelledby":"unsaved-changes-alert-title","aria-describedby":"unsaved-changes-alert-description"},x),O.default.createElement(I.DialogTitle,{id:"unsaved-changes-alert-title"},(0,R.__)("Leave Elementor AI?","elementor")),O.default.createElement(I.DialogContent,null,O.default.createElement(I.DialogContentText,{id:"unsaved-changes-alert-description"},(0,R.__)("Images will be gone forever and we won’t be able to recover them.","elementor"))),O.default.createElement(I.DialogActions,null,O.default.createElement(I.Button,{onClick:w,color:"secondary"},(0,R.__)("Cancel","elementor")),O.default.createElement(I.Button,{onClick:C,color:"error",variant:"contained"},(0,R.__)("Yes, leave","elementor"))))};N.propTypes={onClose:j.default.func,onCancel:j.default.func};var G=N;C.default=G},38415:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=x(w(86300)),j=w(36626),W=x(w(23615)),N=x(w(71871)),G=x(w(49566)),$=x(w(86960)),J=x(w(99502)),re=w(29859),oe=w(27305),ie=x(w(86076)),le=w(44220),ue=["sx"],ce=["primary","secondary"],se=["primary","secondary"],de=["children"],he=["isLoading","isGenerating","children"],ge=["sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.LOCATIONS=C.IMAGE_PROMPT_SETTINGS=C.IMAGE_PROMPT_CATEGORIES=C.IMAGE_PLACEHOLDERS_HOSTS=C.IMAGE_ASPECT_RATIO=void 0;var x=w(38003);C.LOCATIONS={RESIZE:"resize",GENERATE:"generate",VARIATIONS:"variations",IMAGE_TOOLS:"image-tools",IN_PAINTING:"in-painting",OUT_PAINTING:"out-painting",REMOVE_BACKGROUND:"remove-background",REPLACE_BACKGROUND:"replace-background",REMOVE_TEXT:"remove-text",CLEANUP:"cleanup"};C.IMAGE_PROMPT_SETTINGS={IMAGE_TYPE:"image_type",IMAGE_STYLE:"style_preset",IMAGE_STRENGTH:"image_strength",IMAGE_RATIO:"ratio",IMAGE_ZOOM:"zoom",IMAGE_UPSCALE:"upscale_to"};var O={"":{label:(0,x.__)("None","elementor"),subCategories:{}},photographic:{label:(0,x.__)("Photographic","elementor"),subCategories:{"":(0,x.__)("None","elementor"),landscape:(0,x.__)("Landscape","elementor"),macro:(0,x.__)("Macro","elementor"),portrait:(0,x.__)("Portrait","elementor"),"long-exposure":(0,x.__)("Long Exposure","elementor"),product:(0,x.__)("Product","elementor"),photorealistic:(0,x.__)("Photorealistic","elementor")}},background:{label:(0,x.__)("Background","elementor"),subCategories:{"":(0,x.__)("None","elementor"),floral:(0,x.__)("Floral","elementor"),gradient:(0,x.__)("Gradient","elementor"),mosaic:(0,x.__)("Mosaic","elementor"),neon:(0,x.__)("Neon","elementor"),bokeh:(0,x.__)("Bokeh","elementor")}},handmade:{label:(0,x.__)("Handmade","elementor"),subCategories:{"":(0,x.__)("None","elementor"),doodle:(0,x.__)("Doodle","elementor"),"line-art":(0,x.__)("Line Art","elementor"),"oil-painting":(0,x.__)("Oil Painting","elementor"),"pencil-drawing":(0,x.__)("Pencil Drawing","elementor"),watercolor:(0,x.__)("Watercolor","elementor")}},"digital-art":{label:(0,x.__)("Digital Art","elementor"),subCategories:{"":(0,x.__)("None","elementor"),amine:(0,x.__)("Anime","elementor"),cartoon:(0,x.__)("Cartoon","elementor"),cinematic:(0,x.__)("Cinematic","elementor"),"comic-book":(0,x.__)("Comic Book","elementor"),"fantasy-art":(0,x.__)("Fantasy Art","elementor"),isometric:(0,x.__)("Isometric","elementor"),vector:(0,x.__)("Vector","elementor"),"pixel-art":(0,x.__)("Pixel Art","elementor"),"low-poly":(0,x.__)("Low Poly","elementor"),"neon-punk":(0,x.__)("Neon Punk","elementor")}},"3d":{label:(0,x.__)("3D","elementor"),subCategories:{"":(0,x.__)("None","elementor"),clay:(0,x.__)("Clay","elementor"),digital:(0,x.__)("Digital","elementor"),origami:(0,x.__)("Origami","elementor"),stone:(0,x.__)("Stone","elementor"),wood:(0,x.__)("Wood","elementor")}}};C.IMAGE_PROMPT_CATEGORIES=O;var S={"1:1":{width:512,height:512,label:(0,x.__)("Square","elementor")+" (1:1)"},"3:2":{width:640,height:448,label:(0,x.__)("Landscape","elementor")+" (3:2)"},"4:3":{width:640,height:448,label:(0,x.__)("Landscape","elementor")+" (4:3)"},"16:9":{width:704,height:384,label:(0,x.__)("Landscape","elementor")+" (16:9)"},"2:3":{width:448,height:640,label:(0,x.__)("Portrait","elementor")+" (2:3)"},"3:4":{width:448,height:640,label:(0,x.__)("Portrait","elementor")+" (3:4)"},"9:16":{width:384,height:704,label:(0,x.__)("Portrait","elementor")+" (9:16)"}};C.IMAGE_ASPECT_RATIO=S;C.IMAGE_PLACEHOLDERS_HOSTS={WIREFRAME:"gene-\\d+\\.live\\.strattic\\.io"}},24607:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useEditImage=C.SET_LOADING=C.SET_ASPECT_RATIO=C.RESET=C.EditImageProvider=C.EditImageContext=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(93231)),R=x(w(23615)),j=x(w(98608)),W=w(82643);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useGlobalActions=C.GlobalActionsProvider=C.GlobalActionsContext=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var I=(0,S.createContext)({});C.GlobalActionsContext=I;var R=function GlobalActionsProvider(i){var C=i.actions,w=i.children;return S.default.createElement(I.Provider,{value:C},w)};C.GlobalActionsProvider=R,R.propTypes={actions:k.default.object,children:k.default.node};C.useGlobalActions=function useGlobalActions(){return(0,S.useContext)(I)}},27305:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useGlobalSettings=C.GlobalSettingsProvider=C.GlobalSettingsContext=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var I=(0,S.createContext)({});C.GlobalSettingsContext=I;var R=function GlobalSettingsProvider(i){var C=i.settings,w=i.children;return S.default.createElement(I.Provider,{value:C},w)};C.GlobalSettingsProvider=R,R.propTypes={settings:k.default.object,children:k.default.node};C.useGlobalSettings=function useGlobalSettings(){return(0,S.useContext)(I)}},29859:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useLocation=C.RoutesContext=C.NAVIGATE=C.LocationProvider=C.BACK=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(9833)),R=x(w(93231)),j=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
0&&void 0!==arguments[0]?arguments[0]:{}).current,C=(0,S.useContext)(W),w=C.state,x=C.dispatch,O=function navigate(i){x({type:N,payload:i})};return(0,S.useEffect)((function(){i&&O(i)}),[]),{current:w.current,history:w.history,navigate:O,back:function back(){x({type:G})}}}},96718:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(70966)),k=x(w(10029)),I=x(w(93231)),R=w(24607),j=x(w(6250)),W=w(49021),N=["image"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(87363),S=x(w(60675)),k=w(49021),I=function useImagePrompt(){var i=S.default.apply(void 0,arguments),C=(0,k.useGlobalActions)(),w=C.setHasUnsavedChanges,x=C.state;return(0,O.useEffect)((function(){var C;null!==(C=i.data)&&void 0!==C&&C.result&&w(!0)}),[i.data]),(0,O.useEffect)((function(){x.isAllSaved&&i.sendUsageData()}),[x.isAllSaved]),i};C.default=I},98608:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=w(86802),O=function useImageSize(i){var C=x.IMAGE_ASPECT_RATIO[i];return{width:C.width,height:C.height}};C.default=O},6250:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(40131)),S=w(87363),k=w(46183),I=function useImageUpload(){var i=(0,S.useState)(!1),C=(0,O.default)(i,2),w=C[0],x=C[1],I=(0,S.useState)(""),R=(0,O.default)(I,2),j=R[0],W=R[1],N=(0,S.useState)({}),G=(0,O.default)(N,2),$=G[0],J=G[1];return{upload:function upload(i){var C=i.image,w=i.prompt;return new Promise((function(i,O){W(""),J({}),x(!0),(0,k.uploadImage)({image:C,prompt:w}).then((function(C){J(C),i(C)})).catch((function(i){var C=(null==i?void 0:i.responseText)||i;W(C),O(C)})).finally((function(){return x(!1)}))}))},resetUpload:function resetUpload(){W(""),J({}),x(!1)},isUploading:w,uploadError:j,attachmentData:$}};C.default=I},73838:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.IMAGE_ZOOM=C.IMAGE_UPSCALE=C.IMAGE_TYPE=C.IMAGE_STYLE=C.IMAGE_STRENGTH=C.IMAGE_RATIO=void 0;var O=x(w(93231)),S=x(w(40131)),k=w(87363),I=w(86802);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
0&&void 0!==arguments[0]?arguments[0]:{},w=C.type,x=void 0===w?"":w,I=C.style,J=void 0===I?"":I,re=C.imageWeight,oe=void 0===re?0:re,ie=C.aspectRatio,le=void 0===ie?"1:1":ie,ue=C.zoom,ce=void 0===ue?"1":ue,se=C.upScaleTo,de=void 0===se?"512":se,he=(0,k.useState)((i={},(0,O.default)(i,R,x),(0,O.default)(i,j,J),(0,O.default)(i,W,oe),(0,O.default)(i,N,le),(0,O.default)(i,G,ce),(0,O.default)(i,$,de),i)),ge=(0,S.default)(he,2),ye=ge[0],ve=ge[1];return{settings:ye,updateSettings:function updateSettings(i){return ve((function(C){return _objectSpread(_objectSpread({},C),i)}))},resetSettings:function resetSettings(){var i;ve((i={},(0,O.default)(i,R,x),(0,O.default)(i,j,""),(0,O.default)(i,W,0),(0,O.default)(i,N,le),(0,O.default)(i,G,"1"),(0,O.default)(i,$,"512"),i))}}};C.default=J},62193:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(40131)),R=x(w(93231)),j=w(29859),W=w(36626),N=x(w(23615)),G=x(w(59441)),$=x(w(46930)),J=x(w(94810)),re=w(24607),oe=w(49021),ie=w(27305),le=x(w(76719));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(38415)),I=x(w(71871)),R=w(86802),j=x(w(93190)),W=x(w(45168)),N=x(w(72269)),G=x(w(26774)),$=x(w(33845)),J=x(w(62292)),re=x(w(64874)),oe=x(w(77474)),ie=x(w(42742)),le=w(29859),ue=w(24607),ce=w(10905),se=x(w(23615)),de=x(w(15059));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var he=function MediaOutlet(i){var C=i.additionalOptions,w=void 0===C?null:C,x=(0,ue.useEditImage)().editImage,O=(0,le.useLocation)({current:(null==w?void 0:w.location)||R.LOCATIONS.GENERATE}),se=O.current,he=O.navigate;return(0,S.useEffect)((function(){var i=new RegExp(R.IMAGE_PLACEHOLDERS_HOSTS.WIREFRAME),C=x.url&&!i.test(new URL(x.url).host);x.id&&C&&he(R.LOCATIONS.IMAGE_TOOLS)}),[x.id,x.url]),(0,ce.useSubscribeOnPromptHistoryAction)([{type:ce.ACTION_TYPES.RESTORE,handler:function handler(){se!==R.LOCATIONS.GENERATE&&he(R.LOCATIONS.GENERATE)}}]),se?S.default.createElement(S.default.Fragment,null,se===R.LOCATIONS.GENERATE&&S.default.createElement(j.default,{textToImageHook:null!=w&&w.textToImageHook?null==w?void 0:w.textToImageHook:de.default,predefinedPrompt:null==w?void 0:w.predefinedPrompt,initialSettings:null==w?void 0:w.initialSettings}),se===R.LOCATIONS.IMAGE_TOOLS&&S.default.createElement(W.default,null),se===R.LOCATIONS.VARIATIONS&&S.default.createElement(J.default,null),se===R.LOCATIONS.IN_PAINTING&&S.default.createElement(G.default,null),se===R.LOCATIONS.OUT_PAINTING&&S.default.createElement($.default,null),se===R.LOCATIONS.RESIZE&&S.default.createElement(N.default,null),se===R.LOCATIONS.REPLACE_BACKGROUND&&S.default.createElement(re.default,null),se===R.LOCATIONS.REMOVE_BACKGROUND&&S.default.createElement(oe.default,null),se===R.LOCATIONS.CLEANUP&&S.default.createElement(ie.default,null)):S.default.createElement(k.default,{alignItems:"center"},S.default.createElement(I.default,null))},ge=he;C.default=ge,he.propTypes={additionalOptions:se.default.object}},82643:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.getAspectRatioSizes=C.fetchImageAsBase64=void 0;var O=x(w(50824)),S=x(w(10029)),k=x(w(93231)),I=x(w(40131)),R=w(86802);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}C.getAspectRatioSizes=function getAspectRatioSizes(i,C){var w=Object.keys(R.IMAGE_ASPECT_RATIO),x=i/C,O=w[0],S=1/0;return w.forEach((function(i){var C=i.split(":").map(Number),w=(0,I.default)(C,2),k=w[0],R=w[1],j=Math.abs(x-k/R);j
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(23866),$=x(w(58155)),J=x(w(61433));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var re="rgba(255, 255, 255)",oe=(0,j.withDirection)($.default),ie=(0,j.withDirection)(J.default),le=(0,j.styled)(j.Box,{shouldForwardProp:function shouldForwardProp(i){return"size"===i}})((function(i){var C=i.theme,w=i.size;return{position:"absolute",width:w,height:w,borderRadius:"50%",backgroundColor:re,pointerEvents:"none",transform:"translate(".concat("rtl"===C.direction?"50%":"-50%",", -50%)"),border:"1px solid #fff"}})),ue=(0,j.styled)(j.Box,{shouldForwardProp:function shouldForwardProp(i){return"size"===i}})((function(i){var C=i.theme,w=i.size;return{width:w/2,height:w/2,borderRadius:"50%",backgroundColor:C.palette.secondary.main}})),ce=function CleanupContent(i){var C=i.editImage,w=i.setMask,x=i.setIsCanvasChanged,O=i.width,N=i.height,$=(0,S.useRef)(),J=(0,S.useState)(30),ce=(0,R.default)(J,2),se=ce[0],de=ce[1],he=(0,S.useRef)();return(0,S.useEffect)((function(){var i=document.querySelector(".eui-in-painting-canvas"),C=function positionElement(C){var w=i.getBoundingClientRect(),x=w.left,O=w.top,S=w.width,k=w.height,I=C.clientX-x,R=C.clientY-O;I>0&&I
0&&R
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useCleanup(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageMaskCleanup)(i)}),i)};C.default=k},42742:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(38003),W=x(w(38415)),N=w(36626),G=x(w(38793)),$=x(w(81084)),J=x(w(78025)),re=x(w(12970)),oe=x(w(69870)),ie=x(w(69425)),le=x(w(73838)),ue=x(w(67089)),ce=w(24607),se=x(w(96718)),de=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var he=function Cleanup(){var i=(0,de.useRequestIds)().setGenerate,C=(0,S.useState)(""),w=(0,R.default)(C,2),x=w[0],O=w[1],he=(0,S.useState)(!1),ge=(0,R.default)(he,2),ye=ge[0],ve=ge[1],Ce=(0,le.default)(),Se=Ce.settings,Pe=Ce.resetSettings,Ie=(0,ce.useEditImage)(),Re=Ie.editImage,Me=Ie.width,De=Ie.height,Fe=(0,se.default)(),He=Fe.use,Ue=Fe.edit,Ge=Fe.isLoading,Ze=(0,ue.default)(),Ke=Ze.data,Qe=Ze.send,et=Ze.isLoading,tt=Ze.error,nt=Ze.reset,rt=et||Ge,ot=function(){var C=(0,I.default)(k.default.mark((function _callee(C){return k.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:C.preventDefault(),i(),Qe({settings:Se,image:Re,mask:x});case 3:case"end":return w.stop()}}),_callee)})));return function handleSubmit(i){return C.apply(this,arguments)}}();return S.default.createElement(W.default,null,S.default.createElement(W.default.Panel,null,S.default.createElement(W.default.BackButton,null),S.default.createElement(W.default.PanelHeading,{primary:(0,j.__)("Cleanup","elementor"),secondary:(0,j.__)("Remove unwanted area from your image.","elementor")}),tt&&S.default.createElement(W.default.ErrorMessage,{error:tt,onRetry:ot}),S.default.createElement(G.default,{onSubmit:ot},null!=Ke&&Ke.result?S.default.createElement(N.Stack,{gap:2,sx:{my:2.5}},S.default.createElement(re.default,{disabled:rt}),S.default.createElement(oe.default,{disabled:rt,onClick:function onClick(){Pe(),nt()}})):S.default.createElement(J.default,{disabled:rt||!ye}))),S.default.createElement(W.default.Content,{isGenerating:rt},null!=Ke&&Ke.result?S.default.createElement(ie.default,{images:Ke.result,aspectRatio:Re.aspectRatio,onUseImage:He,onEditImage:Ue}):S.default.createElement($.default,{editImage:Re,width:Me,height:De,setMask:O,setIsCanvasChanged:ve})))};C.default=he},91819:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(40131)),S=w(87363),k=x(w(30420)),I=function useSuggestedImages(i){var C=i.selectedType,w=(0,S.useState)(!1),x=(0,O.default)(w,2),I=x[0],R=x[1],j=(0,S.useState)({images:[]}),W=(0,O.default)(j,2),N=W[0],G=W[1],$=(0,k.default)(),J=$.ready,re=$.preloadImages,oe=(0,S.useMemo)((function(){var i=function shuffleImages(i){return i.map((function(i){return[Math.random(),i]})).sort((function(i,C){return(0,O.default)(i,1)[0]-(0,O.default)(C,1)[0]})).map((function(i){return(0,O.default)(i,2)[1]}))}(N.images);if(!C)return i;var w=i.filter((function(i){return i.imageType.includes(C)}));return w.length?w:i}),[C,N]);return(0,S.useEffect)((function(){0!==(null==N?void 0:N.images.length)?re(N.images.map((function(i){return i.thumbnailUrl}))):function fetchImages(){R(!0),fetch("https://my.elementor.com/ai/images-prompt-gallery/ai-gallery.json").then((function(i){return i.json()})).then((function(i){return G(i)})).catch((function(i){return console.log(i.message)})).finally((function(){return R(!1)}))}()}),[N]),{imagesData:oe,isLoading:!J||I}};C.default=I},15059:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useTextToImage(i){return(0,S.default)(O.getTextToImageGeneration,i)};C.default=k},93190:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=_interopRequireWildcard(w(87363)),k=x(w(93231)),I=x(w(40131)),R=w(36626),j=w(38003),W=x(w(38415)),N=x(w(50691)),G=x(w(38793)),$=x(w(65875)),J=x(w(50198)),re=x(w(75703)),oe=x(w(84123)),ie=x(w(12970)),le=x(w(69870)),ue=x(w(66467)),ce=x(w(69425)),se=x(w(21619)),de=_interopRequireWildcard(w(73838)),he=x(w(91819)),ge=x(w(96718)),ye=w(27305),ve=w(10905),Ce=x(w(84515)),Se=w(35879),Pe=x(w(23615)),Ie=x(w(64355));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}return x.default=i,w&&w.set(i,x),x}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}var Re=function Generate(i){var C=i.textToImageHook,w=i.predefinedPrompt,x=void 0===w?"":w,O=i.initialSettings,Pe=void 0===O?{}:O,Re=(0,S.useState)(x),Me=(0,I.default)(Re,2),De=Me[0],Fe=Me[1],He=(0,Se.useRequestIds)().setGenerate,Ue=(0,ye.useGlobalSettings)().initialImageType,Ge=(0,de.default)(function _objectSpread(i){for(var C=1;C
{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(20273)),k=w(38003),I=x(w(21619)),R=w(24607),j=x(w(96718)),W=function ImageToolsContent(){var i=(0,R.useEditImage)(),C=i.editImage,w=i.width,x=i.height,W=(0,j.default)().use;return O.default.createElement(S.default,null,O.default.createElement(S.default.Image,{src:C.url,style:{width:w,height:x},alt:C.alt||(0,k.__)("Image preview","elementor")},O.default.createElement(S.default.Actions,null,O.default.createElement(I.default.UseImage,{onClick:function onClick(){return W(C)}}))))};C.default=W},12883:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(23615)),R=x(w(7882)),j=x(w(88371)),W=x(w(18578)),N=x(w(46819)),G=x(w(36138)),$=x(w(37069)),J=x(w(78230)),re=w(86802),oe=w(29859),ie=function TeaserDrawing(){return O.default.createElement(S.SvgIcon,{viewBox:"0 0 184 80",sx:{width:184,height:80}},O.default.createElement("g",{clipPath:"url(#clip0_3127_96542)"},O.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"}),O.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"}),O.default.createElement("path",{d:"M53.9717 12L57.2198 17.0456L3.24796 51.4731L-0.000164873 46.4275L53.9717 12Z",fill:"#69727D"}),O.default.createElement("path",{d:"M64.9761 5L68.2242 10.0456L57.2612 17.0387L54.013 11.9931L64.9761 5Z",fill:"#E6E8EA"}),O.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"}),O.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"}),O.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"}),O.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"}),O.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"}),O.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"}),O.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"}),O.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"})),O.default.createElement("defs",null,O.default.createElement("clipPath",{id:"clip0_3127_96542"},O.default.createElement("rect",{width:"184",height:"80",fill:"white"}))))},le=(0,S.styled)(S.Box)((function(i){var C=i.theme;return{height:"calc(100% - ".concat(C.spacing(13),")")}})),ue=(0,S.styled)(S.Box)((function(i){return{position:"sticky",top:"100%",padding:i.theme.spacing(4,0,1)}})),ce=function ImageToolsPanel(){var i=(0,oe.useLocation)().navigate,C=[{label:(0,k.__)("Expand Image","elementor"),Icon:R.default,onClick:function onClick(){return i(re.LOCATIONS.OUT_PAINTING)}},{label:(0,k.__)("Generative Fill","elementor"),Icon:j.default,onClick:function onClick(){return i(re.LOCATIONS.IN_PAINTING)}},{label:(0,k.__)("Resize","elementor"),Icon:N.default,onClick:function onClick(){return i(re.LOCATIONS.RESIZE)}},{label:(0,k.__)("Variations","elementor"),Icon:W.default,onClick:function onClick(){return i(re.LOCATIONS.VARIATIONS)}},{label:(0,k.__)("Remove Background","elementor"),Icon:G.default,onClick:function onClick(){return i(re.LOCATIONS.REMOVE_BACKGROUND)}},{label:(0,k.__)("Replace Background","elementor"),Icon:$.default,onClick:function onClick(){return i(re.LOCATIONS.REPLACE_BACKGROUND)}},{label:(0,k.__)("Cleanup","elementor"),Icon:J.default,onClick:function onClick(){return i(re.LOCATIONS.CLEANUP)}}];return O.default.createElement(le,null,O.default.createElement(S.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:1,justifyContent:"center"},C.map((function(i){var C=i.label,w=i.Icon,x=i.onClick;return O.default.createElement(S.Button,{onClick:x,key:C,variant:"outlined",color:"secondary",disabled:!1,sx:{py:3,fontSize:"12px",height:"auto",borderRadius:"4px"}},O.default.createElement(S.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},O.default.createElement(w,{sx:{mb:.5}}),C))}))),O.default.createElement(ue,{display:"flex",flexDirection:"column",alignItems:"center"},O.default.createElement(ie,null),O.default.createElement(S.Typography,{variant:"body2",align:"center",color:"secondary",sx:{mt:2}},(0,k.__)("Stay tuned! More incredible AI tools are coming your way soon.","elementor"))))};ce.propTypes={generateNewPrompt:I.default.func,panelActive:I.default.bool};var se=ce;C.default=se},45168:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(38415)),k=w(38003),I=x(w(12883)),R=x(w(67779)),j=w(29859),W=w(86802),N=function ImageTools(){var i=(0,j.useLocation)().navigate;return O.default.createElement(S.default,null,O.default.createElement(S.default.Panel,null,O.default.createElement(S.default.BackButton,{onClick:function onClick(){return i(W.LOCATIONS.GENERATE)}},(0,k.__)("Generate with a prompt","elementor")),O.default.createElement(S.default.PanelHeading,{primary:(0,k.__)("Edit with AI","elementor")}),O.default.createElement(I.default,null)),O.default.createElement(S.default.Content,null,O.default.createElement(R.default,null)))};C.default=N},37358:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useInPainting(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageMaskGeneration)(i)}),i)};C.default=k},96258:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(23866),$=x(w(58155)),J=x(w(61433));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var re="rgba(255, 255, 255)",oe=(0,j.withDirection)($.default),ie=(0,j.withDirection)(J.default),le=(0,j.styled)(j.Box,{shouldForwardProp:function shouldForwardProp(i){return"size"===i}})((function(i){var C=i.theme,w=i.size;return{position:"absolute",width:w,height:w,borderRadius:"50%",backgroundColor:re,pointerEvents:"none",transform:"translate(".concat("rtl"===C.direction?"50%":"-50%",", -50%)"),border:"1px solid #fff"}})),ue=(0,j.styled)(j.Box,{shouldForwardProp:function shouldForwardProp(i){return"size"===i}})((function(i){var C=i.theme,w=i.size;return{width:w/2,height:w/2,borderRadius:"50%",backgroundColor:C.palette.secondary.main}})),ce=function InPaintingContent(i){var C=i.editImage,w=i.setMask,x=i.setIsCanvasChanged,O=i.width,N=i.height,$=(0,S.useRef)(),J=(0,S.useState)(30),ce=(0,R.default)(J,2),se=ce[0],de=ce[1],he=(0,S.useRef)();return(0,S.useEffect)((function(){var i=document.querySelector(".eui-in-painting-canvas"),C=function positionElement(C){var w=i.getBoundingClientRect(),x=w.left,O=w.top,S=w.width,k=w.height,I=C.clientX-x,R=C.clientY-O;I>0&&I
0&&R
{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(38415)),G=x(w(38793)),$=x(w(65875)),J=x(w(96258)),re=x(w(78025)),oe=x(w(12970)),ie=x(w(69870)),le=x(w(69425)),ue=x(w(73838)),ce=x(w(37358)),se=w(24607),de=x(w(96718)),he=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var ge=function InPainting(){var i=(0,S.useState)(""),C=(0,R.default)(i,2),w=C[0],x=C[1],O=(0,he.useRequestIds)().setGenerate,ge=(0,S.useState)(""),ye=(0,R.default)(ge,2),ve=ye[0],Ce=ye[1],Se=(0,S.useState)(!1),Pe=(0,R.default)(Se,2),Ie=Pe[0],Re=Pe[1],Me=(0,ue.default)(),De=Me.settings,Fe=Me.resetSettings,He=(0,se.useEditImage)(),Ue=He.editImage,Ge=He.width,Ze=He.height,Ke=(0,de.default)(),Qe=Ke.use,et=Ke.edit,tt=Ke.isLoading,nt=(0,ce.default)(),rt=nt.data,ot=nt.send,at=nt.isLoading,it=nt.error,lt=nt.reset,ut=at||tt,ct=function(){var i=(0,I.default)(k.default.mark((function _callee(i){var C;return k.default.wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:i.preventDefault(),C=w||"Remove object and fill based on the surroundings",O(),ot({prompt:C,settings:De,image:Ue,mask:ve});case 4:case"end":return x.stop()}}),_callee)})));return function handleSubmit(C){return i.apply(this,arguments)}}();return S.default.createElement(N.default,null,S.default.createElement(N.default.Panel,null,S.default.createElement(N.default.BackButton,null),S.default.createElement(N.default.PanelHeading,{primary:(0,W.__)("Generative Fill","elementor"),secondary:(0,W.__)("Mark an area and edit it with a prompt.","elementor")}),it&&S.default.createElement(N.default.ErrorMessage,{error:it,onRetry:ct}),S.default.createElement(G.default,{onSubmit:ct},S.default.createElement($.default,{value:w,disabled:ut,onChange:x,placeholder:(0,W.__)("Describe what you want to generate in the marked area (English only)","elementor")}),null!=rt&&rt.result?S.default.createElement(j.Stack,{gap:2,sx:{my:2.5}},S.default.createElement(oe.default,{disabled:ut}),S.default.createElement(ie.default,{disabled:ut,onClick:function onClick(){Fe(),x(""),lt()}})):S.default.createElement(re.default,{disabled:ut||!w||!Ie}))),S.default.createElement(N.default.Content,{isGenerating:ut},null!=rt&&rt.result?S.default.createElement(le.default,{images:rt.result,aspectRatio:Ue.aspectRatio,onUseImage:Qe,onEditImage:et}):S.default.createElement(J.default,{editImage:Ue,width:Ge,height:Ze,setMask:Ce,setIsCanvasChanged:Re})))};C.default=ge},13167:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useOutPainting(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageOutPainting)(i)}),i)};C.default=k},33845:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=_interopRequireWildcard(w(87363)),k=x(w(50824)),I=x(w(93231)),R=x(w(10029)),j=x(w(40131)),W=w(36626),N=w(38003),G=x(w(38415)),$=x(w(38793)),J=x(w(84123)),re=x(w(78025)),oe=x(w(12970)),ie=x(w(20828)),le=x(w(69425)),ue=w(24607),ce=x(w(96718)),se=_interopRequireWildcard(w(73838)),de=x(w(13167)),he=w(35879),ge=w(82643);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}return x.default=i,w&&w.set(i,x),x}var ye=function OutPainting(){var i=(0,S.useState)({width:0,height:0}),C=(0,j.default)(i,2),w=C[0],x=C[1],O=(0,S.useState)({x:.5,y:.5}),ye=(0,j.default)(O,2),ve=ye[0],Ce=ye[1],Se=(0,S.useState)(""),Pe=(0,j.default)(Se,2),Ie=Pe[0],Re=Pe[1],Me=(0,he.useRequestIds)().setGenerate,De=(0,ue.useEditImage)(),Fe=De.editImage,He=De.aspectRatio,Ue=(0,se.default)({aspectRatio:He}),Ge=Ue.settings,Ze=Ue.updateSettings,Ke=(0,ce.default)(),Qe=Ke.use,et=Ke.edit,tt=Ke.isLoading,nt=(0,de.default)(),rt=nt.data,ot=nt.send,at=nt.isLoading,it=nt.error,lt=at||tt,ut=(0,S.useMemo)((function(){return Ge[se.IMAGE_RATIO]}),[null==rt?void 0:rt.result]),ct=!(null==rt||!rt.result),st=function(){var i=(0,R.default)(k.default.mark((function _callee(i){var C;return k.default.wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:return i.preventDefault(),Me(),x.next=4,(0,ge.fetchImageAsBase64)(Fe.url);case 4:C=x.sent,ot({settings:Ge,image:Fe,mask:Ie,size:w,position:ve,image_base64:C});case 6:case"end":return x.stop()}}),_callee)})));return function handleSubmit(C){return i.apply(this,arguments)}}();return S.default.createElement(G.default,null,S.default.createElement(G.default.Panel,null,S.default.createElement(G.default.BackButton,null),S.default.createElement(G.default.PanelHeading,{primary:(0,N.__)("Expand Image","elementor"),secondary:(0,N.__)("Position image in it’s new size to generate content around the edges.","elementor")}),it&&S.default.createElement(G.default.ErrorMessage,{error:it,onRetry:st}),S.default.createElement($.default,{onSubmit:st},S.default.createElement(J.default,{disabled:lt||ct,value:Ge[se.IMAGE_RATIO],onChange:function onChange(i){return Ze((0,I.default)({},se.IMAGE_RATIO,i.target.value))}}),S.default.createElement(W.FormControl,{sx:{width:"100%",mb:2.5}},S.default.createElement(W.Slider,{marks:!0,id:"zoom",name:"zoom",max:1,min:.1,step:.1,color:"secondary",defaultValue:1,disabled:lt||ct,valueLabelDisplay:"auto","aria-labelledby":"image-size-slider","aria-label":(0,N.__)("Reference strength","elementor"),onChange:function onChange(i,C){return Ze((0,I.default)({},se.IMAGE_ZOOM,C))}}),S.default.createElement(W.Typography,{id:"image-size-slider",variant:"caption",gutterBottom:!0},(0,N.__)("Original image size","elementor"))),null!=rt&&rt.result?S.default.createElement(W.Stack,{gap:2,sx:{my:2.5}},S.default.createElement(oe.default,{disabled:lt})):S.default.createElement(re.default,{disabled:lt}))),S.default.createElement(G.default.Content,{isGenerating:lt},ct?S.default.createElement(le.default,{onUseImage:Qe,onEditImage:et,images:rt.result,aspectRatio:ut}):S.default.createElement(ie.default,{setMask:Re,editImage:Fe,scale:Ge[se.IMAGE_ZOOM],aspectRatio:Ge[se.IMAGE_RATIO],setImageSize:x,setPosition:Ce})))};C.default=ye},20828:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=w(36626),j=x(w(23615)),W=x(w(78462)),N=x(w(98608));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var G=function OutPaintingContent(i){var C=i.scale,w=i.setMask,x=i.editImage,O=i.aspectRatio,j=i.setImageSize,G=i.setPosition,$=(0,S.useRef)(),J=(0,S.useRef)({x:.5,y:.5}),re=(0,N.default)(O),oe=re.width,ie=re.height,le={width:oe,height:ie},ue=function(){var i=(0,I.default)(k.default.mark((function _callee(){var i;return k.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,$.current.getImageScaledToCanvas().toDataURL();case 2:i=C.sent,w(i);case 4:case"end":return C.stop()}}),_callee)})));return function updateMask(){return i.apply(this,arguments)}}(),ce=function(){var i=(0,I.default)(k.default.mark((function _callee2(i){return k.default.wrap((function _callee2$(C){for(;;)switch(C.prev=C.next){case 0:return J.current={x:i.x,y:i.y},C.next=3,ue();case 3:G(J.current);case 4:case"end":return C.stop()}}),_callee2)})));return function onPositionChange(C){return i.apply(this,arguments)}}(),se=function(){var i=(0,I.default)(k.default.mark((function _callee3(){return k.default.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:return le={width:le.width*C,height:le.height*C},i.next=3,ue();case 3:j(le);case 4:case"end":return i.stop()}}),_callee3)})));return function onImageChange(){return i.apply(this,arguments)}}();return S.default.createElement(R.Stack,{alignItems:"center",spacing:.5,flexGrow:1},S.default.createElement(W.default,{ref:$,image:x.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:se,onPositionChange:function onPositionChange(i){return ce(i)},width:oe,height:ie,scale:C}))};G.propTypes={scale:j.default.number.isRequired,setMask:j.default.func.isRequired,editImage:j.default.object.isRequired,aspectRatio:j.default.string.isRequired,setImageSize:j.default.func.isRequired,setPosition:j.default.func.isRequired};var $=G;C.default=$},94818:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useRemoveBackground(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageRemoveBackground)(i)}),i)};C.default=k},77474:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(38415)),R=x(w(78025)),j=x(w(38793)),W=x(w(69425)),N=x(w(20273)),G=w(24607),$=x(w(96718)),J=x(w(94818)),re=x(w(69870)),oe=w(86802),ie=w(29859),le=x(w(98608)),ue=w(35879),ce=function RemoveBackground(){var i=(0,G.useEditImage)().editImage,C=(0,ue.useRequestIds)().setGenerate,w=(0,$.default)(),x=w.use,ce=w.edit,se=w.isLoading,de=(0,J.default)(),he=de.data,ge=de.send,ye=de.isLoading,ve=de.error,Ce=(0,ie.useLocation)().navigate,Se=ye||se,Pe=(0,le.default)(i.aspectRatio),Ie=Pe.width,Re=Pe.height,Me=function handleSubmit(w){w.preventDefault(),C(),ge({image:i})};return O.default.createElement(I.default,null,O.default.createElement(I.default.Panel,null,O.default.createElement(I.default.BackButton,null),O.default.createElement(I.default.PanelHeading,{primary:(0,k.__)("Remove Background","elementor"),secondary:(0,k.__)("Create an image of the subject with a transparent background","elementor")}),ve&&O.default.createElement(I.default.ErrorMessage,{error:ve,onRetry:Me}),O.default.createElement(j.default,{onSubmit:Me},null!=he&&he.result?O.default.createElement(re.default,{variant:"contained",disabled:Se,onClick:function onClick(){return Ce(oe.LOCATIONS.GENERATE)}}):O.default.createElement(R.default,{disabled:Se},(0,k.__)("Remove Background","elementor")))),O.default.createElement(I.default.Content,{isGenerating:Se},null!=he&&he.result?O.default.createElement(S.Box,null,O.default.createElement(W.default,{transparentContainer:!0,onUseImage:x,onEditImage:ce,images:he.result,aspectRatio:i.aspectRatio})):O.default.createElement(S.Box,null,O.default.createElement(N.default,null,O.default.createElement(N.default.Image,{src:i.url,alt:i.alt,style:{width:Ie,height:Re}})))))};C.default=ce},19171:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useReplaceBackground(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageReplaceBackground)(i)}),i)};C.default=k},64874:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(38415)),R=w(38003),j=x(w(78025)),W=x(w(38793)),N=x(w(69425)),G=x(w(20273)),$=w(24607),J=x(w(96718)),re=x(w(19171)),oe=x(w(65875)),ie=w(86802),le=x(w(69870)),ue=w(29859),ce=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var se=function ReplaceBackground(){var i=(0,S.useState)(""),C=(0,k.default)(i,2),w=C[0],x=C[1],O=(0,ce.useRequestIds)().setGenerate,se=(0,$.useEditImage)().editImage,de=(0,J.default)(),he=de.use,ge=de.edit,ye=de.isLoading,ve=(0,re.default)(),Ce=ve.data,Se=ve.send,Pe=ve.isLoading,Ie=ve.error,Re=(0,ue.useLocation)().navigate,Me=Pe||ye,De=function handleSubmit(i){i.preventDefault(),O(),Se({prompt:w,image:se})};return S.default.createElement(I.default,null,S.default.createElement(I.default.Panel,null,S.default.createElement(I.default.BackButton,null),S.default.createElement(I.default.PanelHeading,{primary:(0,R.__)("Replace Background","elementor"),secondary:(0,R.__)("Generate a new background with a prompt.","elementor")}),Ie&&S.default.createElement(I.default.ErrorMessage,{error:Ie,onRetry:De}),S.default.createElement(W.default,{onSubmit:De},S.default.createElement(oe.default,{value:w,disabled:Me,onChange:x,placeholder:(0,R.__)("Describe what you want to generate in the background (English only)","elementor")}),S.default.createElement(j.default,{disabled:Me||""===w,color:null!=Ce&&Ce.result?"secondary":"primary"},null!=Ce&&Ce.result?(0,R.__)("Generate Again","elementor"):(0,R.__)("Replace Background","elementor")),(null==Ce?void 0:Ce.result)&&S.default.createElement(le.default,{disabled:Me,onClick:function onClick(){return Re(ie.LOCATIONS.GENERATE)}}))),S.default.createElement(I.default.Content,{isGenerating:Me},null!=Ce&&Ce.result?S.default.createElement(N.default,{onUseImage:he,onEditImage:ge,images:Ce.result,aspectRatio:se.aspectRatio}):S.default.createElement(G.default,null,S.default.createElement(G.default.Image,{src:se.url,alt:se.alt,style:{width:se.width,height:se.height}}))))};C.default=se},73781:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useResize(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageUpscale)(i)}),i)};C.default=k},72269:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=x(w(87363)),k=x(w(93231)),I=w(36626),R=w(38003),j=x(w(38415)),W=x(w(78025)),N=x(w(38793)),G=x(w(69425)),$=x(w(20273)),J=w(24607),re=x(w(73781)),oe=x(w(96718)),ie=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(73838)),le=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var ue=function Resize(){var i=(0,J.useEditImage)(),C=i.editImage,w=i.width,x=(0,le.useRequestIds)().setGenerate,O=(0,oe.default)(),ue=O.use,ce=O.edit,se=O.isLoading,de=(0,ie.default)(),he=de.settings,ge=de.updateSettings,ye=(0,re.default)(),ve=ye.data,Ce=ye.send,Se=ye.isLoading,Pe=ye.error,Ie=Se||se,Re=function handleSubmit(i){i.preventDefault(),x(),Ce({promptSettings:he,image:C})};return S.default.createElement(j.default,null,S.default.createElement(j.default.Panel,null,S.default.createElement(j.default.BackButton,null),S.default.createElement(j.default.PanelHeading,{primary:(0,R.__)("Resize","elementor"),secondary:(0,R.__)("Make an image larger and improve it’s resolution.","elementor")}),Pe&&S.default.createElement(j.default.ErrorMessage,{error:Pe,onRetry:Re}),S.default.createElement(N.default,{onSubmit:Re},S.default.createElement(I.Stack,{spacing:.2},S.default.createElement(I.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},S.default.createElement(I.Typography,{variant:"caption"},"512px"),S.default.createElement(I.Typography,{variant:"caption"},"2048px")),S.default.createElement(I.Slider,{marks:!0,step:64,min:512,max:2048,id:"upscale_to",color:"secondary",name:"upscale_to",disabled:Ie,defaultValue:w,valueLabelDisplay:"auto","aria-label":(0,R.__)("Upscale to","elementor"),onChange:function onChange(i,C){return ge((0,k.default)({},ie.IMAGE_UPSCALE,C))}}),S.default.createElement(I.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},S.default.createElement(I.Typography,{variant:"caption"},(0,R.__)("Current","elementor")),S.default.createElement(I.Typography,{variant:"caption"},(0,R.__)("Output","elementor")))),S.default.createElement(W.default,{disabled:Ie}))),S.default.createElement(j.default.Content,{isGenerating:Ie},null!=ve&&ve.result?S.default.createElement(G.default,{onUseImage:ue,onEditImage:ce,images:ve.result,aspectRatio:C.aspectRatio}):S.default.createElement($.default,null,S.default.createElement($.default.Image,{src:C.url,alt:C.alt,style:{width:C.width,height:C.height}}))))};C.default=ue},64355:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(34029),I=function ImagesPlaceholder(){return O.default.createElement(S.Box,{sx:{overflowY:"scroll"},flexGrow:1},O.default.createElement(S.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:3},Array(4).fill(!0).map((function(i,C){return O.default.createElement(S.Box,{key:"placeholder-".concat(C),display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"action.selected",height:336}},O.default.createElement(k.AIIcon,{color:"secondary",sx:{fontSize:36}}))}))))};I.propTypes={};var R=I;C.default=R},80449:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useImageToImage(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageGeneration)(i)}),i)};C.default=k},62292:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=_interopRequireWildcard(w(87363)),k=x(w(40131)),I=w(36626),R=w(38003),j=x(w(38415)),W=x(w(38793)),N=x(w(12970)),G=x(w(66467)),$=x(w(69425)),J=x(w(64355)),re=x(w(80449)),oe=x(w(96718)),ie=w(24607),le=_interopRequireWildcard(w(73838)),ue=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}return x.default=i,w&&w.set(i,x),x}var ce=function Variations(){var i,C=(0,S.useState)(""),w=(0,k.default)(C,1)[0],x=(0,ue.useRequestIds)().setGenerate,O=(0,ie.useEditImage)(),ce=O.editImage,se=O.aspectRatio,de=(0,le.default)({aspectRatio:se,imageWeight:45}).settings,he=(0,re.default)(),ge=he.data,ye=he.send,ve=he.isLoading,Ce=he.error,Se=(0,oe.default)(),Pe=Se.use,Ie=Se.edit,Re=Se.isLoading,Me=ve||Re,De=(0,S.useMemo)((function(){return de[le.IMAGE_RATIO]}),[null==ge?void 0:ge.result]),Fe=function handleSubmit(i){i.preventDefault(),x(),ye({prompt:w,settings:de,image:ce})};return S.default.createElement(j.default,null,S.default.createElement(j.default.Panel,null,S.default.createElement(j.default.BackButton,null),S.default.createElement(j.default.PanelHeading,{primary:(0,R.__)("Variations","elementor"),secondary:(0,R.__)("Create new versions of the original image.","elementor")}),Ce&&S.default.createElement(j.default.ErrorMessage,{error:Ce,onRetry:Fe}),S.default.createElement(W.default,{onSubmit:Fe},S.default.createElement(I.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"action.selected"}},S.default.createElement("img",{src:(null==ce?void 0:ce.image_url)||(null==ce?void 0:ce.url),alt:w,style:{width:"auto",height:"auto",maxWidth:"100%",maxHeight:166,objectFit:"contained"}})),S.default.createElement(I.Stack,{gap:2,sx:{my:2.5}},(null==ge||null===(i=ge.result)||void 0===i?void 0:i.length)>0?S.default.createElement(N.default,{disabled:Me}):S.default.createElement(G.default,{disabled:Me})))),S.default.createElement(j.default.Content,{isGenerating:Me},null!=ge&&ge.result?S.default.createElement($.default,{images:ge.result,aspectRatio:De,onUseImage:Pe,onEditImage:Ie}):S.default.createElement(J.default,null)))};ce.propTypes={};var se=ce;C.default=se},85157:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(34029),$=x(w(71871)),J=x(w(51391)),re=x(w(87105)),oe=x(w(79619)),ie=x(w(84515)),le=x(w(93970)),ue=x(w(4466)),ce=x(w(77655)),se=x(w(86960)),de=x(w(65441)),he=w(17927),ge=w(10905),ye=w(35879),ve=w(90246);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var Ce=[{label:(0,W.__)("Simplify language","elementor"),icon:S.default.createElement(G.MessageIcon,{fontSize:"small"}),value:"Simplify the language of the following message"},{label:(0,W.__)("Make it longer","elementor"),icon:S.default.createElement(G.ExpandIcon,{fontSize:"small"}),value:"Make the following message longer"},{label:(0,W.__)("Make it shorter","elementor"),icon:S.default.createElement(G.ShrinkIcon,{fontSize:"small"}),value:"Make the following message shorter"},{label:(0,W.__)("Fix spelling & grammar","elementor"),icon:S.default.createElement(G.AIIcon,{fontSize:"small"}),value:"Fix the spelling and grammar of the following message"}],Se=[{label:(0,W.__)("Change tone","elementor"),options:he.vocalTones,getInstruction:function getInstruction(i){return"Change the tone of the following message to ".concat(i)}},{label:(0,W.__)("Translate to","elementor"),options:he.translateLanguages,getInstruction:function getInstruction(i){return"Translate the following message to ".concat(i)}}],Pe=function FormText(i){var C,w,x,O=i.type,N=i.onClose,G=i.getControlValue,Pe=i.setControlValue,Ie=i.additionalOptions,Re=i.credits,Me=i.children,De=G()===(null==Ie?void 0:Ie.defaultValue)?"":G(),Fe=(0,de.default)({result:null!==(C=null==De?void 0:De.result)&&void 0!==C?C:De,credits:null!==(w=null==De?void 0:De.credits)&&void 0!==w?w:Re,responseId:null==De?void 0:De.responseId}),He=Fe.data,Ue=Fe.isLoading,Ge=Fe.error,Ze=Fe.setResult,Ke=Fe.reset,Qe=Fe.send,et=Fe.sendUsageData,tt=Ge||(null==Ie?void 0:Ie.initError),nt=(0,S.useState)(""),rt=(0,R.default)(nt,2),ot=rt[0],at=rt[1],it=(0,ye.useRequestIds)().setGenerate;(0,ge.useSubscribeOnPromptHistoryAction)([{type:ge.ACTION_TYPES.REUSE,handler:function handler(i){Ke(),at(i.data)}},{type:ge.ACTION_TYPES.EDIT,handler:function handler(i){Ze(i.data)}}]);var lt=(0,S.useRef)(null),ut=(0,S.useRef)(null),ct=(0,S.useRef)(null!==(x=Ie.initRetry)&&void 0!==x?x:function(){}),st="textarea"===O?he.textareaAutocomplete:he.textAutocomplete,dt=!ot,ft=function(){var i=(0,I.default)(k.default.mark((function _callee(i){return k.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:it(),ct.current=function(){return Qe({input:ut.current.value,instruction:i})},ct.current();case 3:case"end":return C.stop()}}),_callee)})));return function handleCustomInstruction(C){return i.apply(this,arguments)}}();return Ue?S.default.createElement($.default,null):S.default.createElement(S.default.Fragment,null,tt&&S.default.createElement(se.default,{error:tt,onRetry:ct.current,sx:{mb:2.5}}),Me,!He.result&&S.default.createElement(j.Box,{component:"form",onSubmit:function handleSubmit(i){i.preventDefault(),it(),ct.current=function(){return Qe({prompt:ot})},ct.current()}},S.default.createElement(j.Box,{sx:{mb:2.5}},S.default.createElement(J.default,{ref:lt,placeholder:(0,W.__)("Describe the text and tone you want to use...","elementor"),name:"prompt",value:ot,onChange:function onChange(i){return at(i.target.value)}})),dt&&S.default.createElement(oe.default,{suggestions:st,onSelect:function handleSuggestion(i){at(i+" "),lt.current.focus()},suggestionFilter:function suggestionFilter(i){return i+"..."}},S.default.createElement(ie.default,{libraryLink:"https://go.elementor.com/ai-prompt-library-text/"})),Ie.hideAiContext?null:S.default.createElement(ve.VoicePromotionAlert,{introductionKey:"ai-context-text-promotion",sx:{mb:2}}),S.default.createElement(j.Stack,{direction:"row",alignItems:"center",sx:{pb:1.5,mt:2}},S.default.createElement(j.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},S.default.createElement(ue.default,null,(0,W.__)("Generate text","elementor"))))),He.result&&S.default.createElement(j.Box,{sx:{mt:1}},S.default.createElement(re.default,{fullWidth:!0,ref:ut,value:He.result,helperText:(0,W.__)("Text generated by AI may be inaccurate or offensive.","elementor"),onChange:function onChange(i){return Ze(i.target.value)}}),S.default.createElement(j.Grid,{container:!0,spacing:1,sx:{mt:2.5}},Ce.map((function(i){var C=i.label,w=i.icon,x=i.value;return S.default.createElement(j.Grid,{item:!0,key:C},S.default.createElement(ce.default,{label:C,icon:w,onClick:function onClick(){return ft(x)}}))}))),S.default.createElement(j.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mt:2.5}},Se.map((function(i){var C=i.label,w=i.options,x=i.getInstruction;return S.default.createElement(le.default,{key:C,label:C,options:w,onChange:function onChange(i){return ft(x(i.target.value))}})}))),Ie.hideAiContext?null:S.default.createElement(ve.VoicePromotionAlert,{introductionKey:"ai-context-text-promotion",sx:{mb:2}}),S.default.createElement(j.Stack,{direction:"row",alignItems:"center",sx:{my:1}},S.default.createElement(j.Stack,{direction:"row",gap:1,justifyContent:"flex-end",flexGrow:1},S.default.createElement(j.Button,{size:"small",color:"secondary",variant:"text",onClick:Ke},(0,W.__)("New prompt","elementor")),S.default.createElement(j.Button,{size:"small",variant:"contained",color:"primary",onClick:function applyPrompt(){et(),Pe(ut.current.value),N()}},(0,W.__)("Use text","elementor"))))))};Pe.propTypes={type:N.default.string.isRequired,controlType:N.default.string,onClose:N.default.func.isRequired,getControlValue:N.default.func.isRequired,setControlValue:N.default.func.isRequired,additionalOptions:N.default.object,credits:N.default.number,usagePercentage:N.default.number,children:N.default.node};var Ie=Pe;C.default=Ie},96587:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(46183),$=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var J=function GetStarted(i){var C=i.onSuccess,w=(0,S.useState)(!1),x=(0,R.default)(w,2),O=x[0],N=x[1],J=function(){var i=(0,I.default)(k.default.mark((function _callee(){return k.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,G.setGetStarted)();case 2:C();case 3:case"end":return i.stop()}}),_callee)})));return function onGetStartedClick(){return i.apply(this,arguments)}}();return S.default.createElement(j.Stack,{alignItems:"center",gap:1.5},S.default.createElement($.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),S.default.createElement(j.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,W.__)("Step into the future with Elementor AI","elementor")),S.default.createElement(j.Typography,{variant:"body2"},(0,W.__)("Create smarter with AI text and code generators built right into the editor.","elementor")),S.default.createElement(j.Stack,{direction:"row",gap:1.5,alignItems:"flex-start"},S.default.createElement(j.Checkbox,{id:"e-ai-terms-approval",color:"secondary",checked:O,onClick:function onClick(){return N((function(i){return!i}))}}),S.default.createElement(j.Stack,null,S.default.createElement(j.Typography,{variant:"caption",sx:{maxWidth:520},component:"label",htmlFor:"e-ai-terms-approval"},(0,W.__)("I approve the ","elementor"),S.default.createElement(j.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,W.__)("Terms of Service","elementor"))," & ",S.default.createElement(j.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,W.__)("Privacy Policy","elementor")),(0,W.__)(" of the Elementor AI service.","elementor"),S.default.createElement("br",null),(0,W.__)("This includes consenting to the collection and use of data to improve user experience.","elementor")))),S.default.createElement(j.Button,{disabled:!O,variant:"contained",onClick:J,sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,W.__)("Get Started","elementor")))};J.propTypes={onSuccess:N.default.func.isRequired};var re=J;C.default=re},77292:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.AttachmentsTypesPropType=C.AttachmentPropType=void 0;var O=x(w(23615)),S=O.default.shape({type:O.default.string,previewHTML:O.default.string,content:O.default.string,label:O.default.string,source:O.default.string});C.AttachmentPropType=S;var k=O.default.shape({type:O.default.shape({promptPlaceholder:O.default.string,promptSuggestions:O.default.arrayOf(O.default.shape({text:O.default.string.isRequired})),previewGenerator:O.default.func})});C.AttachmentsTypesPropType=k},36619:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.renderLayoutApp=C.openPanel=C.onConnect=C.importToEditor=C.getUiConfig=C.closePanel=C.WEB_BASED_PROMPTS=C.VARIATIONS_PROMPTS=void 0;var O=x(w(87363)),S=x(w(50824)),k=x(w(10029)),I=x(w(66535)),R=w(5389),j=x(w(78949)),W=w(24271),N=w(48096),G=w(38003),$=x(w(42637)),J=w(35879),re=function closePanel(){$e.run("panel/close"),$e.components.get("panel").blockUserInteractions()};C.closePanel=re;var oe=function openPanel(){$e.run("panel/open"),$e.components.get("panel").unblockUserInteractions()};C.openPanel=oe;var ie=function onConnect(i){elementorCommon.config.library_connect.is_connected=!0,elementorCommon.config.library_connect.current_access_level=i.kits_access_level||i.access_level||0,elementorCommon.config.library_connect.current_access_tier=i.access_tier};C.onConnect=ie;var le=function getUiConfig(){var i,C;return{colorScheme:(null===(i=elementor)||void 0===i||null===(C=i.getPreferences)||void 0===C?void 0:C.call(i,"ui_theme"))||"auto",isRTL:elementorCommon.config.isRTL}};C.getUiConfig=le;var ue=[{text:(0,G.__)("Minimalist design with bold typography about","elementor")},{text:(0,G.__)("Elegant style with serif fonts discussing","elementor")},{text:(0,G.__)("Retro vibe with muted colors and classic fonts about","elementor")},{text:(0,G.__)("Futuristic design with neon accents about","elementor")},{text:(0,G.__)("Professional look with clean lines for","elementor")},{text:(0,G.__)("Earthy tones and organic shapes featuring","elementor")},{text:(0,G.__)("Luxurious theme with rich colors discussing","elementor")},{text:(0,G.__)("Tech-inspired style with modern fonts about","elementor")},{text:(0,G.__)("Warm hues with comforting visuals about","elementor")}];C.VARIATIONS_PROMPTS=ue;var ce=[{text:(0,G.__)("Change the content to be about [topic]","elementor")},{text:(0,G.__)("Generate lorem ipsum placeholder text for all paragraphs","elementor")},{text:(0,G.__)("Revise the content to focus on [topic] and then translate it into Spanish","elementor")},{text:(0,G.__)("Shift the focus of the content to [topic] in order to showcase our company's mission and values","elementor")},{text:(0,G.__)("Alter the content to provide helpful tips related to [topic]","elementor")},{text:(0,G.__)("Adjust the content to include FAQs and answers for common inquiries about [topic]","elementor")}];C.WEB_BASED_PROMPTS=ce;var se=(0,G.__)("Press '/' for suggestions or describe the changes you want to apply (optional)...","elementor");C.renderLayoutApp=function renderLayoutApp(){var i,C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{parentContainer:null,mode:"",at:null,onClose:null,onGenerate:null,onInsert:null,onRenderApp:null,onSelect:null,attachments:[]};re();var w=(0,R.createPreviewContainer)(C.parentContainer,{at:C.at}),x=le(),N=x.colorScheme,G=x.isRTL,J=document.createElement("div");document.body.append(J);var de,he=window.elementorFrontend.elements.$window[0].getComputedStyle(window.elementorFrontend.elements.$body[0]),ge=I.default.render(O.default.createElement($.default,{isRTL:G,colorScheme:N},O.default.createElement(j.default,{mode:C.mode,currentContext:{body:{backgroundColor:he.backgroundColor,backgroundImage:he.backgroundImage}},attachmentsTypes:{json:{promptSuggestions:ue,promptPlaceholder:se,previewGenerator:(de=(0,k.default)(S.default.mark((function _callee(i){var C;return S.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,(0,W.takeScreenshot)(i);case 2:return C=w.sent,w.abrupt("return",'
'));case 4:case"end":return w.stop()}}),_callee)}))),function previewGenerator(i){return de.apply(this,arguments)})},url:{promptPlaceholder:se,promptSuggestions:ce}},attachments:C.attachments||[],onClose:function onClose(){var i;w.destroy(),null===(i=C.onClose)||void 0===i||i.call(C),ye(),J.remove(),oe()},onConnect:ie,onGenerate:function onGenerate(){var i;null===(i=C.onGenerate)||void 0===i||i.call(C,{previewContainer:w})},onData:function(){var i=(0,k.default)(S.default.mark((function _callee2(i){var C;return S.default.wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,(0,W.takeScreenshot)(i);case 2:return C=w.sent,w.abrupt("return",{screenshot:C,template:i});case 4:case"end":return w.stop()}}),_callee2)})));return function(C){return i.apply(this,arguments)}}(),onSelect:function onSelect(i){var x;null===(x=C.onSelect)||void 0===x||x.call(C),w.setContent(i)},onInsert:C.onInsert,hasPro:elementor.helpers.hasPro()})),J),ye=ge.unmount;null===(i=C.onRenderApp)||void 0===i||i.call(C,{previewContainer:w})};C.importToEditor=function importToEditor(i){var C=i.parentContainer,w=i.at,x=i.template,O=i.historyTitle,S=i.replace,k=void 0!==S&&S,I=(0,N.startHistoryLog)({type:"import",title:O});k&&$e.run("document/elements/delete",{container:C.children.at(w)}),$e.run("document/elements/create",{container:C,model:(0,J.generateIds)(x),options:{at:w,edit:!0}}),I()}},48096:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.startHistoryLog=function startHistoryLog(i){var C=i.type,w=i.title,x=$e.internal("document/history/start-log",{type:C,title:w});return function(){return $e.internal("document/history/end-log",{id:x})}},C.toggleHistory=function toggleHistory(i){elementor.documents.getCurrent().history.setActive(i)}},5389:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.createPreviewContainer=function createPreviewContainer(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w=new Map,x=function createIdleContainer(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w=createContainer(i,{elType:"container"},C);return w.view.$el.addClass(j),w}(i,C);function getAllContainers(){return[].concat((0,S.default)(w.values()),[x])}return{init:function init(){showContainer(x)},reset:function reset(){deleteContainers((0,S.default)(w.values())),w.clear(),showContainer(x)},setContent:function setContent(x){if(x){if(function hideContainers(i){i.forEach((function(i){i.view.$el.addClass(R)}))}(getAllContainers()),!w.has(x)){var O=createContainer(i,x,C);w.set(x,O)}showContainer(w.get(x))}},destroy:function destroy(){deleteContainers(getAllContainers()),w.clear()}}};var O=x(w(93231)),S=x(w(9833)),k=w(48096);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
2&&void 0!==arguments[2]?arguments[2]:{};(0,k.toggleHistory)(!1);var x=$e.run("document/elements/create",{container:i,model:_objectSpread(_objectSpread({},C),{},{id:"".concat(I,"-").concat(elementorCommon.helpers.getUniqueId().toString())}),options:_objectSpread(_objectSpread({},w),{},{edit:!1})});return(0,k.toggleHistory)(!0),x.view.$el.addClass(R),x}function showContainer(i){i.view.$el.removeClass(R),setTimeout((function(){i.view.$el[0].scrollIntoView({behavior:"smooth",block:"start"})}))}function deleteContainers(i){(0,k.toggleHistory)(!1),$e.run("document/elements/delete",{containers:i}),(0,k.toggleHistory)(!0)}},24271:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.takeScreenshot=void 0;var O=x(w(50824)),S=x(w(9833)),k=x(w(10029)),I=w(62478),R=w(48096),j=w(35879),W=function(){var i=(0,k.default)(O.default.mark((function _callee(i){var C,w,x;return O.default.wrap((function _callee$(O){for(;;)switch(O.prev=O.next){case 0:if(i){O.next=2;break}return O.abrupt("return","");case 2:return(0,R.toggleHistory)(!1),C=createHiddenWrapper(),wrapContainer(w=createContainer(i),C),elementor.getPreviewView().$childViewContainer[0].appendChild(C),O.next=9,waitForContainer(w.id);case 9:if(!i.elements.length){O.next=12;break}return O.next=12,Promise.all(i.elements.map((function(i){return waitForContainer(i.id)})));case 12:return O.prev=12,O.next=15,function toWebp(i){return _toWebp.apply(this,arguments)}(w.view.$el[0],{quality:.01,imagePlaceholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="});case 15:x=O.sent,O.next=21;break;case 18:O.prev=18,O.t0=O.catch(12),x="";case 21:return deleteContainer(w),C.remove(),(0,R.toggleHistory)(!0),O.abrupt("return",x);case 25:case"end":return O.stop()}}),_callee,null,[[12,18]])})));return function takeScreenshot(C){return i.apply(this,arguments)}}();function _toWebp(){return _toWebp=(0,k.default)(O.default.mark((function _callee3(i){var C,w,x,S=arguments;return O.default.wrap((function _callee3$(O){for(;;)switch(O.prev=O.next){case 0:return w=S.length>1&&void 0!==S[1]?S[1]:{},O.next=3,(0,I.toCanvas)(i,w);case 3:return x=O.sent,O.abrupt("return",x.toDataURL("image/webp",null!==(C=w.quality)&&void 0!==C?C:1));case 5:case"end":return O.stop()}}),_callee3)}))),_toWebp.apply(this,arguments)}function createHiddenWrapper(){var i=document.createElement("div");return i.style.position="fixed",i.style.opacity="0",i.style.inset="0",i}function createContainer(i){var C=(0,j.generateIds)(i);return C.id="e-ai-screenshot-container-".concat(C.id),$e.run("document/elements/create",{container:elementor.getPreviewContainer(),model:C,options:{edit:!1}})}function deleteContainer(i){return $e.run("document/elements/delete",{container:i})}function waitForContainer(i){var C=function sleep(i){return new Promise((function(C){return setTimeout(C,i)}))}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3),w=new Promise((function(C){elementorFrontend.hooks.addAction("frontend/element_ready/global",function(){var w=(0,k.default)(O.default.mark((function _callee2(w){var x;return O.default.wrap((function _callee2$(O){for(;;)switch(O.prev=O.next){case 0:if(w.data("id")!==i){O.next=5;break}return x=(0,S.default)(w[0].querySelectorAll("img")),O.next=4,Promise.all(x.map(waitForImage));case 4:C();case 5:case"end":return O.stop()}}),_callee2)})));return function(i){return w.apply(this,arguments)}}())}));return Promise.any([C,w])}function waitForImage(i){return i.complete?Promise.resolve():new Promise((function(C){i.addEventListener("load",C),i.addEventListener("error",(function(){i.remove(),C()}))}))}function wrapContainer(i,C){var w=i.view.$el[0];w.parentNode.insertBefore(C,w),C.appendChild(w)}C.takeScreenshot=W},51822:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.AIMediaGenerateApp=C.AIMediaEditApp=void 0;var O=x(w(87363)),S=x(w(23615)),k=x(w(74270)),I=w(86802),R=function AIMediaGenerateApp(i){var C=i.onClose,w=i.setControlValue,x=i.predefinedPrompt,S=void 0===x?"":x,R=i.textToImageHook,j=void 0===R?null:R,W=i.initialSettings,N=void 0===W?{}:W;return O.default.createElement(O.default.Fragment,null,O.default.createElement(k.default,{type:"media",getControlValue:function getControlValue(){},setControlValue:w,onClose:C,isRTL:elementorCommon.config.isRTL,additionalOptions:{defaultImageType:Object.keys(I.IMAGE_PROMPT_CATEGORIES)[1],textToImageHook:j,predefinedPrompt:S,initialSettings:N}}))};C.AIMediaGenerateApp=R,R.propTypes={onClose:S.default.func.isRequired,predefinedPrompt:S.default.string,textToImageHook:S.default.func,setControlValue:S.default.func.isRequired,initialSettings:S.default.object};var j=function AIMediaEditApp(i){var C=i.onClose,w=i.imageId,x=wp.media.attachment(w);return O.default.createElement(O.default.Fragment,null,O.default.createElement(k.default,{type:"media",getControlValue:function getControlValue(){return x.attributes},setControlValue:function setControlValue(){},onClose:C,isRTL:elementorCommon.config.isRTL,additionalOptions:{location:I.LOCATIONS.IMAGE_TOOLS}}))};C.AIMediaEditApp=j,j.propTypes={onClose:S.default.func.isRequired,imageId:S.default.string}},38944:(i,C,w)=>{"use strict";function r(i){var C,w,x="";if("string"==typeof i||"number"==typeof i)x+=i;else if("object"==typeof i)if(Array.isArray(i))for(C=0;C
clsx,default:()=>x});const x=clsx},50229:i=>{"use strict";var C=Object.prototype.hasOwnProperty,w=Object.prototype.toString,x=Object.defineProperty,O=Object.getOwnPropertyDescriptor,S=function isArray(i){return"function"==typeof Array.isArray?Array.isArray(i):"[object Array]"===w.call(i)},k=function isPlainObject(i){if(!i||"[object Object]"!==w.call(i))return!1;var x,O=C.call(i,"constructor"),S=i.constructor&&i.constructor.prototype&&C.call(i.constructor.prototype,"isPrototypeOf");if(i.constructor&&!O&&!S)return!1;for(x in i);return void 0===x||C.call(i,x)},I=function setProperty(i,C){x&&"__proto__"===C.name?x(i,C.name,{enumerable:!0,configurable:!0,value:C.newValue,writable:!0}):i[C.name]=C.newValue},R=function getProperty(i,w){if("__proto__"===w){if(!C.call(i,w))return;if(O)return O(i,w).value}return i[w]};i.exports=function extend(){var i,C,w,x,O,j,W=arguments[0],N=1,G=arguments.length,$=!1;for("boolean"==typeof W&&($=W,W=arguments[1]||{},N=2),(null==W||"object"!=typeof W&&"function"!=typeof W)&&(W={});N
{"use strict";var x=w(12097),O={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},S={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},k={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},I={};function getStatics(i){return x.isMemo(i)?k:I[i.$$typeof]||O}I[x.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},I[x.Memo]=k;var R=Object.defineProperty,j=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,N=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,$=Object.prototype;i.exports=function hoistNonReactStatics(i,C,w){if("string"!=typeof C){if($){var x=G(C);x&&x!==$&&hoistNonReactStatics(i,x,w)}var O=j(C);W&&(O=O.concat(W(C)));for(var k=getStatics(i),I=getStatics(C),J=0;J
{"use strict";var w="function"==typeof Symbol&&Symbol.for,x=w?Symbol.for("react.element"):60103,O=w?Symbol.for("react.portal"):60106,S=w?Symbol.for("react.fragment"):60107,k=w?Symbol.for("react.strict_mode"):60108,I=w?Symbol.for("react.profiler"):60114,R=w?Symbol.for("react.provider"):60109,j=w?Symbol.for("react.context"):60110,W=w?Symbol.for("react.async_mode"):60111,N=w?Symbol.for("react.concurrent_mode"):60111,G=w?Symbol.for("react.forward_ref"):60112,$=w?Symbol.for("react.suspense"):60113,J=w?Symbol.for("react.suspense_list"):60120,re=w?Symbol.for("react.memo"):60115,oe=w?Symbol.for("react.lazy"):60116,ie=w?Symbol.for("react.block"):60121,le=w?Symbol.for("react.fundamental"):60117,ue=w?Symbol.for("react.responder"):60118,ce=w?Symbol.for("react.scope"):60119;function z(i){if("object"==typeof i&&null!==i){var C=i.$$typeof;switch(C){case x:switch(i=i.type){case W:case N:case S:case I:case k:case $:return i;default:switch(i=i&&i.$$typeof){case j:case G:case oe:case re:case R:return i;default:return C}}case O:return C}}}function A(i){return z(i)===N}C.AsyncMode=W,C.ConcurrentMode=N,C.ContextConsumer=j,C.ContextProvider=R,C.Element=x,C.ForwardRef=G,C.Fragment=S,C.Lazy=oe,C.Memo=re,C.Portal=O,C.Profiler=I,C.StrictMode=k,C.Suspense=$,C.isAsyncMode=function(i){return A(i)||z(i)===W},C.isConcurrentMode=A,C.isContextConsumer=function(i){return z(i)===j},C.isContextProvider=function(i){return z(i)===R},C.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===x},C.isForwardRef=function(i){return z(i)===G},C.isFragment=function(i){return z(i)===S},C.isLazy=function(i){return z(i)===oe},C.isMemo=function(i){return z(i)===re},C.isPortal=function(i){return z(i)===O},C.isProfiler=function(i){return z(i)===I},C.isStrictMode=function(i){return z(i)===k},C.isSuspense=function(i){return z(i)===$},C.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===S||i===N||i===I||i===k||i===$||i===J||"object"==typeof i&&null!==i&&(i.$$typeof===oe||i.$$typeof===re||i.$$typeof===R||i.$$typeof===j||i.$$typeof===G||i.$$typeof===le||i.$$typeof===ue||i.$$typeof===ce||i.$$typeof===ie)},C.typeOf=z},12097:(i,C,w)=>{"use strict";i.exports=w(14173)},62478:(i,C,w)=>{"use strict";w.r(C),w.d(C,{getFontEmbedCSS:()=>getFontEmbedCSS,toBlob:()=>toBlob,toCanvas:()=>toCanvas,toJpeg:()=>toJpeg,toPixelData:()=>toPixelData,toPng:()=>toPng,toSvg:()=>toSvg});const x=(()=>{let i=0;return()=>(i+=1,`u${`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4)}${i}`)})();function toArray(i){const C=[];for(let w=0,x=i.length;w
{const x=new Image;x.decode=()=>C(x),x.onload=()=>C(x),x.onerror=w,x.crossOrigin="anonymous",x.decoding="async",x.src=i}))}async function nodeToDataURL(i,C,w){const x="http://www.w3.org/2000/svg",O=document.createElementNS(x,"svg"),S=document.createElementNS(x,"foreignObject");return O.setAttribute("width",`${C}`),O.setAttribute("height",`${w}`),O.setAttribute("viewBox",`0 0 ${C} ${w}`),S.setAttribute("width","100%"),S.setAttribute("height","100%"),S.setAttribute("x","0"),S.setAttribute("y","0"),S.setAttribute("externalResourcesRequired","true"),O.appendChild(S),S.appendChild(i),async function svgToDataURL(i){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(i))).then(encodeURIComponent).then((i=>`data:image/svg+xml;charset=utf-8,${i}`))}(O)}const isInstanceOfElement=(i,C)=>{if(i instanceof C)return!0;const w=Object.getPrototypeOf(i);return null!==w&&(w.constructor.name===C.name||isInstanceOfElement(w,C))};function getPseudoElementStyle(i,C,w){const x=`.${i}:${C}`,O=w.cssText?function formatCSSText(i){const C=i.getPropertyValue("content");return`${i.cssText} content: '${C.replace(/'|"/g,"")}';`}(w):function formatCSSProperties(i){return toArray(i).map((C=>`${C}: ${i.getPropertyValue(C)}${i.getPropertyPriority(C)?" !important":""};`)).join(" ")}(w);return document.createTextNode(`${x}{${O}}`)}function clonePseudoElement(i,C,w){const O=window.getComputedStyle(i,w),S=O.getPropertyValue("content");if(""===S||"none"===S)return;const k=x();try{C.className=`${C.className} ${k}`}catch(i){return}const I=document.createElement("style");I.appendChild(getPseudoElementStyle(k,w,O)),C.appendChild(I)}const S="application/font-woff",k="image/jpeg",I={woff:S,woff2:S,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:k,jpeg:k,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function getMimeType(i){const C=function getExtension(i){const C=/\.([^./]*?)$/g.exec(i);return C?C[1]:""}(i).toLowerCase();return I[C]||""}function isDataUrl(i){return-1!==i.search(/^(data:)/)}function makeDataUrl(i,C){return`data:${C};base64,${i}`}async function fetchAsDataURL(i,C,w){const x=await fetch(i,C);if(404===x.status)throw new Error(`Resource "${x.url}" not found`);const O=await x.blob();return new Promise(((i,C)=>{const S=new FileReader;S.onerror=C,S.onloadend=()=>{try{i(w({res:x,result:S.result}))}catch(i){C(i)}},S.readAsDataURL(O)}))}const R={};async function resourceToDataURL(i,C,w){const x=function getCacheKey(i,C,w){let x=i.replace(/\?.*/,"");return w&&(x=i),/ttf|otf|eot|woff2?/i.test(x)&&(x=x.replace(/.*\//,"")),C?`[${C}]${x}`:x}(i,C,w.includeQueryParams);if(null!=R[x])return R[x];let O;w.cacheBust&&(i+=(/\?/.test(i)?"&":"?")+(new Date).getTime());try{const x=await fetchAsDataURL(i,w.fetchRequestInit,(({res:i,result:w})=>(C||(C=i.headers.get("Content-Type")||""),function getContentFromDataUrl(i){return i.split(/,/)[1]}(w))));O=makeDataUrl(x,C)}catch(C){O=w.imagePlaceholder||"";let x=`Failed to fetch resource: ${i}`;C&&(x="string"==typeof C?C:C.message),x&&console.warn(x)}return R[x]=O,O}async function cloneSingleNode(i,C){return isInstanceOfElement(i,HTMLCanvasElement)?async function cloneCanvasElement(i){const C=i.toDataURL();return"data:,"===C?i.cloneNode(!1):createImage(C)}(i):isInstanceOfElement(i,HTMLVideoElement)?async function cloneVideoElement(i,C){if(i.currentSrc){const C=document.createElement("canvas"),w=C.getContext("2d");return C.width=i.clientWidth,C.height=i.clientHeight,null==w||w.drawImage(i,0,0,C.width,C.height),createImage(C.toDataURL())}const w=i.poster,x=getMimeType(w);return createImage(await resourceToDataURL(w,x,C))}(i,C):isInstanceOfElement(i,HTMLIFrameElement)?async function cloneIFrameElement(i){var C;try{if(null===(C=null==i?void 0:i.contentDocument)||void 0===C?void 0:C.body)return await cloneNode(i.contentDocument.body,{},!0)}catch(i){}return i.cloneNode(!1)}(i):i.cloneNode(!1)}const isSlotElement=i=>null!=i.tagName&&"SLOT"===i.tagName.toUpperCase();function decorate(i,C){return isInstanceOfElement(C,Element)&&(!function cloneCSSStyle(i,C){const w=C.style;if(!w)return;const x=window.getComputedStyle(i);x.cssText?(w.cssText=x.cssText,w.transformOrigin=x.transformOrigin):toArray(x).forEach((O=>{let S=x.getPropertyValue(O);if("font-size"===O&&S.endsWith("px")){const i=Math.floor(parseFloat(S.substring(0,S.length-2)))-.1;S=`${i}px`}isInstanceOfElement(i,HTMLIFrameElement)&&"display"===O&&"inline"===S&&(S="block"),"d"===O&&C.getAttribute("d")&&(S=`path(${C.getAttribute("d")})`),w.setProperty(O,S,x.getPropertyPriority(O))}))}(i,C),function clonePseudoElements(i,C){clonePseudoElement(i,C,":before"),clonePseudoElement(i,C,":after")}(i,C),function cloneInputValue(i,C){isInstanceOfElement(i,HTMLTextAreaElement)&&(C.innerHTML=i.value),isInstanceOfElement(i,HTMLInputElement)&&C.setAttribute("value",i.value)}(i,C),function cloneSelectValue(i,C){if(isInstanceOfElement(i,HTMLSelectElement)){const w=C,x=Array.from(w.children).find((C=>i.value===C.getAttribute("value")));x&&x.setAttribute("selected","")}}(i,C)),C}async function cloneNode(i,C,w){return w||!C.filter||C.filter(i)?Promise.resolve(i).then((i=>cloneSingleNode(i,C))).then((w=>async function cloneChildren(i,C,w){var x,O;let S=[];return S=isSlotElement(i)&&i.assignedNodes?toArray(i.assignedNodes()):isInstanceOfElement(i,HTMLIFrameElement)&&(null===(x=i.contentDocument)||void 0===x?void 0:x.body)?toArray(i.contentDocument.body.childNodes):toArray((null!==(O=i.shadowRoot)&&void 0!==O?O:i).childNodes),0===S.length||isInstanceOfElement(i,HTMLVideoElement)||await S.reduce(((i,x)=>i.then((()=>cloneNode(x,w))).then((i=>{i&&C.appendChild(i)}))),Promise.resolve()),C}(i,w,C))).then((C=>decorate(i,C))).then((i=>async function ensureSVGSymbols(i,C){const w=i.querySelectorAll?i.querySelectorAll("use"):[];if(0===w.length)return i;const x={};for(let O=0;O
{for(;;){const[w,,x]=W.exec(i)||[];if(!x)return"";if(x===C)return`src: ${w};`}})):i}(i,w),O=function parseURLs(i){const C=[];return i.replace(j,((i,w,x)=>(C.push(x),i))),C.filter((i=>!isDataUrl(i)))}(x);return O.reduce(((i,x)=>i.then((i=>embed_resources_embed(i,x,C,w)))),Promise.resolve(x))}async function embedProp(i,C,w){var x;const O=null===(x=C.style)||void 0===x?void 0:x.getPropertyValue(i);if(O){const x=await embedResources(O,null,w);return C.style.setProperty(i,x,C.style.getPropertyPriority(i)),!0}return!1}async function embedImages(i,C){isInstanceOfElement(i,Element)&&(await async function embedBackground(i,C){await embedProp("background",i,C)||await embedProp("background-image",i,C),await embedProp("mask",i,C)||await embedProp("mask-image",i,C)}(i,C),await async function embedImageNode(i,C){const w=isInstanceOfElement(i,HTMLImageElement);if((!w||isDataUrl(i.src))&&(!isInstanceOfElement(i,SVGImageElement)||isDataUrl(i.href.baseVal)))return;const x=w?i.src:i.href.baseVal,O=await resourceToDataURL(x,getMimeType(x),C);await new Promise(((C,x)=>{i.onload=C,i.onerror=x;const S=i;S.decode&&(S.decode=C),"lazy"===S.loading&&(S.loading="eager"),w?(i.srcset="",i.src=O):i.href.baseVal=O}))}(i,C),await async function embedChildren(i,C){const w=toArray(i.childNodes).map((i=>embedImages(i,C)));await Promise.all(w).then((()=>i))}(i,C))}const G={};async function fetchCSS(i){let C=G[i];if(null!=C)return C;const w=await fetch(i);return C={url:i,cssText:await w.text()},G[i]=C,C}async function embedFonts(i,C){let w=i.cssText;const x=/url\(["']?([^"')]+)["']?\)/g,O=(w.match(/url\([^)]+\)/g)||[]).map((async O=>{let S=O.replace(x,"$1");return S.startsWith("https://")||(S=new URL(S,i.url).href),fetchAsDataURL(S,C.fetchRequestInit,(({result:i})=>(w=w.replace(O,`url(${i})`),[O,i])))}));return Promise.all(O).then((()=>w))}function parseCSS(i){if(null==i)return[];const C=[];let w=i.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const x=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const i=x.exec(w);if(null===i)break;C.push(i[0])}w=w.replace(x,"");const O=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,S=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let i=O.exec(w);if(null===i){if(i=S.exec(w),null===i)break;O.lastIndex=S.lastIndex}else S.lastIndex=O.lastIndex;C.push(i[0])}return C}async function parseWebFontRules(i,C){if(null==i.ownerDocument)throw new Error("Provided element is not within a Document");const w=toArray(i.ownerDocument.styleSheets),x=await async function getCSSRules(i,C){const w=[],x=[];return i.forEach((w=>{if("cssRules"in w)try{toArray(w.cssRules||[]).forEach(((i,O)=>{if(i.type===CSSRule.IMPORT_RULE){let S=O+1;const k=fetchCSS(i.href).then((i=>embedFonts(i,C))).then((i=>parseCSS(i).forEach((i=>{try{w.insertRule(i,i.startsWith("@import")?S+=1:w.cssRules.length)}catch(C){console.error("Error inserting rule from remote css",{rule:i,error:C})}})))).catch((i=>{console.error("Error loading remote css",i.toString())}));x.push(k)}}))}catch(O){const S=i.find((i=>null==i.href))||document.styleSheets[0];null!=w.href&&x.push(fetchCSS(w.href).then((i=>embedFonts(i,C))).then((i=>parseCSS(i).forEach((i=>{S.insertRule(i,w.cssRules.length)})))).catch((i=>{console.error("Error loading remote stylesheet",i)}))),console.error("Error inlining remote css file",O)}})),Promise.all(x).then((()=>(i.forEach((i=>{if("cssRules"in i)try{toArray(i.cssRules||[]).forEach((i=>{w.push(i)}))}catch(C){console.error(`Error while reading CSS rules from ${i.href}`,C)}})),w)))}(w,C);return function getWebFontRules(i){return i.filter((i=>i.type===CSSRule.FONT_FACE_RULE)).filter((i=>shouldEmbed(i.style.getPropertyValue("src"))))}(x)}async function getWebFontCSS(i,C){const w=await parseWebFontRules(i,C);return(await Promise.all(w.map((i=>{const w=i.parentStyleSheet?i.parentStyleSheet.href:null;return embedResources(i.cssText,w,C)})))).join("\n")}async function toSvg(i,C={}){const{width:w,height:x}=getImageSize(i,C),O=await cloneNode(i,C,!0);await async function embedWebFonts(i,C){const w=null!=C.fontEmbedCSS?C.fontEmbedCSS:C.skipFonts?null:await getWebFontCSS(i,C);if(w){const C=document.createElement("style"),x=document.createTextNode(w);C.appendChild(x),i.firstChild?i.insertBefore(C,i.firstChild):i.appendChild(C)}}(O,C),await embedImages(O,C),function applyStyle(i,C){const{style:w}=i;C.backgroundColor&&(w.backgroundColor=C.backgroundColor),C.width&&(w.width=`${C.width}px`),C.height&&(w.height=`${C.height}px`);const x=C.style;return null!=x&&Object.keys(x).forEach((i=>{w[i]=x[i]})),i}(O,C);return await nodeToDataURL(O,w,x)}async function toCanvas(i,C={}){const{width:w,height:x}=getImageSize(i,C),S=await toSvg(i,C),k=await createImage(S),I=document.createElement("canvas"),R=I.getContext("2d"),j=C.pixelRatio||function getPixelRatio(){let i,C;try{C=process}catch(i){}const w=C&&C.env?C.env.devicePixelRatio:null;return w&&(i=parseInt(w,10),Number.isNaN(i)&&(i=1)),i||window.devicePixelRatio||1}(),W=C.canvasWidth||w,N=C.canvasHeight||x;return I.width=W*j,I.height=N*j,C.skipAutoScale||function checkCanvasDimensions(i){(i.width>O||i.height>O)&&(i.width>O&&i.height>O?i.width>i.height?(i.height*=O/i.width,i.width=O):(i.width*=O/i.height,i.height=O):i.width>O?(i.height*=O/i.width,i.width=O):(i.width*=O/i.height,i.height=O))}(I),I.style.width=`${W}`,I.style.height=`${N}`,C.backgroundColor&&(R.fillStyle=C.backgroundColor,R.fillRect(0,0,I.width,I.height)),R.drawImage(k,0,0,I.width,I.height),I}async function toPixelData(i,C={}){const{width:w,height:x}=getImageSize(i,C);return(await toCanvas(i,C)).getContext("2d").getImageData(0,0,w,x).data}async function toPng(i,C={}){return(await toCanvas(i,C)).toDataURL()}async function toJpeg(i,C={}){return(await toCanvas(i,C)).toDataURL("image/jpeg",C.quality||1)}async function toBlob(i,C={}){const w=await toCanvas(i,C),x=await function canvasToBlob(i,C={}){return i.toBlob?new Promise((w=>{i.toBlob(w,C.type?C.type:"image/png",C.quality?C.quality:1)})):new Promise((w=>{const x=window.atob(i.toDataURL(C.type?C.type:void 0,C.quality?C.quality:void 0).split(",")[1]),O=x.length,S=new Uint8Array(O);for(let i=0;i
{var C=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,w=/\n/g,x=/^\s*/,O=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,S=/^:\s*/,k=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,I=/^[;\s]*/,R=/^\s+|\s+$/g,j="";function trim(i){return i?i.replace(R,j):j}i.exports=function(i,R){if("string"!=typeof i)throw new TypeError("First argument must be a string");if(!i)return[];R=R||{};var W=1,N=1;function updatePosition(i){var C=i.match(w);C&&(W+=C.length);var x=i.lastIndexOf("\n");N=~x?i.length-x:N+i.length}function position(){var i={line:W,column:N};return function(C){return C.position=new Position(i),whitespace(),C}}function Position(i){this.start=i,this.end={line:W,column:N},this.source=R.source}Position.prototype.content=i;var G=[];function error(C){var w=new Error(R.source+":"+W+":"+N+": "+C);if(w.reason=C,w.filename=R.source,w.line=W,w.column=N,w.source=i,!R.silent)throw w;G.push(w)}function match(C){var w=C.exec(i);if(w){var x=w[0];return updatePosition(x),i=i.slice(x.length),w}}function whitespace(){match(x)}function comments(i){var C;for(i=i||[];C=comment();)!1!==C&&i.push(C);return i}function comment(){var C=position();if("/"==i.charAt(0)&&"*"==i.charAt(1)){for(var w=2;j!=i.charAt(w)&&("*"!=i.charAt(w)||"/"!=i.charAt(w+1));)++w;if(w+=2,j===i.charAt(w-1))return error("End of comment missing");var x=i.slice(2,w-2);return N+=2,updatePosition(x),i=i.slice(w),N+=2,C({type:"comment",comment:x})}}function declaration(){var i=position(),w=match(O);if(w){if(comment(),!match(S))return error("property missing ':'");var x=match(k),R=i({type:"declaration",property:trim(w[0].replace(C,j)),value:x?trim(x[0].replace(C,j)):j});return match(I),R}}return whitespace(),function declarations(){var i,C=[];for(comments(C);i=declaration();)!1!==i&&(C.push(i),comments(C));return C}()}},48809:i=>{i.exports=function isBuffer(i){return null!=i&&null!=i.constructor&&"function"==typeof i.constructor.isBuffer&&i.constructor.isBuffer(i)}},58772:(i,C,w)=>{"use strict";var x=w(90331);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,i.exports=function(){function shim(i,C,w,O,S,k){if(k!==x){var I=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 I.name="Invariant Violation",I}}function getShim(){return shim}shim.isRequired=shim;var i={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 i.PropTypes=i,i}},23615:(i,C,w)=>{i.exports=w(58772)()},90331:i=>{"use strict";i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},78462:function(i,C,w){i.exports=function(i,C){"use strict";function o(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var w=o(i),x=o(C);function r(i,C){for(var w=0;w
i.length)&&(C=i.length);for(var w=0,x=new Array(C);w
{"use strict";var x=w(61533);C.createRoot=x.createRoot,C.hydrateRoot=x.hydrateRoot},55322:(i,C,w)=>{"use strict";function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"DraggableCore",{enumerable:!0,get:function get(){return W.default}}),C.default=void 0;var x=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==_typeof(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in i)if("default"!==S&&Object.prototype.hasOwnProperty.call(i,S)){var k=O?Object.getOwnPropertyDescriptor(i,S):null;k&&(k.get||k.set)?Object.defineProperty(x,S,k):x[S]=i[S]}x.default=i,w&&w.set(i,x);return x}(w(87363)),O=_interopRequireDefault(w(23615)),S=_interopRequireDefault(w(61533)),k=_interopRequireDefault(w(38944)),I=w(88065),R=w(39237),j=w(70972),W=_interopRequireDefault(w(50700)),N=_interopRequireDefault(w(73936)),G=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _extends(){return _extends=Object.assign||function(i){for(var C=1;C
=0||(O[w]=i[w]);return O}(i,C);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(i);for(x=0;x
=0||Object.prototype.propertyIsEnumerable.call(i,w)&&(O[w]=i[w])}return O}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
i.length)&&(C=i.length);for(var w=0,x=new Array(C);w
, 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."),w}return function _createClass(i,C,w){return C&&_defineProperties(i.prototype,C),w&&_defineProperties(i,w),Object.defineProperty(i,"prototype",{writable:!1}),i}(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 i,C,w;return null!==(i=null===(C=this.props)||void 0===C||null===(w=C.nodeRef)||void 0===w?void 0:w.current)&&void 0!==i?i:S.default.findDOMNode(this)}},{key:"render",value:function render(){var i,C=this.props,w=(C.axis,C.bounds,C.children),O=C.defaultPosition,S=C.defaultClassName,j=C.defaultClassNameDragging,N=C.defaultClassNameDragged,$=C.position,J=C.positionOffset,re=(C.scale,_objectWithoutProperties(C,G)),oe={},ie=null,le=!Boolean($)||this.state.dragging,ue=$||O,ce={x:(0,R.canDragX)(this)&&le?this.state.x:ue.x,y:(0,R.canDragY)(this)&&le?this.state.y:ue.y};this.state.isElementSVG?ie=(0,I.createSVGTransform)(ce,J):oe=(0,I.createCSSTransform)(ce,J);var se=(0,k.default)(w.props.className||"",S,(_defineProperty(i={},j,this.state.dragging),_defineProperty(i,N,this.state.dragged),i));return x.createElement(W.default,_extends({},re,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),x.cloneElement(x.Children.only(w),{className:se,style:_objectSpread(_objectSpread({},w.props.style),oe),transform:ie}))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(i,C){var w=i.position,x=C.prevPropsPosition;return!w||x&&w.x===x.x&&w.y===x.y?null:((0,N.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:x}),{x:w.x,y:w.y,prevPropsPosition:_objectSpread({},w)})}}]),Draggable}(x.Component);C.default=$,_defineProperty($,"displayName","Draggable"),_defineProperty($,"propTypes",_objectSpread(_objectSpread({},W.default.propTypes),{},{axis:O.default.oneOf(["both","x","y","none"]),bounds:O.default.oneOfType([O.default.shape({left:O.default.number,right:O.default.number,top:O.default.number,bottom:O.default.number}),O.default.string,O.default.oneOf([!1])]),defaultClassName:O.default.string,defaultClassNameDragging:O.default.string,defaultClassNameDragged:O.default.string,defaultPosition:O.default.shape({x:O.default.number,y:O.default.number}),positionOffset:O.default.shape({x:O.default.oneOfType([O.default.number,O.default.string]),y:O.default.oneOfType([O.default.number,O.default.string])}),position:O.default.shape({x:O.default.number,y:O.default.number}),className:j.dontSetMe,style:j.dontSetMe,transform:j.dontSetMe})),_defineProperty($,"defaultProps",_objectSpread(_objectSpread({},W.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:(i,C,w)=>{"use strict";function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==_typeof(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in i)if("default"!==S&&Object.prototype.hasOwnProperty.call(i,S)){var k=O?Object.getOwnPropertyDescriptor(i,S):null;k&&(k.get||k.set)?Object.defineProperty(x,S,k):x[S]=i[S]}x.default=i,w&&w.set(i,x);return x}(w(87363)),O=_interopRequireDefault(w(23615)),S=_interopRequireDefault(w(61533)),k=w(88065),I=w(39237),R=w(70972),j=_interopRequireDefault(w(73936));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _slicedToArray(i,C){return function _arrayWithHoles(i){if(Array.isArray(i))return i}(i)||function _iterableToArrayLimit(i,C){var w=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null==w)return;var x,O,S=[],k=!0,I=!1;try{for(w=w.call(i);!(k=(x=w.next()).done)&&(S.push(x.value),!C||S.length!==C);k=!0);}catch(i){I=!0,O=i}finally{try{k||null==w.return||w.return()}finally{if(I)throw O}}return S}(i,C)||function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i,C)||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(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w
not mounted on DragStart!");var x=w.ownerDocument;if(!(i.props.disabled||!(C.target instanceof x.defaultView.Node)||i.props.handle&&!(0,k.matchesSelectorAndParentsTo)(C.target,i.props.handle,w)||i.props.cancel&&(0,k.matchesSelectorAndParentsTo)(C.target,i.props.cancel,w))){"touchstart"===C.type&&C.preventDefault();var O=(0,k.getTouchIdentifier)(C);i.setState({touchIdentifier:O});var S=(0,I.getControlPosition)(C,O,_assertThisInitialized(i));if(null!=S){var R=S.x,W=S.y,N=(0,I.createCoreData)(_assertThisInitialized(i),R,W);(0,j.default)("DraggableCore: handleDragStart: %j",N),(0,j.default)("calling",i.props.onStart),!1!==i.props.onStart(C,N)&&!1!==i.mounted&&(i.props.enableUserSelectHack&&(0,k.addUserSelectStyles)(x),i.setState({dragging:!0,lastX:R,lastY:W}),(0,k.addEvent)(x,G.move,i.handleDrag),(0,k.addEvent)(x,G.stop,i.handleDragStop))}}})),_defineProperty(_assertThisInitialized(i),"handleDrag",(function(C){var w=(0,I.getControlPosition)(C,i.state.touchIdentifier,_assertThisInitialized(i));if(null!=w){var x=w.x,O=w.y;if(Array.isArray(i.props.grid)){var S=x-i.state.lastX,k=O-i.state.lastY,R=_slicedToArray((0,I.snapToGrid)(i.props.grid,S,k),2);if(S=R[0],k=R[1],!S&&!k)return;x=i.state.lastX+S,O=i.state.lastY+k}var W=(0,I.createCoreData)(_assertThisInitialized(i),x,O);if((0,j.default)("DraggableCore: handleDrag: %j",W),!1!==i.props.onDrag(C,W)&&!1!==i.mounted)i.setState({lastX:x,lastY:O});else try{i.handleDragStop(new MouseEvent("mouseup"))}catch(C){var N=document.createEvent("MouseEvents");N.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.handleDragStop(N)}}})),_defineProperty(_assertThisInitialized(i),"handleDragStop",(function(C){if(i.state.dragging){var w=(0,I.getControlPosition)(C,i.state.touchIdentifier,_assertThisInitialized(i));if(null!=w){var x=w.x,O=w.y;if(Array.isArray(i.props.grid)){var S=x-i.state.lastX||0,R=O-i.state.lastY||0,W=_slicedToArray((0,I.snapToGrid)(i.props.grid,S,R),2);S=W[0],R=W[1],x=i.state.lastX+S,O=i.state.lastY+R}var N=(0,I.createCoreData)(_assertThisInitialized(i),x,O);if(!1===i.props.onStop(C,N)||!1===i.mounted)return!1;var $=i.findDOMNode();$&&i.props.enableUserSelectHack&&(0,k.removeUserSelectStyles)($.ownerDocument),(0,j.default)("DraggableCore: handleDragStop: %j",N),i.setState({dragging:!1,lastX:NaN,lastY:NaN}),$&&((0,j.default)("DraggableCore: Removing handlers"),(0,k.removeEvent)($.ownerDocument,G.move,i.handleDrag),(0,k.removeEvent)($.ownerDocument,G.stop,i.handleDragStop))}}})),_defineProperty(_assertThisInitialized(i),"onMouseDown",(function(C){return G=N,i.handleDragStart(C)})),_defineProperty(_assertThisInitialized(i),"onMouseUp",(function(C){return G=N,i.handleDragStop(C)})),_defineProperty(_assertThisInitialized(i),"onTouchStart",(function(C){return G=W,i.handleDragStart(C)})),_defineProperty(_assertThisInitialized(i),"onTouchEnd",(function(C){return G=W,i.handleDragStop(C)})),i}return function _createClass(i,C,w){return C&&_defineProperties(i.prototype,C),w&&_defineProperties(i,w),Object.defineProperty(i,"prototype",{writable:!1}),i}(DraggableCore,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0;var i=this.findDOMNode();i&&(0,k.addEvent)(i,W.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1;var i=this.findDOMNode();if(i){var C=i.ownerDocument;(0,k.removeEvent)(C,N.move,this.handleDrag),(0,k.removeEvent)(C,W.move,this.handleDrag),(0,k.removeEvent)(C,N.stop,this.handleDragStop),(0,k.removeEvent)(C,W.stop,this.handleDragStop),(0,k.removeEvent)(i,W.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,k.removeUserSelectStyles)(C)}}},{key:"findDOMNode",value:function findDOMNode(){var i,C,w;return null!==(i=this.props)&&void 0!==i&&i.nodeRef?null===(C=this.props)||void 0===C||null===(w=C.nodeRef)||void 0===w?void 0:w.current:S.default.findDOMNode(this)}},{key:"render",value:function render(){return x.cloneElement(x.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),DraggableCore}(x.Component);C.default=$,_defineProperty($,"displayName","DraggableCore"),_defineProperty($,"propTypes",{allowAnyClick:O.default.bool,disabled:O.default.bool,enableUserSelectHack:O.default.bool,offsetParent:function offsetParent(i,C){if(i[C]&&1!==i[C].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:O.default.arrayOf(O.default.number),handle:O.default.string,cancel:O.default.string,nodeRef:O.default.object,onStart:O.default.func,onDrag:O.default.func,onStop:O.default.func,onMouseDown:O.default.func,scale:O.default.number,className:R.dontSetMe,style:R.dontSetMe,transform:R.dontSetMe}),_defineProperty($,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function onStart(){},onDrag:function onDrag(){},onStop:function onStop(){},onMouseDown:function onMouseDown(){},scale:1})},49529:(i,C,w)=>{"use strict";var x=w(55322),O=x.default,S=x.DraggableCore;i.exports=O,i.exports.default=O,i.exports.DraggableCore=S},88065:(i,C,w)=>{"use strict";function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}Object.defineProperty(C,"__esModule",{value:!0}),C.addClassName=addClassName,C.addEvent=function addEvent(i,C,w,x){if(!i)return;var O=_objectSpread({capture:!0},x);i.addEventListener?i.addEventListener(C,w,O):i.attachEvent?i.attachEvent("on"+C,w):i["on"+C]=w},C.addUserSelectStyles=function addUserSelectStyles(i){if(!i)return;var C=i.getElementById("react-draggable-style-el");C||((C=i.createElement("style")).type="text/css",C.id="react-draggable-style-el",C.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",C.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",i.getElementsByTagName("head")[0].appendChild(C));i.body&&addClassName(i.body,"react-draggable-transparent-selection")},C.createCSSTransform=function createCSSTransform(i,C){var w=getTranslation(i,C,"px");return _defineProperty({},(0,O.browserPrefixToKey)("transform",O.default),w)},C.createSVGTransform=function createSVGTransform(i,C){return getTranslation(i,C,"")},C.getTouch=function getTouch(i,C){return i.targetTouches&&(0,x.findInArray)(i.targetTouches,(function(i){return C===i.identifier}))||i.changedTouches&&(0,x.findInArray)(i.changedTouches,(function(i){return C===i.identifier}))},C.getTouchIdentifier=function getTouchIdentifier(i){if(i.targetTouches&&i.targetTouches[0])return i.targetTouches[0].identifier;if(i.changedTouches&&i.changedTouches[0])return i.changedTouches[0].identifier},C.getTranslation=getTranslation,C.innerHeight=function innerHeight(i){var C=i.clientHeight,w=i.ownerDocument.defaultView.getComputedStyle(i);return C-=(0,x.int)(w.paddingTop),C-=(0,x.int)(w.paddingBottom)},C.innerWidth=function innerWidth(i){var C=i.clientWidth,w=i.ownerDocument.defaultView.getComputedStyle(i);return C-=(0,x.int)(w.paddingLeft),C-=(0,x.int)(w.paddingRight)},C.matchesSelector=matchesSelector,C.matchesSelectorAndParentsTo=function matchesSelectorAndParentsTo(i,C,w){var x=i;do{if(matchesSelector(x,C))return!0;if(x===w)return!1;x=x.parentNode}while(x);return!1},C.offsetXYFromParent=function offsetXYFromParent(i,C,w){var x=C===C.ownerDocument.body?{left:0,top:0}:C.getBoundingClientRect(),O=(i.clientX+C.scrollLeft-x.left)/w,S=(i.clientY+C.scrollTop-x.top)/w;return{x:O,y:S}},C.outerHeight=function outerHeight(i){var C=i.clientHeight,w=i.ownerDocument.defaultView.getComputedStyle(i);return C+=(0,x.int)(w.borderTopWidth),C+=(0,x.int)(w.borderBottomWidth)},C.outerWidth=function outerWidth(i){var C=i.clientWidth,w=i.ownerDocument.defaultView.getComputedStyle(i);return C+=(0,x.int)(w.borderLeftWidth),C+=(0,x.int)(w.borderRightWidth)},C.removeClassName=removeClassName,C.removeEvent=function removeEvent(i,C,w,x){if(!i)return;var O=_objectSpread({capture:!0},x);i.removeEventListener?i.removeEventListener(C,w,O):i.detachEvent?i.detachEvent("on"+C,w):i["on"+C]=null},C.removeUserSelectStyles=function removeUserSelectStyles(i){if(!i)return;try{if(i.body&&removeClassName(i.body,"react-draggable-transparent-selection"),i.selection)i.selection.empty();else{var C=(i.defaultView||window).getSelection();C&&"Caret"!==C.type&&C.removeAllRanges()}}catch(i){}};var x=w(70972),O=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==_typeof(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in i)if("default"!==S&&Object.prototype.hasOwnProperty.call(i,S)){var k=O?Object.getOwnPropertyDescriptor(i,S):null;k&&(k.get||k.set)?Object.defineProperty(x,S,k):x[S]=i[S]}x.default=i,w&&w.set(i,x);return x}(w(42249));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C
{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.browserPrefixToKey=browserPrefixToKey,C.browserPrefixToStyle=function browserPrefixToStyle(i,C){return C?"-".concat(C.toLowerCase(),"-").concat(i):i},C.default=void 0,C.getPrefix=getPrefix;var w=["Moz","Webkit","O","ms"];function getPrefix(){var i,C,x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var O=null===(i=window.document)||void 0===i||null===(C=i.documentElement)||void 0===C?void 0:C.style;if(!O)return"";if(x in O)return"";for(var S=0;S
{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function log(){0}},39237:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.canDragX=function canDragX(i){return"both"===i.props.axis||"x"===i.props.axis},C.canDragY=function canDragY(i){return"both"===i.props.axis||"y"===i.props.axis},C.createCoreData=function createCoreData(i,C,w){var O=i.state,S=!(0,x.isNum)(O.lastX),k=findDOMNode(i);return S?{node:k,deltaX:0,deltaY:0,lastX:C,lastY:w,x:C,y:w}:{node:k,deltaX:C-O.lastX,deltaY:w-O.lastY,lastX:O.lastX,lastY:O.lastY,x:C,y:w}},C.createDraggableData=function createDraggableData(i,C){var w=i.props.scale;return{node:C.node,x:i.state.x+C.deltaX/w,y:i.state.y+C.deltaY/w,deltaX:C.deltaX/w,deltaY:C.deltaY/w,lastX:i.state.x,lastY:i.state.y}},C.getBoundPosition=function getBoundPosition(i,C,w){if(!i.props.bounds)return[C,w];var S=i.props.bounds;S="string"==typeof S?S:function cloneBounds(i){return{left:i.left,top:i.top,right:i.right,bottom:i.bottom}}(S);var k=findDOMNode(i);if("string"==typeof S){var I,R=k.ownerDocument,j=R.defaultView;if(!((I="parent"===S?k.parentNode:R.querySelector(S))instanceof j.HTMLElement))throw new Error('Bounds selector "'+S+'" could not find an element.');var W=I,N=j.getComputedStyle(k),G=j.getComputedStyle(W);S={left:-k.offsetLeft+(0,x.int)(G.paddingLeft)+(0,x.int)(N.marginLeft),top:-k.offsetTop+(0,x.int)(G.paddingTop)+(0,x.int)(N.marginTop),right:(0,O.innerWidth)(W)-(0,O.outerWidth)(k)-k.offsetLeft+(0,x.int)(G.paddingRight)-(0,x.int)(N.marginRight),bottom:(0,O.innerHeight)(W)-(0,O.outerHeight)(k)-k.offsetTop+(0,x.int)(G.paddingBottom)-(0,x.int)(N.marginBottom)}}(0,x.isNum)(S.right)&&(C=Math.min(C,S.right));(0,x.isNum)(S.bottom)&&(w=Math.min(w,S.bottom));(0,x.isNum)(S.left)&&(C=Math.max(C,S.left));(0,x.isNum)(S.top)&&(w=Math.max(w,S.top));return[C,w]},C.getControlPosition=function getControlPosition(i,C,w){var x="number"==typeof C?(0,O.getTouch)(i,C):null;if("number"==typeof C&&!x)return null;var S=findDOMNode(w),k=w.props.offsetParent||S.offsetParent||S.ownerDocument.body;return(0,O.offsetXYFromParent)(x||i,k,w.props.scale)},C.snapToGrid=function snapToGrid(i,C,w){var x=Math.round(C/i[0])*i[0],O=Math.round(w/i[1])*i[1];return[x,O]};var x=w(70972),O=w(88065);function findDOMNode(i){var C=i.findDOMNode();if(!C)throw new Error("
: Unmounted during event!");return C}},70972:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.dontSetMe=function dontSetMe(i,C,w){if(i[C])return new Error("Invalid prop ".concat(C," passed to ").concat(w," - do not set this, set it on the child."))},C.findInArray=function findInArray(i,C){for(var w=0,x=i.length;w
{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var x=function(){function defineProperties(i,C){for(var w=0;w
=0||Object.prototype.hasOwnProperty.call(i,x)&&(w[x]=i[x]);return w}(C,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));j.ref=function(C){i.scrollComponent=C,R&&R(C)};var W=[w];return O&&(I?k?W.unshift(I):W.push(I):this.defaultLoader&&(k?W.unshift(this.defaultLoader):W.push(this.defaultLoader))),S.default.createElement(x,j,W)}}]),InfiniteScroll}(O.Component);I.propTypes={children:k.default.node.isRequired,element:k.default.node,hasMore:k.default.bool,initialLoad:k.default.bool,isReverse:k.default.bool,loader:k.default.node,loadMore:k.default.func.isRequired,pageStart:k.default.number,ref:k.default.func,getScrollParent:k.default.func,threshold:k.default.number,useCapture:k.default.bool,useWindow:k.default.bool},I.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},C.default=I,i.exports=C.default},43674:(i,C,w)=>{i.exports=w(78326)},58702:(i,C)=>{"use strict";var w,x=Symbol.for("react.element"),O=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),j=Symbol.for("react.context"),W=Symbol.for("react.server_context"),N=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen");function v(i){if("object"==typeof i&&null!==i){var C=i.$$typeof;switch(C){case x:switch(i=i.type){case S:case I:case k:case G:case $:return i;default:switch(i=i&&i.$$typeof){case W:case j:case N:case re:case J:case R:return i;default:return C}}case O:return C}}}w=Symbol.for("react.module.reference"),C.ContextConsumer=j,C.ContextProvider=R,C.Element=x,C.ForwardRef=N,C.Fragment=S,C.Lazy=re,C.Memo=J,C.Portal=O,C.Profiler=I,C.StrictMode=k,C.Suspense=G,C.SuspenseList=$,C.isAsyncMode=function(){return!1},C.isConcurrentMode=function(){return!1},C.isContextConsumer=function(i){return v(i)===j},C.isContextProvider=function(i){return v(i)===R},C.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===x},C.isForwardRef=function(i){return v(i)===N},C.isFragment=function(i){return v(i)===S},C.isLazy=function(i){return v(i)===re},C.isMemo=function(i){return v(i)===J},C.isPortal=function(i){return v(i)===O},C.isProfiler=function(i){return v(i)===I},C.isStrictMode=function(i){return v(i)===k},C.isSuspense=function(i){return v(i)===G},C.isSuspenseList=function(i){return v(i)===$},C.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===S||i===I||i===k||i===G||i===$||i===oe||"object"==typeof i&&null!==i&&(i.$$typeof===re||i.$$typeof===J||i.$$typeof===R||i.$$typeof===j||i.$$typeof===N||i.$$typeof===w||void 0!==i.getModuleId)},C.typeOf=v},19185:(i,C,w)=>{"use strict";i.exports=w(58702)},23866:(i,C,w)=>{"use strict";w.r(C),w.d(C,{Canvas:()=>N,ReactSketchCanvas:()=>G});var x=w(87363);function asyncGeneratorStep(i,C,w,x,O,S,k){try{var I=i[S](k),R=I.value}catch(i){return void w(i)}I.done?C(R):Promise.resolve(R).then(x,O)}function _extends(){return _extends=Object.assign||function(i){for(var C=1;C
=0;--O){var S=this.tryEntries[O],k=S.completion;if("root"===S.tryLoc)return handle("end");if(S.tryLoc<=this.prev){var I=x.call(S,"catchLoc"),R=x.call(S,"finallyLoc");if(I&&R){if(this.prev
=0;--w){var O=this.tryEntries[w];if(O.tryLoc<=this.prev&&x.call(O,"finallyLoc")&&this.prev
=0;--C){var w=this.tryEntries[C];if(w.finallyLoc===i)return this.complete(w.completion,w.afterLoc),resetTryEntry(w),G}},catch:function(i){for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C];if(w.tryLoc===i){var x=w.completion;if("throw"===x.type){var O=x.arg;resetTryEntry(w)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(i,w,x){return this.delegate={iterator:values(i),resultName:w,nextLoc:x},"next"===this.method&&(this.arg=C),G}},i}(i.exports);try{regeneratorRuntime=C}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=C:Function("r","regeneratorRuntime = r")(C)}}(O);var S=O.exports,k=function SvgPath(i){var C=i.paths,w=i.id,O=i.strokeWidth,S=i.strokeColor,k=i.command,I=void 0===k?R:k;if(1===C.length){var j=C[0],W=j.x,N=j.y,G=O/2;return x.createElement("circle",{key:w,id:w,cx:W,cy:N,r:G,stroke:S,fill:S})}var $=C.reduce((function(i,C,w,x){return 0===w?"M "+C.x+","+C.y:i+" "+I(C,w,x)}),"");return x.createElement("path",{key:w,id:w,d:$,fill:"none",strokeLinecap:"round",stroke:S,strokeWidth:O})},I=function controlPoint(i){var C=i.current,w=i.next,x=i.previous,O=i.reverse,S=function line(i,C){var w=C.x-i.x,x=C.y-i.y;return{length:Math.sqrt(Math.pow(w,2)+Math.pow(x,2)),angle:Math.atan2(x,w)}}(x||C,w||C),k=S.angle+(O?Math.PI:0),I=.2*S.length;return[C.x+Math.cos(k)*I,C.y+Math.sin(k)*I]},R=function bezierCommand(i,C,w){var x=null,O=null;switch(C){case 0:var S=I({current:i});x=S[0],O=S[1];break;case 1:var k=I({current:w[C-1],next:i});x=k[0],O=k[1];break;default:var R=I({current:w[C-1],previous:w[C-2],next:i});x=R[0],O=R[1]}var j=I({current:i,previous:w[C-1],next:w[C+1],reverse:!0});return"C "+x+","+O+" "+j[0]+","+j[1]+" "+i.x+", "+i.y},j=function Paths(i){var C=i.id,w=i.paths;return x.createElement(x.Fragment,null,w.map((function(i,w){return x.createElement(k,{key:C+"__"+w,paths:i.paths,id:C+"__"+w,strokeWidth:i.strokeWidth,strokeColor:i.strokeColor,command:R})})))},W=function loadImage(i){return new Promise((function(C,w){var x=new Image;x.addEventListener("load",(function(){x.width>0&&C(x),w("Image not found")})),x.addEventListener("error",(function(i){return w(i)})),x.src=i,x.setAttribute("crossorigin","anonymous")}))};function getCanvasWithViewBox(i){var C,w=null==(C=i.firstChild)?void 0:C.cloneNode(!0),x=i.offsetWidth,O=i.offsetHeight;return w.setAttribute("viewBox","0 0 "+x+" "+O),w.setAttribute("width",x.toString()),w.setAttribute("height",O.toString()),{svgCanvas:w,width:x,height:O}}var N=x.forwardRef((function(i,C){var w=i.paths,O=i.isDrawing,I=i.onPointerDown,R=i.onPointerMove,N=i.onPointerUp,G=i.id,$=void 0===G?"react-sketch-canvas":G,J=i.width,re=void 0===J?"100%":J,oe=i.height,ie=void 0===oe?"100%":oe,le=i.className,ue=void 0===le?"react-sketch-canvas":le,ce=i.canvasColor,se=void 0===ce?"red":ce,de=i.backgroundImage,he=void 0===de?"":de,ge=i.exportWithBackgroundImage,ye=void 0!==ge&&ge,ve=i.preserveBackgroundImageAspectRatio,Ce=void 0===ve?"none":ve,Se=i.allowOnlyPointerType,Pe=void 0===Se?"all":Se,Ie=i.style,Re=void 0===Ie?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:Ie,Me=i.svgStyle,De=void 0===Me?{}:Me,Fe=x.useRef(null),He=function getCoordinates(i){var C,w,x,O=null==(C=Fe.current)?void 0:C.getBoundingClientRect(),S=null!=(w=window.scrollX)?w:0,k=null!=(x=window.scrollY)?x:0;return O?{x:i.pageX-O.left-S,y:i.pageY-O.top-k}:{x:0,y:0}},Ue=function handlePointerUp(i){"mouse"===i.pointerType&&0!==i.button||"all"!==Pe&&i.pointerType!==Pe||N()};x.useImperativeHandle(C,(function(){return{exportImage:function exportImage(i){return new Promise(function(){var C=function _asyncToGenerator(i){return function(){var C=this,w=arguments;return new Promise((function(x,O){var S=i.apply(C,w);function _next(i){asyncGeneratorStep(S,x,O,_next,_throw,"next",i)}function _throw(i){asyncGeneratorStep(S,x,O,_next,_throw,"throw",i)}_next(void 0)}))}}(S.mark((function _callee(C,w){var x,O,k,I,R,j,N,G;return S.wrap((function _callee$(S){for(;;)switch(S.prev=S.next){case 0:if(S.prev=0,x=Fe.current){S.next=4;break}throw Error("Canvas not rendered yet");case 4:return O=getCanvasWithViewBox(x),k=O.svgCanvas,I=O.width,R=O.height,j="data:image/svg+xml;base64,"+btoa(k.outerHTML),S.next=8,W(j);case 8:if(S.t0=S.sent,N=[S.t0],!ye){S.next=21;break}return S.prev=11,S.next=14,W(he);case 14:G=S.sent,N.push(G),S.next=21;break;case 18:S.prev=18,S.t1=S.catch(11),console.warn("exportWithBackgroundImage props is set without a valid background image URL. This option is ignored");case 21:Promise.all(N).then((function(w){var x=document.createElement("canvas");x.setAttribute("width",I.toString()),x.setAttribute("height",R.toString());var O=x.getContext("2d");if(!O)throw Error("Canvas not rendered yet");w.reverse().forEach((function(i){O.drawImage(i,0,0)})),C(x.toDataURL("image/"+i))})).catch((function(i){throw i})),S.next=27;break;case 24:S.prev=24,S.t2=S.catch(0),w(S.t2);case 27:case"end":return S.stop()}}),_callee,null,[[0,24],[11,18]])})));return function(i,w){return C.apply(this,arguments)}}())},exportSvg:function exportSvg(){return new Promise((function(i,C){try{var w,x=null!=(w=Fe.current)?w:null;if(null!==x){var O,S,k=getCanvasWithViewBox(x).svgCanvas;if(ye)return void i(k.outerHTML);null==(O=k.querySelector("#"+$+"__background"))||O.remove(),null==(S=k.querySelector("#"+$+"__canvas-background"))||S.setAttribute("fill",se),i(k.outerHTML)}C(new Error("Canvas not loaded"))}catch(i){C(i)}}))}}})),x.useEffect((function(){return document.addEventListener("pointerup",Ue),function(){document.removeEventListener("pointerup",Ue)}}),[Ue]);var Ge=w.filter((function(i){return!i.drawMode})),Ze=0,Ke=w.reduce((function(i,C){return C.drawMode?(void 0===i[Ze]&&(i[Ze]=[]),i[Ze].push(C),i):(Ze+=1,i)}),[[]]);return x.createElement("div",{role:"presentation",ref:Fe,className:ue,style:_extends({touchAction:"none",width:re,height:ie},Re),"touch-action":"none",onPointerDown:function handlePointerDown(i){if(!("all"!==Pe&&i.pointerType!==Pe||"mouse"===i.pointerType&&0!==i.button)){var C=He(i);I(C)}},onPointerMove:function handlePointerMove(i){if(O&&("all"===Pe||i.pointerType===Pe)){var C=He(i);R(C)}},onPointerUp:Ue},x.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%"},De),id:$},x.createElement("g",{id:$+"__eraser-stroke-group",display:"none"},x.createElement("rect",{id:$+"__mask-background",x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),Ge.map((function(i,C){return x.createElement(k,{key:$+"__eraser-"+C,id:$+"__eraser-"+C,paths:i.paths,strokeColor:"#000000",strokeWidth:i.strokeWidth})}))),x.createElement("defs",null,he&&x.createElement("pattern",{id:$+"__background",x:"0",y:"0",width:"100%",height:"100%",patternUnits:"userSpaceOnUse"},x.createElement("image",{x:"0",y:"0",width:"100%",height:"100%",xlinkHref:he,preserveAspectRatio:Ce})),Ge.map((function(i,C){return x.createElement("mask",{id:$+"__eraser-mask-"+C,key:$+"__eraser-mask-"+C,maskUnits:"userSpaceOnUse"},x.createElement("use",{href:"#"+$+"__mask-background"}),Array.from({length:Ge.length-C},(function(i,w){return w+C})).map((function(i){return x.createElement("use",{key:i.toString(),href:"#"+$+"__eraser-"+i.toString()})})))}))),x.createElement("g",{id:$+"__canvas-background-group"},x.createElement("rect",{id:$+"__canvas-background",x:"0",y:"0",width:"100%",height:"100%",fill:he?"url(#"+$+"__background)":se})),Ke.map((function(i,C){return x.createElement("g",{id:$+"__stroke-group-"+C,key:$+"__stroke-group-"+C,mask:"url(#"+$+"__eraser-mask-"+C+")"},x.createElement(j,{id:$,paths:i}))}))))})),G=x.forwardRef((function(i,C){var w=i.id,O=void 0===w?"react-sketch-canvas":w,S=i.width,k=void 0===S?"100%":S,I=i.height,R=void 0===I?"100%":I,j=i.className,W=void 0===j?"":j,G=i.canvasColor,$=void 0===G?"white":G,J=i.strokeColor,re=void 0===J?"red":J,oe=i.backgroundImage,ie=void 0===oe?"":oe,le=i.exportWithBackgroundImage,ue=void 0!==le&&le,ce=i.preserveBackgroundImageAspectRatio,se=void 0===ce?"none":ce,de=i.strokeWidth,he=void 0===de?4:de,ge=i.eraserWidth,ye=void 0===ge?8:ge,ve=i.allowOnlyPointerType,Ce=void 0===ve?"all":ve,Se=i.style,Pe=void 0===Se?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:Se,Ie=i.svgStyle,Re=void 0===Ie?{}:Ie,Me=i.onChange,De=void 0===Me?function(i){}:Me,Fe=i.onStroke,He=void 0===Fe?function(i,C){}:Fe,Ue=i.withTimestamp,Ge=void 0!==Ue&&Ue,Ze=x.createRef(),Ke=x.useState(!0),Qe=Ke[0],et=Ke[1],tt=x.useState(!1),nt=tt[0],rt=tt[1],ot=x.useState([]),at=ot[0],it=ot[1],lt=x.useState([]),ut=lt[0],ct=lt[1],st=x.useState([]),dt=st[0],ft=st[1],pt=x.useCallback((function(){var i,C,w=null!=(i=null==(C=dt.slice(-1))?void 0:C[0])?i:null;null!==w?He(w,!w.drawMode):console.warn("No stroke found!")}),[nt]);x.useEffect((function(){pt()}),[nt]),x.useEffect((function(){De(dt)}),[dt]),x.useImperativeHandle(C,(function(){return{eraseMode:function eraseMode(i){et(!i)},clearCanvas:function clearCanvas(){it([].concat(dt)),ft([])},undo:function undo(){if(0!==at.length)return ft([].concat(at)),void it([]);ct((function(i){return[].concat(i,dt.slice(-1))})),ft((function(i){return i.slice(0,-1)}))},redo:function redo(){0!==ut.length&&(ft((function(i){return[].concat(i,ut.slice(-1))})),ct((function(i){return i.slice(0,-1)})))},exportImage:function exportImage(i){var C,exportImage=null==(C=Ze.current)?void 0:C.exportImage;if(exportImage)return exportImage(i);throw Error("Export function called before canvas loaded")},exportSvg:function exportSvg(){return new Promise((function(i,C){var w,x=null==(w=Ze.current)?void 0:w.exportSvg;x?x().then((function(C){i(C)})).catch((function(i){C(i)})):C(Error("Export function called before canvas loaded"))}))},exportPaths:function exportPaths(){return new Promise((function(i,C){try{i(dt)}catch(i){C(i)}}))},loadPaths:function loadPaths(i){ft((function(C){return[].concat(C,i)}))},getSketchingTime:function getSketchingTime(){return new Promise((function(i,C){Ge||C(new Error("Set 'withTimestamp' prop to get sketching time"));try{i(dt.reduce((function(i,C){var w,x,O=null!=(w=C.startTimestamp)?w:0;return i+((null!=(x=C.endTimestamp)?x:0)-O)}),0))}catch(i){C(i)}}))},resetCanvas:function resetCanvas(){it([]),ct([]),ft([])}}}));return x.createElement(N,{ref:Ze,id:O,width:k,height:R,className:W,canvasColor:$,backgroundImage:ie,exportWithBackgroundImage:ue,preserveBackgroundImageAspectRatio:se,allowOnlyPointerType:Ce,style:Pe,svgStyle:Re,paths:dt,isDrawing:nt,onPointerDown:function handlePointerDown(i){rt(!0),ct([]);var C={drawMode:Qe,strokeColor:Qe?re:"#000000",strokeWidth:Qe?he:ye,paths:[i]};Ge&&(C=_extends({},C,{startTimestamp:Date.now(),endTimestamp:0})),ft((function(i){return[].concat(i,[C])}))},onPointerMove:function handlePointerMove(i){if(nt){var C=dt.slice(-1)[0],w=_extends({},C,{paths:[].concat(C.paths,[i])});ft((function(i){return[].concat(i.slice(0,-1),[w])}))}},onPointerUp:function handlePointerUp(){var i,C;if(nt&&(rt(!1),Ge)){var w=null!=(i=null==(C=dt.slice(-1))?void 0:C[0])?i:null;if(null!==w){var x=_extends({},w,{endTimestamp:Date.now()});ft((function(i){return[].concat(i.slice(0,-1),[x])}))}}}})}))},74445:i=>{i.exports=function shallowEqual(i,C,w,x){var O=w?w.call(x,i,C):void 0;if(void 0!==O)return!!O;if(i===C)return!0;if("object"!=typeof i||!i||"object"!=typeof C||!C)return!1;var S=Object.keys(i),k=Object.keys(C);if(S.length!==k.length)return!1;for(var I=Object.prototype.hasOwnProperty.bind(C),R=0;R
{var x=w(3812);function StyleToObject(i,C){var w,O=null;if(!i||"string"!=typeof i)return O;for(var S,k,I=x(i),R="function"==typeof C,j=0,W=I.length;j
{"use strict";w.r(C),w.d(C,{ServerStyleSheet:()=>ft,StyleSheetConsumer:()=>Ke,StyleSheetContext:()=>Ze,StyleSheetManager:()=>me,ThemeConsumer:()=>ct,ThemeContext:()=>ut,ThemeProvider:()=>Le,__PRIVATE__:()=>pt,createGlobalStyle:()=>$e,css:()=>Ae,default:()=>mt,isStyledComponent:()=>_,keyframes:()=>We,useTheme:()=>Xe,version:()=>ie,withTheme:()=>Je});var x=w(19185),O=w(87363),S=w.n(O),k=w(74445),I=w.n(k);const R=function stylis_min(i){function M(i,x,O,S,k){for(var I,N,$,J,re,oe=0,ie=0,he=0,ye=0,Ce=0,Se=0,Pe=$=I=0,Ie=0,Re=0,Me=0,De=0,Fe=O.length,He=Fe-1,Ue="",Ge="",Ze="",Ke="";Ie
I)&&(De=(Ue=Ue.replace(" ",":")).length),0
x&&(x=(C=C.trim()).charCodeAt(0)),x){case 38:return C.replace(I,"$1"+i.trim());case 58:return i.trim()+C.replace(I,"$1"+i.trim());default:if(0<1*w&&0
j.charCodeAt(8))break;case 115:I=I.replace(j,"-webkit-"+j)+";"+I;break;case 207:case 102:I=I.replace(j,"-webkit-"+(102
w.charCodeAt(0)&&(w=w.trim()),w=[w],0
1?C-1:0),x=1;x
0?" Args: "+w.join(", "):""))}var se=function(){function e(i){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=i}var i=e.prototype;return i.indexOfGroup=function(i){for(var C=0,w=0;w
=this.groupSizes.length){for(var w=this.groupSizes,x=w.length,O=x;i>=O;)(O<<=1)<0&&D(16,""+i);this.groupSizes=new Uint32Array(O),this.groupSizes.set(w),this.length=O;for(var S=x;S
=this.length||0===this.groupSizes[i])return C;for(var w=this.groupSizes[i],x=this.indexOfGroup(i),O=x+w,S=x;S
=ge&&(ge=C+1),de.set(i,C),he.set(C,i)},ye="style["+oe+'][data-styled-version="5.3.11"]',ve=new RegExp("^"+oe+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(i,C,w){for(var x,O=w.split(","),S=0,k=O.length;S
=0;w--){var x=C[w];if(x&&1===x.nodeType&&x.hasAttribute(oe))return x}}(w),S=void 0!==O?O.nextSibling:null;x.setAttribute(oe,"active"),x.setAttribute("data-styled-version","5.3.11");var k=Y();return k&&x.setAttribute("nonce",k),w.insertBefore(x,S),x},Ce=function(){function e(i){var C=this.element=q(i);C.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var C=document.styleSheets,w=0,x=C.length;w
=0){var w=document.createTextNode(C),x=this.nodes[i];return this.element.insertBefore(w,x||null),this.length++,!0}return!1},i.deleteRule=function(i){this.element.removeChild(this.nodes[i]),this.length--},i.getRule=function(i){return i
0&&(j+=i+",")})),x+=""+I+R+'{content:"'+j+'"}/*!sc*/\n'}}}return x}(this)},e}(),De=/(a)(d)/gi,K=function(i){return String.fromCharCode(i+(i>25?39:97))};function Q(i){var C,w="";for(C=Math.abs(i);C>52;C=C/52|0)w=K(C%52)+w;return(K(C%52)+w).replace(De,"$1-$2")}var ee=function(i,C){for(var w=C.length;w;)i=33*i^C.charCodeAt(--w);return i},te=function(i){return ee(5381,i)};function ne(i){for(var C=0;C
>>0);if(!C.hasNameForId(x,k)){var I=w(S,"."+k,void 0,x);C.insertRules(x,k,I)}O.push(k),this.staticRulesId=k}else{for(var R=this.rules.length,j=ee(this.baseHash,w.hash),W="",N=0;N
>>0);if(!C.hasNameForId(x,re)){var oe=w(W,"."+re,void 0,x);C.insertRules(x,re,oe)}O.push(re)}}return O.join(" ")},e}(),Ue=/^\s*\/\/.*$/gm,Ge=[":","[",".","#"];function ae(i){var C,w,x,O,S=void 0===i?re:i,k=S.options,I=void 0===k?re:k,j=S.plugins,W=void 0===j?J:j,N=new R(I),G=[],$=function(i){function t(C){if(C)try{i(C+"}")}catch(i){}}return function(C,w,x,O,S,k,I,R,j,W){switch(C){case 1:if(0===j&&64===w.charCodeAt(0))return i(w+";"),"";break;case 2:if(0===R)return w+"/*|*/";break;case 3:switch(R){case 102:case 112:return i(x[0]+w),"";default:return w+(0===W?"/*|*/":"")}case-2:w.split("/*|*/}").forEach(t)}}}((function(i){G.push(i)})),f=function(i,x,S){return 0===x&&-1!==Ge.indexOf(S[w.length])||S.match(O)?i:"."+C};function m(i,S,k,I){void 0===I&&(I="&");var R=i.replace(Ue,""),j=S&&k?k+" "+S+" { "+R+" }":R;return C=I,w=S,x=new RegExp("\\"+w+"\\b","g"),O=new RegExp("(\\"+w+"\\b){2,}"),N(k||!S?"":S,j)}return N.use([].concat(W,[function(i,C,O){2===i&&O.length&&O[0].lastIndexOf(w)>0&&(O[0]=O[0].replace(x,f))},$,function(i){if(-2===i){var C=G;return G=[],C}}])),m.hash=W.length?W.reduce((function(i,C){return C.name||D(15),ee(i,C.name)}),5381).toString():"",m}var Ze=S().createContext(),Ke=Ze.Consumer,Qe=S().createContext(),et=(Qe.Consumer,new Me),tt=ae();function pe(){return(0,O.useContext)(Ze)||et}function fe(){return(0,O.useContext)(Qe)||tt}function me(i){var C=(0,O.useState)(i.stylisPlugins),w=C[0],x=C[1],k=pe(),R=(0,O.useMemo)((function(){var C=k;return i.sheet?C=i.sheet:i.target&&(C=C.reconstructWithOptions({target:i.target},!1)),i.disableCSSOMInjection&&(C=C.reconstructWithOptions({useCSSOMInjection:!1})),C}),[i.disableCSSOMInjection,i.sheet,i.target]),j=(0,O.useMemo)((function(){return ae({options:{prefix:!i.disableVendorPrefixes},plugins:w})}),[i.disableVendorPrefixes,w]);return(0,O.useEffect)((function(){I()(w,i.stylisPlugins)||x(i.stylisPlugins)}),[i.stylisPlugins]),S().createElement(Ze.Provider,{value:R},S().createElement(Qe.Provider,{value:j},i.children))}var nt=function(){function e(i,C){var w=this;this.inject=function(i,C){void 0===C&&(C=tt);var x=w.name+C.hash;i.hasNameForId(w.id,x)||i.insertRules(w.id,x,C(w.rules,x,"@keyframes"))},this.toString=function(){return D(12,String(w.name))},this.name=i,this.id="sc-keyframes-"+i,this.rules=C}return e.prototype.getName=function(i){return void 0===i&&(i=tt),this.name+i.hash},e}(),rt=/([A-Z])/,ot=/([A-Z])/g,at=/^ms-/,we=function(i){return"-"+i.toLowerCase()};function Ee(i){return rt.test(i)?i.replace(ot,we).replace(at,"-ms-"):i}var be=function(i){return null==i||!1===i||""===i};function _e(i,C,w,x){if(Array.isArray(i)){for(var O,S=[],k=0,I=i.length;k
1?C-1:0),x=1;x
?@[\\\]^`{|}~-]+/g,lt=/(^-|-$)/g;function je(i){return i.replace(it,"-").replace(lt,"")}var Te=function(i){return Q(te(i)>>>0)};function xe(i){return"string"==typeof i&&!0}var ke=function(i){return"function"==typeof i||"object"==typeof i&&null!==i&&!Array.isArray(i)},Ve=function(i){return"__proto__"!==i&&"constructor"!==i&&"prototype"!==i};function Be(i,C,w){var x=i[w];ke(C)&&ke(x)?ze(x,C):i[w]=C}function ze(i){for(var C=arguments.length,w=new Array(C>1?C-1:0),x=1;x
=0||(O[w]=i[w]);return O}(C,["componentId"]),S=x&&x+"-"+(xe(i)?i:je(b(i)));return Ye(i,y({},O,{attrs:le,componentId:S}),w)},Object.defineProperty(ce,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=x?ze({},i.defaultProps,C):C}}),Object.defineProperty(ce,"toString",{value:function(){return"."+ce.styledComponentId}}),k&&$()(ce,i,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),ce}var qe=function(i){return function e(i,C,w){if(void 0===w&&(w=re),!(0,x.isValidElementType)(C))return D(1,String(C));var s=function(){return i(C,w,Ae.apply(void 0,arguments))};return s.withConfig=function(x){return e(i,C,y({},w,{},x))},s.attrs=function(x){return e(i,C,y({},w,{attrs:Array.prototype.concat(w.attrs,x).filter(Boolean)}))},s}(Ye,i)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(i){qe[i]=qe(i)}));var dt=function(){function e(i,C){this.rules=i,this.componentId=C,this.isStatic=ne(i),Me.registerId(this.componentId+1)}var i=e.prototype;return i.createStyles=function(i,C,w,x){var O=x(_e(this.rules,C,w,x).join(""),""),S=this.componentId+i;w.insertRules(S,S,O)},i.removeStyles=function(i,C){C.clearRules(this.componentId+i)},i.renderStyles=function(i,C,w,x){i>2&&Me.registerId(this.componentId+i),this.removeStyles(i,w),this.createStyles(i,C,w,x)},e}();function $e(i){for(var C=arguments.length,w=new Array(C>1?C-1:0),x=1;x
1?C-1:0),x=1;x
"+C+""},this.getStyleTags=function(){return i.sealed?D(2):i._emitSheetCSS()},this.getStyleElement=function(){var C;if(i.sealed)return D(2);var w=((C={})[oe]="",C["data-styled-version"]="5.3.11",C.dangerouslySetInnerHTML={__html:i.instance.toString()},C),x=Y();return x&&(w.nonce=x),[S().createElement("style",y({},w,{key:"sc-0-0"}))]},this.seal=function(){i.sealed=!0},this.instance=new Me({isServer:!0}),this.sealed=!1}var i=e.prototype;return i.collectStyles=function(i){return this.sealed?D(2):S().createElement(me,{sheet:this.instance},i)},i.interleaveWithNodeStream=function(i){return D(3)},e}(),Je=function(i){var C=S().forwardRef((function(C,w){var x=(0,O.useContext)(ut),k=i.defaultProps,I=Oe(C,x,k);return S().createElement(i,y({},C,{theme:I,ref:w}))}));return $()(C,i),C.displayName="WithTheme("+b(i)+")",C},Xe=function(){return(0,O.useContext)(ut)},pt={StyleSheet:Me,masterSheet:et};const mt=qe},37244:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function isFQDN(i,C){(0,x.default)(i),(C=(0,O.default)(C,S)).allow_trailing_dot&&"."===i[i.length-1]&&(i=i.substring(0,i.length-1));!0===C.allow_wildcard&&0===i.indexOf("*.")&&(i=i.substring(2));var w=i.split("."),k=w[w.length-1];if(C.require_tld){if(w.length<2)return!1;if(!C.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(k))return!1;if(/\s/.test(k))return!1}if(!C.allow_numeric_tld&&/^\d+$/.test(k))return!1;return w.every((function(i){return!(i.length>63&&!C.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i)&&(!/[\uff01-\uff5e]/.test(i)&&(!/^-|-$/.test(i)&&!(!C.allow_underscores&&/_/.test(i)))))}))};var x=_interopRequireDefault(w(7774)),O=_interopRequireDefault(w(85092));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}var S={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};i.exports=C.default,i.exports.default=C.default},91540:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function isIP(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,x.default)(i),!(C=String(C)))return isIP(i,4)||isIP(i,6);if("4"===C)return k.test(i);if("6"===C)return R.test(i);return!1};var x=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(w(7774));var O="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",S="(".concat(O,"[.]){3}").concat(O),k=new RegExp("^".concat(S,"$")),I="(?:[0-9a-fA-F]{1,4})",R=new RegExp("^("+"(?:".concat(I,":){7}(?:").concat(I,"|:)|")+"(?:".concat(I,":){6}(?:").concat(S,"|:").concat(I,"|:)|")+"(?:".concat(I,":){5}(?::").concat(S,"|(:").concat(I,"){1,2}|:)|")+"(?:".concat(I,":){4}(?:(:").concat(I,"){0,1}:").concat(S,"|(:").concat(I,"){1,3}|:)|")+"(?:".concat(I,":){3}(?:(:").concat(I,"){0,2}:").concat(S,"|(:").concat(I,"){1,4}|:)|")+"(?:".concat(I,":){2}(?:(:").concat(I,"){0,3}:").concat(S,"|(:").concat(I,"){1,5}|:)|")+"(?:".concat(I,":){1}(?:(:").concat(I,"){0,4}:").concat(S,"|(:").concat(I,"){1,6}|:)|")+"(?::((?::".concat(I,"){0,5}:").concat(S,"|(?::").concat(I,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");i.exports=C.default,i.exports.default=C.default},50429:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function isURL(i,C){if((0,x.default)(i),!i||/[\s<>]/.test(i))return!1;if(0===i.indexOf("mailto:"))return!1;if((C=(0,k.default)(C,I)).validate_length&&i.length>=2083)return!1;if(!C.allow_fragments&&i.includes("#"))return!1;if(!C.allow_query_components&&(i.includes("?")||i.includes("&")))return!1;var w,j,W,N,G,$,J,re;if(J=i.split("#"),i=J.shift(),J=i.split("?"),i=J.shift(),(J=i.split("://")).length>1){if(w=J.shift().toLowerCase(),C.require_valid_protocol&&-1===C.protocols.indexOf(w))return!1}else{if(C.require_protocol)return!1;if("//"===i.slice(0,2)){if(!C.allow_protocol_relative_urls)return!1;J[0]=i.slice(2)}}if(""===(i=J.join("://")))return!1;if(J=i.split("/"),""===(i=J.shift())&&!C.require_host)return!0;if((J=i.split("@")).length>1){if(C.disallow_auth)return!1;if(""===J[0])return!1;if((j=J.shift()).indexOf(":")>=0&&j.split(":").length>2)return!1;var oe=function _slicedToArray(i,C){return function _arrayWithHoles(i){if(Array.isArray(i))return i}(i)||function _iterableToArrayLimit(i,C){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(i)))return;var w=[],x=!0,O=!1,S=void 0;try{for(var k,I=i[Symbol.iterator]();!(x=(k=I.next()).done)&&(w.push(k.value),!C||w.length!==C);x=!0);}catch(i){O=!0,S=i}finally{try{x||null==I.return||I.return()}finally{if(O)throw S}}return w}(i,C)||function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i,C)||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.")}()}(j.split(":"),2),ie=oe[0],le=oe[1];if(""===ie&&""===le)return!1}N=J.join("@"),$=null,re=null;var ue=N.match(R);ue?(W="",re=ue[1],$=ue[2]||null):(W=(J=N.split(":")).shift(),J.length&&($=J.join(":")));if(null!==$&&$.length>0){if(G=parseInt($,10),!/^[0-9]+$/.test($)||G<=0||G>65535)return!1}else if(C.require_port)return!1;if(C.host_whitelist)return checkHost(W,C.host_whitelist);if(""===W&&!C.require_host)return!0;if(!((0,S.default)(W)||(0,O.default)(W,C)||re&&(0,S.default)(re,6)))return!1;if(W=W||re,C.host_blacklist&&checkHost(W,C.host_blacklist))return!1;return!0};var x=_interopRequireDefault(w(7774)),O=_interopRequireDefault(w(37244)),S=_interopRequireDefault(w(91540)),k=_interopRequireDefault(w(85092));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _arrayLikeToArray(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w
{"use strict";function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(i){return typeof i}:function _typeof(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}Object.defineProperty(C,"__esModule",{value:!0}),C.default=function assertString(i){if(!("string"==typeof i||i instanceof String)){var C=_typeof(i);throw null===i?C="null":"object"===C&&(C=i.constructor.name),new TypeError("Expected a string but received a ".concat(C))}},i.exports=C.default,i.exports.default=C.default},85092:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function merge(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},C=arguments.length>1?arguments[1]:void 0;for(var w in C)void 0===i[w]&&(i[w]=C[w]);return i},i.exports=C.default,i.exports.default=C.default},87363:i=>{"use strict";i.exports=React},61533:i=>{"use strict";i.exports=ReactDOM},34029:i=>{"use strict";i.exports=elementorV2.icons},36626:i=>{"use strict";i.exports=elementorV2.ui},38003:i=>{"use strict";i.exports=wp.i18n},98106:i=>{i.exports=function _arrayLikeToArray(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w
{i.exports=function _arrayWithHoles(i){if(Array.isArray(i))return i},i.exports.__esModule=!0,i.exports.default=i.exports},34102:(i,C,w)=>{var x=w(98106);i.exports=function _arrayWithoutHoles(i){if(Array.isArray(i))return x(i)},i.exports.__esModule=!0,i.exports.default=i.exports},77266:i=>{i.exports=function _assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i},i.exports.__esModule=!0,i.exports.default=i.exports},10029:i=>{function asyncGeneratorStep(i,C,w,x,O,S,k){try{var I=i[S](k),R=I.value}catch(i){return void w(i)}I.done?C(R):Promise.resolve(R).then(x,O)}i.exports=function _asyncToGenerator(i){return function(){var C=this,w=arguments;return new Promise((function(x,O){var S=i.apply(C,w);function _next(i){asyncGeneratorStep(S,x,O,_next,_throw,"next",i)}function _throw(i){asyncGeneratorStep(S,x,O,_next,_throw,"throw",i)}_next(void 0)}))}},i.exports.__esModule=!0,i.exports.default=i.exports},78983:i=>{i.exports=function _classCallCheck(i,C){if(!(i instanceof C))throw new TypeError("Cannot call a class as a function")},i.exports.__esModule=!0,i.exports.default=i.exports},42081:(i,C,w)=>{var x=w(74040);function _defineProperties(i,C){for(var w=0;w
{var x=w(74040);i.exports=function _defineProperty(i,C,w){return(C=x(C))in i?Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):i[C]=w,i},i.exports.__esModule=!0,i.exports.default=i.exports},73119:i=>{function _extends(){return i.exports=_extends=Object.assign?Object.assign.bind():function(i){for(var C=1;C
{function _getPrototypeOf(C){return i.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(i){return i.__proto__||Object.getPrototypeOf(i)},i.exports.__esModule=!0,i.exports.default=i.exports,_getPrototypeOf(C)}i.exports=_getPrototypeOf,i.exports.__esModule=!0,i.exports.default=i.exports},58724:(i,C,w)=>{var x=w(96196);i.exports=function _inherits(i,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(C&&C.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),C&&x(i,C)},i.exports.__esModule=!0,i.exports.default=i.exports},73203:i=>{i.exports=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}},i.exports.__esModule=!0,i.exports.default=i.exports},68:i=>{i.exports=function _iterableToArray(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)},i.exports.__esModule=!0,i.exports.default=i.exports},40608:i=>{i.exports=function _iterableToArrayLimit(i,C){var w=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=w){var x,O,S,k,I=[],R=!0,j=!1;try{if(S=(w=w.call(i)).next,0===C){if(Object(w)!==w)return;R=!1}else for(;!(R=(x=S.call(w)).done)&&(I.push(x.value),I.length!==C);R=!0);}catch(i){j=!0,O=i}finally{try{if(!R&&null!=w.return&&(k=w.return(),Object(k)!==k))return}finally{if(j)throw O}}return I}},i.exports.__esModule=!0,i.exports.default=i.exports},56894:i=>{i.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.")},i.exports.__esModule=!0,i.exports.default=i.exports},91282:i=>{i.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},i.exports.__esModule=!0,i.exports.default=i.exports},70966:(i,C,w)=>{var x=w(22412);i.exports=function _objectWithoutProperties(i,C){if(null==i)return{};var w,O,S=x(i,C);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(i);for(O=0;O
=0||Object.prototype.propertyIsEnumerable.call(i,w)&&(S[w]=i[w])}return S},i.exports.__esModule=!0,i.exports.default=i.exports},22412:i=>{i.exports=function _objectWithoutPropertiesLoose(i,C){if(null==i)return{};var w,x,O={},S=Object.keys(i);for(x=0;x
=0||(O[w]=i[w]);return O},i.exports.__esModule=!0,i.exports.default=i.exports},71173:(i,C,w)=>{var x=w(7501).default,O=w(77266);i.exports=function _possibleConstructorReturn(i,C){if(C&&("object"===x(C)||"function"==typeof C))return C;if(void 0!==C)throw new TypeError("Derived constructors may only return object or undefined");return O(i)},i.exports.__esModule=!0,i.exports.default=i.exports},21337:(i,C,w)=>{var x=w(7501).default;function _regeneratorRuntime(){"use strict";i.exports=_regeneratorRuntime=function _regeneratorRuntime(){return w},i.exports.__esModule=!0,i.exports.default=i.exports;var C,w={},O=Object.prototype,S=O.hasOwnProperty,k=Object.defineProperty||function(i,C,w){i[C]=w.value},I="function"==typeof Symbol?Symbol:{},R=I.iterator||"@@iterator",j=I.asyncIterator||"@@asyncIterator",W=I.toStringTag||"@@toStringTag";function define(i,C,w){return Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}),i[C]}try{define({},"")}catch(C){define=function define(i,C,w){return i[C]=w}}function wrap(i,C,w,x){var O=C&&C.prototype instanceof Generator?C:Generator,S=Object.create(O.prototype),I=new Context(x||[]);return k(S,"_invoke",{value:makeInvokeMethod(i,w,I)}),S}function tryCatch(i,C,w){try{return{type:"normal",arg:i.call(C,w)}}catch(i){return{type:"throw",arg:i}}}w.wrap=wrap;var N="suspendedStart",G="suspendedYield",$="executing",J="completed",re={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var oe={};define(oe,R,(function(){return this}));var ie=Object.getPrototypeOf,le=ie&&ie(ie(values([])));le&&le!==O&&S.call(le,R)&&(oe=le);var ue=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(oe);function defineIteratorMethods(i){["next","throw","return"].forEach((function(C){define(i,C,(function(i){return this._invoke(C,i)}))}))}function AsyncIterator(i,C){function invoke(w,O,k,I){var R=tryCatch(i[w],i,O);if("throw"!==R.type){var j=R.arg,W=j.value;return W&&"object"==x(W)&&S.call(W,"__await")?C.resolve(W.__await).then((function(i){invoke("next",i,k,I)}),(function(i){invoke("throw",i,k,I)})):C.resolve(W).then((function(i){j.value=i,k(j)}),(function(i){return invoke("throw",i,k,I)}))}I(R.arg)}var w;k(this,"_invoke",{value:function value(i,x){function callInvokeWithMethodAndArg(){return new C((function(C,w){invoke(i,x,C,w)}))}return w=w?w.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(i,w,x){var O=N;return function(S,k){if(O===$)throw new Error("Generator is already running");if(O===J){if("throw"===S)throw k;return{value:C,done:!0}}for(x.method=S,x.arg=k;;){var I=x.delegate;if(I){var R=maybeInvokeDelegate(I,x);if(R){if(R===re)continue;return R}}if("next"===x.method)x.sent=x._sent=x.arg;else if("throw"===x.method){if(O===N)throw O=J,x.arg;x.dispatchException(x.arg)}else"return"===x.method&&x.abrupt("return",x.arg);O=$;var j=tryCatch(i,w,x);if("normal"===j.type){if(O=x.done?J:G,j.arg===re)continue;return{value:j.arg,done:x.done}}"throw"===j.type&&(O=J,x.method="throw",x.arg=j.arg)}}}function maybeInvokeDelegate(i,w){var x=w.method,O=i.iterator[x];if(O===C)return w.delegate=null,"throw"===x&&i.iterator.return&&(w.method="return",w.arg=C,maybeInvokeDelegate(i,w),"throw"===w.method)||"return"!==x&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+x+"' method")),re;var S=tryCatch(O,i.iterator,w.arg);if("throw"===S.type)return w.method="throw",w.arg=S.arg,w.delegate=null,re;var k=S.arg;return k?k.done?(w[i.resultName]=k.value,w.next=i.nextLoc,"return"!==w.method&&(w.method="next",w.arg=C),w.delegate=null,re):k:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,re)}function pushTryEntry(i){var C={tryLoc:i[0]};1 in i&&(C.catchLoc=i[1]),2 in i&&(C.finallyLoc=i[2],C.afterLoc=i[3]),this.tryEntries.push(C)}function resetTryEntry(i){var C=i.completion||{};C.type="normal",delete C.arg,i.completion=C}function Context(i){this.tryEntries=[{tryLoc:"root"}],i.forEach(pushTryEntry,this),this.reset(!0)}function values(i){if(i||""===i){var w=i[R];if(w)return w.call(i);if("function"==typeof i.next)return i;if(!isNaN(i.length)){var O=-1,k=function next(){for(;++O
=0;--x){var O=this.tryEntries[x],k=O.completion;if("root"===O.tryLoc)return handle("end");if(O.tryLoc<=this.prev){var I=S.call(O,"catchLoc"),R=S.call(O,"finallyLoc");if(I&&R){if(this.prev
=0;--w){var x=this.tryEntries[w];if(x.tryLoc<=this.prev&&S.call(x,"finallyLoc")&&this.prev
=0;--C){var w=this.tryEntries[C];if(w.finallyLoc===i)return this.complete(w.completion,w.afterLoc),resetTryEntry(w),re}},catch:function _catch(i){for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C];if(w.tryLoc===i){var x=w.completion;if("throw"===x.type){var O=x.arg;resetTryEntry(w)}return O}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(i,w,x){return this.delegate={iterator:values(i),resultName:w,nextLoc:x},"next"===this.method&&(this.arg=C),re}},w}i.exports=_regeneratorRuntime,i.exports.__esModule=!0,i.exports.default=i.exports},96196:i=>{function _setPrototypeOf(C,w){return i.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(i,C){return i.__proto__=C,i},i.exports.__esModule=!0,i.exports.default=i.exports,_setPrototypeOf(C,w)}i.exports=_setPrototypeOf,i.exports.__esModule=!0,i.exports.default=i.exports},40131:(i,C,w)=>{var x=w(17358),O=w(40608),S=w(35068),k=w(56894);i.exports=function _slicedToArray(i,C){return x(i)||O(i,C)||S(i,C)||k()},i.exports.__esModule=!0,i.exports.default=i.exports},79769:i=>{i.exports=function _taggedTemplateLiteral(i,C){return C||(C=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(C)}}))},i.exports.__esModule=!0,i.exports.default=i.exports},9833:(i,C,w)=>{var x=w(34102),O=w(68),S=w(35068),k=w(91282);i.exports=function _toConsumableArray(i){return x(i)||O(i)||S(i)||k()},i.exports.__esModule=!0,i.exports.default=i.exports},56027:(i,C,w)=>{var x=w(7501).default;i.exports=function toPrimitive(i,C){if("object"!=x(i)||!i)return i;var w=i[Symbol.toPrimitive];if(void 0!==w){var O=w.call(i,C||"default");if("object"!=x(O))return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===C?String:Number)(i)},i.exports.__esModule=!0,i.exports.default=i.exports},74040:(i,C,w)=>{var x=w(7501).default,O=w(56027);i.exports=function toPropertyKey(i){var C=O(i,"string");return"symbol"==x(C)?C:String(C)},i.exports.__esModule=!0,i.exports.default=i.exports},7501:i=>{function _typeof(C){return i.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},i.exports.__esModule=!0,i.exports.default=i.exports,_typeof(C)}i.exports=_typeof,i.exports.__esModule=!0,i.exports.default=i.exports},35068:(i,C,w)=>{var x=w(98106);i.exports=function _unsupportedIterableToArray(i,C){if(i){if("string"==typeof i)return x(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);return"Object"===w&&i.constructor&&(w=i.constructor.name),"Map"===w||"Set"===w?Array.from(i):"Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?x(i,C):void 0}},i.exports.__esModule=!0,i.exports.default=i.exports},50824:(i,C,w)=>{var x=w(21337)();i.exports=x;try{regeneratorRuntime=x}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},51068:(i,C,w)=>{"use strict";w.r(C),w.d(C,{default:()=>ReactMarkdown,uriTransformer:()=>uriTransformer});var x={};w.r(x),w.d(x,{attentionMarkers:()=>jt,contentInitial:()=>Pt,disable:()=>Mt,document:()=>St,flow:()=>It,flowInitial:()=>kt,insideSpan:()=>At,string:()=>Tt,text:()=>Rt});var O={};w.r(O),w.d(O,{boolean:()=>$t,booleanish:()=>Yt,commaOrSpaceSeparated:()=>Jt,commaSeparated:()=>Qt,number:()=>Kt,overloadedBoolean:()=>Zt,spaceSeparated:()=>Xt});const S=["http","https","mailto","tel"];function uriTransformer(i){const C=(i||"").trim(),w=C.charAt(0);if("#"===w||"/"===w)return C;const x=C.indexOf(":");if(-1===x)return C;let O=-1;for(;++O
O?C:(O=C.indexOf("#"),-1!==O&&x>O?C:"javascript:void(0)")}var k=w(87363),I=w(48809);function stringifyPosition(i){return i&&"object"==typeof i?"position"in i||"type"in i?position(i.position):"start"in i||"end"in i?position(i):"line"in i||"column"in i?point(i):"":""}function point(i){return index(i&&i.line)+":"+index(i&&i.column)}function position(i){return point(i&&i.start)+"-"+point(i&&i.end)}function index(i){return i&&"number"==typeof i?i:1}class VFileMessage extends Error{constructor(i,C,w){const x=[null,null];let O={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof C&&(w=C,C=void 0),"string"==typeof w){const i=w.indexOf(":");-1===i?x[1]=w:(x[0]=w.slice(0,i),x[1]=w.slice(i+1))}C&&("type"in C||"position"in C?C.position&&(O=C.position):"start"in C||"end"in C?O=C:("line"in C||"column"in C)&&(O.start=C)),this.name=stringifyPosition(C)||"1:1",this.message="object"==typeof i?i.message:i,this.stack="","object"==typeof i&&i.stack&&(this.stack=i.stack),this.reason=this.message,this.fatal,this.line=O.start.line,this.column=O.start.column,this.position=O,this.source=x[0],this.ruleId=x[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 R={basename:function basename(i,C){if(void 0!==C&&"string"!=typeof C)throw new TypeError('"ext" argument must be a string');assertPath(i);let w,x=0,O=-1,S=i.length;if(void 0===C||0===C.length||C.length>i.length){for(;S--;)if(47===i.charCodeAt(S)){if(w){x=S+1;break}}else O<0&&(w=!0,O=S+1);return O<0?"":i.slice(x,O)}if(C===i)return"";let k=-1,I=C.length-1;for(;S--;)if(47===i.charCodeAt(S)){if(w){x=S+1;break}}else k<0&&(w=!0,k=S+1),I>-1&&(i.charCodeAt(S)===C.charCodeAt(I--)?I<0&&(O=S):(I=-1,O=k));x===O?O=k:O<0&&(O=i.length);return i.slice(x,O)},dirname:function dirname(i){if(assertPath(i),0===i.length)return".";let C,w=-1,x=i.length;for(;--x;)if(47===i.charCodeAt(x)){if(C){w=x;break}}else C||(C=!0);return w<0?47===i.charCodeAt(0)?"/":".":1===w&&47===i.charCodeAt(0)?"//":i.slice(0,w)},extname:function extname(i){assertPath(i);let C,w=i.length,x=-1,O=0,S=-1,k=0;for(;w--;){const I=i.charCodeAt(w);if(47!==I)x<0&&(C=!0,x=w+1),46===I?S<0?S=w:1!==k&&(k=1):S>-1&&(k=-1);else if(C){O=w+1;break}}if(S<0||x<0||0===k||1===k&&S===x-1&&S===O+1)return"";return i.slice(S,x)},join:function join(...i){let C,w=-1;for(;++w
2){if(x=O.lastIndexOf("/"),x!==O.length-1){x<0?(O="",S=0):(O=O.slice(0,x),S=O.length-1-O.lastIndexOf("/")),k=R,I=0;continue}}else if(O.length>0){O="",S=0,k=R,I=0;continue}C&&(O=O.length>0?O+"/..":"..",S=2)}else O.length>0?O+="/"+i.slice(k+1,R):O=i.slice(k+1,R),S=R-k-1;k=R,I=0}else 46===w&&I>-1?I++:I=-1}return O}(i,!C);0!==w.length||C||(w=".");w.length>0&&47===i.charCodeAt(i.length-1)&&(w+="/");return C?"/"+w:w}(C)},sep:"/"};function assertPath(i){if("string"!=typeof i)throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}const j={cwd:function cwd(){return"/"}};function isUrl(i){return null!==i&&"object"==typeof i&&i.href&&i.origin}function urlToPath(i){if("string"==typeof i)i=new URL(i);else if(!isUrl(i)){const C=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+i+"`");throw C.code="ERR_INVALID_ARG_TYPE",C}if("file:"!==i.protocol){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return function getPathFromURLPosix(i){if(""!==i.hostname){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const C=i.pathname;let w=-1;for(;++w
C.length;let O;x&&C.push(done);try{O=i.apply(this,C)}catch(i){if(x&&w)throw i;return done(i)}x||(O instanceof Promise?O.then(then,done):O instanceof Error?done(O):then(O))}function done(i,...x){w||(w=!0,C(i,...x))}function then(i){done(null,i)}}(k,next)(...S):x(null,...S)}}(null,...C)},use:function use(w){if("function"!=typeof w)throw new TypeError("Expected `middelware` to be a function, not "+w);return i.push(w),C}};return C}const G=function base(){const i=trough(),C=[];let w,x={},O=-1;return processor.data=function data(i,C){if("string"==typeof i)return 2===arguments.length?(assertUnfrozen("data",w),x[i]=C,processor):$.call(x,i)&&x[i]||null;if(i)return assertUnfrozen("data",w),x=i,processor;return x},processor.Parser=void 0,processor.Compiler=void 0,processor.freeze=function freeze(){if(w)return processor;for(;++O
{if(!i&&C&&w){const x=processor.stringify(C,w);null==x||(!function looksLikeAVFileValue(i){return"string"==typeof i||I(i)}(x)?w.result=x:w.value=x),done(i,w)}else done(i)}))}executor(null,C)},processor.processSync=function processSync(i){let C;processor.freeze(),assertParser("processSync",processor.Parser),assertCompiler("processSync",processor.Compiler);const w=vfile(i);return processor.process(w,done),assertDone("processSync","process",C),w;function done(i){C=!0,bail(i)}},processor;function processor(){const i=base();let w=-1;for(;++w
O?0:O+C:C>O?O:C,w=w>0?w:0,x.length<1e4)S=Array.from(x),S.unshift(C,w),i.splice(...S);else for(w&&i.splice(C,w);k
0?(splice(i,i.length,0,C),i):C}const re={}.hasOwnProperty;function syntaxExtension(i,C){let w;for(w in C){const x=(re.call(i,w)?i[w]:void 0)||(i[w]={}),O=C[w];let S;if(O)for(S in O){re.call(x,S)||(x[S]=[]);const i=O[S];constructs(x[S],Array.isArray(i)?i:i?[i]:[])}}}function constructs(i,C){let w=-1;const x=[];for(;++w
S))return;const w=C.events.length;let O,I,R=w;for(;R--;)if("exit"===C.events[R][0]&&"chunkFlow"===C.events[R][1].type){if(O){I=C.events[R][1].end;break}O=!0}for(exitContainers(k),i=w;i
x;){const x=w[O];C.containerState=x[1],x[0].exit.call(C,i)}w.length=x}function closeFlow(){x.write([null]),O=void 0,x=void 0,C.containerState._closeFlow=void 0}}},ve={tokenize:function tokenizeContainer(i,C,w){return factorySpace(i,i.attempt(this.parser.constructs.document,C,w),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Ce={tokenize:function tokenizeBlankLine(i,C,w){return function start(C){return markdownSpace(C)?factorySpace(i,after,"linePrefix")(C):after(C)};function after(i){return null===i||markdownLineEnding(i)?C(i):w(i)}},partial:!0};function subtokenize(i){const C={};let w,x,O,S,k,I,R,j=-1;for(;++j
=4?C(O):i.interrupt(x.parser.constructs.flow,w,C)(O)}},partial:!0};const Ie={tokenize:function initializeFlow(i){const C=this,w=i.attempt(Ce,(function atBlankEnding(x){if(null===x)return void i.consume(x);return i.enter("lineEndingBlank"),i.consume(x),i.exit("lineEndingBlank"),C.currentConstruct=void 0,w}),i.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(i,i.attempt(this.parser.constructs.flow,afterConstruct,i.attempt(Se,afterConstruct)),"linePrefix")));return w;function afterConstruct(x){if(null!==x)return i.enter("lineEnding"),i.consume(x),i.exit("lineEnding"),C.currentConstruct=void 0,w;i.consume(x)}}};const Re={resolveAll:createResolver()},Me=initializeFactory("string"),De=initializeFactory("text");function initializeFactory(i){return{tokenize:function initializeText(C){const w=this,x=this.parser.constructs[i],O=C.attempt(x,start,notText);return start;function start(i){return atBreak(i)?O(i):notText(i)}function notText(i){if(null!==i)return C.enter("data"),C.consume(i),data;C.consume(i)}function data(i){return atBreak(i)?(C.exit("data"),O(i)):(C.consume(i),data)}function atBreak(i){if(null===i)return!0;const C=x[i];let O=-1;if(C)for(;++O
-1){const i=k[0];"string"==typeof i?k[0]=i.slice(x):k.shift()}S>0&&k.push(i[O].slice(0,S))}return k}(k,i)}function now(){const{line:i,column:C,offset:w,_index:O,_bufferIndex:S}=x;return{line:i,column:C,offset:w,_index:O,_bufferIndex:S}}function main(){let i;for(;x._index
=3&&(null===S||markdownLineEnding(S))?(i.exit("thematicBreak"),C(S)):w(S)}function sequence(C){return C===x?(i.consume(C),O++,sequence):(i.exit("thematicBreakSequence"),markdownSpace(C)?factorySpace(i,atBreak,"whitespace")(C):atBreak(C))}}};const He={name:"list",tokenize:function tokenizeListStart(i,C,w){const x=this,O=x.events[x.events.length-1];let S=O&&"linePrefix"===O[1].type?O[2].sliceSerialize(O[1],!0).length:0,k=0;return function start(C){const O=x.containerState.type||(42===C||43===C||45===C?"listUnordered":"listOrdered");if("listUnordered"===O?!x.containerState.marker||C===x.containerState.marker:ue(C)){if(x.containerState.type||(x.containerState.type=O,i.enter(O,{_container:!0})),"listUnordered"===O)return i.enter("listItemPrefix"),42===C||45===C?i.check(Fe,w,atMarker)(C):atMarker(C);if(!x.interrupt||49===C)return i.enter("listItemPrefix"),i.enter("listItemValue"),inside(C)}return w(C)};function inside(C){return ue(C)&&++k<10?(i.consume(C),inside):(!x.interrupt||k<2)&&(x.containerState.marker?C===x.containerState.marker:41===C||46===C)?(i.exit("listItemValue"),atMarker(C)):w(C)}function atMarker(C){return i.enter("listItemMarker"),i.consume(C),i.exit("listItemMarker"),x.containerState.marker=x.containerState.marker||C,i.check(Ce,x.interrupt?w:onBlank,i.attempt(Ue,endOfPrefix,otherPrefix))}function onBlank(i){return x.containerState.initialBlankLine=!0,S++,endOfPrefix(i)}function otherPrefix(C){return markdownSpace(C)?(i.enter("listItemPrefixWhitespace"),i.consume(C),i.exit("listItemPrefixWhitespace"),endOfPrefix):w(C)}function endOfPrefix(w){return x.containerState.size=S+x.sliceSerialize(i.exit("listItemPrefix"),!0).length,C(w)}},continuation:{tokenize:function tokenizeListContinuation(i,C,w){const x=this;return x.containerState._closeFlow=void 0,i.check(Ce,onBlank,notBlank);function onBlank(w){return x.containerState.furtherBlankLines=x.containerState.furtherBlankLines||x.containerState.initialBlankLine,factorySpace(i,C,"listItemIndent",x.containerState.size+1)(w)}function notBlank(w){return x.containerState.furtherBlankLines||!markdownSpace(w)?(x.containerState.furtherBlankLines=void 0,x.containerState.initialBlankLine=void 0,notInCurrentItem(w)):(x.containerState.furtherBlankLines=void 0,x.containerState.initialBlankLine=void 0,i.attempt(Ge,C,notInCurrentItem)(w))}function notInCurrentItem(O){return x.containerState._closeFlow=!0,x.interrupt=void 0,factorySpace(i,i.attempt(He,C,w),"linePrefix",x.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O)}}},exit:function tokenizeListEnd(i){i.exit(this.containerState.type)}},Ue={tokenize:function tokenizeListItemPrefixWhitespace(i,C,w){const x=this;return factorySpace(i,(function afterPrefix(i){const O=x.events[x.events.length-1];return!markdownSpace(i)&&O&&"listItemPrefixWhitespace"===O[1].type?C(i):w(i)}),"listItemPrefixWhitespace",x.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ge={tokenize:function tokenizeIndent(i,C,w){const x=this;return factorySpace(i,(function afterPrefix(i){const O=x.events[x.events.length-1];return O&&"listItemIndent"===O[1].type&&O[2].sliceSerialize(O[1],!0).length===x.containerState.size?C(i):w(i)}),"listItemIndent",x.containerState.size+1)},partial:!0};const Ze={name:"blockQuote",tokenize:function tokenizeBlockQuoteStart(i,C,w){const x=this;return function start(C){if(62===C){const w=x.containerState;return w.open||(i.enter("blockQuote",{_container:!0}),w.open=!0),i.enter("blockQuotePrefix"),i.enter("blockQuoteMarker"),i.consume(C),i.exit("blockQuoteMarker"),after}return w(C)};function after(w){return markdownSpace(w)?(i.enter("blockQuotePrefixWhitespace"),i.consume(w),i.exit("blockQuotePrefixWhitespace"),i.exit("blockQuotePrefix"),C):(i.exit("blockQuotePrefix"),C(w))}},continuation:{tokenize:function tokenizeBlockQuoteContinuation(i,C,w){const x=this;return function contStart(C){if(markdownSpace(C))return factorySpace(i,contBefore,"linePrefix",x.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C);return contBefore(C)};function contBefore(x){return i.attempt(Ze,C,w)(x)}}},exit:function exit(i){i.exit("blockQuote")}};function factoryDestination(i,C,w,x,O,S,k,I,R){const j=R||Number.POSITIVE_INFINITY;let W=0;return function start(C){if(60===C)return i.enter(x),i.enter(O),i.enter(S),i.consume(C),i.exit(S),enclosedBefore;if(null===C||32===C||41===C||asciiControl(C))return w(C);return i.enter(x),i.enter(k),i.enter(I),i.enter("chunkString",{contentType:"string"}),raw(C)};function enclosedBefore(w){return 62===w?(i.enter(S),i.consume(w),i.exit(S),i.exit(O),i.exit(x),C):(i.enter(I),i.enter("chunkString",{contentType:"string"}),enclosed(w))}function enclosed(C){return 62===C?(i.exit("chunkString"),i.exit(I),enclosedBefore(C)):null===C||60===C||markdownLineEnding(C)?w(C):(i.consume(C),92===C?enclosedEscape:enclosed)}function enclosedEscape(C){return 60===C||62===C||92===C?(i.consume(C),enclosed):enclosed(C)}function raw(O){return W||null!==O&&41!==O&&!markdownLineEndingOrSpace(O)?W
999||null===j||91===j||93===j&&!I||94===j&&!R&&"_hiddenFootnoteSupport"in k.parser.constructs?w(j):93===j?(i.exit(S),i.enter(O),i.consume(j),i.exit(O),i.exit(x),C):markdownLineEnding(j)?(i.enter("lineEnding"),i.consume(j),i.exit("lineEnding"),atBreak):(i.enter("chunkString",{contentType:"string"}),labelInside(j))}function labelInside(C){return null===C||91===C||93===C||markdownLineEnding(C)||R++>999?(i.exit("chunkString"),atBreak(C)):(i.consume(C),I||(I=!markdownSpace(C)),92===C?labelEscape:labelInside)}function labelEscape(C){return 91===C||92===C||93===C?(i.consume(C),R++,labelInside):labelInside(C)}}function factoryTitle(i,C,w,x,O,S){let k;return function start(C){if(34===C||39===C||40===C)return i.enter(x),i.enter(O),i.consume(C),i.exit(O),k=40===C?41:C,begin;return w(C)};function begin(w){return w===k?(i.enter(O),i.consume(w),i.exit(O),i.exit(x),C):(i.enter(S),atBreak(w))}function atBreak(C){return C===k?(i.exit(S),begin(k)):null===C?w(C):markdownLineEnding(C)?(i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),factorySpace(i,atBreak,"linePrefix")):(i.enter("chunkString",{contentType:"string"}),inside(C))}function inside(C){return C===k||null===C||markdownLineEnding(C)?(i.exit("chunkString"),atBreak(C)):(i.consume(C),92===C?escape:inside)}function escape(C){return C===k||92===C?(i.consume(C),inside):inside(C)}}function factoryWhitespace(i,C){let w;return function start(x){if(markdownLineEnding(x))return i.enter("lineEnding"),i.consume(x),i.exit("lineEnding"),w=!0,start;if(markdownSpace(x))return factorySpace(i,start,w?"linePrefix":"lineSuffix")(x);return C(x)}}function normalizeIdentifier(i){return i.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ke={name:"definition",tokenize:function tokenizeDefinition(i,C,w){const x=this;let O;return function start(C){return i.enter("definition"),function before(C){return factoryLabel.call(x,i,labelAfter,w,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}(C)};function labelAfter(C){return O=normalizeIdentifier(x.sliceSerialize(x.events[x.events.length-1][1]).slice(1,-1)),58===C?(i.enter("definitionMarker"),i.consume(C),i.exit("definitionMarker"),markerAfter):w(C)}function markerAfter(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(i,destinationBefore)(C):destinationBefore(C)}function destinationBefore(C){return factoryDestination(i,destinationAfter,w,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function destinationAfter(C){return i.attempt(Qe,after,after)(C)}function after(C){return markdownSpace(C)?factorySpace(i,afterWhitespace,"whitespace")(C):afterWhitespace(C)}function afterWhitespace(S){return null===S||markdownLineEnding(S)?(i.exit("definition"),x.parser.defined.push(O),C(S)):w(S)}}},Qe={tokenize:function tokenizeTitleBefore(i,C,w){return function titleBefore(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(i,beforeMarker)(C):w(C)};function beforeMarker(C){return factoryTitle(i,titleAfter,w,"definitionTitle","definitionTitleMarker","definitionTitleString")(C)}function titleAfter(C){return markdownSpace(C)?factorySpace(i,titleAfterOptionalWhitespace,"whitespace")(C):titleAfterOptionalWhitespace(C)}function titleAfterOptionalWhitespace(i){return null===i||markdownLineEnding(i)?C(i):w(i)}},partial:!0};const et={name:"codeIndented",tokenize:function tokenizeCodeIndented(i,C,w){const x=this;return function start(C){return i.enter("codeIndented"),factorySpace(i,afterPrefix,"linePrefix",5)(C)};function afterPrefix(i){const C=x.events[x.events.length-1];return C&&"linePrefix"===C[1].type&&C[2].sliceSerialize(C[1],!0).length>=4?atBreak(i):w(i)}function atBreak(C){return null===C?after(C):markdownLineEnding(C)?i.attempt(tt,atBreak,after)(C):(i.enter("codeFlowValue"),inside(C))}function inside(C){return null===C||markdownLineEnding(C)?(i.exit("codeFlowValue"),atBreak(C)):(i.consume(C),inside)}function after(w){return i.exit("codeIndented"),C(w)}}},tt={tokenize:function tokenizeFurtherStart(i,C,w){const x=this;return furtherStart;function furtherStart(C){return x.parser.lazy[x.now().line]?w(C):markdownLineEnding(C)?(i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),furtherStart):factorySpace(i,afterPrefix,"linePrefix",5)(C)}function afterPrefix(i){const O=x.events[x.events.length-1];return O&&"linePrefix"===O[1].type&&O[2].sliceSerialize(O[1],!0).length>=4?C(i):markdownLineEnding(i)?furtherStart(i):w(i)}},partial:!0};const nt={name:"headingAtx",tokenize:function tokenizeHeadingAtx(i,C,w){let x=0;return function start(C){return i.enter("atxHeading"),function before(C){return i.enter("atxHeadingSequence"),sequenceOpen(C)}(C)};function sequenceOpen(C){return 35===C&&x++<6?(i.consume(C),sequenceOpen):null===C||markdownLineEndingOrSpace(C)?(i.exit("atxHeadingSequence"),atBreak(C)):w(C)}function atBreak(w){return 35===w?(i.enter("atxHeadingSequence"),sequenceFurther(w)):null===w||markdownLineEnding(w)?(i.exit("atxHeading"),C(w)):markdownSpace(w)?factorySpace(i,atBreak,"whitespace")(w):(i.enter("atxHeadingText"),data(w))}function sequenceFurther(C){return 35===C?(i.consume(C),sequenceFurther):(i.exit("atxHeadingSequence"),atBreak(C))}function data(C){return null===C||35===C||markdownLineEndingOrSpace(C)?(i.exit("atxHeadingText"),atBreak(C)):(i.consume(C),data)}},resolve:function resolveHeadingAtx(i,C){let w,x,O=i.length-2,S=3;"whitespace"===i[S][1].type&&(S+=2);O-2>S&&"whitespace"===i[O][1].type&&(O-=2);"atxHeadingSequence"===i[O][1].type&&(S===O-1||O-4>S&&"whitespace"===i[O-2][1].type)&&(O-=S+1===O?2:4);O>S&&(w={type:"atxHeadingText",start:i[S][1].start,end:i[O][1].end},x={type:"chunkText",start:i[S][1].start,end:i[O][1].end,contentType:"text"},splice(i,S,O-S+1,[["enter",w,C],["enter",x,C],["exit",x,C],["exit",w,C]]));return i}};const rt={name:"setextUnderline",tokenize:function tokenizeSetextUnderline(i,C,w){const x=this;let O;return function start(C){let S,k=x.events.length;for(;k--;)if("lineEnding"!==x.events[k][1].type&&"linePrefix"!==x.events[k][1].type&&"content"!==x.events[k][1].type){S="paragraph"===x.events[k][1].type;break}if(!x.parser.lazy[x.now().line]&&(x.interrupt||S))return i.enter("setextHeadingLine"),O=C,function before(C){return i.enter("setextHeadingLineSequence"),inside(C)}(C);return w(C)};function inside(C){return C===O?(i.consume(C),inside):(i.exit("setextHeadingLineSequence"),markdownSpace(C)?factorySpace(i,after,"lineSuffix")(C):after(C))}function after(x){return null===x||markdownLineEnding(x)?(i.exit("setextHeadingLine"),C(x)):w(x)}},resolveTo:function resolveToSetextUnderline(i,C){let w,x,O,S=i.length;for(;S--;)if("enter"===i[S][0]){if("content"===i[S][1].type){w=S;break}"paragraph"===i[S][1].type&&(x=S)}else"content"===i[S][1].type&&i.splice(S,1),O||"definition"!==i[S][1].type||(O=S);const k={type:"setextHeading",start:Object.assign({},i[x][1].start),end:Object.assign({},i[i.length-1][1].end)};i[x][1].type="setextHeadingText",O?(i.splice(x,0,["enter",k,C]),i.splice(O+1,0,["exit",i[w][1],C]),i[w][1].end=Object.assign({},i[O][1].end)):i[w][1]=k;return i.push(["exit",k,C]),i}};const ot=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],it={name:"htmlFlow",tokenize:function tokenizeHtmlFlow(i,C,w){const x=this;let O,S,k,I,R;return function start(C){return function before(C){return i.enter("htmlFlow"),i.enter("htmlFlowData"),i.consume(C),open}(C)};function open(I){return 33===I?(i.consume(I),declarationOpen):47===I?(i.consume(I),S=!0,tagCloseStart):63===I?(i.consume(I),O=3,x.interrupt?C:continuationDeclarationInside):oe(I)?(i.consume(I),k=String.fromCharCode(I),tagName):w(I)}function declarationOpen(S){return 45===S?(i.consume(S),O=2,commentOpenInside):91===S?(i.consume(S),O=5,I=0,cdataOpenInside):oe(S)?(i.consume(S),O=4,x.interrupt?C:continuationDeclarationInside):w(S)}function commentOpenInside(O){return 45===O?(i.consume(O),x.interrupt?C:continuationDeclarationInside):w(O)}function cdataOpenInside(O){const S="CDATA[";return O===S.charCodeAt(I++)?(i.consume(O),6===I?x.interrupt?C:continuation:cdataOpenInside):w(O)}function tagCloseStart(C){return oe(C)?(i.consume(C),k=String.fromCharCode(C),tagName):w(C)}function tagName(I){if(null===I||47===I||62===I||markdownLineEndingOrSpace(I)){const R=47===I,j=k.toLowerCase();return R||S||!at.includes(j)?ot.includes(k.toLowerCase())?(O=6,R?(i.consume(I),basicSelfClosing):x.interrupt?C(I):continuation(I)):(O=7,x.interrupt&&!x.parser.lazy[x.now().line]?w(I):S?completeClosingTagAfter(I):completeAttributeNameBefore(I)):(O=1,x.interrupt?C(I):continuation(I))}return 45===I||ie(I)?(i.consume(I),k+=String.fromCharCode(I),tagName):w(I)}function basicSelfClosing(O){return 62===O?(i.consume(O),x.interrupt?C:continuation):w(O)}function completeClosingTagAfter(C){return markdownSpace(C)?(i.consume(C),completeClosingTagAfter):completeEnd(C)}function completeAttributeNameBefore(C){return 47===C?(i.consume(C),completeEnd):58===C||95===C||oe(C)?(i.consume(C),completeAttributeName):markdownSpace(C)?(i.consume(C),completeAttributeNameBefore):completeEnd(C)}function completeAttributeName(C){return 45===C||46===C||58===C||95===C||ie(C)?(i.consume(C),completeAttributeName):completeAttributeNameAfter(C)}function completeAttributeNameAfter(C){return 61===C?(i.consume(C),completeAttributeValueBefore):markdownSpace(C)?(i.consume(C),completeAttributeNameAfter):completeAttributeNameBefore(C)}function completeAttributeValueBefore(C){return null===C||60===C||61===C||62===C||96===C?w(C):34===C||39===C?(i.consume(C),R=C,completeAttributeValueQuoted):markdownSpace(C)?(i.consume(C),completeAttributeValueBefore):completeAttributeValueUnquoted(C)}function completeAttributeValueQuoted(C){return C===R?(i.consume(C),R=null,completeAttributeValueQuotedAfter):null===C||markdownLineEnding(C)?w(C):(i.consume(C),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(C){return null===C||34===C||39===C||47===C||60===C||61===C||62===C||96===C||markdownLineEndingOrSpace(C)?completeAttributeNameAfter(C):(i.consume(C),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(i){return 47===i||62===i||markdownSpace(i)?completeAttributeNameBefore(i):w(i)}function completeEnd(C){return 62===C?(i.consume(C),completeAfter):w(C)}function completeAfter(C){return null===C||markdownLineEnding(C)?continuation(C):markdownSpace(C)?(i.consume(C),completeAfter):w(C)}function continuation(C){return 45===C&&2===O?(i.consume(C),continuationCommentInside):60===C&&1===O?(i.consume(C),continuationRawTagOpen):62===C&&4===O?(i.consume(C),continuationClose):63===C&&3===O?(i.consume(C),continuationDeclarationInside):93===C&&5===O?(i.consume(C),continuationCdataInside):!markdownLineEnding(C)||6!==O&&7!==O?null===C||markdownLineEnding(C)?(i.exit("htmlFlowData"),continuationStart(C)):(i.consume(C),continuation):(i.exit("htmlFlowData"),i.check(lt,continuationAfter,continuationStart)(C))}function continuationStart(C){return i.check(ut,continuationStartNonLazy,continuationAfter)(C)}function continuationStartNonLazy(C){return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),continuationBefore}function continuationBefore(C){return null===C||markdownLineEnding(C)?continuationStart(C):(i.enter("htmlFlowData"),continuation(C))}function continuationCommentInside(C){return 45===C?(i.consume(C),continuationDeclarationInside):continuation(C)}function continuationRawTagOpen(C){return 47===C?(i.consume(C),k="",continuationRawEndTag):continuation(C)}function continuationRawEndTag(C){if(62===C){const w=k.toLowerCase();return at.includes(w)?(i.consume(C),continuationClose):continuation(C)}return oe(C)&&k.length<8?(i.consume(C),k+=String.fromCharCode(C),continuationRawEndTag):continuation(C)}function continuationCdataInside(C){return 93===C?(i.consume(C),continuationDeclarationInside):continuation(C)}function continuationDeclarationInside(C){return 62===C?(i.consume(C),continuationClose):45===C&&2===O?(i.consume(C),continuationDeclarationInside):continuation(C)}function continuationClose(C){return null===C||markdownLineEnding(C)?(i.exit("htmlFlowData"),continuationAfter(C)):(i.consume(C),continuationClose)}function continuationAfter(w){return i.exit("htmlFlow"),C(w)}},resolveTo:function resolveToHtmlFlow(i){let C=i.length;for(;C--&&("enter"!==i[C][0]||"htmlFlow"!==i[C][1].type););C>1&&"linePrefix"===i[C-2][1].type&&(i[C][1].start=i[C-2][1].start,i[C+1][1].start=i[C-2][1].start,i.splice(C-2,2));return i},concrete:!0},lt={tokenize:function tokenizeBlankLineBefore(i,C,w){return function start(x){return i.enter("lineEnding"),i.consume(x),i.exit("lineEnding"),i.attempt(Ce,C,w)}},partial:!0},ut={tokenize:function tokenizeNonLazyContinuationStart(i,C,w){const x=this;return function start(C){if(markdownLineEnding(C))return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),after;return w(C)};function after(i){return x.parser.lazy[x.now().line]?w(i):C(i)}},partial:!0};const ct={tokenize:function tokenizeNonLazyContinuation(i,C,w){const x=this;return function start(C){if(null===C)return w(C);return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),lineStart};function lineStart(i){return x.parser.lazy[x.now().line]?w(i):C(i)}},partial:!0},st={name:"codeFenced",tokenize:function tokenizeCodeFenced(i,C,w){const x=this,O={tokenize:function tokenizeCloseStart(i,C,w){let O=0;return startBefore;function startBefore(C){return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),start}function start(C){return i.enter("codeFencedFence"),markdownSpace(C)?factorySpace(i,beforeSequenceClose,"linePrefix",x.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):beforeSequenceClose(C)}function beforeSequenceClose(C){return C===S?(i.enter("codeFencedFenceSequence"),sequenceClose(C)):w(C)}function sequenceClose(C){return C===S?(O++,i.consume(C),sequenceClose):O>=I?(i.exit("codeFencedFenceSequence"),markdownSpace(C)?factorySpace(i,sequenceCloseAfter,"whitespace")(C):sequenceCloseAfter(C)):w(C)}function sequenceCloseAfter(x){return null===x||markdownLineEnding(x)?(i.exit("codeFencedFence"),C(x)):w(x)}},partial:!0};let S,k=0,I=0;return function start(C){return function beforeSequenceOpen(C){const w=x.events[x.events.length-1];return k=w&&"linePrefix"===w[1].type?w[2].sliceSerialize(w[1],!0).length:0,S=C,i.enter("codeFenced"),i.enter("codeFencedFence"),i.enter("codeFencedFenceSequence"),sequenceOpen(C)}(C)};function sequenceOpen(C){return C===S?(I++,i.consume(C),sequenceOpen):I<3?w(C):(i.exit("codeFencedFenceSequence"),markdownSpace(C)?factorySpace(i,infoBefore,"whitespace")(C):infoBefore(C))}function infoBefore(w){return null===w||markdownLineEnding(w)?(i.exit("codeFencedFence"),x.interrupt?C(w):i.check(ct,atNonLazyBreak,after)(w)):(i.enter("codeFencedFenceInfo"),i.enter("chunkString",{contentType:"string"}),info(w))}function info(C){return null===C||markdownLineEnding(C)?(i.exit("chunkString"),i.exit("codeFencedFenceInfo"),infoBefore(C)):markdownSpace(C)?(i.exit("chunkString"),i.exit("codeFencedFenceInfo"),factorySpace(i,metaBefore,"whitespace")(C)):96===C&&C===S?w(C):(i.consume(C),info)}function metaBefore(C){return null===C||markdownLineEnding(C)?infoBefore(C):(i.enter("codeFencedFenceMeta"),i.enter("chunkString",{contentType:"string"}),meta(C))}function meta(C){return null===C||markdownLineEnding(C)?(i.exit("chunkString"),i.exit("codeFencedFenceMeta"),infoBefore(C)):96===C&&C===S?w(C):(i.consume(C),meta)}function atNonLazyBreak(C){return i.attempt(O,after,contentBefore)(C)}function contentBefore(C){return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),contentStart}function contentStart(C){return k>0&&markdownSpace(C)?factorySpace(i,beforeContentChunk,"linePrefix",k+1)(C):beforeContentChunk(C)}function beforeContentChunk(C){return null===C||markdownLineEnding(C)?i.check(ct,atNonLazyBreak,after)(C):(i.enter("codeFlowValue"),contentChunk(C))}function contentChunk(C){return null===C||markdownLineEnding(C)?(i.exit("codeFlowValue"),beforeContentChunk(C)):(i.consume(C),contentChunk)}function after(w){return i.exit("codeFenced"),C(w)}},concrete:!0};const dt=document.createElement("i");function decodeNamedCharacterReference(i){const C="&"+i+";";dt.innerHTML=C;const w=dt.textContent;return(59!==w.charCodeAt(w.length-1)||"semi"===i)&&(w!==C&&w)}const ft={name:"characterReference",tokenize:function tokenizeCharacterReference(i,C,w){const x=this;let O,S,k=0;return function start(C){return i.enter("characterReference"),i.enter("characterReferenceMarker"),i.consume(C),i.exit("characterReferenceMarker"),open};function open(C){return 35===C?(i.enter("characterReferenceMarkerNumeric"),i.consume(C),i.exit("characterReferenceMarkerNumeric"),numeric):(i.enter("characterReferenceValue"),O=31,S=ie,value(C))}function numeric(C){return 88===C||120===C?(i.enter("characterReferenceMarkerHexadecimal"),i.consume(C),i.exit("characterReferenceMarkerHexadecimal"),i.enter("characterReferenceValue"),O=6,S=ce,value):(i.enter("characterReferenceValue"),O=7,S=ue,value(C))}function value(I){if(59===I&&k){const O=i.exit("characterReferenceValue");return S!==ie||decodeNamedCharacterReference(x.sliceSerialize(O))?(i.enter("characterReferenceMarker"),i.consume(I),i.exit("characterReferenceMarker"),i.exit("characterReference"),C):w(I)}return S(I)&&k++
1&&i[W][1].end.offset-i[W][1].start.offset>1?2:1;const N=Object.assign({},i[w][1].end),G=Object.assign({},i[W][1].start);movePoint(N,-I),movePoint(G,I),S={type:I>1?"strongSequence":"emphasisSequence",start:N,end:Object.assign({},i[w][1].end)},k={type:I>1?"strongSequence":"emphasisSequence",start:Object.assign({},i[W][1].start),end:G},O={type:I>1?"strongText":"emphasisText",start:Object.assign({},i[w][1].end),end:Object.assign({},i[W][1].start)},x={type:I>1?"strong":"emphasis",start:Object.assign({},S.start),end:Object.assign({},k.end)},i[w][1].end=Object.assign({},S.start),i[W][1].start=Object.assign({},k.end),R=[],i[w][1].end.offset-i[w][1].start.offset&&(R=push(R,[["enter",i[w][1],C],["exit",i[w][1],C]])),R=push(R,[["enter",x,C],["enter",S,C],["exit",S,C],["enter",O,C]]),R=push(R,resolveAll(C.parser.constructs.insideSpan.null,i.slice(w+1,W),C)),R=push(R,[["exit",O,C],["enter",k,C],["exit",k,C],["exit",x,C]]),i[W][1].end.offset-i[W][1].start.offset?(j=2,R=push(R,[["enter",i[W][1],C],["exit",i[W][1],C]])):j=0,splice(i,w-1,W-w+3,R),W=w+R.length-j-2;break}W=-1;for(;++W
13&&w<32||w>126&&w<160||w>55295&&w<57344||w>64975&&w<65008||65535==(65535&w)||65534==(65535&w)||w>1114111?"":String.fromCharCode(w)}const Dt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decode(i,C,w){if(C)return C;if(35===w.charCodeAt(0)){const i=w.charCodeAt(1),C=120===i||88===i;return decodeNumericCharacterReference(w.slice(C?2:1),C?16:10)}return decodeNamedCharacterReference(w)||i}const Bt={}.hasOwnProperty,fromMarkdown=function(i,C,w){return"string"!=typeof C&&(w=C,C=void 0),function compiler(i){const C={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(C,(i||{}).mdastExtensions||[]);const w={};return compile;function compile(i){let w={type:"root",children:[]};const x={stack:[w],tokenStack:[],config:C,enter,exit,buffer,resume,setData,getData},O=[];let S=-1;for(;++S
0){const i=x.tokenStack[x.tokenStack.length-1];(i[1]||defaultOnError).call(x,void 0,i[0])}for(w.position={start:lib_point(i.length>0?i[0][1].start:{line:1,column:1,offset:0}),end:lib_point(i.length>0?i[i.length-2][1].end:{line:1,column:1,offset:0})},S=-1;++S
{const w=this.data("settings");return fromMarkdown(C,Object.assign({},w,i,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function normalizeUri(i){const C=[];let w=-1,x=0,O=0;for(;++w
55295&&S<57344){const C=i.charCodeAt(w+1);S<56320&&C>56319&&C<57344?(k=String.fromCharCode(S,C),O=1):k=""}else k=String.fromCharCode(S);k&&(C.push(i.slice(x,w),encodeURIComponent(k)),x=w+O+1,k=""),O&&(w+=O,O=0)}return C.join("")+i.slice(x)}const convert=function(i){if(null==i)return ok;if("string"==typeof i)return function typeFactory(i){return castFactory(type);function type(C){return C&&C.type===i}}(i);if("object"==typeof i)return Array.isArray(i)?function anyFactory(i){const C=[];let w=-1;for(;++w
":"")+")"})}return visit;function visit(){let R,j,W,N=[];if((!C||O(i,k,I[I.length-1]||null))&&(N=function toResult(i){if(Array.isArray(i))return i;if("number"==typeof i)return[true,i];return[i]}(w(i,I)),false===N[0]))return N;if(i.children&&"skip"!==N[0])for(j=(x?i.children.length:-1)+S,W=I.concat(i);j>-1&&j
-1?w.offset:null}}}const Ft={}.hasOwnProperty;function clean(i){return String(i||"").toUpperCase()}function footnoteReference(i,C){const w=String(C.identifier).toUpperCase(),x=normalizeUri(w.toLowerCase()),O=i.footnoteOrder.indexOf(w);let S;-1===O?(i.footnoteOrder.push(w),i.footnoteCounts[w]=1,S=i.footnoteOrder.length):(i.footnoteCounts[w]++,S=O+1);const k=i.footnoteCounts[w],I={type:"element",tagName:"a",properties:{href:"#"+i.clobberPrefix+"fn-"+x,id:i.clobberPrefix+"fnref-"+x+(k>1?"-"+k:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(S)}]};i.patch(C,I);const R={type:"element",tagName:"sup",properties:{},children:[I]};return i.patch(C,R),i.applyData(C,R)}function revert(i,C){const w=C.referenceType;let x="]";if("collapsed"===w?x+="[]":"full"===w&&(x+="["+(C.label||C.identifier)+"]"),"imageReference"===C.type)return{type:"text",value:"!["+C.alt+x};const O=i.all(C),S=O[0];S&&"text"===S.type?S.value="["+S.value:O.unshift({type:"text",value:"["});const k=O[O.length-1];return k&&"text"===k.type?k.value+=x:O.push({type:"text",value:x}),O}function listItemLoose(i){const C=i.spread;return null==C?i.children.length>1:C}const Nt=9,Ht=32;function trimLines(i){const C=String(i),w=/\r?\n|\r/g;let x=w.exec(C),O=0;const S=[];for(;x;)S.push(trimLine(C.slice(O,x.index),O>0,!0),x[0]),O=x.index+x[0].length,x=w.exec(C);return S.push(trimLine(C.slice(O),O>0,!1)),S.join("")}function trimLine(i,C,w){let x=0,O=i.length;if(C){let C=i.codePointAt(x);for(;C===Nt||C===Ht;)x++,C=i.codePointAt(x)}if(w){let C=i.codePointAt(O-1);for(;C===Nt||C===Ht;)O--,C=i.codePointAt(O-1)}return O>x?i.slice(x,O):""}const zt={blockquote:function blockquote(i,C){const w={type:"element",tagName:"blockquote",properties:{},children:i.wrap(i.all(C),!0)};return i.patch(C,w),i.applyData(C,w)},break:function hardBreak(i,C){const w={type:"element",tagName:"br",properties:{},children:[]};return i.patch(C,w),[i.applyData(C,w),{type:"text",value:"\n"}]},code:function code(i,C){const w=C.value?C.value+"\n":"",x=C.lang?C.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,O={};x&&(O.className=["language-"+x]);let S={type:"element",tagName:"code",properties:O,children:[{type:"text",value:w}]};return C.meta&&(S.data={meta:C.meta}),i.patch(C,S),S=i.applyData(C,S),S={type:"element",tagName:"pre",properties:{},children:[S]},i.patch(C,S),S},delete:function strikethrough(i,C){const w={type:"element",tagName:"del",properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},emphasis:function emphasis(i,C){const w={type:"element",tagName:"em",properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},footnoteReference,footnote:function footnote(i,C){const w=i.footnoteById;let x=1;for(;x in w;)x++;const O=String(x);return w[O]={type:"footnoteDefinition",identifier:O,children:[{type:"paragraph",children:C.children}],position:C.position},footnoteReference(i,{type:"footnoteReference",identifier:O,position:C.position})},heading:function heading(i,C){const w={type:"element",tagName:"h"+C.depth,properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},html:function html(i,C){if(i.dangerous){const w={type:"raw",value:C.value};return i.patch(C,w),i.applyData(C,w)}return null},imageReference:function imageReference(i,C){const w=i.definition(C.identifier);if(!w)return revert(i,C);const x={src:normalizeUri(w.url||""),alt:C.alt};null!==w.title&&void 0!==w.title&&(x.title=w.title);const O={type:"element",tagName:"img",properties:x,children:[]};return i.patch(C,O),i.applyData(C,O)},image:function image_image(i,C){const w={src:normalizeUri(C.url)};null!==C.alt&&void 0!==C.alt&&(w.alt=C.alt),null!==C.title&&void 0!==C.title&&(w.title=C.title);const x={type:"element",tagName:"img",properties:w,children:[]};return i.patch(C,x),i.applyData(C,x)},inlineCode:function inlineCode(i,C){const w={type:"text",value:C.value.replace(/\r?\n|\r/g," ")};i.patch(C,w);const x={type:"element",tagName:"code",properties:{},children:[w]};return i.patch(C,x),i.applyData(C,x)},linkReference:function linkReference(i,C){const w=i.definition(C.identifier);if(!w)return revert(i,C);const x={href:normalizeUri(w.url||"")};null!==w.title&&void 0!==w.title&&(x.title=w.title);const O={type:"element",tagName:"a",properties:x,children:i.all(C)};return i.patch(C,O),i.applyData(C,O)},link:function link_link(i,C){const w={href:normalizeUri(C.url)};null!==C.title&&void 0!==C.title&&(w.title=C.title);const x={type:"element",tagName:"a",properties:w,children:i.all(C)};return i.patch(C,x),i.applyData(C,x)},listItem:function listItem(i,C,w){const x=i.all(C),O=w?function listLoose(i){let C=!1;if("list"===i.type){C=i.spread||!1;const w=i.children;let x=-1;for(;!C&&++x
0&&w.children.unshift({type:"text",value:" "}),w.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:C.checked,disabled:!0},children:[]}),S.className=["task-list-item"]}let I=-1;for(;++I
0){const x={type:"element",tagName:"tbody",properties:{},children:i.wrap(w,!0)},S=Wt(C.children[1]),k=qt(C.children[C.children.length-1]);S.line&&k.line&&(x.position={start:S,end:k}),O.push(x)}const S={type:"element",tagName:"table",properties:{},children:i.wrap(O,!0)};return i.patch(C,S),i.applyData(C,S)},tableCell:function tableCell(i,C){const w={type:"element",tagName:"td",properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},tableRow:function tableRow(i,C,w){const x=w?w.children:void 0,O=0===(x?x.indexOf(C):1)?"th":"td",S=w&&"table"===w.type?w.align:void 0,k=S?S.length:C.children.length;let I=-1;const R=[];for(;++I
{const w=clean(i.identifier);w&&!Ft.call(C,w)&&(C[w]=i)})),function definition(i){const w=clean(i);return w&&Ft.call(C,w)?C[w]:null}}(i),state.footnoteById=O,state.footnoteOrder=[],state.footnoteCounts={},state.patch=patch,state.applyData=applyData,state.one=function oneBound(i,C){return state_one(state,i,C)},state.all=function allBound(i){return state_all(state,i)},state.wrap=state_wrap,state.augment=augment,visit(i,"footnoteDefinition",(i=>{const C=String(i.identifier).toUpperCase();Vt.call(O,C)||(O[C]=i)})),state;function augment(i,C){if(i&&"data"in i&&i.data){const w=i.data;w.hName&&("element"!==C.type&&(C={type:"element",tagName:"",properties:{},children:[]}),C.tagName=w.hName),"element"===C.type&&w.hProperties&&(C.properties={...C.properties,...w.hProperties}),"children"in C&&C.children&&w.hChildren&&(C.children=w.hChildren)}if(i){const w="type"in i?i:{position:i};(function generated(i){return!(i&&i.position&&i.position.start&&i.position.start.line&&i.position.start.column&&i.position.end&&i.position.end.line&&i.position.end.column)})(w)||(C.position={start:Wt(w),end:qt(w)})}return C}function state(i,C,w,x){return Array.isArray(w)&&(x=w,w={}),augment(i,{type:"element",tagName:C,properties:w||{},children:x||[]})}}function patch(i,C){i.position&&(C.position=function lib_position(i){return{start:Wt(i),end:qt(i)}}(i))}function applyData(i,C){let w=C;if(i&&i.data){const C=i.data.hName,x=i.data.hChildren,O=i.data.hProperties;"string"==typeof C&&("element"===w.type?w.tagName=C:w={type:"element",tagName:C,properties:{},children:[]}),"element"===w.type&&O&&(w.properties={...w.properties,...O}),"children"in w&&w.children&&null!=x&&(w.children=x)}return w}function state_one(i,C,w){const x=C&&C.type;if(!x)throw new Error("Expected node, got `"+C+"`");return Vt.call(i.handlers,x)?i.handlers[x](i,C,w):i.passThrough&&i.passThrough.includes(x)?"children"in C?{...C,children:state_all(i,C)}:C:i.unknownHandler?i.unknownHandler(i,C,w):function defaultUnknownHandler(i,C){const w=C.data||{},x=!("value"in C)||Vt.call(w,"hProperties")||Vt.call(w,"hChildren")?{type:"element",tagName:"div",properties:{},children:state_all(i,C)}:{type:"text",value:C.value};return i.patch(C,x),i.applyData(C,x)}(i,C)}function state_all(i,C){const w=[];if("children"in C){const x=C.children;let O=-1;for(;++O
0&&w.push({type:"text",value:"\n"}),w}function toHast(i,C){const w=createState(i,C),x=w.one(i,null),O=function footer(i){const C=[];let w=-1;for(;++w
1?"-"+I:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:i.footnoteBackLabel},children:[{type:"text",value:"↩"}]};I>1&&C.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(I)}]}),R.length>0&&R.push({type:"text",value:" "}),R.push(C)}const j=O[O.length-1];if(j&&"element"===j.type&&"p"===j.tagName){const i=j.children[j.children.length-1];i&&"text"===i.type?i.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...R)}else O.push(...R);const W={type:"element",tagName:"li",properties:{id:i.clobberPrefix+"fn-"+k},children:i.wrap(O,!0)};i.patch(x,W),C.push(W)}if(0!==C.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(i.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:i.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:i.wrap(C,!0)},{type:"text",value:"\n"}]}}(w);return O&&x.children.push({type:"text",value:"\n"},O),Array.isArray(x)?{type:"root",children:x}:x}const lib=function(i,C){return i&&"run"in i?function bridge(i,C){return(w,x,O)=>{i.run(toHast(w,C),x,(i=>{O(i)}))}}(i,C):function mutate(i){return C=>toHast(C,i)}(i||C)};var Ut=w(23615);class Schema{constructor(i,C,w){this.property=i,this.normal=C,w&&(this.space=w)}}function merge(i,C){const w={},x={};let O=-1;for(;++O
"xlink:"+C.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rn=create({space:"xml",transform:(i,C)=>"xml:"+C.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(i,C){return C in i?i[C]:C}function caseInsensitiveTransform(i,C){return caseSensitiveTransform(i,C.toLowerCase())}const on=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),an=create({transform:(i,C)=>"role"===C?C:"aria-"+C.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Yt,ariaAutoComplete:null,ariaBusy:Yt,ariaChecked:Yt,ariaColCount:Kt,ariaColIndex:Kt,ariaColSpan:Kt,ariaControls:Xt,ariaCurrent:null,ariaDescribedBy:Xt,ariaDetails:null,ariaDisabled:Yt,ariaDropEffect:Xt,ariaErrorMessage:null,ariaExpanded:Yt,ariaFlowTo:Xt,ariaGrabbed:Yt,ariaHasPopup:null,ariaHidden:Yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xt,ariaLevel:Kt,ariaLive:null,ariaModal:Yt,ariaMultiLine:Yt,ariaMultiSelectable:Yt,ariaOrientation:null,ariaOwns:Xt,ariaPlaceholder:null,ariaPosInSet:Kt,ariaPressed:Yt,ariaReadOnly:Yt,ariaRelevant:null,ariaRequired:Yt,ariaRoleDescription:Xt,ariaRowCount:Kt,ariaRowIndex:Kt,ariaRowSpan:Kt,ariaSelected:Yt,ariaSetSize:Kt,ariaSort:null,ariaValueMax:Kt,ariaValueMin:Kt,ariaValueNow:Kt,ariaValueText:null,role:null}}),ln=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:Qt,acceptCharset:Xt,accessKey:Xt,action:null,allow:null,allowFullScreen:$t,allowPaymentRequest:$t,allowUserMedia:$t,alt:null,as:null,async:$t,autoCapitalize:null,autoComplete:Xt,autoFocus:$t,autoPlay:$t,capture:$t,charSet:null,checked:$t,cite:null,className:Xt,cols:Kt,colSpan:null,content:null,contentEditable:Yt,controls:$t,controlsList:Xt,coords:Kt|Qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$t,defer:$t,dir:null,dirName:null,disabled:$t,download:Zt,draggable:Yt,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$t,formTarget:null,headers:Xt,height:Kt,hidden:$t,high:Kt,href:null,hrefLang:null,htmlFor:Xt,httpEquiv:Xt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:$t,itemId:null,itemProp:Xt,itemRef:Xt,itemScope:$t,itemType:Xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$t,low:Kt,manifest:null,max:null,maxLength:Kt,media:null,method:null,min:null,minLength:Kt,multiple:$t,muted:$t,name:null,nonce:null,noModule:$t,noValidate:$t,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:$t,optimum:Kt,pattern:null,ping:Xt,placeholder:null,playsInline:$t,poster:null,preload:null,readOnly:$t,referrerPolicy:null,rel:Xt,required:$t,reversed:$t,rows:Kt,rowSpan:Kt,sandbox:Xt,scope:null,scoped:$t,seamless:$t,selected:$t,shape:null,size:Kt,sizes:null,slot:null,span:Kt,spellCheck:Yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Kt,step:null,style:null,tabIndex:Kt,target:null,title:null,translate:null,type:null,typeMustMatch:$t,useMap:null,value:Yt,width:Kt,wrap:null,align:null,aLink:null,archive:Xt,axis:null,background:null,bgColor:null,border:Kt,borderColor:null,bottomMargin:Kt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$t,declare:$t,event:null,face:null,frame:null,frameBorder:null,hSpace:Kt,leftMargin:Kt,link:null,longDesc:null,lowSrc:null,marginHeight:Kt,marginWidth:Kt,noResize:$t,noHref:$t,noShade:$t,noWrap:$t,object:null,profile:null,prompt:null,rev:null,rightMargin:Kt,rules:null,scheme:null,scrolling:Yt,standby:null,summary:null,text:null,topMargin:Kt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Kt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$t,disableRemotePlayback:$t,prefix:null,property:null,results:Kt,security:null,unselectable:null}}),un=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:Jt,accentHeight:Kt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Kt,amplitude:Kt,arabicForm:null,ascent:Kt,attributeName:null,attributeType:null,azimuth:Kt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Kt,by:null,calcMode:null,capHeight:Kt,className:Xt,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:Kt,diffuseConstant:Kt,direction:null,display:null,dur:null,divisor:Kt,dominantBaseline:null,download:$t,dx:null,dy:null,edgeMode:null,editable:null,elevation:Kt,enableBackground:null,end:null,event:null,exponent:Kt,externalResourcesRequired:null,fill:null,fillOpacity:Kt,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:Qt,g2:Qt,glyphName:Qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Kt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Kt,horizOriginX:Kt,horizOriginY:Kt,id:null,ideographic:Kt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Kt,k:Kt,k1:Kt,k2:Kt,k3:Kt,k4:Kt,kernelMatrix:Jt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Kt,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:Kt,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:Kt,overlineThickness:Kt,paintOrder:null,panose1:null,path:null,pathLength:Kt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Kt,pointsAtY:Kt,pointsAtZ:Kt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jt,rev:Jt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jt,requiredFeatures:Jt,requiredFonts:Jt,requiredFormats:Jt,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:Kt,specularExponent:Kt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Kt,strikethroughThickness:Kt,string:null,stroke:null,strokeDashArray:Jt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Kt,strokeOpacity:Kt,strokeWidth:null,style:null,surfaceScale:Kt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Jt,tabIndex:Kt,tableValues:null,target:null,targetX:Kt,targetY:Kt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Jt,to:null,transform:null,u1:null,u2:null,underlinePosition:Kt,underlineThickness:Kt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Kt,values:null,vAlphabetic:Kt,vMathematical:Kt,vectorEffect:null,vHanging:Kt,vIdeographic:Kt,version:null,vertAdvY:Kt,vertOriginX:Kt,vertOriginY:Kt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Kt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),cn=merge([rn,nn,on,an,ln],"html"),sn=merge([rn,nn,on,an,un],"svg");function rehypeFilter(i){if(i.allowedElements&&i.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(i.allowedElements||i.disallowedElements||i.allowElement)return C=>{visit(C,"element",((C,w,x)=>{const O=x;let S;if(i.allowedElements?S=!i.allowedElements.includes(C.tagName):i.disallowedElements&&(S=i.disallowedElements.includes(C.tagName)),!S&&i.allowElement&&"number"==typeof w&&(S=!i.allowElement(C,w,O)),S&&"number"==typeof w)return i.unwrapDisallowed&&C.children?O.children.splice(w,1,...C.children):O.children.splice(w,1),w}))}}var dn=w(19185);function whitespace(i){const C=i&&"object"==typeof i&&"text"===i.type?i.value||"":i;return"string"==typeof C&&""===C.replace(/[ \t\n\f\r]/g,"")}const fn=/^data[-\w.:]+$/i,pn=/-[a-z]/g,mn=/[A-Z]/g;function kebab(i){return"-"+i.toLowerCase()}function camelcase(i){return i.charAt(1).toUpperCase()}const hn={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 gn=w(55862),yn={}.hasOwnProperty,vn=new Set(["table","thead","tbody","tfoot","tr"]);function childrenToReact(i,C){const w=[];let x,O=-1;for(;++O
0?k.createElement(J,j,G):k.createElement(J,j)}function getElementsBeforeCount(i,C){let w=-1,x=0;for(;++w
4&&"data"===w.slice(0,4)&&fn.test(C)){if("-"===C.charAt(4)){const i=C.slice(5).replace(pn,camelcase);x="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=C.slice(4);if(!pn.test(i)){let w=i.replace(mn,kebab);"-"!==w.charAt(0)&&(w="-"+w),C="data"+w}}O=DefinedInfo}return new O(x,C)}(x.schema,C);let S=w;null!=S&&S==S&&(Array.isArray(S)&&(S=O.commaSeparated?function comma_separated_tokens_stringify(i,C){const w=C||{};return(""===i[i.length-1]?[...i,""]:i).join((w.padRight?" ":"")+","+(!1===w.padLeft?"":" ")).trim()}(S):function stringify(i){return i.join(" ").trim()}(S)),"style"===O.property&&"string"==typeof S&&(S=function parseStyle(i){const C={};try{gn(i,iterator)}catch{}return C;function iterator(i,w){const x="-ms-"===i.slice(0,4)?`ms-${i.slice(4)}`:i;C[x.replace(/-([a-z])/g,styleReplacer)]=w}}(S)),O.space&&O.property?i[yn.call(hn,O.property)?hn[O.property]:O.property]=S:O.attribute&&(i[O.attribute]=S))}function styleReplacer(i,C){return C.toUpperCase()}const bn={}.hasOwnProperty,_n="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cn={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(i){for(const C in Cn)if(bn.call(Cn,C)&&bn.call(i,C)){const i=Cn[C];console.warn(`[react-markdown] Warning: please ${i.to?`use \`${i.to}\` instead of`:"remove"} \`${C}\` (see <${_n}#${i.id}> for more info)`),delete Cn[C]}const C=G().use(remarkParse).use(i.remarkPlugins||[]).use(lib,{...i.remarkRehypeOptions,allowDangerousHtml:!0}).use(i.rehypePlugins||[]).use(rehypeFilter,i),w=new VFile;"string"==typeof i.children?w.value=i.children:void 0!==i.children&&null!==i.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${i.children}\`)`);const x=C.runSync(C.parse(w),w);if("root"!==x.type)throw new TypeError("Expected a `root` node");let O=k.createElement(k.Fragment,{},childrenToReact({options:i,schema:cn,listDepth:0},x));return i.className&&(O=k.createElement("div",{className:i.className},O)),O}ReactMarkdown.propTypes={children:Ut.string,className:Ut.string,allowElement:Ut.func,allowedElements:Ut.arrayOf(Ut.string),disallowedElements:Ut.arrayOf(Ut.string),unwrapDisallowed:Ut.bool,remarkPlugins:Ut.arrayOf(Ut.oneOfType([Ut.object,Ut.func,Ut.arrayOf(Ut.oneOfType([Ut.bool,Ut.string,Ut.object,Ut.func,Ut.arrayOf(Ut.any)]))])),rehypePlugins:Ut.arrayOf(Ut.oneOfType([Ut.object,Ut.func,Ut.arrayOf(Ut.oneOfType([Ut.bool,Ut.string,Ut.object,Ut.func,Ut.arrayOf(Ut.any)]))])),sourcePos:Ut.bool,rawSourcePos:Ut.bool,skipHtml:Ut.bool,includeElementIndex:Ut.bool,transformLinkUri:Ut.oneOfType([Ut.func,Ut.bool]),linkTarget:Ut.oneOfType([Ut.func,Ut.string]),transformImageUri:Ut.func,components:Ut.object}}},C={};function __webpack_require__(w){var x=C[w];if(void 0!==x)return x.exports;var O=C[w]={exports:{}};return i[w].call(O.exports,O,O.exports,__webpack_require__),O.exports}__webpack_require__.n=i=>{var C=i&&i.__esModule?()=>i.default:()=>i;return __webpack_require__.d(C,{a:C}),C},__webpack_require__.d=(i,C)=>{for(var w in C)__webpack_require__.o(C,w)&&!__webpack_require__.o(i,w)&&Object.defineProperty(i,w,{enumerable:!0,get:C[w]})},__webpack_require__.o=(i,C)=>Object.prototype.hasOwnProperty.call(i,C),__webpack_require__.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},__webpack_require__.nc=void 0,(()=>{"use strict";new(__webpack_require__(73203)(__webpack_require__(94066)).default)})()})();