@emailmaker/emailmaker 1.0.37 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +57 -59
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.js +1 -1
  5. package/iframe/{iframe-eblock.73bcbc874fc3021cba78.html → iframe-eblock.e721a6ded6d09a719710.html} +1 -1
  6. package/iframe/{iframe.73bcbc874fc3021cba78.html → iframe.e721a6ded6d09a719710.html} +1 -1
  7. package/iframe/js/cssbeautify.js +1 -1
  8. package/iframe/sandbox-eblock.js +1 -1
  9. package/iframe/sandbox.js +1 -1
  10. package/package.json +1 -1
  11. package/plugin.html +1 -1
  12. package/plugin_blocks_test.html +1 -1
  13. package/plugin_default.html +1 -1
  14. package/plugin_s.html +1 -1
  15. package/static/css/6677.6f28a0c0.css +1 -0
  16. package/static/js/160.c2020dc9.js +1 -0
  17. package/static/js/18.ae1b88e5.js +1 -0
  18. package/static/js/2059.6f21f841.js +2 -0
  19. package/static/js/{2208.115694e9.js → 2208.cb758bc6.js} +1 -1
  20. package/static/js/2299.afe87d63.chunk.js +1 -0
  21. package/static/js/2587.4ec88069.js +2 -0
  22. package/static/js/3447.63d0aafa.js +1 -0
  23. package/static/js/{3682.d155b110.js → 3682.4db8ba34.js} +2 -2
  24. package/static/js/3920.9bc9bb1d.js +2 -0
  25. package/static/js/5552.9e96baf9.js +1 -0
  26. package/static/js/723.e748d062.js +2 -0
  27. package/static/js/8027.822d330c.js +2 -0
  28. package/static/js/8027.822d330c.js.LICENSE.txt +5 -0
  29. package/static/js/9154.49df69d7.js +1 -0
  30. package/static/js/9335.20ecdadf.js +1 -0
  31. package/static/js/9593.8a0e7a2e.js +2 -0
  32. package/static/js/emailmaker_core.97e8ab73.js +1 -0
  33. package/iframe/429.js +0 -1
  34. package/static/css/6677.3a2b7cfe.css +0 -1
  35. package/static/js/18.7d3e3257.js +0 -1
  36. package/static/js/197.a135382e.js +0 -1
  37. package/static/js/2223.17806e9a.js +0 -2
  38. package/static/js/2464.2c009f8c.js +0 -2
  39. package/static/js/2575.b05c7813.js +0 -1
  40. package/static/js/3959.42824ee0.js +0 -1
  41. package/static/js/5552.c5a9c252.js +0 -1
  42. package/static/js/5606.a93f532c.js +0 -1
  43. package/static/js/5927.791b2edc.chunk.js +0 -1
  44. package/static/js/5957.d2ad88af.js +0 -2
  45. package/static/js/8236.cc02400e.js +0 -2
  46. package/static/js/8483.7b71c205.js +0 -1
  47. package/static/js/9328.74394e00.js +0 -1
  48. package/static/js/946.9512007a.js +0 -2
  49. package/static/js/emailmaker_core.21ced917.js +0 -1
  50. /package/static/js/{8236.cc02400e.js.LICENSE.txt → 2059.6f21f841.js.LICENSE.txt} +0 -0
  51. /package/static/js/{2223.17806e9a.js.LICENSE.txt → 2587.4ec88069.js.LICENSE.txt} +0 -0
  52. /package/static/js/{3682.d155b110.js.LICENSE.txt → 3682.4db8ba34.js.LICENSE.txt} +0 -0
  53. /package/static/js/{2464.2c009f8c.js.LICENSE.txt → 3920.9bc9bb1d.js.LICENSE.txt} +0 -0
  54. /package/static/js/{5957.d2ad88af.js.LICENSE.txt → 723.e748d062.js.LICENSE.txt} +0 -0
  55. /package/static/js/{946.9512007a.js.LICENSE.txt → 9593.8a0e7a2e.js.LICENSE.txt} +0 -0
  56. /package/static/media/{ai-image.7c42c2e1.png → ai-image.png} +0 -0
  57. /package/static/media/{codicon.f13d28f3.ttf → codicon.ttf} +0 -0
  58. /package/static/media/{empty-image.1827d656.png → empty-image.png} +0 -0
  59. /package/static/media/{fb.ff103843.png → fb.png} +0 -0
  60. /package/static/media/{frame_dark.318d7ed5.png → frame_dark.png} +0 -0
  61. /package/static/media/{frame_light.22a9b4ec.png → frame_light.png} +0 -0
  62. /package/static/media/{frame_template_gallery.85693b39.png → frame_template_gallery.png} +0 -0
  63. /package/static/media/{ig.47a89992.png → ig.png} +0 -0
  64. /package/static/media/{sign_up_01.33327158.png → sign_up_01.png} +0 -0
  65. /package/static/media/{sign_up_01_blocks.5538cfdb.png → sign_up_01_blocks.png} +0 -0
  66. /package/static/media/{sign_up_02.d99d2aa6.png → sign_up_02.png} +0 -0
  67. /package/static/media/{sign_up_02_blocks.837fc2c9.png → sign_up_02_blocks.png} +0 -0
  68. /package/static/media/{sign_up_03.5545ffad.png → sign_up_03.png} +0 -0
  69. /package/static/media/{sign_up_03_blocks.126601f7.png → sign_up_03_blocks.png} +0 -0
  70. /package/static/media/{sign_up_04.398a4ca5.png → sign_up_04.png} +0 -0
  71. /package/static/media/{sign_up_04_blocks.255c5c07.png → sign_up_04_blocks.png} +0 -0
  72. /package/static/media/{sign_up_05.4c58df1b.png → sign_up_05.png} +0 -0
  73. /package/static/media/{sign_up_05_blocks.431b6844.png → sign_up_05_blocks.png} +0 -0
  74. /package/static/media/{tg.10f00452.png → tg.png} +0 -0
  75. /package/static/media/{tw.823a7736.png → tw.png} +0 -0
  76. /package/static/media/{video.854adea5.png → video.png} +0 -0
  77. /package/static/media/{vk.fe41df91.png → vk.png} +0 -0
  78. /package/static/media/{yd.c40d05dd.png → yd.png} +0 -0
  79. /package/static/media/{yt.4ac57e55.png → yt.png} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 3682.d155b110.js.LICENSE.txt */
2
- (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[3682],{26268:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(92810);function i(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class u extends r.Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!==typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let i in t){const o=parseInt(i);o>0&&e<=o&&o<n&&(n=o,r=t[i])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=r.Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const i=r%e;t[i]||(t[i]=[]),t[i].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,i=this.itemsInColumns(),a=100/i.length+"%";let l=n;l&&"string"!==typeof l&&(this.logDeprecated('The property "columnClassName" requires a string'),"undefined"===typeof l&&(l="my-masonry-grid_column"));const c=s(s(s({},e),t),{},{style:s(s({},t.style),{},{width:a}),className:l});return i.map(((e,t)=>r.createElement("div",o({},c,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:a,columnAttrs:s,column:l,className:c}=e,u=i(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let p=c;return"string"!==typeof c&&(this.logDeprecated('The property "className" requires a string'),"undefined"===typeof c&&(p="my-masonry-grid")),r.createElement("div",o({},u,{className:p}),this.renderColumns())}}u.defaultProps=c;const p=u},45184:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){a[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=r(e,2),n=t[0],i=t[1];a[n]=new o(n,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){a[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){a[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){a[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){a[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){a[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){a[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){a[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var s=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));a.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=n(60285),u=c.CAMELCASE,p=c.SAME,d=c.possibleStandardNames,f=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(d).reduce((function(e,t){var n=d[t];return n===p?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=f,t.possibleStandardNames=h},60285:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},13272:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var r=n(92810).createContext(null)},9613:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,P:()=>s});var r=n(92810),i=n(13272),o=n(21811);function a(e){void 0===e&&(e=i.t);var t=e===i.t?o.n:function(){return(0,r.useContext)(e)};return function(){return t().store}}var s=a()},45934:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>s,vA:()=>f.unstable_batchedUpdates,bN:()=>d,wA:()=>l.w,d4:()=>c.d,Pj:()=>u.P});var r=n(92810),i=n(13272),o=n(32471),a=n(8229);const s=function(e){var t=e.store,n=e.context,s=e.children,l=(0,r.useMemo)((function(){var e=(0,o.K)(t);return{store:t,subscription:e}}),[t]),c=(0,r.useMemo)((function(){return t.getState()}),[t]);(0,a.E)((function(){var e=l.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[l,c]);var u=n||i.t;return r.createElement(u.Provider,{value:l},s)};n(70384),n(73787);n(96790);var l=n(89780),c=n(20471),u=n(9613);function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function d(e,t){if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!p(e[n[i]],t[n[i]]))return!1;return!0}var f=n(22587);(0,n(64140).d)(f.unstable_batchedUpdates)},32471:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var r=n(64140);var i={notify:function(){},get:function(){return[]}};function o(e,t){var n,o=i;function a(){l.onStateChange&&l.onStateChange()}function s(){n||(n=t?t.addNestedSub(a):e.subscribe(a),o=function(){var e=(0,r.f)(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var l={addNestedSub:function(e){return s(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(n)},trySubscribe:s,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=i)},getListeners:function(){return o}};return l}},64140:(e,t,n)=>{"use strict";n.d(t,{d:()=>i,f:()=>o});var r=function(e){e()},i=function(e){return r=e},o=function(){return r}},8229:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(92810),i="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect},42143:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,p=60120,d=60115,f=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),p=b("react.suspense_list"),d=b("react.memo"),f=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case d:case s:return e;default:return t}}case r:return t}}}},73787:(e,t,n)=>{"use strict";n(42143)},29218:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(92810),i=n(59018),o=n.n(i),a=n(68373);function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var l=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,n=s(e,["children","gutter"]);n.gutter=function(e,n){var r;return t?r=t(e,n):(r=document.createElement("div")).className="gutter gutter-"+n,r.__isSplitGutter=!0,r},this.split=(0,a.A)(this.parent.children,n)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.children;var r=n.minSize,i=n.sizes,o=n.collapsed,l=s(n,["children","minSize","sizes","collapsed"]),c=e.minSize,u=e.sizes,p=e.collapsed,d=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(n){return t.props[n]!==e[n]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(r)&&Array.isArray(c)){var f=!1;r.forEach((function(e,t){f=f||e!==c[t]})),d=d||f}else d=!(!Array.isArray(r)&&!Array.isArray(c))||(d||r!==c);if(d)l.minSize=r,l.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),l.gutter=function(e,t,n){return n.previousSibling},this.split=(0,a.A)(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),l);else if(i){var h=!1;i.forEach((function(e,t){h=h||e!==u[t]})),h&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==p||d)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var n=t.children,i=s(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return r.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},i),n)},t}(r.Component);l.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},l.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const c=l},99215:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(96790),i=n(82745),o=n(10505),a=n(95053),s=n(29401),l=n(92810),c=n(22587);const u=!1,p=l.createContext(null);var d=function(e){return e.scrollTop},f="unmounted",h="exited",m="entering",g="entered",v="exiting",y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=h,r.appearStatus=m):i=g:i=t.unmountOnExit||t.mountOnEnter?f:h,r.state={status:i},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:h}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==g&&(t=m):n!==m&&n!==g||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===m){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===h&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[c.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||u?this.safeSetState({status:g},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:m},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:g},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.findDOMNode(this);t&&!u?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:h},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:h},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(p.Provider,{value:null},"function"===typeof n?n(e,r):l.cloneElement(l.Children.only(n),r))},t}(l.Component);function b(){}y.contextType=p,y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},y.UNMOUNTED=f,y.EXITED=h,y.ENTERING=m,y.ENTERED=g,y.EXITING=v;const x=y;var k=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,s.A)(e,t)}))},E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,a.A)(e,t)}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&k(e,r),i&&k(e,i),o&&k(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.A)(e,["classNames"]));return l.createElement(x,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.Component);E.defaultProps={classNames:""},E.propTypes={};const C=E},98634:(e,t,n)=>{"use strict";var r=n(92810),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c}}]);
1
+ /*! For license information please see 3682.4db8ba34.js.LICENSE.txt */
2
+ (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[3682],{26268:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(92810);function i(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class u extends r.Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!==typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let i in t){const o=parseInt(i);o>0&&e<=o&&o<n&&(n=o,r=t[i])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=r.Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const i=r%e;t[i]||(t[i]=[]),t[i].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,i=this.itemsInColumns(),a=100/i.length+"%";let l=n;l&&"string"!==typeof l&&(this.logDeprecated('The property "columnClassName" requires a string'),"undefined"===typeof l&&(l="my-masonry-grid_column"));const c=s(s(s({},e),t),{},{style:s(s({},t.style),{},{width:a}),className:l});return i.map(((e,t)=>r.createElement("div",o({},c,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:a,columnAttrs:s,column:l,className:c}=e,u=i(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let p=c;return"string"!==typeof c&&(this.logDeprecated('The property "className" requires a string'),"undefined"===typeof c&&(p="my-masonry-grid")),r.createElement("div",o({},u,{className:p}),this.renderColumns())}}u.defaultProps=c;const p=u},45184:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){a[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=r(e,2),n=t[0],i=t[1];a[n]=new o(n,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){a[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){a[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){a[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){a[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){a[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){a[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){a[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var s=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(s,l);a[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));a.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){a[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=n(60285),u=c.CAMELCASE,p=c.SAME,d=c.possibleStandardNames,f=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(d).reduce((function(e,t){var n=d[t];return n===p?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=f,t.possibleStandardNames=h},60285:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},13272:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var r=n(92810).createContext(null)},45934:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>s,vA:()=>f.unstable_batchedUpdates,bN:()=>d,wA:()=>l.w,d4:()=>c.d,Pj:()=>u.P});var r=n(92810),i=n(13272),o=n(32471),a=n(8229);const s=function(e){var t=e.store,n=e.context,s=e.children,l=(0,r.useMemo)((function(){var e=(0,o.K)(t);return{store:t,subscription:e}}),[t]),c=(0,r.useMemo)((function(){return t.getState()}),[t]);(0,a.E)((function(){var e=l.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[l,c]);var u=n||i.t;return r.createElement(u.Provider,{value:l},s)};n(70384),n(73787);n(96790);var l=n(89780),c=n(20471),u=n(9613);function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function d(e,t){if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!p(e[n[i]],t[n[i]]))return!1;return!0}var f=n(22587);(0,n(64140).d)(f.unstable_batchedUpdates)},32471:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var r=n(64140);var i={notify:function(){},get:function(){return[]}};function o(e,t){var n,o=i;function a(){l.onStateChange&&l.onStateChange()}function s(){n||(n=t?t.addNestedSub(a):e.subscribe(a),o=function(){var e=(0,r.f)(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var l={addNestedSub:function(e){return s(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(n)},trySubscribe:s,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=i)},getListeners:function(){return o}};return l}},64140:(e,t,n)=>{"use strict";n.d(t,{d:()=>i,f:()=>o});var r=function(e){e()},i=function(e){return r=e},o=function(){return r}},8229:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(92810),i="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect},42143:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,p=60120,d=60115,f=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),p=b("react.suspense_list"),d=b("react.memo"),f=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case d:case s:return e;default:return t}}case r:return t}}}},73787:(e,t,n)=>{"use strict";n(42143)},29218:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(92810),i=n(59018),o=n.n(i),a=n(68373);function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var l=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,n=s(e,["children","gutter"]);n.gutter=function(e,n){var r;return t?r=t(e,n):(r=document.createElement("div")).className="gutter gutter-"+n,r.__isSplitGutter=!0,r},this.split=(0,a.A)(this.parent.children,n)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.children;var r=n.minSize,i=n.sizes,o=n.collapsed,l=s(n,["children","minSize","sizes","collapsed"]),c=e.minSize,u=e.sizes,p=e.collapsed,d=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(n){return t.props[n]!==e[n]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(r)&&Array.isArray(c)){var f=!1;r.forEach((function(e,t){f=f||e!==c[t]})),d=d||f}else d=!(!Array.isArray(r)&&!Array.isArray(c))||(d||r!==c);if(d)l.minSize=r,l.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),l.gutter=function(e,t,n){return n.previousSibling},this.split=(0,a.A)(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),l);else if(i){var h=!1;i.forEach((function(e,t){h=h||e!==u[t]})),h&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==p||d)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var n=t.children,i=s(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return r.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},i),n)},t}(r.Component);l.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},l.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const c=l},99215:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(96790),i=n(82745),o=n(10505),a=n(95053),s=n(29401),l=n(92810),c=n(22587);const u=!1,p=l.createContext(null);var d=function(e){return e.scrollTop},f="unmounted",h="exited",m="entering",g="entered",v="exiting",y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=h,r.appearStatus=m):i=g:i=t.unmountOnExit||t.mountOnEnter?f:h,r.state={status:i},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:h}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==g&&(t=m):n!==m&&n!==g||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===m){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===h&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[c.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||u?this.safeSetState({status:g},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:m},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:g},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.findDOMNode(this);t&&!u?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:h},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:h},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(p.Provider,{value:null},"function"===typeof n?n(e,r):l.cloneElement(l.Children.only(n),r))},t}(l.Component);function b(){}y.contextType=p,y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},y.UNMOUNTED=f,y.EXITED=h,y.ENTERING=m,y.ENTERED=g,y.EXITING=v;const x=y;var k=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,s.A)(e,t)}))},E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,a.A)(e,t)}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&k(e,r),i&&k(e,i),o&&k(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.A)(e,["classNames"]));return l.createElement(x,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.Component);E.defaultProps={classNames:""},E.propTypes={};const C=E},98634:(e,t,n)=>{"use strict";var r=n(92810),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 3920.9bc9bb1d.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[3920],{95689:(e,t,r)=>{r.d(t,{A:()=>n});const n=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}},10351:(e,t,r)=>{r.d(t,{A:()=>o});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const o=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},23093:(e,t,r)=>{r.d(t,{A:()=>n});const n={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},81158:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{bZ:()=>read});var js_base64__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(62813),text_encoding__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(18830),text_encoding__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(text_encoding__WEBPACK_IMPORTED_MODULE_1__),encode=function(e,t){return void 0===t&&(t="utf-8"),new text_encoding__WEBPACK_IMPORTED_MODULE_1__.TextEncoder(t).encode(e)},arr2str=function(e){for(var t=[],r=0;r<e.length;r+=32768)t.push(String.fromCharCode.apply(null,e.subarray(r,r+32768)));return t.join("")};function decode(e,t){void 0===t&&(t="utf-8");for(var r=0,n=[{charset:normalizeCharset(t),fatal:!1},{charset:"utf-8",fatal:!0},{charset:"iso-8859-15",fatal:!1}];r<n.length;r++){var o=n[r],a=o.charset,i=o.fatal;try{return new text_encoding__WEBPACK_IMPORTED_MODULE_1__.TextDecoder(a,{fatal:i}).decode(e)}catch(s){}}return arr2str(e)}var convert=function(e,t){return encode("string"===typeof e?e:decode(e,t))};function normalizeCharset(e){var t;return void 0===e&&(e="utf-8"),(t=e.match(/^utf[-_]?(\d+)$/i))?"UTF-"+t[1]:(t=e.match(/^win[-_]?(\d+)$/i))?"WINDOWS-"+t[1]:(t=e.match(/^latin[-_]?(\d+)$/i))?"ISO-8859-"+t[1]:e}function getCharsetName(e){return e.toLowerCase().replace(/[^0-9a-z]/g,"")}function guid(){return"xxxxxxxxxxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})).replace("-","")}function wrap(e,t){var r=[];do{r.push(e.substring(0,t))}while(""!=(e=e.substring(t,e.length)));return r.join("\r\n")}function mimeDecode(e,t){void 0===e&&(e=""),void 0===t&&(t="UTF-8");for(var r=(e.match(/=[\da-fA-F]{2}/g)||[]).length,n=new Uint8Array(e.length-2*r),o=0,a=e.length,i=0;o<a;o++){var s=e.substr(o+1,2),l=e.charAt(o);"="===l&&s&&/[\da-fA-F]{2}/.test(s)?(n[i++]=parseInt(s,16),o+=2):n[i++]=l.charCodeAt(0)}return decode(n,t)}var GB2312UTF8={Dig2Dec:function(s){var retV=0;if(4==s.length){for(var i=0;i<4;i++)retV+=eval(s.charAt(i))*Math.pow(2,3-i);return retV}return-1},Hex2Utf8:function(s){var retS="",tempS="",ss="";if(16==s.length){tempS="1110"+s.substring(0,4),tempS+="10"+s.substring(4,10),tempS+="10"+s.substring(10,16);for(var sss="0123456789ABCDEF",i=0;i<3;i++)retS+="%",ss=tempS.substring(8*i,8*(eval(i.toString())+1)),retS+=sss.charAt(this.Dig2Dec(ss.substring(0,4))),retS+=sss.charAt(this.Dig2Dec(ss.substring(4,8)));return retS}return""},Dec2Dig:function(e){for(var t="",r=0,n=0;n<4;n++)e>=(r=Math.pow(2,3-n))?(t+="1",e-=r):t+="0";return t},Str2Hex:function(s){for(var c="",n,ss="0123456789ABCDEF",digS="",i=0;i<s.length;i++)c=s.charAt(i),n=ss.indexOf(c),digS+=this.Dec2Dig(eval(n.toString()));return digS},GB2312ToUTF8:function(e){var t=escape(e).split("%"),r="";""!=t[0]&&(r=t[0]);for(var n=1;n<t.length;n++)"u"==t[n].substring(0,1)?(r+=this.Hex2Utf8(this.Str2Hex(t[n].substring(1,5))),t[n].length&&(r+=t[n].substring(5))):(r+=unescape("%"+t[n]),t[n].length&&(r+=t[n].substring(5)));return r},UTF8ToGB2312:function(e){var t="",r="",n="",o="",a=-1;if(-1==(a=e.indexOf("%")))return e;for(;-1!=a;){if(a<3)if(t+=e.substr(0,a-1),r=(e=e.substr(a+1,e.length-a)).substr(0,2),e=e.substr(2,e.length-2),0===(128&parseInt("0x"+r)))t+=String.fromCharCode(parseInt("0x"+r));else if(192===(224&parseInt("0x"+r))){n=e.substr(1,2),e=e.substr(3,e.length-3);var i=(31&parseInt("0x"+r))<<6;i|=63&parseInt("0x"+n),t+=String.fromCharCode(i)}else{n=e.substr(1,2),o=(e=e.substr(3,e.length-3)).substr(1,2),e=e.substr(3,e.length-3);i=(15&parseInt("0x"+r))<<12;i|=(63&parseInt("0x"+n))<<6,i|=63&parseInt("0x"+o),t+=String.fromCharCode(i)}else t+=e.substring(0,a),e=e.substring(a);a=e.indexOf("%")}return t+e}},verbose=!1,defaultCharset="utf-8";function createBoundary(){return"----="+guid()}function toEmailAddress(e){var t="";return"undefined"===typeof e||("string"===typeof e?t=e:"object"===typeof e&&(Array.isArray(e)?t+=e.map((function(e){var t="";return e.name&&(t+='"'+e.name.replace(/^"|"\s*$/g,"")+'" '),e.email&&(t+="<"+e.email+">"),t})).filter((function(e){return e})).join(", "):e&&(e.name&&(t+='"'+e.name.replace(/^"|"\s*$/g,"")+'" '),e.email&&(t+="<"+e.email+">")))),t}function getBoundary(e){var t=/boundary="?(.+?)"?(\s*;[\s\S]*)?$/g.exec(e);return t?t[1]:void 0}function getCharset(e){var t=/charset\s*=\W*([\w\-]+)/g.exec(e);return t?t[1]:void 0}function getEmailAddress(e){var t=[],r=e.match(/('[^']*')|[^,]+/g);if(!r)return t;for(var n=0;n<r.length;n++){var o={name:"",email:""},a=unquoteString(r[n]);/^'.*'$/g.test(a)&&(o.name=a.replace(/'/g,"").trim(),n++);var i=/^(.*?)(\s*\<(.*?)\>)$/g.exec(a);if(i){var s=i[1].replace(/'/g,"").trim();s&&s.length&&(o.name=s),o.email=i[3].trim(),t.push(o)}else o.email=a.trim(),t.push(o)}return 0===t.length?null:1===t.length?t[0]:t}function decodeJoint(e){var t=/=\?([^?]+)\?(B|Q)\?(.+?)(\?=)/gi.exec(e);if(t){var r=getCharsetName(t[1]||defaultCharset),n=t[2].toUpperCase(),o=t[3];if("B"===n)return"utf8"===r?decode(encode(js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.fromBase64(o.replace(/\r?\n/g,""))),"utf8"):decode(js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.toUint8Array(o.replace(/\r?\n/g,"")),r);if("Q"===n)return unquotePrintable(o,r,!0)}return e}function unquoteString(e){var t=e||"",r=t.match(/=\?([^?]+)\?(B|Q)\?(.+?)(\?=)/gi);return r&&r.forEach((function(e){t=t.replace(e,decodeJoint(e))})),t.replace(/\r?\n/g,"")}function unquotePrintable(e,t,r){void 0===r&&(r=!1);var n=e.replace(/[\t ]+$/gm,"").replace(/=(?:\r?\n|$)/g,"");return r&&(n=n.replace(/_/g,decode(new Uint8Array([32]),t))),mimeDecode(n,t)}function parse(e,t,r){var n;"function"===typeof t&&"undefined"===typeof r&&(r=t,t=null),"object"!==typeof t&&(t={headersOnly:!1});var o={};try{if("string"!==typeof e)throw new Error('Argument "eml" expected to be string!');o=parseRecursive(e.split(/\r?\n/),0,o,t)}catch(a){n=a}return r&&r(n,o),n||o||new Error("read EML failed!")}function parseRecursive(e,t,r,n){var o,a,i,s=null,l="",d="",u=!1,c=!1,f=!1,p=!1;function h(e){e.part={},parseRecursive(e.lines,0,e.part,n),delete e.lines}r.headers={};for(var g=t;g<e.length;g++){var y=e[g];if(u){if(!p){r.body=e.splice(g).join("\r\n");break}if(0==y.indexOf("--"+d)&&!/\-\-(\r?\n)?$/g.test(y)){c=!0,s&&s.lines&&h(s),s={boundary:(b=/^\-\-([^\r\n]+)(\r?\n)?$/g.exec(y))[1],lines:[]},r.body.push(s);continue}if(c){if((null===(o=s)||void 0===o?void 0:o.boundary)&&""==e[g-1]&&0==y.indexOf("--"+d+"--")){c=!1,h(s);continue}if((null===(a=s)||void 0===a?void 0:a.boundary)&&0==y.indexOf("--"+d+"--"))continue;null===(i=s)||void 0===i||i.lines.push(y)}}else{if(""==y){if(u=!0,n&&n.headersOnly)break;var m=r.headers["Content-Type"];if(m&&/^multipart\//g.test(m)){var v=getBoundary(m);v&&v.length&&(d=v,p=!0,r.body=[])}continue}var b;if(b=/^\s+([^\r\n]+)/g.exec(y)){f?r.headers[l][r.headers[l].length-1]+="\r\n"+b[1]:r.headers[l]+="\r\n"+b[1];continue}if(b=/^([\w\d\-]+):\s*([^\r\n]*)/gi.exec(y)){l=b[1],r.headers[l]?(f=!0,"string"==typeof r.headers[l]&&(r.headers[l]=[r.headers[l]]),r.headers[l].push(b[2])):(f=!1,r.headers[l]=b[2]);continue}}}return r.body&&r.body.length&&r.body[r.body.length-1].lines&&h(r.body[r.body.length-1]),r}function completeBoundary(e){if(!e||!e.boundary)return null;for(var t,r=e.lines||[],n={boundary:e.boundary,part:{headers:{}}},o="",a=!1,i=0;i<r.length;i++){var s=r[i];if(a){u=/^\-\-([^\r\n]+)(\r?\n)?$/g.exec(s);var l=getBoundary(n.part.headers["Content-Type"]||n.part.headers["Content-type"]);if(u&&0===s.indexOf("--"+l)&&!t){t={boundary:u?u[1]:"",lines:[]};continue}if(!t||!t.boundary){n.part.body=r.splice(i).join("\r\n");break}if(""===r[i-1]&&0===s.indexOf("--"+t.boundary)){var d=completeBoundary(t);if(d?Array.isArray(n.part.body)?n.part.body.push(d):n.part.body=[d]:n.part.body=t.lines.join("\r\n"),r[i+1]){t.lines=[];continue}if(0===s.indexOf("--"+t.boundary+"--")&&""===r[i+1]){t=void 0;break}}t.lines.push(s)}else{if(""===s){a=!0;continue}var u;if(u=/^([\w\d\-]+):\s*([^\r\n]*)/gi.exec(s)){o=u[1],n.part.headers[o]=u[2];continue}var c=/^\s+([^\r\n]+)/g.exec(s);if(c){n.part.headers[o]+="\r\n"+c[1];continue}}}return n}function build(e,t,r){var n;"function"===typeof t&&"undefined"===typeof r&&(r=t,t=null);var o="",a="\r\n";try{if(!e)throw new Error('Argument "data" expected to be an object! or string');if("string"===typeof e){var i=read(e);if("string"===typeof i)throw new Error(i);if(i instanceof Error)throw i;e=i}if(!e.headers)throw new Error('Argument "data" expected to be has headers');"string"===typeof e.subject&&(e.headers.Subject=e.subject),"undefined"!==typeof e.from&&(e.headers.From=toEmailAddress(e.from)),"undefined"!==typeof e.to&&(e.headers.To=toEmailAddress(e.to)),"undefined"!==typeof e.cc&&(e.headers.Cc=toEmailAddress(e.cc));var s=getBoundary(e.headers["Content-Type"]||e.headers["Content-type"]||""),l=!1,d=createBoundary(),u="";e.multipartAlternative&&(u=""+(getBoundary(e.multipartAlternative["Content-Type"])||""),l=!0),s?(d=s,l=!0):e.headers["Content-Type"]=e.headers["Content-type"]||'multipart/mixed;\r\nboundary="'+d+'"';for(var c=Object.keys(e.headers),f=0;f<c.length;f++){var p=c[f],h=e.headers[p];if("undefined"!==typeof h)if("string"===typeof h)o+=p+": "+h.replace(/\r?\n/g,"\r\n ")+a;else for(var g=0;g<h.length;g++)o+=p+": "+h[g].replace(/\r?\n/g,"\r\n ")+a}if(e.multipartAlternative&&(o+=a,o+="--"+s+a,o+="Content-Type: "+e.multipartAlternative["Content-Type"].replace(/\r?\n/g,"\r\n ")+a),o+=a,e.text){if("object"===typeof t&&t&&t.encode&&e.textheaders)for(var p in o+="--"+d+a,e.textheaders)e.textheaders.hasOwnProperty(p)&&(o+=p+": "+e.textheaders[p].replace(/\r?\n/g,"\r\n "));else l&&(o+="--"+(u||d)+a,o+='Content-Type: text/plain; charset="utf-8"\r\n');o+=a+e.text,o+=a}if(e.html){if("object"===typeof t&&t&&t.encode&&e.textheaders)for(var p in o+="--"+d+a,e.textheaders)e.textheaders.hasOwnProperty(p)&&(o+=p+": "+e.textheaders[p].replace(/\r?\n/g,"\r\n "));else l&&(o+="--"+(u||d)+a,o+='Content-Type: text/html; charset="utf-8"\r\n');verbose&&console.info("line 765 "+l+", emlBoundary: "+s+", multipartBoundary: "+u+", boundary: "+d),o+=a+e.html,o+=a}if(e.attachments)for(f=0;f<e.attachments.length;f++){var y=e.attachments[f];if(o+="--"+d+a,o+="Content-Type: "+(y.contentType.replace(/\r?\n/g,"\r\n ")||"application/octet-stream")+a,o+="Content-Transfer-Encoding: base64\r\n",o+="Content-Disposition: "+(y.inline?"inline":"attachment")+'; filename="'+(y.filename||y.name||"attachment_"+(f+1))+'"'+a,y.cid&&(o+="Content-ID: <"+y.cid+">"+a),o+=a,"string"===typeof y.data)o+=wrap(js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.toBase64(y.data),72)+a;else o+=wrap(decode(y.data),72)+a;o+=a}l&&(o+="--"+d+"--"+a)}catch(m){n=m}return r&&r(n,o),n||o}function read(e,t,r){var n,o;function a(e,t,r){var o=e["Content-Type"]||e["Content-type"],a=getCharsetName(getCharset(o)||defaultCharset),i=e["Content-Transfer-Encoding"]||e["Content-transfer-encoding"];if("string"===typeof i&&(i=i.toLowerCase()),"base64"===i?t=o&&o.indexOf("gbk")>=0?encode(GB2312UTF8.GB2312ToUTF8(t.replace(/\r?\n/g,""))):encode(t.replace(/\r?\n/g,"")):"quoted-printable"===i?t=unquotePrintable(t,a):i&&"utf8"!==a&&0===i.search(/binary|8bit/)&&(t=decode(t,a)),!r.html&&o&&o.indexOf("text/html")>=0){"string"!==typeof t&&(t=decode(t,a)),r.html=t.replace(/\r\n|(&quot;)/g,"").replace(/\"/g,'"');try{"base64"===i?r.html=js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.decode(r.html):js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.btoa(js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.atob(r.html))==r.html&&(r.html=js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.atob(r.html))}catch(n){console.error(n)}r.htmlheaders={"Content-Type":o,"Content-Transfer-Encoding":i||""}}else if(!r.text&&o&&o.indexOf("text/plain")>=0)"string"!==typeof t&&(t=decode(t,a)),"base64"===i&&(t=js_base64__WEBPACK_IMPORTED_MODULE_0__.o4.decode(t)),r.text=t,r.textheaders={"Content-Type":o,"Content-Transfer-Encoding":i||""};else{r.attachments||(r.attachments=[]);var s={},l=e["Content-ID"]||e["Content-Id"];l&&(s.id=l);for(var d=void 0,u=0,c=["Content-Disposition","Content-Type","Content-type"];u<c.length;u++){var f=e[c[u]];if(f&&(d=f.replace(/(\s|'|utf-8|\*[0-9]\*)/g,"").split(";").map((function(e){return/name[\*]?="?(.+?)"?$/gi.exec(e)})).reduce((function(e,t){return t&&t[1]&&(e+=t[1]),e}),"")))break}d&&(s.name=decodeURI(d));var p=e["Content-Type"]||e["Content-type"];p&&(s.contentType=p);var h=e["Content-Disposition"];h&&(s.inline=/^\s*inline/g.test(h)),s.data=t,s.data64=decode(t,a),r.attachments.push(s)}}function i(e){if(!e)return"no data";try{var t={};if(!e.headers)throw new Error("data does't has headers");e.headers.Date&&(t.date=new Date(e.headers.Date)),e.headers.Subject&&(t.subject=unquoteString(e.headers.Subject)),e.headers.From&&(t.from=getEmailAddress(e.headers.From)),e.headers.To&&(t.to=getEmailAddress(e.headers.To)),e.headers.CC&&(t.cc=getEmailAddress(e.headers.CC)),e.headers.Cc&&(t.cc=getEmailAddress(e.headers.Cc)),t.headers=e.headers;var r=null,n=e.headers["Content-Type"]||e.headers["Content-type"];if(n&&/^multipart\//g.test(n)){var o=getBoundary(n);o&&o.length&&(r=o)}if(r&&Array.isArray(e.body))for(var i=0;i<e.body.length;i++){var s=e.body[i];if(s)if("undefined"===typeof s.part)verbose&&console.warn("Warning: undefined b.part");else if("string"===typeof s.part)t.data=s.part;else if("undefined"===typeof s.part.body)verbose&&console.warn("Warning: undefined b.part.body");else if("string"===typeof s.part.body)a(s.part.headers,s.part.body,t);else{var l=s.part.headers,d=l["Content-Type"]||l["Content-type"];verbose&&console.log("line 969 currentHeadersContentType: "+d),d&&d.indexOf("multipart")>=0&&!t.multipartAlternative&&(t.multipartAlternative={"Content-Type":d});for(var u=0;u<s.part.body.length;u++){var c=s.part.body[u];if("string"!==typeof c){var f=c.part.headers,p=c.part.body;Array.isArray(p)?p.forEach((function(e){a(e.part.headers,e.part.body,t)})):a(f,p,t)}else t.data=c}}}else"string"===typeof e.body&&a(e.headers,e.body,t);return t}catch(h){return h}}if("function"===typeof t&&"undefined"===typeof r&&(r=t,t=null),"string"===typeof e){var s=parse(e,t);if("string"===typeof s||s instanceof Error)n=s;else"string"===typeof(l=i(s))||l instanceof Error?n=l:o=l}else if("object"===typeof e){var l;"string"===typeof(l=i(e))||l instanceof Error?n=l:o=l}else n=new Error("Missing EML file content!");return r&&r(n,o),n||o||new Error("read EML failed!")}},78117:(e,t,r)=>{var n=r(33825).Buffer,o=r(97107);function a(e){return(e||"").toString().trim().replace(/^latin[\-_]?(\d+)$/i,"ISO-8859-$1").replace(/^win(?:dows)?[\-_]?(\d+)$/i,"WINDOWS-$1").replace(/^utf[\-_]?(\d+)$/i,"UTF-$1").replace(/^ks_c_5601\-1987$/i,"CP949").replace(/^us[\-_]?ascii$/i,"ASCII").toUpperCase()}e.exports.convert=function(e,t,r){var i;r=a(r||"UTF-8"),t=a(t||"UTF-8"),e=e||"","UTF-8"!==r&&"string"===typeof e&&(e=n.from(e,"binary"));if(r===t)i="string"===typeof e?n.from(e):e;else try{i=function(e,t,r){return"UTF-8"===t?o.decode(e,r):"UTF-8"===r?o.encode(e,t):o.encode(o.decode(e,r),t)}(e,t,r)}catch(s){console.error(s),i=e}"string"===typeof i&&(i=n.from(i,"utf-8"));return i}},43121:(e,t,r)=>{var n=r(58339)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(o){n=!1}e.exports=n},95687:e=>{e.exports=EvalError},86837:e=>{e.exports=Error},52608:e=>{e.exports=RangeError},66884:e=>{e.exports=ReferenceError},56114:e=>{e.exports=SyntaxError},26681:e=>{e.exports=TypeError},60447:e=>{e.exports=URIError},55400:()=>{String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return"[object regexp]"===Object.prototype.toString.call(e).toLowerCase()?this.replace(e,t):this.replace(new RegExp(e,"g"),t)})},95102:(e,t,r)=>{r.d(t,{y:()=>n});const n=(o=globalThis,a={},new Proxy(o,{get:(e,t,r)=>t in a?a[t]:o[t],set:(e,t,r)=>(t in a&&delete a[t],o[t]=r,!0),deleteProperty(e,t){let r=!1;return t in a&&(delete a[t],r=!0),t in o&&(delete o[t],r=!0),r},ownKeys(e){const t=Reflect.ownKeys(o),r=Reflect.ownKeys(a),n=new Set(r);return[...t.filter((e=>!n.has(e))),...r]},defineProperty:(e,t,r)=>(t in a&&delete a[t],Reflect.defineProperty(o,t,r),!0),getOwnPropertyDescriptor:(e,t)=>t in a?Reflect.getOwnPropertyDescriptor(a,t):Reflect.getOwnPropertyDescriptor(o,t),has:(e,t)=>t in a||t in o}));var o,a},24166:(e,t,r)=>{r(53150)},55972:(e,t,r)=>{r(53150),r(96459)},16007:(e,t,r)=>{r(96459)},96459:(e,t,r)=>{r.d(t,{T:()=>a});var n=r(53150),o=r(74961);function a(e){return(0,n.XI)((function*(t,r){try{if("function"===typeof e){let r=e;t(yield*i(r()))}else t(yield*i(e))}catch(n){r(n)}}))}function i(e){if((n=e)&&l(n.then))return r=e,(0,o.v)(((e,t)=>(r.then(e,t),()=>{})));if((t=e)&&"function"===typeof t[Symbol.iterator]){return function(e){return!!e&&(l(e.next)&&l(e.throw))}(e[Symbol.iterator]())?e:s(e)}return s(e);var t,r,n}function s(e){return{[Symbol.iterator]:()=>({next:()=>({done:!0,value:e})})}}function l(e){return"function"===typeof e}},25596:(e,t,r)=>{r(73911),r(61362)},81092:(e,t,r)=>{r.d(t,{q:()=>a});var n=r(21449),o=r(9001);function a(e,t){let r=(0,n.v)("Context",{key:e},{defaultValue:t,*get(){return(yield*(0,o.g)()).get(r)},*set(e){return(yield*(0,o.g)()).set(r,e)},*[Symbol.iterator](){let t=yield*r.get();if("undefined"===typeof t)throw new i(`missing required context: '${e}'`);return t}});return r}class i extends Error{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MissingContextError"})}}},72873:(e,t,r)=>{r.d(t,{_3:()=>l,cL:()=>i,BN:()=>s});var n=r(95102);const{Deno:o}=n.y;"boolean"!==typeof o?.noColor||o.noColor;new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");var a;!function(e){e.removed="removed",e.common="common",e.added="added"}(a||(a={}));Error;function*i(e){return yield{type:"reset",block:e}}function*s(e){return yield{type:"shift",block:e}}function l(e){let t=function(){let e=[];return{reducing:!1,push:(...t)=>e.push(...t),pop:()=>e.pop()}}();return t.push({method:"next",iterator:e()[Symbol.iterator]()}),d(t)}function d(e){try{e.reducing=!0;for(let r=e.pop();r;r=e.pop())try{let t=u(r);if(e.value=t.value,!t.done){let n=t.value;if("reset"===n.type)e.push({...r,method:"next",get value(){return e.value}},{method:"next",iterator:n.block()[Symbol.iterator]()});else{let t=r,o=c((r=>(e.push({method:"next",iterator:t.iterator,value:r}),d(e))));o.tail=c((r=>{e.push({method:"next",iterator:t.iterator,value:r}),e.reducing||d(e)}));let a=c((r=>(e.push({method:"throw",iterator:t.iterator,value:r}),d(e))));a.tail=c((r=>{e.push({method:"throw",iterator:t.iterator,value:r}),e.reducing||d(e)})),e.push({method:"next",iterator:n.block(o,a)[Symbol.iterator](),value:void 0})}}}catch(t){let r=e.pop();if(!r)throw t;e.push({...r,method:"throw",value:t})}}finally{e.reducing=!1}return e.value}function u(e){let{iterator:t}=e;if("next"===e.method)return t.next(e.value);{let r=e.value;if(t.throw)return t.throw(r);throw r}}function c(e){let t,r,n=!1;return o=>{if(n){if(t)throw t.error;return r}n=!0;try{return r=e(o)}catch(a){throw t={error:a},a}}}},95998:(e,t,r)=>{(0,r(81092).q)("each")},20445:(e,t,r)=>{r(53150)},81622:(e,t,r)=>{r(73911),r(53150)},53150:(e,t,r)=>{r.d(t,{DY:()=>i,XI:()=>l,u4:()=>d});var n=r(72873),o=r(21119),a=r(70766);function i(){return u(s)}function s(e){return(0,o.a)((t=>{e.aborted&&t.tail((0,a.Ok)(void 0))}))}function l(e){return u((function(t){return(0,n.BN)((function*(r){let s=yield*(0,n.cL)((function*(){let e=yield*(0,o.a)((e=>e.tail)),t=yield*u.destroy();t.ok?r.tail(e):r.tail(t)})),l=e=>s((0,a.Ok)(e)),d=e=>s((0,a._)(e)),u=t.createChild((function*(){yield*e(l,d),yield*i()}));yield*(0,n.cL)((function*(){let e=yield*u;e.ok||r.tail(e)})),u.enter()}))}))}function d(){return u((e=>(0,o.a)((t=>t.tail((0,a.Ok)(e))))))}function u(e){return{[Symbol.iterator](){let t=!1;return{next:r=>t?{done:!0,value:r}:(t=!0,{done:!1,value:e}),throw(e){throw e}}}}}},61362:(e,t,r)=>{r(72873)},97610:(e,t,r)=>{r(95102);var n=r(81092);r(53150),r(34994),r(29876);(0,n.q)("exit")},74961:(e,t,r)=>{r.d(t,{v:()=>a});var n=r(70766),o=r(72873);function*a(e){let t=()=>{};try{return yield function(){return(0,o.BN)((function*(r){t=e((e=>r.tail((0,n.Ok)(e))),(e=>r.tail((0,n._)(e))))}))}}finally{t&&t()}}},7624:(e,t,r)=>{r.d(t,{y:()=>o});var n=r(74961);function o(){let e=[],t=new Set;function r(r){for(e.unshift(r);e.length>0&&t.size>0;){let[r]=t;r(e.pop())}}return{add:e=>r({done:!1,value:e}),close:e=>r({done:!0,value:e}),*next(){let r=e.pop();return r||(yield*(0,n.v)((e=>(t.add(e),()=>t.delete(e)))))}}}},84130:(e,t,r)=>{r(53150)},70766:(e,t,r)=>{r.d(t,{Ok:()=>n,_:()=>o});const n=e=>({ok:!0,value:e}),o=e=>({ok:!1,error:e})},34994:(e,t,r)=>{r.d(t,{eF:()=>o});var n=r(6976);r(9001);function o(e){let t=(0,n.C)({operation:e});return t.enter(),t.getTask()}},21449:(e,t,r)=>{function n(e,t,r){let n={};for(let[o,a]of Object.entries(t))n[o]={enumerable:!0,value:a};return Object.create({...r,[Symbol.toStringTag]:e},n)}r.d(t,{v:()=>n})},6976:(e,t,r)=>{r.d(t,{C:()=>u});var n=r(72873),o=r(21119);var a=r(70766),i=r(65608),s=r(92996),l=r(21449);let d=0;function u(e){return(0,n._3)((function*(){let t,{operation:r,parent:h}=e,g=new Set,y=Object.create(h??{}),m=[{done:!1,value:c(void 0)}],v=()=>{},[b,x]=yield*(0,i.k)(),_=yield*(0,o.a)((e=>{let r=(0,l.v)("Frame",{id:d++,context:y},{createChild(e){let t=u({operation:e,parent:r.context});return g.add(t),(0,n._3)((function*(){yield*t,g.delete(t)})),t},getTask(){let e=(0,s.U)(r);return r.getTask=()=>e,e},enter(){e.tail(r)},crash:e=>(o(e),x),destroy:()=>(o(),x),[Symbol.iterator]:x[Symbol.iterator]}),o=e=>{r.aborted||(r.aborted=!0,t=e,m.unshift({done:!1,value:p()}),v())};return r})),C=function(e){let t=()=>{let r=e();return t=()=>r,r};return()=>t()}((()=>r()[Symbol.iterator]())),k=m.pop();for(;!k.done;){let e=k.value;try{let t=e(C());if(t.done)m.unshift({done:!0,value:(0,a.Ok)(t.value)});else{let e=t.value,r=yield*(0,n.BN)((function*(t){v=()=>t.tail({type:"interrupted"});try{t.tail({type:"settled",result:yield*e(_)})}catch(r){t.tail({type:"settled",result:(0,a._)(r)})}}));"settled"===r.type&&(r.result.ok?m.unshift({done:!1,value:c(r.result.value)}):m.unshift({done:!1,value:f(r.result.error)}))}}catch(S){m.unshift({done:!0,value:(0,a._)(S)})}k=m.pop()}_.exited=!0;let w,E=k.value;w=E.ok?t?{type:"crashed",error:t}:_.aborted?{type:"aborted"}:{type:"result",result:E}:{type:"result",result:E};let T=(0,a.Ok)(void 0);for(;0!==g.size;)for(let e of[...g].reverse()){let t=yield*e.destroy();t.ok||(T=t)}if(T.ok)if("aborted"===w.type)b({ok:!0,value:void 0,exit:w,destruction:T});else if("result"===w.type){let{result:e}=w;e.ok?b({ok:!0,value:void 0,exit:w,destruction:T}):b({ok:!1,error:e.error,exit:w,destruction:T})}else b({ok:!1,error:w.error,exit:w,destruction:T});else b({ok:!1,error:T.error,exit:w,destruction:T})}))}const c=e=>function(t){return t.next(e)},f=e=>function(t){if(t.throw)return t.throw(e);throw e},p=e=>function(t){return t.return?t.return(e):{done:!0,value:e}}},9001:(e,t,r)=>{r.d(t,{g:()=>s});var n=r(72873),o=r(21449),a=r(6976),i=r(53150);function*s(){let e=yield*(0,i.u4)(),[t]=function(e){let t=e??(0,a.C)({operation:i.DY}),r=(0,o.v)("Scope",{},{run(e){if(t.exited){let e=new Error("cannot call run() on a scope that has already been exited");throw e.name="InactiveScopeError",e}let r=t.createChild(e);return r.enter(),(0,n._3)((function*(){let e=yield*r;e.ok||(yield*t.crash(e.error))})),r.getTask()},get(e){let{key:r,defaultValue:n}=e;return t.context[r]??n},set(e,r){let{key:n}=e;return t.context[n]=r,r}});return t.enter(),[r,t.getTask().halt]}(e);return t}},21119:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(72873);function o(e){return(0,n.BN)(((t,r)=>({[Symbol.iterator]:()=>({next:()=>({done:!0,value:e(t,r)})})})))}},73911:(e,t,r)=>{var n=r(7624);r(53150);(0,r(81092).q)("Signal.createQueue",n.y)},92132:(e,t,r)=>{r(53150)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[5552],{28316:(e,t,i)=>{i.d(t,{Kp:()=>s,Sb:()=>o,_1:()=>n});const s="SAVE",n="SHOW",o="NOTIFY"},85163:(e,t,i)=>{i.d(t,{A9:()=>c,BD:()=>de,Bv:()=>w,CJ:()=>u,EW:()=>r,F3:()=>E,F5:()=>n,G$:()=>X,IE:()=>Z,IJ:()=>h,JE:()=>Y,Jy:()=>U,KI:()=>te,N7:()=>x,ND:()=>ae,QV:()=>_e,Qz:()=>z,Ru:()=>O,St:()=>F,T:()=>p,Tm:()=>$,UW:()=>d,Ug:()=>le,V0:()=>l,VG:()=>A,Vp:()=>oe,Vv:()=>L,WU:()=>N,Y$:()=>q,YY:()=>ce,aO:()=>W,bV:()=>D,e3:()=>pe,eA:()=>Q,eG:()=>ee,ff:()=>o,gY:()=>V,hc:()=>B,iU:()=>se,iV:()=>G,iW:()=>M,jg:()=>ue,lx:()=>v,m3:()=>K,mX:()=>S,nA:()=>j,nd:()=>m,oy:()=>a,p5:()=>ie,pe:()=>k,rW:()=>T,rY:()=>R,rb:()=>b,rl:()=>J,vd:()=>g,wF:()=>ne,xz:()=>I,y2:()=>_,yI:()=>y,yo:()=>H,yy:()=>C,zh:()=>re,zx:()=>P});var s=i(19378);const n="LOADING",o="ERROR",a="useblocks",r={isPlugin:!1},c={em_token:"em_token",em_elements_view:"em_elements_view",em_new_block:"em_new_block",em_new_email:"em_new_email",em_id:"em_id",em_name:"em_name",em_email:"em_email",em_locale:"em_locale",em_carrotquest_hash:"em_carrotquest_hash",em_ducalis_hash:"em_ducalis_hash",em_email_subscription_consent:"em_email_subscription_consent",em_folder:"em_folder",promocode:"promocode"},l={em_color_scheme:"em_color_scheme",em_code_mode_pane_sizes:"em_code_mode_pane_sizes",em_preview_pane_sizes:"em_preview_pane_sizes",em_default_sizes:"em_default_sizes",em_pane_sizes:"em_pane_sizes",em_test_emails:"em_test_emails",em_menu_is_locked:"em_menu_is_locked",em_code_mode_settings:"em_code_mode_settings",em_folder_is_open:"em_folder_is_open"},d="deleted",_="all",u="not all",p="light",m="dark",h="system",g="(prefers-color-scheme: light)",E="(prefers-color-scheme: dark)",A="#1890ff",v={ADD_NEW_PROJECT_MODAL:"ADD_NEW_PROJECT_MODAL",EDIT_PROJECT_MODAL:"EDIT_PROJECT_MODAL",BLOCKS_MODAL:"BLOCKS_MODAL",EDIT_PROFILE_MODAL:"EDIT_PROFILE_MODAL",SEND_TEST_EMAIL:"SEND_TEST_EMAIL",ADD_NEW_EBLOCK_MODAL:"ADD_NEW_EBLOCK_MODAL",ADD_NEW_EMAIL_MODAL:"ADD_NEW_EMAIL_MODAL",SWITCH_TO_PLAN_MODAL:"SWITCH_TO_PLAN_MODAL",IMAGE_EDITOR_MODAL:"IMAGE_EDITOR_MODAL",ADD_NEW_FOLDER_MODAL:"ADD_NEW_FOLDER_MODAL",EDIT_FOLDER_NAME_MODAL:"EDIT_FOLDER_NAME_MODAL",UPLOAD_IMAGE_MODAL:"UPLOAD_IMAGE_MODAL",UPLOAD_BACKGROUND_MODAL:"UPLOAD_BACKGROUND_MODAL",UPLOAD_IMAGE_MODAL_AI:"UPLOAD_IMAGE_MODAL_AI",UPLOAD_BACKGROUND_MODAL_AI:"UPLOAD_BACKGROUND_MODAL_AI",UPLOAD_IMAGE_MODAL_STOCK:"UPLOAD_IMAGE_MODAL_STOCK",UPLOAD_BACKGROUND_MODAL_STOCK:"UPLOAD_BACKGROUND_MODAL_STOCK",UPLOAD_IMAGE_MODAL_GIF:"UPLOAD_IMAGE_MODAL_GIF",UPLOAD_BACKGROUND_MODAL_GIF:"UPLOAD_BACKGROUND_MODAL_GIF",UPLOAD_IMAGE_MODAL_EDIT:"UPLOAD_IMAGE_MODAL_EDIT",UPLOAD_BACKGROUND_MODAL_EDIT:"UPLOAD_BACKGROUND_MODAL_EDIT",UPLOAD_IMAGE_MODAL_UPLOAD:"UPLOAD_IMAGE_MODAL_UPLOAD",UPLOAD_BACKGROUND_MODAL_UPLOAD:"UPLOAD_BACKGROUND_MODAL_UPLOAD"};let f;!function(e){e[e.Amp=0]="Amp",e[e.HTML=1]="HTML",e[e.Everywhere=2]="Everywhere"}(f||(f={}));const O={MESSAGE:"message",UPDATE_PREVIEW:"update_preview",UPDATE_EDITOR:"update_editor",UPDATE_EDITOR_POSITION:"update_editor_position",UPDATE_SIDE_MENU_EDITOR:"update_side_menu_editor",SAVE_EMAIL:"saveEmail",SANDBOX_ELEMENT_SETTINGS_SET:"sandbox_element_settings_set",SANDBOX_EMAIL_SETTINGS_SET:"sandbox_email_settings_set",SANDBOX_BLOCK_SETTINGS_SET:"sandbox_block_settings_set",SANDBOX_ELEMENT_PARENT_GET:"sandbox_element_parent_get",SANDBOX_ELEMENT_PARENT_TABLE_GET:"sandbox_element_parent_table_get",SANDBOX_ELEMENT_PREV_GET:"sandbox_element_prev_get",SANDBOX_ELEMENT_NEXT_GET:"sandbox_element_next_get",SANDBOX_ELEMENT_REMOVE:"sandbox_element_remove",SANDBOX_ELEMENT_ACTIVE_RESET:"sandbox_element_active_reset",SANDBOX_ELEMENT_ACTIVE_SET:"sandbox_element_active_set",SANDBOX_ELEMENT_HOVER_SET:"sandbox_element_hover_set",SANDBOX_ELEMENT_IMG_LINK:"sandbox_element_img_link",SANDBOX_ELEMENT_TEXT:"sandbox_element_text",SANDBOX_EMAIL_CONTENT_GET:"sandbox_email_content_get",SANDBOX_SET_POSITION_TO_IMG:"sandbox_set_position_to_img",SANDBOX_SET_POSITION_TO_LINK:"sandbox_set_position_to_link",SANDBOX_ACCORDION_ADD_SECTION:"sandbox_accordion_add_section",SANDBOX_ACCORDION_REMOVE_SECTION:"sandbox_accordion_remove_section",APPLICATION_FOCUS_IN_IFRAME:"application_focus_in_iframe",APPLICATION_EMAIL_SETTINGS_SET:"application_email_settings_set",APPLICATION_BLOCK_SETTINGS_SET:"application_block_settings_set",APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",APPLICATION_ELEMENT_SETTINGS_CLOSE:"application_element_settings_close",APPLICATION_ACTION:"application_action",APPLICATION_EBLOCK_ADD:"application_eblock_add",APPLICATION_SCROLL_TO:"application_scroll-to",APPLICATION_SCROLL_BLOCK_SHOW:"application_scroll-block-show",APPLICATION_SCROLL_BLOCK_HIDE:"application_scroll-block-hide",APPLICATION_DISCUSS_SET_ID:"application_discuss_set_id",APPLICATION_DISCUSS_GET_COMMENT:"application_discuss_get_comment",APPLICATION_DISCUSS_NO_COMMENT:"application_discuss_no_comment",APPLICATION_DISCUSS_SAVE_TARGET:"application_discuss_save_target",APPLICATION_IFRAME_SET_HEIGHT:"application_iframe_set_height",APPLICATION_COMMON_STYLES_UPDATE:"application_commonStyles_update",APPLICATION_EMAIL_CONTENT_GET:"application_email_content_get",APPLICATION_OPEN_IMAGE_AI_POPUP:"application_open-image-ai-popup",APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:"application_open-image-upload-popup",APPLICATION_OPEN_IMAGE_EDIT_POPUP:"application_open-image-edit-popup",APPLICATION_OPEN_IMAGE_GIF_POPUP:"application_open-image-gif-popup",APPLICATION_OPEN_IMAGE_STOCK_POPUP:"application_open-image-stock-popup",APPLICATION_CLOSE_IMAGE_EDIT_POPUP:"application_close-image-edit-popup",APPLICATION_SUBJECT_UPDATE:(0,s.Qm)("application_subject_update"),APPLICATION_PREHEADER_UPDATE:(0,s.Qm)("application_preheader_update"),APPLICATION_DOMPARSER_ERROR:(0,s.Qm)("application_domparser_error"),APPLICATION_UPDATE_ENTITY:(0,s.Qm)("application_update_entity"),APPLICATION_IFRAME_DRAG_EVENT:(0,s.Qm)("application_iframe_drag_event"),APPLICATION_HAS_AMP:(0,s.Qm)("application_has_amp"),SANDBOX_WINDOW_CHARACTERISTIC:"sandbox_window-characteristic",SANDBOX_IFRAME_SETSIZE:"sandbox_iframe-setsize",SANDBOX_BLOCK_INSERT:"sandbox_block-insert",SANDBOX_ATOM_INSERT:"sandbox_atom-insert",SANDBOX_DRAG_CANCEL:"sandbox_drag-cancel",UPDATE_EDITOR_POSITION_FROM_EDITOR:"update_position_from_editor",UPDATE_EDITOR_POSITION_FROM_IFRAME:"update_position_from_iframe",SANDBOX_CHANGE_PREVIEW:"sandbox_change_preview",APPLICATION_CHANGE_PREVIEW:"application_change_preview",SANDBOX_LOCK_EDIT:"sandbox_lock_edit",SANDBOX_FLOATBLOCK_ADD:"sandbox_floatBlock_add",SANDBOX_FLOATBLOCK_REMOVE:"sandbox_floatBlock_remove",EDITOR_CHANGE_FOCUS:"editor_change_focus",SANDBOX_RESIZED:"sandbox_resized",SANDBOX_LOCK_DISCUSS:"sandbox_lock_discuss",SANDBOX_DISCUSS_SET_TARGET:"sandbox_discuss_set_target",SANDBOX_DISCUSS_REMOVE_TARGET:"sandbox_discuss_remove_target",SANDBOX_DISCUSS_RESET:"sandbox_discuss_reset",SANDBOX_DISCUSS_GET_TARGET:"sandbox_discuss_get_target",SANDBOX_READY:(0,s.Qm)("SANDBOX_READY"),SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_SUBJECT_UPDATE:(0,s.Qm)("sandbox_subject_update"),SANDBOX_PREHEADER_UPDATE:(0,s.Qm)("sandbox_preheader_update"),SANDBOX_DRAG_EVENT:(0,s.Qm)("sandbox_drag_event"),SANDBOX_ADD_MERGETAG:(0,s.Qm)("sandbox_add_mergetag"),SANDBOX_TRANSLATIONS:(0,s.Qm)("sandbox_send_translations"),SANDBOX_SET_THEME_VARIABLES:(0,s.Qm)("sandbox_send_theme_variables"),SANDBOX_SET_ENTITY:(0,s.Qm)("sandbox_set_entity"),SANDBOX_INIT_START:(0,s.Qm)("sandbox_init_start"),SANDBOX_INITED:(0,s.Qm)("sandbox_inited"),SANDBOX_UPDATE_ENTITY:(0,s.Qm)("sandbox_update_entity"),RELOAD:(0,s.Qm)("reload"),SANDBOX_IS_EMAIL_EMPTY:(0,s.Qm)("sandbox_is_email_empty")},T={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2};let D;!function(e){e.IMG="img",e.TEXT="text",e.LINK="a",e.TABLE="table",e.VINDENT="vindent",e.TD="td",e.STRUCTURE="structure",e.GROUP="group",e.BUTTON="button",e.DIV="div",e.FLOAT_BLOCK="floatBlock",e.VAR="var",e.EMPTY_TABLE="emptyTable",e.EMPTY_TD="emptyTd",e.COUNTDOWN="countdown",e.VIDEO="video",e.COLUMN="column",e.CAROUSEL="carousel",e.ACCORDION="accordion"}(D||(D={}));const I="Appearance",S="Structure",C="Settings",y="Properties",L="History",b="Disabled_tab",N="Edit selected element",M="UTM parameters",P="Edit",w="Build",R="Styles",B="Discuss",k="TEXT_AI",j="Blocks",U="Atoms",x="Optimise",G={top:{width:null,style:null,color:null},right:{width:null,style:null,color:null},bottom:{width:null,style:null,color:null},left:{width:null,style:null,color:null}},H="Owner",F="Administrator",K="User",X="The invitation has been sent",V="Assign the project owner",z="Change role to Administrator",W="Change role to User",Q="Remove member",Y="Revoke the invite",Z="block",$="email",q="cards",J="list",ee="pending",te="d41d8",ie=1865,se=127017,ne={borderRadiusAll:"all",borderRadiusTopLeft:"topLeft",borderRadiusBottomLeft:"bottomLeft",borderRadiusTopRight:"topRight",borderRadiusBottomRight:"bottomRight"},oe="desktop",ae="mobile",re="emailtags",ce="blocktags",le="all_folders",de={text:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",lineHeight:21,lineHeightDim:"px",color:"#5a5a5a",textAlign:"left",paddingBottom:10,paddingBottomDim:"px"},headings:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:24,fontSizeDim:"px",lineHeight:32,lineHeightDim:"px",color:"#333333",textAlign:"left",paddingTop:20,paddingTopDim:"px",paddingBottom:10,paddingBottomDim:"px",letterSpacing:0,letterSpacingDim:"px",bold:!0,italic:!1},links:{color:"#1C52DC",underline:!0},buttons:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",letterSpacing:0,letterSpacingDim:"px",color:"#FFFFFF",bold:!1,italic:!1,backgroundColor:"#1C52DC",marginTop:10,marginTopDim:"px",marginBottom:10,marginBottomDim:"px",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:5,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:"center",padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:""}},_e=e=>({REORDER_ATOM:e("Reorder element"),CLONE_ATOM:e("Clone element"),REMOVE_ATOM:e("Remove element"),EDIT_ATOM:e("Edit element"),CHANGE_IMAGE:e("Change image"),REORDER_BLOCK:e("Reorder block"),REORDER_BLOCK_UP:e("Move up"),REORDER_BLOCK_DOWN:e("Move down"),EDIT_BLOCK:e("Edit block"),CLONE_BLOCK:e("Clone block"),MERGE_BLOCK:e("Merge with the chosen block"),UNMERGE_BLOCK:e("Split blocks"),COPY_BLOCK_TO_CLIPBOARD:e("Copy block to clipboard"),PASTE_BLOCK_FROM_CLIPBOARD:e("Paste block from clipboard"),REMOVE_BLOCK:e("Remove block"),SAVE_TO_BLOCKS:e("Save to Blocks"),ADD_BLOCK:e("Add block"),ADD_EMPTY_BLOCK:e("Add an empty block"),ADD_SAVED_BLOCK:e("Add a saved block"),ADD_COMMON_BLOCK:e("Add a common block"),ADD_TEMPLATE_BLOCK:e("Add a template block"),ADD_SEARCH_BLOCK:e("Search a block"),REORDER_GROUP:e("Reorder group"),EDIT_GROUP:e("Edit group"),CLONE_GROUP:e("Clone group"),REMOVE_GROUP:e("Remove group"),ADD_GROUP:e("Add group"),LINK:e("link"),TABLE_COLUMN:e("cell"),TABLE:e("table"),FLOAT_BLOCK:e("column"),CONTAINER:e("container"),PICTURE:e("picture"),CAROUSEL:e("carousel"),ACCORDION:e("accordion"),VERTICAL_INDENT:e("indent"),TEXT:e("text"),BUTTON:e("button"),VAR:e("variable"),STRUCTURE:e("block"),EMAIL:e("email"),GROUP:e("group"),TYPOGRAF:e("Typograf"),COUNTDOWN:e("countdown"),ELEMENT:e("element"),VIDEO:e("video"),ELEMENT_PATH_LINK:e("Link"),ELEMENT_PATH_BLOCK:e("Block"),ELEMENT_PATH_ATOM:e("Element"),ELEMENT_PATH_TD:e("Cell"),ELEMENT_PATH_TABLE:e("Table"),ELEMENT_PATH_FLOATBLOCK:e("Column"),ELEMENT_PATH_TEXT:e("Text"),ELEMENT_PATH_DIV:e("Container"),ELEMENT_PATH_GROUP:e("Group"),ELEMENT_PATH_EMAIL:e("Email"),ELEMENT_PATH_IMG:e("Picture"),ELEMENT_PATH_VINDENT:e("Indent"),ELEMENT_PATH_BUTTON:e("Button"),ELEMENT_PATH_CAROUSEL:e("Carousel"),ELEMENT_PATH_ACCORDION:e("Accordion"),ELEMENT_PATH_SECTION:e("Section"),TINYMCE_CHANGECASE:e("Case Change"),TINYMCE_UPPERCASE:e("Uppercase"),TINYMCE_LOWERCASE:e("Lowercase"),PASTE_HERE:e("Drop here")}),ue={Applications:"Apps",Articles:"Article",Banners:"Banners",Buttons:"Buttons","Call to Action":"Call to Action",Contacts:"Contacts",Content:"Content","E-Commerce":"E-Commerce",Feature:"Features",Footer:"Footers",Header:"Headers",Lists:"Lists",Menu:"Menus",Other:"Others",Polls:"Polls",Promocodes:"Promocodes",Separators:"Separators"},pe={maker:"https://ai-mail.emcdn.ru",blocks:"https://ai-mail.useblocks.io"}},19378:(e,t,i)=>{function s(e){return e}i.d(t,{Qm:()=>s,bg:()=>c});const n="INIT_MESSAGE";function o(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}class a{constructor(){this._children=[],this._isDisposed=!1}isDisposed(){return this._isDisposed}addDisposable(e){return this._children.push(e),e.hasOwnProperty("addDisposable")&&e.addDisposable({dispose:()=>{const t=this._children.indexOf(e);t>=0&&this._children.splice(t,1)}}),e}removeDisposable(e){const t=this._children.indexOf(e);t>=0&&this._children.splice(t,1)}dispose(){this._isDisposed=!0;for(const e of this._children)e.dispose()}}class r extends a{constructor(...e){super(...e),this._listeners=Object.create(null),this.addListenerAsync=(e,t,i=0,s)=>{const n=this._listeners[e]||(this._listeners[e]=[]);s&&"function"===typeof t&&(t=t.bind(s));const o=n.findIndex((([e,t])=>i<=t)),a=[t,i];return this.isDisposed()||n.splice(o>=0?o:n.length,0,a),{dispose(){const e=n.indexOf(a);e>=0&&n.splice(e,1)}}},this.fireAsync=(e,t)=>{if(!this.isDisposed()){const i=this._listeners[e]||(this._listeners[e]=[]);let s;for(let e=0;e<i.length;e++){let t=i[e][0],n=s;s=e=>t(e,n)}if(s)return s(t)}},this.addListener=(e,t,i=0)=>this.addListenerAsync(e,((e,i)=>{try{t(e)}catch(s){console.log(s)}return i&&i(e)}),i)}}class c extends a{constructor(e,t){super(),this._singleton=t,this._target=void 0,this._guid=o(),this._targetGuid="",this._emitter=this.addDisposable(new r),this._onReceiveMessage=e=>{const t=e.data;if(i=t,s=this._guid,i&&"object"===typeof i&&i.guid===s||this._singleton&&function(e,t){return e&&"object"===typeof e&&e.operationId===t}(t,n)){const i=this._emitter.fireAsync(t.operationId||"",void 0===t.operationId?e:t.data),s=t.result,n=t.error;s&&n&&Promise.resolve(i).then((e=>this._sendMessage(s,e)),(e=>this._sendMessage(n,e)))}var i,s},window.addEventListener("message",this._onReceiveMessage),this.addListener(n,(e=>{this._targetGuid!==e&&(this._targetGuid=e,this.send(n,this._guid))})),e&&this.setTarget(e)}setTarget(e){this._target!==e&&(this._target=e,this._targetGuid="",e&&e.postMessage({operationId:n,data:this._guid},"*"))}getTarget(){return this._target}get target(){return this._target}_sendMessage(e,t,i=!0){if(!i&&!this.isInited())return;const s=this.addDisposable(this.onInit(((i,n)=>{const o=e?{operationId:e,data:t}:t;i.postMessage({...o,guid:n},"*"),s.dispose()})))}send(e,t,i){return"string"===typeof e?this._sendMessage(e,t,i):this._sendMessage("",e,t)}sendAsync(e,t,i=!0){if(!i&&!this.isInited())return Promise.resolve();const s=o(),n=o();return new Promise(((i,o)=>{const r=this.addDisposable(new a);r.addDisposable(this.onInit(((a,c)=>{a.postMessage({operationId:e,data:t,guid:c,result:s,error:n},"*"),r.addDisposable(this._onMessage(s,(e=>{i(e),r.dispose()}))),r.addDisposable(this._onMessage(n,(e=>{o(e),r.dispose()})))})))}))}_onMessage(e,t,i=0){return this._emitter.addListener(e,t,i)}addListener(e,t,i){return t?this._onMessage(e,t,i):this._onMessage("",e)}addListenerAsyncPipe(e,t,i=0){return this._emitter.addListenerAsync(e,t,i)}addListenerAsync(e,t,i=0){return this._emitter.addListenerAsync(e,(async(e,i)=>{const s=await t(e);return i?i(e):s}),i)}isInited(){return!!this._targetGuid}get inited(){return!!this._targetGuid}onInit(e,t=!0,i=0){const s=this.addDisposable(new a);return this._targetGuid&&this._target?t&&Promise.resolve().then((()=>{this._targetGuid&&this._target?e(this._target,this._targetGuid):s.addDisposable(this.onInit(e,t,i))})):s.addDisposable(this._onMessage(n,(()=>{e(this._target,this._targetGuid)}),i)),s}dispose(){window.removeEventListener("message",this._onReceiveMessage),super.dispose()}}},13329:(e,t,i)=>{i.d(t,{D3:()=>_,RS:()=>d});var s=i(45934),n=i(92810),o=i(41664),a=i(23397),r=i(23580),c=i(95152);const l=(0,o.Q)();function d(e,t,i){e instanceof c.m||(e=(0,r.My)(e));e.getOrCreateInstance(l,(()=>new a.v)).fire({id:t,payload:i})}const _=(e,t)=>{const i=function(e,t){return(0,r.My)(e).getOrCreateInstance(l,(()=>new a.v)).addEventListener}((0,s.Pj)());(0,n.useEffect)((()=>{const s=i((({id:i,payload:s})=>{i===e&&t(s)}));return()=>s.dispose()}),[i,e,t])}},95152:(e,t,i)=>{i.d(t,{m:()=>a});var s=i(23397),n=i(77509);function o(e){return`service_container_${e}`}class a extends n.j{constructor(e){super(),this._parent=e,this._injections=Object.create(null),this._emitter=this.addDisposable(new s.v)}inject(e,t,i){if("function"===typeof t){let s=this._injections[e],n="function"===typeof s?s():s;const o=this._injections[e]=()=>(n=t(this,n),n);i&&o()}else this._injections[e]=()=>t;this._emitter.fire(e)}_find(e){var t;return this._injections[e]||(null===(t=this._parent)||void 0===t?void 0:t._find(e))}_onInject(e,t,i=new n.j){return i.addDisposable(this._emitter.addEventListener((s=>{e===s&&(i.dispose(),t(this.getInstance(s)))}))),this._parent&&i.addDisposable(this._parent._onInject(e,t,i)),this.addDisposable(i),i}getInstance(e){const t=this._find(e);if("function"===typeof t)return t()}getOrCreateInstance(e,t){const i=this._find(e);if("function"===typeof i)return i();{const i=t(this);return this.inject(e,i),i}}getInstanceAsync(e){const t=this._find(e);return"function"===typeof t?Promise.resolve(t()):new Promise((t=>this._onInject(e,(()=>t(this.getInstance(e))))))}addService(e,t){const i=o(e);this.inject(i,((e,i=[])=>i.indexOf(t)<0?[...i,t]:i));const s=new n.j;return s.addDispose((()=>{this.inject(i,((e,i=[])=>i.filter((e=>e!==t))))})),s}getServices(e){var t;const i=o(e);return[...this.getInstance(i)||[],...(null===(t=this._parent)||void 0===t?void 0:t.getServices(e))||[]]}createChild(){return new a(this)}dispose(){this._injections=Object.create(null)}}},45695:(e,t,i)=>{i.d(t,{K9:()=>u,QC:()=>d,XW:()=>_,ur:()=>l});var s=i(19378),n=i(33288),o=i(45934),a=i(41664),r=i(92810);const c=(0,a.Q)("MESSAGE_SERVICE");function l(){const e=d();return(0,r.useCallback)((t=>{e.setTarget(t instanceof Element?t.contentWindow:t)}),[e])}function d(){const e=(0,o.Pj)();return(0,r.useMemo)((()=>function(e){return n.di.getOrCreateInstance(e,c,(()=>new s.bg))}(e)),[e])}function _(){const e=d();return(0,r.useCallback)((function(t){e.send(t)}),[e])}function u(){const e=d();return(0,r.useCallback)((function(t,i){e.send(t,i)}),[e])}},23397:(e,t,i)=>{i.d(t,{v:()=>n});var s=i(77509);class n extends s.j{constructor(e){super(),this._options=e,this._listeners=[],this.fire=e=>{if(!this.isDisposed()){let t;const i=[...this._listeners];for(const s of i){if(!1===t)return!1;t=t instanceof Promise?t.then((e=>!1!==e&&!this.isDisposed()&&s(e))).catch((e=>console.log(e))):s(e)}return t}},this.addEventListener=e=>{const t=this._listeners;var i;(t.push(e),1===t.length)&&((null===(i=this._options)||void 0===i?void 0:i.onFirstListenerAdd)&&this._options.onFirstListenerAdd());return{dispose:()=>{const i=t.indexOf(e);var s;i>=0&&(t.splice(i),t.length||(null===(s=this._options)||void 0===s?void 0:s.onFirstListenerAdd)&&this._options.onLastListenerRemove())}}},this.event=this.addEventListener}}let o;!function(e){function t(e){let t;const i=new n({onFirstListenerAdd(){t=e(i.fire)},onLastListenerRemove(){t.dispose()}});return i.event}e.snapshot=t,e.filter=function(e,i){return t((t=>e((e=>i(e)&&t(e)))))},e.map=function(e,i){return t((t=>e((e=>t(i(e))))))}}(o||(o={}))},93982:(e,t,i)=>{i.d(t,{Zc:()=>l,_q:()=>d,cZ:()=>r,dB:()=>c,ml:()=>_});var s=i(45934),n=i(41664),o=i(23580),a=i(55654);function r(e){return(0,n.Q)(e)}function c(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt))}function l(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt)).event}function d(e){return _(e).event}function _(e){return c((0,s.Pj)(),e)}},32269:(e,t,i)=>{i.d(t,{Cb:()=>X,Cl:()=>m,DI:()=>w,Dx:()=>M,EU:()=>R,HT:()=>z,Hy:()=>W,Id:()=>p,Np:()=>N,Qi:()=>G,Tr:()=>Q,X7:()=>F,XZ:()=>U,Yq:()=>h,Z1:()=>K,_9:()=>x,_q:()=>V,au:()=>P,d_:()=>B,el:()=>O,ez:()=>T,fq:()=>g,gq:()=>b,i0:()=>k,iV:()=>j,jG:()=>l.j,p6:()=>I,sh:()=>H,vl:()=>d.v,wB:()=>S});var s=i(74267),n=i(92810),o=i(85163),a=i(1741),r=i.n(a),c=i(45695),l=i(77509),d=i(23397),_=i(71210),u=i(70082);const p=e=>{Object.keys(o.A9).forEach((t=>{"onboarding_success"!==e.get(o.A9[t])&&e.remove(o.A9[t])}))};function m(e){const t=(0,s.A)(e);return isNaN(t)?new Date(e):t}const h=(e,t,i=!1)=>{Date;const s=new Date,n=e.getDate()===s.getDate()&&e.getMonth()===s.getMonth()&&e.getFullYear()===s.getFullYear();if(i&&n){const i=Math.floor((s-e)/1e3),n=Math.floor(i/60),o=Math.floor(n/60);if(i<60)return t("Just now");if(o>0){const e=n%60;return`${o} ${t("hour","hours",o)} ${e} ${t("minute","minutes",e)}`}return`${n} ${t("minute","minutes",n)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),i=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+i.format(e)}},g=e=>{const t=e.match(/(\(copy\))( \d+)?$/),i=null===t||void 0===t?void 0:t[1],s=null===t||void 0===t?void 0:t[2];return i?s?`${e.slice(0,-s.length)} ${+s.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function E(e,t,i){const s=new Map,n=new RegExp(`(${t})(.*?)(${i})`,"gis");return e=e.replaceAll(n,((e,t,i,n)=>{const o=(0,_.l)();return s.set(o,i),t+o+n})),{escapes:s,html:e}}function A(e,t){let i=[];for(const[s,n]of t){const{escapes:t,html:o}=E(e,s,n);e=o,i.push([s,n,t])}return{escapes:i,html:e}}function v(e,t,i,s){const n=new RegExp(`(${t})(.*?)(${i})`,"gis");return e.replaceAll(n,((e,t,i,n)=>{const o=s.get(i);return"string"===typeof o?t+o+n:e}))}const f=/<title>(.*)<\/title>/gm,O=(e,t)=>{let{escapes:i,html:s}=A(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return s=s.replaceAll(f,((e,i)=>i===t?`<title>${g(i)}</title>`:e)),function(e,t){for(const[i,s,n]of t)e=v(e,i,s,n);return e}(s,i.reverse())};function T(e){let{html:t}=A(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(f)].map((e=>e[1])).find((e=>!!e))}const D="bottomRight",I=(e,t,i=D)=>{var s,n,o,a;t.error({innerException:e.error instanceof Error?e.error:void 0,message:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(s=e.error)||void 0===s||null===(n=s.data)||void 0===n?void 0:n.code)||(null===(o=e.error)||void 0===o?void 0:o.status)||e.error}}),description:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(a=e.error.data)||void 0===a?void 0:a.message)||e.error.error}}),placement:i})},S=(e,t,i=D)=>{t.success({message:e,placement:i})},C="ascend",y="descend",L="desc",b=e=>{switch(e){case C:return"asc";case y:return L;default:return""}},N=e=>{switch(e){case"asc":return C;case L:return y;default:return""}},M=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},P=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,w=e=>new Promise(((t,i)=>{let s=new Image;s.src=e,s.addEventListener("load",(()=>{t("success")})),s.addEventListener("error",(()=>{i("error")})),s=null})),R=(e,t)=>{for(const i of t)"object"===typeof e.properties&&(e=e.properties[i]);return e},B=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),k=(e,t,i=!0)=>{const s=Object.keys(t);for(const n of s){const s=t[n];void 0!==s&&null!==s&&(e[n]=i&&"object"===typeof s?k(e[n]||{},s,!0):s)}return e},j=e=>new Promise(((t,i)=>{r().load({google:{families:[e]},classes:!1,active:t,inactive:i})})),U=(e,t)=>{t&&e(t)},x=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i)=>{document.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const s=document.getElementById("iframe-scroll-top"),n=document.getElementById("iframe-scroll-bottom"),a=document.getElementById("email_iframe"),r=document.body.getBoundingClientRect().height,c=a.getClientRects()[0];c.top<0&&(s.style.display="block"),c.top+c.height>r&&(n.style.display="block");const l={operation:o.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:i||null,targetBlock:null,project:"emailmaker"}};t.dataTransfer.setData("Text",JSON.stringify(l)),e(l)}),[e])},G=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i,s)=>{const n=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom"),r=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,l=r.getClientRects()[0];l.top<0&&(n.style.display="block"),l.top+l.height>c&&(a.style.display="block");const d={operation:o.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:i.html||null,targetBlock:null}};s(i)&&t.dataTransfer.setData("Text",JSON.stringify(d)),e(d)}),[e])},H=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:i}})}),[e])},F=()=>{const e=(0,c.XW)();return(0,n.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:i}})}),[e])},K=(e,t)=>{t.success({maskClosable:!0,centered:!0,title:e("Coming soon"),content:e("The feature is under development."),okText:e("Ok. I'll be waiting"),onOk:()=>{}})},X=()=>{const e=(0,c.XW)();return(t,i)=>{e({operation:o.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:i})}},V=(e,t="")=>{var i,s;const n=[];return null===(i=e._embedded)||void 0===i||null===(s=i["wp:term"])||void 0===s||s.filter((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})).forEach((e=>{const t=e[0].taxonomy;n[t]||(n[t]=[]),n[t]=e.map((e=>({id:e.id,name:e.name,children:e.children}))),n[n.length]=n[t]})),""!==t&&n.length?n[t]:n},z=(e,t="")=>{var i,s,n,o,a;return(null===(i=e._embedded)||void 0===i||null===(s=i["wp:term"])||void 0===s||null===(n=s.find((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})))||void 0===n||null===(o=n.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===o||null===(a=o.children)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},W=(e,t)=>{const i=e.target,s=t.getBoundingClientRect().height,n=i.getBoundingClientRect().height-s,o=e.clientY-t.getBoundingClientRect().top-30,a=-n*(Math.min(Math.max(o,0),s-60)/(s-60));i.style.transform=`translateY(${a}px)`},Q=({target:e})=>{e.style.transform="translateY(0)"}},20116:(e,t,i)=>{function s(e){return t=>{const i=t.query,s=t.queryFn||((e,t,s,n)=>n(i(e)));if(s){let i;if("object"===typeof e){const{queryFn:s,...n}=e;i=s;for(const e of Object.keys(n))t[e]=n[e]}else i=e;t.query=void 0,t.queryFn=async(e,t,n,o)=>{try{let a=await i(e);return"function"===typeof a&&(a=await a((async(e,i=t,a=n,r=o)=>{const c=await s(e,i,a,r);if(c.error)throw c.error;return c.data}))),{data:a,error:null}}catch(a){return{error:a}}}}}}function n(){return s((()=>{}))}function o(e,t){const i={},n=Object.keys(t);for(const o of n)i[o]=s(t[o]);e.enhanceEndpoints({endpoints:i})}function a(e,t){for(const i of Object.keys(t))t[i](e)}i.d(t,{BD:()=>a,BX:()=>o,nM:()=>s,pl:()=>n})},98589:(e,t,i)=>{function s(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(const o of i)if(!s(e[o],t[o]))return!1;return!0}return!1}function n(e,t){if(!e)return t;const i={};for(const n of Object.keys(t))s(t[n],e[n])||(i[n]=t[n]);return i}i.d(t,{g:()=>n})},88896:(e,t,i)=>{i.d(t,{X:()=>n});const s=Symbol("Error");function n(e){return Promise.all(e.map((e=>e instanceof Promise?e.catch((e=>(console.log(e),s))):e))).then((e=>e.filter((e=>e!==s))))}},91738:(e,t,i)=>{i.d(t,{AU:()=>d});var s=i(90854),n=i(58689),o=i(44824),a=i(85974),r=i(91391);const c=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(r.gP))}(e)||(0,a.Nh)(e)||(0,s.BF)(e),l=e=>{if(c(e))return!0;if((0,s.vq)(e)||(0,s.wz)(e))for(const t of e.querySelectorAll("*"))if(c(t))return!0;return!1};async function d(e,t){"string"===typeof e&&(e={code:e});const i=e.code?await(0,n.PJ)(e.code||"",[n.qy],e.utm_parameters,(async e=>{void 0===t&&(t=l(e)),t&&await(0,o.e)(e,"html")})):"",s=e.code&&t?await(0,n.PJ)(e.code||"",[n.qy],e.utm_parameters,(async e=>{await(0,o.e)(e,"amp")})):"";return{...e,compiled:{html:i,ampHtml:s}}}},91366:(e,t,i)=>{i.d(t,{Qq:()=>g,PL:()=>A,KA:()=>E,wz:()=>v});var s=i(33288),n=i(41664),o=i(15230),a=i(32269),r=i(55654);class c extends r.IO{async execute([e],t){for(const i of t){const t=await i(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}var l=i(98589);class d extends r.lt{}var _=i(56991);class u extends a.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new r.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const i=this._items;let s;if(i.has(e))try{s=await i.get(e)}catch{t&&(s=await t())}else t&&(s=await t(),s&&this._onChangeEmitter.fire());return s}async _addOrUpdate(e,t){let i;const s=this._items;if(s.has(e))try{i=await s.get(e)}catch{}const n=await t(i);return(0,_.bD)(i,n)||this._onChangeEmitter.fire(),n}entries(){return Promise.all([...this._items.entries()].map((([e,t])=>t.then((t=>[e,t]))))).then((e=>e.filter((([e,t])=>!!t))))}values(){return Promise.all([...this._items.values()].map((e=>e)).filter((e=>!!e)))}getOrCreate(e,t){let i=this._getOrCreate(e,(()=>t(e)));return this._items.set(e,i),i}addOrUpdate(e,t){let i=this._addOrUpdate(e,t);return this._items.set(e,i),i}add(e,t){const i=Promise.resolve(t);return this._items.set(e,i),i}remove(e){if(this._items.has(e)){const t=this._items.get(e);return this._items.delete(e),this._onChangeEmitter.fire(),t}return Promise.resolve(void 0)}async setAll(e){try{this.suspendChange();const t=[],i=new Set(Array.from(e).map((([e,t])=>e))),s=(await this.entries()).filter((([e,t])=>!i.has(e)));for(const[n,o]of e)t.push(this.addOrUpdate(n,(()=>o))),i.add(n);for(const[e]of s)t.push(this.remove(e));return await Promise.all(t),s}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var p=i(71210);class m extends a.jG{constructor(...e){super(...e),this._cache=new u,this._readEmitter=new r.lt,this._saveEmitter=this.addDisposable(new c),this._removeEmitter=this.addDisposable(new d),this._foreignCache=Object.create(null),this.handlerRead=this._readEmitter.event,this.onSave=this._saveEmitter.event,this.onRemove=this._removeEmitter.event,this.onChange=this._cache.onChange}async get(e){return this._cache.getOrCreate(e,(async t=>Object.assign({id:e},...(await this._readEmitter.fire(e)).filter((e=>!!e)))))}get cache(){return this._cache}byForeignKey(e){let t=this._foreignCache[e];if(!t){const i=this.addDisposable(new a.jG);i.addDispose((()=>delete this._foreignCache[e]));const s=i.addDisposable(new u),n=i.addDisposable(new r.lt);t=this._foreignCache[e]={get:async(t,i={})=>(await s.getOrCreate(t,(async()=>{try{const i=function(e=[]){if((e=e.filter((e=>e))).length<=1)return e[0];let t=new Map;for(const i of e)for(const e of i)if(void 0!==e.id){let i=t.get(e.id)||{};t.set(e.id,{...i,...e})}return[...t].map((([e,t])=>t))}(await n.fire(t))||[];for(const s of i)s[e]=t,await this._cache.add(s.id,s);return i}catch{return[]}})),function(e,{filter:t,order:i="asc",orderBy:s,page:n,pageSize:o=20}={}){const a=e.length;let r=e.length;if(void 0!==t){const i=Object.keys(t);r=(e=e.filter((e=>{for(const s of i){const i=e[s],n=t[s];return"id"===s||"string"!==typeof i?i===n:"string"===typeof n&&i.startsWith(n)}return!0}))).length}return s&&(e=e.sort(((e,t)=>(e[s]>t[s]?1:t[s]>e[s]?-1:0)*("asc"===i?1:-1)))),void 0!==n&&(e=e.slice(o*(n-1),o*n-1)),{data:e,filteredTotal:r,total:a,totalPages:Math.floor(a/o)}}(await this._cache.values()||[],i)),first:(e,i={})=>t.get(e,{...i,page:1,pageSize:1}).then((e=>e[0])),handleRead:n.event,clear(){s.clear()},dispose(){i.dispose()}}}return t}async create(e,{source:t="",silent:i}={}){let s=e;return i||(s=await this._saveEmitter.fire({prev:void 0,patch:e,value:s,source:t})),void 0===s.id&&(s.id=(0,p.l)()),await this._cache.addOrUpdate(s.id,(()=>s))}async update(e,t,{source:i="",silent:s}={}){return this._cache.addOrUpdate(e,(async e=>{let n=e?{...e,...t}:t;if(!s)return t=e?(0,l.g)(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:n,source:i})}))}async remove(e,{source:t="",silent:i}={}){const s=await this._cache.remove(e);return i||await this._removeEmitter.fire({value:s,source:t}),s}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}i(18398);var h=i(39990);function g(){const e=(0,n.Q)();return t=>s.di.getOrCreateInstance(t,e,(()=>new m))}function E(e){const t=s.di.getInstance(e,o.ax);if(!t)throw new Error("Failed");return t}function A(e){const t=s.di.getInstance(e,o.Lz);if(!t)throw new Error("Failed");return t}async function v(e){const t=E(e),i=await t.dispatch(h.Q2.endpoints.getMe.initiate({},{forceRefetch:!0}));return Promise.resolve(i.data)}},13437:(e,t,i)=>{i.d(t,{A:()=>a,i:()=>o});var s=i(71210),n=i(814);function o({code:e,...t},i){var n,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,s.l)(),project:null===(n=a.projectSlice)||void 0===n||null===(o=n.project)||void 0===o?void 0:o.id}}function a({html:e,renderGuid:t,...i},s){const o=s.getState(),{project:a}=o.configSlice;return(0,n.TB)({...i,code:e,project:void 0===a?i.project:a,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}},25181:(e,t,i)=>{function s(e,t){var i;return{severity:Number(t.severity),message:t.message,source:t.source,startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn,get startOffset(){return e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn})},get endOffset(){return e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn})},tags:null===(i=t.tags)||void 0===i?void 0:i.map((e=>Number(e)))}}i.d(t,{B:()=>s})},91253:(e,t,i)=>{i.d(t,{I:()=>o,y:()=>n});var s=i(814);function n(e,t,i){const s=t.getState();var n,o;void 0===i&&(i=void 0===e.post?null===(n=s.emailSlice)||void 0===n||null===(o=n.email)||void 0===o?void 0:o.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:i}}function o(e,t){return(0,s.TB)({...e,link:void 0,comment_status:void 0})}},81304:(e,t,i)=>{i.d(t,{E:()=>a,I:()=>o});var s=i(71210),n=i(814);function o({code:e,...t},i){var n,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,s.l)(),project:null===(n=a.projectSlice)||void 0===n||null===(o=n.project)||void 0===o?void 0:o.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function a({html:e,renderGuid:t,...i},s){const o=s.getState(),{project:a,config:r}=o.configSlice;return(0,n.TB)({...i,code:e,project:void 0===a?i.project:a,utm_parameters:r.UTMEnabled?i.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0,compiled:(0,n.TB)({html:e,ampHtml:e&&""})})}},4453:(e,t,i)=>{i.d(t,{E:()=>o,_:()=>n});var s=i(814);function n({code:e,...t},i,s){const n=i.getState();var o,a;void 0===s&&(s=void 0===t.parent?null===(o=n.emailSlice)||void 0===o||null===(a=o.email)||void 0===a?void 0:a.id:t.parent);return{...t,...e?{html:e}:{},parent:s}}function o({html:e,...t},i){return(0,s.TB)({...t,code:e,guid:void 0,compiled:(0,s.TB)({html:e,ampHtml:e&&""})})}},23036:(e,t,i)=>{i.d(t,{Xy:()=>a,bg:()=>c,yc:()=>r});var s=i(20116),n=i(55701),o=i(91366);const a=(0,o.Qq)(),r=(0,o.Qq)();function c(e){const t=a(e),i=t.byForeignKey("project"),c=r(e),l=c.byForeignKey("parent"),{dispatch:d,getState:_}=(0,o.KA)(e),u=(0,o.PL)(e);u.addDisposable(t.onChange((()=>d(n.VM.util.invalidateTags(["Blocks"]))))),u.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.html===e.html&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,s.BX)(n.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await i.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then((({data:e})=>e))},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>t=>t(e),getTemplateBlocks:e=>t=>t(e),async getBlock(e){const t=_().projectSlice.project.id;return i.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await l.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async i=>{const s=await t.create(e);return _().configSlice.config.preventSendDataToEM||i(s).catch((e=>console.log(e))),s},editBlock:({blockId:e,...i})=>t.update(e,i),deleteBlock:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>c.create({...t,parent:e})})}},72788:(e,t,i)=>{i.d(t,{B:()=>c,D:()=>r});var s=i(18777),n=i(91366),o=i(68415),a=i(20116);const r=(0,n.Qq)();function c(e){const t=r(e),i=t.byForeignKey("post"),{dispatch:c}=(0,n.KA)(e);(0,n.PL)(e).addDisposable(t.onChange((()=>c(s.Jg.util.invalidateTags(["Comments"]))))),(0,a.BX)(s.Jg,{getComments:e=>i.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:i,parent:s,content:n,author_name:a,author_email:r,targetId:c}){const l={post:e,author:i,author_name:a,author_email:r,content:n,parent:s,target_id:c,date:(0,o.A)(new Date),author_avatar_urls:{}};return t.create(l)},deleteComment:e=>t.remove(e),editComment:({commentId:e,...i})=>t.update(e,i),deleteTarget:e=>t.update(e,{target_id:""})})}},87265:(e,t,i)=>{i.d(t,{Av:()=>r,jw:()=>c,sE:()=>l});var s=i(17581),n=i(91366),o=i(71210),a=i(20116);const r=(0,n.Qq)(),c=(0,n.Qq)();function l(e){const t=r(e),i=c(e),l=i.byForeignKey("parent"),{dispatch:d,getState:_}=(0,n.KA)(e),u=(0,n.PL)(e);u.addDisposable(t.onChange((async()=>{d(s.GY.util.invalidateTags(["Email"]))}))),u.addDisposable(i.onChange((()=>{d(s.GY.util.invalidateTags(["EmailAutosaves"]))}))),u.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.subject===e.subject&&i.html===e.html&&i.preheader===e.preheader&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,a.BX)(s.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(l.clear(),async s=>{if(_().configSlice.config.revisionService){const n=await s({emailId:e,page:t});for(const e of n.data)i.cache.add(e.id,e);return n}return{...await l.get(e,{page:t}),args:{emailId:e,page:t}}}),async addEmail({source:e,...i}){const s=await t.create(i,{source:e});return s.renderGuid||(s.renderGuid=(0,o.l)()),s},editEmail:e=>async i=>{let{emailId:s,source:n,...o}=e;return _().configSlice.config.revisionService&&await i(e),t.update(s,o,{source:n})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async s=>(_().configSlice.config.revisionService&&await s({emailId:e,body:t}),await i.create({...t,parent:e,modified:(new Date).toString()}))})}},43347:(e,t,i)=>{i.d(t,{Ri:()=>_,uS:()=>u});var s=i(15230),n=i(63531),o=i(33288),a=i(55654),r=i(93982),c=i(13522),l=i(20116);const d="tmp",_=o.di.createIdentifier();o.di.createIdentifier();function u(e){const t=o.di.getInstance(e,s.Lz);if(!t)throw new Error("Something was wrong");const i=t.addDisposable(new a.lt);o.di.inject(e,_,i);const u=(0,r.dB)(e,c.A.ON_SEND_TESTEMAIL_ID),p=(0,r.dB)(e,c.A.ON_SEND_LIVEPREVIEW_ID);(0,l.BX)(n.yH,{uploadImage:t=>async n=>{const a=e.getState(),{project:r}=a.configSlice,c=t.folder===d?null:await i.fire({file:t.file,project:r}),l=c?c.find((e=>e)):null;return l?[{file_url:l,project:r}]:n({...t,user_id:String((await o.di.getInstanceAsync(e,s.sZ)).app_id)})},sendTestEmail:t=>async i=>{const n=e.getState(),{project:a}=n.configSlice;(await u.fire({project:a,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await i({...t,user_id:String((await o.di.getInstanceAsync(e,s.sZ)).app_id)})},async sendLivePreview(t){const i=e.getState(),{project:s}=i.configSlice;(await p.fire({project:s,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})}},14999:(e,t,i)=>{i.d(t,{A:()=>O});var s=i(20116),n=i(53200);var o=i(84612);var a=i(91366),r=i(39990);var c=i(15230),l=i(47036);var d=i(95679);var _=i(62689);var u=i(84568);var p=i(46312);var m=i(65119);var h=i(43347),g=i(83351);var E=i(23036),A=i(72788),v=i(94381);var f=i(87265);const O={addUserToProjectApiMock:function(){n.B.enhanceEndpoints({endpoints:{addUserToProject:(0,s.pl)()}})},AiApiMock:function(){(0,s.BX)(o.Zs,{sendMessage:({body:e})=>t=>t({body:e}),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,a.KA)(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};r.Q2.enhanceEndpoints({endpoints:{userRegistration:(0,s.pl)(),getSchema:(0,s.nM)((()=>e=>e({}))),getMe:(0,s.nM)((()=>t)),editMe:(0,s.nM)((e=>t={...t,...e})),getSubscriptions:(0,s.nM)((()=>[]))}})},blocksApiMock:E.bg,commentsApiMock:A.B,emailsApiMock:f.sE,emailRawApiMock:function(){(0,s.BX)(l.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(c.f5)}})},imageApiMock:function(){(0,s.BX)(d.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,s.BX)(v.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e({})})},notificationsApiMock:function(){(0,s.BX)(_.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(c.f5)}})},projectsApiMock:function(e){let t;(0,s.BX)(u.Nq,{getProjects:(e={page:1})=>[],getProject:e=>i=>t||(t=i(e).then((t=>({...t,id:e})))),addProject(e){throw new Error},editProject:({projectId:e,...i})=>t=t.then((t=>({...t,...i,id:e}))),deleteProject(e){throw new Error}})},proxyApiMock:function(){(0,s.BX)(p.Z8,{getFile({url:e,tryFetch:t=!0,type:i}){throw new Error(c.f5)}})},recoverPasswordApiMock:function(){(0,s.BX)(m.yR,{resetPassword(e){throw new Error(c.f5)},setPassword(e){throw new Error(c.f5)},validateRecoverPasswordCode(e){throw new Error(c.f5)}})},saveFileApiMock:h.uS,tokenApiMock:function(){(0,s.BX)(g.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}}},62410:(e,t,i)=>{i.d(t,{r:()=>v});var s=i(33288),n=i(14386),o=i(18398),a=i(47358),r=i(86286),c=i(39990),l=i(99751),d=i(15230),_=i(13652);function u(e){var t;return{fontSize:e.fontSize,fontFamily:e.fontFamily,tabSize:e.tabSize,wordWrap:"off"!==e.wordWrap,minimap:null===(t=e.minimap)||void 0===t?void 0:t.enabled,insertSpaces:e.insertSpaces}}var p=i(39217),m=i(32269),h=i(91366),g=i(93982),E=i(13522),A=i(48802);const v=(0,n.l)((e=>{const t=(0,h.PL)(e),i=(0,A.m)((0,g.Zc)(e,E.A.READ_LOCALE)),n=t.addDisposable(new A.U(i)),v=e.dispatch,f=s.di.getInstanceAsync(e,d.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>(console.log(e),{}))),O=(0,_.y)(),T=async(...t)=>{const i=Object.assign({},...t),s=Object.assign({},...t.map((e=>e.editor))),{locale:n="ru_RU",theme:r,codeModeDirection:l,...d}=i;void 0!==l&&("none"===l?v((0,a.N6)(!1)):(v((0,a.N6)(!0)),v((0,a.Uf)(l))));const _=await(0,h.wz)(e);var u;await v(c.Q2.endpoints.editMe.initiate({..._,code_editor:s?(u=s,{font_size:u.fontSize,font_family:u.fontFamily,tab_size:u.tabSize,word_wrap:u.wordWrap,minimap:u.minimap,insert_spaces:u.insertSpaces}):_.code_editor,locale:"string"===typeof n?n:_.locale,theme:"string"===typeof r?r:_.theme})),v((0,o._R)(d))};let D;return{setOptions:O.decorate((async({config:i={},project:a,user:r,advancedConfigs:d,handleReadLocale:_})=>{var u;n.setListener(_);let g=await f,E=d||g.advancedConfigs,A=localStorage.getItem("configSwither"),O=E&&E[(null===i||void 0===i?void 0:i.mode)||A||"pro"]||(null===(u=(0,l.$)((null===i||void 0===i?void 0:i.mode)||A||"pro"))||void 0===u?void 0:u.config);if(O={...O,configSwither:i.configSwither||!1},await T(O,g,i),v((0,o.bn)(String(a))),v((0,o.ee)(E)),D&&D.dispose(),D=new m.jG,r){let i={...await(0,h.wz)(e),email:"",password:"",...r,id:"number"===typeof r.id?String(r.id):r.id};void 0===r.id&&delete i.id,v(c.Q2.endpoints.editMe.initiate(i)),r.id&&t.addDisposable(s.di.addService(e,p.jY,{execute(e){e.headers.append("user_id",i.id)}}))}a&&t.addDisposable(s.di.addService(e,p.jY,{execute(e){e.headers.append("project_id",String(a))}}))})),instance:{setConfig:O.decorate((async e=>{var t;let i=null===(t=(0,l.$)((null===e||void 0===e?void 0:e.mode)||"pro"))||void 0===t?void 0:t.config;await T(i,await f,e)})),getConfig:()=>function(e){var t,i;const s=e.getState(),n=s[r.Ay.name],c=s[o.Ay.name],l=s[a.Ay.name];return{...c.config,theme:null===(t=n.currentUser)||void 0===t?void 0:t.theme,locale:null===(i=n.currentUser)||void 0===i?void 0:i.locale,codeModeDirection:l.isCodeMode?l.codeModeDirection:"none",editor:u(n.monacoOptions)}}(e),updateConfig:O.decorate((e=>T(e))),handleReadLocale:i}}}))},33746:(e,t,i)=>{i.d(t,{F:()=>c});var s=i(44141),n=i(33288),o=i(15230),a=i(14386),r=i(39217);const c=(0,a.l)((e=>{let t=!0;return{setOptions(i){if(i.hasOwnProperty("baseUrl")){const s=n.di.getInstance(e,r.eT),o=s.getOptions(),a=(0,r.qT)(i.baseUrl);o.baseUrl!==a&&(s.setOptions({baseUrl:a}),t=!0)}if(t){const i=n.di.getInstance(e,s.Pz);n.di.inject(e,o.sZ,(async(e,t)=>t||i.app.app_init_create({}).then((({data:e})=>e))),!0),t=!0}}}}))},19209:(e,t,i)=>{i.d(t,{F:()=>u});var s=i(14386),n=i(14315),o=i(33288),a=i(41664),r=i(39217),c=i(13652),l=i(85163);const d=(0,a.Q)(),_=(0,a.Q)(),u=(0,s.l)((e=>({setOptions(t){const i=(0,c.y)(),s=(0,r.mg)(e);o.di.addService(e,r.jY,{execute:i.decorate((async i=>{if(t.jwtAuth){let a=o.di.getInstance(e,d),r=o.di.getInstance(e,_);if(!r&&!a){const i=await s.jwtAuth.token_create({body:t.jwtAuth,type:n.cM.Json});if(i.error)throw r=l.ff,o.di.inject(e,_,l.ff),new Error(l.ff);a=i.data.token,o.di.inject(e,d,a)}r||i.headers.append("authorization",`Bearer ${a}`)}}))})}})))},91514:(e,t,i)=>{i.d(t,{h:()=>l});var s=i(14386),n=i(41664),o=i(33288),a=i(39217),r=i(47271);const c=(0,n.Q)(),l=(0,s.l)((e=>{let t;return o.di.addService(e,a.jY,{execute:async i=>{if(t){const t=await o.di.getInstanceAsync(e,c);t&&i.headers.append("authorization",`Bearer ${t}`)}}}),{setOptions(i){t!==i.getAuthToken&&(t=i.getAuthToken,o.di.inject(e,c,void 0),o.di.inject(e,c,(async(e,i)=>{try{let e=await i;var s;return t?e&&1e3*(null===(s=(0,r.iU)(e))||void 0===s?void 0:s.exp)>function(){const e=new Date;return e.valueOf()-60*e.getTimezoneOffset()*1e3}()?e:await t(e):""}catch(n){return console.log(n),""}}),!0))}}}))},14386:(e,t,i)=>{function s(e){return async function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...await e(t)||{}}}}function n(e){return async t=>{const i={},s=[];for(const n of e)s.push(await n(t));for(const e of s)Object.assign(i,e.instance);return{instance:i,setOptions:e=>{const t=s.map((t=>t.setOptions(e)));return t.some((e=>e instanceof Promise))?Promise.all(t).then((()=>{})):void 0},dispose:()=>{for(const e of s)e.dispose()}}}}i.d(t,{E:()=>n,l:()=>s})},893:(e,t,i)=>{i.d(t,{m:()=>c});var s=i(17126),n=i(92810),o=i(45934),a=i(18398),r=i(70082);const c=({children:e})=>{const[t,i]=(0,n.useState)(),c=(0,o.d4)(a.p5);return(0,r.jsxs)("div",{className:"App blocks-app blocks-plugin",children:[c&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:c}}),(0,r.jsx)(s.fh.Provider,{value:t,children:e}),(0,r.jsx)("div",{ref:i,className:"blocks-modal-container"})]})}},97001:(e,t,i)=>{i.d(t,{P:()=>S});var s=i(32269),n=i(93556),o=i(23580),a=i(71210),r=i(56991),c=i(13329),l=i(28316),d=i(18398),_=i(13437),u=i(81304),p=i(4453),m=i(91253),h=i(33288),g=i(15230),E=i(13652),A=i(13522),v=i(93982),f=i(91738),O=i(17581),T=i(39217),D=i(25181);const I="EXTERNAL";class S extends s.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,E.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,o.My)(e);this._dataSources=(0,n.zC)(t),this._eventLock=(0,n.QQ)(t);const i=(0,v.Zc)(e,A.A.ON_MODEL_CHANGE),s=(0,v.Zc)(e,A.A.ON_EMAIL_CHANGED_ID);this.addDisposable(i((e=>{this._model=e}))),this.addDisposable(s((e=>{this._currentEmail=e}))),this.addDisposable(h.di.addService(e,T.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await h.di.getInstanceAsync(this._store,g.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const i=await this._store.dispatch(O.GY.endpoints.getTemplateEmail.initiate(e));i.error?console.log(i.error):(t={...i.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter((e=>e.project===t)).map((e=>(0,_.A)(e,this._store)))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter((e=>e.post===t.id)).map((e=>(0,m.I)(e,this._store)))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter((e=>e.parent===t.id)).map((e=>(0,p.E)(e,this._store)))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,_.i)(e,this._store)])))}async setEmailRevisions(e=[],t){const{cache:i}=this._dataSources.emailRevisions,s=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,p._)(e,this._store,t)]));await i.setAll(s)}async setComments(e=[],t){const{cache:i}=this._dataSources.comments,s=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,m.y)(e,this._store,t)]));await i.setAll(s)}async getEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,u.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,f.AU)(i,t.isAmp)}async compileEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,u.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,f.AU)(i,t.isAmp)}async setEmail(e,t,i=!1){const s=this._dataSources.emails,n=s.cache,o=await this.getProject();e="string"===typeof e?{code:e}:{...e};let r=(0,u.I)(e,this._store);const c=r.id;let l=c;if(void 0!==c?r={...await s.get(c),...r,project:o}:(r={...r,project:o},l=(0,a.l)(),delete r.project),t){const e=await this.getTemplateEmail(String(t));e&&(r={...e,id:String(t),...r})}await n.setAll([[l,r]]),i&&this._runShowCommand({isNew:void 0===c,id:l,project:o})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,r.bD)(this._prevCommand,e)?(0,c.RS)(this._store,l._1,t):this._store.dispatch((0,d.Ir)(t)),this._prevCommand=e}async _show(e){try{if(!e)return;if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:t,blocks:i,autosaves:s,comments:o,templateId:a}=(0,n.Uw)(e),r=[];r.push(this.setBlocks(i)),void 0!==t.id&&(r.push(this.setComments(o)),r.push(this.setEmailRevisions(s))),r.push(this.setEmail(t,Number(a),!0)),await Promise.all(r)}}catch(t){console.log(t)}finally{this._eventLock.resumeChange()}return new Promise((e=>{(0,v.Zc)(this._store,A.A.ON_EMAIL_INIT_ID)((()=>e()))}))}_save(){return new Promise((async e=>{const t=this._dataSources.emails,i=this.addDisposable(t.onSave((({value:t,source:s})=>{s===I&&(i.dispose(),e((0,u.E)(t,this._store)))}),Number.MIN_VALUE));(0,c.RS)(this._store,l.Kp,I)}))}getCodeErrors(){var e;const t=this._store.getState(),i=this._model;return i?null===(e=t.emailSlice.problemsList)||void 0===e?void 0:e.map((e=>(0,D.B)(i,e))):void 0}}},44376:(e,t,i)=>{i.d(t,{y:()=>E});var s=i(23580),n=i(93556),o=i(81304),a=i(13437),r=i(91253),c=i(4453),l=i(32269),d=i(48802),_=i(13522),u=i(93982),p=i(18398),m=i(98589),h=i(55654),g=i(25181);class E extends l.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=(0,u.Zc)(e,_.A.ON_MODEL_CHANGE);this.addDisposable(t((e=>{this._model=e})))}_get(){const e=this._store,t=(0,s.My)(e),{blocks:i,emails:l,comments:E,emailRevisions:A}=(0,n.zC)(t),v=(0,u.Zc)(e,_.A.ON_SAVEBUTTON_CLICK_ID),f=(0,u.Zc)(e,_.A.ON_PREVIOUSBUTTON_CLICK_ID),O=(0,u.Zc)(e,_.A.ON_NEXTBUTTON_CLICK_ID),T=(0,u.Zc)(e,_.A.ON_EMAIL_INIT_ID),D=(0,u.Zc)(e,_.A.ON_EMAIL_CHANGED_ID),I=(0,u.Zc)(e,_.A.ON_CONTENT_CHANGED_ID),S=(0,u.Zc)(e,_.A.ON_SEND_TESTEMAIL_ID),C=(0,u.Zc)(e,_.A.ON_SEND_EMAIL_MODAL_ID),y=(0,u.Zc)(e,_.A.ON_EMAIL_CLONE_ID),L=(0,u.Zc)(e,_.A.ON_SHARE_ID),b=(0,u.Zc)(e,_.A.ON_SHOW_PREVIEW_ID),N=(0,u.Zc)(e,_.A.ON_SEND_LIVEPREVIEW_ID),M=(0,u.Zc)(e,_.A.ON_CODE_VALIDATE_ID);return{handleValidate:(0,d.m)(M,(e=>this._model?e.map((e=>(0,g.B)(this._model,e))):[])),handleReadEmail:(0,d.m)(l.handlerRead,(e=>e),(t=>t&&(0,o.I)(t,e))),handleSaveEmail:(0,d.m)(l.onSave,(function({prev:t,patch:i,value:s,source:n}){const a=t?(0,o.E)(t,e):void 0;return{prev:a,patch:(0,m.g)(a,(0,o.E)(i,e)),value:(0,o.E)(s,e),source:n}}),(t=>t?(0,o.I)(t,e):void 0)),handleRemoveEmail:(0,d.m)(l.onRemove,(({value:t,source:i})=>({value:(0,o.E)(t,e),source:i})),(()=>{})),handleReadBlocks:(0,d.m)(i.byForeignKey("project").handleRead,(t=>(0,p.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>(0,a.i)(t,e))))),handleSaveBlock:(0,d.m)(i.onSave,(function({prev:t,patch:i,value:s,source:n}){const o=t?(0,a.A)(t,e):void 0;return{prev:o,patch:(0,m.g)(o,(0,a.A)(i,e)),value:(0,a.A)(s,e),source:n}}),(t=>t?(0,a.i)(t,e):void 0)),handleRemoveBlock:(0,d.m)(i.onRemove,(({value:t,source:i})=>({value:(0,a.A)(t,e),source:i})),(()=>{})),handleReadComments:(0,d.m)(E.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,r.y)(t,e))))),handleSaveComment:(0,d.m)(E.onSave,(function({prev:t,patch:i,value:s,source:n}){const o=t?(0,r.I)(t,e):void 0;return{prev:o,patch:(0,m.g)(o,(0,r.I)(i,e)),value:(0,r.I)(s,e),source:n}}),(t=>t?(0,r.y)(t,e):void 0)),handleRemoveComment:(0,d.m)(E.onRemove,(({value:t,source:i})=>({value:(0,r.I)(t,e),source:i})),(()=>{})),handleReadEmailRevisions:(0,d.m)(A.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,c._)(t,e))))),handleEmailAutosave:(0,d.m)(A.onSave,(function({prev:t,patch:i,value:s,source:n}){return{value:(0,c.E)(s,e),source:n}}),(t=>t?(0,c._)(t,e):void 0)),handleRemoveEmailAutoSave:(0,d.m)(A.onRemove,(({value:t,source:i})=>({value:(0,c.E)(t,e),source:i})),(()=>{})),handleEmailChanged:(0,d.m)((0,h.sg)(D,100),(t=>(0,o.E)(t,e))),handleEmailInit:(0,d.m)(T,(t=>(0,o.E)(t,e))),handlePreviousButtonClick:(0,d.m)(f,(t=>(0,o.E)(t,e))),handleNextButtonClick:(0,d.m)(O,(t=>(0,o.E)(t,e))),handleSaveButtonClick:(0,d.m)(v,(t=>(0,o.E)(t,e))),handleHtmlChanged:(0,d.m)((0,h.sg)(I,100)),handleTestEmailSend:(0,d.m)(S,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,d.m)(C,(t=>(0,o.E)(t,e))),handleCloneEmail:(0,d.m)(y,(t=>(0,o.E)(t,e))),handleShareEmail:(0,d.m)(L),handlePreviewEmail:(0,d.m)(b),handleLivePreviewEmail:(0,d.m)(N)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let i=this._listenersUpdaters;if(!i){i=this._listenersUpdaters={};for(const e of Object.keys(t))i[e]=this.addDisposable(new d.U(t[e]))}for(const s of Object.keys(t))i[s].setListener(e[s])}}},93556:(e,t,i)=>{i.d(t,{QQ:()=>r,Uw:()=>c,zC:()=>a});var s=i(23036),n=i(72788),o=i(87265);function a(e){return{emails:(0,o.Av)(e),blocks:(0,s.Xy)(e),emailRevisions:(0,o.jw)(e),blocksRevision:(0,s.yc)(e),comments:(0,n.D)(e)}}function r(e){const t=Object.values(a(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}function c(e){return"string"===typeof e?{email:{code:e}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(e)?{email:e}:{...e,email:"string"===typeof e.email?{code:e.email}:e.email||{}}}},8671:(e,t,i)=>{i.d(t,{e:()=>c});var s=i(14386),n=i(33288),o=i(15230),a=i(32269),r=i(48802);const c=(0,s.l)((e=>{const t=n.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),s=(0,r.m)(i.event),c=t.addDisposable(new r.U(s));return{setOptions({handleDestroy:e}){c.setListener(e)},instance:{handleDestroy:s,destroy:()=>t.dispose()}}}))},63772:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(14386),n=i(43347),o=i(33288),a=i(48802),r=i(15230);const c=(0,s.l)((e=>{const t=o.di.getInstance(e,r.Lz),i=o.di.getInstance(e,n.Ri),s=(0,a.m)(i.event),c=t.addDisposable(new a.U(s));return{setOptions(e){c.setListener(e.handleLoadImage)},instance:{handleLoadImage:(0,a.m)(i.event)}}}))},55853:(e,t,i)=>{i.d(t,{E:()=>c});var s=i(14386),n=i(33288),o=i(15230),a=i(55654),r=i(48802);const c=(0,s.l)((e=>{const t=n.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),s=n.di.getInstanceAsync(e,o.Cd);s.then((({instance:e})=>i.fire(e)));const c=(0,r.m)(i.event),l=t.addDisposable(new r.U(c));return{setOptions({handleLoad:e}){l.setListener(e)},instance:{handleLoad:c,reset:e=>s.then((({instance:t,setOptions:i})=>Promise.resolve(i(e)).then((()=>t))))},destroy:()=>t.dispose()}}))},1281:(e,t,i)=>{i.d(t,{Z:()=>g});var s=i(14386),n=i(33288),o=i(15230),a=i(48802),r=i(13329),c=i(28316),l=(i(92810),i(814)),d=i(70082);function _(e){return"string"===typeof e?e:e?(0,d.jsx)("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function u(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,l.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:_(e.message),description:_(e.description),btn:_(e.btn),onClose:e.onClose,duration:e.duration,icon:_(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:_(e.closeIcon),props:e.props,role:e.role})}var p=i(13522),m=i(55654),h=i(93982);const g=(0,s.l)((e=>{const t=n.di.getInstance(e,o.Lz),i=(0,h.Zc)(e,p.A.ON_NOTIFICATION),s=(0,m.pb)(i,(e=>"error"===e.type)),l=(0,m.pb)(i,(e=>"success"===e.type)),d=(0,a.m)(i,(e=>e),(e=>"string"===typeof e||"object"===typeof e?u(e):e)),_=(0,a.m)(s,(e=>e),(e=>"string"===typeof e||"object"===typeof e?u(e,"error"):e)),g=(0,a.m)(l,(e=>e),(e=>"string"===typeof e||"object"===typeof e?u(e):e)),E=t.addDisposable(new a.U(d)),A=t.addDisposable(new a.U(_)),v=t.addDisposable(new a.U(g));return{setOptions({handleNotify:e,handleSuccess:t,handleError:i}){E.setListener(e),A.setListener(i),v.setListener(t)},instance:{notify(t){(0,r.RS)(e,c.Sb,{placement:"bottomRight",...u(t)})},handleNotify:d,handleError:_,handleSuccess:g}}}))},89949:(e,t,i)=>{i.d(t,{R:()=>a});var s=i(92810),n=i(45934),o=i(39990);const a=({onLoad:e,children:t})=>{(0,s.useEffect)((()=>{e&&e()}),[e]);const i=(0,n.wA)();return(0,s.useMemo)((()=>i(o.Q2.endpoints.getMe.initiate({}))),[i]),t}},55654:(e,t,i)=>{i.d(t,{HN:()=>d,IO:()=>o,P9:()=>a,lt:()=>u,pb:()=>c,sg:()=>l,vl:()=>_});var s=i(32269);class n extends s.jG{constructor(...e){super(...e),this._listeners=[],this.event=this._addListener.bind(this)}getListeners(e){return this._listeners.flatMap((([t])=>"function"===typeof t?t:t.getListeners(e)))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,i){if(!this.isDisposed()){const s=this._listeners;i&&"function"===typeof e&&(e=e.bind(i));const n=s.findIndex((([e,i])=>t<i)),o=[e,t];return s.splice(n>=0?n:s.length,0,o),{dispose(){const e=s.indexOf(o);e>=0&&s.splice(e,1)}}}}dispose(){this._listeners.splice(0,this._listeners.length),super.dispose()}}class o extends n{constructor(...e){super(...e),this.fire=this._fire.bind(this)}execute(e,t){for(const s of t)try{s(...e)}catch(i){console.log(i)}}_fire(...e){if(!this.isDisposed())return this.execute(e,this.getListeners(e))||void 0}}function a(e,t=0){const i=new n;return i.addDisposable(e(i,t)),i.event}class r extends n{constructor(e){super(),this._filter=e}getListeners(e){return this._filter(...e)?super.getListeners(e):[]}}function c(e,t,i=0){const s=new r(t);return s.addDisposable(e(s,i)),s.event}function l(e,t=0,i=0){const s=new o;let n,a=0;return s.addDisposable(e(((...e)=>{n=e,a||(a=setTimeout((()=>{s.fire(...n),a=0}),t))}),i)),s.event}class d extends o{constructor(...e){super(...e),this._suspendCounter=0,this._wasFired=!1}proccessResult(){}execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const s of t)try{s(e)}catch(i){console.log(i)}}suspend(){this._suspendCounter++}resume(){0===--this._suspendCounter&&(this._wasFired&&this.fire(),this._wasFired=!1)}}class _ extends o{execute([e],t){for(const s of t)try{s(e)}catch(i){console.log(i)}}}class u extends o{async execute([e],t){const i=[];for(const s of t){const t=await s(e);i.push(t)}return i}}},48802:(e,t,i)=>{i.d(t,{U:()=>o,m:()=>a});var s=i(32269),n=i(55654);class o extends s.jG{constructor(e){super(),this._event=e,this._listener=void 0,this._disposeEvent=void 0}setListener(e){this._listener!==e&&(this._listener=e,this._disposeEvent&&this._disposeEvent(),this._disposeEvent=e?this._event(e):void 0)}dispose(){this._disposeEvent&&this._disposeEvent(),super.dispose()}}function a(e,t,i){const s=(0,n.P9)(e);return(e,n,o)=>{const a=s((async s=>{const n=t?t(s):s;o&&e.bind(o);const a=await e(n);return i?i(a):a}),n,o);return()=>a.dispose()}}},13652:(e,t,i)=>{i.d(t,{y:()=>s});const s=e=>{let t={current:Promise.resolve(),state:e,decorate:(e,i)=>(i&&(e=e.bind(i)),function(...i){const s=t.current.then((()=>e(...i)));return t.current=s.then((e=>{t.state=e}),(e=>{console.log(e)})),s})};return t}},18398:(e,t,i)=>{i.d(t,{Ay:()=>D,EV:()=>O,GH:()=>m,Ir:()=>h,Kj:()=>T,RP:()=>_,_R:()=>E,bn:()=>A,ee:()=>v,jY:()=>p,p5:()=>u,s0:()=>l,zg:()=>d});var s=i(90536),n=i(31770),o=i(99751);const a="configSlice",r=(0,n.ur)((0,o.$)("pro")),c=(0,s.createSlice)({name:a,initialState:{...r,initialMergeTags:void 0},reducers:{setPage:(e,t)=>{e.page=t.payload},setConfig:(e,t)=>{e.config={...r.config,...t.payload}},changeConfigMode:(e,t)=>{var i,s,n;const a=null!==(i=null===e||void 0===e||null===(s=e.advancedConfigs)||void 0===s?void 0:s[t.payload])&&void 0!==i?i:null===(n=(0,o.$)(t.payload))||void 0===n?void 0:n.config;if("simple"!==e.config.mode&&"simple"!==t.payload){const t={...e.config,...Object.fromEntries(Object.entries(a).filter((([e])=>o.i.includes(e))))};e.config=t}else e.config={...e.config,...(0,o.$)(t.payload).config}},setInitialMergeTags:(e,t)=>{e.initialMergeTags=t.payload},setMergeTags:(e,t)=>{e.config.mergeTags=t.payload},updateConfig:(e,t)=>{e.config={...e.config,...t.payload}},setProject:(e,t)=>{e.project=t.payload},setAdvancedConfigs:(e,t)=>{e.advancedConfigs=t.payload}},extraReducers:e=>{}}),l=e=>e[a].page,d=e=>e[a].config,_=e=>e[a].config.themes,u=e=>e[a].config.styles,p=e=>e[a].project,m=e=>e[a].config.mergeTags||e[a].initialMergeTags,{setPage:h,setConfig:g,updateConfig:E,setProject:A,setAdvancedConfigs:v,setMergeTags:f,changeConfigMode:O,setInitialMergeTags:T}=c.actions,D=c},47358:(e,t,i)=>{i.d(t,{Ay:()=>k,B:()=>y,Bp:()=>I,CS:()=>M,Ct:()=>N,Fk:()=>h,Fv:()=>w,N6:()=>T,NQ:()=>b,Oo:()=>p,PM:()=>m,Tn:()=>R,Uf:()=>v,V$:()=>B,Wm:()=>L,cL:()=>C,mi:()=>g,qf:()=>u,sy:()=>S,vc:()=>E,vs:()=>A,wW:()=>f,wr:()=>O,yy:()=>P});var s=i(90536),n=i(85163),o=i(31770),a=i(55701);const r=window.localStorage.getItem(n.V0.em_code_mode_settings),c=r&&JSON.parse(r),l=(0,o.ur)({activeModal:"",lastActiveSettingsTab:n.Bv,activeSettingsTab:n.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||n.EW.isPlugin,codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",emailWidth:"100%",emailViewType:n.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:n.WU,parentBlocks:[]}),d="emailPageSlice",_=(0,s.createSlice)({name:d,initialState:l,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=""},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==n.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{"Properties"===e.lastActiveSettingsTab?e.activeSettingsTab="Build":e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==n.Vv&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||"100%"===t?n.Vp:n.ND,window.localStorage.setItem(n.V0.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{const t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(n.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{const i=t.payload;e.isCodeMode!==i&&(e.isCodeMode=i,window.localStorage.setItem(n.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:i})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(n.V0.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload}},extraReducers:e=>{e.addMatcher(a.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,t)=>{e.parentBlocks=t.payload}))}}),{openModal:u,closeModal:p,setActiveSettingsTab:m,resetToLastActiveSettingsTab:h,switchIsPanelHistoryCollapsed:g,setEmailWidth:E,switchCodeMode:A,switchCodeModeDirection:v,setMobileViewActive:f,setEmailViewType:O,setCodeMode:T,setEmailMaxWidthSize:D,setPropertiesPanelKey:I,resetParentBlocks:S}=_.actions,C=e=>e[d].activeModal,y=e=>e[d].activeSettingsTab,L=e=>e[d].isPanelHistoryCollapsed,b=e=>e[d].emailWidth,N=e=>e[d].emailViewType,M=e=>e[d].mobileViewActive,P=e=>e[d].codeModeDirection,w=e=>e[d].isCodeMode,R=e=>e[d].propertiesPanelKey,B=e=>e[d].parentBlocks,k=_},57964:()=>{}}]);