useblocks 1.1.25 → 1.1.27

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 (31) hide show
  1. package/iframe/js/amp.DAh9j5NQ.js +1 -1
  2. package/iframe/js/iframe-eblock.js +1 -1
  3. package/iframe/js/iframe.js +1 -1
  4. package/iframe/js/rules.B4dVzZIU.js +1 -1
  5. package/package.json +1 -1
  6. package/singlepage_headless_plugin.html +1 -1
  7. package/static/core/122fc0d7.js +1 -0
  8. package/static/core/{b639c36e.js → 35387f7a.js} +1 -1
  9. package/static/core/{b98ddc69.js → 4dc76046.js} +1 -1
  10. package/static/core/{d6d622d8.js → 52646cb0.js} +2 -2
  11. package/static/core/{c547314f.js → 8708a613.js} +1 -1
  12. package/static/core/{c52a21ea.js → 8a1c4338.js} +1 -1
  13. package/static/core/a13fc482.js +33 -0
  14. package/static/core/{bec00455.js → aea690c8.js} +37 -38
  15. package/static/core/{d172b1ec.js → b4510ae5.js} +1 -1
  16. package/static/core/{d241e8cb.js → d37f7419.js} +1 -1
  17. package/static/core/{4b2f0647.js → e6c16532.js} +1 -1
  18. package/static/core/{9721d8c0.js → eff08366.js} +1 -1
  19. package/static/core/{7eb3f045.js → f38723d0.js} +1 -1
  20. package/static/core/f4ec16b4.js +78 -0
  21. package/static/esm/3159c14c.js +1 -0
  22. package/two_step_headless_plugin.html +1 -1
  23. package/{useblocks-core.728f1c0e.js → useblocks-core.8b14ebb5.js} +1 -1
  24. package/useblocks-esm.js +129 -11
  25. package/useblocks.js +136 -18
  26. package/static/core/518d327c.js +0 -1
  27. package/static/core/5abb5c27.js +0 -78
  28. package/static/core/9b1a1232.js +0 -33
  29. package/static/esm/bead096a.js +0 -1
  30. /package/iframe/{iframe-eblock.728f1c0e.html → iframe-eblock.8b14ebb5.html} +0 -0
  31. /package/iframe/{iframe.728f1c0e.html → iframe.8b14ebb5.html} +0 -0
@@ -1 +1 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-useblocks`,`true`),e.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Geologica:wght@300;600&display=swap";.blocks-app .ant-modal.premium-features-modal .ant-modal-content{border-radius:calc(var(--borderRadiusXL) * 2px);padding:20px 19px}.blocks-app .premium-features-modal .modal-title{text-align:center;margin-bottom:0;font-size:32px}.blocks-app .premium-features-modal .ant-carousel .slick-dots li button{opacity:.5;background:#fff}.blocks-app .premium-features-modal .ant-carousel .slick-dots li.slick-active button{opacity:1}.blocks-app .premium-features-modal .modal-subtitle{text-align:center;margin-bottom:20px;font-size:18px}.blocks-app .premium-features-modal .carousel-slider{margin-bottom:20px}.blocks-app .premium-features-modal .slick-list{border-radius:calc(var(--borderRadiusXL) * 1.5px)}.blocks-app .premium-features-modal .slick-slide{padding:0 5px}.blocks-app .premium-features-modal .carousel-slide{border-radius:calc(var(--borderRadiusXL) * 1.5px);justify-content:flex-end;align-items:center;height:480px;display:flex}.blocks-app .premium-features-modal .slide-item-image{width:50%;padding:24px 0 24px 32px}.blocks-app .premium-features-modal .slide-item-image img{border-radius:calc(var(--borderRadiusXL) * 1.3px);width:100%}.blocks-app .premium-features-modal .slide-item-content{width:50%;padding:48px}.blocks-app .premium-features-modal .slide-title{margin-bottom:48px;font-size:50px;font-weight:700;line-height:1}.blocks-app .premium-features-modal .slide-description{font-size:22px}.blocks-app .premium-features-modal .modal-buttons{justify-content:center;gap:10px;display:flex}.blocks-app .premium-features-modal .modal-buttons button{padding:0 30px}.blocks-app .limit-upgrade-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .limit-upgrade-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .limit-upgrade-modal .ant-modal-header{display:none}.blocks-app .limit-upgrade-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .limit-upgrade-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .limit-upgrade-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .limit-upgrade-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .limit-upgrade-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .limit-upgrade-modal__close .anticon{font-size:16px}.blocks-app .limit-upgrade-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .limit-upgrade-modal__title{text-align:center;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:400;line-height:130%}.blocks-app .limit-upgrade-modal__subtitle{text-align:center;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .limit-upgrade-modal__limits-row{flex-flow:wrap;justify-content:center;align-items:center;gap:8px;width:100%;max-width:320px;display:flex}.blocks-app .limit-upgrade-modal__icon-circle{box-sizing:border-box;border:1px solid var(--colorText);width:34px;height:34px;color:var(--colorText);border-radius:32px;flex:none;justify-content:center;align-items:center;padding:8px;display:flex}.blocks-app .limit-upgrade-modal__icon-circle .anticon{font-size:18px}.blocks-app .limit-upgrade-modal__icon-circle svg{flex-shrink:0;width:18px;height:18px;display:block}.blocks-app .limit-upgrade-modal__limit-old{color:#f85243;flex-shrink:0;font-size:40px;font-weight:100;line-height:100%}.blocks-app .limit-upgrade-modal__arrow-btn{color:#fff;background:#8946fb;border-radius:38px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.blocks-app .limit-upgrade-modal__arrow-icon{font-size:16px;transform:rotate(45deg)}.blocks-app .limit-upgrade-modal__limit-new{color:#7ed846;flex-shrink:0;font-size:40px;font-weight:400;line-height:100%}.blocks-app .limit-upgrade-modal__limit-new--infinity{font-size:36px;line-height:40px}.blocks-app .limit-upgrade-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .limit-upgrade-modal__footer{box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;width:100%;padding:16px 0;display:flex}.blocks-app .limit-upgrade-modal__footer--dual{flex-flow:wrap;justify-content:center;align-items:center;gap:8px;padding:16px}.blocks-app .limit-upgrade-modal__cta.ant-btn-primary{min-width:147px;height:32px;box-shadow:none;background:#2884ff;border-color:#2884ff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:400;line-height:19px}.blocks-app .limit-upgrade-modal__cta.ant-btn-primary:hover{background:#1a75f0;border-color:#1a75f0}.blocks-app .limit-upgrade-modal__cta-secondary.ant-btn-default{border-color:var(--colorBorder);min-width:147px;height:32px;color:var(--colorText);box-shadow:none;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:400;line-height:19px}.blocks-app .limit-upgrade-modal__cta-secondary.ant-btn-default:hover{color:#2884ff;border-color:#2884ff}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();__useblocks__.define(`static/core/d172b1ec.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/395cdb1b.js`,`static/core/9b1a1232.js`,`static/core/d6d622d8.js`,`static/core/4b2f0647.js`,`react`,`react-dom`,`react-router-dom`,`react/jsx-runtime`,`antd`,`react-dom/client`,`@ant-design/icons`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./9b1a1232.js"),a=e("./4b2f0647.js");e("./395cdb1b.js");let o=e("./d6d622d8.js"),s=e("react");s=r.l(s),e("react-dom");let c=e("react-router-dom"),l=e("react/jsx-runtime"),u=e("antd");e("react-dom/client");let d=e("@ant-design/icons");var f=({open:e,sideOnOk:t,onCancel:n,initialSlide:r=0})=>{let{__:a}=o.h(),u=(0,c.useNavigate)(),[d,f]=(0,s.useState)(r),p=(0,s.useRef)(null),m=i.wt(),h=()=>{t&&t(),u(`/billing`),n(!1)};(0,s.useEffect)(()=>{e&&p.current&&(p.current.goTo(r,!0),f(r))},[e,r]);let g=(0,s.useMemo)(()=>[{image:a(`https://cdn.useblocks.io/1351/241017_18_1sGjUaZ.png`),backgroundColor:`var(--blue-2)`,title:a(`More editing features`),description:a(`Use our visual editor to customize every element to your needs: change borders and their radius, box shadows, paddings, background, and much more.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_J7QtvZ3.png`),backgroundColor:`var(--purple-2)`,title:a(`Work with the HTML code`),description:a(`Edit the HTML version of your email template in the Code mode and see the changes in real time. Builder has no code restrictions — you can create templates of any complexity!`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_2fjDRfL.png`),backgroundColor:`var(--cyan-2)`,title:a(`AI image generation`),description:a(`Generate stunning visuals for your emails with ease. We have trained our AI model to ensure the highest quality images.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_D5C25Zp.png`),backgroundColor:`var(--green-2)`,title:a(`Stock photos and GIFs`),description:a(`Search the vast gallery of stock photos and GIFs to find visuals for any occasion. You can filter the results by image orientation, color scheme, and more.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_NDYloAO.png`),backgroundColor:`var(--magenta-2)`,title:a(`Version history`),description:a(`Check who and when made changes to the email template and, if necessary, restore one of the previous versions.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_g5mVlmh.png`),backgroundColor:`var(--red-2)`,title:a(`Image editor`),description:a(`Want to resize an image, add some text, or apply a filter? No need to leave builder! You can make all the basic changes in our image editor.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_ur8Lh3W.png`),backgroundColor:`var(--orange-2)`,title:a(`Email optimization`),description:a(`Check your email against broken links, missing alt texts, large images, and other issues that might prevent your emails from hitting inboxes.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_S5Pld9p.png`),backgroundColor:`var(--volcano-2)`,title:a(`Team collaboration`),description:a(`Share the project with your team and collaborate in real time. Add comments to individual email blocks and discuss necessary edits right in the builder.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_tGbb2j9.png`),backgroundColor:`var(--geekblue-2)`,title:a(`Email testing`),description:a(`Check how your email appears across various devices and email clients.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_gDXi4uM.png`),backgroundColor:`var(--geekblue-2)`,title:a(`AI assistant`),description:a(`Let our AI assistant enhance your email template! From creating subject lines and preheaders based on the email copy to generating the whole email with your website in mind!`)}],[a]);return(0,s.useEffect)(()=>{if(e&&p.current){p.current.goTo(r,!0),f(r);let e=g[r];m({event:`open_modal`,action:`open_premium-features_modal`,modal_id:`premium-features`,offer_id:e.title})}},[e,g,r,m]),(0,l.jsxs)(o.J,{open:e,footer:null,onCancel:n,closable:!1,className:`premium-features-modal`,classNames:{mask:`premium-features-modal-mask`},styles:{mask:{background:`rgba(0, 0, 0, 0.65)`}},width:1100,style:{maxWidth:`80%`},children:[(0,l.jsx)(o.V,{dots:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,className:`carousel-slider`,draggable:!0,autoplaySpeed:5e3,initialSlide:d,ref:p,children:g.map((e,t)=>(0,l.jsx)(`div`,{children:(0,l.jsxs)(`div`,{className:`carousel-slide`,style:{background:`${e.backgroundColor}`},children:[(0,l.jsx)(`div`,{className:`slide-item-image`,children:(0,l.jsx)(`img`,{src:e.image,alt:`slide-${t}`})}),(0,l.jsxs)(`div`,{className:`slide-item-content`,children:[(0,l.jsx)(`h3`,{className:`slide-title`,children:e.title}),(0,l.jsx)(`p`,{className:`slide-description`,children:e.description})]})]})},t))}),(0,l.jsx)(`div`,{className:`modal-subtitle`,children:a(`This and other features are available for you on any paid plan.`)}),(0,l.jsxs)(`div`,{className:`modal-buttons`,children:[(0,l.jsx)(o.It,{size:`large`,onClick:()=>n(!1),children:a(`Cancel`)}),(0,l.jsx)(o.It,{type:`primary`,size:`large`,onClick:h,style:{padding:`0 30px`},children:a(`Select plan`)})]})]})};function p(e){return e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,``),e=e.replace(/<\/?(?:script|embed|object|frameset|frame|iframe|applet|meta)[^>]*>/gi,``),e=e.replace(/ on\w+="[^"]*"/g,``),e=e.replace(/ on\w+='[^']*'/g,``),e}var m=({icon:e,...t})=>{let n=i.on();return(0,l.jsx)(o.Ft,{icon:e,configIcons:(0,s.useMemo)(()=>{if(!n?.icons)return;let e={};for(let[t,r]of Object.entries(n.icons))typeof r==`string`&&(e[t]=p(r));return Object.keys(e).length>0?e:void 0},[n?.icons]),...t})},h={ai:`AIRequests`,email_generate:`EmailEnvelope`,image_generate:`Image`,optimization:`Optimization`,preview:`SendOutlined`,link_check:`Web`,image_check:`Image`,spam_check:`Block`,projects:`FolderOpen`,emails:`EmailEnvelope`,blocks:`Block`,users:`SliderGroup`};function g(e,t){if(e==null)return null;if(typeof e==`number`||typeof e==`string`){let n=e===`∞`||e===`∞`||e===`infinity`||typeof e==`string`&&e.toLowerCase()===`infinity`;return(0,l.jsx)(`span`,{className:t===`old`?`limit-upgrade-modal__limit-old`:`limit-upgrade-modal__limit-new${n?` limit-upgrade-modal__limit-new--infinity`:``}`,children:n?`∞`:e})}return e}var _=({open:e,onClose:t,title:n,subtitle:r,usageResource:i,icon:a,previousDisplay:s,nextDisplay:c,onChangePlan:f,secondaryAction:p,changePlanLabel:_})=>{let{__:v}=o.h(),y=_??v(`Change plan`),b=!!p,x=i==null?a??null:(0,l.jsx)(m,{icon:h[i]});return(0,l.jsx)(u.Modal,{open:e,onCancel:t,footer:null,closable:!1,width:400,centered:!0,className:`limit-upgrade-modal`,destroyOnClose:!0,maskClosable:!0,children:(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__wrap`,children:[(0,l.jsx)(`div`,{className:`limit-upgrade-modal__header`,children:(0,l.jsx)(`button`,{type:`button`,className:`limit-upgrade-modal__close`,onClick:t,"aria-label":v(`Close`),children:(0,l.jsx)(d.CloseOutlined,{})})}),(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__body`,children:[(0,l.jsx)(`h1`,{className:`limit-upgrade-modal__title`,children:n}),(0,l.jsx)(`p`,{className:`limit-upgrade-modal__subtitle`,children:r}),(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__limits-row`,children:[(0,l.jsx)(`div`,{className:`limit-upgrade-modal__icon-circle`,"aria-hidden":!0,children:x}),g(s,`old`),(0,l.jsx)(`div`,{className:`limit-upgrade-modal__arrow-btn`,"aria-hidden":!0,children:(0,l.jsx)(d.ArrowUpOutlined,{className:`limit-upgrade-modal__arrow-icon`})}),g(c,`new`)]})]}),(0,l.jsx)(`hr`,{className:`limit-upgrade-modal__divider`}),(0,l.jsx)(`div`,{className:b?`limit-upgrade-modal__footer limit-upgrade-modal__footer--dual`:`limit-upgrade-modal__footer`,children:p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.Button,{className:`limit-upgrade-modal__cta-secondary`,onClick:p.onClick,children:p.label}),(0,l.jsx)(u.Button,{type:`primary`,className:`limit-upgrade-modal__cta`,onClick:f,children:y})]}):(0,l.jsx)(u.Button,{type:`primary`,className:`limit-upgrade-modal__cta`,onClick:f,children:y})})]})})},v={email_10_30:{id:`email_10_30`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:10,next:30,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 10→30`},email_30_300:{id:`email_30_300`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:30,next:300,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 30→300`},email_300_inf:{id:`email_300_inf`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:300,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 300→∞`},ai_10_50:{id:`ai_10_50`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:10,next:50,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 10→50`},ai_30_150:{id:`ai_30_150`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:30,next:150,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 30→150`},ai_150_inf:{id:`ai_150_inf`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:150,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 150→∞`},optimization_exceeded:{id:`optimization_exceeded`,titleKey:`You have used up your optimisation limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`optimization`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: optimization exhausted`},image_generate_exceeded:{id:`image_generate_exceeded`,titleKey:`You have used up your image generation limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`image_generate`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: image_generate exhausted`},preview_exceeded:{id:`preview_exceeded`,titleKey:`You have used up your preview (test send) limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`preview`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: preview exhausted`},link_check_exceeded:{id:`link_check_exceeded`,titleKey:`You have used up your link check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`link_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: link_check exhausted`},image_check_exceeded:{id:`image_check_exceeded`,titleKey:`You have used up your image check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`image_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: image_check exhausted`},spam_check_exceeded:{id:`spam_check_exceeded`,titleKey:`You have used up your spam check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`spam_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: spam_check exhausted`}};function y(e){return v[e]}function b(e){return e===`infinity`?`∞`:e}var x={ai:`ai_150_inf`,email_generate:`email_300_inf`,image_generate:`image_generate_exceeded`,preview:`preview_exceeded`,link_check:`link_check_exceeded`,image_check:`image_check_exceeded`,spam_check:`spam_check_exceeded`};function S(e){return!e||e.is_unlimited||e.total_limit<=0?!1:e.remaining<=0||e.used>=e.total_limit}function C(e,t){return S(t)?{presetId:x[e],previousLimit:t?.total_limit??0,nextLimit:`infinity`}:null}function w(e,t){return C(e,t)}function T(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(typeof n==`string`&&n)return n}}function E(e){for(let t=0;t<e.length;t++){let n=e[t];if(n instanceof Blob)return n}}function D(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];if(typeof r==`string`&&r&&r!==t)return r}}var O=(0,s.createContext)(null),k=e=>e.includes(`UPLOAD_IMAGE_`)||e.includes(`UPLOAD_BACKGROUND_`),A=({children:e})=>{let t=i.wi(),n=i.Ci(a.s),[r,o]=(0,s.useState)(null),c=(0,s.useRef)(null),u=(0,s.useCallback)(e=>{c.current?.(e),c.current=null},[]),d=(0,s.useCallback)(e=>(u(null),o(e),t(a.r(e.entryModal)),new Promise(e=>{c.current=e})),[t,u]);(0,s.useEffect)(()=>{k(n)||(o(null),c.current&&u(null))},[n,u]);let f=(0,s.useMemo)(()=>({request:r,openImagePicker:d,resolveImagePicker:u}),[r,d,u]);return(0,l.jsx)(O.Provider,{value:f,children:e})},j=()=>{let e=(0,s.useContext)(O);if(!e)throw Error(`useImagePicker must be used within ImagePickerProvider`);return e};function M(e){if(!e)return!1;try{return i.vi.getInstance(e,i.do)!==void 0}catch{return!1}}function N(){let e=i.Ti();return(0,s.useMemo)(()=>M(e),[e])}Object.defineProperty(t,"a",{enumerable:!0,get:function(){return D}}),Object.defineProperty(t,"c",{enumerable:!0,get:function(){return C}}),Object.defineProperty(t,"d",{enumerable:!0,get:function(){return b}}),Object.defineProperty(t,"f",{enumerable:!0,get:function(){return _}}),Object.defineProperty(t,"g",{enumerable:!0,get:function(){return f}}),Object.defineProperty(t,"h",{enumerable:!0,get:function(){return p}}),Object.defineProperty(t,"i",{enumerable:!0,get:function(){return E}}),Object.defineProperty(t,"l",{enumerable:!0,get:function(){return w}}),Object.defineProperty(t,"m",{enumerable:!0,get:function(){return m}}),Object.defineProperty(t,"n",{enumerable:!0,get:function(){return A}}),Object.defineProperty(t,"o",{enumerable:!0,get:function(){return T}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return h}}),Object.defineProperty(t,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(t,"s",{enumerable:!0,get:function(){return S}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return N}}),Object.defineProperty(t,"u",{enumerable:!0,get:function(){return y}})});
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-useblocks`,`true`),e.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Geologica:wght@300;600&display=swap";.blocks-app .ant-modal.premium-features-modal .ant-modal-content{border-radius:calc(var(--borderRadiusXL) * 2px);padding:20px 19px}.blocks-app .premium-features-modal .modal-title{text-align:center;margin-bottom:0;font-size:32px}.blocks-app .premium-features-modal .ant-carousel .slick-dots li button{opacity:.5;background:#fff}.blocks-app .premium-features-modal .ant-carousel .slick-dots li.slick-active button{opacity:1}.blocks-app .premium-features-modal .modal-subtitle{text-align:center;margin-bottom:20px;font-size:18px}.blocks-app .premium-features-modal .carousel-slider{margin-bottom:20px}.blocks-app .premium-features-modal .slick-list{border-radius:calc(var(--borderRadiusXL) * 1.5px)}.blocks-app .premium-features-modal .slick-slide{padding:0 5px}.blocks-app .premium-features-modal .carousel-slide{border-radius:calc(var(--borderRadiusXL) * 1.5px);justify-content:flex-end;align-items:center;height:480px;display:flex}.blocks-app .premium-features-modal .slide-item-image{width:50%;padding:24px 0 24px 32px}.blocks-app .premium-features-modal .slide-item-image img{border-radius:calc(var(--borderRadiusXL) * 1.3px);width:100%}.blocks-app .premium-features-modal .slide-item-content{width:50%;padding:48px}.blocks-app .premium-features-modal .slide-title{margin-bottom:48px;font-size:50px;font-weight:700;line-height:1}.blocks-app .premium-features-modal .slide-description{font-size:22px}.blocks-app .premium-features-modal .modal-buttons{justify-content:center;gap:10px;display:flex}.blocks-app .premium-features-modal .modal-buttons button{padding:0 30px}.blocks-app .limit-upgrade-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .limit-upgrade-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .limit-upgrade-modal .ant-modal-header{display:none}.blocks-app .limit-upgrade-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .limit-upgrade-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .limit-upgrade-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .limit-upgrade-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .limit-upgrade-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .limit-upgrade-modal__close .anticon{font-size:16px}.blocks-app .limit-upgrade-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .limit-upgrade-modal__title{text-align:center;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:400;line-height:130%}.blocks-app .limit-upgrade-modal__subtitle{text-align:center;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .limit-upgrade-modal__limits-row{flex-flow:wrap;justify-content:center;align-items:center;gap:8px;width:100%;max-width:320px;display:flex}.blocks-app .limit-upgrade-modal__icon-circle{box-sizing:border-box;border:1px solid var(--colorText);width:34px;height:34px;color:var(--colorText);border-radius:32px;flex:none;justify-content:center;align-items:center;padding:8px;display:flex}.blocks-app .limit-upgrade-modal__icon-circle .anticon{font-size:18px}.blocks-app .limit-upgrade-modal__icon-circle svg{flex-shrink:0;width:18px;height:18px;display:block}.blocks-app .limit-upgrade-modal__limit-old{color:#f85243;flex-shrink:0;font-size:40px;font-weight:100;line-height:100%}.blocks-app .limit-upgrade-modal__arrow-btn{color:#fff;background:#8946fb;border-radius:38px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.blocks-app .limit-upgrade-modal__arrow-icon{font-size:16px;transform:rotate(45deg)}.blocks-app .limit-upgrade-modal__limit-new{color:#7ed846;flex-shrink:0;font-size:40px;font-weight:400;line-height:100%}.blocks-app .limit-upgrade-modal__limit-new--infinity{font-size:36px;line-height:40px}.blocks-app .limit-upgrade-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .limit-upgrade-modal__footer{box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;width:100%;padding:16px 0;display:flex}.blocks-app .limit-upgrade-modal__footer--dual{flex-flow:wrap;justify-content:center;align-items:center;gap:8px;padding:16px}.blocks-app .limit-upgrade-modal__cta.ant-btn-primary{min-width:147px;height:32px;box-shadow:none;background:#2884ff;border-color:#2884ff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:400;line-height:19px}.blocks-app .limit-upgrade-modal__cta.ant-btn-primary:hover{background:#1a75f0;border-color:#1a75f0}.blocks-app .limit-upgrade-modal__cta-secondary.ant-btn-default{border-color:var(--colorBorder);min-width:147px;height:32px;color:var(--colorText);box-shadow:none;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:400;line-height:19px}.blocks-app .limit-upgrade-modal__cta-secondary.ant-btn-default:hover{color:#2884ff;border-color:#2884ff}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();__useblocks__.define(`static/core/b4510ae5.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/395cdb1b.js`,`static/core/a13fc482.js`,`static/core/52646cb0.js`,`static/core/e6c16532.js`,`react`,`react-dom`,`react-router-dom`,`react/jsx-runtime`,`antd`,`react-dom/client`,`@ant-design/icons`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./a13fc482.js"),a=e("./e6c16532.js");e("./395cdb1b.js");let o=e("./52646cb0.js"),s=e("react");s=r.l(s),e("react-dom");let c=e("react-router-dom"),l=e("react/jsx-runtime"),u=e("antd");e("react-dom/client");let d=e("@ant-design/icons");var f=({open:e,sideOnOk:t,onCancel:n,initialSlide:r=0})=>{let{__:a}=o.h(),u=(0,c.useNavigate)(),[d,f]=(0,s.useState)(r),p=(0,s.useRef)(null),m=i.wt(),h=()=>{t&&t(),u(`/billing`),n(!1)};(0,s.useEffect)(()=>{e&&p.current&&(p.current.goTo(r,!0),f(r))},[e,r]);let g=(0,s.useMemo)(()=>[{image:a(`https://cdn.useblocks.io/1351/241017_18_1sGjUaZ.png`),backgroundColor:`var(--blue-2)`,title:a(`More editing features`),description:a(`Use our visual editor to customize every element to your needs: change borders and their radius, box shadows, paddings, background, and much more.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_J7QtvZ3.png`),backgroundColor:`var(--purple-2)`,title:a(`Work with the HTML code`),description:a(`Edit the HTML version of your email template in the Code mode and see the changes in real time. Builder has no code restrictions — you can create templates of any complexity!`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_2fjDRfL.png`),backgroundColor:`var(--cyan-2)`,title:a(`AI image generation`),description:a(`Generate stunning visuals for your emails with ease. We have trained our AI model to ensure the highest quality images.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_D5C25Zp.png`),backgroundColor:`var(--green-2)`,title:a(`Stock photos and GIFs`),description:a(`Search the vast gallery of stock photos and GIFs to find visuals for any occasion. You can filter the results by image orientation, color scheme, and more.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_NDYloAO.png`),backgroundColor:`var(--magenta-2)`,title:a(`Version history`),description:a(`Check who and when made changes to the email template and, if necessary, restore one of the previous versions.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_g5mVlmh.png`),backgroundColor:`var(--red-2)`,title:a(`Image editor`),description:a(`Want to resize an image, add some text, or apply a filter? No need to leave builder! You can make all the basic changes in our image editor.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_ur8Lh3W.png`),backgroundColor:`var(--orange-2)`,title:a(`Email optimization`),description:a(`Check your email against broken links, missing alt texts, large images, and other issues that might prevent your emails from hitting inboxes.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_S5Pld9p.png`),backgroundColor:`var(--volcano-2)`,title:a(`Team collaboration`),description:a(`Share the project with your team and collaborate in real time. Add comments to individual email blocks and discuss necessary edits right in the builder.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_tGbb2j9.png`),backgroundColor:`var(--geekblue-2)`,title:a(`Email testing`),description:a(`Check how your email appears across various devices and email clients.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_gDXi4uM.png`),backgroundColor:`var(--geekblue-2)`,title:a(`AI assistant`),description:a(`Let our AI assistant enhance your email template! From creating subject lines and preheaders based on the email copy to generating the whole email with your website in mind!`)}],[a]);return(0,s.useEffect)(()=>{if(e&&p.current){p.current.goTo(r,!0),f(r);let e=g[r];m({event:`open_modal`,action:`open_premium-features_modal`,modal_id:`premium-features`,offer_id:e.title})}},[e,g,r,m]),(0,l.jsxs)(o.J,{open:e,footer:null,onCancel:n,closable:!1,className:`premium-features-modal`,classNames:{mask:`premium-features-modal-mask`},styles:{mask:{background:`rgba(0, 0, 0, 0.65)`}},width:1100,style:{maxWidth:`80%`},children:[(0,l.jsx)(o.V,{dots:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,className:`carousel-slider`,draggable:!0,autoplaySpeed:5e3,initialSlide:d,ref:p,children:g.map((e,t)=>(0,l.jsx)(`div`,{children:(0,l.jsxs)(`div`,{className:`carousel-slide`,style:{background:`${e.backgroundColor}`},children:[(0,l.jsx)(`div`,{className:`slide-item-image`,children:(0,l.jsx)(`img`,{src:e.image,alt:`slide-${t}`})}),(0,l.jsxs)(`div`,{className:`slide-item-content`,children:[(0,l.jsx)(`h3`,{className:`slide-title`,children:e.title}),(0,l.jsx)(`p`,{className:`slide-description`,children:e.description})]})]})},t))}),(0,l.jsx)(`div`,{className:`modal-subtitle`,children:a(`This and other features are available for you on any paid plan.`)}),(0,l.jsxs)(`div`,{className:`modal-buttons`,children:[(0,l.jsx)(o.It,{size:`large`,onClick:()=>n(!1),children:a(`Cancel`)}),(0,l.jsx)(o.It,{type:`primary`,size:`large`,onClick:h,style:{padding:`0 30px`},children:a(`Select plan`)})]})]})};function p(e){return e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,``),e=e.replace(/<\/?(?:script|embed|object|frameset|frame|iframe|applet|meta)[^>]*>/gi,``),e=e.replace(/ on\w+="[^"]*"/g,``),e=e.replace(/ on\w+='[^']*'/g,``),e}var m=({icon:e,...t})=>{let n=i.on();return(0,l.jsx)(o.Ft,{icon:e,configIcons:(0,s.useMemo)(()=>{if(!n?.icons)return;let e={};for(let[t,r]of Object.entries(n.icons))typeof r==`string`&&(e[t]=p(r));return Object.keys(e).length>0?e:void 0},[n?.icons]),...t})},h={ai:`AIRequests`,email_generate:`EmailEnvelope`,image_generate:`Image`,optimization:`Optimization`,preview:`SendOutlined`,link_check:`Web`,image_check:`Image`,spam_check:`Block`,projects:`FolderOpen`,emails:`EmailEnvelope`,blocks:`Block`,users:`SliderGroup`};function g(e,t){if(e==null)return null;if(typeof e==`number`||typeof e==`string`){let n=e===`∞`||e===`∞`||e===`infinity`||typeof e==`string`&&e.toLowerCase()===`infinity`;return(0,l.jsx)(`span`,{className:t===`old`?`limit-upgrade-modal__limit-old`:`limit-upgrade-modal__limit-new${n?` limit-upgrade-modal__limit-new--infinity`:``}`,children:n?`∞`:e})}return e}var _=({open:e,onClose:t,title:n,subtitle:r,usageResource:i,icon:a,previousDisplay:s,nextDisplay:c,onChangePlan:f,secondaryAction:p,changePlanLabel:_})=>{let{__:v}=o.h(),y=_??v(`Change plan`),b=!!p,x=i==null?a??null:(0,l.jsx)(m,{icon:h[i]});return(0,l.jsx)(u.Modal,{open:e,onCancel:t,footer:null,closable:!1,width:400,centered:!0,className:`limit-upgrade-modal`,destroyOnClose:!0,maskClosable:!0,children:(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__wrap`,children:[(0,l.jsx)(`div`,{className:`limit-upgrade-modal__header`,children:(0,l.jsx)(`button`,{type:`button`,className:`limit-upgrade-modal__close`,onClick:t,"aria-label":v(`Close`),children:(0,l.jsx)(d.CloseOutlined,{})})}),(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__body`,children:[(0,l.jsx)(`h1`,{className:`limit-upgrade-modal__title`,children:n}),(0,l.jsx)(`p`,{className:`limit-upgrade-modal__subtitle`,children:r}),(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__limits-row`,children:[(0,l.jsx)(`div`,{className:`limit-upgrade-modal__icon-circle`,"aria-hidden":!0,children:x}),g(s,`old`),(0,l.jsx)(`div`,{className:`limit-upgrade-modal__arrow-btn`,"aria-hidden":!0,children:(0,l.jsx)(d.ArrowUpOutlined,{className:`limit-upgrade-modal__arrow-icon`})}),g(c,`new`)]})]}),(0,l.jsx)(`hr`,{className:`limit-upgrade-modal__divider`}),(0,l.jsx)(`div`,{className:b?`limit-upgrade-modal__footer limit-upgrade-modal__footer--dual`:`limit-upgrade-modal__footer`,children:p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.Button,{className:`limit-upgrade-modal__cta-secondary`,onClick:p.onClick,children:p.label}),(0,l.jsx)(u.Button,{type:`primary`,className:`limit-upgrade-modal__cta`,onClick:f,children:y})]}):(0,l.jsx)(u.Button,{type:`primary`,className:`limit-upgrade-modal__cta`,onClick:f,children:y})})]})})},v={email_10_30:{id:`email_10_30`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:10,next:30,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 10→30`},email_30_300:{id:`email_30_300`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:30,next:300,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 30→300`},email_300_inf:{id:`email_300_inf`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:300,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 300→∞`},ai_10_50:{id:`ai_10_50`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:10,next:50,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 10→50`},ai_30_150:{id:`ai_30_150`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:30,next:150,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 30→150`},ai_150_inf:{id:`ai_150_inf`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:150,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 150→∞`},optimization_exceeded:{id:`optimization_exceeded`,titleKey:`You have used up your optimisation limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`optimization`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: optimization exhausted`},image_generate_exceeded:{id:`image_generate_exceeded`,titleKey:`You have used up your image generation limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`image_generate`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: image_generate exhausted`},preview_exceeded:{id:`preview_exceeded`,titleKey:`You have used up your preview (test send) limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`preview`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: preview exhausted`},link_check_exceeded:{id:`link_check_exceeded`,titleKey:`You have used up your link check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`link_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: link_check exhausted`},image_check_exceeded:{id:`image_check_exceeded`,titleKey:`You have used up your image check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`image_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: image_check exhausted`},spam_check_exceeded:{id:`spam_check_exceeded`,titleKey:`You have used up your spam check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`spam_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: spam_check exhausted`}};function y(e){return v[e]}function b(e){return e===`infinity`?`∞`:e}var x={ai:`ai_150_inf`,email_generate:`email_300_inf`,image_generate:`image_generate_exceeded`,preview:`preview_exceeded`,link_check:`link_check_exceeded`,image_check:`image_check_exceeded`,spam_check:`spam_check_exceeded`};function S(e){return!e||e.is_unlimited||e.total_limit<=0?!1:e.remaining<=0||e.used>=e.total_limit}function C(e,t){return S(t)?{presetId:x[e],previousLimit:t?.total_limit??0,nextLimit:`infinity`}:null}function w(e,t){return C(e,t)}function T(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(typeof n==`string`&&n)return n}}function E(e){for(let t=0;t<e.length;t++){let n=e[t];if(n instanceof Blob)return n}}function D(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];if(typeof r==`string`&&r&&r!==t)return r}}var O=(0,s.createContext)(null),k=e=>e.includes(`UPLOAD_IMAGE_`)||e.includes(`UPLOAD_BACKGROUND_`),A=({children:e})=>{let t=i.wi(),n=i.Ci(a.s),[r,o]=(0,s.useState)(null),c=(0,s.useRef)(null),u=(0,s.useCallback)(e=>{c.current?.(e),c.current=null},[]),d=(0,s.useCallback)(e=>(u(null),o(e),t(a.r(e.entryModal)),new Promise(e=>{c.current=e})),[t,u]);(0,s.useEffect)(()=>{k(n)||(o(null),c.current&&u(null))},[n,u]);let f=(0,s.useMemo)(()=>({request:r,openImagePicker:d,resolveImagePicker:u}),[r,d,u]);return(0,l.jsx)(O.Provider,{value:f,children:e})},j=()=>{let e=(0,s.useContext)(O);if(!e)throw Error(`useImagePicker must be used within ImagePickerProvider`);return e};function M(e){if(!e)return!1;try{return i.vi.getInstance(e,i.do)!==void 0}catch{return!1}}function N(){let e=i.Ti();return(0,s.useMemo)(()=>M(e),[e])}Object.defineProperty(t,"a",{enumerable:!0,get:function(){return D}}),Object.defineProperty(t,"c",{enumerable:!0,get:function(){return C}}),Object.defineProperty(t,"d",{enumerable:!0,get:function(){return b}}),Object.defineProperty(t,"f",{enumerable:!0,get:function(){return _}}),Object.defineProperty(t,"g",{enumerable:!0,get:function(){return f}}),Object.defineProperty(t,"h",{enumerable:!0,get:function(){return p}}),Object.defineProperty(t,"i",{enumerable:!0,get:function(){return E}}),Object.defineProperty(t,"l",{enumerable:!0,get:function(){return w}}),Object.defineProperty(t,"m",{enumerable:!0,get:function(){return m}}),Object.defineProperty(t,"n",{enumerable:!0,get:function(){return A}}),Object.defineProperty(t,"o",{enumerable:!0,get:function(){return T}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return h}}),Object.defineProperty(t,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(t,"s",{enumerable:!0,get:function(){return S}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return N}}),Object.defineProperty(t,"u",{enumerable:!0,get:function(){return y}})});
@@ -1 +1 @@
1
- __useblocks__.define(`static/core/d241e8cb.js`,[`require`,`exports`,`module`,`static/core/9b1a1232.js`],function(e,t,n){let r=e("./9b1a1232.js");var i=r.oi({invalidateBlockId:null,isCodeMode:!1,codeModeDirection:`right`,editorThemeColor:`light`,isSettingsDisabled:!1,settings:{width:``},elementSettings:{},searchFilters:{},block:{id:void 0,isNew:!1,subject:``,description:``,html:``,project:void 0,project_title:``,project_author:void 0,tags:[],type:`Other`,title:null,isAmp:!1},monacoDidMount:!1}),a=`blockSlice`,o=r.Ai({name:a,initialState:i,reducers:{switchCodeMode:e=>{e.isCodeMode=!e.isCodeMode},setEditorThemeColor:(e,t)=>{e.editorThemeColor=t.payload},setBlockSettings:(e,t)=>{Object.assign(e,{...e,settings:t.payload,isSettingsDisabled:!1})},setBlockSettingsDisable:(e,t)=>{e.isSettingsDisabled=t.payload},setElementSettings:(e,t)=>{e.elementSettings=t.payload},setSearchFilters:(e,t)=>{e.searchFilters=t.payload},setBlockHtml:(e,t)=>{e.block.html=t.payload},resetBlockSlice:()=>i,setBlockIsAmp:(e,t)=>{e.block.isAmp=t.payload}},extraReducers:e=>{e.addMatcher(e=>e.type===`blocksApi/queries/queryResultPatched`,(e,t)=>{let n=t.payload.queryCacheKey.match(/\(([0-9]+)\)/),r=t.payload?.patches[0];if(r?.path?.[0]&&(e.block[r?.path[0]]=r.value),n?.[1]&&(e.invalidateBlockId=n[1]),t.payload.queryCacheKey.startsWith(`getBlock`)){let n=t.payload?.patches[0];n?.path?.[0]&&(e.block[n?.path[0]]=n.value)}}),e.addMatcher(e=>e.type===`blocksApi/invalidateTags`,(e,t)=>{if(t.payload[0].id===+e.invalidateBlockId)return{...i,isCodeMode:e?.isCodeMode,codeModeDirection:e.codeModeDirection}}),e.addMatcher(r.Hn.endpoints.editBlock.matchFulfilled,(e,{payload:t})=>{e.invalidateBlockId=null,e.block={...e.block,...t,renderGuid:e.block.renderGuid}}),e.addMatcher(r.Hn.endpoints.autoSaveBlock.matchFulfilled,(e,t)=>{e?.block.id?.toString()===t.payload.id?.toString()&&(e.block.html=t.payload.html)}),e.addMatcher(r.Hn.endpoints.getBlock.matchFulfilled,(e,{payload:t})=>{e.block={...i.block,...t}})}}),{switchCodeMode:s,setEditorThemeColor:c,setBlockSettings:l,setElementSettings:u,setBlockSettingsDisable:d,setSearchFilters:f,setBlockHtml:p,resetBlockSlice:m,setBlockIsAmp:h}=o.actions,g=e=>e[a].block,_=e=>e[a].isCodeMode,v=e=>e[a].settings,y=e=>e[a].searchFilters,b=e=>e[a].elementSettings,x=e=>e[a].editorThemeColor,S=e=>e[a].isSettingsDisabled,C=r.oi({isCollapsed:!0,isMonacoFocusing:!1}),w=`defaultModePanesSlice`,T=r.Ai({name:w,initialState:C,reducers:{setMonacoFocusing:(e,t)=>{e.isMonacoFocusing=t.payload},resetPanes:()=>C}}),{resetPanes:E,setMonacoFocusing:D}=T.actions,O=e=>e[w].isMonacoFocusing;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u}}),Object.defineProperty(t,"a",{enumerable:!0,get:function(){return o}}),Object.defineProperty(t,"c",{enumerable:!0,get:function(){return y}}),Object.defineProperty(t,"d",{enumerable:!0,get:function(){return b}}),Object.defineProperty(t,"f",{enumerable:!0,get:function(){return _}}),Object.defineProperty(t,"g",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"h",{enumerable:!0,get:function(){return d}}),Object.defineProperty(t,"i",{enumerable:!0,get:function(){return D}}),Object.defineProperty(t,"l",{enumerable:!0,get:function(){return v}}),Object.defineProperty(t,"m",{enumerable:!0,get:function(){return l}}),Object.defineProperty(t,"n",{enumerable:!0,get:function(){return E}}),Object.defineProperty(t,"o",{enumerable:!0,get:function(){return m}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return S}}),Object.defineProperty(t,"r",{enumerable:!0,get:function(){return O}}),Object.defineProperty(t,"s",{enumerable:!0,get:function(){return g}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return T}}),Object.defineProperty(t,"u",{enumerable:!0,get:function(){return x}}),Object.defineProperty(t,"v",{enumerable:!0,get:function(){return f}})});
1
+ __useblocks__.define(`static/core/d37f7419.js`,[`require`,`exports`,`module`,`static/core/a13fc482.js`],function(e,t,n){let r=e("./a13fc482.js");var i=r.oi({invalidateBlockId:null,isCodeMode:!1,codeModeDirection:`right`,editorThemeColor:`light`,isSettingsDisabled:!1,settings:{width:``},elementSettings:{},searchFilters:{},block:{id:void 0,isNew:!1,subject:``,description:``,html:``,project:void 0,project_title:``,project_author:void 0,tags:[],type:`Other`,title:null,isAmp:!1},monacoDidMount:!1}),a=`blockSlice`,o=r.Ai({name:a,initialState:i,reducers:{switchCodeMode:e=>{e.isCodeMode=!e.isCodeMode},setEditorThemeColor:(e,t)=>{e.editorThemeColor=t.payload},setBlockSettings:(e,t)=>{Object.assign(e,{...e,settings:t.payload,isSettingsDisabled:!1})},setBlockSettingsDisable:(e,t)=>{e.isSettingsDisabled=t.payload},setElementSettings:(e,t)=>{e.elementSettings=t.payload},setSearchFilters:(e,t)=>{e.searchFilters=t.payload},setBlockHtml:(e,t)=>{e.block.html=t.payload},resetBlockSlice:()=>i,setBlockIsAmp:(e,t)=>{e.block.isAmp=t.payload}},extraReducers:e=>{e.addMatcher(e=>e.type===`blocksApi/queries/queryResultPatched`,(e,t)=>{let n=t.payload.queryCacheKey.match(/\(([0-9]+)\)/),r=t.payload?.patches[0];if(r?.path?.[0]&&(e.block[r?.path[0]]=r.value),n?.[1]&&(e.invalidateBlockId=n[1]),t.payload.queryCacheKey.startsWith(`getBlock`)){let n=t.payload?.patches[0];n?.path?.[0]&&(e.block[n?.path[0]]=n.value)}}),e.addMatcher(e=>e.type===`blocksApi/invalidateTags`,(e,t)=>{if(t.payload[0].id===+e.invalidateBlockId)return{...i,isCodeMode:e?.isCodeMode,codeModeDirection:e.codeModeDirection}}),e.addMatcher(r.Hn.endpoints.editBlock.matchFulfilled,(e,{payload:t})=>{e.invalidateBlockId=null,e.block={...e.block,...t,renderGuid:e.block.renderGuid}}),e.addMatcher(r.Hn.endpoints.autoSaveBlock.matchFulfilled,(e,t)=>{e?.block.id?.toString()===t.payload.id?.toString()&&(e.block.html=t.payload.html)}),e.addMatcher(r.Hn.endpoints.getBlock.matchFulfilled,(e,{payload:t})=>{e.block={...i.block,...t}})}}),{switchCodeMode:s,setEditorThemeColor:c,setBlockSettings:l,setElementSettings:u,setBlockSettingsDisable:d,setSearchFilters:f,setBlockHtml:p,resetBlockSlice:m,setBlockIsAmp:h}=o.actions,g=e=>e[a].block,_=e=>e[a].isCodeMode,v=e=>e[a].settings,y=e=>e[a].searchFilters,b=e=>e[a].elementSettings,x=e=>e[a].editorThemeColor,S=e=>e[a].isSettingsDisabled,C=r.oi({isCollapsed:!0,isMonacoFocusing:!1}),w=`defaultModePanesSlice`,T=r.Ai({name:w,initialState:C,reducers:{setMonacoFocusing:(e,t)=>{e.isMonacoFocusing=t.payload},resetPanes:()=>C}}),{resetPanes:E,setMonacoFocusing:D}=T.actions,O=e=>e[w].isMonacoFocusing;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u}}),Object.defineProperty(t,"a",{enumerable:!0,get:function(){return o}}),Object.defineProperty(t,"c",{enumerable:!0,get:function(){return y}}),Object.defineProperty(t,"d",{enumerable:!0,get:function(){return b}}),Object.defineProperty(t,"f",{enumerable:!0,get:function(){return _}}),Object.defineProperty(t,"g",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"h",{enumerable:!0,get:function(){return d}}),Object.defineProperty(t,"i",{enumerable:!0,get:function(){return D}}),Object.defineProperty(t,"l",{enumerable:!0,get:function(){return v}}),Object.defineProperty(t,"m",{enumerable:!0,get:function(){return l}}),Object.defineProperty(t,"n",{enumerable:!0,get:function(){return E}}),Object.defineProperty(t,"o",{enumerable:!0,get:function(){return m}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return S}}),Object.defineProperty(t,"r",{enumerable:!0,get:function(){return O}}),Object.defineProperty(t,"s",{enumerable:!0,get:function(){return g}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return T}}),Object.defineProperty(t,"u",{enumerable:!0,get:function(){return x}}),Object.defineProperty(t,"v",{enumerable:!0,get:function(){return f}})});
@@ -1,3 +1,3 @@
1
- __useblocks__.define(`static/core/4b2f0647.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/9b1a1232.js`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./9b1a1232.js");function a(e){return function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...e(t)||{}}}}function o(e){return t=>{let n={},r=[];for(let n of e)r.push(n(t));for(let e of r)Object.assign(n,e.instance);return{instance:n,setOptions:async e=>{for(let t of r)await t.setOptions(e)},dispose:()=>{for(let e of r)e.dispose()}}}}function s(){let e=new Date;return e.valueOf()-e.getTimezoneOffset()*60*1e3}function c(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(e.length+(4-e.length%4)%4,`=`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return new TextDecoder().decode(r)}function l(e){let[t,n,r]=e.split(`.`),i=JSON.parse(c(n));return{exp:i.exp,createdAt:i.iat,data:i}}var u=i.Ro();function d(e,t,n,r){e.inject(u,void 0),e.injectFactory(u,async(a,o)=>{try{let a=o?await o:void 0;if(!a){let t=e.getInstance(i.fo);t&&(a=await t)}return t?!a||(l(a)?.exp??0)*1e3<=s()?await t(n,r,a):a:``}catch{return``}},!0)}var f=a(e=>{let t,n,r;return e.addService(i.Va,{execute:async n=>{if(t){let t=await e.getInstanceAsync(u);t&&n.headers.append(`authorization`,`Bearer ${t}`)}}}),{setOptions(a){let o=!i.za(n,a.user),s=r!==a.project;(t!==a.getAuthToken||o||s)&&(t=a.getAuthToken,n=a.user,r=a.project,d(e,t,a.user,a.project))}}});function p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var m={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function h(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=p({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&=i.expires.toUTCString(),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(r[s]=e.read(o,s),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,p({},t,{expires:-1}))},withAttributes:function(e){return h(this.converter,p({},this.attributes,e))},withConverter:function(e){return h(p({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var g=h(m,{path:`/`}),_=r.a(((e,t)=>{(function(n){"use strict";var r=n.setTimeout,i=n.clearTimeout,a=n.XMLHttpRequest,o=n.XDomainRequest,s=n.ActiveXObject,c=n.EventSource,l=n.document,u=n.Promise,d=n.fetch,f=n.Response,p=n.TextDecoder,m=n.TextEncoder,h=n.AbortController;if(typeof window<`u`&&l!==void 0&&!(`readyState`in l)&&l.body==null&&(l.readyState=`loading`,window.addEventListener(`load`,function(e){l.readyState=`complete`},!1)),a==null&&s!=null&&(a=function(){return new s(`Microsoft.XMLHTTP`)}),Object.create??(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return new Date().getTime()}),h==null){var g=d;d=function(e,t){var n=t.signal;return g(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},h=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(e){function t(e,t,n){if(n===1)return e>=128>>t&&e<<t<=2047;if(n===2)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(n===3)return e>=65536>>t&&e<<t<=1114111;throw Error()}function n(e,t){if(e===6)return t>>6>15?3:t>31?2:1;if(e===12)return t>15?3:2;if(e===18)return 3;throw Error()}for(var r=65533,i=``,a=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var c=e[s];a!==0&&(c<128||c>191||!t(o<<6|c&63,a-6,n(a,o)))&&(a=0,o=r,i+=String.fromCharCode(o)),a===0?(c>=0&&c<=127?(a=0,o=c):c>=192&&c<=223?(a=6,o=c&31):c>=224&&c<=239?(a=12,o=c&15):c>=240&&c<=247?(a=18,o=c&7):(a=0,o=r),a!==0&&!t(o,a,n(a,o))&&(a=0,o=r)):(a-=6,o=o<<6|c&63),a===0&&(o<=65535?i+=String.fromCharCode(o):(i+=String.fromCharCode(55296+(o-65535-1>>10)),i+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=a,this.codePoint=o,i},(p==null||m==null||!function(){try{return new p().decode(new m().encode(`test`),{stream:!0})===`test`}catch{}return!1}())&&(p=_);var v=function(){};function y(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText=``,this.responseText=``,this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType=``,this._xhr=e,this._sendTimeout=0,this._abort=v}y.prototype.open=function(e,t){this._abort(!0);var n=this,o=this._xhr,s=1,c=0;this._abort=function(e){n._sendTimeout!==0&&(i(n._sendTimeout),n._sendTimeout=0),(s===1||s===2||s===3)&&(s=4,o.onload=v,o.onerror=v,o.onabort=v,o.onprogress=v,o.onreadystatechange=v,o.abort(),c!==0&&(i(c),c=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),s=0};var l=function(){if(s===1){var e=0,t=``,r=void 0;if(`contentType`in o)e=200,t=`OK`,r=o.contentType;else try{e=o.status,t=o.statusText,r=o.getResponseHeader(`Content-Type`)}catch{e=0,t=``,r=void 0}e!==0&&(s=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=r,n.onreadystatechange())}},u=function(){if(l(),s===2||s===3){s=3;var e=``;try{e=o.responseText}catch{}n.readyState=3,n.responseText=e,n.onprogress()}},d=function(e,t){if((t==null||t.preventDefault==null)&&(t={preventDefault:v}),u(),s===1||s===2||s===3){if(s=4,c!==0&&(i(c),c=0),n.readyState=4,e===`load`)n.onload(t);else if(e===`error`)n.onerror(t);else if(e===`abort`)n.onabort(t);else throw TypeError();n.onreadystatechange()}},f=function(e){o!=null&&(o.readyState===4?(!(`onload`in o)||!(`onerror`in o)||!(`onabort`in o))&&d(o.responseText===``?`error`:`load`,e):o.readyState===3?`onprogress`in o||u():o.readyState===2&&l())},p=function(){c=r(function(){p()},500),o.readyState===3&&u()};`onload`in o&&(o.onload=function(e){d(`load`,e)}),`onerror`in o&&(o.onerror=function(e){d(`error`,e)}),`onabort`in o&&(o.onabort=function(e){d(`abort`,e)}),`onprogress`in o&&(o.onprogress=u),`onreadystatechange`in o&&(o.onreadystatechange=function(e){f(e)}),(`contentType`in o||!(`ontimeout`in a.prototype))&&(t+=(t.indexOf(`?`)===-1?`?`:`&`)+`padding=true`),o.open(e,t,!0),`readyState`in o&&(c=r(function(){p()},0))},y.prototype.abort=function(){this._abort(!1)},y.prototype.getResponseHeader=function(e){return this._contentType},y.prototype.setRequestHeader=function(e,t){var n=this._xhr;`setRequestHeader`in n&&n.setRequestHeader(e,t)},y.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders==null?``:this._xhr.getAllResponseHeaders()||``},y.prototype.send=function(){if((!(`ontimeout`in a.prototype)||!(`sendAsBinary`in a.prototype)&&!(`mozAnon`in a.prototype))&&l!=null&&l.readyState!=null&&l.readyState!==`complete`){var e=this;e._sendTimeout=r(function(){e._sendTimeout=0,e.send()},4);return}var t=this._xhr;`withCredentials`in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(e){throw e}};function b(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function x(e){for(var t=Object.create(null),n=e.split(`\r
1
+ __useblocks__.define(`static/core/e6c16532.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/a13fc482.js`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./a13fc482.js");function a(e){return function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...e(t)||{}}}}function o(e){return t=>{let n={},r=[];for(let n of e)r.push(n(t));for(let e of r)Object.assign(n,e.instance);return{instance:n,setOptions:async e=>{for(let t of r)await t.setOptions(e)},dispose:()=>{for(let e of r)e.dispose()}}}}function s(){let e=new Date;return e.valueOf()-e.getTimezoneOffset()*60*1e3}function c(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(e.length+(4-e.length%4)%4,`=`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return new TextDecoder().decode(r)}function l(e){let[t,n,r]=e.split(`.`),i=JSON.parse(c(n));return{exp:i.exp,createdAt:i.iat,data:i}}var u=i.Ro();function d(e,t,n,r){e.inject(u,void 0),e.injectFactory(u,async(a,o)=>{try{let a=o?await o:void 0;if(!a){let t=e.getInstance(i.fo);t&&(a=await t)}return t?!a||(l(a)?.exp??0)*1e3<=s()?await t(n,r,a):a:``}catch{return``}},!0)}var f=a(e=>{let t,n,r;return e.addService(i.Va,{execute:async n=>{if(t){let t=await e.getInstanceAsync(u);t&&n.headers.append(`authorization`,`Bearer ${t}`)}}}),{setOptions(a){let o=!i.za(n,a.user),s=r!==a.project;(t!==a.getAuthToken||o||s)&&(t=a.getAuthToken,n=a.user,r=a.project,d(e,t,a.user,a.project))}}});function p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var m={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function h(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=p({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&=i.expires.toUTCString(),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(r[s]=e.read(o,s),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,p({},t,{expires:-1}))},withAttributes:function(e){return h(this.converter,p({},this.attributes,e))},withConverter:function(e){return h(p({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var g=h(m,{path:`/`}),_=r.a(((e,t)=>{(function(n){"use strict";var r=n.setTimeout,i=n.clearTimeout,a=n.XMLHttpRequest,o=n.XDomainRequest,s=n.ActiveXObject,c=n.EventSource,l=n.document,u=n.Promise,d=n.fetch,f=n.Response,p=n.TextDecoder,m=n.TextEncoder,h=n.AbortController;if(typeof window<`u`&&l!==void 0&&!(`readyState`in l)&&l.body==null&&(l.readyState=`loading`,window.addEventListener(`load`,function(e){l.readyState=`complete`},!1)),a==null&&s!=null&&(a=function(){return new s(`Microsoft.XMLHTTP`)}),Object.create??(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return new Date().getTime()}),h==null){var g=d;d=function(e,t){var n=t.signal;return g(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},h=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(e){function t(e,t,n){if(n===1)return e>=128>>t&&e<<t<=2047;if(n===2)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(n===3)return e>=65536>>t&&e<<t<=1114111;throw Error()}function n(e,t){if(e===6)return t>>6>15?3:t>31?2:1;if(e===12)return t>15?3:2;if(e===18)return 3;throw Error()}for(var r=65533,i=``,a=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var c=e[s];a!==0&&(c<128||c>191||!t(o<<6|c&63,a-6,n(a,o)))&&(a=0,o=r,i+=String.fromCharCode(o)),a===0?(c>=0&&c<=127?(a=0,o=c):c>=192&&c<=223?(a=6,o=c&31):c>=224&&c<=239?(a=12,o=c&15):c>=240&&c<=247?(a=18,o=c&7):(a=0,o=r),a!==0&&!t(o,a,n(a,o))&&(a=0,o=r)):(a-=6,o=o<<6|c&63),a===0&&(o<=65535?i+=String.fromCharCode(o):(i+=String.fromCharCode(55296+(o-65535-1>>10)),i+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=a,this.codePoint=o,i},(p==null||m==null||!function(){try{return new p().decode(new m().encode(`test`),{stream:!0})===`test`}catch{}return!1}())&&(p=_);var v=function(){};function y(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText=``,this.responseText=``,this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType=``,this._xhr=e,this._sendTimeout=0,this._abort=v}y.prototype.open=function(e,t){this._abort(!0);var n=this,o=this._xhr,s=1,c=0;this._abort=function(e){n._sendTimeout!==0&&(i(n._sendTimeout),n._sendTimeout=0),(s===1||s===2||s===3)&&(s=4,o.onload=v,o.onerror=v,o.onabort=v,o.onprogress=v,o.onreadystatechange=v,o.abort(),c!==0&&(i(c),c=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),s=0};var l=function(){if(s===1){var e=0,t=``,r=void 0;if(`contentType`in o)e=200,t=`OK`,r=o.contentType;else try{e=o.status,t=o.statusText,r=o.getResponseHeader(`Content-Type`)}catch{e=0,t=``,r=void 0}e!==0&&(s=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=r,n.onreadystatechange())}},u=function(){if(l(),s===2||s===3){s=3;var e=``;try{e=o.responseText}catch{}n.readyState=3,n.responseText=e,n.onprogress()}},d=function(e,t){if((t==null||t.preventDefault==null)&&(t={preventDefault:v}),u(),s===1||s===2||s===3){if(s=4,c!==0&&(i(c),c=0),n.readyState=4,e===`load`)n.onload(t);else if(e===`error`)n.onerror(t);else if(e===`abort`)n.onabort(t);else throw TypeError();n.onreadystatechange()}},f=function(e){o!=null&&(o.readyState===4?(!(`onload`in o)||!(`onerror`in o)||!(`onabort`in o))&&d(o.responseText===``?`error`:`load`,e):o.readyState===3?`onprogress`in o||u():o.readyState===2&&l())},p=function(){c=r(function(){p()},500),o.readyState===3&&u()};`onload`in o&&(o.onload=function(e){d(`load`,e)}),`onerror`in o&&(o.onerror=function(e){d(`error`,e)}),`onabort`in o&&(o.onabort=function(e){d(`abort`,e)}),`onprogress`in o&&(o.onprogress=u),`onreadystatechange`in o&&(o.onreadystatechange=function(e){f(e)}),(`contentType`in o||!(`ontimeout`in a.prototype))&&(t+=(t.indexOf(`?`)===-1?`?`:`&`)+`padding=true`),o.open(e,t,!0),`readyState`in o&&(c=r(function(){p()},0))},y.prototype.abort=function(){this._abort(!1)},y.prototype.getResponseHeader=function(e){return this._contentType},y.prototype.setRequestHeader=function(e,t){var n=this._xhr;`setRequestHeader`in n&&n.setRequestHeader(e,t)},y.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders==null?``:this._xhr.getAllResponseHeaders()||``},y.prototype.send=function(){if((!(`ontimeout`in a.prototype)||!(`sendAsBinary`in a.prototype)&&!(`mozAnon`in a.prototype))&&l!=null&&l.readyState!=null&&l.readyState!==`complete`){var e=this;e._sendTimeout=r(function(){e._sendTimeout=0,e.send()},4);return}var t=this._xhr;`withCredentials`in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(e){throw e}};function b(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function x(e){for(var t=Object.create(null),n=e.split(`\r
2
2
  `),r=0;r<n.length;r+=1){var i=n[r].split(`: `),a=i.shift(),o=i.join(`: `);t[b(a)]=o}this._map=t}x.prototype.get=function(e){return this._map[b(e)]},a!=null&&a.HEADERS_RECEIVED==null&&(a.HEADERS_RECEIVED=2);function S(){}S.prototype.open=function(e,t,n,r,i,o,s){e.open(`GET`,i);var c=0;for(var l in e.onprogress=function(){var t=e.responseText.slice(c);c+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(Error(`NetworkError`))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===a.HEADERS_RECEIVED){var n=e.status,r=e.statusText;t(n,r,e.getResponseHeader(`Content-Type`),new x(e.getAllResponseHeaders()))}},e.withCredentials=o,s)Object.prototype.hasOwnProperty.call(s,l)&&e.setRequestHeader(l,s[l]);return e.send(),e};function C(e){this._headers=e}C.prototype.get=function(e){return this._headers.get(e)};function w(){}w.prototype.open=function(e,t,n,r,i,a,o){var s=null,c=new h,l=c.signal,f=new p;return d(i,{headers:o,credentials:a?`include`:`same-origin`,signal:l,cache:`no-store`}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get(`Content-Type`),new C(e.headers)),new u(function(e,t){var r=function(){s.read().then(function(t){t.done?e(void 0):(n(f.decode(t.value,{stream:!0})),r())}).catch(function(e){t(e)})};r()})}).catch(function(e){if(e.name!==`AbortError`)return e}).then(function(e){r(e)}),{abort:function(){s?.cancel(),c.abort()}}};function T(){this._listeners=Object.create(null)}function E(e){r(function(){throw e},0)}T.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(t!=null)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{typeof i.handleEvent==`function`?i.handleEvent(e):i.call(this,e)}catch(e){E(e)}}},T.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];r??(r=[],n[e]=r);for(var i=!1,a=0;a<r.length;a+=1)r[a]===t&&(i=!0);i||r.push(t)},T.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(r!=null){for(var i=[],a=0;a<r.length;a+=1)r[a]!==t&&i.push(r[a]);i.length===0?delete n[e]:n[e]=i}};function D(e){this.type=e,this.target=void 0}function O(e,t){D.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}O.prototype=Object.create(D.prototype);function k(e,t){D.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}k.prototype=Object.create(D.prototype);function A(e,t){D.call(this,e),this.error=t.error}A.prototype=Object.create(D.prototype);var j=-1,M=0,N=1,P=2,F=-1,I=0,L=1,R=2,z=3,B=/^text\/event\-stream(;.*)?$/i,V=1e3,H=18e6,U=function(e,t){var n=e==null?t:parseInt(e,10);return n!==n&&(n=t),W(n)},W=function(e){return Math.min(Math.max(e,V),H)},G=function(e,t,n){try{typeof t==`function`&&t.call(e,n)}catch(e){E(e)}};function K(e,t){T.call(this),t||={},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,J(this,e,t)}function ee(){return a!=null&&`withCredentials`in a.prototype||o==null?new a:new o}var q=d!=null&&f!=null&&`body`in f.prototype;function J(e,t,n){t=String(t);var a=!!n.withCredentials,o=n.lastEventIdQueryParameterName||`lastEventId`,s=W(1e3),c=U(n.heartbeatTimeout,45e3),l=``,u=s,d=!1,f=0,p=n.headers||{},m=n.Transport,h=q&&m==null?void 0:new y(m==null?ee():new m),g=m!=null&&typeof m!=`string`?new m:h==null?new w:new S,_=void 0,v=0,b=j,x=``,C=``,T=``,E=``,D=I,V=0,H=0,K=function(t,n,r,i){if(b===M)if(t===200&&r!=null&&B.test(r)){b=N,d=Date.now(),u=s,e.readyState=N;var a=new k(`open`,{status:t,statusText:n,headers:i});e.dispatchEvent(a),G(e,e.onopen,a)}else{t===200?``+(r==null?`-`:r.replace(/\s+/g,` `)):(n&&=n.replace(/\s+/g,` `),``+t+n),X();var a=new k(`error`,{status:t,statusText:n,headers:i});e.dispatchEvent(a),G(e,e.onerror,a)}},J=function(t){if(b===N){for(var n=-1,a=0;a<t.length;a+=1){var o=t.charCodeAt(a);(o===10||o===13)&&(n=a)}var p=(n===-1?``:E)+t.slice(0,n+1);E=(n===-1?E:``)+t.slice(n+1),t!==``&&(d=Date.now(),f+=t.length);for(var m=0;m<p.length;m+=1){var o=p.charCodeAt(m);if(D===F&&o===10)D=I;else if(D===F&&(D=I),o===13||o===10){if(D!==I){D===L&&(H=m+1);var h=p.slice(V,H-1),g=p.slice(H+ +(H<m&&p.charCodeAt(H)===32),m);h===`data`?(x+=`
3
3
  `,x+=g):h===`id`?C=g:h===`event`?T=g:h===`retry`?(s=U(g,s),u=s):h===`heartbeatTimeout`&&(c=U(g,c),v!==0&&(i(v),v=r(function(){Z()},c)))}if(D===I){if(x!==``){l=C,T===``&&(T=`message`);var _=new O(T,{data:x.slice(1),lastEventId:C});if(e.dispatchEvent(_),T===`open`?G(e,e.onopen,_):T===`message`?G(e,e.onmessage,_):T===`error`&&G(e,e.onerror,_),b===P)return}x=``,T=``}D=o===13?F:I}else D===I&&(V=m,D=L),D===L?o===58&&(H=m+1,D=R):D===R&&(D=z)}}},Y=function(t){if(b===N||b===M){b=j,v!==0&&(i(v),v=0),v=r(function(){Z()},u),u=W(Math.min(s*16,u*2)),e.readyState=M;var n=new A(`error`,{error:t});e.dispatchEvent(n),G(e,e.onerror,n)}},X=function(){b=P,_!=null&&(_.abort(),_=void 0),v!==0&&(i(v),v=0),e.readyState=P},Z=function(){if(v=0,b!==j){if(!d&&_!=null)Y(Error(`No activity within `+c+` milliseconds. `+(b===M?`No response received.`:f+` chars received.`)+` Reconnecting.`)),_!=null&&(_.abort(),_=void 0);else{var n=Math.max((d||Date.now())+c-Date.now(),1);d=!1,v=r(function(){Z()},n)}return}d=!1,f=0,v=r(function(){Z()},c),b=M,x=``,T=``,C=l,E=``,V=0,H=0,D=I;var i=t;if(t.slice(0,5)!==`data:`&&t.slice(0,5)!==`blob:`&&l!==``){var a=t.indexOf(`?`);i=a===-1?t:t.slice(0,a+1)+t.slice(a+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===o?``:e}),i+=(t.indexOf(`?`)===-1?`?`:`&`)+o+`=`+encodeURIComponent(l)}var s=e.withCredentials,u={};u.Accept=`text/event-stream`;var p=e.headers;if(p!=null)for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(u[m]=p[m]);try{_=g.open(h,K,J,Y,i,s,u)}catch(e){throw X(),e}};e.url=t,e.readyState=M,e.withCredentials=a,e.headers=p,e._close=X,Z()}K.prototype=Object.create(T.prototype),K.prototype.CONNECTING=M,K.prototype.OPEN=N,K.prototype.CLOSED=P,K.prototype.close=function(){this._close()},K.CONNECTING=M,K.OPEN=N,K.CLOSED=P,K.prototype.withCredentials=void 0;var Y=c;a!=null&&(c==null||!(`withCredentials`in c.prototype))&&(Y=K),(function(r){if(typeof t==`object`&&typeof t.exports==`object`){var i=r(e);i!==void 0&&(t.exports=i)}else typeof define==`function`&&define.amd?define([`exports`],r):r(n)})(function(e){e.EventSourcePolyfill=K,e.NativeEventSource=c,e.EventSource=Y})})(typeof globalThis>`u`?typeof window<`u`?window:typeof self<`u`?self:e:globalThis)})),v=_();function y({candidates:e,headers:t,createEventSource:n,onMessage:r,onError:i}){let a=e.filter(Boolean),o=!1,s=null,c=()=>{s?.close(),s=null},l=e=>{if(o)return;let u=a[e];if(!u){i?.(Error(`Failed to connect to EventSource through proxy chain`));return}c();let d=n(u,{headers:t});s=d,d.onmessage=e=>{o||s!==d||r(e)},d.onerror=t=>{if(!(o||s!==d)){if(c(),e+1<a.length){l(e+1);return}i?.(t)}}};return l(0),{close(){o=!0,c()}}}var b=`https://api.unsplash.com`,x=`https://api.giphy.com/v1/gifs`;function S(e){return{error:e instanceof Error?e:Error(String(e))}}async function C(e){if(!e.ok)throw Error(`Request failed with status ${e.status}`);let t=await e.text();try{return t?JSON.parse(t):null}catch(e){throw e}}function w(e){return e&&Array.isArray(e.results)?e:e?.data&&Array.isArray(e.data.results)?e.data:e?.response&&Array.isArray(e.response.results)?e.response:{...e||{},results:[]}}var T=i.Si({reducerPath:`imageApi`,baseQuery:void 0,endpoints:e=>({getImageInfo:e.query({queryFn:async function(e,t){try{let n=t.getState().configSlice?.config?.imageInfoToolUrl||`https://scr.useblocks.io/imageinfo`;return{data:await C(await fetch(`${n}?url=${encodeURIComponent(e)}`))}}catch(e){return S(e)}}}),getSearchImage:e.query({queryFn:async function({query:e,page:t},n){let r=e.keywords.replace(/[^\w\d\sа-яёА-ЯЁ]|_/g,``).replace(/[\s_-]+/g,` `);try{let a=n.getState().configSlice?.config,o=i.vi.getInstance(n,i.do)!==void 0,s=new URL(`${b}/search/photos`);return s.searchParams.set(`client_id`,`S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o`),s.searchParams.set(`lang`,`ru`),s.searchParams.set(`per_page`,`18`),s.searchParams.set(`query`,r),s.searchParams.set(`page`,String(t)),e.color!==``&&s.searchParams.set(`color`,e.color),e.orientation!==``&&s.searchParams.set(`orientation`,e.orientation),{data:w(await C(await i.qa(s.toString(),{config:a,standalone:o,resourceType:`stockImages`,intent:`metadata`})))}}catch(e){return S(e)}}}),getUnsplashImage:e.query({queryFn:async function(e,t){try{let n=t.getState().configSlice?.config,r=i.vi.getInstance(t,i.do)!==void 0,a=new URL(e);return a.searchParams.set(`client_id`,`S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o`),{data:await C(await i.qa(a.toString(),{config:n,standalone:r,resourceType:`stockImages`,intent:`metadata`}))}}catch(e){return S(e)}}}),sendAiImageRequest:e.query({queryFn:async function({body:e},t){try{return await i.hi(t).aiGenerator.ai_create(e)}catch(e){throw Error(e)}}}),getAiImage:e.query({queryFn:async function(e,t){try{return await i.hi(t).aiGenerator.ai_status_list(e)}catch(e){return S(e)}}}),getAiImageSSE:e.query({queryFn:e=>({data:[]}),async onCacheEntryAdded({task_id:e,entity_id:t,setError:n},r){let{updateCachedData:a,cacheEntryRemoved:o}=r,s=i.hi(r).baseUrl||i.Wa(`https://app.useblocks.io/api`),c=r.getState().configSlice?.config,l=i.vi.getInstance(r,i.do)!==void 0,d=i._a.isPlugin?await i.vi.getInstance(r,u):g.get(i.Fi.em_token),f=d?{Authorization:`Bearer ${d}`}:{},p=`${s}/ai-generator/v1/ai-status?entity_id=${t}&stream=1&task_id=${e}`,m=i.Xa(p,{config:c,method:`GET`,requestType:`ai`,standalone:l}),h=y({candidates:m.length>0?m:[p],headers:f,createEventSource:(e,t)=>new v.EventSourcePolyfill(e,t),onMessage:e=>{let t=JSON.parse(e.data);a(e=>{e.push(t)}),t.progress===100&&h.close()},onError:()=>{h.close()}});await o,h.close()}}),getSearchGif:e.query({queryFn:async function({query:e,page:t},n){let r=e.keywords.replace(/[^\w\d\sа-яёА-ЯЁ]|_/g,``).replace(/[\s_-]+/g,` `);try{let e=n.getState().configSlice?.config,a=i.vi.getInstance(n,i.do)!==void 0;return{data:await C(await i.qa(`${x}/search?api_key=Nh77eBlPeMn1ed9MBAvL542NUGeNO26F&q=${encodeURIComponent(r)}&limit=25&offset=${t}&lang=en`,{config:e,standalone:a,resourceType:`generic`,intent:`metadata`}))}}catch(e){return S(e)}}})})}),{useLazyGetImageInfoQuery:E,useGetImageInfoQuery:D,useGetSearchImageQuery:O,useLazyGetSearchImageQuery:k,useSendAiImageRequestQuery:A,useLazySendAiImageRequestQuery:j,useGetAiImageQuery:M,useLazyGetAiImageQuery:N,useGetUnsplashImageQuery:P,useLazyGetUnsplashImageQuery:F,useGetSearchGifQuery:I,useLazyGetSearchGifQuery:L,useGetAiImageSSEQuery:R,useLazyGetAiImageSSEQuery:z}=T,B=`https://app.useblocks.io/api`.replaceAll(/[\\/]$/g,``),V=`wp-json/limits/v1`,H=`wp-json/subscription/v2`,U=i.Si({reducerPath:`limitsApi`,baseQuery:i.pi({baseUrl:B}),tagTypes:[`LimitsStats`,`LimitsWarnings`,`SubscriptionMe`],endpoints:e=>({getLimitsStats:e.query({query:()=>({url:`${V}/stats`,method:`GET`}),providesTags:[`LimitsStats`]}),getLimitsStatsByType:e.query({query:e=>({url:`${V}/stats/${e}`,method:`GET`}),providesTags:(e,t,n)=>[{type:`LimitsStats`,id:n}]}),getLimitsWarnings:e.query({query:()=>({url:`${V}/warnings`,method:`GET`}),providesTags:[`LimitsWarnings`]}),getSubscriptionMeV2:e.query({query:()=>({url:`${H}/me`,method:`GET`}),providesTags:[`SubscriptionMe`]})})}),{useGetLimitsStatsQuery:W,useLazyGetLimitsStatsQuery:G,useGetLimitsStatsByTypeQuery:K,useLazyGetLimitsStatsByTypeQuery:ee,useGetLimitsWarningsQuery:q,useLazyGetLimitsWarningsQuery:J,useGetSubscriptionMeV2Query:Y,useLazyGetSubscriptionMeV2Query:X}=U,Z=new URLSearchParams(window.location.search),Q=Z.get(`tag`),te=Z.get(`folder`),ne=i.oi({activeModal:``,switchToPlanRequestTitle:``,secondModal:``,projectsTotal:``,projectsTotalPages:``,folders:[],activeTagId:Q||null,activeFolderId:te||(Q?null:`all`),activeTab:null,activeIntegration:null,addNewProjectInitialTitle:null}),$=`projectsPageSlice`,re=i.Ai({name:$,initialState:ne,reducers:{openModal(e,t){e.activeModal=t.payload},openAddNewProjectModal(e,t){e.activeModal=i.fa.ADD_NEW_PROJECT_MODAL,e.addNewProjectInitialTitle=t.payload??null},setSwitchToPlanRequestTitle(e,t){e.switchToPlanRequestTitle=typeof t.payload==`string`?t.payload:``},setActiveTab(e,t){e.activeTab=t.payload},closeModal(e){e.activeModal=``,e.activeIntegration=null,e.addNewProjectInitialTitle=null,e.switchToPlanRequestTitle=``},openSecondModal(e,t){e.secondModal=t.payload},closeSecondModal(e){e.secondModal=``},setFolders(e,{payload:t}){e.folders=t},setActiveTagId(e,{payload:t}){e.activeTagId=t},setActiveIntegration(e,t){e.activeIntegration=t.payload}},extraReducers:e=>{e.addMatcher(i.Gr.endpoints.getProjects.matchFulfilled,(e,t)=>{let n=t.meta,r=n.baseQueryMeta,i=n.projectsListPagination??r?.projectsListPagination;if(i!=null&&typeof i.total==`number`&&Number.isFinite(i.total)&&i.total>=0){e.projectsTotal=String(i.total),e.projectsTotalPages=String(typeof i.totalPages==`number`&&Number.isFinite(i.totalPages)?i.totalPages:``);return}let a=r?.response?.headers?.get?.(`X-WP-Total`),o=r?.response?.headers?.get?.(`X-WP-TotalPages`);e.projectsTotal=a??``,e.projectsTotalPages=o??``}),e.addMatcher(i.Rr.endpoints.getFolders.matchFulfilled,(e,{payload:t})=>{e.folders=t})}}),{openModal:ie,openAddNewProjectModal:ae,setSwitchToPlanRequestTitle:oe,setActiveTab:se,closeModal:ce,openSecondModal:le,closeSecondModal:ue,setFolders:de,setActiveTagId:fe,setActiveIntegration:pe}=re.actions,me=e=>e[$].activeTab,he=e=>e[$].activeModal,ge=e=>e[$].secondModal,_e=e=>e[$].projectsTotal,ve=e=>e[$].activeIntegration;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}}),Object.defineProperty(t,"C",{enumerable:!0,get:function(){return j}}),Object.defineProperty(t,"D",{enumerable:!0,get:function(){return u}}),Object.defineProperty(t,"E",{enumerable:!0,get:function(){return f}}),Object.defineProperty(t,"O",{enumerable:!0,get:function(){return l}}),Object.defineProperty(t,"S",{enumerable:!0,get:function(){return F}}),Object.defineProperty(t,"T",{enumerable:!0,get:function(){return g}}),Object.defineProperty(t,"_",{enumerable:!0,get:function(){return T}}),Object.defineProperty(t,"a",{enumerable:!0,get:function(){return re}}),Object.defineProperty(t,"b",{enumerable:!0,get:function(){return L}}),Object.defineProperty(t,"c",{enumerable:!0,get:function(){return me}}),Object.defineProperty(t,"d",{enumerable:!0,get:function(){return se}}),Object.defineProperty(t,"f",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(t,"g",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(t,"h",{enumerable:!0,get:function(){return q}}),Object.defineProperty(t,"i",{enumerable:!0,get:function(){return le}}),Object.defineProperty(t,"k",{enumerable:!0,get:function(){return o}}),Object.defineProperty(t,"l",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(t,"m",{enumerable:!0,get:function(){return W}}),Object.defineProperty(t,"n",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(t,"o",{enumerable:!0,get:function(){return ve}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return U}}),Object.defineProperty(t,"r",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(t,"s",{enumerable:!0,get:function(){return he}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(t,"u",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(t,"v",{enumerable:!0,get:function(){return z}}),Object.defineProperty(t,"w",{enumerable:!0,get:function(){return _}}),Object.defineProperty(t,"x",{enumerable:!0,get:function(){return k}}),Object.defineProperty(t,"y",{enumerable:!0,get:function(){return E}})});
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-useblocks`,`true`),e.appendChild(document.createTextNode(`.blocks-app .image-preview{text-align:center;min-height:100px;position:relative}.blocks-app .image-preview .image-editor-modal{border:1px solid red}.blocks-app .image-preview__edit-button{position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-preview img{border:1px solid var(--colorBorder);border-radius:6px;max-width:100%;max-height:500px}.blocks-app .image-editor-modal .ant-modal-content{flex-direction:column;min-height:100vh;display:flex;border-radius:0!important}.blocks-app .image-editor-modal .ant-modal-body{flex-grow:1;display:flex}.blocks-app .image-editor-modal .ant-modal-body #pixie-editor{flex-grow:1;height:calc(100vh - 70px);min-height:calc(100vh - 70px);overflow:hidden}.blocks-app .image-editor-modal .pi .text-on-primary{background:var(--colorPrimary);border-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary:hover{background:var(--colorPrimaryHover);border-color:var(--colorPrimaryHover)}.blocks-app .image-editor-modal .pi .text-on-primary.rounded-full{border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .image-editor-modal .pi .shadow-xl{box-shadow:none}.blocks-app .image-editor-modal .w-\\[4ch\\].text-sm.text-center{width:5ch}.blocks-app .image-editor-modal .pi .border-white{border-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .bg-white\\/50{background-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary{color:var(--colorWhite)}.blocks-app .serach-results .ant-row{align-items:center}.blocks-app .serach-results .blocks-search__divider-wrapper{margin-top:12px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{border-top:1px solid var(--colorBorderSecondary);background:0 0;width:100%;height:1px;min-height:0;margin:0;position:static}.blocks-app .slideshow-container{width:524px;height:350px;margin:auto;position:relative;overflow:hidden}.blocks-app .slideshow-image{opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .image-ai .slideshow-image{width:auto;height:auto}.blocks-app .image-ai__image-item{text-align:center;border-radius:6px;justify-content:center;align-items:center;min-height:100px;display:flex;position:relative}.blocks-app .image-ai__image-item .buttons{justify-content:space-between;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-ai .text-area-input-hybrid{border:none;outline:none;min-height:0;padding:0 0 0 1px}.blocks-app .image-ai .text-area-input-hybrid textarea{height:32px;min-height:32px;padding:3px 11px;line-height:26px}.blocks-app .image-ai__loading{justify-content:center;align-items:center;min-height:150px;display:flex}.blocks-app .image-ai__loading .spin{flex-direction:column;justify-content:center;align-items:center;height:150px;display:flex}.blocks-app .image-ai__loading .status{margin:3px 0 0}.blocks-app .image-ai__preview{border-radius:6px;margin-top:24px;overflow:hidden}.blocks-app .image-ai__preview .image-ai__image-item img{border-radius:calc(var(--borderRadius) * 1px);object-fit:contain;max-height:100%;transition:height 1s;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.blocks-app .image-ai .small{width:302px;height:202px}.blocks-app .image-ai .large{width:524px;height:350px}.blocks-app .image-ai .image-ai__row{padding:0 2px}.blocks-app .image-ai .image-ai__input-affix-wrapper{border-style:solid;border-width:calc(var(--borderWidth) * 1px);border-color:var(--colorFillSecondaryDarken);border-radius:calc(var(--borderRadius) * 1px);width:100%;padding-left:0;display:inline-flex}.blocks-app .image-ai .image-ai__input-affix-wrapper:hover{border-color:var(--borderColorHover)}.blocks-app .image-ai .image-ai__input-affix-wrapper.ant-input-affix-wrapper-focused{border-color:var(--colorPrimaryBorder)}.blocks-app .image-ai .image-ai__textarea{font-size:16px}.blocks-app .image-ai .image-ai__input-icon{font-size:16px;top:0;right:0}.dark .blocks-app .image-ai .image-ai__preview .image-ai__image-item img{background:#2b2b2b;border:1px solid #434343}.dark .blocks-app .image-ai .ant-btn{background:#1f1f1f}.dark .blocks-app .image-ai .ant-btn:hover{color:var(--colorPrimary)}.blocks-app .stock-tab img{border-radius:0;max-width:none;max-height:none}.blocks-app .stock-tab .stock-search-input{padding:0 2px}.blocks-app .stock-tab .my-masonry-grid{text-align:center;width:auto;display:flex}.blocks-app .stock-tab .my-masonry-grid_column{background-clip:padding-box}.blocks-app .stock-tab .list-item{cursor:pointer;background:#f0f2f5;border:1px solid #f0f2f5;border-radius:6px;min-height:100px;max-height:100px;margin-bottom:20px;transition:all .3s;display:inline-block;position:relative;overflow:hidden}.blocks-app .stock-tab .list-item .overlay-image{opacity:0;background-size:cover;width:110px;height:40px;transition:opacity .5s;position:absolute;bottom:10px;right:10px}.blocks-app .stock-tab .list-item .ant-spin{color:#f0f2f5;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.blocks-app .stock-tab .list-item img{object-fit:cover;opacity:0;border-radius:6px;height:auto;transition:opacity .5s ease-in-out;display:block}.blocks-app .stock-tab .list-item.loaded{border:1px solid #d9d9d9;max-height:1000px}.blocks-app .stock-tab .list-item.loaded img{opacity:1;height:100%}.blocks-app .stock-tab .list-item.loaded .loaded-image{opacity:.5}.blocks-app .stock-tab .list-item:hover{box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017}.blocks-app .stock-tab .list-item:hover p.creator-info,.blocks-app .stock-tab .list-item:hover .overlay-image{opacity:1}.blocks-app .stock-tab .list-item p.creator-info{color:#fff;opacity:0;background-color:#00000080;border-radius:0 0 6px;margin:0;padding:5px;font-size:10px;line-height:1.2;position:absolute;bottom:0;right:0}.blocks-app .stock-tab .list-item p.creator-info:hover a{color:#fff;text-decoration:underline}.blocks-app .stock-tab .list-item p.creator-info a{color:#fff;text-decoration:none}.blocks-app .stock-color-filter{display:flex}.blocks-app .stock-color-filter label{border-width:1px;width:24px;height:24px;margin:4px;padding:0;font-size:0;border-radius:6px!important}.blocks-app .stock-color-filter label.all-colors{background-image:linear-gradient(135deg,red,#ff7f00,#ff0,#0f0,#00f,#8b00ff)}.blocks-app .stock-color-filter label.black-color{background:#222}.blocks-app .stock-color-filter label.bw-color{background-image:linear-gradient(135deg,#222 50%,#fff 50%)}.blocks-app .stock-color-filter label.white-color{background:#fff}.blocks-app .stock-color-filter label.orange-color{background:#fa8c16}.blocks-app .stock-color-filter label.red-color{background:#f5222d}.blocks-app .stock-color-filter label.purple-color{background:#722ed1}.blocks-app .stock-color-filter label.magenta-color{background:#eb2f96}.blocks-app .stock-color-filter label.green-color{background:#52c41a}.blocks-app .stock-color-filter label.teal-color{background:#43c3c3}.blocks-app .stock-color-filter label.blue-color{background:#1677ff}.blocks-app .stock-color-filter .ant-radio-button-wrapper:not(:first-child):before{display:none}.blocks-app .serach-results{padding-top:6px}.blocks-app .serach-results .stock-search-input{width:322px;padding:0 2px}.blocks-app .serach-results .blocks-search__divider-wrapper{width:calc(100% + 48px);margin-top:12px;margin-left:-24px;margin-right:-24px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{pointer-events:none;border-top:1px solid var(--colorBorderSecondary);background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-bottom:none;width:100%;height:20px;min-height:20px;margin:0;position:relative;bottom:auto;left:auto;right:auto}.dark .blocks-app .image-center .stock-tab .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.dark .blocks-app .stock-tab .list-item{background:#2b2b2b;border:1px solid #2b2b2b}.dark .blocks-app .stock-tab .list-item.loaded{border:1px solid #434343}.blocks-app .image-center .image-center-image-preview{justify-content:center;align-items:center;display:flex}.blocks-app .image-center .ant-divider-horizontal{pointer-events:none;z-index:1;background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);width:calc(100% + 48px);height:20px;margin:24px -24px 0;position:absolute;bottom:-19px}.dark .blocks-app .image-center .ant-divider-horizontal{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.blocks-app .image-center .ant-divider-horizontal.ant-divider-with-text{background:0 0;width:calc(100% + 38px);margin:0 -24px 20px;position:relative;top:0}.blocks-app .image-center img{border-radius:4px;max-width:524px;max-height:352px}.blocks-app .image-center .image-size{justify-content:center;margin-top:6px;font-size:14px;line-height:22px;display:flex}.blocks-app .image-center .ant-upload.ant-upload-drag{border-radius:6px}.blocks-app .image-center .ant-modal-body .stock-search-input{margin-bottom:0}.blocks-app .image-center .ant-modal-body .serach-results .stock-search-input{margin-bottom:10px}.blocks-app .image-center .ant-modal-body .ant-form:not(.serach-results) .ant-form-item:last-child{margin-bottom:0}.blocks-app .image-center .ant-modal-body .ant-tabs{transition:all .7s cubic-bezier(.075,.82,.165,1)}.blocks-app .image-center .ant-modal-body .ant-tabs .ant-tabs-content-holder{overflow-y:clip}.blocks-app .ant-modal{transition:width .7s ease-in-out}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();__useblocks__.define(`static/core/9721d8c0.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/d172b1ec.js`,`static/core/9b1a1232.js`,`static/core/d6d622d8.js`,`static/core/b639c36e.js`,`static/core/4b2f0647.js`,`react`,`prop-types`,`react-dom`,`react-router-dom`,`react/jsx-runtime`,`react-dom/client`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./9b1a1232.js"),a=e("./4b2f0647.js"),o=e("./d6d622d8.js"),s=e("./d172b1ec.js"),c=e("./b639c36e.js"),l=e("react");l=r.l(l);let u=e("prop-types");u=r.l(u);let d=e("react-dom");d=r.l(d);let f=e("react-router-dom"),p=e("react/jsx-runtime"),m=e("react-dom/client");function h(e,t){return{[e]:{Filter:t(`Filter`),filter:t(`filter`),Resize:t(`Resize`),resize:t(`resize`),Crop:t(`Crop`),Width:t(`Width`),width:t(`width`),Height:t(`Height`),height:t(`height`),"Background color":t(`Background color`),Cancel:t(`Cancel`),Create:t(`Create`),Objects:t(`Objects`),Quality:t(`Quality`),Save:t(`Save`),"Loading Canvas":t(`Loading Canvas`),"Loading Image":t(`Loading Image`),"Loading State":t(`Loading State`),"Processing Image":t(`Processing Image`),Close:t(`Close`),Apply:t(`Apply`),Font:t(`Font`),Color:t(`Color`),Background:t(`Background`),Image:t(`Image`),Opacity:t(`Opacity`),Outline:t(`Outline`),Shadow:t(`Shadow`),Gradient:t(`Gradient`),Texture:t(`Texture`),"Replace Image":t(`Replace Image`),"Outline Color":t(`Outline Color`),"Shadow Color":t(`Shadow Color`),"Font Size":t(`Font Size`),Radius:t(`Radius`),"Brush Color":t(`Brush Color`),"Brush Type":t(`Brush Type`),"Brush Size":t(`Brush Size`),History:t(`History`),"Maintain aspect ratio":t(`Maintain aspect ratio`),"New Text":t(`New Text`),Size:t(`Size`),Draw:t(`Draw`),Text:t(`Text`),Stickers:t(`Stickers`),Frame:t(`Frame`),Shapes:t(`Shapes`),Corners:t(`Corners`),corners:t(`corners`),Done:t(`Done`),"Applied Filters":t(`Applied Filters`),"Resized Image":t(`Resized Image`),"Cropped Image":t(`Cropped Image`),"Added Drawing":t(`Added Drawing`),"Added Text":t(`Added Text`),"Added Shape":t(`Added Shape`),"Added Sticker":t(`Added Sticker`),"Added Frame":t(`Added Frame`),"Merged Objects":t(`Merged Objects`),"Rounded Corner":t(`Rounded Corner`),"Replaced Background Image":t(`Replaced Background Image`),"Added Image":t(`Added Image`),Initial:t(`Initial`),"Loaded State":t(`Loaded State`),"Changed Style":t(`Changed Style`),"Deleted object":t(`Deleted object`),Merge:t(`Merge`),Emoticons:t(`Emoticons`),Doodles:t(`Doodles`),Landmarks:t(`Landmarks`),Bubbles:t(`Bubbles`),Transportation:t(`Transportation`),Beach:t(`Beach`),PencilBrush:t(`PencilBrush`),SprayBrush:t(`SprayBrush`),CircleBrush:t(`CircleBrush`),DiamondBrush:t(`DiamondBrush`),VLineBrush:t(`VLineBrush`),HLineBrush:t(`HLineBrush`),SquareBrush:t(`SquareBrush`),Square:t(`Square`),square:t(`square`)}}}r.n(),r.i();var g=Object.defineProperty,_=(e,t,n)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t,n)=>(_(e,typeof t==`symbol`?t:t+``,n),n);function y(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>`u`)){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}function b(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function x(e){var t=e.toString().split(/[eE]/),n=(t[0].split(`.`)[1]||``).length-+(t[1]||0);return n>0?n:0}function S(e){if(e.toString().indexOf(`e`)===-1)return Number(e.toString().replace(`.`,``));var t=x(e);return t>0?b(Number(e)*10**t):Number(e)}function C(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t.slice(1).reduce(function(t,n){return e(t,n)},r)}}var w=C(function(e,t){var n=S(e),r=S(t),i=x(e)+x(t);return n*r/10**i}),T=C(function(e,t){var n=10**Math.max(x(e),x(t));return(w(e,n)+w(t,n))/n}),E=C(function(e,t){var n=10**Math.max(x(e),x(t));return(w(e,n)-w(t,n))/n}),D=C(function(e,t){return w(S(e)/S(t),b(10**(x(t)-x(e))))});function O(e,t){var n=10**t,r=D(Math.round(Math.abs(w(e,n))),n);return e<0&&r!==0&&(r=w(r,-1)),r}function k(e){e===void 0&&(e=!0)}var A={strip:b,plus:T,minus:E,times:w,divide:D,round:O,digitLength:x,float2Fixed:S,enableBoundaryChecking:k},j=Object.prototype.toString;function M(e){switch(j.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:return!0;default:return ce(e,Error)}}function N(e,t){return j.call(e)===`[object ${t}]`}function P(e){return N(e,`ErrorEvent`)}function F(e){return N(e,`DOMError`)}function I(e){return N(e,`DOMException`)}function ee(e){return N(e,`String`)}function te(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function L(e){return e===null||te(e)||typeof e!=`object`&&typeof e!=`function`}function ne(e){return N(e,`Object`)}function re(e){return typeof Event<`u`&&ce(e,Event)}function ie(e){return typeof Element<`u`&&ce(e,Element)}function R(e){return N(e,`RegExp`)}function ae(e){return!!(e&&e.then&&typeof e.then==`function`)}function oe(e){return ne(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function se(e){return typeof e==`number`&&e!==e}function ce(e,t){try{return e instanceof t}catch{return!1}}function le(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}function ue(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function de(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{le(r)?n.push(`[VueViewModel]`):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function fe(e,t,n=!1){return ee(e)?R(t)?t.test(e):ee(t)?n?e===t:e.includes(t):!1:!1}function pe(e,t=[],n=!1){return t.some(t=>fe(e,t,n))}function me(e,t,n=250,r,i,a,o){if(!a.exception||!a.exception.values||!o||!ce(o.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=ve(he(e,t,i,o.originalException,r,a.exception.values,s,0),n))}function he(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(ce(r[i],Error)){ge(o,s);let a=e(t,r[i]),l=c.length;_e(a,i,l,s),c=he(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,a)=>{if(ce(r,Error)){ge(o,s);let l=e(t,r),u=c.length;_e(l,`errors[${a}]`,u,s),c=he(e,t,n,r,i,[l,...c],l,u)}}),c}function ge(e,t){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,...e.type===`AggregateError`&&{is_exception_group:!0},exception_id:t}}function _e(e,t,n,r){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function ve(e,t){return e.map(e=>(e.value&&=ue(e.value,t),e))}function ye(e){return e&&e.Math==Math?e:void 0}var z=typeof globalThis==`object`&&ye(globalThis)||typeof window==`object`&&ye(window)||typeof self==`object`&&ye(self)||typeof r.r==`object`&&ye(r.r)||function(){return this}()||{};function be(){return z}function xe(e,t,n){let r=n||z,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}var Se=be(),Ce=80;function we(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Ce;for(;n&&i++<5&&(o=Te(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Te(e,t){let n=e,r=[],i,a,o,s,c;if(!n||!n.tagName)return``;if(Se.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());let l=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(l&&l.length)l.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&ee(i))for(a=i.split(/\s+/),c=0;c<a.length;c++)r.push(`.${a[c]}`);let u=[`aria-label`,`type`,`name`,`title`,`alt`];for(c=0;c<u.length;c++)o=u[c],s=n.getAttribute(o),s&&r.push(`[${o}="${s}"]`);return r.join(``)}function Ee(){try{return Se.document.location.href}catch{return``}}function De(e){if(!Se.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}var Oe=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ke=`Sentry Logger `,Ae=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],je={};function Me(e){if(!(`console`in z))return e();let t=z.console,n={},r=Object.keys(je);r.forEach(e=>{let r=je[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function Ne(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Oe?Ae.forEach(n=>{t[n]=(...t)=>{e&&Me(()=>{z.console[n](`${ke}[${n}]:`,...t)})}}):Ae.forEach(e=>{t[e]=()=>{}}),t}var B=Ne(),Pe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Fe(e){return e===`http`||e===`https`}function Ie(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Le(e){let t=Pe.exec(e);if(!t){Me(()=>{});return}let[n,r,i=``,a,o=``,s]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Re({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Re(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function ze(e){if(!Oe)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(B.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Fe(r)?t&&isNaN(parseInt(t,10))?(B.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(B.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(B.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Be(e){let t=typeof e==`string`?Le(e):Re(e);if(!(!t||!ze(t)))return t}var Ve=class extends Error{constructor(e,t=`warn`){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function He(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i==`function`&&We(i,r),e[t]=i}function Ue(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Oe&&B.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function We(e,t){try{e.prototype=t.prototype=t.prototype||{},Ue(e,`__sentry_original__`,t)}catch{}}function Ge(e){return e.__sentry_original__}function Ke(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join(`&`)}function qe(e){if(M(e))return{message:e.message,name:e.name,stack:e.stack,...Ye(e)};if(re(e)){let t={type:e.type,target:Je(e.target),currentTarget:Je(e.currentTarget),...Ye(e)};return typeof CustomEvent<`u`&&ce(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Je(e){try{return ie(e)?we(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Ye(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Xe(e,t=40){let n=Object.keys(qe(e));if(n.sort(),!n.length)return`[object has no keys]`;if(n[0].length>=t)return ue(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(`, `);if(!(r.length>t))return e===n.length?r:ue(r,t)}return``}function Ze(e){return Qe(e,new Map)}function Qe(e,t){if($e(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let n of Object.keys(e))typeof e[n]<`u`&&(r[n]=Qe(e[n],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(e=>{r.push(Qe(e,t))}),r}return e}function $e(e){if(!ne(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t===`Object`}catch{return!0}}var et=50,tt=/\(error: (.*)\)/,nt=/captureMessage|captureException/;function rt(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let r=[],i=e.split(`
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-useblocks`,`true`),e.appendChild(document.createTextNode(`.blocks-app .image-preview{text-align:center;min-height:100px;position:relative}.blocks-app .image-preview .image-editor-modal{border:1px solid red}.blocks-app .image-preview__edit-button{position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-preview img{border:1px solid var(--colorBorder);border-radius:6px;max-width:100%;max-height:500px}.blocks-app .image-editor-modal .ant-modal-content{flex-direction:column;min-height:100vh;display:flex;border-radius:0!important}.blocks-app .image-editor-modal .ant-modal-body{flex-grow:1;display:flex}.blocks-app .image-editor-modal .ant-modal-body #pixie-editor{flex-grow:1;height:calc(100vh - 70px);min-height:calc(100vh - 70px);overflow:hidden}.blocks-app .image-editor-modal .pi .text-on-primary{background:var(--colorPrimary);border-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary:hover{background:var(--colorPrimaryHover);border-color:var(--colorPrimaryHover)}.blocks-app .image-editor-modal .pi .text-on-primary.rounded-full{border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .image-editor-modal .pi .shadow-xl{box-shadow:none}.blocks-app .image-editor-modal .w-\\[4ch\\].text-sm.text-center{width:5ch}.blocks-app .image-editor-modal .pi .border-white{border-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .bg-white\\/50{background-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary{color:var(--colorWhite)}.blocks-app .serach-results .ant-row{align-items:center}.blocks-app .serach-results .blocks-search__divider-wrapper{margin-top:12px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{border-top:1px solid var(--colorBorderSecondary);background:0 0;width:100%;height:1px;min-height:0;margin:0;position:static}.blocks-app .slideshow-container{width:524px;height:350px;margin:auto;position:relative;overflow:hidden}.blocks-app .slideshow-image{opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .image-ai .slideshow-image{width:auto;height:auto}.blocks-app .image-ai__image-item{text-align:center;border-radius:6px;justify-content:center;align-items:center;min-height:100px;display:flex;position:relative}.blocks-app .image-ai__image-item .buttons{justify-content:space-between;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-ai .text-area-input-hybrid{border:none;outline:none;min-height:0;padding:0 0 0 1px}.blocks-app .image-ai .text-area-input-hybrid textarea{height:32px;min-height:32px;padding:3px 11px;line-height:26px}.blocks-app .image-ai__loading{justify-content:center;align-items:center;min-height:150px;display:flex}.blocks-app .image-ai__loading .spin{flex-direction:column;justify-content:center;align-items:center;height:150px;display:flex}.blocks-app .image-ai__loading .status{margin:3px 0 0}.blocks-app .image-ai__preview{border-radius:6px;margin-top:24px;overflow:hidden}.blocks-app .image-ai__preview .image-ai__image-item img{border-radius:calc(var(--borderRadius) * 1px);object-fit:contain;max-height:100%;transition:height 1s;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.blocks-app .image-ai .small{width:302px;height:202px}.blocks-app .image-ai .large{width:524px;height:350px}.blocks-app .image-ai .image-ai__row{padding:0 2px}.blocks-app .image-ai .image-ai__input-affix-wrapper{border-style:solid;border-width:calc(var(--borderWidth) * 1px);border-color:var(--colorFillSecondaryDarken);border-radius:calc(var(--borderRadius) * 1px);width:100%;padding-left:0;display:inline-flex}.blocks-app .image-ai .image-ai__input-affix-wrapper:hover{border-color:var(--borderColorHover)}.blocks-app .image-ai .image-ai__input-affix-wrapper.ant-input-affix-wrapper-focused{border-color:var(--colorPrimaryBorder)}.blocks-app .image-ai .image-ai__textarea{font-size:16px}.blocks-app .image-ai .image-ai__input-icon{font-size:16px;top:0;right:0}.dark .blocks-app .image-ai .image-ai__preview .image-ai__image-item img{background:#2b2b2b;border:1px solid #434343}.dark .blocks-app .image-ai .ant-btn{background:#1f1f1f}.dark .blocks-app .image-ai .ant-btn:hover{color:var(--colorPrimary)}.blocks-app .stock-tab img{border-radius:0;max-width:none;max-height:none}.blocks-app .stock-tab .stock-search-input{padding:0 2px}.blocks-app .stock-tab .my-masonry-grid{text-align:center;width:auto;display:flex}.blocks-app .stock-tab .my-masonry-grid_column{background-clip:padding-box}.blocks-app .stock-tab .list-item{cursor:pointer;background:#f0f2f5;border:1px solid #f0f2f5;border-radius:6px;min-height:100px;max-height:100px;margin-bottom:20px;transition:all .3s;display:inline-block;position:relative;overflow:hidden}.blocks-app .stock-tab .list-item .overlay-image{opacity:0;background-size:cover;width:110px;height:40px;transition:opacity .5s;position:absolute;bottom:10px;right:10px}.blocks-app .stock-tab .list-item .ant-spin{color:#f0f2f5;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.blocks-app .stock-tab .list-item img{object-fit:cover;opacity:0;border-radius:6px;height:auto;transition:opacity .5s ease-in-out;display:block}.blocks-app .stock-tab .list-item.loaded{border:1px solid #d9d9d9;max-height:1000px}.blocks-app .stock-tab .list-item.loaded img{opacity:1;height:100%}.blocks-app .stock-tab .list-item.loaded .loaded-image{opacity:.5}.blocks-app .stock-tab .list-item:hover{box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017}.blocks-app .stock-tab .list-item:hover p.creator-info,.blocks-app .stock-tab .list-item:hover .overlay-image{opacity:1}.blocks-app .stock-tab .list-item p.creator-info{color:#fff;opacity:0;background-color:#00000080;border-radius:0 0 6px;margin:0;padding:5px;font-size:10px;line-height:1.2;position:absolute;bottom:0;right:0}.blocks-app .stock-tab .list-item p.creator-info:hover a{color:#fff;text-decoration:underline}.blocks-app .stock-tab .list-item p.creator-info a{color:#fff;text-decoration:none}.blocks-app .stock-color-filter{display:flex}.blocks-app .stock-color-filter label{border-width:1px;width:24px;height:24px;margin:4px;padding:0;font-size:0;border-radius:6px!important}.blocks-app .stock-color-filter label.all-colors{background-image:linear-gradient(135deg,red,#ff7f00,#ff0,#0f0,#00f,#8b00ff)}.blocks-app .stock-color-filter label.black-color{background:#222}.blocks-app .stock-color-filter label.bw-color{background-image:linear-gradient(135deg,#222 50%,#fff 50%)}.blocks-app .stock-color-filter label.white-color{background:#fff}.blocks-app .stock-color-filter label.orange-color{background:#fa8c16}.blocks-app .stock-color-filter label.red-color{background:#f5222d}.blocks-app .stock-color-filter label.purple-color{background:#722ed1}.blocks-app .stock-color-filter label.magenta-color{background:#eb2f96}.blocks-app .stock-color-filter label.green-color{background:#52c41a}.blocks-app .stock-color-filter label.teal-color{background:#43c3c3}.blocks-app .stock-color-filter label.blue-color{background:#1677ff}.blocks-app .stock-color-filter .ant-radio-button-wrapper:not(:first-child):before{display:none}.blocks-app .serach-results{padding-top:6px}.blocks-app .serach-results .stock-search-input{width:322px;padding:0 2px}.blocks-app .serach-results .blocks-search__divider-wrapper{width:calc(100% + 48px);margin-top:12px;margin-left:-24px;margin-right:-24px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{pointer-events:none;border-top:1px solid var(--colorBorderSecondary);background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-bottom:none;width:100%;height:20px;min-height:20px;margin:0;position:relative;bottom:auto;left:auto;right:auto}.dark .blocks-app .image-center .stock-tab .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.dark .blocks-app .stock-tab .list-item{background:#2b2b2b;border:1px solid #2b2b2b}.dark .blocks-app .stock-tab .list-item.loaded{border:1px solid #434343}.blocks-app .image-center .image-center-image-preview{justify-content:center;align-items:center;display:flex}.blocks-app .image-center .ant-divider-horizontal{pointer-events:none;z-index:1;background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);width:calc(100% + 48px);height:20px;margin:24px -24px 0;position:absolute;bottom:-19px}.dark .blocks-app .image-center .ant-divider-horizontal{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.blocks-app .image-center .ant-divider-horizontal.ant-divider-with-text{background:0 0;width:calc(100% + 38px);margin:0 -24px 20px;position:relative;top:0}.blocks-app .image-center img{border-radius:4px;max-width:524px;max-height:352px}.blocks-app .image-center .image-size{justify-content:center;margin-top:6px;font-size:14px;line-height:22px;display:flex}.blocks-app .image-center .ant-upload.ant-upload-drag{border-radius:6px}.blocks-app .image-center .ant-modal-body .stock-search-input{margin-bottom:0}.blocks-app .image-center .ant-modal-body .serach-results .stock-search-input{margin-bottom:10px}.blocks-app .image-center .ant-modal-body .ant-form:not(.serach-results) .ant-form-item:last-child{margin-bottom:0}.blocks-app .image-center .ant-modal-body .ant-tabs{transition:all .7s cubic-bezier(.075,.82,.165,1)}.blocks-app .image-center .ant-modal-body .ant-tabs .ant-tabs-content-holder{overflow-y:clip}.blocks-app .ant-modal{transition:width .7s ease-in-out}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();__useblocks__.define(`static/core/eff08366.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/b4510ae5.js`,`static/core/a13fc482.js`,`static/core/52646cb0.js`,`static/core/35387f7a.js`,`static/core/e6c16532.js`,`react`,`prop-types`,`react-dom`,`react-router-dom`,`react/jsx-runtime`,`react-dom/client`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./a13fc482.js"),a=e("./e6c16532.js"),o=e("./52646cb0.js"),s=e("./b4510ae5.js"),c=e("./35387f7a.js"),l=e("react");l=r.l(l);let u=e("prop-types");u=r.l(u);let d=e("react-dom");d=r.l(d);let f=e("react-router-dom"),p=e("react/jsx-runtime"),m=e("react-dom/client");function h(e,t){return{[e]:{Filter:t(`Filter`),filter:t(`filter`),Resize:t(`Resize`),resize:t(`resize`),Crop:t(`Crop`),Width:t(`Width`),width:t(`width`),Height:t(`Height`),height:t(`height`),"Background color":t(`Background color`),Cancel:t(`Cancel`),Create:t(`Create`),Objects:t(`Objects`),Quality:t(`Quality`),Save:t(`Save`),"Loading Canvas":t(`Loading Canvas`),"Loading Image":t(`Loading Image`),"Loading State":t(`Loading State`),"Processing Image":t(`Processing Image`),Close:t(`Close`),Apply:t(`Apply`),Font:t(`Font`),Color:t(`Color`),Background:t(`Background`),Image:t(`Image`),Opacity:t(`Opacity`),Outline:t(`Outline`),Shadow:t(`Shadow`),Gradient:t(`Gradient`),Texture:t(`Texture`),"Replace Image":t(`Replace Image`),"Outline Color":t(`Outline Color`),"Shadow Color":t(`Shadow Color`),"Font Size":t(`Font Size`),Radius:t(`Radius`),"Brush Color":t(`Brush Color`),"Brush Type":t(`Brush Type`),"Brush Size":t(`Brush Size`),History:t(`History`),"Maintain aspect ratio":t(`Maintain aspect ratio`),"New Text":t(`New Text`),Size:t(`Size`),Draw:t(`Draw`),Text:t(`Text`),Stickers:t(`Stickers`),Frame:t(`Frame`),Shapes:t(`Shapes`),Corners:t(`Corners`),corners:t(`corners`),Done:t(`Done`),"Applied Filters":t(`Applied Filters`),"Resized Image":t(`Resized Image`),"Cropped Image":t(`Cropped Image`),"Added Drawing":t(`Added Drawing`),"Added Text":t(`Added Text`),"Added Shape":t(`Added Shape`),"Added Sticker":t(`Added Sticker`),"Added Frame":t(`Added Frame`),"Merged Objects":t(`Merged Objects`),"Rounded Corner":t(`Rounded Corner`),"Replaced Background Image":t(`Replaced Background Image`),"Added Image":t(`Added Image`),Initial:t(`Initial`),"Loaded State":t(`Loaded State`),"Changed Style":t(`Changed Style`),"Deleted object":t(`Deleted object`),Merge:t(`Merge`),Emoticons:t(`Emoticons`),Doodles:t(`Doodles`),Landmarks:t(`Landmarks`),Bubbles:t(`Bubbles`),Transportation:t(`Transportation`),Beach:t(`Beach`),PencilBrush:t(`PencilBrush`),SprayBrush:t(`SprayBrush`),CircleBrush:t(`CircleBrush`),DiamondBrush:t(`DiamondBrush`),VLineBrush:t(`VLineBrush`),HLineBrush:t(`HLineBrush`),SquareBrush:t(`SquareBrush`),Square:t(`Square`),square:t(`square`)}}}r.n(),r.i();var g=Object.defineProperty,_=(e,t,n)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t,n)=>(_(e,typeof t==`symbol`?t:t+``,n),n);function y(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>`u`)){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}function b(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function x(e){var t=e.toString().split(/[eE]/),n=(t[0].split(`.`)[1]||``).length-+(t[1]||0);return n>0?n:0}function S(e){if(e.toString().indexOf(`e`)===-1)return Number(e.toString().replace(`.`,``));var t=x(e);return t>0?b(Number(e)*10**t):Number(e)}function C(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t.slice(1).reduce(function(t,n){return e(t,n)},r)}}var w=C(function(e,t){var n=S(e),r=S(t),i=x(e)+x(t);return n*r/10**i}),T=C(function(e,t){var n=10**Math.max(x(e),x(t));return(w(e,n)+w(t,n))/n}),E=C(function(e,t){var n=10**Math.max(x(e),x(t));return(w(e,n)-w(t,n))/n}),D=C(function(e,t){return w(S(e)/S(t),b(10**(x(t)-x(e))))});function O(e,t){var n=10**t,r=D(Math.round(Math.abs(w(e,n))),n);return e<0&&r!==0&&(r=w(r,-1)),r}function k(e){e===void 0&&(e=!0)}var A={strip:b,plus:T,minus:E,times:w,divide:D,round:O,digitLength:x,float2Fixed:S,enableBoundaryChecking:k},j=Object.prototype.toString;function M(e){switch(j.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:return!0;default:return ce(e,Error)}}function N(e,t){return j.call(e)===`[object ${t}]`}function P(e){return N(e,`ErrorEvent`)}function F(e){return N(e,`DOMError`)}function I(e){return N(e,`DOMException`)}function ee(e){return N(e,`String`)}function te(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function L(e){return e===null||te(e)||typeof e!=`object`&&typeof e!=`function`}function ne(e){return N(e,`Object`)}function re(e){return typeof Event<`u`&&ce(e,Event)}function ie(e){return typeof Element<`u`&&ce(e,Element)}function R(e){return N(e,`RegExp`)}function ae(e){return!!(e&&e.then&&typeof e.then==`function`)}function oe(e){return ne(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function se(e){return typeof e==`number`&&e!==e}function ce(e,t){try{return e instanceof t}catch{return!1}}function le(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}function ue(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function de(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{le(r)?n.push(`[VueViewModel]`):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function fe(e,t,n=!1){return ee(e)?R(t)?t.test(e):ee(t)?n?e===t:e.includes(t):!1:!1}function pe(e,t=[],n=!1){return t.some(t=>fe(e,t,n))}function me(e,t,n=250,r,i,a,o){if(!a.exception||!a.exception.values||!o||!ce(o.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=ve(he(e,t,i,o.originalException,r,a.exception.values,s,0),n))}function he(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(ce(r[i],Error)){ge(o,s);let a=e(t,r[i]),l=c.length;_e(a,i,l,s),c=he(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,a)=>{if(ce(r,Error)){ge(o,s);let l=e(t,r),u=c.length;_e(l,`errors[${a}]`,u,s),c=he(e,t,n,r,i,[l,...c],l,u)}}),c}function ge(e,t){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,...e.type===`AggregateError`&&{is_exception_group:!0},exception_id:t}}function _e(e,t,n,r){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function ve(e,t){return e.map(e=>(e.value&&=ue(e.value,t),e))}function ye(e){return e&&e.Math==Math?e:void 0}var z=typeof globalThis==`object`&&ye(globalThis)||typeof window==`object`&&ye(window)||typeof self==`object`&&ye(self)||typeof r.r==`object`&&ye(r.r)||function(){return this}()||{};function be(){return z}function xe(e,t,n){let r=n||z,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}var Se=be(),Ce=80;function we(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Ce;for(;n&&i++<5&&(o=Te(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Te(e,t){let n=e,r=[],i,a,o,s,c;if(!n||!n.tagName)return``;if(Se.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());let l=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(l&&l.length)l.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&ee(i))for(a=i.split(/\s+/),c=0;c<a.length;c++)r.push(`.${a[c]}`);let u=[`aria-label`,`type`,`name`,`title`,`alt`];for(c=0;c<u.length;c++)o=u[c],s=n.getAttribute(o),s&&r.push(`[${o}="${s}"]`);return r.join(``)}function Ee(){try{return Se.document.location.href}catch{return``}}function De(e){if(!Se.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}var Oe=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ke=`Sentry Logger `,Ae=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],je={};function Me(e){if(!(`console`in z))return e();let t=z.console,n={},r=Object.keys(je);r.forEach(e=>{let r=je[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function Ne(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Oe?Ae.forEach(n=>{t[n]=(...t)=>{e&&Me(()=>{z.console[n](`${ke}[${n}]:`,...t)})}}):Ae.forEach(e=>{t[e]=()=>{}}),t}var B=Ne(),Pe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Fe(e){return e===`http`||e===`https`}function Ie(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Le(e){let t=Pe.exec(e);if(!t){Me(()=>{});return}let[n,r,i=``,a,o=``,s]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Re({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Re(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function ze(e){if(!Oe)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(B.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Fe(r)?t&&isNaN(parseInt(t,10))?(B.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(B.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(B.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Be(e){let t=typeof e==`string`?Le(e):Re(e);if(!(!t||!ze(t)))return t}var Ve=class extends Error{constructor(e,t=`warn`){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function He(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i==`function`&&We(i,r),e[t]=i}function Ue(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Oe&&B.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function We(e,t){try{e.prototype=t.prototype=t.prototype||{},Ue(e,`__sentry_original__`,t)}catch{}}function Ge(e){return e.__sentry_original__}function Ke(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join(`&`)}function qe(e){if(M(e))return{message:e.message,name:e.name,stack:e.stack,...Ye(e)};if(re(e)){let t={type:e.type,target:Je(e.target),currentTarget:Je(e.currentTarget),...Ye(e)};return typeof CustomEvent<`u`&&ce(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Je(e){try{return ie(e)?we(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Ye(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Xe(e,t=40){let n=Object.keys(qe(e));if(n.sort(),!n.length)return`[object has no keys]`;if(n[0].length>=t)return ue(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(`, `);if(!(r.length>t))return e===n.length?r:ue(r,t)}return``}function Ze(e){return Qe(e,new Map)}function Qe(e,t){if($e(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let n of Object.keys(e))typeof e[n]<`u`&&(r[n]=Qe(e[n],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(e=>{r.push(Qe(e,t))}),r}return e}function $e(e){if(!ne(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t===`Object`}catch{return!0}}var et=50,tt=/\(error: (.*)\)/,nt=/captureMessage|captureException/;function rt(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let r=[],i=e.split(`
2
2
  `);for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let a=tt.test(n)?n.replace(tt,`$1`):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){r.push(t);break}}if(r.length>=et)break}}return at(r)}}function it(e){return Array.isArray(e)?rt(...e):e}function at(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||``)&&t.pop(),t.reverse(),nt.test(t[t.length-1].function||``)&&(t.pop(),nt.test(t[t.length-1].function||``)&&t.pop()),t.slice(0,et).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||`?`}))}var ot=`<anonymous>`;function st(e){try{return!e||typeof e!=`function`?ot:e.name||ot}catch{return ot}}var ct={},lt={};function ut(e,t){ct[e]=ct[e]||[],ct[e].push(t)}function dt(e,t){lt[e]||(t(),lt[e]=!0)}function ft(e,t){let n=e&&ct[e];if(n)for(let r of n)try{r(t)}catch(t){Oe&&B.error(`Error while triggering instrumentation handler.
3
3
  Type: ${e}
4
4
  Name: ${st(r)}