← Back
Editing: email-design-editor.js
/*! For license information please see email-design-editor.js.LICENSE.txt */ (()=>{var e={3764(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var r={};return n.isMergeableObject(e)&&i(e).forEach(function(t){r[t]=o(e[t],n)}),i(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))}),r}function c(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=o;var s=Array.isArray(n);return s===Array.isArray(e)?s?i.arrayMerge(e,n,i):a(e,n,i):o(n,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var l=c;e.exports=l},7378(e){var t=1e3,n=60*t,o=60*n,r=24*o,i=7*r,s=365.25*r;function a(e,t,n,o){var r=t>=1.5*n;return Math.round(e/n)+" "+o+(r?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=r)return a(e,i,r,"day");if(i>=o)return a(e,i,o,"hour");if(i>=n)return a(e,i,n,"minute");if(i>=t)return a(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=r)return Math.round(e/r)+"d";if(i>=o)return Math.round(e/o)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8146(e,t,n){"use strict";n.d(t,{Kr:()=>x});var o=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],r=o.join(","),i="undefined"==typeof Element,s=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!i&&Element.prototype.getRootNode?function(e){return null==e||null==e.getRootNode?void 0:e.getRootNode()}:function(e){return null==e?void 0:e.ownerDocument},c=function(e,t){void 0===t&&(t=!0);var n=null==e||null==e.getAttribute?void 0:e.getAttribute("inert");return""===n||"true"===n||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):c(e.parentNode))},l=function(e,t,n){if(c(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&s.call(e,r)&&o.unshift(e),o=o.filter(n)},d=function(e,t,n){for(var o=[],i=Array.from(e);i.length;){var a=i.shift();if(!c(a,!1))if("SLOT"===a.tagName){var l=a.assignedElements(),u=l.length?l:a.children,p=d(u,!0,n);n.flatten?o.push.apply(o,p):o.push({scopeParent:a,candidates:p})}else{s.call(a,r)&&n.filter(a)&&(t||!e.includes(a))&&o.push(a);var f=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),g=!c(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(f&&g){var m=d(!0===f?a.children:f.children,!0,n);n.flatten?o.push.apply(o,m):o.push({scopeParent:a,candidates:m})}else i.unshift.apply(i,a.children)}}return o},u=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},p=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null==e.getAttribute||null==(t=e.getAttribute("contenteditable"))?void 0:t.toLowerCase();return""===n||"true"===n||"plaintext-only"===n}(e))&&!u(e)?0:e.tabIndex},f=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return g(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||a(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},h=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},b=function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var r=getComputedStyle(e).visibility;if("hidden"===r||"collapse"===r)return!0;var i=s.call(e,"details>summary:first-of-type")?e.parentElement:e;if(s.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(e)}else{if("function"==typeof o){for(var c=e;e;){var l=e.parentElement,d=a(e);if(l&&!l.shadowRoot&&!0===o(l))return h(e);e=e.assignedSlot?e.assignedSlot:l||d===e.ownerDocument?l:d.host}e=c}if(function(e){var t,n,o,r=e&&a(e),i=null==(t=r)?void 0:t.host,s=!1;if(r&&r!==e)for(s=!!(null!=(n=i)&&null!=(n=n.ownerDocument)&&n.contains(i)||null!=e&&null!=(o=e.ownerDocument)&&o.contains(e));!s&&i;){var c,l;s=!(null==(l=i=null==(c=r=a(i))?void 0:c.host)||null==(l=l.ownerDocument)||!l.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},v=function(e,t){return!(t.disabled||function(e){return g(e)&&"hidden"===e.type}(t)||b(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!s.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},y=function(e,t){return!(m(t)||p(t)<0||!v(e,t))},_=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},w=function(e){var t=[],n=[];return e.forEach(function(e,o){var r=!!e.scopeParent,i=r?e.scopeParent:e,s=function(e,t){var n=p(e);return n<0&&t&&!u(e)?0:n}(i,r),a=r?w(e.candidates):i;0===s?r?t.push.apply(t,a):t.push(i):n.push({documentOrder:o,tabIndex:s,item:e,isScope:r,content:a})}),n.sort(f).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},x=function(e,t){var n;return n=(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:_}):l(e,t.includeContainer,y.bind(null,t)),w(n)}},372(e,t,n){"use strict";var o=n(67);const r=n.n(o)()("dops:analytics");let i,s;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const a={initialize:function(e,t,n){a.setUser(e,t),a.setSuperProps(n),a.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){s={ID:e,username:t}},setSuperProps:function(e){i=e},assignSuperProps:function(e){i=Object.assign(i||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){a.tracks.recordPageView(e),a.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,o,r,i,s){a.ga.recordPurchase(e,t,n,o,r,i,s)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(!t.blog_id&&"object"==typeof window.jpTracksContext&&window.jpTracksContext.blog_id&&(t.blog_id=window.jpTracksContext.blog_id),i&&(r("- Super Props: %o",i),t=Object.assign(t,i)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};a.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){a.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};a.ga.initialized||(s&&(e={userId:"u-"+s.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),a.ga.initialized=!0)},recordPageView:function(e,t){a.ga.initialize(),r("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,o){a.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(i+=" [Option Label: "+n+"]"),void 0!==o&&(i+=" [Option Value: "+o+"]"),r(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,o)},recordPurchase:function(e,t,n,o,r,i,s){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:o,currency:s}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:r,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){s&&window._tkq.push(["identifyUser",s.ID,s.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=a;n.d(t,["A",0,c])},8712(e,t,n){"use strict";n.d(t,{Cf:()=>p,Hk:()=>f,g2:()=>u,ze:()=>d});var o=n(372),r=n(7999),i=n(2619);const s="jetpack/email-design-analytics",a="email_editor_events_",c={editor_layout_loaded:{event:"editor_ready"},header_close_button_clicked:{event:"close_click"},styles_sidebar_navigation_click:{event:"styles_navigate",pick:["path"]},send_preview_email_modal_opened:{event:"test_email_modal_open"},...Object.fromEntries(["colors","background","typography","layout"].map(e=>[`styles_sidebar_screen_${e}_opened`,{event:"styles_screen_open",props:{screen:e}}]))};let l=!1;function d(e){return!!e?.canSend&&(e.userData?.userid&&e.userData?.username&&o.A.initialize(e.userData.userid,e.userData.username),e.blogId&&o.A.assignSuperProps({blog_id:e.blogId}),l=!0,!0)}function u(e,t={}){l&&o.A.tracks.recordEvent("jetpack_newsletter_email_design_"+e,{site_type:(0,r.getSiteType)(),...t})}function p(){l&&((0,i.addFilter)("woocommerce_email_editor_events_tracking_enabled",s,()=>!0),(0,i.addAction)("woocommerce_email_editor_events",s,e=>{const t="string"==typeof e?.name?e.name:"";if(!t.startsWith(a))return;const n=c[t.slice(20)];if(!n)return;const o={...n.props};for(const t of n.pick??[])void 0!==e[t]&&(o[t]=e[t]);u(n.event,o)}))}function f(e){return Object.keys(e??{}).sort().join(",")}},7647(e,t,n){"use strict";n.d(t,{B:()=>u});var o=n(3124),r=n(3582),i=n(7143),s=n(2085),a=n(5267);const c=/^var:preset\|color\|([\w-]+)$/,l=/^var\(\s*--wp--preset--color--([\w-]+)\s*\)$/,d=["default","theme","custom"];function u(e,t={}){if(!e)return()=>{};const n=()=>(0,i.select)(r.store).getEditedEntityRecord("root","globalStyles",e),o=n();let c=f(o),l=p(o),d=!!o;return(0,i.subscribe)(()=>{const o=n();if(!o)return;const u=f(o),m=p(o);if(!d)return c=u,l=m,void(d=!0);if(function(e,t){return e.background===t.background&&e.button===t.button}(c,u)&&!function(e,t){return Object.keys(t).some(n=>null!==(e[n]??null)&&null===(t[n]??null))}(l,m))return void(l=m);const h=c;if(c=u,l=m,!(0,i.select)(r.store).hasEditsForEntityRecord("root","globalStyles",e))return;const b=function(e,t,n,o){const r=g(t.background,e),i=g(n.background,e),c=function(e,t,n,o){const r=e.styles?.color?.text,i=null!=r;if(i&&!(0,a.KV)(r,(0,a.Uq)(a.bT,o,t)))return null;const s=(0,a.Uq)(a.bT,o,n);if(null===s)return i?function(e){const t={...e.color};delete t.text;const n={...e};0===Object.keys(t).length?delete n.color:n.color=t;return n}(e.styles):null;if((0,a.KV)(r,s))return null;return{...e.styles,color:{...e.styles?.color,text:s}}}(e,r,i,o?.text),l=c??e.styles??{},d=(0,s.$H)(l,r,i,o,{before:g(t.button,e),after:g(n.button,e)});if(null===d)return c;const u={...l};0===Object.keys(d).length?delete u.elements:u.elements=d;return u}(o,h,u,t);b&&(0,i.dispatch)(r.store).editEntityRecord("root","globalStyles",e,{styles:b},{undoIgnore:!0})},r.store)}function p(e){const t=e?.styles,n={text:t?.color?.text,button:t?.elements?.button?.color?.text};return s.u9.forEach(e=>{n[e]=t?.elements?.[e]?.color?.text}),n}function f(e){const t=e?.styles;return{background:t?.color?.background,button:t?.elements?.button?.color?.background}}function g(e,t){if("string"!=typeof e)return e;const n=e.trim(),r=c.exec(n)??l.exec(n);if(!r)return e;const s=(0,i.select)(o.H)?.getTheme?.(),a=[s?.settings?.color?.palette,t?.settings?.color?.palette];let d;for(const e of a)for(const t of m(e))t?.slug===r[1]&&t?.color&&(d=t.color);return d??e}function m(e){return Array.isArray(e)?e:e&&"object"==typeof e?d.flatMap(t=>Array.isArray(e[t])?e[t]:[]):[]}},2085(e,t,n){"use strict";n.d(t,{$H:()=>i});var o=n(5267);const r=["link","heading","h1","h2","h3","h4","h5","h6"];function i(e,t,n,i,d={}){const u=JSON.parse(JSON.stringify(e?.elements??{}));let p=!1;return r.forEach(e=>{const r=i?.[e],d=u[e]?.color?.text,f=s(d,c,r,t);f&&(p=l(u,[e,"color","text"],(0,o.Uq)(c,r,n))||p),p=function(e,t,n,o,r,i){const s=e[t]?.typography?.textDecoration;if(null!=s&&s!==a(t,n,o))return!1;return l(e,[t,"typography","textDecoration"],i?a(t,n,r):null)}(u,e,r,t,n,f)||p}),p=function(e,t,n){const r=e.button?.color?.text;if(!s(r,o.bT,t,n.before))return!1;return l(e,["button","color","text"],(0,o.Uq)(o.bT,t,n.after))}(u,i?.button,d)||p,p?function(e){return Object.keys(e).forEach(t=>{const n=e[t];n&&"object"==typeof n&&(Object.keys(n).forEach(e=>{const t=n[e];t&&"object"==typeof t&&0===Object.keys(t).length&&delete n[e]}),0===Object.keys(n).length&&delete e[t])}),e}(u):null}function s(e,t,n,r){return null==e||(0,o.KV)(e,(0,o.Uq)(t,n,r))}function a(e,t,n){if("link"!==e)return null;const r=c(t,n);return null!==r&&(0,o.GS)(r)?"underline":null}function c(e,t){const n=(0,o.yN)(e,t);return null===n||n>=4.5?null:(0,o.O8)(e,t)}function l(e,t,n){const o=t[t.length-1];let r=e;for(const e of t.slice(0,-1)){if(null===n&&!r[e])return!1;r[e]=r[e]??{},r=r[e]}return(r[o]??null)!==n&&(null===n?delete r[o]:r[o]=n,!0)}n.d(t,["u9",0,r])},810(e,t,n){"use strict";n.d(t,{Ru:()=>d,fh:()=>p,gr:()=>f});var o=n(3124),r=n(3582),i=n(7143);const s=/^var:preset\|font-size\|([\w-]+)$/,a=/^[a-z0-9.%(),+*/ -]+$/i,c=".is-root-container{--wpcom-email-root-font-size:";function l(e,t){const n=t?.styles?.typography?.fontSize??e?.styles?.typography?.fontSize;return"string"==typeof n&&n.trim()?n.trim():null}function d(e){return l(e?.editor_theme,e?.global_styles?.record)}function u(e){const t=function(e){if("string"!=typeof e)return null;const t=e.trim(),n=s.exec(t),o=n?`var(--wp--preset--font-size--${n[1]})`:t;return a.test(o)?o:null}(e);return t?`${c}${t}; }`:null}function p(e,t){const n=(Array.isArray(e)?e:[]).filter(e=>"string"!=typeof e?.css||!e.css.startsWith(c)),o=u(t);return o?[...n,{css:o}]:n}function f(e=null){let t=e;return(0,i.subscribe)(()=>{const e=(0,i.select)(o.H)?.getInitialEditorSettings?.();if(!e)return;const n=(0,i.select)(o.H).getGlobalEmailStylesPost();if(!n)return;const r=l((0,i.select)(o.H).getTheme(),n);r!==t&&(t=r,(0,i.dispatch)(o.H).setEditorSettings({...e,styles:p(e.styles,r)}))},r.store)}},6125(e,t,n){"use strict";var o=n(2619),r=n(7723);const _x=r._x,i="null:email-styles-sidebar",s=new Set(["Text","Headings","Layout"]);let a=!0;Promise.resolve().then(()=>{a=!1});let c=null;(0,o.addFilter)("i18n.gettext_jetpack","jetpack/email-design-labels",function(e,t){const n=(c||(c=new Map([["Text",_x("Default text","email design styles","jetpack")],["Manage the fonts and typography used on text.",_x("The default for your post body. The byline and footer follow its color, and the footer’s copyright line follows its font. Text that has its own size or font in the post won’t change here. Edit it in the post instead.","email design styles","jetpack")],["Manage the fonts and typography used on links.",_x("Links inside your post. Links in the header, post title and footer follow the text around them instead.","email design styles","jetpack")],["Headings",_x("Titles & headings","email design styles","jetpack")],["Manage the fonts and typography used on headings.",_x("H1 styles your post title, H2 your site title and post headings, and H3–H6 the headings inside your post. The site title follows H2’s font only, not its size. Headings that have their own size or font in the post won’t change here. Edit them in the post instead.","email design styles","jetpack")],["Manage the fonts and typography used on buttons.",_x("Buttons in your post. The Comment and Like buttons follow the font here, but nothing else. A button that sets its own style in the post keeps it.","email design styles","jetpack")],["Layout",_x("Spacing","email design styles","jetpack")],["Manage the background color of the email.",_x("The color behind the whole email, both the page and the content card.","email design styles","jetpack")]])),c);return n.has(t)&&(!s.has(t)||a||document.getElementById(i))?n.get(t):e}),n.d(t,["Q",0,i])},5267(e,t,n){"use strict";n.d(t,{GS:()=>u,KV:()=>d,O8:()=>c,Uq:()=>l,bT:()=>a,yN:()=>g});const o=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/,r=/^(rgb|hsl)a?\(\s*([^()]*?)\s*\)$/,i=/^(\d+(?:\.\d+)?|\.\d+)(%?)$/;function s(e){const t=m(e);if(null===t)return null;const n=b(t),o=p(n),[r,i]=y(t);return f(r,i,o?15:95,o,n)}function a(e,t){if(null===(e??null))return s(t);const n=g(e,t);return null===n||n>=4.5?null:s(t)}function c(e,t){const n=m(e),o=m(t);if(null===n||null===o)return null;const r=b(o);if(v(b(n),r)>=4.5)return w(n);const[i,s,a]=y(n);return f(i,s,Math.round(100*a),p(r),r)}function l(e,t,n){const o=e(t,n);return null!==o?o:null===g(t,n)?null:t}function d(e,t){const n=m(e),o=m(t);return null!==n&&null!==o&&n.every((e,t)=>e===o[t])}function u(e){const t=m(e);return null===t?null:y(t)[1]<.1}function p(e){return v(0,e)>=v(1,e)}function f(e,t,n,o,r){const i=o?-1:1;for(let o=n;o>=0&&o<=100;o+=i){const n=_(e,t,o/100);if(v(b(n),r)>=4.5)return w(n)}return o?"#000000":"#ffffff"}function g(e,t){const n=m(e),o=m(t);return null===n||null===o?null:v(b(n),b(o))}function m(e){if("string"!=typeof e)return null;const t=e.trim().toLowerCase(),n=o.exec(t);if(n){const e=4>=n[1].length?n[1].replace(/./g,e=>e+e):n[1];return 8===e.length&&"ff"!==e.slice(6)?null:[0,2,4].map(t=>parseInt(e.slice(t,t+2),16))}const i=r.exec(t);if(!i)return null;const[,s,a]=i;let c,l=null;if(a.includes(",")){if(a.includes("/"))return null;c=a.split(/\s*,\s*/),4===c.length&&(l=c.pop())}else{const e=a.split(/\s*\/\s*/);if(2<e.length)return null;c=e[0].split(/\s+/),l=e.length>1?e[1]:null}if(3!==c.length)return null;if(null!==l){const e=h(l,1);if(null===e||1>e)return null}if("rgb"===s){const e=[];for(const t of c){const n=h(t,255);if(null===n)return null;e.push(Math.round(Math.min(255,n)))}return e}const d=h(c[0].replace(/deg$/,""),null),u=h(c[1],1),p=h(c[2],1);return null!==d&&null!==u&&null!==p&&c[1].endsWith("%")&&c[2].endsWith("%")?_((d%360+360)%360,Math.min(1,u),Math.min(1,p)):null}function h(e,t){const n=i.exec(e);return n?"%"!==n[2]?parseFloat(n[1]):null===t?null:parseFloat(n[1])/100*t:null}function b(e){const[t,n,o]=e.map(e=>{const t=e/255;return.04045>=t?t/12.92:((t+.055)/1.055)**2.4});return.2126*t+.7152*n+.0722*o}function v(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function y(e){const[t,n,o]=e.map(e=>e/255),r=Math.max(t,n,o),i=Math.min(t,n,o),s=r-i,a=(r+i)/2;if(0===s)return[0,0,a];const c=s/(1-Math.abs(2*a-1));let l;return l=r===t?((n-o)/s+6)%6*60:r===n?60*((o-t)/s+2):60*((t-n)/s+4),[l,Math.min(1,c),a]}function _(e,t,n){const o=(1-Math.abs(2*n-1))*t,r=o*(1-Math.abs(e/60%2-1)),i=n-o/2;return[[o,r,0],[r,o,0],[0,o,r],[0,r,o],[r,0,o],[o,0,r]][Math.floor(e/60)%6].map(e=>Math.round(255*(e+i)))}function w(e){return`#${e.map(e=>e.toString(16).padStart(2,"0")).join("")}`}},67(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(r=o))}),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(8926)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8926(e,t,n){e.exports=function(e){function t(e){let n,r,i,s=null;function a(...e){if(!a.enabled)return;const o=a,r=Number(new Date),i=r-(n||r);o.diff=i,o.prev=n,o.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";s++;const i=t.formatters[r];if("function"==typeof i){const t=e[s];n=i.call(o,t),e.splice(s,1),s--}return n}),t.formatArgs.call(o,e);(o.log||t.log).apply(o,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function r(e,t){let n=0,o=0,r=-1,i=0;for(;n<e.length;)if(o<t.length&&(t[o]===e[n]||"*"===t[o]))"*"===t[o]?(r=o,i=n,o++):(n++,o++);else{if(-1===r)return!1;o=r+1,i++,n=i}for(;o<t.length&&"*"===t[o];)o++;return o===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=n(7378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},8686(e,t,n){"use strict";n.d(t,{M:()=>a});var o=n(790),r=n(6087),i=n(7847);const s=e=>t=>{const{setAttributes:n}=t,i=(0,r.useCallback)(e=>{e?.url&&e.url?.startsWith("http://[")&&(e.url=e.url.replace("http://[","[")),n(e)},[n]);return(0,o.jsx)(e,{...t,setAttributes:i})};function a(){(0,i.HY)("editor.BlockEdit","woocommerce-email-editor/filter-set-url-attribute",s)}},7789(e,t,n){"use strict";n.d(t,{l:()=>r});var o=n(8992);function r(){(0,o.G)("core/buttons",e=>({...e,supports:{...e.supports??{},layout:!1,__experimentalEmailFlexLayout:!0}}))}},1135(e,t,n){"use strict";n.d(t,{I:()=>l,R:()=>u});var o=n(790),r=n(4715),i=n(9491),s=n(8992),a=n(7847);const c=(0,i.createHigherOrderComponent)(e=>function(t){if("core/columns"!==t.name)return(0,o.jsx)(e,{...t});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e,{...t}),(0,o.jsx)(r.InspectorControls,{children:(0,o.jsx)("style",{children:"\n .components-panel__body .components-toggle-control .components-form-toggle { opacity: 0.3; }\n .components-panel__body .components-toggle-control .components-form-toggle__input { pointer-events: none; }\n .components-panel__body .components-toggle-control label { pointer-events: none; }\n "})})]})},"columnsEditCallback");function l(){(0,a.HY)("editor.BlockEdit","woocommerce-email-editor/deactivate-stack-on-mobile",c)}const d=["core/column","core/columns"];function u(){d.forEach(e=>{(0,s.G)(e,e=>({...e,supports:{...e.supports||{},layout:!1,background:{...e.support?.background||{},backgroundImage:!0}}}))})}},8757(e,t,n){"use strict";n.d(t,{H:()=>g});var o=n(790),r=n(6427),i=n(9491),s=n(7143),a=n(6087),c=n(7723),l=n(8992),d=n(7847);const u={youtube:["youtube.com","youtu.be"],videopress:["videopress.com","video.wordpress.com"],vimeo:["vimeo.com","player.vimeo.com"],tiktok:["tiktok.com"],dailymotion:["dailymotion.com","dai.ly"]};const p=(0,i.createHigherOrderComponent)(e=>function(t){const n="core/embed"===t.name,{responsive:i}=t.attributes,{setAttributes:l}=t,d=(0,s.useDispatch)("core/block-editor");if((0,a.useEffect)(()=>{n&&i&&(d.__unstableMarkNextChangeAsNotPersistent(),l({responsive:!1}))},[n,i,l,d]),!n)return(0,o.jsx)(e,{...t});const{url:p,type:f}=t.attributes;return!p||"wp-embed"===f||function(e){let t="";try{t=new URL(e).hostname}catch{return!1}return Object.values(u).some(e=>e.some(e=>t===e||t.endsWith(`.${e}`)))}(p)?(0,o.jsx)(e,{...t}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Notice,{status:"warning",isDismissible:!1,children:(0,c.__)("This embed is not supported in emails. It will be sent as a link.","jetpack")}),(0,o.jsx)(e,{...t})]})},"withEmailEmbedAdjustments"),f=[...Object.keys(u),"wordpress"];function g(){(0,l.G)("core/embed",e=>({...e,variations:(e.variations||[]).filter(e=>f.includes(e.name)).map(e=>{const{responsive:t,...n}=e.attributes||{};return{...e,attributes:n}})})),(0,d.HY)("editor.BlockEdit","woocommerce-email-editor/embed-adjustments",p)}},306(e,t,n){"use strict";n.d(t,{R:()=>m});var o=n(790),r=n(3022),i=n(9491),s=n(7143),a=n(4715),c=n(7847),l=n(3598);const d=["core/column","core/columns"],u=["core/post-content","woocommerce/email-content"];function p(e){const t=e=>null==e||function(e){return null!=e&&0===parseFloat(String(e))}(e)?null:(0,l.DJ)(String(e));if(!e)return{left:null,right:null};if("string"==typeof e){const n=t(e);return{left:n,right:n}}return{left:t(e.left),right:t(e.right)}}function f({block:e,props:t}){const n="full"===t.attributes?.align,i=(c=t.clientId,l=n,(0,s.useSelect)(e=>{if(!l)return{left:null,right:null};const{getBlockParents:t,getBlockName:n,getBlockAttributes:o}=e(a.store),r=t(c);let i=!1;for(let e=r.length-1;e>=0;e--){const t=r[e],s=n(t);if(d.includes(s))return!1;if(u.includes(s)){i=!0;continue}const a=p(o(t)?.style?.spacing?.padding);if(a.left||a.right)return a;if(!i)return{left:null,right:null}}return{left:null,right:null}},[c,l]));var c,l;if(!n||!1===i)return(0,o.jsx)(e,{...t});const f={...t.wrapperProps?.style||{}};return i.left&&(f.marginLeft=`calc(-1 * ${i.left})`),i.right&&(f.marginRight=`calc(-1 * ${i.right})`),(0,o.jsx)(e,{...t,className:(0,r.A)(t.className,"is-email-full-width"),wrapperProps:{...t.wrapperProps,style:f}})}const g=(0,i.createHigherOrderComponent)(e=>function(t){return(0,o.jsx)(f,{block:e,props:t})},"withFullWidthClassName");function m(){(0,c.HY)("editor.BlockListBlock","woocommerce-email-editor/full-width-blocks",g)}},5594(e,t,n){"use strict";n.d(t,{G:()=>d,J:()=>p});var o=n(8490),r=n.n(o),i=n(4997),s=n(7143),a=n(8992),c=n(8845);const l=["core/social-links"];function d(){(0,i.getBlockTypes)().forEach(e=>{e.supports?.shadow&&(0,a.G)(e.name,e=>({...e,supports:{...e.supports,shadow:!1}}))})}function u(){(0,i.getBlockTypes)().forEach(e=>{const t=e.name;if(l.includes(t))return;const n=(0,s.select)("core/blocks").getBlockStyles(t);Array.isArray(n)&&0!==n?.length&&n.forEach(e=>{(0,c.oj)(t,e.name)})})}function p(){r()(u)}},1007(e,t,n){"use strict";n.d(t,{u:()=>r});var o=n(8992);function r(){(0,o.G)("core/group",e=>{const t=e.variations??[];return{...e,variations:t.filter(e=>"group"===e.name),supports:{...e.supports||{},layout:!1}}})}},9289(e,t,n){"use strict";n.d(t,{G:()=>l,y:()=>d});var o=n(790),r=n(4715),i=n(9491),s=n(8992),a=n(7847);const c=(0,i.createHigherOrderComponent)(e=>function(t){if("core/image"!==t.name)return(0,o.jsx)(e,{...t});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e,{...t}),(0,o.jsx)(r.InspectorControls,{children:(0,o.jsx)("style",{children:"\n .components-tools-panel .components-toggle-control { display: none; }\n "})})]})},"imageEditCallback");function l(){(0,s.G)("core/image",e=>({...e,supports:{...e.supports||{},filter:{...e.supports?.filter||{},duetone:!1}}}))}function d(){(0,a.HY)("editor.BlockEdit","woocommerce-email-editor/hide-expand-on-click",c)}},7960(e,t,n){"use strict";n.d(t,{l:()=>c});var o=n(790),r=n(7723),i=n(4715),s=n(8992);function a({layoutClassNames:e}){const t=(0,i.useBlockProps)({className:e});return(0,o.jsxs)("div",{...t,children:[(0,o.jsx)("p",{children:(0,r.__)("This is the Content block.","jetpack")}),(0,o.jsx)("p",{children:(0,r.__)("It will display all the blocks in the email content, which might be only simple text paragraphs. You can enrich your message with images, incorporate data through tables, explore different layout designs with columns, or use any other block type.","jetpack")})]})}function c(){(0,s.G)("core/post-content",e=>{return{...e,edit:(t=e.edit,function(e){const{postId:n,postType:r}=e.context,{__unstableLayoutClassNames:i}=e;return n&&r?(0,o.jsx)(t,{...e}):(0,o.jsx)(a,{layoutClassNames:i})})};var t})}},6736(e,t,n){"use strict";n.d(t,{I:()=>r});var o=n(8992);function r(){(0,o.G)("core/quote",e=>({...e,styles:[],supports:{...e.supports,align:[]}}))}},5658(e,t,n){"use strict";n.d(t,{Ug:()=>y,iO:()=>k,qQ:()=>w});var o=n(790),r=n(876),i=n(7723),s=n(4715),a=n(6427),c=n(7143),l=n(6087),d=n(9491),u=n(8389),p=n(7845),f=n(3124),g=n(2553),m=n(646),h=n(6816),b=n(444),v=n(7847);function y(){["core/image","core/code","core/language"].forEach(e=>{(0,b.le)(e)})}function _({contentRef:e,value:t,onChange:n}){const[c,d]=(0,l.useState)(!1),f=(0,l.useCallback)((e,o)=>n((0,u.iK)(t,e,o)),[t,n]);return(0,o.jsx)(s.BlockControls,{children:(0,o.jsxs)(a.ToolbarGroup,{children:[(0,o.jsx)(a.ToolbarButton,{icon:"shortcode",title:(0,i.__)("Personalization Tags","jetpack"),onClick:()=>{d(!0),(0,h.yM)("block_controls_personalization_tags_button_clicked")}}),(0,o.jsx)(g.t,{contentRef:e,onUpdate:(o,r,i)=>{const s=i&&(0,u.As)(t,(0,u.yF)(e.current,i),r);s&&n(s)}}),(0,o.jsx)(m.N,{contentRef:e,onUpdate:(o,i,s)=>{const a=(0,u.yF)(e.current,o,!0),c=a&&t.formats[a.start]||[],l=e=>void 0!==e.attributes?.["data-link-href"]||void 0!==e.unregisteredAttributes?.["data-link-href"];if(!a||!c.some(l))return;const d=s.trim()?s:t.text.slice(a.start,a.end);let p=(0,u.iK)({...t,start:a.start,end:a.end},i,d);c.filter(e=>!l(e)).forEach(e=>{p={...(0,r.applyFormat)(p,e,a.start,a.start+d.length),activeFormats:[]}}),n(p)}}),(0,o.jsx)(p.x,{isOpened:c,onInsert:(e,t)=>{f(e,t),d(!1)},closeCallback:()=>d(!1),canInsertLink:!0,openedBy:"block-controls"})]})})}function w(){(0,b.gG)("woocommerce-email-editor/shortcode",{name:"woocommerce-email-editor/shortcode",title:(0,i.__)("Personalization Tags","jetpack"),className:"woocommerce-email-editor-personalization-tags",tagName:"span",attributes:{},interactive:!1,edit:_}),(0,b.gG)("woocommerce-email-editor/link-shortcode",{name:"woocommerce-email-editor/link-shortcode",title:(0,i.__)("Personalization Tags Link","jetpack"),className:"woocommerce-email-editor-personalization-tags-link",tagName:"a",attributes:{"data-link-href":"data-link-href",contenteditable:"contenteditable",style:"style"},interactive:!0,edit:null})}const x=(0,d.createHigherOrderComponent)(e=>t=>{const{attributes:n,setAttributes:r,name:i}=t,{content:s}=n,a=(0,c.useSelect)(e=>e(f.H).getPersonalizationTagsList(),[]),d=(0,l.useCallback)(()=>s?(0,u.D2)(s,a):"",[s,a]),p=(0,l.useCallback)(e=>{if(void 0!==e.content){const t=(0,u.D2)(e.content,a);r({...e,content:t})}else r(e)},[a,r]);return"core/paragraph"===i||"core/heading"===i||"core/list-item"===i?(0,o.jsx)(e,{...t,attributes:{...n,content:d()},setAttributes:p}):(0,o.jsx)(e,{...t})},"personalizationTagsLiveContentUpdate");function k(){(0,v.HY)("editor.BlockEdit","woocommerce-email-editor/with-live-content-update",x)}},8485(e,t,n){"use strict";n.d(t,{U:()=>r});var o=n(8848);function r(){(0,o.z)("core/site-logo",{name:"site-logo-default",title:"Site Logo",attributes:{align:"center",width:120},isDefault:!0})}},5437(e,t,n){"use strict";n.d(t,{_:()=>u});var o=n(790),r=n(4715),i=n(7723),s=n(8992),a=n(8848),c=n(7847);const l=["behance","bluesky","chain","discord","facebook","feed","github","gravatar","instagram","linkedin","mail","mastodon","medium","patreon","pinterest","reddit","spotify","telegram","threads","tiktok","tumblr","twitch","twitter","vimeo","wordpress","whatsapp","x","youtube"];const d=e=>t=>{if("core/social-links"!==t.name)return(0,o.jsx)(e,{...t});const n=`\n\t\t.block-editor-tools-panel-color-gradient-settings__item:has([title="${(0,i.__)("Icon color","jetpack")}"]) {\n\t\t\tdisplay: none !important;\n\t\t}\n\t\t.block-editor-tools-panel-color-gradient-settings__item:nth-child(2 of .block-editor-tools-panel-color-gradient-settings__item){\n\t\t\tborder-top:1px solid #ddd;\n\t\t\tborder-top-left-radius:2px;\n\t\t\tborder-top-right-radius:2px;\n\t\t}\n\t\t`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e,{...t}),(0,o.jsx)(r.InspectorControls,{group:"color",children:(0,o.jsx)("style",{children:n})})]})};function u(){(0,s.G)("core/social-link",e=>({...e,variations:(e.variations||[]).filter(e=>l.includes(e.name)),supports:{...e.supports,layout:!1}})),(0,a.z)("core/social-links",{name:"social-links-default",title:"Social Icons",attributes:{openInNewTab:!0,showLabels:!1,align:"center",className:"is-style-logos-only"},isDefault:!0,innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"x",url:"https://x.com/WordPress"}}]}),(0,c.HY)("editor.BlockEdit","woocommerce-email-editor/disable-social-links-icon-color",d)}},2318(e,t,n){"use strict";n.d(t,{X:()=>y});var o=n(9363),r=n(4997),i=n(1135),s=n(7960),a=n(1007),c=n(9289),l=n(5658),d=n(7789),u=n(8757),p=n(5594),f=n(6736),g=n(8686),m=n(5437),h=n(8485),b=n(306),v=n(2642);function y(){(0,r.getBlockType)("core/paragraph")||(0,o.registerCoreBlocks)(),(0,g.M)(),(0,i.I)(),(0,c.y)(),(0,c.G)(),(0,l.Ug)(),(0,i.R)(),(0,a.u)(),(0,d.l)(),(0,u.H)(),(0,s.l)(),(0,f.I)(),(0,l.qQ)(),(0,l.iO)(),(0,p.G)(),(0,m._)(),(0,h.U)(),(0,b.R)(),(0,v.D)(),(0,p.J)()}},9791(e,t,n){"use strict";n.d(t,{G:()=>r});var o=n(4997);function r(){try{return(0,o.getBlockTypes)().filter(e=>!0===e.supports?.email).map(e=>e.name)}catch(e){return console.error("Failed to get allowed block names:",e),[]}}},2642(e,t,n){"use strict";n.d(t,{D:()=>r});var o=n(8992);function r(){(0,o.G)("woocommerce/product-image",e=>({...e,supports:{...e.supports||{},align:["full"]}}))}},5183(e,t,n){"use strict";n.d(t,{w:()=>M});var o=n(790),r=n(7143),i=n(6087),s=n(6427),a=n(3582),c=n(2165),l=n(2279),d=n(3656),u=n(3124),p=n(3707),f=n(1847),g=n(1128),m=n(7709),h=n(1513),b=n(639),v=n(7680),y=n(8287),_=n(5209),w=n(3364),x=n(4291),k=n(7159),S=n(3373),j=n(189),C=n(4095),E=n(6816);const T=d.AutosaveMonitor,R=d.EditorKeyboardShortcutsRegister;function M({postId:e,postType:t,settings:n,contentRef:M,customSavePanel:A,customSaveButton:P}){const{currentPost:N,onNavigateToEntityRecord:I,onNavigateToPreviousEntityRecord:z}=(0,p.c)(e,t,"post-only"),{post:F,template:O}=(0,r.useSelect)(e=>{const{getEditedEntityRecord:t}=e(a.store),n=t("postType",N.postType,N.postId);if(!n||"boolean"==typeof n)return{post:null,template:null};const o=n;if("wp_template"===N.postType)return{post:o,template:null};const{getEditedPostTemplate:r}=e(u.H);return{post:o,template:r(o.template)}},[N.postType,N.postId]),{isFullscreenEnabled:B,allCommands:L,listingsUrl:$}=(0,r.useSelect)(e=>({isFullscreenEnabled:e(u.H).isFeatureActive("fullscreenMode"),allCommands:e(c.store).getCommands(),listingsUrl:e(u.H).getUrls()?.listings}),[]),H=(0,i.useCallback)(e=>{$&&["move-to-trash","permanently-delete"].includes(e)&&(window.location.href=$)},[$]),{isFullScreenForced:D,displaySendEmailButton:V,disableSnackbarNotices:W}=n,{removeEditorPanel:G}=(0,r.useDispatch)(d.store);(0,i.useEffect)(()=>{G("post-status")},[G]);const[q]=(0,g.b)(),U=(0,i.useMemo)(()=>({...n,onNavigateToEntityRecord:I,onNavigateToPreviousEntityRecord:z,defaultRenderingMode:"wp_template"===N.postType?"post-only":"template-locked",supportsTemplateMode:!0,styles:q}),[n,I,z,N.postType,q]);if(!(F&&("wp_template"===N.postType||F.template===O?.slug||!F.template&&O)))return(0,o.jsx)("div",{className:"spinner-container",children:(0,o.jsx)(s.ProgressBar,{})});const K=L.every(({name:e})=>e.includes("woocommerce"));return(0,E.xW)("editor_layout_loaded"),(0,o.jsx)(s.SlotFillProvider,{children:(0,o.jsxs)(d.ErrorBoundary,{canCopyContent:!0,children:[K&&(0,o.jsx)(c.CommandMenu,{}),(0,o.jsxs)(f.KE,{postId:N.postId,postType:N.postType,settings:U,templateId:O&&O.id,onActionPerformed:H,contentRef:M,styles:q,customSavePanel:A,customSaveButton:"wp_template"===N.postType?void 0:P,children:[(0,o.jsx)(T,{}),(0,o.jsx)(d.LocalAutosaveMonitor,{}),(0,o.jsx)(d.UnsavedChangesWarning,{}),(0,o.jsx)(R,{}),(0,o.jsx)(d.PostLockedModal,{}),(0,o.jsx)(h.x,{}),(0,o.jsx)(C.O,{}),(0,o.jsx)(b.r,{}),(0,o.jsx)(v.h,{}),(0,o.jsx)(m.p,{}),(0,o.jsx)(f.fA,{isActive:D||B}),(D||B)&&(0,o.jsx)(j.R,{}),!D&&(0,o.jsx)(y.n,{}),"wp_template"===N.postType?(0,o.jsx)(w.c,{}):(0,o.jsx)(_.O,{}),V&&(0,o.jsx)(x.L,{}),(0,o.jsx)(k.D,{disableSnackbarNotices:W}),(0,o.jsx)(S.x,{}),(0,o.jsx)(l.PluginArea,{scope:"woocommerce-email-editor"})]})]})})}},189(e,t,n){"use strict";var o=n(790),r=n(6427),i=n(6087),s=n(7723),a=n(3109),c=n(2344),l=n(9558),d=n(8329),u=n(6168),p=n(2619),f=n(7143),g=n(1847),m=n(6816),h=n(3124);const b={edit:{opacity:0,scale:.2},hover:{opacity:1,scale:1,clipPath:"inset( 22% round 2px )"}},v={edit:{clipPath:"inset(0% round 0px)"},hover:{clipPath:"inset( 22% round 2px )"},tap:{clipPath:"inset(0% round 0px)"}};function y(){const{urls:e}=(0,f.useSelect)(e=>({urls:e(h.H).getUrls()}),[]);return()=>{(0,m.yM)("header_close_button_clicked");const t=()=>{if(e.back)try{const t=new URL(e.back,window.location.href);["http:","https:"].includes(t.protocol)&&(window.location.href=t.href)}catch{}},n=(0,p.applyFilters)("woocommerce_email_editor_close_action_callback",t);("function"==typeof n?n:t)()}}const _=()=>{const e=y();return(0,o.jsx)(r.Button,{size:"compact",icon:(0,s.isRTL)()?d.A:l.A,label:(0,s.__)("Close editor","jetpack"),showTooltip:!0,tooltipPosition:"middle right",onClick:e})},w=()=>{const e=y();return(0,o.jsxs)(r.__unstableMotion.div,{className:"woocommerce-email-editor__view-mode-toggle",transition:{duration:.2},animate:"edit",initial:"edit",whileHover:"hover",whileTap:"tap",children:[(0,o.jsx)(r.Button,{label:(0,s.__)("Close editor","jetpack"),showTooltip:!0,tooltipPosition:"middle right",onClick:e,children:(0,o.jsx)(r.__unstableMotion.div,{variants:v,children:(0,o.jsx)("div",{className:"woocommerce-email-editor__view-mode-toggle-icon",children:(0,o.jsx)(a.A,{className:"woocommerce-email-editor-icon__icon",icon:u.A,size:48})})})}),(0,o.jsx)(r.__unstableMotion.div,{className:"woocommerce-email-editor-icon",variants:b,children:(0,o.jsx)(a.A,{icon:c.A})})]})},x=()=>{const e=(0,i.useRef)(null),[t,n]=(0,i.useState)(null);return(0,i.useLayoutEffect)(()=>{const t=e.current?.closest(".editor-header__back-button"),o=t?.getBoundingClientRect().width;n(void 0!==o&&o<=48)},[]),null===t?(0,o.jsx)("div",{ref:e}):t?(0,o.jsx)(_,{}):(0,o.jsx)(w,{})};n.d(t,["R",0,()=>{const e=(0,p.applyFilters)("woocommerce_email_editor_close_content",x);return(0,o.jsx)(g.oq,{children:({length:t})=>t<=1&&(0,o.jsx)(e,{})})}])},2614(e,t,n){"use strict";n.d(t,{J:()=>u});var o=n(790),r=n(7723),i=n(6427),s=n(2619),a=n(7143),c=n(3656),l=n(3124),d=n(6816);function u(){const{isDirty:e}=(0,c.useEntitiesSavedStatesIsDirty)(),{hasEmptyContent:t,isEmailSent:n,urls:u}=(0,a.useSelect)(e=>({hasEmptyContent:e(l.H).hasEmptyContent(),isEmailSent:e(l.H).isEmailSent(),urls:e(l.H).getUrls()}),[]);function p(){u.send&&(window.location.href=u.send)}const f=t||n||e,g=(0,s.applyFilters)("woocommerce_email_editor_send_button_disabled",f,{hasEmptyContent:t,isEmailSent:n,isDirty:e}),m="boolean"==typeof g?g:f,h=(0,s.applyFilters)("woocommerce_email_editor_send_button_label",(0,r.__)("Send","jetpack"));return(0,o.jsx)(i.Button,{variant:"primary",size:"compact",onClick:()=>{(0,d.yM)("header_send_button_clicked");(0,s.applyFilters)("woocommerce_email_editor_send_action_callback",p)()},disabled:m,"data-automation-id":"email_editor_send_button",children:h})}},3242(e,t,n){"use strict";n.d(t,{A:()=>b});var o=n(790),r=n(3582),i=n(7723),s=n(692),a=n(7839),c=n(6087),l=n(7143),d=n(6427),u=n(8537),p=n(2619),f=n(3124),g=n(6816);function m(e){return"string"==typeof e.title?(0,u.decodeEntities)(e.title):e.title&&"rendered"in e.title?(0,u.decodeEntities)(e.title.rendered):e.title&&"raw"in e.title?(0,u.decodeEntities)(e.title.raw):""}function h(e,t){return t?e.length>1?(0,i.sprintf)( // translators: %d: number of items to delete. // translators: %d: number of items to delete. (0,i._n)("Are you sure you want to permanently delete %d item?","Are you sure you want to permanently delete %d items?",e.length,"jetpack"),e.length):(0,i.sprintf)( // translators: %s: The post's title // translators: %s: The post's title (0,i.__)('Are you sure you want to permanently delete "%s"?',"jetpack"),(0,u.decodeEntities)(m(e[0]))):e.length>1?(0,i.sprintf)( // translators: %d: The number of items (2 or more). // translators: %d: The number of items (2 or more). (0,i._n)("Are you sure you want to move %d item to the trash ?","Are you sure you want to move %d items to the trash ?",e.length,"jetpack"),e.length):(0,i.sprintf)( // translators: %s: The item's title. // translators: %s: The item's title. (0,i.__)('Are you sure you want to move "%s" to the trash?',"jetpack"),m(e[0]))}var b=()=>{const e=(0,p.applyFilters)("woocommerce_email_editor_trash_modal_should_permanently_delete",!1);return{id:"trash-email-post",label:e?(0,i.__)("Permanently delete","jetpack"):(0,i.__)("Move to trash","jetpack"),supportsBulk:!0,icon:a.A,isEligible(e){if("wp_template"===e.type||"wp_template_part"===e.type||"wp_block"===e.type)return!1;const{permissions:t}=e;return t?.delete},hideModalHeader:!0,modalFocusOnMount:"firstContentElement",RenderModal:({items:t,closeModal:n,onActionPerformed:a})=>{const[u,p]=(0,c.useState)(!1),{createSuccessNotice:b,createErrorNotice:v}=(0,l.useDispatch)(s.store),{deleteEntityRecord:y}=(0,l.useDispatch)(r.store),{urls:_}=(0,l.useSelect)(e=>({urls:e(f.H).getUrls()}),[]);return(0,o.jsxs)(d.__experimentalVStack,{spacing:"5",children:[(0,o.jsx)(d.__experimentalText,{children:h(t,e)}),(0,o.jsxs)(d.__experimentalHStack,{justify:"right",children:[(0,o.jsx)(d.Button,{variant:"tertiary",onClick:()=>{n?.(),(0,g.yM)("trash_modal_cancel_button_clicked")},disabled:u,__next40pxDefaultSize:!0,children:(0,i.__)("Cancel","jetpack")}),(0,o.jsx)(d.Button,{variant:"primary",onClick:async()=>{(0,g.yM)("trash_modal_move_to_trash_button_clicked"),p(!0);const o=await Promise.allSettled(t.map(t=>y("postType",t.type,t.id,{force:e},{throwOnError:!0})));if(o.every(({status:e})=>"fulfilled"===e)){let n;n=1===o.length?e?(0,i.sprintf)(/* translators: The posts's title. */ /* translators: The posts's title. */ (0,i.__)('"%s" permanently deleted.',"jetpack"),m(t[0])):(0,i.sprintf)(/* translators: The item's title. */ /* translators: The item's title. */ (0,i.__)('"%s" moved to the trash.',"jetpack"),m(t[0])):e?(0,i.__)("The items were permanently deleted.","jetpack"):(0,i.sprintf)(/* translators: The number of items. */ /* translators: The number of items. */ (0,i._n)("%s item moved to the trash.","%s items moved to the trash.",t.length,"jetpack"),t.length),b(n,{type:"snackbar",id:"trash-email-post-action"}),a?.(t),_?.listings&&(window.location.href=_.listings)}else{let e;if(1===o.length){const t=o[0];e=t.reason?.message?t.reason.message:(0,i.__)("An error occurred while performing the action.","jetpack")}else{const t=new Set,n=o.filter(({status:e})=>"rejected"===e);for(const e of n){const n=e;n.reason?.message&&t.add(n.reason.message)}e=0===t.size?(0,i.__)("An error occurred while performing the action.","jetpack"):1===t.size?(0,i.sprintf)(/* translators: %s: an error message */ /* translators: %s: an error message */ (0,i.__)("An error occurred while performing the action: %s","jetpack"),[...t][0]):(0,i.sprintf)(/* translators: %s: a list of comma separated error messages */ /* translators: %s: a list of comma separated error messages */ (0,i.__)("Some errors occurred while performing the action: %s","jetpack"),[...t].join(","))}(0,g.yM)("trash_modal_move_to_trash_error",{errorMessage:e}),v(e,{type:"snackbar"})}p(!1),n?.()},isBusy:u,disabled:u,__next40pxDefaultSize:!0,children:e?(0,i.__)("Delete permanently","jetpack"):(0,i.__)("Move to trash","jetpack")})]})]})}}}},8287(e,t,n){"use strict";var o=n(790),r=n(7723),i=n(9491),s=n(8558),a=n(1233),c=n(1847),l=n(3124);n.d(t,["n",0,()=>{const e=(0,i.useViewportMatch)("large");return(0,o.jsx)(o.Fragment,{children:e&&(0,o.jsx)(c.Lf,{children:(0,o.jsx)(a.PreferenceToggleMenuItem,{scope:l.H,name:"fullscreenMode",label:(0,r.__)("Fullscreen mode","jetpack"),info:(0,r.__)("Show and hide the admin user interface","jetpack"),messageActivated:(0,r.__)("Fullscreen mode activated.","jetpack"),messageDeactivated:(0,r.__)("Fullscreen mode deactivated.","jetpack"),shortcut:s.displayShortcut.secondary("f")})})})}])},7159(e,t,n){"use strict";n.d(t,{D:()=>d});var o=n(790),r=n(6427),i=n(7143),s=n(692),a=n(9455),c=n(7442),l=n(1324);function d({disableSnackbarNotices:e=!1}={}){const{notices:t}=(0,i.useSelect)(e=>({notices:e(s.store).getNotices("email-editor")}),[]),{removeNotice:n}=(0,i.useDispatch)(s.store),d=t.filter(({isDismissible:e,type:t})=>e&&"default"===t),u=t.filter(({isDismissible:e,type:t})=>!e&&"default"===t);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(l.g,{children:[(0,o.jsx)(r.NoticeList,{notices:u,className:"components-editor-notices__pinned"}),(0,o.jsx)(r.NoticeList,{notices:d,className:"components-editor-notices__dismissible",onRemove:e=>n(e,"email-editor")}),(0,o.jsx)(a.V,{})]}),!e&&(0,o.jsx)(c.G,{})]})}},7442(e,t,n){"use strict";n.d(t,{G:()=>a});var o=n(790),r=n(6427),i=n(7143),s=n(692);function a(){const e=(0,i.useSelect)(e=>e(s.store).getNotices(),[]),{removeNotice:t}=(0,i.useDispatch)(s.store),n=e.filter(({type:e})=>"snackbar"===e).slice(-3);return(0,o.jsx)(r.SnackbarList,{notices:n,className:"components-editor-notices__snackbar edit-post-layout__snackbar",onRemove:t})}},9455(e,t,n){"use strict";n.d(t,{V:()=>a});var o=n(790),r=n(7723),i=n(6427),s=n(7711);function a(){const{notices:e}=(0,s.k)();return 0===e.length?null:(0,o.jsx)(i.Notice,{status:"error",className:"woocommerce-email-editor-validation-errors components-editor-notices__pinned",isDismissible:!1,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("strong",{children:(0,r.__)("Fix errors to continue:","jetpack")}),(0,o.jsx)("ul",{children:e.map(({id:e,content:t,actions:n})=>(0,o.jsxs)("li",{children:[t,n.length>0?n.map(({label:e,onClick:t})=>(0,o.jsx)(i.Button,{onClick:t,variant:"link",children:e},e)):null]},e))})]})})}},3475(e,t,n){"use strict";var o=n(790),r=n(6087),i=n(6427),s=n(7723);n.d(t,["M",0,({groupedTags:e,activeCategory:t,onCategorySelect:n})=>{const a=e=>e===t?"woocommerce-personalization-tags-modal-menu-item-active":"";return(0,o.jsxs)(i.MenuGroup,{className:"woocommerce-personalization-tags-modal-menu",children:[(0,o.jsx)(i.MenuItem,{onClick:()=>n(null),className:a(null),children:(0,s.__)("All","jetpack")}),(0,o.jsx)("div",{className:"woocommerce-personalization-tags-modal-menu-separator","aria-hidden":"true",role:"presentation","data-testid":"woocommerce-personalization-tags-modal-menu-separator"}),Object.keys(e).map((e,t,s)=>(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(i.MenuItem,{onClick:()=>n(e),className:a(e),children:e}),t<s.length-1&&(0,o.jsx)("div",{className:"woocommerce-personalization-tags-modal-menu-separator","aria-hidden":"true",role:"presentation","data-testid":"woocommerce-personalization-tags-modal-menu-separator"})]},e))]})}])},2433(e,t,n){"use strict";var o=n(790),r=n(6427),i=n(7723),s=n(7143),a=n(4715);n.d(t,["a",0,({groupedTags:e,activeCategory:t,onInsert:n,canInsertLink:c,closeCallback:l,openLinkModal:d})=>{const{updateBlockAttributes:u}=(0,s.useDispatch)(a.store),p=(0,s.useSelect)(e=>e(a.store).getSelectedBlockClientId()),f=(0,s.useSelect)(e=>e(a.store).getBlock(p)),g=["core/button"].includes(f?.name),m=null===t?Object.entries(e):[[t,e[t]||[]]];return(0,o.jsx)(o.Fragment,{children:m.map(([e,t])=>(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"woocommerce-personalization-tags-modal-category",children:e}),(0,o.jsx)("div",{className:"woocommerce-personalization-tags-modal-category-group",children:t.map(t=>{const s=/\burl\b/.test(t.token);return(0,o.jsxs)("div",{className:"woocommerce-personalization-tags-modal-category-group-item",children:[(0,o.jsxs)("div",{className:"woocommerce-personalization-tags-modal-item-text",children:[(0,o.jsx)("strong",{children:t.name}),t.valueToInsert]}),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[(0,o.jsx)(r.Button,{variant:"link",onClick:()=>{n&&n(t.valueToInsert,!1)},children:(0,i.__)("Insert","jetpack")}),g&&s&&(0,o.jsx)(r.Button,{variant:"link",onClick:()=>{u(p,{url:t.valueToInsert}),l()},children:(0,i.__)("Set as URL","jetpack")}),e===(0,i.__)("Link","jetpack")&&c&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.Button,{variant:"link",onClick:()=>{l(),d(t)},children:(0,i.__)("Insert as link","jetpack")})})]})]},t.token)})})]},e))})}])},3571(e,t,n){"use strict";var o=n(790),r=n(6427),i=n(7723),s=n(6087);n.d(t,["U",0,({onInsert:e,isOpened:t,closeCallback:n,tag:a})=>{const[c,l]=(0,s.useState)((0,i.__)("Link","jetpack"));return t?(0,o.jsxs)(r.Modal,{size:"small",title:(0,i.__)("Insert Link","jetpack"),onRequestClose:n,className:"woocommerce-personalization-tags-modal",children:[(0,o.jsx)(r.TextControl,{label:(0,i.__)("Link Text","jetpack"),value:c,onChange:e=>l(e)}),(0,o.jsx)(r.Button,{isPrimary:!0,onClick:()=>{e&&e(a.token,c)},children:(0,i.__)("Insert","jetpack")})]}):null}])},646(e,t,n){"use strict";var o=n(790),r=n(6087),i=n(7723),s=n(7143),a=n(6427),c=n(3124);n.d(t,["N",0,({contentRef:e,onUpdate:t})=>{const[n,l]=(0,r.useState)(!1),[d,u]=(0,r.useState)(null),[p,f]=(0,r.useState)(""),[g,m]=(0,r.useState)(""),h=(0,s.useSelect)(e=>e(c.H).getPersonalizationTagsList(),[]);return(0,r.useEffect)(()=>{if(!e||!e.current)return;const t=e.current,n=e=>{const t=e.target.closest("a[data-link-href]");t&&(u(t),m(t.getAttribute("data-link-href")||""),f(t.textContent||""),l(!0))};return t.addEventListener("click",n),()=>{t.removeEventListener("click",n)}},[e]),(0,o.jsx)(o.Fragment,{children:n&&d&&(0,o.jsx)(a.Popover,{position:"bottom left",onClose:()=>l(!1),anchor:d,className:"woocommerce-personalization-tag-popover",children:(0,o.jsxs)("div",{className:"woocommerce-personalization-tag-popover-content",children:[(0,o.jsx)(a.TextControl,{label:(0,i.__)("Link Text","jetpack"),value:p,onChange:e=>f(e),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off"}),(0,o.jsx)(a.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,i.__)("Link tag","jetpack"),value:g,onChange:e=>{m(e)},options:h.filter(e=>e.category===(0,i.__)("Link","jetpack")).map(e=>({label:e.name,value:e.token}))}),(0,o.jsxs)("div",{className:"woocommerce-personalization-tag-popover-content-buttons",children:[(0,o.jsx)(a.Button,{isTertiary:!0,onClick:()=>{l(!1)},children:(0,i.__)("Cancel","jetpack")}),(0,o.jsx)(a.Button,{isPrimary:!0,onClick:()=>{l(!1),t(d,g,p)},children:(0,i.__)("Update link","jetpack")})]})]})})})}])},7845(e,t,n){"use strict";var o=n(790),r=n(6427),i=n(7723),s=n(6087),a=n(7143),c=n(3475),l=n(2433),d=n(3571),u=n(6816),p=n(3124);n.d(t,["x",0,({onInsert:e,isOpened:t,closeCallback:n,canInsertLink:f=!1,openedBy:g=""})=>{const[m,h]=(0,s.useState)(null),[b,v]=(0,s.useState)(""),[y,_]=(0,s.useState)(null),[w,x]=(0,s.useState)(!1),k=(0,a.useSelect)(e=>e(p.H).getPersonalizationTagsList(),[]);if(w)return(0,o.jsx)(d.U,{onInsert:(t,n)=>{e(t,n),x(!1)},isOpened:w,closeCallback:()=>x(!1),tag:y});if(!t)return null;(0,u.xW)("personalization_tags_modal_opened",{openedBy:g});const S=k.reduce((e,t)=>{const{category:n,name:o,token:r}=t;return(!b||o.toLowerCase().includes(b.toLowerCase())||r.toLowerCase().includes(b.toLowerCase()))&&(e[n]||(e[n]=[]),e[n].push(t)),e},{});return(0,o.jsxs)(r.Modal,{size:"medium",title:(0,i.__)("Personalization Tags","jetpack"),onRequestClose:()=>{n(),(0,u.yM)("personalization_tags_modal_closed",{openedBy:g})},className:"woocommerce-personalization-tags-modal",children:[(0,o.jsxs)("p",{children:[(0,i.__)("Insert personalization tags to dynamically fill in information and personalize your emails.","jetpack")," ",(0,o.jsx)(r.ExternalLink,{href:"https://kb.mailpoet.com/article/435-a-guide-to-personalisation-tags-for-tailored-newsletters#list",onClick:()=>(0,u.yM)("personalization_tags_modal_learn_more_link_clicked",{openedBy:g}),children:(0,i.__)("Learn more","jetpack")})]}),(0,o.jsx)(r.SearchControl,{onChange:e=>{v(e),(0,u.xW)("personalization_tags_modal_search_control_input_updated",{openedBy:g})},value:b}),(0,o.jsx)(c.M,{groupedTags:S,activeCategory:m,onCategorySelect:e=>{h(e),(0,u.yM)("personalization_tags_modal_category_menu_clicked",{category:e,openedBy:g})}}),(0,o.jsx)(l.a,{groupedTags:S,activeCategory:m,onInsert:t=>{e(t),(0,u.yM)("personalization_tags_modal_tag_insert_button_clicked",{insertedTag:t,activeCategory:m,openedBy:g})},closeCallback:n,canInsertLink:f,openLinkModal:e=>{_(e),x(!0)}})]})}])},2553(e,t,n){"use strict";var o=n(790),r=n(6087),i=n(6427),s=n(7723);n.d(t,["t",0,({contentRef:e,onUpdate:t})=>{const[n,a]=(0,r.useState)(!1),[c,l]=(0,r.useState)(null),[d,u]=(0,r.useState)(""),[p,f]=(0,r.useState)("");return(0,r.useEffect)(()=>{if(!e||!e.current)return;const t=e.current,n=e=>{const t=e.target.closest("span[data-rich-text-comment]");if(t){const e=t.innerText.replace(/^\[|\]$/g,"");f(e),u(e),l(t),a(!0)}};return t.addEventListener("click",n),()=>{t.removeEventListener("click",n)}},[e]),(0,o.jsx)(o.Fragment,{children:n&&c&&(0,o.jsx)(i.Popover,{position:"bottom right",onClose:()=>a(!1),anchor:c,className:"woocommerce-personalization-tag-popover",children:(0,o.jsxs)("div",{className:"woocommerce-personalization-tag-popover-content",children:[(0,o.jsx)(i.TextControl,{label:(0,s.__)("Personalization Tag","jetpack"),value:d,onChange:e=>u(e),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,o.jsxs)("div",{className:"woocommerce-personalization-tag-popover-content-buttons",children:[(0,o.jsx)(i.Button,{isTertiary:!0,onClick:()=>{a(!1)},children:(0,s.__)("Cancel","jetpack")}),(0,o.jsx)(i.Button,{isPrimary:!0,onClick:()=>{t(p,d,c),a(!1)},children:(0,s.__)("Update","jetpack")})]})]})})})}])},8389(e,t,n){"use strict";var o=n(876);n.d(t,["As",0,(e,t,n)=>{const o=t&&e.replacements[t.start];if(!t||!o||t.end-t.start!==1||""!==e.text[t.start]||"#comment"!==o.type)return null;const r=e.replacements.slice();return r[t.start]={...o,attributes:{...o.attributes,"data-rich-text-comment":`[${n}]`}},{...e,replacements:r,activeFormats:[]}},"D2",0,(e,t)=>(t.forEach(t=>{if(!e.includes(t.token.slice(0,t.token.length-1)))return;const n=t.token.substring(1,t.token.length-1).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=new RegExp(`(?<!\x3c!--)(?<!["'])\\[(${n}(\\s[^\\]]*)?)\\](?!--\x3e)`,"g");e=e.replace(o,e=>`\x3c!--${e}--\x3e`)}),e),"Ey",0,e=>{const t=e.current,n=t?.ownerDocument.defaultView?.getSelection();if(!t||!n?.rangeCount)return null;const r=n.getRangeAt(0).cloneRange();if(!r.intersectsNode(t))return null;t.contains(r.endContainer)||r.setEnd(t,t.childNodes.length);const i=e=>{const n=e.nodeType===e.TEXT_NODE?e.parentElement:e,o=n?.closest("[data-rich-text-comment]");return o&&t.contains(o)?o:null},s=i(r.startContainer);s&&r.setStartAfter(s);const a=i(r.endContainer);a&&r.setEndAfter(a);const{start:c,end:l}=(0,o.create)({element:t,range:r,__unstableIsEditableTree:!0});return{start:c??0,end:l??c??0}},"iK",0,(e,t,n)=>{const r=e.start??e.text.length,i=e.end??r;if(!n)return{...(0,o.insert)(e,(0,o.create)({html:`\x3c!--${t}--\x3e `}),r,i),activeFormats:[]};const s=(0,o.insert)(e,n,r,i);return{...(0,o.applyFormat)(s,{type:"woocommerce-email-editor/link-shortcode",attributes:{"data-link-href":t,contenteditable:"false",style:"text-decoration: underline;"}},r,r+n.length),activeFormats:[]}},"yF",0,(e,t,n=!1)=>{if(!e?.contains(t))return null;const r=e.ownerDocument.createRange();n?r.selectNodeContents(t):r.selectNode(t);const{start:i,end:s}=(0,o.create)({element:e,range:r,__unstableIsEditableTree:!0});return void 0===i||void 0===s?null:{start:i,end:s}}])},9155(e,t,n){"use strict";n.d(t,{O:()=>m});var o=n(790),r=n(6427),i=n(7143),s=n(6087),a=n(876),c=n(4715),l=n(7723),d=n(7845),u=n(8389),p=n(3124),f=n(2553),g=n(6816);function m({label:e,labelSuffix:t,help:n,placeholder:m,attributeName:h,attributeValue:b,updateProperty:v=()=>{}}){const y=(0,s.useRef)(null),[_,w]=(0,s.useState)(!1),x=(0,i.useSelect)(e=>e(p.H).getPersonalizationTagsList(),[]),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{const e=k.current?.ownerDocument??document,t=()=>{if(!k.current||e.activeElement!==k.current)return;const t=(0,u.Ey)(k);t&&(y.current=t)};return e.addEventListener("selectionchange",t),()=>e.removeEventListener("selectionchange",t)},[]);const S=(0,s.useCallback)((e,t,n)=>{let o=(0,a.create)({html:t});const r=n?.start??o.text.length,i=n?.end??r;o=(0,a.insert)(o,(0,a.create)({html:`\x3c!--${e}--\x3e`}),r,i);const s=(0,a.toHTMLString)({value:o});v(h,s),y.current={start:r+1,end:r+1}},[h,v]),j=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{children:e}),(0,o.jsx)(r.Button,{className:"woocommerce-settings-panel-personalization-tags-button",icon:"shortcode",title:(0,l.__)("Personalization Tags","jetpack"),onClick:()=>{w(!0),(0,g.yM)("rich_text_with_button_personalization_tags_shortcode_icon_clicked",{attributeName:h,label:e})}}),t]});return h?(0,o.jsxs)(r.BaseControl,{id:"",label:j,className:`woocommerce-settings-panel-${h}-text`,help:n,__nextHasNoMarginBottom:!0,children:[(0,o.jsx)(d.x,{isOpened:_,onInsert:e=>{S(e,b??"",y.current),w(!1),(0,g.yM)("rich_text_with_button_personalization_tags_inserted",{attributeName:h,value:e})},closeCallback:()=>w(!1),openedBy:"RichTextWithButton-BaseControl"}),(0,o.jsx)(f.t,{contentRef:k,onUpdate:(e,t,n)=>{const o=b??"";if(n){const e=(0,u.As)((0,a.create)({html:o}),(0,u.yF)(k.current,n),t);if(e)return void v(h,(0,a.toHTMLString)({value:e}))}v(h,o.replace(`\x3c!--[${e}]--\x3e`,`\x3c!--[${t}]--\x3e`))}}),(0,o.jsx)(c.RichText,{ref:k,className:"woocommerce-settings-panel-richtext",placeholder:m,onChange:e=>{e=(0,u.D2)(e??"",x),v(h,e),(0,g.xW)("rich_text_with_button_input_field_updated",{attributeName:h})},value:b??"","data-automation-id":`email_${h}`})]}):null}},7709(e,t,n){"use strict";var o=n(7723),r=n(6087),i=n(7143),s=n(3656),a=n(692);n.d(t,["p",0,()=>{const e='.editor-preview-dropdown__button-external, a[role="menuitem"][target^="wp-preview-"]',t=async t=>{const n=t.target,r=n?.closest(e);if(!r)return;const c=(0,i.select)(s.store),l=c?.isEditedPostDirty();l&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),(0,i.dispatch)(a.store).createNotice("warning",(0,o.__)("You have unsaved changes. Please save the post before previewing.","jetpack"),{context:"email-editor",isDismissible:!0}))},n=(0,r.useCallback)(n=>{try{const o=n.target;"Enter"!==n.key&&" "!==n.key||!o?.closest(e)||t(n)}catch(e){console.warn("Preview save message guard error:",e)}},[e]);return(0,r.useEffect)(()=>(document.addEventListener("click",t,!0),document.addEventListener("auxclick",t,!0),document.addEventListener("keydown",n,!0),()=>{document.removeEventListener("click",t,!0),document.removeEventListener("auxclick",t,!0),document.removeEventListener("keydown",n,!0)}),[n]),null}])},4089(e,t,n){"use strict";var o=n(790),r=n(6427),i=n(7143),s=n(3109),a=n(8901),c=n(7723),l=n(6087),d=n(8558),u=n(3832),p=n(2619),f=n(3124),g=n(8311),m=n(6816);const h=(0,l.memo)(function(){const e=(0,l.useRef)(null),{requestSendingNewsletterPreview:t,togglePreviewModal:n,updateSendPreviewEmail:h}=(0,i.useDispatch)(f.H),{toEmail:b,isSendingPreviewEmail:v,sendingPreviewStatus:y,isModalOpened:_,errorMessage:w,postType:x}=(0,i.useSelect)(e=>({...e(f.H).getPreviewState(),postType:e(f.H).getEmailPostType()}),[]),k=()=>{t(b)},S=(0,l.useMemo)(()=>(0,p.applyFilters)("woocommerce_email_editor_check_sending_method_configuration_link",`https://www.mailpoet.com/blog/mailpoet-smtp-plugin/?utm_source=woocommerce_email_editor&utm_medium=plugin&utm_source_platform=${x}`),[x]),j=()=>{(0,m.yM)("send_preview_email_modal_closed"),n(!1)};return(0,l.useEffect)(()=>{_&&(e.current?.focus(),(0,m.yM)("send_preview_email_modal_opened"))},[_]),_?(0,o.jsxs)(r.Modal,{className:"woocommerce-send-preview-email",title:(0,c.__)("Send a test email","jetpack"),onRequestClose:j,focusOnMount:!1,children:[y===g.T.ERROR?(0,o.jsxs)("div",{className:"woocommerce-send-preview-modal-notice-error",children:[(0,o.jsx)("p",{children:(0,c.__)("Sorry, we were unable to send this email.","jetpack")}),(0,o.jsx)("strong",{children:w&&(0,c.sprintf)( // translators: %s is an error message. // translators: %s is an error message. (0,c.__)("Error: %s","jetpack"),w)}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:S&&(0,l.createInterpolateElement)((0,c.__)("Please check your <link>sending method configuration</link> with your hosting provider.","jetpack"),{link:(0,o.jsx)("a",{href:S,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,m.yM)("send_preview_email_modal_check_sending_method_configuration_link_clicked")})})}),(0,o.jsx)("li",{children:(0,l.createInterpolateElement)((0,c.__)("Or, sign up for MailPoet Sending Service to easily send emails. <link>Sign up for free</link>","jetpack"),{link:(0,o.jsx)("a",{href:`https://account.mailpoet.com/?s=1&g=1&utm_source=woocommerce_email_editor&utm_medium=plugin&utm_source_platform=${x}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,m.yM)("send_preview_email_modal_sign_up_for_mailpoet_sending_service_link_clicked")},"sign-up-for-free")})})]})]}):null,(0,o.jsx)("p",{children:(0,c.__)("Send yourself a test email to test how your email would look like in different email apps.","jetpack")}),(0,o.jsx)(r.TextControl,{label:(0,c.__)("Send to","jetpack"),onChange:e=>{h(e),(0,m.xW)("send_preview_email_modal_send_to_field_updated")},onKeyDown:e=>{const{keyCode:t}=e;t===d.ENTER&&(e.preventDefault(),k(),(0,m.yM)("send_preview_email_modal_send_to_field_key_code_enter"))},className:"woocommerce-send-preview-email__send-to-field",value:b,type:"email",ref:e,required:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),y===g.T.SUCCESS?(0,o.jsxs)("p",{className:"woocommerce-send-preview-modal-notice-success",children:[(0,o.jsx)(s.A,{icon:a.A,style:{fill:"#4AB866"}}),(0,c.__)("Test email sent successfully!","jetpack")]}):null,(0,o.jsxs)("div",{className:"woocommerce-send-preview-modal-footer",children:[(0,o.jsx)(r.Button,{variant:"tertiary",onClick:()=>{(0,m.yM)("send_preview_email_modal_close_button_clicked"),j()},children:(0,c.__)("Cancel","jetpack")}),(0,o.jsx)(r.Button,{variant:"primary",onClick:()=>{k(),(0,m.yM)("send_preview_email_modal_send_test_email_button_clicked")},disabled:v||!(0,u.isEmail)(b),children:v?(0,c.__)("Sending…","jetpack"):(0,c.__)("Send test email","jetpack")})]})]}):null});n.d(t,["P",0,h])},7680(e,t,n){"use strict";n.d(t,{h:()=>u});var o=n(790),r=n(7143),i=n(7723),s=n(1866),a=n(3656),c=n(3124),l=n(4089),d=n(6816);function u(){const{togglePreviewModal:e}=(0,r.useDispatch)(c.H);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.PluginPreviewMenuItem,{icon:s.A,onClick:()=>{(0,d.yM)("header_preview_dropdown_send_test_email_selected"),e(!0)},children:(0,i.__)("Send a test email","jetpack")}),(0,o.jsx)(l.P,{})]})}},3373(e,t,n){"use strict";n.d(t,{x:()=>l});var o=n(790),r=n(4997),i=n(6427),s=n(7143),a=n(7723);const c=e=>{const t=(0,r.getBlockSupport)(e,"background");return t&&!1!==t?.backgroundImage};function l(){const e=(0,s.useSelect)(e=>e("core/block-editor").getSelectedBlock(),[]),t=(0,r.hasBlockSupport)(e?.name,"border",!1)||(0,r.hasBlockSupport)(e?.name,"__experimentalBorder",!1);return(0,o.jsxs)(o.Fragment,{children:[t&&(0,o.jsx)(i.Fill,{name:"InspectorControlsBorder",children:(0,o.jsxs)(i.Notice,{className:"woocommerce-grid-full-width",status:"warning",isDismissible:!1,children:[(0,a.__)("Border display may vary or be unsupported in some email clients.","jetpack"),(0,o.jsx)("br",{}),(0,a.__)("Units other than pixels (px) lack support in old email clients.","jetpack")]})}),c(e?.name)&&(0,o.jsx)(i.Fill,{name:"InspectorControlsBackground",children:(0,o.jsx)(i.Notice,{className:"woocommerce-grid-full-width",status:"warning",isDismissible:!1,children:(0,a.__)("Select a background color for email clients that do not support background images.","jetpack")})})]})}},1584(e,t,n){"use strict";n.d(t,{A:()=>b});var o=n(790),r=n(7723),i=n(692),s=n(3582),a=n(8929),c=n(6087),l=n(7143),d=n(6427),u=n(8537),p=n(4997),f=n(1455),g=n.n(f),m=n(6816);function h(e){return"string"==typeof e.title?(0,u.decodeEntities)(e.title):e.title&&"rendered"in e.title?(0,u.decodeEntities)(e.title.rendered):e.title&&"raw"in e.title?(0,u.decodeEntities)(e.title.raw):""}var b=()=>({id:"reset-email-template",label:(0,r.__)("Reset","jetpack"),supportsBulk:!1,icon:a.A,isEligible(e){if("wp_template"!==e.type)return!1;if("custom"!==e.source)return!1;if(!Boolean(e.plugin)&&!Boolean(e.has_theme_file))return!1;const{permissions:t}=e;return t?.delete},hideModalHeader:!0,modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[a,u]=(0,c.useState)(!1),{createSuccessNotice:f,createErrorNotice:b}=(0,l.useDispatch)(i.store),{invalidateResolution:v,editEntityRecord:y,saveEditedEntityRecord:_}=(0,l.useDispatch)(s.store),w=e[0],x=(0,r.sprintf)( // translators: %s: The template's title // translators: %s: The template's title (0,r.__)('Are you sure you want to reset "%s" to default?',"jetpack"),h(w));return(0,o.jsxs)(d.__experimentalVStack,{spacing:"5",children:[(0,o.jsx)(d.__experimentalText,{children:x}),(0,o.jsxs)(d.__experimentalHStack,{justify:"right",children:[(0,o.jsx)(d.Button,{variant:"tertiary",onClick:()=>{t?.(),(0,m.yM)("reset_modal_cancel_button_clicked")},disabled:a,__next40pxDefaultSize:!0,children:(0,r.__)("Cancel","jetpack")}),(0,o.jsx)(d.Button,{variant:"primary",onClick:async()=>{(0,m.yM)("reset_modal_confirm_button_clicked"),u(!0);try{const o=await g()({path:`/wp/v2/templates/${w.id}?context=edit&source=${w.origin}`}),i=(0,p.parse)(o.content?.raw||"");y("postType",w.type,w.id,{blocks:i,content:(0,p.serialize)(i),source:w.origin}),await _("postType",w.type,w.id,{}),await g()({path:`/wp/v2/templates/${w.id}`,method:"DELETE"}),v("getEntityRecord",["postType",w.type,w.id]);const s=(0,r.sprintf)(/* translators: The template's title. */ /* translators: The template's title. */ (0,r.__)('"%s" reset to default.',"jetpack"),h(w));f(s,{type:"snackbar",id:"reset-email-template-action"}),n?.(e),u(!1),t?.()}catch(e){let n=(0,r.__)("An error occurred while resetting the template.","jetpack");e&&"object"==typeof e&&"message"in e&&(n=e.message),(0,m.yM)("reset_modal_error",{errorMessage:n}),b(n,{type:"snackbar"}),u(!1),t?.()}},isBusy:a,disabled:a,__next40pxDefaultSize:!0,children:(0,r.__)("Reset","jetpack")})]})]})}})},5209(e,t,n){"use strict";n.d(t,{O:()=>g});var o=n(790),r=n(7723),i=n(2619),s=n(6087),a=n(6427),c=n(3656),l=n(9155),d=n(6816);const u={recordEvent:d.yM,recordEventOnce:d.xW,debouncedRecordEvent:d.T7},{Fill:p,Slot:f}=(0,a.createSlotFill)("WooCommerceEmailEditorPostSummarySection");function g(){const e=(0,s.useMemo)(()=>(0,i.applyFilters)("woocommerce_email_editor_setting_sidebar_extension_component",l.O,u),[]);return(0,o.jsxs)(c.PluginDocumentSettingPanel,{name:"email-settings-panel",title:(0,r.__)("Settings","jetpack"),className:"woocommerce-email-editor__settings-panel",children:[(0,o.jsx)(f,{}),(0,o.jsx)(c.ErrorBoundary,{canCopyContent:!0,children:(0,o.jsx)(e,{})})]})}},3364(e,t,n){"use strict";n.d(t,{c:()=>l});var o=n(790),r=n(7723),i=n(2619),s=n(3656),a=n(6816);const c={recordEvent:a.yM,recordEventOnce:a.xW,debouncedRecordEvent:a.T7};function l(){const e=(0,i.applyFilters)("woocommerce_email_editor_template_sections",[],c);return 0===e.length?null:(0,o.jsx)(s.PluginDocumentSettingPanel,{name:"template-settings-panel",title:(0,r.__)("Settings","jetpack"),className:"woocommerce-email-editor__settings-panel",children:e.map(e=>(0,o.jsx)(s.ErrorBoundary,{children:(0,o.jsx)("div",{children:e.render()},e.id)},`error-boundary-${e.id}`))})}},9034(e,t,n){"use strict";n.d(t,{Cx:()=>c,DL:()=>l,SG:()=>d});var o=n(6087),r=n(7143),i=n(3124),s=n(1847);const a={color:{text:!0,background:!0,custom:!0}};function c(){return!(0,s.H7)(a)}function l(){const e=(0,r.useSelect)(e=>e(i.H).getTheme(),[]);return(0,o.useMemo)(()=>({...e?.settings,background:{backgroundImage:!1,backgroundSize:!1,gradient:!1}}),[e?.settings])}function d(){return(0,s.sV)(l())}},4751(e,t,n){"use strict";var o=n(6427);const r=o.Navigator||o.__experimentalNavigatorProvider;o.Navigator||(r.Screen=o.__experimentalNavigatorScreen,r.BackButton=o.__experimentalNavigatorBackButton),n.d(t,["m",0,r])},9457(e,t,n){"use strict";n.d(t,{Q:()=>u});var o=n(790),r=n(3022),i=n(7723),s=n(6087),a=n(103),c=n(6427),l=n(4715);const d={placement:"left-start",offset:36,shift:!0};function u({label:e,hasValue:t,resetValue:n,isShownByDefault:u,inheritedValue:p,userValue:f,setValue:g,colorGradientControlSettings:m}){const h=(0,s.useRef)(null);return(0,o.jsx)(c.__experimentalToolsPanelItem,{className:"block-editor-color-gradient-item block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:u,children:(0,o.jsx)(c.Dropdown,{popoverProps:d,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:s,isOpen:l})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.Button,{onClick:s,className:(0,r.A)("block-editor-panel-color-gradient-settings__dropdown",{"is-open":l}),"aria-expanded":l,ref:h,__next40pxDefaultSize:!0,children:(0,o.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,o.jsx)(c.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:p}),(0,o.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:e,children:e})]})}),t()&&(0,o.jsx)(c.Button,{__next40pxDefaultSize:!0,label:(0,i.__)("Reset","jetpack"),className:"block-editor-panel-color-gradient-settings__reset",size:"small",icon:a.A,onClick:()=>{n(),l&&s(),h.current?.focus()}})]}),renderContent:()=>(0,o.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,o.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,o.jsx)(l.__experimentalColorGradientControl,{...m,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:p,onColorChange:g,clearable:p===f,headingLevel:3})})})})})}},7256(e,t,n){"use strict";n.d(t,{W:()=>d});var o=n(790),r=n(7723),i=n(8468),s=n(4715),a=n(6427),c=n(665),l=n(6816);function d(){const[e]=(0,s.useSettings)("spacing.units"),t=(0,a.__experimentalUseCustomUnits)({availableUnits:e}),{styles:n,defaultStyles:d,updateStyleProp:u}=(0,c.u)();return(0,o.jsxs)(a.__experimentalToolsPanel,{label:(0,r.__)("Dimensions","jetpack"),resetAll:()=>{u(["spacing"],d.spacing),(0,l.yM)("styles_sidebar_screen_layout_dimensions_reset_all_selected")},children:[(0,o.jsx)(a.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!(0,i.isEqual)(n.spacing.padding,d.spacing.padding),label:(0,r.__)("Padding","jetpack"),onDeselect:()=>{u(["spacing","padding"],d.spacing.padding),(0,l.yM)("styles_sidebar_screen_layout_dimensions_padding_reset_clicked")},className:"tools-panel-item-spacing",children:(0,o.jsx)(s.__experimentalSpacingSizesControl,{allowReset:!0,values:n.spacing.padding,onChange:e=>{u(["spacing","padding"],e),(0,l.T7)("styles_sidebar_screen_layout_dimensions_padding_updated",{value:e})},label:(0,r.__)("Padding","jetpack"),sides:["horizontal","vertical","top","left","right","bottom"],units:t})}),(0,o.jsx)(a.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,r.__)("Block spacing","jetpack"),hasValue:()=>n.spacing.blockGap!==d.spacing.blockGap,onDeselect:()=>{u(["spacing","blockGap"],d.spacing.blockGap),(0,l.yM)("styles_sidebar_screen_layout_dimensions_block_spacing_reset_clicked")},className:"tools-panel-item-spacing",children:(0,o.jsx)(s.__experimentalSpacingSizesControl,{label:(0,r.__)("Block spacing","jetpack"),min:0,onChange:e=>{u(["spacing","blockGap"],e.top),(0,l.T7)("styles_sidebar_screen_layout_dimensions_block_spacing_updated",{value:e})},showSideInLabel:!1,sides:["top"],values:{top:n.spacing.blockGap},allowReset:!0})})]})}},4013(e,t,n){"use strict";n.d(t,{Ay:()=>b});var o=n(790),r=n(7723),i=n(6087),s=n(7143),a=n(2267),c=n(6427),l=n(4715),d=n(665),u=n(3124),p=n(1935),f=n(9034),g=n(9457),m=n(6816);const h={textColor:!0,fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!1,textTransform:!1,textDecoration:!1,writingMode:!0,textColumns:!0};var b=function({element:e,headingLevel:t,defaultControls:n=h}){const[b,v]=(0,l.useSettings)("typography.fontSizes","typography.fontFamilies"),[y]=(0,l.useSettings)("spacing.units"),_=v?.default||[],w=(0,s.useSelect)(e=>e(u.H).getTheme(),[]),x=(0,l.__experimentalUseMultipleOriginColorsAndGradients)(),k=(0,f.Cx)()&&"text"===e,{styles:S,defaultStyles:j,userStyles:C,updateStyleProp:E,updateStyles:T}=(0,d.u)(),R=(0,p.B)(S,e,t),M=(0,p.B)(j,e,t),{fontFamily:A,fontSize:P,fontStyle:N,fontWeight:I,lineHeight:z,letterSpacing:F,textDecoration:O,textTransform:B}=R.typography,{fontFamily:L,fontSize:$,fontStyle:H,fontWeight:D,lineHeight:V,letterSpacing:W,textDecoration:G,textTransform:q}=M.typography,U=C?.color?.text,K=M.color?.text,J=(0,a.yQ)({settings:w?.settings},"",R.color?.text),X=U?(0,a.yQ)({settings:w?.settings},"",U):void 0,Y="heading"!==e||"heading"!==t,Z=(0,i.useCallback)(n=>"heading"===e?["elements",t,...n]:"text"===e?[...n]:["elements",e,...n],[e,t]),Q=(0,i.useCallback)((e,t)=>{E(Z(e),t)},[Z,E]),ee=t=>{const n=void 0===t?void 0:(0,a.Px)(w?.settings,void 0,"color.text",t);Q(["color","text"],n),(0,m.T7)("styles_sidebar_screen_typography_element_panel_set_text_color",{element:e,newValue:t,selectedDefaultTextColor:n===K})},te=t=>{Q(["typography","letterSpacing"],t),(0,m.T7)("styles_sidebar_screen_typography_element_panel_set_letter_spacing",{element:e,newValue:t,selectedDefaultLetterSpacing:t===W})},ne=t=>{Q(["typography","lineHeight"],t),(0,m.T7)("styles_sidebar_screen_typography_element_panel_set_line_height",{element:e,newValue:t,selectedDefaultLineHeight:t===V})},oe=n=>{Q(["typography","fontSize"],n),(0,m.T7)("styles_sidebar_screen_typography_element_panel_set_font_size",{element:e,headingLevel:t,newValue:n,selectedDefaultFontSize:n===$})},re=t=>{Q(["typography","fontFamily"],t),(0,m.T7)("styles_sidebar_screen_typography_element_panel_set_font_family",{element:e,newValue:t,selectedDefaultFontFamily:t===L})},ie=t=>{Q(["typography","textDecoration"],t),(0,m.T7)("styles_sidebar_screen_typography_element_panel_set_text_decoration",{element:e,newValue:t,selectedDefaultTextDecoration:t===G})},se=t=>{Q(["typography","textTransform"],t),(0,m.T7)("styles_sidebar_screen_typography_element_panel_set_text_transform",{element:e,newValue:t,selectedDefaultTextTransform:t===q})},ae=({fontStyle:t,fontWeight:n})=>{T((0,d.n)((0,d.n)(C??{},Z(["typography","fontStyle"]),t),Z(["typography","fontWeight"]),n)),(0,m.T7)("styles_sidebar_screen_typography_element_panel_set_font_appearance",{element:e,newFontStyle:t,newFontWeight:n,selectedDefaultFontStyle:t===H,selectedDefaultFontWeight:n===D})};return(0,o.jsxs)(c.__experimentalToolsPanel,{label:(0,r.__)("Typography","jetpack"),resetAll:()=>{k?T((0,d.n)((0,d.n)(C??{},["color","text"],void 0),["typography"],{})):Q(["typography"],{}),(0,m.yM)("styles_sidebar_screen_typography_element_panel_reset_all_styles_selected",{element:e,headingLevel:t})},children:[k&&(0,o.jsx)(g.Q,{label:(0,r.__)("Color","jetpack"),hasValue:()=>!!U,resetValue:()=>ee(void 0),isShownByDefault:n.textColor,inheritedValue:J,userValue:X,setValue:ee,colorGradientControlSettings:x}),(0,o.jsx)(c.__experimentalToolsPanelItem,{label:(0,r.__)("Font family","jetpack"),hasValue:()=>A!==L,onDeselect:()=>re(void 0),isShownByDefault:n.fontFamily,children:(0,o.jsx)(l.__experimentalFontFamilyControl,{value:A,onChange:re,size:"__unstable-large",fontFamilies:_,__nextHasNoMarginBottom:!0})}),Y&&(0,o.jsx)(c.__experimentalToolsPanelItem,{label:(0,r.__)("Font size","jetpack"),hasValue:()=>P!==$,onDeselect:()=>oe(void 0),isShownByDefault:n.fontSize,children:(0,o.jsx)(c.FontSizePicker,{value:P,onChange:oe,fontSizes:b,units:y,disableCustomFontSizes:!1,withReset:!1,withSlider:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),(0,o.jsx)(c.__experimentalToolsPanelItem,{className:"single-column",label:(0,r.__)("Appearance","jetpack"),hasValue:()=>I!==D||N!==H,onDeselect:()=>{ae({fontStyle:void 0,fontWeight:void 0})},isShownByDefault:n.fontAppearance,children:(0,o.jsx)(l.__experimentalFontAppearanceControl,{value:{fontStyle:N,fontWeight:I},onChange:ae,hasFontStyles:!0,hasFontWeights:!0,size:"__unstable-large"})}),(0,o.jsx)(c.__experimentalToolsPanelItem,{className:"single-column",label:(0,r.__)("Line height","jetpack"),hasValue:()=>z!==V,onDeselect:()=>ne(void 0),isShownByDefault:n.lineHeight,children:(0,o.jsx)(l.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:z,onChange:ne,size:"__unstable-large"})}),(0,o.jsx)(c.__experimentalToolsPanelItem,{className:"single-column",label:(0,r.__)("Letter spacing","jetpack"),hasValue:()=>F!==W,onDeselect:()=>te(void 0),isShownByDefault:n.letterSpacing,children:(0,o.jsx)(l.__experimentalLetterSpacingControl,{value:F,onChange:te,size:"__unstable-large",__unstableInputWidth:"auto"})}),(0,o.jsx)(c.__experimentalToolsPanelItem,{className:"single-column",label:(0,r.__)("Text decoration","jetpack"),hasValue:()=>O!==G,onDeselect:()=>ie(void 0),isShownByDefault:n.textDecoration,children:(0,o.jsx)(l.__experimentalTextDecorationControl,{value:O,onChange:ie,size:"__unstable-large",__unstableInputWidth:"auto"})}),(0,o.jsx)(c.__experimentalToolsPanelItem,{label:(0,r.__)("Letter case","jetpack"),hasValue:()=>B!==q,onDeselect:()=>se(q),isShownByDefault:n.textTransform,children:(0,o.jsx)(l.__experimentalTextTransformControl,{value:B,onChange:se,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})})]})};n.d(t,["bf",0,h])},2620(e,t,n){"use strict";n.d(t,{A:()=>d});var o=n(790),r=n(7723),i=n(6427),s=n(665),a=n(1935),c=n(6816);function l({element:e,label:t}){const{styles:n}=(0,s.u)(),l=(0,a.B)(n,e,null,!0),{fontFamily:d,fontStyle:u,fontWeight:p,letterSpacing:f,textDecoration:g,textTransform:m}=l.typography,h=l.color?.text||"inherit",b=l.color?.background||"#f0f0f0",v=(0,r.sprintf)( // translators: %s: is a subset of Typography, e.g., 'text' or 'links'. // translators: %s: is a subset of Typography, e.g., 'text' or 'links'. (0,r.__)("Typography %s styles","jetpack"),t);return(0,o.jsx)(i.__experimentalItem,{children:(0,o.jsx)(i.__experimentalNavigatorButton,{path:`/typography/${e}`,"aria-label":v,onClick:()=>(0,c.yM)("styles_sidebar_screen_typography_button_click",{element:e,label:t,path:`typography/${e}`}),children:(0,o.jsxs)(i.__experimentalHStack,{justify:"flex-start",children:[(0,o.jsx)(i.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:d??"serif",background:b,color:h,fontStyle:u??"normal",fontWeight:p??"normal",letterSpacing:f??"normal",textDecoration:g??("link"===e?"underline":"none"),textTransform:m??"none"},children:"Aa"}),(0,o.jsx)(i.FlexItem,{children:t})]})})})}var d=function(){return(0,o.jsx)(i.Card,{size:"small",variant:"primary",isBorderless:!0,children:(0,o.jsx)(i.CardBody,{children:(0,o.jsxs)(i.__experimentalVStack,{spacing:3,children:[(0,o.jsx)(i.__experimentalHeading,{level:3,className:"edit-site-global-styles-subtitle",children:(0,r.__)("Elements","jetpack")}),(0,o.jsxs)(i.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,size:"small",children:[(0,o.jsx)(l,{element:"text",label:(0,r.__)("Text","jetpack")}),(0,o.jsx)(l,{element:"link",label:(0,r.__)("Links","jetpack")}),(0,o.jsx)(l,{element:"heading",label:(0,r.__)("Headings","jetpack")}),(0,o.jsx)(l,{element:"button",label:(0,r.__)("Buttons","jetpack")})]})]})})})}},7096(e,t,n){"use strict";n.d(t,{A:()=>s});var o=n(790),r=n(665),i=n(1935);function s({element:e,headingLevel:t}){const{styles:n}=(0,r.u)(),s=(0,i.B)(n,e,t,!0),{fontFamily:a,fontSize:c,fontStyle:l,fontWeight:d,lineHeight:u,letterSpacing:p,textDecoration:f,textTransform:g}=s.typography,m=s.color?.text||"inherit",h=s.color?.background||"#f0f0f0",b="link"===e?{textDecoration:f??"underline"}:{};return(0,o.jsx)("div",{className:"edit-site-typography-preview",style:{fontFamily:a??"serif",background:h,color:m,lineHeight:u,fontSize:c,fontStyle:l,fontWeight:d,letterSpacing:p,textDecoration:f,textTransform:g,...b},children:"Aa"})}},6380(e,t,n){"use strict";n.d(t,{l:()=>g});var o=n(790),r=n(7143),i=n(6087),s=n(6427),a=n(3124),c=n(665),l=n(3598);const d=[],u={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},p={hover:{opacity:1},start:{opacity:.5}},f={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};function g({label:e,isFocused:t,withHoverView:n}){const{colors:g}=(0,r.useSelect)(e=>({colors:e(a.H).getPaletteColors()}),[]),m=(0,i.useMemo)(()=>(g?.theme||d).concat(g?.default||d),[g]),{styles:h}=(0,c.u)(),{backgroundColor:b,headingColor:v,highlightedColors:y}=(0,i.useMemo)(()=>{const e=(0,l.pr)(h?.color?.background)||"white",t=(0,l.pr)(h?.color?.text)||"black",n=(0,l.pr)(h?.elements?.h1?.color?.text)||t,o=(0,l.pr)(h?.elements?.link?.color?.text)||n,r=(0,l.pr)(h?.elements?.button?.color?.background)||o,i=m.find(({color:e})=>e.toLowerCase()===t.toLowerCase()),s=m.find(({color:e})=>e.toLowerCase()===r.toLowerCase()),a=[...i?[i]:d,...s?[s]:d,...m].filter(({color:t},n,o)=>t.toLowerCase()!==e.toLowerCase()&&n===o.findIndex(e=>e.color.toLowerCase()===t.toLowerCase())).slice(0,2);return{backgroundColor:e,headingColor:n,highlightedColors:a}},[h,m]),_=h?.elements?.heading?.typography?.fontWeight||"inherit",w=h?.elements?.heading?.typography?.fontFamily||"inherit",[x,k]=(0,i.useState)(!1);return(0,o.jsx)("div",{onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,o.jsxs)(s.__unstableMotion.div,{style:{height:152,width:"100%",background:b,cursor:n?"pointer":void 0},initial:"start",animate:(x||t)&&e?"hover":"start",children:[(0,o.jsx)(s.__unstableMotion.div,{variants:u,style:{height:"100%",overflow:"hidden"},children:(0,o.jsxs)(s.__experimentalHStack,{spacing:10,justify:"center",style:{height:"100%",overflow:"hidden"},children:[(0,o.jsx)(s.__unstableMotion.div,{style:{fontFamily:w,fontSize:65,color:v,fontWeight:_},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"},children:"Aa"}),(0,o.jsx)(s.__experimentalVStack,{spacing:4,children:y.map(({slug:e,color:t},n)=>(0,o.jsx)(s.__unstableMotion.div,{style:{height:32,width:32,background:t,borderRadius:16},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}},e))})]})}),(0,o.jsx)(s.__unstableMotion.div,{variants:n&&p,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1},children:(0,o.jsx)(s.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"},children:m.slice(0,4).map(({color:e})=>(0,o.jsx)("div",{style:{height:"100%",background:e,flexGrow:1}},e))})}),(0,o.jsx)(s.__unstableMotion.div,{variants:f,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0},children:(0,o.jsx)(s.__experimentalVStack,{spacing:3,justify:"center",style:{height:"100%",overflow:"hidden",padding:10,boxSizing:"border-box"},children:e&&(0,o.jsx)("div",{style:{fontSize:40,fontFamily:w,color:v,fontWeight:_,lineHeight:"1em",textAlign:"center"},children:e})})})]})})}},335(e,t,n){"use strict";n.d(t,{l:()=>d});var o=n(790),r=n(7723),i=n(6234),s=n(665),a=n(9034),c=n(6816),l=n(1847);function d(){(0,c.xW)("styles_sidebar_screen_background_opened");const{userStyles:e,styles:t,updateStyles:n}=(0,s.u)(),d=(0,a.DL)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.A,{title:(0,r.__)("Background","jetpack"),description:(0,r.__)("Manage the background color of the email.","jetpack")}),(0,o.jsx)(l.D_,{value:e,inheritedValue:t,onChange:e=>{n(e),(0,c.yM)("styles_sidebar_screen_background_styles_updated")},settings:d,panelId:"background"})]})}},423(e,t,n){"use strict";n.d(t,{f:()=>u});var o=n(790),r=n(7723),i=n(7143),s=n(6234),a=n(665),c=n(3124),l=n(6816),d=n(1847);function u(){(0,l.xW)("styles_sidebar_screen_colors_opened");const{userStyles:e,styles:t,updateStyles:n}=(0,a.u)(),u=(0,i.useSelect)(e=>e(c.H).getTheme(),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.A,{title:(0,r.__)("Colors","jetpack"),description:(0,r.__)("Manage palettes and the default color of different global elements.","jetpack")}),(0,o.jsx)(d.oz,{value:e,inheritedValue:t,onChange:e=>{n(e),(0,l.yM)("styles_sidebar_screen_colors_styles_updated")},settings:u?.settings,panelId:"colors"})]})}},6234(e,t,n){"use strict";n.d(t,{A:()=>l,a:()=>c});var o=n(790),r=n(7723),i=n(9558),s=n(6427),a=n(4751);function c({title:e,description:t,onBack:n}){return(0,o.jsxs)(s.__experimentalVStack,{spacing:0,children:[(0,o.jsx)(s.__experimentalView,{children:(0,o.jsx)(s.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,o.jsxs)(s.__experimentalHStack,{spacing:2,children:[(0,o.jsx)(a.m.BackButton,{style:{minWidth:24,padding:0},icon:i.A,size:"small","aria-label":(0,r.__)("Navigate to the previous view","jetpack"),onClick:n}),(0,o.jsx)(s.__experimentalSpacer,{children:(0,o.jsx)(s.__experimentalHeading,{className:"woocommerce-email-editor-styles-header",level:2,size:13,children:e})})]})})}),t&&(0,o.jsx)("p",{className:"woocommerce-email-editor-styles-header-description",children:t})]})}var l=c},421(e,t,n){"use strict";n.d(t,{z:()=>c});var o=n(790),r=n(7723),i=n(7256),s=n(6234),a=n(6816);function c(){return(0,a.xW)("styles_sidebar_screen_layout_opened"),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.a,{title:(0,r.__)("Layout","jetpack")}),(0,o.jsx)(i.W,{})]})}},1659(e,t,n){"use strict";n.d(t,{r:()=>f});var o=n(790),r=n(7723),i=n(135),s=n(4532),a=n(7217),c=n(7480),l=n(6427),d=n(6380),u=n(9034),p=n(6816);function f(){const e=(0,u.SG)();return(0,o.jsx)(l.Card,{size:"small",className:"edit-site-global-styles-screen-root",variant:"primary",children:(0,o.jsx)(l.CardBody,{children:(0,o.jsxs)(l.__experimentalVStack,{spacing:4,children:[(0,o.jsx)(l.Card,{children:(0,o.jsx)(l.CardMedia,{children:(0,o.jsx)(d.l,{})})}),(0,o.jsxs)(l.__experimentalItemGroup,{children:[(0,o.jsx)(l.__experimentalNavigatorButton,{path:"/typography",onClick:()=>(0,p.yM)("styles_sidebar_navigation_click",{path:"typography"}),children:(0,o.jsx)(l.__experimentalItem,{children:(0,o.jsxs)(l.__experimentalHStack,{justify:"flex-start",children:[(0,o.jsx)(l.Icon,{icon:c.A,size:24}),(0,o.jsx)(l.FlexItem,{children:(0,r.__)("Typography","jetpack")})]})})}),(0,o.jsx)(l.__experimentalNavigatorButton,{path:"/colors",onClick:()=>(0,p.yM)("styles_sidebar_navigation_click",{path:"colors"}),children:(0,o.jsx)(l.__experimentalItem,{children:(0,o.jsxs)(l.__experimentalHStack,{justify:"flex-start",children:[(0,o.jsx)(l.Icon,{icon:s.A,size:24}),(0,o.jsx)(l.FlexItem,{children:(0,r.__)("Colors","jetpack")})]})})}),e&&(0,o.jsx)(l.__experimentalNavigatorButton,{path:"/background",onClick:()=>(0,p.yM)("styles_sidebar_navigation_click",{path:"background"}),children:(0,o.jsx)(l.__experimentalItem,{children:(0,o.jsxs)(l.__experimentalHStack,{justify:"flex-start",children:[(0,o.jsx)(l.Icon,{icon:i.A,size:24}),(0,o.jsx)(l.FlexItem,{children:(0,r.__)("Background","jetpack")})]})})}),(0,o.jsx)(l.__experimentalNavigatorButton,{path:"/layout",onClick:()=>(0,p.yM)("styles_sidebar_navigation_click",{path:"layout"}),children:(0,o.jsx)(l.__experimentalItem,{children:(0,o.jsxs)(l.__experimentalHStack,{justify:"flex-start",children:[(0,o.jsx)(l.Icon,{icon:a.A,size:24}),(0,o.jsx)(l.FlexItem,{children:(0,r.__)("Layout","jetpack")})]})})})]})]})})})}},2643(e,t,n){"use strict";n.d(t,{A:()=>p});var o=n(790),r=n(7723),i=n(6087),s=n(6427),a=n(4013),c=n(7096),l=n(6234),d=n(6816);const u={text:{title:(0,r.__)("Text","jetpack"),description:(0,r.__)("Manage the fonts and typography used on text.","jetpack"),defaultControls:a.bf},link:{title:(0,r.__)("Links","jetpack"),description:(0,r.__)("Manage the fonts and typography used on links.","jetpack"),defaultControls:{...a.bf,textDecoration:!0}},heading:{title:(0,r.__)("Headings","jetpack"),description:(0,r.__)("Manage the fonts and typography used on headings.","jetpack"),defaultControls:{...a.bf,textTransform:!0}},button:{title:(0,r.__)("Buttons","jetpack"),description:(0,r.__)("Manage the fonts and typography used on buttons.","jetpack"),defaultControls:a.bf}};function p({element:e}){(0,d.xW)("styles_sidebar_screen_typography_element_opened",{element:e});const[t,n]=(0,i.useState)("heading");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.A,{title:u[e].title,description:u[e].description}),(0,o.jsx)(s.__experimentalSpacer,{marginX:4,children:(0,o.jsx)(c.A,{element:e,headingLevel:t})}),"heading"===e&&(0,o.jsx)(s.__experimentalSpacer,{marginX:4,marginBottom:"1em",children:(0,o.jsxs)(s.__experimentalToggleGroupControl,{label:(0,r.__)("Select heading level","jetpack"),hideLabelFromVision:!0,value:t,onChange:e=>{n(e.toString()),(0,d.yM)("styles_sidebar_screen_typography_element_heading_level_selected",{value:e})},isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0,children:[(0,o.jsx)(s.__experimentalToggleGroupControlOption,{value:"heading",label:(0,r._x)("All","heading levels","jetpack")}),(0,o.jsx)(s.__experimentalToggleGroupControlOption,{value:"h1",label:(0,r._x)("H1","Heading Level","jetpack")}),(0,o.jsx)(s.__experimentalToggleGroupControlOption,{value:"h2",label:(0,r._x)("H2","Heading Level","jetpack")}),(0,o.jsx)(s.__experimentalToggleGroupControlOption,{value:"h3",label:(0,r._x)("H3","Heading Level","jetpack")}),(0,o.jsx)(s.__experimentalToggleGroupControlOption,{value:"h4",label:(0,r._x)("H4","Heading Level","jetpack")}),(0,o.jsx)(s.__experimentalToggleGroupControlOption,{value:"h5",label:(0,r._x)("H5","Heading Level","jetpack")}),(0,o.jsx)(s.__experimentalToggleGroupControlOption,{value:"h6",label:(0,r._x)("H6","Heading Level","jetpack")})]})}),(0,o.jsx)(a.Ay,{element:e,headingLevel:t,defaultControls:u[e].defaultControls})]})}},5642(e,t,n){"use strict";n.d(t,{w:()=>c});var o=n(790),r=n(7723),i=n(2620),s=n(6234),a=n(6816);function c(){return(0,a.xW)("styles_sidebar_screen_typography_opened"),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.A,{title:(0,r.__)("Typography","jetpack"),description:(0,r.__)("Manage the typography settings for different elements.","jetpack")}),(0,o.jsx)(i.A,{})]})}},639(e,t,n){"use strict";var o=n(790),r=n(6087),i=n(7723),s=n(7143),a=n(2141),c=n(3656),l=n(3124),d=n(5642),u=n(421),p=n(1659),f=n(2643),g=n(423),m=n(335),h=n(4751);const b=(0,r.memo)(function(){const{userCanEditGlobalStyles:e}=(0,s.useSelect)(e=>{const{canEdit:t}=e(l.H).canUserEditGlobalEmailStyles();return{userCanEditGlobalStyles:t}},[]);return e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.PluginSidebarMoreMenuItem,{target:"email-styles-sidebar",icon:a.A,children:(0,i.__)("Email styles","jetpack")}),(0,o.jsx)(c.PluginSidebar,{name:"email-styles-sidebar",icon:a.A,title:(0,i.__)("Styles","jetpack"),className:"woocommerce-email-editor-styles-panel",children:(0,o.jsxs)(h.m,{initialPath:"/",children:[(0,o.jsx)(h.m.Screen,{path:"/",children:(0,o.jsx)(p.r,{})}),(0,o.jsx)(h.m.Screen,{path:"/typography",children:(0,o.jsx)(d.w,{})}),(0,o.jsx)(h.m.Screen,{path:"/typography/text",children:(0,o.jsx)(f.A,{element:"text"})}),(0,o.jsx)(h.m.Screen,{path:"/typography/link",children:(0,o.jsx)(f.A,{element:"link"})}),(0,o.jsx)(h.m.Screen,{path:"/typography/heading",children:(0,o.jsx)(f.A,{element:"heading"})}),(0,o.jsx)(h.m.Screen,{path:"/typography/button",children:(0,o.jsx)(f.A,{element:"button"})}),(0,o.jsx)(h.m.Screen,{path:"/colors",children:(0,o.jsx)(g.f,{})}),(0,o.jsx)(h.m.Screen,{path:"/background",children:(0,o.jsx)(m.l,{})}),(0,o.jsx)(h.m.Screen,{path:"/layout",children:(0,o.jsx)(u.z,{})})]})})]})});n.d(t,["r",0,b])},1935(e,t,n){"use strict";var o=n(3764),r=n.n(o);const i={typography:{},color:{}};n.d(t,["B",0,(e,t,n="heading",o=!1)=>{let s;switch(t){case"text":s={typography:e.typography,color:e.color};break;case"heading":s=((e,t="heading",n=!1)=>n?r().all([i,e.elements?.heading||{},e.elements?.[t]||{}]):{...i,...e.elements?.heading||{},...e.elements?.[t]||{}})(e,n??"heading",o);break;default:s=e.elements?.[t]||i}return{...s,typography:s.typography??{},color:s.color??{}}}])},4095(e,t,n){"use strict";n.d(t,{O:()=>m});var o=n(790),r=n(6427),i=n(7143),s=n(3656),a=n(6087),c=n(7723),l=n(3109),d=n(7217),u=n(3124),p=n(6816);const f="woocommerce-email-editor-template-area-affordance-slot",g="woocommerce-email-editor-template-area-affordance-style";function m(){const[e,t]=(0,a.useState)(!1),[n,m]=(0,a.useState)(null),[h,b]=(0,a.useState)(null),v=(0,a.useRef)(null),{canEditTemplates:y,currentPostType:_,onNavigateToEntityRecord:w,template:x}=(0,i.useSelect)(e=>{const t=e(s.store).getEditorSettings();return{canEditTemplates:e(u.H).canUserEditTemplates(),currentPostType:e(s.store).getCurrentPostType(),onNavigateToEntityRecord:t?.onNavigateToEntityRecord,template:e(u.H).getCurrentTemplate()}},[]),k="wp_template"!==_&&y&&!!x?.id&&!!w,S=(0,a.useCallback)(()=>{const e=v.current,t=e?.ownerDocument,n=t?.defaultView;if(!e||!t||!n)return void b(null);const o=e.getBoundingClientRect();if(!o.width||!o.height)return void b(null);const r=n.scrollX,i=n.scrollY,s=o.top>54?o.top+i-50-4:o.bottom+i+4;b({frame:{height:o.height+2,left:o.left+r-1,top:o.top+i-1,width:o.width+2},toolbar:{left:o.left+r-1,top:s}})},[]);(0,a.useEffect)(()=>{if(!k)return t(!1),m(null),b(null),void(v.current=null);let e=0,n=null,o=120;const r=()=>{const t=function(){const e=Array.from(document.querySelectorAll("iframe"));for(const t of e)try{const e=t.contentDocument;if(e?.querySelector(".block-editor-block-list__layout.is-root-container, .is-root-container"))return e}catch(e){}return null}(),i=t&&function(e){const t=e.querySelector('[data-type="core/site-logo"], [data-type="core/site-title"], .wp-block-site-logo, .wp-block-site-title');return t?(n=t).closest("[data-block], .block-editor-block-list__block")||n.closest("[data-type]")||n:null;var n}(t);t&&i?(!function(e){if(e.getElementById(g))return;const t=e.createElement("style");t.id=g,t.textContent='\n.woocommerce-email-editor-template-area-affordance-slot {\n\tbox-sizing: border-box;\n\tinset: 0 auto auto 0;\n\tpointer-events: none;\n\tposition: absolute;\n\tz-index: 29;\n}\n.woocommerce-email-editor-template-area-affordance {\n\talign-items: stretch;\n\tbackground: #fff;\n\tborder: 1px solid #1e1e1e;\n\tborder-radius: 2px;\n\tbox-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);\n\tdisplay: inline-flex;\n\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;\n\tfont-size: 13px;\n\tline-height: 1;\n\tpointer-events: auto;\n\tposition: absolute;\n\tz-index: 30;\n}\n.woocommerce-email-editor-template-area-affordance__frame {\n\tappearance: none;\n\tbackground: transparent;\n\tborder: 1.5px solid transparent;\n\tbox-sizing: border-box;\n\tcursor: pointer;\n\tfont: inherit;\n\tmargin: 0;\n\tpadding: 0;\n\tpointer-events: auto;\n\tposition: absolute;\n\tz-index: 29;\n}\n.woocommerce-email-editor-template-area-affordance__frame:hover,\n.woocommerce-email-editor-template-area-affordance__frame:focus-visible,\n.woocommerce-email-editor-template-area-affordance__frame.is-active {\n\tborder-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n\toutline: none;\n}\n.woocommerce-email-editor-template-area-affordance__label {\n\talign-items: center;\n\tborder-inline-end: 1px solid #ddd;\n\tdisplay: inline-flex;\n\tfont-weight: 500;\n\tgap: 8px;\n\theight: 48px;\n\tpadding: 0 16px;\n\twhite-space: nowrap;\n}\n.woocommerce-email-editor-template-area-affordance__label svg {\n\tfill: currentColor;\n}\n.woocommerce-email-editor-template-area-affordance__button.components-button {\n\tborder-radius: 0;\n\tbox-shadow: none;\n\tcolor: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n\theight: 48px;\n\tpadding: 0 18px;\n\twhite-space: nowrap;\n}\n.woocommerce-email-editor-template-area-affordance__button.components-button:hover:not(:disabled) {\n\tcolor: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n}\n.woocommerce-email-editor-template-area-affordance__button.components-button:focus-visible {\n\tbox-shadow: inset 0 0 0 1.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n}\n',e.head.appendChild(t)}(t),n=function(e){let t=e.getElementById(f);return t||(t=e.createElement("div"),t.id=f,t.className="woocommerce-email-editor-template-area-affordance-slot",e.body.appendChild(t)),t}(t),v.current=i,m(n),S()):o>0&&(o--,e=window.requestAnimationFrame(r))};return r(),()=>{e&&window.cancelAnimationFrame(e);const o=n?.ownerDocument;n?.remove(),o?.getElementById(g)?.remove(),t(!1),m(null),b(null),v.current=null}},[k,S]),(0,a.useEffect)(()=>{const e=n?.ownerDocument,o=e?.defaultView;if(!n||!e||!o)return;const r=e=>{e.target instanceof Node&&n.contains(e.target)||t(!1)};return e.addEventListener("mousedown",r),e.addEventListener("scroll",S,!0),o.addEventListener("resize",S),window.addEventListener("resize",S),S(),()=>{e.removeEventListener("mousedown",r),e.removeEventListener("scroll",S,!0),o.removeEventListener("resize",S),window.removeEventListener("resize",S)}},[n,S]);const j=(0,a.useRef)(null),C=(0,a.useRef)(null),E=(0,a.useCallback)(()=>t(!0),[]),T=(0,a.useCallback)(()=>{x?.id&&w&&((0,p.yM)("template_canvas_affordance_edit_template_clicked",{templateId:x.id}),w({postId:x.id,postType:"wp_template"}))},[w,x?.id]),R=(0,a.useCallback)(e=>{e.stopPropagation()},[]);if((0,a.useEffect)(()=>{const e=j.current;if(e)return e.addEventListener("mousedown",R),e.addEventListener("pointerdown",R),e.addEventListener("click",E),()=>{e.removeEventListener("mousedown",R),e.removeEventListener("pointerdown",R),e.removeEventListener("click",E)}},[n,E,R]),(0,a.useEffect)(()=>{const e=C.current;if(e)return e.addEventListener("mousedown",R),e.addEventListener("pointerdown",R),e.addEventListener("click",T),()=>{e.removeEventListener("mousedown",R),e.removeEventListener("pointerdown",R),e.removeEventListener("click",T)}},[e,T,R]),!k||!n||!h)return null;const M=`${f}-toolbar`;return(0,a.createPortal)((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("button",{ref:j,type:"button",className:e?"woocommerce-email-editor-template-area-affordance__frame is-active":"woocommerce-email-editor-template-area-affordance__frame","aria-label":(0,c.__)("Template area","jetpack"),"aria-expanded":e,"aria-controls":e?M:void 0,style:h.frame}),e&&(0,o.jsxs)("div",{id:M,className:"woocommerce-email-editor-template-area-affordance",style:h.toolbar,children:[(0,o.jsxs)("span",{className:"woocommerce-email-editor-template-area-affordance__label",children:[(0,o.jsx)(l.A,{icon:d.A,size:24}),(0,o.jsx)("span",{children:(0,c.__)("Template","jetpack")})]}),(0,o.jsx)(r.Button,{ref:C,className:"woocommerce-email-editor-template-area-affordance__button",variant:"tertiary",children:(0,c.__)("Edit template","jetpack")})]})]}),n)}},7666(e,t,n){"use strict";n.d(t,{j:()=>s});var o=n(6087),r=n(7494);const i=(0,r.createQueue)();function s({children:e,placeholder:t}){const[n,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{const e={};return i.add(e,()=>{(0,o.flushSync)(()=>{r(!0)})}),()=>{i.cancel(e)}},[]),n?e:t}},4324(e,t,n){"use strict";n.d(t,{i:()=>v});var o=n(790),r=n(6087),i=n(3656),s=n(3582),a=n(7143),c=n(6427),l=n(7723),d=n(210),u=n(1576),p=n(528),f=n(3124),g=n(7695),m=n(3345),h=n(6816);const b=(0,r.memo)(function({templates:e,handleTemplateSelection:t,templateSelectMode:n}){const i=(0,a.useSelect)(e=>e(s.store).getBlockPatternCategories(),[]),c="swap"===n,p=(0,r.useMemo)(()=>{const t=function(e,t){const n=new Map(t.map(e=>[e.name,e.label]));n.set("recent",(0,l.__)("Recent","jetpack"));const o=new Set;for(const t of e)t.category&&o.add(t.category);return[...o].map(e=>({name:e,label:n.get(e)??e}))}(e,i??[]);return c?t.filter(e=>"recent"!==e.name):t.sort((e,t)=>"recent"===e.name?-1:"recent"===t.name?1:0)},[e,i,c]),[f,b]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(null!==f||0===p.length)return;const e=setTimeout(()=>{const e=p.find(e=>"recent"!==e.name)?.name??p[0]?.name;b(e)},1e3);return()=>clearTimeout(e)},[p,f]),0===p.length?(0,o.jsx)("div",{className:"email-editor-template-select",children:(0,o.jsx)(g.J,{templates:e,onTemplateSelection:t,selectedCategory:f})}):(0,o.jsxs)(d.b,{className:"email-editor-template-select",orientation:"vertical",value:f,onValueChange:e=>{(0,h.yM)("template_select_modal_category_change",{category:e}),b(e)},children:[(0,o.jsx)(m.t,{templateCategories:p}),p.map(({name:n})=>(0,o.jsx)(u.Z,{value:n,tabIndex:-1,className:"email-editor-template-select__panel",children:(0,o.jsx)(g.J,{templates:e,onTemplateSelection:t,selectedCategory:n})},n))]})});function v({onSelectCallback:e,closeCallback:t=null,previewContent:n="",postType:r}){const s=n?"swap":"new";(0,h.xW)("template_select_modal_opened",{templateSelectMode:s});const[d,u]=(0,p.p)(n),g=d?.length>0,m=t=>{const o=t.type===r,c=t.template;(0,h.yM)("template_select_modal_template_selected",{templateSlug:t.slug,templateSelectMode:s,templateType:t.type}),n||(0,a.dispatch)(i.store).resetEditorBlocks(t.emailParsed),(0,a.dispatch)(f.H).setTemplateToPost(o?c.template:t.slug),e()},v=()=>{const e=d[0]??null;e&&((0,h.yM)("template_select_modal_handle_close_without_template_selected"),m(e))};return(0,o.jsxs)(c.Modal,{title:"new"===s?(0,l.__)("Start with an email preset","jetpack"):(0,l.__)("Select a template","jetpack"),onRequestClose:()=>((0,h.yM)("template_select_modal_closed",{templateSelectMode:s}),t?t():v()),isFullScreen:!0,children:[(0,o.jsx)(b,{templates:[...d,...u],handleTemplateSelection:m,templateSelectMode:s}),(0,o.jsx)(c.Flex,{className:"email-editor-modal-footer",justify:"flex-end",children:(0,o.jsx)(c.FlexItem,{children:(0,o.jsx)(c.Button,{variant:"tertiary",className:"email-editor-start_from_scratch_button",onClick:()=>((0,h.yM)("template_select_modal_start_from_scratch_clicked"),v()),isBusy:!g,children:(0,l.__)("Start from scratch","jetpack")})})})]})}},3345(e,t,n){"use strict";n.d(t,{t:()=>s});var o=n(790),r=n(1258),i=n(799);function s({templateCategories:e}){return(0,o.jsx)("div",{className:"email-editor-template-select__sidebar",children:(0,o.jsx)(r.B,{children:e.map(({name:e,label:t})=>(0,o.jsx)(i.o,{value:e,children:t},e))})})}},7695(e,t,n){"use strict";n.d(t,{J:()=>w});var o=n(790),r=n(6087),i=n(3656),s=n(7143),a=n(2478),c=n(7723),l=n(1220),d=n(2193),u=n(4638),p=n(2237),f=n(7293),g=n(8050),m=n(1868),h=n(4715),b=n(7666),v=n(1128);function y(){return(0,o.jsxs)(d.b,{className:"email-editor-template-select__no-results",children:[(0,o.jsx)(u.I,{icon:a.A}),(0,o.jsx)(p.h,{children:(0,c.__)("No recent templates.","jetpack")}),(0,o.jsx)(f.V,{children:(0,c.__)("Your recent creations will appear here as soon as you begin.","jetpack")})]})}const _=(0,r.memo)(function({templates:e,onTemplateSelection:t,selectedCategory:n}){const{layout:r}=(0,s.useSelect)(e=>{const{getEditorSettings:t}=e(i.store),n=t();return{layout:n?.__experimentalFeatures?.layout}}),[a]=(0,v.b)(),d=a.reduce((e,t)=>e+(t.css??""),"")+`.is-root-container { width: ${r?.contentSize||"660px"}; margin: 0 auto; }`;return"recent"===n&&0===e.length?(0,o.jsx)(y,{}):(0,o.jsx)("div",{className:"email-editor-template-select__templates",role:"listbox",children:e.map(e=>(0,o.jsx)("div",{className:"email-editor-template-select__template",children:(0,o.jsx)("div",{className:"email-editor-template-select__template-button",role:"button",tabIndex:0,onClick:()=>{t(e)},onKeyPress:n=>{"Enter"!==n.key&&" "!==n.key||t(e)},children:(0,o.jsxs)(b.j,{placeholder:(0,o.jsx)("p",{children:(0,c.__)("rendering template","jetpack")}),children:[(0,o.jsx)(h.BlockPreview,{blocks:e.previewContentParsed,viewportWidth:900,minHeight:300,additionalStyles:[{css:d}]}),(0,o.jsx)(l.B,{direction:"row",align:"center",className:"email-editor-template-select__template-details",children:(0,o.jsx)("h4",{className:"email-editor-template-select__template-title",children:e.displayName})})]})})},`${e.slug}_${e.displayName}_${e.id}`))})},(e,t)=>e.templates.length===t.templates.length&&e.selectedCategory===t.selectedCategory);function w({templates:e,onTemplateSelection:t,selectedCategory:n}){const i=(0,r.useMemo)(()=>null!=n?e.filter(e=>e.category===n):e,[n,e]);return(0,o.jsxs)(l.B,{direction:"column",gap:"xl",className:"email-editor-template-select__list",children:["recent"===n&&(0,o.jsx)(g.b,{intent:"info",children:(0,o.jsx)(m.V,{children:(0,c.__)("Templates created on the legacy editor will not appear here.","jetpack")})}),(0,o.jsx)(_,{templates:i,onTemplateSelection:t,selectedCategory:n})]})}},1513(e,t,n){"use strict";n.d(t,{x:()=>a});var o=n(790),r=n(7143),i=n(3124),s=n(4324);function a(){const{emailContentIsEmpty:e,templateSelected:t,postType:n}=(0,r.useSelect)(e=>({emailContentIsEmpty:e(i.H).hasEmptyContent(),templateSelected:e(i.H).isTemplateSelected(),postType:e(i.H).getEmailPostType()}),[]),{setTemplateSelected:a}=(0,r.useDispatch)(i.H);return!e||t?null:(0,o.jsx)(s.i,{onSelectCallback:()=>{a()},postType:n})}},8992(e,t,n){"use strict";n.d(t,{G:()=>i,h:()=>s});var o=n(4997);const r=new Map;function i(e,t){const n=(0,o.getBlockType)(e);if(!n)return!1;const{name:i,...s}=n;try{r.has(i)||r.set(i,{...s});const e=t(s),n={...s,...e};return(0,o.unregisterBlockType)(i),(0,o.registerBlockType)(i,n),!0}catch(t){return console.error("Failed to update block settings for",e,t),!1}}function s(){const e=[];for(const[t,n]of r.entries())try{(0,o.unregisterBlockType)(t),(0,o.registerBlockType)(t,n),e.push(t),r.delete(t)}catch(e){console.error("Failed to restore block settings for",t,e)}return e}},8845(e,t,n){"use strict";n.d(t,{oj:()=>a,r8:()=>c});var o=n(4997),r=n(7143);const i=new Set,s=new Map;function a(e,t){const n=((0,r.select)("core/blocks").getBlockStyles(e)||[]).find(e=>e.name===t);if(n){const o=s.get(e)||[];o.find(e=>e.name===t)||(o.push(n),s.set(e,o))}(0,o.unregisterBlockStyle)(e,t)}function c(){for(const e of i){const[t,n]=e.split("||");(0,o.unregisterBlockStyle)(t,n)}i.clear();for(const[e,t]of s.entries())t.forEach(t=>(0,o.registerBlockStyle)(e,t)),s.delete(e)}},8848(e,t,n){"use strict";n.d(t,{$:()=>s,z:()=>i});var o=n(4997);const r=new Set;function i(e,t){(0,o.registerBlockVariation)(e,t),r.add(function(e,t){return`${e}||${t}`}(e,t.name))}function s(){for(const e of r){const[t,n]=e.split("||");(0,o.unregisterBlockVariation)(t,n)}r.clear()}},7847(e,t,n){"use strict";n.d(t,{HY:()=>a,hC:()=>l,tN:()=>c});var o=n(2619);const r=new Set,i=new Set;function s(e,t){return`${e}||${t}`}function a(e,t,n,i){(0,o.addFilter)(e,t,n,i),r.add(s(e,t))}function c(e,t,n,r){(0,o.addAction)(e,t,n,r),i.add(s(e,t))}function l(){!function(){for(const e of r){const[t,n]=e.split("||");(0,o.removeFilter)(t,n),r.delete(e)}}(),function(){for(const e of i){const[t,n]=e.split("||");(0,o.removeAction)(t,n),i.delete(e)}}()}},444(e,t,n){"use strict";n.d(t,{aW:()=>c,gG:()=>s,le:()=>a});var o=n(876);const r=new Set,i=new Map;function s(e,t){(0,o.registerFormatType)(e,{object:!1,...t}),r.add(e)}function a(e){const t=(0,o.unregisterFormatType)(e);t&&i.set(e,t)}function c(){for(const e of r)(0,o.unregisterFormatType)(e);r.clear();for(const[e,t]of i.entries())(0,o.registerFormatType)(e,{object:!1,...t}),i.delete(e)}},3588(e,t,n){"use strict";n.d(t,{IF:()=>c});var o=n(8845),r=n(8848),i=n(444),s=n(7847),a=n(8992);function c(){(0,a.h)(),(0,o.r8)(),(0,r.$)(),(0,i.aW)(),(0,s.hC)()}},390(e,t,n){"use strict";n.d(t,{w:()=>R});var o=n(790),r=n(7143),i=n(6087),s=n(2619),a=n(3656),c=n(9491),l=(n(2005),n(2318)),d=n(9791),u=n(265),p=n(5183),f=n(3124),g=n(7380),m=n(5885),h=n(2743),b=n(256),v=n(2259),y=n(721),_=n(38),w=n(9971),x=n(6477),k=n(8766),S=n(2104),j=n(3588),C=n(4368);function E({postId:e,postType:t,isPreview:n=!1,contentRef:s=null,customSavePanel:a,customSaveButton:l}){const[u,g]=(0,i.useState)(!1),{settings:m}=(0,r.useSelect)(e=>({settings:e(f.H).getInitialEditorSettings()}),[]);(0,w.M)(),(0,x.u)(),(0,S.T)();const{setEmailPost:h}=(0,r.useDispatch)(f.H);(0,i.useEffect)(()=>{h(e,t),g(!0)},[e,t,h]);const b=(0,k.r)(),v=(0,c.useMergeRefs)([b,s]),y=(0,i.useMemo)(()=>({...m,allowedBlockTypes:(0,d.G)(),isPreviewMode:n,responsiveEditingEnabled:!1}),[m,n]);return u?(0,o.jsx)(i.StrictMode,{children:(0,o.jsx)(p.w,{postId:e,postType:t,settings:y,contentRef:v,customSavePanel:a,customSaveButton:l})}):null}function T(){(0,s.hasFilter)("sync.providers","woocommerce/email-editor/disable-collab")||(window._wpCollaborationEnabled&&(window._wpCollaborationEnabled=!1),(0,s.addFilter)("sync.providers","woocommerce/email-editor/disable-collab",()=>[],1e3)),(0,h.K)(),(0,b.h)(),(0,v.Y)(),(0,g.y)(),(0,y.J)(),(0,l.X)(),(0,_.X)(),(0,m.I)(),(0,u.xc)()}function R({postId:e,postType:t,isPreview:n=!1,contentRef:c=null,config:l,customSavePanel:d,customSaveButton:u}){const[p,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{const e=(0,r.select)(a.store).getEditorSettings(),t=l||(0,C.q)();return T(),(0,r.dispatch)(f.H).setEditorConfig(t),g(!0),()=>{try{(0,j.IF)()}finally{(0,r.dispatch)(a.store).updateEditorSettings(e)}}},[l]);const m=(0,s.applyFilters)("woocommerce_email_editor_wrap_editor_component",E);return p?(0,o.jsx)(m,{postId:e,postType:t,isPreview:n,contentRef:c,customSavePanel:d,customSaveButton:u}):null}},2259(e,t,n){"use strict";n.d(t,{Y:()=>d});var o=n(7143),r=n(7723),i=n(6816);let s=[];const a={"edit-post/document":"document","edit-post/block":"block"};function c(e,t){setTimeout(()=>{(0,i.yM)(e,{isOpened:t.classList.contains("is-opened")||"true"===t.getAttribute("aria-expanded")})})}function l(e){s.forEach(t=>{const n=e.target?.matches?.(t.selector)?e.target:e.target?.closest?.(t.selector);n&&("function"==typeof t.track?t.track(n,e):(0,i.yM)(t.track))})}function d(){(0,i.V1)()&&(s=[{track:"header_preview_dropdown_preview_in_new_tab_selected",selector:'.editor-preview-dropdown__button-external, a[role="menuitem"][target^="wp-preview-"]'},{track:()=>{const e=document.getElementsByClassName("is-collapsed editor-collapsible-block-toolbar").length;(0,i.yM)("header_blocks_tool_button_clicked",{isBlockToolsCollapsed:e})},selector:".editor-collapsible-block-toolbar__toggle"},{track:e=>c("header_more_menu_dropdown_toggle",e),selector:`.editor-header__settings button[aria-label="${(0,r.__)("Options","jetpack")}"]`},{track:e=>{(e.textContent===(0,r.__)("Save","jetpack")&&"false"===e.getAttribute("aria-disabled")||e.textContent===(0,r.__)("Saving…","jetpack"))&&(0,i.yM)("header_save_button_clicked")},selector:".editor-post-publish-button"},{track:"header_save_email_button_clicked",selector:".editor-post-saved-state.is-saving"},{track:"inserter_sidebar_library_close_icon_clicked",selector:".block-editor-inserter__menu .block-editor-tabbed-sidebar__close-button"},{track:e=>c("header_preview_dropdown_clicked",e),selector:".editor-preview-dropdown__toggle"},{track:()=>{const e=a[(0,o.select)("core/interface").getActiveComplementaryArea("core")];e&&(0,i.yM)("sidebar_tab_selected",{tab:e})},selector:'.editor-sidebar__panel-tabs [data-tab-id], .editor-sidebar__panel-tabs [role="tab"]'},{track:e=>{const t=e.classList.contains("is-pressed");(0,i.yM)("header_inserter_sidebar_clicked",{isOpened:t})},selector:".editor-document-tools__inserter-toggle"},{track:e=>{const t=e.classList.contains("is-pressed");(0,i.yM)("header_listview_sidebar_clicked",{isOpened:t})},selector:".editor-document-tools__document-overview-toggle"},{track:e=>{(0,i.yM)("command_bar_command_clicked",{command:e.dataset?.value})},selector:'.commands-command-menu__container [role="option"]'}],document.addEventListener("click",l))}},2743(e,t,n){"use strict";var o=n(2619),r=n(6816);const i=e=>{(0,o.doAction)("woocommerce_email_editor_events",e.detail)};window.addEventListener("unload",function(){(0,r.V1)()&&r.oh.removeEventListener(r.vD,i)}),n.d(t,["K",0,()=>{(0,r.V1)()&&r.oh.addEventListener(r.vD,i)}])},6816(e,t,n){"use strict";var o=n(8468),r=n(2619);const i=()=>(0,r.applyFilters)("woocommerce_email_editor_events_tracking_enabled",!1),s="email_editor_events",a=new EventTarget,c=(e,t={})=>{if(!i())return;const n={name:`${s}_${e}`,..."object"!=typeof t?{data:t}:t};a.dispatchEvent(new CustomEvent(s,{detail:n}))},l=function(){const e={};return(t,n={})=>{if(!i())return;const o=`${t}_${JSON.stringify(n).length}`;e[o]||(c(t,n),e[o]=!0)}}(),d=(0,o.debounce)(c,700);n.d(t,["T7",0,d,"V1",0,i,"oh",0,a,"vD",0,s,"xW",0,l,"yM",0,c])},256(e,t,n){"use strict";n.d(t,{h:()=>p});var o=n(7143),r=n(1233),i=n(3656),s=n(7723),a=n(6816);const c=(...e)=>{const t=(0,o.select)(i.store).isInserterOpened(),n=!!document.getElementsByClassName("block-editor-inserter__quick-inserter").length;let r="other_inserter";t?r="inserter_sidebar":n&&(r="quick_inserter");const s=e[0],c=e[5];!1===Array.isArray(s)&&"object"==typeof s&&(0,a.yM)(`${r}_library_block_selected`,{blockName:s.name}),Array.isArray(s)&&c&&c.patternName&&(0,a.yM)(`${r}_library_pattern_selected`,{patternName:c.patternName})},l={"core/editor":{autosave:"editor_content_auto_saved",setDeviceType:e=>{(0,a.yM)(`header_preview_dropdown_${e.toLowerCase()}_selected`)},setRenderingMode:e=>{if((0,o.select)(i.store).getRenderingMode()===e)return;!!document.querySelector(`[aria-label="${(0,s.__)("View options","jetpack")}"]`)&&(0,a.yM)("preview_dropdown_rendering_mode_changed",{renderingMode:e})}},"core/block-editor":{insertBlock:c,insertBlocks:c},"core/preferences":{set:(e,t,n)=>{if((0,o.select)(r.store).get(e,t)===n)return;const i={focusMode:"focus_mode_toggle",fullscreenMode:"full_screen_mode_toggle",distractionFree:"distraction_free_toggle",fixedToolbar:"fixed_toolbar_toggle"};i[t]&&(0,a.yM)(i[t],{isEnabled:n})}},"core/commands":{open:"command_menu_opened",close:"command_menu_closed"}},d={},u={},p=()=>{(0,a.V1)()&&(0,o.use)(e=>({dispatch:t=>{const n="object"==typeof t?t.name:t,o=e.dispatch(n),r=l[n];if(!r)return o;d[n]||(d[n]={}),u[n]||(u[n]={});for(const[e,t]of Object.entries(r))u[n][e]||(u[n][e]=o[e],d[n][e]=(...o)=>{try{"function"==typeof t?t(...o):"string"==typeof t&&(0,a.yM)(t)}catch(e){console.error("Error tracking event",e)}return u[n][e](...o)}),o[e]=d[n][e];return o}}))}},38(e,t,n){"use strict";n.d(t,{X:()=>i});var o=n(8611),r=n(4744);function i(){(0,r.X)(),(0,o._)()}},8611(e,t,n){"use strict";n.d(t,{_:()=>a});var o=n(1847),r=n(7847),i=n(1584);const s=e=>{"wp_template"===e&&((0,o.yd)("postType",e,"duplicate-post"),(0,o.yd)("postType",e,"reset-post"),(0,o.Bi)("postType",e,(0,i.A)()))};function a(){(0,r.tN)("core.registerPostTypeSchema","woocommerce-email-editor/modify-template-actions",e=>{s(e)}),(0,r.tN)("core.registerPostTypeActions","woocommerce-email-editor/modify-template-actions",e=>{s(e)})}},4744(e,t,n){"use strict";n.d(t,{X:()=>a});var o=n(1847),r=n(7847),i=n(3242);const s=e=>{(0,o.yd)("postType",e,"move-to-trash"),(0,o.Bi)("postType",e,(0,i.A)())};function a(){(0,r.tN)("core.registerPostTypeSchema","woocommerce-email-editor/modify-move-to-trash-action",e=>{s(e)}),(0,r.tN)("core.registerPostTypeActions","woocommerce-email-editor/modify-move-to-trash-action",e=>{s(e)})}},1324(e,t,n){"use strict";n.d(t,{g:()=>i});var o=n(790),r=n(6087);function i({children:e}){const[t]=(0,r.useState)(document.createElement("div"));return(0,r.useEffect)(()=>{const e=document.getElementsByClassName("editor-visual-editor ")[0];e&&e.parentNode?.insertBefore(t,e)},[t]),(0,r.createPortal)((0,o.jsx)(o.Fragment,{children:e}),t)}},4291(e,t,n){"use strict";n.d(t,{L:()=>l});var o=n(790),r=n(6087),i=n(7143),s=n(3656),a=n(2614);function c({children:e}){const t=(0,r.useRef)(document.createElement("div"));return(0,r.useEffect)(()=>{const e=document.getElementsByClassName("editor-post-publish-button__button")[0];e&&e.parentNode?.insertBefore(t.current,e.nextSibling)},[t]),(0,r.createPortal)((0,o.jsx)(o.Fragment,{children:e}),t.current)}function l(){const e=(0,r.useRef)(null),{hasNonPostEntityChanges:t,isEditedPostDirty:n,isEditingTemplate:l}=(0,i.useSelect)(e=>({hasNonPostEntityChanges:e(s.store).hasNonPostEntityChanges(),isEditedPostDirty:e(s.store).isEditedPostDirty(),isEditingTemplate:"wp_template"===e(s.store).getCurrentPostType()}),[]),d=l||t||n&&t,u=(0,r.useCallback)((e,t)=>{t&&e.classList.contains("force-hidden")&&e.classList.remove("force-hidden"),t||e.classList.contains("force-hidden")||e.classList.add("force-hidden")},[]);return(0,r.useEffect)(()=>{const t=document.getElementsByClassName("editor-post-publish-button__button")[0];return u(t,d),t?(e.current&&e.current.disconnect(),e.current=new MutationObserver(()=>{u(t,d)}),e.current.observe(t,{attributes:!0,childList:!0,subtree:!1}),()=>e.current?.disconnect()):()=>e.current?.disconnect()},[d,u]),(0,o.jsx)(c,{children:!d&&(0,o.jsx)(a.J,{})})}},9971(e,t,n){"use strict";var o=n(6087),r=n(7143),i=n(3582),s=n(2619),a=n(3124),c=n(4515),l=n(7711);const d=[];n.d(t,["M",0,()=>{const{addValidationNotice:e,hasValidationNotice:t,removeValidationNotice:n}=(0,l.k)(),{editedContent:u,editedTemplateContent:p}=(0,r.useSelect)(e=>({editedContent:e(a.H).getEditedEmailContent(),editedTemplateContent:e(a.H).getCurrentTemplateContent()})),f=(0,c.c)(u),g=(0,c.c)(p),m=(0,o.useCallback)(()=>((e,t,{addValidationNotice:n,hasValidationNotice:o,removeValidationNotice:r})=>{const i=(0,s.applyFilters)("woocommerce_email_editor_content_validation_rules",d);let a=!0;return i.forEach(({id:i,testContent:s,message:c,actions:l})=>{s(e+t)?(n(i,c,l),a=!1):o(i)&&r(i)}),a})(f,g,{addValidationNotice:e,hasValidationNotice:t,removeValidationNotice:n}),[f,g,e,n,t]);return(0,o.useEffect)(()=>((0,r.dispatch)(a.H).setContentValidation({validateContent:m}),()=>{(0,r.dispatch)(a.H).setContentValidation(void 0)}),[m]),(0,o.useEffect)(()=>{const e=(0,r.subscribe)(()=>{t()&&m()},i.store);return()=>e()},[t,m]),{validateContent:m}}])},1128(e,t,n){"use strict";n.d(t,{b:()=>f});var o=n(6087),r=n(7143),i=n(3656),s=n(3764),a=n.n(s),c=n(3124),l=n(6967),d=n(8498),u=n(3598);const p=[];function f(){const{userTheme:e}=(0,l.u)(),{editorTheme:t,layout:n,deviceType:s,initialEditorSettingsStyles:f}=(0,r.useSelect)(e=>{const{getEditorSettings:t,getDeviceType:n}=e(i.store),o=t(),r=e(c.H).getInitialEditorSettings();return{editorTheme:e(c.H).getTheme(),layout:o?.__experimentalFeatures?.layout,deviceType:n(),initialEditorSettingsStyles:r?.styles}},[]),g=(0,o.useMemo)(()=>a().all([{},t||{},e||{}]),[t,e]),[m]=(0,d.e)(g);let h="";n&&"Mobile"!==s&&(h=`display:flow-root; width:${n?.contentSize||"660px"}; margin: 0 auto;box-sizing: border-box;max-width: 100%;`);const b=g.styles?.spacing?.padding;b&&(h+=`padding-left:${(0,u.DJ)(b.left)};`,h+=`padding-right:${(0,u.DJ)(b.right)};`);return[(0,o.useMemo)(()=>[...m??[],{css:`.is-root-container{ ${h} }`},...f??[]],[m,f,h])||p]}},665(e,t,n){"use strict";n.d(t,{n:()=>u});var o=n(3764),r=n.n(o),i=n(7143),s=n(6087),a=n(3124),c=n(6967);const l={};function d(e){return!Object.keys(e).some(t=>Object.keys(e[t]).length>0)}function u(e,t,n){const o=Array.isArray(t)?[...t]:[t],r=Array.isArray(e)?[...e]:{...e},i=o.pop();let s=r;return o.forEach(e=>{const t=s[e];s[e]=Array.isArray(t)?[...t]:{...t},s=s[e]}),s[i]=n,r}function p(e){const t=e=>{if("object"==typeof e&&null!==e||void 0===e){if(Array.isArray(e)&&0===e.length)return;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=t(e[n]);void 0===o||d(o)?delete e[n]:e[n]=o}}return e};return t(e)}n.d(t,["u",0,()=>{const{userTheme:e,updateUserTheme:t}=(0,c.u)(),n=(0,s.useMemo)(()=>e?p(function(e){const t=e=>{if("object"==typeof e&&null!==e)for(const n in e)e.hasOwnProperty(n)&&(e[n]=t(e[n]));else if("string"==typeof e)return e.replace(/var\(--([a-z]+)--([a-z]+(?:--[a-z0-9]+(?:-[a-z0-9]+)*)*)--([a-z0-9-]+)\)/g,(e,t,n,o)=>`var:${n.split("--").concat(o).join("|")}`);return e};return t(e)}(e?.styles)):l,[e]),{styles:o}=(0,i.useSelect)(e=>({styles:e(a.H).getStyles()})),d=(0,s.useCallback)(n=>{const o={...e,styles:p(n)};t(o)},[t,e]),f=(0,s.useCallback)((n,o)=>{const r=u(e,["styles",...n],o);t(r)},[t,e]);return{styles:(0,s.useMemo)(()=>o?n?r().all([o,n]):o:l,[o,n]),userStyles:e?.styles,defaultStyles:o,updateStyleProp:f,updateStyles:d}}])},8766(e,t,n){"use strict";var o=n(6087),r=n(2619),i=n(7143),s=n(3656);n.d(t,["r",0,()=>{const e=(0,o.useRef)(null),[t,n]=(0,o.useState)(0),a=(0,o.useCallback)(t=>{e.current=t,n(e=>++e)},[e,n]),c=(0,i.useSelect)(e=>{const{getEditorSettings:t}=e(s.store);return t()?.allowedIframeStyleHandles??[]});return(0,o.useEffect)(()=>{if(!e.current)return;const{ownerDocument:t}=e.current;Array.from(document.styleSheets).filter(e=>{if(!(e?.ownerNode instanceof Element))return!1;const t=e.ownerNode.getAttribute("id"),n=t&&!c.includes(t);return(0,r.applyFilters)("woocommerce_email_editor_iframe_stylesheet_should_remove",n,e)}).map(e=>e.ownerNode.getAttribute("id")).forEach(e=>{const n=t.getElementById(e);n&&n.remove();const o=t.createElement("style");o.id=e,t.head.appendChild(o)})},[c,t]),a}])},8498(e,t,n){"use strict";var o=n(5046),r=n(6087);const i={},s=[];n.d(t,["e",0,(e={})=>(0,r.useMemo)(()=>{if(!e?.styles||!e?.settings)return[s,i];return(0,o.xn)(e,[],{hasBlockGapSupport:!0,hasFallbackGapSupport:!1,disableLayoutStyles:!1,disableRootPadding:!1})},[e])])},3707(e,t,n){"use strict";n.d(t,{c:()=>s});var o=n(6087),r=n(7143),i=n(3656);function s(e,t,n){const[s,a]=(0,o.useReducer)((e,{type:t,post:n,previousRenderingMode:o})=>"push"===t?[...e,{post:n,previousRenderingMode:o}]:"pop"===t&&e.length>1?e.slice(0,-1):e,[{post:{postId:e,postType:t}}]),{post:c,previousRenderingMode:l}=s[s.length-1],{getRenderingMode:d}=(0,r.useSelect)(i.store),{setRenderingMode:u}=(0,r.useDispatch)(i.store),p=(0,o.useCallback)(e=>{a({type:"push",post:{postId:e.postId,postType:e.postType},previousRenderingMode:d()}),u(n)},[d,u,n]),f=(0,o.useCallback)(()=>{a({type:"pop"}),l&&u(l)},[u,l]);return{currentPost:c,onNavigateToEntityRecord:p,onNavigateToPreviousEntityRecord:s.length>1?f:void 0}}},2104(e,t,n){"use strict";n.d(t,{T:()=>g});var o=n(6087),r=n(7143),i=n(7723),s=n(692),a=n(3582),c=n(3124);const l=(0,i.__)("Email design updated.","jetpack");function d(){return{"site-editor-save-success":{content:l,removeActions:!0},"editor-save":{content:(0,i.__)("Email saved.","jetpack"),removeActions:!0,labelKeys:["item_updated","item_published"]}}}const u=["wp_template","wp_template_part"];function p(e,t){const n=d();if(!Object.prototype.hasOwnProperty.call(n,e.id))return e;const o=n[e.id],r=o.labelKeys?function(e,t,n){return e.find(e=>t.some(t=>e.labels?.[t]&&e.labels[t]===n))}(t,o.labelKeys,e.content):void 0,i=!o.labelKeys||!!r,s="editor-save"===e.id&&(a=r?.postType,a&&u.includes(a))?l:o.content;var a;return{...e,...i?{content:s,spokenMessage:s}:{},actions:o.removeActions?[]:e.actions}}const f=(0,r.createSelector)((e,t,n,o,r,i)=>{const s=[{postType:t,labels:n}];return i||s.push({postType:o,labels:r}),function(e,t){return e.map(e=>p(e,t))}(e,s)},(e,t,n,o,r,i)=>[e,t,n,o,r,i]);function g(){(0,o.useEffect)(()=>{let e;return(0,r.use)(t=>(e=t.select,{select:t=>{if(function(e){return"object"==typeof e?e.name:e}(t)!==s.store.name)return e(t);const n=e(t),o=n.getNotices;return o?{...n,getNotices:t=>{const n=o(t),r=d();if(!n.some(e=>Object.prototype.hasOwnProperty.call(r,e.id)))return f(n,void 0,void 0,void 0,void 0,!0);const i=t=>t?e(a.store)?.getPostType(t)?.labels:void 0,s=e("core/editor")?.getCurrentPostType?.(),l=i(s),u=e(c.H)?.getEmailPostType?.(),p=u===s,g=p?l:i(u);return f(n,s,l,u,g,p)}}:n}})),()=>{(0,r.use)(()=>({select:e}))}},[])}},528(e,t,n){"use strict";n.d(t,{p:()=>u});var o=n(6087),r=n(4997),i=n(7143),s=n(2619),a=n(3124);const c=[];function l(e,t){return e.map(e=>"core/post-content"===e.name?{...e,name:"core/group",innerBlocks:t}:e.innerBlocks?.length?{...e,innerBlocks:l(e.innerBlocks,t)}:e)}const d={};function u(e="",t=!0){const{templates:n,patterns:u,emailPosts:p,hasEmailPosts:f}=(0,i.useSelect)(n=>{const o=t&&"swap"!==e?n(a.H).getSentEmailEditorPosts():void 0;return{templates:n(a.H).getEmailTemplates(),patterns:n(a.H).getBlockPatternsForEmailTemplate(),emailPosts:o,hasEmailPosts:!(!o||!o?.length)}},[e,t]),g=(0,o.useMemo)(()=>{let t=[];const o=e&&(0,r.parse)(e);if(t=o?[{blocks:o}]:u,!t||!n)return c;const i=[];return n?.filter(e=>"email-general"!==e.slug)?.forEach(e=>{t?.forEach(t=>{let n=(0,r.parse)(e.content?.raw);n=l(n,t.blocks),i.push({id:e.id,slug:e.slug,previewContentParsed:n,emailParsed:t.emailBlocks??t.blocks,template:e,category:t.categories?.[0],type:e.type,displayName:t.title?`${e.title.rendered} - ${t.title}`:e.title.rendered})})}),i},[n,u,e]),m=(0,o.useMemo)(()=>p?.map(e=>{const t=(0,s.applyFilters)("woocommerce_email_editor_preferred_template_title","",e),{postTemplateContent:n}=function(e,t=[]){const n=e.template,o={postTemplateContent:null};if(!n)return o;if(d[n])return d[n];const r=t.find(e=>e.slug===n);if(!r)return o;const i={postTemplateContent:r?.template};return d[n]=i,i}(e,g),o=(0,r.parse)(e.content?.raw);let i=o;n?.content?.raw&&(i=l((0,r.parse)(n?.content?.raw),o));const a={...e,title:{raw:e.title.raw,rendered:t||e.title.rendered}};return{id:e.id,slug:e.slug,previewContentParsed:i,emailParsed:o,category:"recent",type:e.type,displayName:a.title.rendered,template:a}}),[p,g]);return[g||c,m||c,f]}},6477(e,t,n){"use strict";var o=n(6087),r=n(7143),i=n(7723),s=n(692);n.d(t,["u",0,()=>{const e=(0,o.useMemo)(()=>{const e=(0,i.__)("Saving failed.","jetpack");return new RegExp("^"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))},[]);(0,o.useEffect)(()=>{const t=(0,r.subscribe)(()=>{(0,r.select)(s.store).getNotices().forEach(t=>{"string"==typeof t.content&&e.test(t.content)&&(0,r.dispatch)(s.store).removeNotice(t.id)})});return()=>{t()}},[e])}])},4515(e,t,n){"use strict";n.d(t,{c:()=>s});var o=n(6087),r=n(923),i=n.n(r);function s(e){const t=(0,o.useRef)(e);return i()(e,t.current)||(t.current=e),t.current}},6967(e,t,n){"use strict";n.d(t,{u:()=>a});var o=n(6087),r=n(7143),i=n(3582),s=n(3124);function a(){const{globalStylePost:e}=(0,r.useSelect)(e=>({globalStylePost:e(s.H).getGlobalEmailStylesPost()||null}),[]);return{userTheme:(0,o.useMemo)(()=>({settings:e?.settings,styles:e?.styles}),[e?.settings,e?.styles]),updateUserTheme:(0,o.useCallback)(t=>{e&&(0,r.dispatch)(i.store).editEntityRecord("root","globalStyles",e.id,{styles:t.styles,settings:t.settings})},[e])}}},7711(e,t,n){"use strict";var o=n(6087),r=n(7143),i=n(692);n.d(t,["k",0,()=>{const e="email-validation",t=(0,r.useSelect)(t=>t(i.store).getNotices(e),[]);return{notices:t,hasValidationNotice:(0,o.useCallback)(e=>e?void 0!==t.find(t=>t.id===e):t?.length>0,[t]),addValidationNotice:(0,o.useCallback)((t,n,o=[])=>{const s=o;(0,r.dispatch)(i.store).createNotice("error",n,{id:t,isDismissible:!1,actions:s,context:e})},[e]),removeValidationNotice:(0,o.useCallback)(t=>{(0,r.dispatch)(i.store).removeNotice(t,e)},[e])}}])},265(e,t,n){"use strict";n.d(t,{xc:()=>x});var o=n(790),r=n(3022),i=n(9491),s=n(4997),a=n(7723),c=n(4361),l=n(7105),d=n(3172),u=n(6427),p=n(4715),f=n(8992),g=n(7847);const m="__experimentalEmailFlexLayout";function h(e){return(0,s.hasBlockSupport)(e,m)}function b({justificationValue:e,onChange:t,isToolbar:n=!1}){const r=[{value:"left",icon:l.A,label:(0,a.__)("Justify items left","jetpack")},{value:"center",icon:c.A,label:(0,a.__)("Justify items center","jetpack")},{value:"right",icon:d.A,label:(0,a.__)("Justify items right","jetpack")}];if(n){const n=r.map(e=>e.value);return(0,o.jsx)(p.JustifyContentControl,{value:e,onChange:t,allowedControls:n,popoverProps:{placement:"bottom-start"}})}return(0,o.jsx)(u.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Justification","jetpack"),value:e,onChange:t,className:"block-editor-hooks__flex-layout-justification-controls",children:r.map(({value:e,icon:t,label:n})=>(0,o.jsx)(u.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e))})}function v({setAttributes:e,attributes:t,name:n}){if(!(0,s.getBlockSupport)(n,m,{}))return null;const{justifyContent:r="left"}=t.layout||{},i=n=>{e({layout:{...t.layout,justifyContent:n}})},c=()=>{const{justifyContent:n,...o}=t.layout||{};e({layout:o})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.InspectorControls,{children:(0,o.jsx)(u.__experimentalToolsPanel,{label:(0,a.__)("Layout","jetpack"),resetAll:c,children:(0,o.jsx)(u.__experimentalToolsPanelItem,{isShownByDefault:!0,onDeselect:c,hasValue:()=>t.layout?.justifyContent||!1,label:(0,a.__)("Justification","jetpack"),children:(0,o.jsx)(u.Flex,{children:(0,o.jsx)(u.FlexItem,{children:(0,o.jsx)(b,{justificationValue:r,onChange:i})})})})})}),(0,o.jsx)(p.BlockControls,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,o.jsx)(b,{justificationValue:r,onChange:i,isToolbar:!0})})]})}const y=(0,i.createHigherOrderComponent)(e=>t=>[h(t.name)&&(0,o.jsx)(v,{...t},"layout"),(0,o.jsx)(e,{...t},"edit")],"withLayoutControls");function _({block:e,props:t}){const{attributes:n}=t,{layout:i}=n,s=`is-content-justification-${i?.justifyContent||"left"}`,a=(0,r.A)(s,"is-layout-email-flex is-layout-flex");return(0,o.jsx)(e,{...t,className:a})}const w=(0,i.createHigherOrderComponent)(e=>function(t){return h(t.name)?(0,o.jsx)(_,{block:e,props:t}):(0,o.jsx)(e,{...t})},"withLayoutStyles");function x(){(0,s.getBlockTypes)().forEach(e=>{h(e.name)&&(0,f.G)(e.name,e=>({...e,attributes:{...e.attributes,layout:{type:"object"}}}))}),(0,g.HY)("editor.BlockListBlock","woocommerce-email-editor/with-layout-styles",w),(0,g.HY)("editor.BlockEdit","woocommerce-email-editor/with-inspector-controls",y)}},721(e,t,n){"use strict";var o=n(7143),r=n(7723),i=n(3124);const s=new WeakMap,a={core:["saveEditedEntityRecord","saveEntityRecord"]};n.d(t,["J",0,()=>{Object.keys(s).length>0||(0,o.use)(e=>({dispatch:t=>{const n="object"==typeof t?t.name:t;if(!a[n])return e.dispatch(n);const o=e.dispatch(n);s[n]||(s[n]={});const c=a[n].filter(e=>!s[n][e]);if(c.length>0)for(const t of c)s[n][t]=o[t],o[t]=async(...o)=>{const a=e.select(i.H).getContentValidation(),c=a?.validateContent;if(c){let e;try{e=c()}catch(t){e=!1}if(!e)return Promise.reject(new Error((0,r.__)("Content validation failed.","jetpack")))}return await s[n][t](...o)};return o}}))}])},1847(e,t,n){"use strict";var o=n(7143),r=n(3053),i=n(3656),s=n(4715);const{unlock:a}=(0,r.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/edit-site"),{ColorPanel:c,BackgroundPanel:l,useHasColorPanel:d,useHasBackgroundPanel:u}=a(s.privateApis),p=l??(()=>null),f=d??(()=>!0),g=u??(()=>!1),{Editor:m,FullscreenMode:h,ViewMoreMenuGroup:b,BackButton:v}=a(i.privateApis),{registerEntityAction:y,unregisterEntityAction:_}=a((0,o.dispatch)(i.store));n.d(t,["Bi",0,y,"D_",0,p,"H7",0,f,"KE",0,m,"Lf",0,b,"fA",0,h,"oq",0,v,"oz",0,c,"sV",0,g,"yd",0,_])},8046(e,t,n){"use strict";n.r(t),n.d(t,{requestSendingNewsletterPreview:()=>g,setContentValidation:()=>m,setEditorConfig:()=>y,setEditorSettings:()=>h,setEditorTheme:()=>b,setEditorUrls:()=>v,setEmailPostType:()=>p,setTemplateSelected:()=>f,togglePreviewModal:()=>d,updateSendPreviewEmail:()=>u});var o=n(7143),r=n(3582),i=n(6161),s=n(3124),a=n(970),c=n(8311),l=n(6816);function d(e){return{type:"CHANGE_PREVIEW_STATE",state:{isModalOpened:e}}}function u(e){return{type:"CHANGE_PREVIEW_STATE",state:{toEmail:e}}}function p(e){if(!e)throw new Error("setEmailPostType requires a valid postType parameter");return{type:"SET_EMAIL_POST",state:{postType:e}}}function f(){return{type:"SET_TEMPLATE_SELECTED"}}function*g(e){if(!(0,o.select)(s.H).getPreviewState().isSendingPreviewEmail){yield{type:"CHANGE_PREVIEW_STATE",state:{sendingPreviewStatus:null,isSendingPreviewEmail:!0}};try{const t=(0,o.select)(s.H).getEmailPostId();yield(0,i.apiFetch)({path:"/woocommerce-email-editor/v1/send_preview_email",method:"POST",data:{email:e,postId:t}}),yield{type:"CHANGE_PREVIEW_STATE",state:{sendingPreviewStatus:c.T.SUCCESS,isSendingPreviewEmail:!1}},(0,l.yM)("sent_preview_email",{postId:t,email:e})}catch(t){(0,l.yM)("sent_preview_email_error",{email:e}),yield{type:"CHANGE_PREVIEW_STATE",state:{sendingPreviewStatus:c.T.ERROR,isSendingPreviewEmail:!1,errorMessage:JSON.stringify(t?.error)}}}}}function m(e){return{type:"SET_CONTENT_VALIDATION",validation:e}}function h(e){return{type:"SET_EDITOR_SETTINGS",editorSettings:e}}function b(e){return{type:"SET_EDITOR_THEME",theme:e}}function v(e){return{type:"SET_EDITOR_URLS",urls:e}}function y(e){return{type:"SET_EDITOR_CONFIG",config:e}}n.d(t,["invalidatePersonalizationTagsCache",0,()=>async({registry:e})=>{const t=e.select(s.H).getEmailPostId();e.dispatch(r.store).invalidateResolution("getEntityRecords",[s.q.kind,s.q.name,(0,a.O)(t)])},"setEmailPost",0,(e,t)=>async({dispatch:n})=>{if(!e||!t)throw new Error("setEmailPost requires valid postId and postType parameters");n({type:"SET_EMAIL_POST",state:{postId:e,postType:t}})},"setTemplateToPost",0,e=>async({registry:t})=>{const n=t.select(s.H).getEmailPostId(),o=t.select(s.H).getEmailPostType();t.dispatch(r.store).editEntityRecord("postType",o,n,{template:e})}])},3124(e,t,n){"use strict";n.d(t,["H",0,"email-editor/editor","q",0,{name:"personalization_tag",kind:"root",baseURL:"/woocommerce-email-editor/v1/personalization_tags",key:"token"}])},8105(e,t,n){"use strict";function o(){return{editorSettings:void 0,theme:void 0,styles:{globalStylesPostId:null},urls:{back:"",listings:""},preview:{toEmail:"",isModalOpened:!1,isSendingPreviewEmail:!1,sendingPreviewStatus:null},contentValidation:void 0,templateSelected:!1}}n.d(t,{C:()=>o})},970(e,t,n){"use strict";n.d(t,{O:()=>r});const o=new Map;function r(e){let t=o.get(e);return t||(t={context:"view",per_page:-1,...e?{post_id:e}:{}},o.set(e,t)),t}},4405(e,t,n){"use strict";function o(e,t){switch(t.type){case"CHANGE_PREVIEW_STATE":return{...e,preview:{...e.preview,...t.state}};case"SET_EMAIL_POST":return{...e,...t.state};case"SET_CONTENT_VALIDATION":return{...e,contentValidation:t.validation};case"SET_TEMPLATE_SELECTED":return{...e,templateSelected:!0};case"SET_EDITOR_SETTINGS":return{...e,editorSettings:t.editorSettings};case"SET_EDITOR_THEME":return{...e,theme:t.theme};case"SET_EDITOR_URLS":return{...e,urls:{...e.urls,...t.urls}};case"SET_EDITOR_CONFIG":return{...e,editorSettings:t.config.editorSettings,theme:t.config.theme,urls:t.config.urls,preview:{...e.preview,toEmail:t.config.userEmail},styles:{...e.styles,globalStylesPostId:t.config.globalStylesPostId??null}};default:return e}}n.d(t,{F:()=>o})},6799(e,t,n){"use strict";n.r(t),n.d(t,{getContentValidation:()=>D,getEmailPostId:()=>A,getEmailPostType:()=>P,getGlobalStylesPostId:()=>$,getInitialEditorSettings:()=>N,getPaletteColors:()=>I,getPreviewState:()=>z,getStyles:()=>B,getTheme:()=>L,getUrls:()=>H,isTemplateSelected:()=>V});var o=n(7143),r=n(3582),i=n(3656),s=n(1233),a=n(4997),c=n(2619),l=n(3124),d=n(970);function u(e){return e?.content&&"function"==typeof e.content?e.content(e):e?.blocks?(0,a.serialize)(e.blocks):e?.content?e.content:""}const p=new WeakMap;function f(e){let t=p.get(e);return t||(t={...e,get blocks(){return(0,a.parse)(e.content)},get emailBlocks(){return e.emailContent?(0,a.parse)(e.emailContent):null}},p.set(e,t)),t}const g=new WeakMap;function m(e){if(!e)return null;const t=g.get(e);if(t)return t;const n={...e,title:e?.title?.raw||e?.title||"",content:e?.content?.raw||e?.content||""};return g.set(e,n),n}const h=(0,o.createRegistrySelector)(e=>(t,n)=>!!e(s.store).get(l.H,n)),b=(0,o.createRegistrySelector)(e=>()=>{const t=e(l.H).getEmailPostId(),n=e(l.H).getEmailPostType();return!!e(r.store).hasEditsForEntityRecord("postType",n,t)}),v=(0,o.createRegistrySelector)(e=>()=>{const t=e(l.H).getEmailPostId(),n=e(l.H).getEmailPostType(),o=e(r.store).getEntityRecord("postType",n,t);if(!o)return!0;const{content:i}=o;return!i.raw}),y=(0,o.createRegistrySelector)(e=>()=>{const t=e(l.H).getEmailPostId(),n=e(l.H).getEmailPostType(),o=e(r.store).getEntityRecord("postType",n,t);if(!o)return!1;return"sent"===o.status}),_=(0,o.createRegistrySelector)(e=>()=>{const t=e(l.H).getEmailPostId(),n=e(l.H).getEmailPostType(),o=e(r.store).getEditedEntityRecord("postType",n,t);return o?u(o):""}),w={per_page:30,status:"publish,sent"};const x=(0,o.createRegistrySelector)(e=>()=>{const t=e(l.H).getEmailPostType(),n=(0,c.applyFilters)("woocommerce_email_editor_recent_emails_query",{...w},t),o=(i=n)&&"object"==typeof i&&!Array.isArray(i)?n:w;var i;return e(r.store).getEntityRecords("postType",t,o)?.filter(e=>""!==e?.content?.raw)||[]}),k=(0,o.createRegistrySelector)(e=>{const t=e(l.H).getEmailPostType();return(0,o.createSelector)(()=>t?e(r.store).getBlockPatterns().filter(({templateTypes:e,postTypes:n})=>Array.isArray(e)&&e.includes("email-template")&&(void 0===n||0===n.length||n.includes(t))).map(f):[],()=>[e(r.store).getBlockPatterns(),t])}),S=(0,o.createRegistrySelector)(e=>()=>e(r.store).canUser("create",{kind:"postType",name:"wp_template"}));function j(e,t){return S()?e(r.store).getEditedEntityRecord("postType","wp_template",t):m(e(r.store).getEntityRecord("postType","wp_template",t,{context:"view"}))}const C=(0,o.createRegistrySelector)(e=>(t,n)=>{const o=n||e(i.store).getEditedPostAttribute("template");if(o){const t={context:"view",per_page:-1,_woocommerce_email_editor:"fetch-all-templates"},n=e(r.store).getEntityRecords("postType","wp_template",t)?.find(e=>e.slug===o);return n?j(e,n.id):null}const s=e(r.store).getDefaultTemplateId({slug:"email-general"});return j(e,s)}),E=(0,o.createRegistrySelector)(e=>()=>{if("wp_template"===e(i.store).getCurrentPostType()){const t=e(i.store).getCurrentPostId();return e(r.store).getEditedEntityRecord("postType","wp_template",t)}return e(l.H).getEditedPostTemplate()}),T=(0,o.createRegistrySelector)(e=>()=>{const t=e(l.H).getGlobalStylesPostId();return{postId:t,canEdit:e(r.store).canUser("update",{kind:"root",name:"globalStyles",id:t})}}),R=(0,o.createRegistrySelector)(e=>()=>{const{postId:t,canEdit:n}=T();return t&&void 0!==n&&t?n?e(r.store).getEditedEntityRecord("root","globalStyles",t):m(e(r.store).getEntityRecord("root","globalStyles",t,{context:"view"})):null}),M=(0,o.createRegistrySelector)(e=>{const t=e(l.H).getEmailPostType();return(0,o.createSelector)(()=>e(r.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:t,context:"view"})?.filter(e=>e.post_types.includes(t)),()=>[e(r.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:t,context:"view"})])});function A(e){return e.postId}function P(e){return e.postType}function N(e){return e.editorSettings}function I(e){return e.editorSettings?.__experimentalFeatures?.color?.palette}function z(e){return e.preview}const F=[],O=(0,o.createRegistrySelector)(e=>{let t=null;return()=>{const n=e(l.H).getEmailPostId(),o=e(r.store).getEntityRecords(l.q.kind,l.q.name,(0,d.O)(n))||F,i=e(l.H).getEmailPostType();if(!i)return o;const s="wp_template"===i?e(l.H).getCurrentTemplate()?.post_types:void 0;if(t&&t.tags===o&&t.postType===i&&t.templatePostTypes===s)return t.result;const a=o.filter(e=>void 0===e.postTypes||0===e.postTypes.length||("wp_template"===i?Array.isArray(s)&&s.some(t=>e.postTypes.includes(t)):e.postTypes.includes(i)));return t={tags:o,postType:i,templatePostTypes:s,result:a},a}});function B(e){return e.theme?.styles}function L(e){return e.theme}function $(e){return e.styles.globalStylesPostId}function H(e){return e.urls}function D(e){return e.contentValidation}function V(e){return e.templateSelected}n.d(t,["canUserEditGlobalEmailStyles",0,T,"canUserEditTemplates",0,S,"getBlockPatternsForEmailTemplate",0,k,"getCurrentTemplate",0,E,"getCurrentTemplateContent",0,()=>{const e=E();return e?u(e):""},"getEditedEmailContent",0,_,"getEditedPostTemplate",0,C,"getEmailTemplates",0,M,"getGlobalEmailStylesPost",0,R,"getPersonalizationTagsList",0,O,"getSentEmailEditorPosts",0,x,"hasEdits",0,b,"hasEmptyContent",0,v,"isEmailSent",0,y,"isFeatureActive",0,h])},4368(e,t,n){"use strict";function o(){if(!window.WooCommerceEmailEditor)throw new Error("WooCommerceEmailEditor global object is not available. This is required for the email editor to work.");const e=window.WooCommerceEmailEditor.editor_settings,t=window.WooCommerceEmailEditor.editor_theme,n=window.WooCommerceEmailEditor.urls,o=window.WooCommerceEmailEditor.current_wp_user_email,r=window.WooCommerceEmailEditor.user_theme_post_id;if(!e)throw new Error("window.WooCommerceEmailEditor.editor_settings is required.");if(!t)throw new Error("window.WooCommerceEmailEditor.editor_theme is required.");if(!n||"string"!=typeof n.back||"string"!=typeof n.listings)throw new Error("window.WooCommerceEmailEditor.urls.back and .listings are required strings.");return{editorSettings:e,theme:t,urls:n,userEmail:o,globalStylesPostId:r??null}}n.d(t,{q:()=>o})},7380(e,t,n){"use strict";var o=n(7143),r=n(3582),i=n(6161),s=n(8046),a=n(3124),c=n(8105),l=n(4405),d=n(6799);n.d(t,["y",0,()=>{if(void 0!==(0,o.select)(a.H))return(0,o.select)(a.H);const e=(0,o.createReduxStore)(a.H,{actions:s,controls:i.controls,selectors:d,resolvers:{},reducer:l.F,initialState:(0,c.C)()});return(0,o.register)(e),(0,o.dispatch)(r.store).addEntities([a.q]),e}])},8311(e,t,n){"use strict";n.d(t,{T:()=>o});var o=(e=>(e.SUCCESS="success",e.ERROR="error",e))(o||{})},3598(e,t,n){"use strict";function o(e){if("string"!=typeof e)return null;const t=e.match(/^var:preset\|([a-zA-Z0-9-]+)\|([a-zA-Z0-9-]+)$/);return t?`--wp--preset--${t[1]}--${t[2]}`:null}function r(e){const t=o(e);return t?`var(${t})`:e}function i(e){const t=o(e);if(!t)return e;const n=document.querySelector(":root");if(!n)return e;return getComputedStyle(n).getPropertyValue(t).trim()||e}n.d(t,{DJ:()=>r,pr:()=>i})},5885(e,t,n){"use strict";var o=n(7723),r=n(7847);n.d(t,["I",0,()=>{const e={"You’ve tried to select a block that is part of a template that may be used elsewhere on your site. Would you like to edit the template?":{domain:"default",replacementText:(0,o.__)("You’ve tried to select a block that is part of a template that may be used in other emails. Would you like to edit the template?","jetpack")}};(0,r.HY)("i18n.gettext","woocommerce/email-editor/override-text",(t,n,o)=>e[n]&&e[n].domain===(o||"default")?e[n].replacementText:t)}])},1937(e,t,n){"use strict";var o=n(1609);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useState,s=o.useEffect,a=o.useLayoutEffect,c=o.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),o=i({inst:{value:n,getSnapshot:t}}),r=o[0].inst,d=o[1];return a(function(){r.value=n,r.getSnapshot=t,l(r)&&d({inst:r})},[e,n,t]),s(function(){return l(r)&&d({inst:r}),e(function(){l(r)&&d({inst:r})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:d},9838(e,t,n){"use strict";var o=n(1609),r=n(2484);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useSyncExternalStore,a=o.useRef,c=o.useEffect,l=o.useMemo,d=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,o,r){var u=a(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=l(function(){function e(e){if(!c){if(c=!0,s=e,e=o(e),void 0!==r&&p.hasValue){var t=p.value;if(r(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var n=o(e);return void 0!==r&&r(t,n)?(s=e,t):(s=e,a=n)}var s,a,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,o,r]);var f=s(e,u[0],u[1]);return c(function(){p.hasValue=!0,p.value=f},[f]),d(f),f}},2484(e,t,n){"use strict";e.exports=n(1937)},2566(e,t,n){"use strict";e.exports=n(9838)},7999(e){"use strict";e.exports=window.JetpackScriptDataModule},1609(e){"use strict";e.exports=window.React},5795(e){"use strict";e.exports=window.ReactDOM},790(e){"use strict";e.exports=window.ReactJSXRuntime},8468(e){"use strict";e.exports=window.lodash},195(e){"use strict";e.exports=window.wp.a11y},1455(e){"use strict";e.exports=window.wp.apiFetch},4715(e){"use strict";e.exports=window.wp.blockEditor},9363(e){"use strict";e.exports=window.wp.blockLibrary},4997(e){"use strict";e.exports=window.wp.blocks},2165(e){"use strict";e.exports=window.wp.commands},6427(e){"use strict";e.exports=window.wp.components},9491(e){"use strict";e.exports=window.wp.compose},3582(e){"use strict";e.exports=window.wp.coreData},7143(e){"use strict";e.exports=window.wp.data},6161(e){"use strict";e.exports=window.wp.dataControls},8490(e){"use strict";e.exports=window.wp.domReady},3656(e){"use strict";e.exports=window.wp.editor},6087(e){"use strict";e.exports=window.wp.element},2005(e){"use strict";e.exports=window.wp.formatLibrary},2619(e){"use strict";e.exports=window.wp.hooks},8537(e){"use strict";e.exports=window.wp.htmlEntities},7723(e){"use strict";e.exports=window.wp.i18n},923(e){"use strict";e.exports=window.wp.isShallowEqual},8558(e){"use strict";e.exports=window.wp.keycodes},692(e){"use strict";e.exports=window.wp.notices},2279(e){"use strict";e.exports=window.wp.plugins},1233(e){"use strict";e.exports=window.wp.preferences},5573(e){"use strict";e.exports=window.wp.primitives},7494(e){"use strict";e.exports=window.wp.priorityQueue},3053(e){"use strict";e.exports=window.wp.privateApis},876(e){"use strict";e.exports=window.wp.richText},9786(e){"use strict";e.exports=window.wp.styleEngine},3832(e){"use strict";e.exports=window.wp.url},7918(e,t,n){"use strict";n.d(t,{V:()=>r});var o=n(1960);function r(e){return(0,o.G)("alert-dialog",e)}},8816(e,t,n){"use strict";var o=n(1609),r=n(8762),i=n(3307);const s=o.forwardRef(function(e,t){const{render:n,className:o,disabled:s=!1,focusableWhenDisabled:a=!1,nativeButton:c=!0,style:l,...d}=e,{getButtonProps:u,buttonRef:p}=(0,r.s)({disabled:s,focusableWhenDisabled:a,native:c}),f={disabled:s};return(0,i.o)("button",e,{state:f,ref:[t,p],props:[d,u]})});n.d(t,["$",0,s])},7791(e,t,n){"use strict";var o=n(1609),r=n(9872),i=n(3307),s=n(9624);const a=o.forwardRef(function(e,t){const{render:n,className:o,style:a,forceRender:c=!1,...l}=e,d=(0,r.P)(),u=d.useState("open"),p=d.useState("nested"),f=d.useState("mounted"),g={open:u,transitionStatus:d.useState("transitionStatus")};return(0,i.o)("div",e,{state:g,ref:[d.context.backdropRef,t],stateAttributesMapping:s.LM,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:c||!p})});n.d(t,["X",0,a])},753(e,t,n){"use strict";var o=n(1609),r=n(9872),i=n(3307),s=n(8762),a=n(5351),c=n(4789);const l=o.forwardRef(function(e,t){const{render:n,className:o,style:l,disabled:d=!1,nativeButton:u=!0,...p}=e,f=(0,r.P)(),g=f.useState("open"),{getButtonProps:m,buttonRef:h}=(0,s.s)({disabled:d,native:u}),b={disabled:d};return(0,i.o)("button",e,{state:b,ref:[t,h],props:[{onClick:function(e){g&&f.setOpen(!1,(0,a.d)(c.SR,e.nativeEvent))}},p,m]})});n.d(t,["H",0,l])},9629(e,t,n){"use strict";var o=n(1609),r=n(9872),i=n(3307),s=n(8659);const a=o.forwardRef(function(e,t){const{render:n,className:o,style:a,id:c,...l}=e,d=(0,r.P)(),u=(0,s.e)(c);return d.useSyncedValueWithCleanup("descriptionElementId",u),(0,i.o)("p",e,{ref:t,props:[{id:u},l]})});n.d(t,["r",0,a])},8697(e,t,n){"use strict";var o=n(1609),r=n(2597),i=n(9872),s=n(3307),a=n(7668),c=n(3244),l=n(9309),d=n(1223),u=n(8740),p=n(1456),f=n(790);const g=o.forwardRef(function(e,t){const{render:n,className:o,style:g,finalFocus:m,initialFocus:h,...b}=e,v=(0,i.P)(),y=v.useState("descriptionElementId"),_=v.useState("disablePointerDismissal"),w=v.useState("floatingRootContext"),x=v.useState("popupProps"),k=v.useState("modal"),S=v.useState("mounted"),j=v.useState("nested"),C=v.useState("nestedOpenDialogCount"),E=v.useState("open"),T=v.useState("openMethod"),R=v.useState("titleElementId"),M=v.useState("transitionStatus"),A=v.useState("role"),P=w.useState("floatingId");(0,a.p)(),(0,c.v)({open:E,ref:v.context.popupRef,onComplete(){E&&v.context.onOpenChangeComplete?.(!0)}});const N=void 0===h?(0,d.UM)(v.context.popupRef):h,I=C>0,z=v.useStateSetter("popupElement"),F={open:E,nested:j,transitionStatus:M,nestedDialogOpen:I},O=(0,s.o)("div",e,{state:F,props:[x,{id:P,"aria-labelledby":R,"aria-describedby":y,role:A,...d.Ls,hidden:!S,onKeyDown(e){l.jF.has(e.key)&&e.stopPropagation()},style:{[u.d]:C}},b],ref:[t,v.context.popupRef,z],stateAttributesMapping:p.v});return(0,f.jsx)(r.s,{context:w,openInteractionType:T,disabled:!S,closeOnFocusOut:!_,initialFocus:N,returnFocus:m,modal:!1!==k,restoreFocus:"popup",children:O})});n.d(t,["h",0,g])},8740(e,t,n){"use strict";n.d(t,["d",0,"--nested-dialogs"])},9634(e,t,n){"use strict";var o=n(5849);o.ho,o.$h,o.ep,o.VJ;n.d(t,["W5",0,"data-nested-dialog-open"])},7603(e,t,n){"use strict";var o=n(1609),r=n(2272),i=n(1706),s=n(9872),a=n(7668),c=n(2710),l=n(790);const d=o.forwardRef(function(e,t){const{keepMounted:n=!1,...o}=e,d=(0,s.P)(),u=d.useState("mounted"),p=d.useState("modal"),f=d.useState("open");return u||n?(0,l.jsx)(a.m.Provider,{value:n,children:(0,l.jsxs)(i.XF,{ref:t,...o,children:[u&&!0===p&&(0,l.jsx)(c.W,{ref:d.context.internalBackdropRef,inert:(0,r.Y)(!f)}),e.children]})}):null});n.d(t,["Z",0,d])},7668(e,t,n){"use strict";n.d(t,{p:()=>s});var o=n(3169),r=n(1609);const i=r.createContext(void 0);function s(){const e=r.useContext(i);if(void 0===e)throw new Error((0,o.A)(26));return e}n.d(t,["m",0,i])},9872(e,t,n){"use strict";n.d(t,{P:()=>s});var o=n(3169),r=n(1609);const i=r.createContext(void 0);function s(e){const t=r.useContext(i);if(!e&&void 0===t)throw new Error((0,o.A)(27));return t}n.d(t,["a",0,i])},244(e,t,n){"use strict";n.d(t,{C:()=>l});var o=n(1609),r=n(2002),i=n(198),s=n(4891),a=n(865),c=n(1223);function l({store:e,parentContext:t,isDrawer:n}){const l=e.useState("open"),d=e.useState("mounted"),u=e.useState("disablePointerDismissal"),p=e.useState("modal"),f=e.useState("popupElement"),g=e.useState("floatingRootContext"),[m,h]=o.useState(0),[b,v]=o.useState(0),y=0===m,_=(0,s.s)(g,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===p?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current)return!1;if("button"in t&&0!==t.button)return!1;if("touches"in t)if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1;const n=(0,a.EW)(t);if(y&&!u){if(p){const t=e.context.internalBackdropRef.current,o=e.context.backdropRef.current;return!t&&!o||(t===n||o===n||(0,a.gR)(n,f)&&!n?.hasAttribute("data-base-ui-portal"))}return!0}return!1},escapeKey:y});return(0,i.K)(l&&!0===p,f),e.useContextCallback("onNestedDialogOpen",(t,n)=>{(e.select("open")||e.select("mounted"))&&(h(t),v(n))}),(0,r.g)(()=>{l||d||(h(0),v(0))},[l,d]),(0,r.g)(()=>(t?.onNestedDialogOpen&&l&&t.onNestedDialogOpen(m+1,b+(n?1:0)),()=>{t?.onNestedDialogOpen&&l&&t.onNestedDialogOpen(0,0)}),[n,l,m,b,t]),(0,c.i6)(e,{activeTriggerProps:_.reference,inactiveTriggerProps:_.trigger,popupProps:_.floating,nestedOpenDialogCount:m,nestedOpenDrawerCount:b}),null}},1960(e,t,n){"use strict";n.d(t,{G:()=>u});var o=n(1609),r=n(244),i=n(9872),s=n(7441),a=n(5351),c=n(4789),l=n(1223),d=n(790);function u(e,t){const{children:n,open:u,defaultOpen:p=!1,onOpenChange:f,onOpenChangeComplete:g,disablePointerDismissal:m=!1,modal:h=!0,actionsRef:b,handle:v,triggerId:y,defaultTriggerId:_=null}=t,w="drawer"===e,x="alert-dialog"===e,k=!!x||h,S=x||m,j=x?"alertdialog":"dialog",C=(0,i.P)(!0),E={modal:k,disablePointerDismissal:S,nested:null!=C,role:j},T=(0,l.xp)((e,t)=>new s.Y({open:p,openProp:u,activeTriggerId:_,triggerIdProp:y,...E},e,t),!0);T.useControlledProp("openProp",u),T.useControlledProp("triggerIdProp",y),T.useSyncedValues(E),T.useContextCallback("onOpenChange",f),T.useContextCallback("onOpenChangeComplete",g);const R=T.useState("open"),M=T.useState("mounted"),A=T.useState("payload");(0,l.xs)(T,R),(0,l.tr)(T);const{forceUnmount:P}=(0,l.l$)(R,T);o.useImperativeHandle(b,()=>({unmount:P,close:()=>T.setOpen(!1,(0,a.d)(c.zJ))}),[P,T]);const N=R||M||null!=v;return(0,d.jsxs)(i.a.Provider,{value:T,children:[v&&(0,d.jsx)(l.Ae,{handle:v,store:T}),N&&(0,d.jsx)(r.C,{store:T,parentContext:C?.context,isDrawer:w}),"function"==typeof n?n({payload:A}):n]})}},7441(e,t,n){"use strict";n.d(t,{Y:()=>l});var o=n(1609),r=n(5489),i=n(1223),s=n(2975),a=n(6404);const c={...a.o,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class l extends r.H{constructor(e,t,n){const o=new s.Z;super(d(e,o,t,n),u(o),c)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update((0,i.cQ)(this.state,e,t.trigger)))}}function d(e,t,n,o=!1){return{...(0,a.r)(t,n,o),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}function u(e){return{popupRef:o.createRef(),backdropRef:o.createRef(),internalBackdropRef:o.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}},3773(e,t,n){"use strict";var o=n(1609),r=n(9872),i=n(3307),s=n(8659);const a=o.forwardRef(function(e,t){const{render:n,className:o,style:a,id:c,...l}=e,d=(0,r.P)(),u=(0,s.e)(c);return d.useSyncedValueWithCleanup("titleElementId",u),(0,i.o)("h2",e,{ref:t,props:[{id:u},l]})});n.d(t,["L",0,a])},1456(e,t,n){"use strict";var o=n(4466),r=n(9624),i=n(9634);const s={...r.GW,...o.G,nestedDialogOpen:e=>e?{[i.W5]:""}:null};n.d(t,["v",0,s])},7759(e,t,n){"use strict";var o=n(1609),r=n(8596),i=n(790);n.d(t,["F",0,function(e){const{direction:t="ltr"}=e,n=o.useMemo(()=>({direction:t}),[t]);return(0,i.jsx)(r.l.Provider,{value:n,children:e.children})}])},2597(e,t,n){"use strict";n.d(t,{s:()=>O});var o=n(1609),r=n(1289),i=n(7584),s=n(1238),a=n(8970),c=n(7946),l=n(9288),d=n(2002),u=n(3405),p=n(5087),f=n(4541),g=n(2240),m=n(3540),h=n(9879),b=n(865),v=n(6559),y=n(5299),_=n(612),w=n(3214),x=n(5351),k=n(4789),S=n(415),j=n(907),C=n(6443),E=n(1706),T=n(8536),R=n(1031),M=n(7304),A=n(790);let P=[];function N(){P=P.filter(e=>e.deref()?.isConnected)}function I(e){N(),e&&"body"!==(0,r.mq)(e)&&(P.push(new WeakRef(e)),P.length>20&&(P=P.slice(-20)))}function z(){return N(),P[P.length-1]?.deref()}function F(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex"))return;if(!e.getAttribute("role")?.includes("dialog"))return;const t=(0,y.nq)(e).filter(e=>{const t=e.getAttribute("data-tabindex")||"";return(0,y.AO)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),n=e.getAttribute("tabindex");0===t.length?"0"!==n&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==n||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function O(e){const{context:t,children:n,disabled:P=!1,initialFocus:O=!0,returnFocus:B=!0,explicitReturnFocus:L,restoreFocus:$=!1,modal:H=!0,closeOnFocusOut:D=!0,openInteractionType:V="",nextFocusableElement:W,previousFocusableElement:G,beforeContentFocusGuardRef:q,externalTree:U,getInsideElements:K}=e,J=t.useState("open"),X=t.useState("domReferenceElement"),Y=t.useState("floatingElement"),{events:Z,dataRef:Q}=t.context,ee=(0,l.K)(()=>Q.current.floatingContext?.nodeId),te=!1===O,ne=(0,h.WZ)(X)&&te,oe=(0,c.u)(O),re=(0,c.u)(B),ie=(0,c.u)(L),se=(0,c.u)(V),ae=(0,c.u)(J),ce=(0,T.cq)(U),le=(0,E.vB)(),de=o.useRef(!1),ue=o.useRef(!1),pe=o.useRef(!1),fe=o.useRef(null),ge=o.useRef(""),me=o.useRef(""),he=o.useRef(null),be=o.useRef(null),ve=(0,a.a)(he,q,le?.beforeInsideRef),ye=(0,a.a)(be,le?.afterInsideRef),_e=(0,u.Z)(),we=(0,u.Z)(),xe=(0,f.NR)(),ke=null!=le,Se=(0,h.nd)(Y),je=(0,l.K)((e=Se)=>e?(0,y.Kr)(e):[]),Ce=(0,l.K)(()=>K?.().filter(e=>null!=e)??[]);o.useEffect(()=>{if(P||!H)return;const e=(0,g.R)(Se);return(0,i.q)(e,"keydown",function(e){"Tab"===e.key&&(0,b.gR)(Se,(0,b.RS)((0,g.R)(Se)))&&0===je().length&&!ne&&(0,v.jo)(e)})},[P,Se,H,ne,je]),o.useEffect(()=>{if(P||!J)return;const e=(0,g.R)(Se);function t(){pe.current=!1}return(0,s.g)((0,i.q)(e,"pointerdown",function(e){const t=(0,b.EW)(e),n=Ce(),o=(0,b.gR)(Y,t)||(0,b.gR)(X,t)||(0,b.gR)(le?.portalNode,t)||n.some(e=>e===t||(0,b.gR)(e,t));pe.current=!o,me.current=e.pointerType||"keyboard",(0,b.kp)(t,`[${R.Kd}]`)&&(ue.current=!0,we.start(0,()=>{ue.current=!1}))},!0),(0,i.q)(e,"pointerup",t,!0),(0,i.q)(e,"pointercancel",t,!0),(0,i.q)(e,"keydown",function(){me.current="keyboard"},!0),t)},[P,Y,X,Se,J,le,we,Ce]),o.useEffect(()=>{if(P||!D)return;const e=(0,g.R)(Se);function n(n){const o=n.relatedTarget,i=n.currentTarget,s=(0,b.EW)(n);H&&null==o&&null!=s&&(0,b.gR)(Y,s)&&I(s),queueMicrotask(()=>{const a=ee(),c=t.context.triggerElements,l=Ce(),d=o?.hasAttribute((0,S.F)("focus-guard"))&&[he.current,be.current,le?.beforeInsideRef.current,le?.afterInsideRef.current,le?.beforeOutsideRef.current,le?.afterOutsideRef.current,(0,M.q)(G),(0,M.q)(W)].includes(o),u=!((0,b.gR)(X,o)||(0,b.gR)(Y,o)||(0,b.gR)(o,Y)||(0,b.gR)(le?.portalNode,o)||l.some(e=>e===o||(0,b.gR)(e,o))||c.hasMatchingElement(e=>(0,b.gR)(e,o))||d||ce&&((0,_.C)(ce.nodesRef.current,a).find(e=>(0,b.gR)(e.context?.elements.floating,o)||(0,b.gR)(e.context?.elements.domReference,o))||(0,_.$)(ce.nodesRef.current,a).find(e=>[e.context?.elements.floating,(0,h.nd)(e.context?.elements.floating)].includes(o)||e.context?.elements.domReference===o)));if(i===X&&Se&&F(Se),$&&i!==X&&!(0,w.J9)(s)&&(0,b.RS)(e)===e.body){if((0,r.sb)(Se)&&(Se.focus(),"popup"===$))return void xe.request(()=>{Se.focus()});const e=je(),t=fe.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||Se;(0,r.sb)(n)&&n.focus()}Q.current.insideReactTree?Q.current.insideReactTree=!1:!ne&&H||!o||!u||ue.current||!ne&&o===z()||(de.current=!0,t.setOpen(!1,(0,x.d)(k.Xn,n)))})}const o=(0,r.sb)(X)?X:null;return Y||o?(0,s.g)(o&&(0,i.q)(o,"focusout",n),o&&(0,i.q)(o,"pointerdown",function(){ue.current=!0,we.start(0,()=>{ue.current=!1})}),Y&&(0,i.q)(Y,"focusin",function(e){const t=(0,b.EW)(e);(0,y.AO)(t)&&(fe.current=t)}),Y&&(0,i.q)(Y,"focusout",n),Y&&le&&(0,i.q)(Y,"focusout",function(){pe.current||(Q.current.insideReactTree=!0,_e.start(0,()=>{Q.current.insideReactTree=!1}))},!0)):void 0},[P,X,Y,Se,H,ce,le,t,D,$,je,ne,ee,Q,_e,we,xe,W,G,Ce]),o.useEffect(()=>{if(P||!Y||!J)return;const e=Array.from(le?.portalNode?.querySelectorAll(`[${(0,S.F)("portal")}]`)||[]),t=ce?(0,_.$)(ce.nodesRef.current,ee()):[],n=t.find(e=>(0,h.WZ)(e.context?.elements.domReference||null))?.context?.elements.domReference,o=[...[Y,...e,he.current,be.current,le?.beforeOutsideRef.current,le?.afterOutsideRef.current,...Ce()],n,(0,M.q)(G),(0,M.q)(W),ne?X:null].filter(e=>null!=e),r=(0,C.X)(o,{ariaHidden:H||ne,mark:!1}),i=[Y,...e].filter(e=>null!=e),s=(0,C.X)(i);return()=>{s(),r()}},[J,P,X,Y,H,le,ne,ce,ee,W,G,Ce]),(0,d.g)(()=>{if(!J||P||!(0,r.sb)(Se))return;ge.current="",me.current="";const e=(0,g.R)(Se),t=(0,b.RS)(e);queueMicrotask(()=>{const n=oe.current,o="function"==typeof n?n(se.current||""):n;if(void 0===o||!1===o)return;if((0,b.gR)(Se,t))return;let r=null;const i=()=>(null==r&&(r=je(Se)),r[0]||Se);let s;s=!0===o||null===o?i():(0,M.q)(o),s=s||i();const a=(0,b.gR)(Se,(0,b.RS)(e)),c=Q.current.openEvent,l="mousedown"===c?.type&&(0,v.YF)(c);(0,j.p)(s,{sync:l,preventScroll:s===Se,shouldFocus(){if(!ae.current)return!1;if(a)return!0;const t=(0,b.RS)(e);return!(t!==s&&(0,b.gR)(Se,t))}})})},[P,J,Se,je,oe,se,ae,Q]);const Ee=o.useRef(null);(0,d.g)(()=>{if(P||!Se)return void(Ee.current=null);Ee.current&&(Ee.current.cancelled=!0,Ee.current=null);const e=(0,g.R)(Se),t=(0,b.RS)(e),n=null==se.current;function o(e){if(e.open||(ge.current=function(e,t){const n=(0,r.zk)((0,b.EW)(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||((0,v.YF)(e)?"keyboard":t||"mouse"):"touches"in e?"touch":e instanceof n.MouseEvent?t||(0===e.detail?"keyboard":"mouse"):""}(e.nativeEvent,me.current)),(e.reason===k.Xn&&e.triggerElement?.hasAttribute((0,S.F)("focus-guard"))||e.reason===k.N7&&"mouseleave"===e.nativeEvent.type)&&(de.current=!0),e.reason===k.Np)if(e.nested)de.current=!1;else if((0,v.YF)(e.nativeEvent)||(0,v.Pg)(e.nativeEvent))de.current=!1;else{let e=!1;(0,g.R)(Se).createElement("div").focus({get preventScroll(){return e=!0,!1}}),de.current=!e}}return I(t),Z.on("openchange",o),()=>{Z.off("openchange",o);const i=(0,b.RS)(e),s=Ce(),a=(0,b.gR)(Y,i)||s.some(e=>e===i||(0,b.gR)(e,i))||ce&&(0,_.C)(ce.nodesRef.current,ee(),!1).some(e=>(0,b.gR)(e.context?.elements.floating,i)),c=re.current,l=ge.current,d=function(e){const o=re.current;let i="function"==typeof o?o(e):o;if(void 0===i||!1===i)return null;null===i&&(i=!0);const s=X?.isConnected?X:null,a=t?.isConnected&&"body"!==(0,r.mq)(t)?t:null;let c=n?a||s:s||a;return c||(c=z()||null),"boolean"==typeof i?c:(0,M.q)(i)||c||null}(l),u={cancelled:!1};Ee.current=u,queueMicrotask(()=>{Ee.current===u&&(Ee.current=null);const t=(n=d)?(0,y.AO)(n)?n:(0,y.Kr)(n)[0]||n:null;var n;const o=ie.current??"boolean"!=typeof c;if(!u.cancelled&&c&&!de.current&&(0,r.sb)(t)&&(o||t===i||i===e.body||a)){const e={preventScroll:!0};"keyboard"===l&&(e.focusVisible=!0),t.focus(e)}de.current=!1})}},[P,Y,Se,re,ie,se,Z,ce,X,ee,Ce]),(0,d.g)(()=>{if(!p.Fp||J||!Y)return;const e=(0,b.RS)((0,g.R)(Y));(0,r.sb)(e)&&(0,h.$u)(e)&&(0,b.gR)(Y,e)&&e.blur()},[J,Y]),(0,d.g)(()=>{if(!P&&le)return le.setFocusManagerState({modal:H,closeOnFocusOut:D,open:J,onOpenChange:t.setOpen,domReference:X}),()=>{le.setFocusManagerState(null)}},[P,le,H,J,t,D,X]),(0,d.g)(()=>{if(!P&&Se)return F(Se),()=>{queueMicrotask(N)}},[P,Se]);const Te=!P&&(!H||!ne)&&(ke||H);return(0,A.jsxs)(o.Fragment,{children:[Te&&(0,A.jsx)(m.U,{"data-type":"inside",ref:ve,onFocus:e=>{if(H){const e=je();(0,j.p)(e[e.length-1])}else if(le?.portalNode)if(de.current=!1,(0,y.Qp)(e,le.portalNode)){const e=(0,y.vF)(X);e?.focus()}else(0,M.q)(G??le.beforeOutsideRef)?.focus()}}),n,Te&&(0,A.jsx)(m.U,{"data-type":"inside",ref:ye,onFocus:e=>{if(H)(0,j.p)(je()[0]);else if(le?.portalNode)if(D&&(de.current=!0),(0,y.Qp)(e,le.portalNode)){const e=(0,y.XJ)(X);e?.focus()}else(0,M.q)(W??le.afterOutsideRef)?.focus()}})]})}},1706(e,t,n){"use strict";var o=n(1609),r=n(5795),i=n(1289),s=n(7584),a=n(1238),c=n(8583),l=n(2002),d=n(9288),u=n(2570),p=n(3540),f=n(5299),g=n(5351),m=n(4789),h=n(415),b=n(3307),v=n(1031),y=n(790);const _=o.createContext(null);const w=()=>o.useContext(_),x=(0,h.F)("portal");const k=o.forwardRef(function(e,t){const{render:n,className:h,style:k,children:S,container:j,portalOwnerRole:C,...E}=e,{node:T,nodeId:R,subtree:M}=function(e={}){const{ref:t,container:n,componentProps:s=u.t0,elementProps:a}=e,p=(0,c.B)(),f=w(),g=f?.portalNode,[m,h]=o.useState(null),[v,y]=o.useState(null),_=(0,d.K)(e=>{null!==e&&y(e)}),k=o.useRef(null);(0,l.g)(()=>{if(null===n)return void(k.current&&(k.current=null,y(null),h(null)));const e=(n&&((0,i.Ll)(n)?n:n.current))??g??document.body;null!=e?k.current!==e&&(k.current=e,y(null),h(e)):k.current&&(k.current=null,y(null),h(null))},[n,g]);const S=(0,b.o)("div",s,{ref:[t,_],props:[{id:p,[x]:""},a]}),j=m&&S?r.createPortal(S,m):null;return{node:v,nodeId:o.isValidElement(S)?S.props.id:void 0,subtree:j}}({container:j,ref:t,componentProps:e,elementProps:E}),A=o.useRef(null),P=o.useRef(null),N=o.useRef(null),I=o.useRef(null),[z,F]=o.useState(null),O=o.useRef(!1),B=z?.modal,L=z?.open,$=!!z&&!z.modal&&z.open&&!!T;o.useEffect(()=>{if(T&&!B)return(0,a.g)((0,s.q)(T,"focusin",e,!0),(0,s.q)(T,"focusout",e,!0));function e(e){T&&e.relatedTarget&&(0,f.Qp)(e)&&("focusin"===e.type?O.current&&((0,f.yV)(T),O.current=!1):((0,f.N)(T),O.current=!0))}},[T,B]),(0,l.g)(()=>{T&&!0===L&&O.current&&((0,f.yV)(T),O.current=!1)},[L,T]);const H=o.useMemo(()=>({beforeOutsideRef:A,afterOutsideRef:P,beforeInsideRef:N,afterInsideRef:I,portalNode:T,setFocusManagerState:F}),[T]);return(0,y.jsxs)(o.Fragment,{children:[M,(0,y.jsxs)(_.Provider,{value:H,children:[$&&T&&(0,y.jsx)(p.U,{"data-type":"outside",ref:A,onFocus:e=>{if((0,f.Qp)(e,T))N.current?.focus();else{const e=z?z.domReference:null,t=(0,f.XJ)(e);t?.focus()}}}),$&&T&&(0,y.jsx)("span",{role:C,"aria-owns":R,style:v.z_}),T&&r.createPortal(S,T),$&&T&&(0,y.jsx)(p.U,{"data-type":"outside",ref:P,onFocus:e=>{if((0,f.Qp)(e,T))I.current?.focus();else{const t=z?z.domReference:null,n=(0,f.vF)(t);n?.focus(),z?.closeOnFocusOut&&z?.onOpenChange(!1,(0,g.d)(m.Xn,e.nativeEvent))}}})]})]})});n.d(t,["XF",0,k,"vB",0,w])},3367(e,t,n){"use strict";n.d(t,{K:()=>a});var o=n(5489),r=n(6703),i=n(6559);const s={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class a extends o.H{constructor(e){const{syncOnly:t,nested:n,onOpenChange:o,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:(0,r.d)(),nested:n,triggerElements:i},s),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,i.Ev)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);const n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}},8536(e,t,n){"use strict";var o=n(1609);n(790);const r=o.createContext(null);const i=o.createContext(null);const s=()=>o.useContext(r)?.id||null,a=e=>{const t=o.useContext(i);return e??t};n.d(t,["R1",0,s,"cq",0,a])},4891(e,t,n){"use strict";n.d(t,{s:()=>_});var o=n(1609),r=n(7584),i=n(1238),s=n(2240),a=n(9288),c=n(3405),l=n(1289),d=n(5087),u=n(8536),p=n(5351),f=n(4789),g=n(415),m=n(9879),h=n(865),b=n(6559),v=n(612);function y(){return!1}function _(e,t={}){const{enabled:n=!0,escapeKey:_=!0,outsidePress:w=!0,outsidePressEvent:x="sloppy",referencePress:k=y,bubbles:S,externalTree:j}=t,C=e.useState("open"),E=e.useState("floatingElement"),{dataRef:T,events:R}=e.context,M=(0,u.cq)(j),A=(0,a.K)("function"==typeof w?w:()=>!1),P="function"==typeof w?A:w,N=!1!==P,I=(0,a.K)(()=>x),{escapeKey:z,outsidePress:F}={escapeKey:"boolean"==typeof(O=S)?O:O?.escapeKey??!1,outsidePress:"boolean"==typeof O?O:O?.outsidePress??!0};var O;const B=o.useRef(!1),L=o.useRef(!1),$=o.useRef(!1),H=o.useRef(!1),D=o.useRef(!1),V=o.useRef(""),W=o.useRef(null),G=(0,c.Z)(),q=(0,c.Z)(),U=(0,c.Z)(),K=(0,a.K)(()=>{q.clear(),T.current.insideReactTree=!1}),J=(0,a.K)(e=>{const t=T.current.floatingContext?.nodeId;return(M?(0,v.C)(M.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),X=(0,a.K)(t=>(0,m.F2)(t,e.select("floatingElement"))||(0,m.F2)(t,e.select("domReferenceElement"))),Y=(0,a.K)(t=>{k()&&e.setOpen(!1,(0,p.d)(f.Ui,t.nativeEvent))}),Z=(0,a.K)(t=>{if(!C||!n||!_||"Escape"!==t.key)return;const o=(0,b.O_)(t)?t.nativeEvent:t;if(D.current||o.isComposing)return;if(!z&&J("__escapeKeyBubbles"))return;const r=(0,p.d)(f.jv,o);e.setOpen(!1,r),r.isCanceled||t.preventDefault(),z||r.isPropagationAllowed||t.stopPropagation()}),Q=(0,a.K)(()=>{T.current.insideReactTree=!0,q.start(0,K)}),ee=(0,a.K)(t=>{if(!C||!n||0!==t.button)return;const o=(0,h.EW)(t.nativeEvent);(0,h.gR)(e.select("floatingElement"),o)&&(B.current||(B.current=!0,L.current=!1))}),te=(0,a.K)(e=>{C&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&B.current&&(L.current=!0)});o.useEffect(()=>{function e(e){e.open||(H.current=!1)}return R.on("openchange",e),()=>{R.off("openchange",e)}},[R]),o.useEffect(()=>K,[K]),o.useEffect(()=>{if(!C||!n)return C||(H.current=!1,D.current=!1,V.current="",W.current=null),K;T.current.__escapeKeyBubbles=z,T.current.__outsidePressBubbles=F;const t=new c.E,o=(0,s.R)(E);function a(){$.current=!0,t.start(0,()=>{$.current=!1})}function u(){B.current=!1,L.current=!1}function y(){const e=V.current,t="pen"!==e&&e?e:"mouse",n=I(),o="function"==typeof n?n():n;return"string"==typeof o?o:o[t]}function w(e){const t=T.current.floatingContext?.nodeId,n=M&&(0,v.C)(M.nodesRef.current,t).some(t=>(0,m.F2)(e,t.context?.elements.floating));return X(e)||n}function x(n){if(function(e){const t=y();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(n))return"click"===n.type||X(n)||(t.clear(),$.current=!1),void K();if(T.current.insideReactTree)return void K();const o=(0,h.EW)(n),r=`[${(0,g.F)("inert")}]`,i=(0,l.vq)(o)?o.getRootNode():null,a=Array.from(((0,l.Ng)(i)?i:(0,s.R)(e.select("floatingElement"))).querySelectorAll(r)),c=e.context.triggerElements;if(o&&(c.hasElement(o)||c.hasMatchingElement(e=>(0,h.gR)(e,o))))return;let d=(0,l.vq)(o)?o:null;for(;d&&!(0,l.eu)(d);){const e=(0,l.$4)(d);if((0,l.eu)(e)||!(0,l.vq)(e))break;d=e}if(!a.length||!(0,l.vq)(o)||(0,m.tZ)(o)||(0,h.gR)(o,e.select("floatingElement"))||!a.every(e=>!(0,h.gR)(d,e))){if((0,l.sb)(o)&&!("touches"in n)){const e=(0,l.eu)(o),t=(0,l.L9)(o),r=/auto|scroll/,i=e||r.test(t.overflowX),s=e||r.test(t.overflowY),a=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=s&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,d="rtl"===t.direction,u=c&&(d?n.offsetX<=o.offsetWidth-o.clientWidth:n.offsetX>o.clientWidth),p=a&&n.offsetY>o.clientHeight;if(u||p)return}if(!w(n)){if("intentional"===y()){if(0!==n.detail&&!(0,b.YF)(n)&&!H.current)return;if($.current)return t.clear(),void($.current=!1)}("function"!=typeof P||P(n))&&(J("__outsidePressBubbles")||(e.setOpen(!1,(0,p.d)(f.Np,n)),K()))}}}function k(t){if("sloppy"!==y()||!e.select("open")||!n||X(t))return;const o=t.touches[0];o&&(W.current={startTime:Date.now(),startX:o.clientX,startY:o.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{W.current&&(W.current.dismissOnTouchEnd=!1,W.current.dismissOnMouseDown=!1)}))}function S(e,t){const n=(0,h.EW)(e);if(!n)return;const o=(0,r.q)(n,e.type,()=>{t(e),o()})}function j(t){G.clear(),"pointerdown"===t.type&&(0===t.button&&(H.current=!0),V.current=t.pointerType),"mousedown"===t.type&&W.current&&!W.current.dismissOnMouseDown||S(t,t=>{"pointerdown"===t.type?function(t){"sloppy"===y()&&"touch"!==t.pointerType&&e.select("open")&&n&&!X(t)&&x(t)}(t):x(t)})}function R(e){if("pointercancel"===e.type&&(H.current=!1),!B.current)return;const n=L.current;u(),"intentional"===y()&&("pointercancel"!==e.type?w(e)||(n?a():("function"!=typeof P||P(e))&&(t.clear(),$.current=!0,K())):n&&a())}function A(e){if("sloppy"!==y()||!W.current||X(e))return;const t=e.touches[0];if(!t)return;const n=Math.abs(t.clientX-W.current.startX),o=Math.abs(t.clientY-W.current.startY),r=Math.sqrt(n*n+o*o);r>5&&(W.current.dismissOnTouchEnd=!0),r>10&&(x(e),G.clear(),W.current=null)}function O(e){"sloppy"===y()&&W.current&&!X(e)&&(W.current.dismissOnTouchEnd&&x(e),G.clear(),W.current=null)}const q=(0,i.g)(_&&(0,i.g)((0,r.q)(o,"keydown",Z),(0,r.q)(o,"compositionstart",function(){U.clear(),D.current=!0}),(0,r.q)(o,"compositionend",function(){D.current=!0,U.start(d.Fp?5:0,()=>{D.current=!1})})),N&&(0,i.g)((0,r.q)(o,"click",j,!0),(0,r.q)(o,"pointerdown",j,!0),(0,r.q)(o,"pointerup",R,!0),(0,r.q)(o,"pointercancel",R,!0),(0,r.q)(o,"mousedown",j,!0),(0,r.q)(o,"mouseup",R,!0),(0,r.q)(o,"touchstart",function(e){V.current="touch",S(e,k)},{capture:!0,passive:!0}),(0,r.q)(o,"touchmove",function(e){S(e,A)},{capture:!0,passive:!0}),(0,r.q)(o,"touchend",function(e){S(e,O)},{capture:!0,passive:!0})));return()=>{q(),t.clear(),u(),$.current=!1}},[T,E,_,N,P,C,n,z,F,Z,K,I,J,X,M,e,G,U]);const ne=o.useMemo(()=>({onKeyDown:Z,onPointerDown:Y,onClick:Y}),[Z,Y]),oe=o.useMemo(()=>({onKeyDown:Z,onPointerDown:te,onMouseDown:te,onClickCapture:Q,onMouseDownCapture(e){Q(),ee(e)},onPointerDownCapture(e){Q(),ee(e)},onMouseUpCapture:Q,onTouchEndCapture:Q,onTouchMoveCapture:Q}),[Z,Q,ee,te]);return o.useMemo(()=>n?{reference:ne,floating:oe,trigger:ne}:{},[n,ne,oe])}},7925(e,t,n){"use strict";n.d(t,{D:()=>i});var o=n(2002),r=n(1289);function i(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:i,floatingId:s,nested:a,onOpenChange:c}=e,l=t.useState("open"),d=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),p=c;return t.useSyncedValue("floatingId",s),(0,o.g)(()=>{const e={open:l,floatingId:s,referenceElement:d,floatingElement:u};(0,r.vq)(d)&&(e.domReferenceElement=d),i.state.positionReference===i.state.referenceElement&&(e.positionReference=d),i.update(e)},[l,s,d,u,i]),i.context.onOpenChange=p,i.context.nested=a,i}},3214(e,t,n){"use strict";n.d(t,{BF:()=>a,FP:()=>c,J9:()=>l,Zb:()=>i,du:()=>r,vB:()=>s});var o=n(1289);function r(e,t){return t<0||t>=e.length}function i(e,t){return a(e.current,{disabledIndices:t})}function s(e,t){return a(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function a(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:o,amount:r=1}={}){let i=t;do{i+=n?-r:r}while(i>=0&&i<=e.length-1&&c(e,i,o));return i}function c(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;const o=e[t];return!!o&&(!l(o)||(!!o.matches(":disabled")||!n&&(o.hasAttribute("disabled")||"true"===o.getAttribute("aria-disabled"))))}function l(e,t=(e?(0,o.L9)(e):null)){return!(!(e&&e.isConnected&&t)||function(e){return"hidden"===e.visibility||"collapse"===e.visibility}(t))&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}},7300(e,t,n){"use strict";n.d(t,["BT",0,"input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])","Ed",0,"data-base-ui-focusable"])},415(e,t,n){"use strict";function o(e){return`data-base-ui-${e}`}n.d(t,{F:()=>o})},6703(e,t,n){"use strict";function o(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}n.d(t,{d:()=>o})},9879(e,t,n){"use strict";n.d(t,{$u:()=>a,F2:()=>i,WZ:()=>c,nd:()=>l,tZ:()=>s});var o=n(1289),r=n(7300);function i(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function s(e){return e.matches("html,body")}function a(e){return(0,o.sb)(e)&&e.matches(r.BT)}function c(e){return!!e&&("combobox"===e.getAttribute("role")&&a(e))}function l(e){return e?e.hasAttribute(r.Ed)?e:e.querySelector(`[${r.Ed}]`)||e:null}},907(e,t,n){"use strict";n.d(t,{p:()=>i});var o=n(2570);let r=0;function i(e,t={}){const{preventScroll:n=!1,sync:i=!1,shouldFocus:s}=t;function a(){s&&!s()||e?.focus({preventScroll:n})}if(cancelAnimationFrame(r),i)return a(),o.tE;const c=requestAnimationFrame(a);return r=c,()=>{r===c&&(cancelAnimationFrame(c),r=0)}}},6559(e,t,n){"use strict";n.d(t,{Ev:()=>l,O_:()=>s,Pg:()=>c,YF:()=>a,jo:()=>i});var o=n(4563),r=n(8858);function i(e){e.preventDefault(),e.stopPropagation()}function s(e){return"nativeEvent"in e}function a(e){return!(""!==e.pointerType||!e.isTrusted)||(o.yA&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function c(e){return!r.I&&(!o.yA&&0===e.width&&0===e.height||"pointerdown"===e.type&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType&&(o.yA||0===e.buttons)||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function l(e){const t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},6443(e,t,n){"use strict";n.d(t,{X:()=>g});var o=n(1289),r=n(2240);const i="data-base-ui-inert";let s=new WeakMap,a=new WeakSet,c=new WeakMap,l=0;function d(e){return e?(0,o.Ng)(e)?e.host:d(e.parentNode):null}const u=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=d(t);return e.contains(n)?n:null}).filter(e=>null!=e),p=e=>{const t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},f=(e,t,n)=>{const r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{"script"!==(0,o.mq)(e)&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function g(e,t={}){const{ariaHidden:n=!1,mark:o=!0}=t;return function(e,t,n,{mark:o=!0}){const r=u(t,e),d=o?f(t,p(r),new Set(r)):[],g=[],m=[];if(n){const e=u(t,Array.from(t.querySelectorAll("[aria-live]"))),n=r.concat(e);f(t,p(n),new Set(n)).forEach(e=>{const t=e.getAttribute("aria-hidden"),n=null!==t&&"false"!==t,o=(s.get(e)||0)+1;s.set(e,o),g.push(e),1===o&&n&&a.add(e),n||e.setAttribute("aria-hidden","true")})}return o&&d.forEach(e=>{const t=(c.get(e)||0)+1;c.set(e,t),m.push(e),1===t&&e.setAttribute(i,"")}),l+=1,()=>{g.forEach(e=>{const t=(s.get(e)||0)-1;s.set(e,t),t||(a.has(e)||e.removeAttribute("aria-hidden"),a.delete(e))}),o&&m.forEach(e=>{const t=(c.get(e)||0)-1;c.set(e,t),t||e.removeAttribute(i)}),l-=1,l||(s=new WeakMap,a=new WeakSet,c=new WeakMap)}}(e,(0,r.R)(e[0]).body,n,{mark:o})}},612(e,t,n){"use strict";function o(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...o(e,t.id,n)])}function r(e,t){let n=[],o=e.find(e=>e.id===t)?.parentId;for(;o;){const t=e.find(e=>e.id===o);o=t?.parentId,t&&(n=n.concat(t))}return n}n.d(t,{$:()=>r,C:()=>o})},5299(e,t,n){"use strict";n.d(t,{AO:()=>y,Kr:()=>w,N:()=>C,Qp:()=>j,XJ:()=>S,nq:()=>_,vF:()=>k,yV:()=>E});var o=n(1289),r=n(2240),i=n(865),s=n(3214);function a(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return(0,o.Ng)(n)?n.host:null}function c(e){for(const t of Array.from(e.children))if("summary"===(0,o.mq)(t))return t;return null}function l(e,t){const n=c(t);return!!n&&(e===n||(0,i.gR)(n,e))}function d(e){const t=e?(0,o.mq)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,o.mq)(e.parentElement)&&c(e.parentElement)===e)&&("details"!==t||null==c(e))&&("input"!==t||"hidden"!==e.type)}function u(e){if(!d(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=a(t)){const n=t!==e,r="slot"===(0,o.mq)(t);if(t.hasAttribute("inert"))return!1;if(n&&"details"===(0,o.mq)(t)&&!t.open&&!l(e,t)||t.hasAttribute("hidden")||!r&&!p(t,n))return!1}return!0}function p(e,t){const n=(0,o.L9)(e);return t?"none"!==n.display:(0,s.J9)(e,n)}function f(e){const t=e.tabIndex;if(t<0){const t=(0,o.mq)(e);if("details"===t||"audio"===t||"video"===t||(0,o.sb)(e)&&e.isContentEditable)return 0}return t}function g(e){if("input"!==(0,o.mq)(e))return null;const t=e;return"radio"===t.type&&""!==t.name?t:null}function m(e,t){const n=g(e);if(!n)return!0;const o=t.find(e=>{const t=g(e);return t?.name===n.name&&t.form===n.form&&t.checked});return o?o===n:t.find(e=>{const t=g(e);return t?.name===n.name&&t.form===n.form})===n}function h(e){if((0,o.sb)(e)&&"slot"===(0,o.mq)(e)){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,o.sb)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function b(e,t){h(e).forEach(e=>{d(e)&&t.push(e),b(e,t)})}function v(e,t,n){h(e).forEach(e=>{(0,o.sb)(e)&&e.matches(t)&&n.push(e),v(e,t,n)})}function y(e){return u(e)&&f(e)>=0}function _(e){const t=[];return b(e,t),t.filter(u)}function w(e){const t=_(e);return t.filter(e=>f(e)>=0&&m(e,t))}function x(e,t){const n=w(e),o=n.length;if(0===o)return;const s=(0,i.RS)((0,r.R)(e)),a=n.indexOf(s);return n[-1===a?1===t?0:o-1:a+t]}function k(e){return x((0,r.R)(e).body,1)||e}function S(e){return x((0,r.R)(e).body,-1)||e}function j(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!(0,i.gR)(n,o)}function C(e){w(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function E(e){const t=[];v(e,"[data-tabindex]",t),t.forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}},5282(e,t,n){"use strict";n.d(t,{R:()=>s});n(1609);var o=n(9931),r=n(7312),i=n(790);function s(e){const{script:t}=e,{nonce:n}=(0,r.n)();return(0,o.i)()?(0,i.jsx)("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}},4684(e,t,n){"use strict";n.d(t,["V",0,"data-ending-style","e",0,"data-starting-style"])},9309(e,t,n){"use strict";n.d(t,{$v:()=>u,Qi:()=>d});var o=n(1289);const r="ArrowUp",i="ArrowDown",s="ArrowLeft",a="ArrowRight",c=new Set([r,i,s,a,"Home","End"]),l=["Shift","Control","Alt","Meta"];function d(e){return!(!function(e){return(0,o.sb)(e)&&"INPUT"===e.tagName}(e)||null==e.selectionStart)||!(!(0,o.sb)(e)||"TEXTAREA"!==e.tagName)}function u(e,t,n,o){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,i=e.scrollTop;const s=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(s&&"vertical"!==o){const o=p(e,t,"left"),i=f(e),s=f(t);"ltr"===n&&(o+t.offsetWidth+s.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight?r=o+t.offsetWidth+s.scrollMarginRight-e.clientWidth+i.scrollPaddingRight:o-s.scrollMarginLeft<e.scrollLeft+i.scrollPaddingLeft&&(r=o-s.scrollMarginLeft-i.scrollPaddingLeft)),"rtl"===n&&(o-s.scrollMarginLeft<e.scrollLeft+i.scrollPaddingLeft?r=o-s.scrollMarginLeft-i.scrollPaddingLeft:o+t.offsetWidth+s.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight&&(r=o+t.offsetWidth+s.scrollMarginRight-e.clientWidth+i.scrollPaddingRight))}if(a&&"horizontal"!==o){const n=p(e,t,"top"),o=f(e),r=f(t);n-r.scrollMarginTop<e.scrollTop+o.scrollPaddingTop?i=n-r.scrollMarginTop-o.scrollPaddingTop:n+t.offsetHeight+r.scrollMarginBottom>e.scrollTop+e.clientHeight-o.scrollPaddingBottom&&(i=n+t.offsetHeight+r.scrollMarginBottom-e.clientHeight+o.scrollPaddingBottom)}e.scrollTo({left:r,top:i,behavior:"auto"})}function p(e,t,n){const o="left"===n?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);)t=t.offsetParent;return r}function f(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}n.d(t,["Jd",0,i,"RJ",0,a,"eR",0,s,"il",0,r,"jF",0,c,"rT",0,l])},6791(e,t,n){"use strict";n.d(t,["h",0,"data-composite-item-active"])},1727(e,t,n){"use strict";n.d(t,{k:()=>a});var o=n(1609),r=n(8970),i=n(1265),s=n(9564);function a(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:a}=(0,i.G)(),{ref:c,index:l}=(0,s.q)(e),d=n===l,u=o.useRef(null),p=(0,r.a)(c,u);return{compositeProps:{tabIndex:d?0:-1,onFocus(){a(l)},onMouseMove(){const e=u.current;if(!t||!e)return;const n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;d||n||e.focus()}},compositeRef:p,index:l}}},1008(e,t,n){"use strict";n.d(t,{u:()=>l});var o=n(1609),r=n(1749),i=n(9288),s=n(2002),a=n(8793),c=n(790);function l(e){const{children:t,elementsRef:n,labelsRef:l,onMapChange:g}=e,m=(0,i.K)(g),[,h]=o.useState(0),b=(0,r.j)(u).current,v=(0,r.j)(d).current,y=o.useRef(0),_=o.useRef(!0),w=o.useRef(null),x=o.useRef(null),k=(0,i.K)(()=>{_.current||(_.current=!0,h(e=>e+1))}),S=(0,i.K)((e,t)=>{v.set(e,t),k()}),j=(0,i.K)(e=>{v.delete(e),k()}),C=(0,i.K)(e=>{const t=new Map;return n.current.length=0,l&&(l.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,l&&(l.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),y.current=n.current.length,t});const E=(0,i.K)(()=>{const[e,t]=function(e){const t=new Set,n=[],o=[];e.forEach((e,r)=>{if(!r.isConnected)return;const i=e.index,s={index:i??-1,element:r,registration:e};null===i?o.push(s):i>=0&&(t.add(i),n.push(s))});let r=0;o.sort((e,t)=>f(e.element,t.element)),o.forEach(e=>{for(;t.has(r);)r+=1;e.index=r,n.push(e),r+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index);return[n,o.map(e=>e.element)]}(v),n=C(e),o=w.current,r=!o||o.length!==e.length||e.some((e,t)=>{const n=o[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});!function(e){if(x.current?.disconnect(),x.current=null,"function"!=typeof MutationObserver||e.length<2)return;const t=new MutationObserver(n=>{if(!function(e){for(const t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(n))return;let o=null;for(const n of e)if(n.isConnected){if(o&&f(o,n)>0)return t.disconnect(),void k();o=n}});x.current=t;const n=new Set;for(let t=1;t<e.length;t+=1){const o=p(e[t-1],e[t]);o&&n.add(o)}n.forEach(e=>t.observe(e,{childList:!0}))}(t),w.current=e,_.current=!1,r&&(b.forEach(e=>e(n)),m(n))});(0,s.g)(()=>(!_.current&&w.current&&C(w.current),()=>{n.current=[],l&&(l.current=[])}),[n,l,C]),(0,s.g)(()=>{_.current&&E()}),(0,s.g)(()=>()=>{x.current?.disconnect(),_.current=!0},[]);const T=(0,i.K)(e=>(b.add(e),()=>{b.delete(e)})),R=o.useMemo(()=>({register:S,unregister:j,subscribeMapChange:T,nextIndexRef:y}),[S,j,T,y]);return(0,c.jsx)(a.D.Provider,{value:R,children:t})}function d(){return new Map}function u(){return new Set}function p(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function f(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}},8793(e,t,n){"use strict";n.d(t,{M:()=>i});var o=n(1609);const r=o.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function i(){return o.useContext(r)}n.d(t,["D",0,r])},9564(e,t,n){"use strict";n.d(t,{q:()=>s});var o=n(1609),r=n(2002),i=n(8793);function s(e={}){const{guess:t,label:n,metadata:s,textRef:a,index:c}=e,{register:l,unregister:d,subscribeMapChange:u,nextIndexRef:p}=(0,i.M)(),f=o.useRef(-1),[g,m]=o.useState(null==c&&t?()=>{if(-1===f.current){const e=p.current;p.current+=1,f.current=e}return f.current}:-1),h=c??g,b=o.useRef(null),v=o.useCallback(e=>{const t=b.current;t&&d(t),b.current=e,e&&l(e,{metadata:s??null,index:c??null,label:n,textRef:a})},[c,l,d,s,n,a]);return(0,r.g)(()=>{if(null==c)return u(e=>{const t=b.current?e.get(b.current)?.index:null;null!=t&&m(t)})},[c,u]),{ref:v,index:h}}},6120(e,t,n){"use strict";n.d(t,{Y:()=>u});var o=n(1609),r=n(2570),i=n(1008),s=n(5661),a=n(1265),c=n(3307),l=n(8596),d=n(790);function u(e){const{render:t,className:n,style:u,refs:p=r.Ml,props:f=r.Ml,state:g=r.t0,stateAttributesMapping:m,highlightedIndex:h,onHighlightedIndexChange:b,orientation:v,grid:y,loopFocus:_,onLoop:w,enableHomeAndEndKeys:x,onMapChange:k,stopEventPropagation:S=!0,rootRef:j,disabledIndices:C,modifierKeys:E,highlightItemOnHover:T=!1,tag:R="div",...M}=e,A=(0,l.j)(),{props:P,highlightedIndex:N,onHighlightedIndexChange:I,elementsRef:z,onMapChange:F,relayKeyboardEvent:O}=(0,s.R)({grid:y,loopFocus:_,onLoop:w,orientation:v,highlightedIndex:h,onHighlightedIndexChange:b,rootRef:j,stopEventPropagation:S,enableHomeAndEndKeys:x,direction:A,disabledIndices:C,modifierKeys:E}),B=(0,c.o)(R,e,{state:g,ref:p,props:[P,...f,M],stateAttributesMapping:m}),L=o.useMemo(()=>({highlightedIndex:N,onHighlightedIndexChange:I,highlightItemOnHover:T,relayKeyboardEvent:O}),[N,I,T,O]);return(0,d.jsx)(a.H.Provider,{value:L,children:(0,d.jsx)(i.u,{elementsRef:z,onMapChange:e=>{k?.(e),F(e)},children:B})})}},1265(e,t,n){"use strict";n.d(t,{G:()=>s});var o=n(3169),r=n(1609);const i=r.createContext(void 0);function s(e=!1){const t=r.useContext(i);if(void 0===t&&!e)throw new Error((0,o.A)(16));return t}n.d(t,["H",0,i])},5661(e,t,n){"use strict";n.d(t,{R:()=>f});var o=n(1609),r=n(6105),i=n(9288),s=n(8970),a=n(2002),c=n(2570),l=n(9309),d=n(3214),u=n(6791),p=n(865);function f(e){const{loopFocus:t=!0,orientation:n="both",grid:f,onLoop:g,direction:m,highlightedIndex:h,onHighlightedIndexChange:b,rootRef:v,enableHomeAndEndKeys:y=!1,stopEventPropagation:_,disabledIndices:w,modifierKeys:x=c.Ml}=e,[k,S]=o.useState(0),j=null!=f,C=o.useRef(null),E=(0,s.a)(C,v),T=o.useRef([]),R=o.useRef(!1),M=o.useRef(null),A=h??k,P=(0,i.K)((e,t=!1)=>{if(M.current=T.current[e]??null,(b??S)(e),t){const t=T.current[e];(0,l.$v)(C.current,t,m,n)}}),N=(0,i.K)(e=>{if(0===e.size)return;if(R.current){const e=T.current,t=e.indexOf(M.current);if(-1===t){const t=e[A];!t||(0,d.FP)(e,A,w)?P(function(e,t){let n=-1;for(let o=0;o<e.length;o+=1){const r=e[o];if(r&&!(0,d.FP)(e,o,t)){if(r.hasAttribute(u.h))return o;-1===n&&(n=o)}}return Math.max(n,0)}(e,w)):M.current=t}else t!==A&&P(t);return}R.current=!0;const t=Array.from(e.keys()),o=t.find(e=>e?.hasAttribute(u.h))??null,r=o?e.get(o)?.index??-1:-1;if(-1!==r)P(r);else if((0,d.FP)(t,A,w)){const e=(0,d.BF)(t,{disabledIndices:w});(0,d.du)(t,e)||P(e)}(0,l.$v)(C.current,o,m,n)});(0,a.g)(()=>{if(null==w||null!=h||!R.current)return;const e=T.current;if((0,d.FP)(e,A,w)){const t=(0,d.BF)(e,{disabledIndices:w});(0,d.du)(e,t)||P(t)}},[w,h,A,T,P]);const I=(0,i.K)((e,t,n)=>g?g(e,t,n,T):n),z=(0,i.K)(e=>{const o="Home"===e.key||"End"===e.key;if(!l.jF.has(e.key)||!y&&o)return;if(function(e,t){for(const n of l.rT)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,x))return;if(!C.current)return;const i="rtl"===m,s=i?l.eR:l.RJ,a=i?l.RJ:l.eR,c="vertical"===n?l.Jd:s,u="vertical"===n?l.il:a,h=(0,p.EW)(e.nativeEvent);if(null!=h&&(0,l.Qi)(h)&&!(0,r.F)(h)){const t=h.selectionStart,n=h.selectionEnd,o=h.value;if(null==t||e.shiftKey||t!==n)return;if(e.key!==u&&t<o.length)return;if(e.key!==c&&t>0)return}let b=A;const v=(0,d.Zb)(T,w),k=(0,d.vB)(T,w);null!=f&&(b=f({disabledIndices:w,elementsRef:T,event:e,highlightedIndex:A,loopFocus:t,maxIndex:k,minIndex:v,onLoop:I,orientation:n,rtl:i}));const S="vertical"!==n&&e.key===s||"horizontal"!==n&&e.key===l.Jd,E="vertical"!==n&&e.key===a||"horizontal"!==n&&e.key===l.il;y&&("Home"===e.key?b=v:"End"===e.key&&(b=k)),b===A&&(S||E)&&(t&&b===k&&S?(b=v,g&&(b=g(e,A,b,T))):t&&b===v&&E?(b=k,g&&(b=g(e,A,b,T))):b=(0,d.BF)(T.current,{startingIndex:b,decrement:E,disabledIndices:w})),b===A||(0,d.du)(T.current,b)||(_&&e.stopPropagation(),(j||o||S||E)&&e.preventDefault(),P(b,!0),queueMicrotask(()=>{T.current[b]?.focus()}))});return{props:{ref:E,onFocus(e){const t=C.current,n=(0,p.EW)(e.nativeEvent);t&&null!=n&&(0,l.Qi)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:z},highlightedIndex:A,onHighlightedIndexChange:P,elementsRef:T,onMapChange:N,relayKeyboardEvent:z}}},1031(e,t,n){"use strict";n.d(t,["Kd",0,"data-base-ui-click-trigger","z_",0,{clipPath:"inset(50%)",position:"fixed",top:0,left:0}])},5351(e,t,n){"use strict";n.d(t,{d:()=>r});var o=n(2570);function r(e,t,n,r){let i=!1,s=!1;const a=r??o.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...a}}},7312(e,t,n){"use strict";n.d(t,{n:()=>s});var o=n(1609);const r=o.createContext(void 0);const i={disableStyleElements:!1};function s(){return o.useContext(r)??i}},8596(e,t,n){"use strict";n.d(t,{j:()=>i});var o=n(1609);const r=o.createContext(void 0);function i(){const e=o.useContext(r);return e?.direction??"ltr"}n.d(t,["l",0,r])},266(e,t,n){"use strict";function o(e,t){const n={};for(const o in e){const r=e[o];if(t?.hasOwnProperty(o)){const e=t[o](r);null!=e&&Object.assign(n,e);continue}!0===r?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}n.d(t,{v:()=>o})},4789(e,t,n){"use strict";n.d(t,["N7",0,"trigger-hover","Np",0,"outside-press","SR",0,"close-press","Ui",0,"trigger-press","Vh",0,"initial","Xn",0,"focus-out","c",0,"missing","jv",0,"escape-key","r9",0,"disabled","zJ",0,"imperative-action"])},4466(e,t,n){"use strict";var o=n(4684);const r={[o.e]:""},i={[o.V]:""},s={transitionStatus:e=>"starting"===e?r:"ending"===e?i:null};n.d(t,["G",0,s])},8762(e,t,n){"use strict";n.d(t,{s:()=>u});var o=n(1609),r=n(1289),i=n(9288),s=n(2002),a=n(5339),c=n(1265),l=n(6200),d=n(2095);function u(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:u=0,native:f=!0,composite:g}=e,m=o.useRef(null),h=(0,c.G)(!0),b=g??void 0!==h,{props:v}=(0,l.S)({focusableWhenDisabled:n,disabled:t,composite:b,tabIndex:u,isNativeButton:f});const y=o.useCallback(()=>{const e=m.current;p(e)&&b&&t&&void 0===v.disabled&&e.disabled&&(e.disabled=!1)},[t,v.disabled,b]);(0,s.g)(y,[y]);return{getButtonProps:o.useCallback((e={})=>{const{onClick:n,onMouseDown:o,onKeyUp:i,onKeyDown:s,onPointerDown:c,...l}=e;return(0,a.v6)({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||o?.(e)},onKeyDown(e){if(t)return;if((0,a.PT)(e),s?.(e),e.baseUIHandlerPrevented)return;const n=e.target===e.currentTarget,o=e.currentTarget,i=p(o),c=!f&&(l=o,(0,r.sb)(l)&&"A"===l.tagName&&Boolean(l.href));var l;const u=n&&(f?i:!c),g="Enter"===e.key,m=" "===e.key,h=o.getAttribute("role"),v=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(n&&b&&m){if(e.defaultPrevented&&v)return;return e.preventDefault(),void(f&&!i||(e.preventBaseUIHandler(),(0,d.B)(o,e)))}u&&!f&&(m||g)?e.defaultPrevented||(e.preventDefault(),g&&(e.preventBaseUIHandler(),(0,d.B)(o,e))):n&&c&&m&&e.preventDefault()},onKeyUp(e){t||((0,a.PT)(e),i?.(e),e.target===e.currentTarget&&f&&b&&p(e.currentTarget)&&" "===e.key?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||f||b||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),(0,d.B)(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():c?.(e)}},f?{type:"button"}:{role:"button"},v,l)},[t,v,b,f]),buttonRef:(0,i.K)(e=>{m.current=e,y()})}}function p(e){return(0,r.sb)(e)&&"BUTTON"===e.tagName}},3266(e,t,n){"use strict";n.d(t,{V:()=>u});var o=n(5795),r=n(4541),i=n(9288),s=n(2570),a=n(7304),c=n(1049),l=n(4684);let d=null;function u(e,t=!1,n=!1){const u=(0,r.NR)();return(0,i.K)((r,i=null)=>{u.cancel();const p=(0,a.q)(e);if(null==p)return;const f=p,g=()=>{n?function(e){if(!d){const e=[];d=e,queueMicrotask(()=>{d=null,o.flushSync(()=>{for(const t of e)t()})})}d.push(e)}(()=>{i?.aborted||r()}):o.flushSync(r)};if("function"!=typeof f.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)r();else{if(t){const e=l.e;if(!f.hasAttribute(e))return void u.request(m);const t=new MutationObserver(()=>{f.hasAttribute(e)||(t.disconnect(),m())});return t.observe(f,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}u.request(m)}function m(){Promise.all((0,c.h)(f).map(e=>e.finished.then(s.tE))).then(()=>{i?.aborted||g()},()=>{if(i?.aborted)return;(0,c.h)(f).some(e=>e.pending||"finished"!==e.playState)?m():g()})}})}},8659(e,t,n){"use strict";n.d(t,{e:()=>r});var o=n(8583);function r(e){return(0,o.B)(e,"base-ui")}},3244(e,t,n){"use strict";n.d(t,{v:()=>s});var o=n(1609),r=n(9288),i=n(3266);function s(e){const{enabled:t=!0,open:n,ref:s,batch:a=!1,onComplete:c}=e,l=(0,r.K)(c),d=(0,i.V)(s,n,a);o.useEffect(()=>{if(!t)return;const e=new AbortController;return d(l,e.signal),()=>{e.abort()}},[t,n,l,d])}},3307(e,t,n){"use strict";n.d(t,{o:()=>p});var o=n(1609),r=n(8970),i=n(8641),s=n(71),a=n(2570),c=n(266),l=n(3850),d=n(1044),u=n(5339);function p(e,t,n={}){let p=t.render;!1!==n.enabled&&(p=function(e){if(e?.$$typeof!==f)return e;const t=o.Children.toArray(e)[0];return o.isValidElement(t)?t:e}(p));const g=function(e,t,n){const{className:o,style:p}=e,{state:f=a.t0,ref:g,props:m,stateAttributesMapping:h,enabled:b=!0}=t,v=b?(0,l.S)(o,f):void 0,y=b?(0,d.m)(p,f):void 0,_=b?(0,c.v)(f,h):a.t0,w=b&&m?function(e){if(Array.isArray(e))return(0,u.lZ)(e);return(0,u.v6)(void 0,e)}(m):void 0,x=b?(0,s.r)(_,w)??{}:a.t0;"undefined"!=typeof document&&(b?Array.isArray(g)?x.ref=(0,r.U)([x.ref,(0,i.v)(n),...g]):x.ref=(0,r.a)(x.ref,(0,i.v)(n),g):(0,r.a)(null,null));if(!b)return a.t0;void 0!==v&&(x.className=(0,u.VN)(x.className,v));void 0!==y&&(x.style=(0,s.r)(x.style,y));return x}(t,n,p);if(!1===n.enabled)return null;return function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);const e=(0,u.v6)(n,t.props);return e.ref=n.ref,o.cloneElement(t,e)}return function(e,t){if("button"===e)return(0,o.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,o.createElement)("img",{alt:"",...t,key:t.key});return o.createElement(e,t)}(e,n)}(e,p,g,n.state??a.t0)}const f=Symbol.for("react.lazy")},9522(e,t,n){"use strict";n.d(t,{$:()=>s});var o=n(1609),r=n(2002),i=n(4541);function s(e,t=!1,n=!1,s=!1){const[a,c]=o.useState(e&&t?"idle":void 0),[l,d]=o.useState(e&&!s);return e&&!l&&(d(!0),c("starting")),e||!l||"ending"===a||n||c("ending"),e||l||"ending"!==a||c(void 0),(0,r.g)(()=>{if(!e&&l&&"ending"!==a&&n){const e=i.KP.request(()=>{c("ending")});return()=>{i.KP.cancel(e)}}},[e,l,a,n]),(0,r.g)(()=>{if(!e||t||void 0===a)return;const n=i.KP.request(()=>{c(void 0)});return()=>{i.KP.cancel(n)}},[t,e,a]),(0,r.g)(()=>{if(!e||!t)return;e&&l&&"idle"!==a&&c("starting");const n=i.KP.request(()=>{c("idle")});return()=>{i.KP.cancel(n)}},[t,e,l,a]),{mounted:l,setMounted:d,transitionStatus:a}}},6429(e,t,n){"use strict";n.d(t,{Y:()=>l});var o=n(1609),r=n(9288),i=n(2002),s=n(3784),a=n(9522),c=n(3244);function l(e){const{open:t,ref:n,preventUnmountOnClose:l,setPreventUnmountOnClose:d,onUnmount:u,animateInitialOpen:p}=e,f=(0,r.K)(d),{mounted:g,setMounted:m,transitionStatus:h}=(0,a.$)(t,!1,!1,p),b=!t&&l;(0,i.g)(()=>{t&&f(!1)},[t,f]);const v=o.useRef(g),y=o.useRef(!1),_=(0,s.g)(),w=()=>{v.current=!1,m(!1),u()};(0,i.g)(()=>{v.current=g,y.current&&(y.current=!1,!t&&g&&w())});const x=(0,r.K)(()=>{if(v.current)return t?(y.current=!0,void _()):void w()});return(0,c.v)({enabled:g&&!t&&!b,open:t,ref:n,onComplete(){t||x()}}),{mounted:g,transitionStatus:h,preventUnmountingOnClose:b,forceUnmount:x}}},5339(e,t,n){"use strict";n.d(t,{PT:()=>f,VN:()=>g,lZ:()=>s,v6:()=>i});var o=n(71);const r={};function i(e,t,n,o,r){if(!(n||o||r||e))return a(t);let i=a(e);return t&&(i=c(i,t)),n&&(i=c(i,n)),o&&(i=c(i,o)),r&&(i=c(i,r)),i}function s(e){if(0===e.length)return r;if(1===e.length)return a(e[0]);let t=a(e[0]);for(let n=1;n<e.length;n+=1)t=c(t,e[n]);return t}function a(e){return d(e)?{...e(r)}:function(e){const t={...e};for(const e in t){const n=t[e];l(e,n)&&(t[e]=p(n))}return t}(e)}function c(e,t){return d(t)?t(e):function(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":e[n]=(0,o.r)(e.style,r);break;case"className":e[n]=g(e.className,r);break;default:l(n,r)?e[n]=u(e[n],r):e[n]=r}}return e}(e,t)}function l(e,t){const n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return 111===n&&110===o&&r>=65&&r<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function u(e,t){return t?e?(...n)=>{const o=n[0];if(m(o)){const r=o;f(r);const i=t(...n);return r.baseUIHandlerPrevented||e?.(...n),i}const r=t(...n);return e?.(...n),r}:p(t):e}function p(e){return e?(...t)=>{const n=t[0];return m(n)&&f(n),e(...t)}:e}function f(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function g(e,t){return t?e?t+" "+e:t:e}function m(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},271(e,t,n){"use strict";var o=n(1609),r=n(3307),i=n(9764),s=n(1544);const a=o.forwardRef(function(e,t){const{render:n,className:o,style:a,...c}=e,{percentageValue:l,state:d}=(0,i.A)(),u=null==l?{}:{insetInlineStart:0,height:"inherit",width:`${l}%`};return(0,r.o)("div",e,{state:d,ref:t,props:[{style:u},c],stateAttributesMapping:s.I})});n.d(t,["Z",0,a])},403(e,t,n){"use strict";var o=n(1609),r=n(3307),i=n(7001),s=n(9764),a=n(1544);const c=o.forwardRef(function(e,t){const{render:n,className:o,style:c,id:l,...d}=e,{setLabelId:u,state:p}=(0,s.A)(),f=(0,i.v)(l,u);return(0,r.o)("span",e,{state:p,ref:t,props:[{id:f,role:"presentation"},d],stateAttributesMapping:a.I})});n.d(t,["u",0,c])},2803(e,t,n){"use strict";var o=n(1609),r=n(9398),i=n(8805),s=n(9156),a=n(3260),c=n(3307),l=n(9764),d=n(1544),u=n(790);const p=o.forwardRef(function(e,t){const{format:n,getAriaValueText:p,locale:f,max:g=100,min:m=0,value:h,render:b,className:v,children:y,style:_,...w}=e,[x,k]=o.useState();let S="indeterminate",j=null,C=null,E="",T="indeterminate progress";if(null!=h&&Number.isFinite(h)){const e=(0,a.w)(h,m,g);j=(0,s.q)(Number.isNaN(e)?0:e,0,100),C=(0,s.q)(h,m,g),S=C===g?"complete":"progressing",E=n?(0,i.Z)(C,f,n):(0,i.Z)(j/100,f,{style:"percent"}),T=E}const R=o.useMemo(()=>({status:S}),[S]),M={"aria-labelledby":x,"aria-valuemax":g,"aria-valuemin":m,"aria-valuenow":C??void 0,"aria-valuetext":p?p(E,h):T,role:"progressbar",children:(0,u.jsxs)(o.Fragment,{children:[y,(0,u.jsx)("span",{role:"presentation",style:r.Q,children:"x"})]})},A=o.useMemo(()=>({formattedValue:E,percentageValue:j,setLabelId:k,state:R,value:h}),[E,j,k,R,h]),P=(0,c.o)("div",e,{state:R,ref:t,props:[M,w],stateAttributesMapping:d.I});return(0,u.jsx)(l.r.Provider,{value:A,children:P})});n.d(t,["w",0,p])},9764(e,t,n){"use strict";n.d(t,{A:()=>s});var o=n(3169),r=n(1609);const i=r.createContext(void 0);function s(){const e=r.useContext(i);if(void 0===e)throw new Error((0,o.A)(51));return e}n.d(t,["r",0,i])},6448(e,t,n){"use strict";n.d(t,["My",0,"data-complete","OP",0,"data-progressing","wd",0,"data-indeterminate"])},1544(e,t,n){"use strict";var o=n(6448);const r={status:e=>"progressing"===e?{[o.OP]:""}:"complete"===e?{[o.My]:""}:"indeterminate"===e?{[o.wd]:""}:null};n.d(t,["I",0,r])},4099(e,t,n){"use strict";var o=n(1609),r=n(3307),i=n(9764),s=n(1544);const a=o.forwardRef(function(e,t){const{render:n,className:o,style:a,...c}=e,{state:l}=(0,i.A)();return(0,r.o)("div",e,{state:l,ref:t,props:c,stateAttributesMapping:s.I})});n.d(t,["X",0,a])},2453(e,t,n){"use strict";var o,r=n(1609),i=n(1289),s=n(3784),a=n(5282),c=n(3307),l=n(9057),d=n(1493),u=n(7888),p=n(4181),f=n(9644),g=n(4144),m=n(790);const h={...p.h,activeTabPosition:()=>null,activeTabSize:()=>null},b=r.forwardRef(function(e,t){const{className:n,render:p,renderBeforeHydration:b=!1,style:_,...w}=e,{getTabElementBySelectedValue:x,orientation:k,tabActivationDirection:S,value:j}=(0,u.z)(),{tabsListElement:C,registerIndicatorUpdateListener:E}=(0,f.b)(),T=(0,s.g)();r.useEffect(()=>E(T),[E,T]);let R=0,M=0,A=0,P=0,N=0,I=0,z=!1;if(null!=j&&null!=C){const e=x(j);if(null!=e){z=!0;const{width:t,height:n}=(0,l.r)(e),{width:o,height:r}=(0,l.r)(C),s=e.getBoundingClientRect(),a=C.getBoundingClientRect(),c=o>0?a.width/o:1,u=r>0?a.height/r:1,p=function(e,t){const n=v(e),o=v(t);let r=n.left-o.left-t.clientLeft,s=n.top-o.top-t.clientTop,a=(0,i.$4)(e);for(;(0,i.sb)(a)&&a!==t&&!(0,i.eu)(a);)r-=a.scrollLeft,s-=a.scrollTop,a=(0,i.$4)(a);return{left:r,top:s}}(e,C);R=p.left,A=p.top;const f=(s.left-a.left)/c+C.scrollLeft-C.clientLeft,g=(s.top-a.top)/u+C.scrollTop-C.clientTop,m=function(e){const t=(0,i.zk)(e).getComputedStyle(e),{x:n,y:o}=(0,d.Z)(e,t);let r=n,s=o;const{translate:a}=t;if(a&&"none"!==a){const t=a.split(" ");r+=y(t[0],e.offsetWidth),s+=y(t[1],e.offsetHeight)}return{x:r,y:s}}(e);Math.abs(f-m.x-R)<=2&&Math.abs(g-m.y-A)<=2&&(R=f,A=g),N=t,I=n,M=C.scrollWidth-R-N,P=C.scrollHeight-A-I}}const F=z?{left:R,right:M,top:A,bottom:P}:null,O=z?{width:N,height:I}:null,B=z?{[g.vU]:`${R}px`,[g.q2]:`${M}px`,[g.Jy]:`${A}px`,[g.tw]:`${P}px`,[g.Kd]:`${N}px`,[g.hW]:`${I}px`}:void 0,L=z&&N>0&&I>0,$={orientation:k,activeTabPosition:F,activeTabSize:O,tabActivationDirection:S},H=(0,c.o)("span",e,{state:$,ref:t,props:[{role:"presentation",style:B,hidden:!L},w,{suppressHydrationWarning:!0}],stateAttributesMapping:h});return null==j?null:(0,m.jsxs)(r.Fragment,{children:[H,b&&(o||(o=(0,m.jsx)(a.R,{script:""})))]})});function v(e){let t=0,n=0,o=e;for(;null!=o;){t+=o.offsetLeft,n+=o.offsetTop;const e=o.offsetParent;null!=e&&(t+=e.clientLeft,n+=e.clientTop),o=e}return{left:t,top:n}}function y(e,t){if(!e)return 0;const n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}n.d(t,["E",0,b])},4144(e,t,n){"use strict";n.d(t,["Jy",0,"--active-tab-top","Kd",0,"--active-tab-width","hW",0,"--active-tab-height","q2",0,"--active-tab-right","tw",0,"--active-tab-bottom","vU",0,"--active-tab-left"])},6299(e,t,n){"use strict";var o=n(1609),r=n(9288),i=n(2002),s=n(2570),a=n(6120),c=n(4181),l=n(7888),d=n(9644),u=n(790);const p=o.forwardRef(function(e,t){const{activateOnFocus:n=!1,className:p,loopFocus:f=!0,render:g,style:m,...h}=e,{orientation:b,setTabMap:v,tabActivationDirection:y}=(0,l.z)(),[_,w]=o.useState(0),[x,k]=o.useState(null),S=o.useRef(new Set),j=o.useRef(new Set),C=o.useRef(null);(0,i.g)(()=>{if("undefined"==typeof ResizeObserver)return;const e=new ResizeObserver(()=>{S.current.forEach(e=>{e()})});return C.current=e,x&&e.observe(x),j.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),C.current=null}},[x]);const E=(0,r.K)(e=>(S.current.add(e),()=>{S.current.delete(e)})),T=(0,r.K)(e=>(j.current.add(e),C.current?.observe(e),()=>{j.current.delete(e),C.current?.unobserve(e)})),R={orientation:b,tabActivationDirection:y},M={"aria-orientation":"vertical"===b?"vertical":void 0,role:"tablist"},A=o.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:E,registerTabResizeObserverElement:T,tabsListElement:x}),[n,E,T,x]);return(0,u.jsx)(d.O.Provider,{value:A,children:(0,u.jsx)(a.Y,{render:g,className:p,style:m,state:R,refs:[t,k],props:[M,h],stateAttributesMapping:c.h,highlightedIndex:_,enableHomeAndEndKeys:!0,loopFocus:f,orientation:b,onHighlightedIndexChange:w,onMapChange:v,disabledIndices:s.Ml})})});n.d(t,["j",0,p])},9644(e,t,n){"use strict";n.d(t,{b:()=>s});var o=n(3169),r=n(1609);const i=r.createContext(void 0);function s(){const e=r.useContext(i);if(void 0===e)throw new Error((0,o.A)(65));return e}n.d(t,["O",0,i])},8021(e,t,n){"use strict";var o=n(1609),r=n(2272),i=n(2002),s=n(8659),a=n(4466),c=n(3244),l=n(9522),d=n(3307),u=n(9564),p=n(4181),f=n(7888),g=n(4342);const m={...p.h,...a.G},h=o.forwardRef(function(e,t){const{className:n,value:a,render:p,keepMounted:h=!1,style:b,...v}=e,{value:y,getTabIdByPanelValue:_,orientation:w,tabActivationDirection:x,registerMountedTabPanel:k}=(0,f.z)(),S=(0,s.e)(),{ref:j,index:C}=(0,u.q)(),E=a===y,{mounted:T,transitionStatus:R,setMounted:M}=(0,l.$)(E),A=!T,P=_(a),N={hidden:A,orientation:w,tabActivationDirection:x,transitionStatus:R},I=o.useRef(null),z=(0,d.o)("div",e,{state:N,ref:[t,j,I],props:[{"aria-labelledby":P,hidden:A,id:S,role:"tabpanel",tabIndex:E?0:-1,inert:(0,r.Y)(!E),[g.Pe]:C},v],stateAttributesMapping:m});(0,c.v)({open:E,ref:I,onComplete(){E||M(!1)}}),(0,i.g)(()=>{if(null!=S&&(!A||h))return k(a,S)},[A,h,a,S,k]);return h||T?z:null});n.d(t,["R",0,h])},4342(e,t,n){"use strict";var o=n(4684);o.e,o.V;n.d(t,["Pe",0,"data-index"])},7231(e,t,n){"use strict";var o=n(1609),r=n(8922),i=n(2002),s=n(9288),a=n(3307),c=n(1008),l=n(7888),d=n(4181),u=n(5351),p=n(4789),f=n(790);const g=o.forwardRef(function(e,t){const{className:n,defaultValue:g=0,onValueChange:b,orientation:v="horizontal",render:y,value:_,style:w,...x}=e,k=void 0!==e.defaultValue,S=o.useRef([]),[j,C]=o.useState(()=>new Map),[E,T]=(0,r.q)({controlled:_,default:g,name:"Tabs",state:"value"}),R=void 0!==_,[M,A]=o.useState(()=>new Map),P=o.useRef(void 0),N=o.useCallback(e=>m(M,e),[M]),[I,z]=o.useState(()=>({previousValue:E,tabActivationDirection:"none"})),{previousValue:F,tabActivationDirection:O}=I;let B=O,L=!1;F!==E&&(B=h(F,E,v,M),L=null!=F&&null!=E&&null==N(E));const $=L?F:E,H=F!==$||O!==B;(0,i.g)(()=>{H&&z({previousValue:$,tabActivationDirection:B})},[$,H,B]);const D=(0,s.K)((e,t)=>{const n=h(E,e,v,M);t.activationDirection=n,b?.(e,t),t.isCanceled||T(()=>e)}),V=(0,s.K)((e,t)=>{b?.(e,(0,u.d)(t,void 0,void 0,{activationDirection:"none"}))}),W=(0,s.K)((e,t)=>(C(n=>{const o=new Map(n);return o.set(e,t),o}),()=>{C(n=>{if(n.get(e)!==t)return n;const o=new Map(n);return o.delete(e),o})})),G=o.useCallback(e=>j.get(e),[j]),q=o.useCallback(e=>{for(const t of M.values())if(e===t.value)return t.id},[M]),U=o.useMemo(()=>({getTabElementBySelectedValue:N,getTabIdByPanelValue:q,getTabPanelIdByValue:G,onValueChange:D,orientation:v,registerMountedTabPanel:W,setTabMap:A,tabActivationDirection:B,value:E}),[N,q,G,D,v,W,A,B,E]),K=o.useMemo(()=>{for(const e of M.values())if(e.value===E)return e},[M,E]),J=o.useMemo(()=>{for(const e of M.values())if(!e.disabled)return e.value},[M]),X=o.useRef(!k),Y=o.useRef(g),Z=o.useRef(k),Q=o.useRef(!1);(0,i.g)(()=>{if(R)return;function e(e,t){T(()=>e),z({previousValue:e,tabActivationDirection:"none"}),V(e,t),X.current=!1}if(0===M.size)return void(Q.current&&null!==E&&!P.current?.isConnected&&e(null,p.c));Q.current=!0,P.current=M.keys().next().value;const t=K?.disabled,n=null==K&&null!==E;if(t||E!==Y.current||(Z.current=!1),Z.current&&t&&E===Y.current)return;const o=X.current;if(t||n){const n=J??null;if(E===n)return void(X.current=!1);let r=p.c;return o?r=p.Vh:t&&(r=p.r9),void e(n,r)}o&&null!=K&&(V(E,p.Vh),X.current=!1)},[J,R,V,K,T,M,E]);const ee={orientation:v,tabActivationDirection:B},te=(0,a.o)("div",e,{state:ee,ref:t,props:x,stateAttributesMapping:d.h});return(0,f.jsx)(l.G.Provider,{value:U,children:(0,f.jsx)(c.u,{elementsRef:S,children:te})})});function m(e,t){for(const[n,o]of e.entries())if(t===o.value)return n;return null}function h(e,t,n,o){if(null==e||null==t)return"none";const[r,i,s]="horizontal"===n?["left","left","right"]:["top","up","down"],a=m(o,e),c=m(o,t);if(null==a||null==c)return a===c||"number"!=typeof e&&"string"!=typeof e||typeof e!=typeof t?"none":t>e?s:i;const l=a.getBoundingClientRect()[r],d=c.getBoundingClientRect()[r];return d<l?i:d>l?s:"none"}n.d(t,["p",0,g])},7888(e,t,n){"use strict";n.d(t,{z:()=>s});var o=n(3169),r=n(1609);const i=r.createContext(void 0);function s(){const e=r.useContext(i);if(void 0===e)throw new Error((0,o.A)(64));return e}n.d(t,["G",0,i])},6676(e,t,n){"use strict";n.d(t,["G",0,"data-activation-direction"])},4181(e,t,n){"use strict";var o=n(6676);const r={tabActivationDirection:e=>({[o.G]:e})};n.d(t,["h",0,r])},8077(e,t,n){"use strict";var o=n(1609),r=n(2240),i=n(2002),s=n(9288),a=n(8659),c=n(3307),l=n(8762),d=n(6791),u=n(1727),p=n(1265),f=n(7888),g=n(4181),m=n(9644),h=n(5351),b=n(865);const v=o.forwardRef(function(e,t){const{className:n,disabled:v=!1,render:y,value:_,id:w,nativeButton:x=!0,style:k,...S}=e,{value:j,getTabPanelIdByValue:C,onValueChange:E,orientation:T,tabActivationDirection:R}=(0,f.z)(),{activateOnFocus:M,registerTabResizeObserverElement:A,tabsListElement:P}=(0,m.b)(),{highlightedIndex:N,onHighlightedIndexChange:I}=(0,p.G)(),z=(0,a.e)(w),F=o.useMemo(()=>({disabled:v,id:z,value:_}),[v,z,_]),{compositeProps:O,compositeRef:B,index:L}=(0,u.k)({metadata:F}),$=_===j,H=o.useRef(!1),D=o.useRef(null),V=(0,s.K)(e=>{D.current?.(),D.current=e?A(e):null});(0,i.g)(()=>{if(H.current)return void(H.current=!1);if(!($&&L>-1&&N!==L))return;const e=P;if(null!=e){const t=(0,b.RS)((0,r.R)(e));if(t&&(0,b.gR)(e,t))return}v||I(L)},[$,L,N,I,v,P]);const{getButtonProps:W,buttonRef:G}=(0,l.s)({disabled:v,native:x,focusableWhenDisabled:!0}),q=C(_),U=o.useRef(!1),K=o.useRef(!1);function J(e){E(_,(0,h.d)("none",e.nativeEvent,void 0,{activationDirection:"none"}))}const X={disabled:v,active:$,orientation:T,tabActivationDirection:R};return(0,c.o)("button",e,{state:X,ref:[t,G,B,V],props:[O,{role:"tab","aria-controls":q,"aria-selected":$,id:z,onClick:function(e){$||v||J(e)},onFocus:function(e){$||v||!M||U.current&&!K.current||J(e)},onPointerDown:function(e){if($||v)return;U.current=!0,K.current=0===e.button;const t=(0,r.R)(e.currentTarget);function n(){U.current=!1,K.current=!1,t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",n)}t.addEventListener("pointerup",n),t.addEventListener("pointercancel",n)},[d.h]:$?"":void 0,onKeyDownCapture(){H.current=!0}},S,W],stateAttributesMapping:g.h})});n.d(t,["M",0,v])},899(e,t,n){"use strict";n.d(t,{C:()=>r});var o=n(3307);function r(e){return(0,o.o)(e.defaultTagName??"div",e,e)}},5849(e,t,n){"use strict";var o=n(4684);const r=o.e,i=o.V;n.d(t,["$h",0,"data-closed","VJ",0,i,"ep",0,r,"ho",0,"data-open","ii",0,"data-anchor-hidden"])},7571(e,t,n){"use strict";n.d(t,["L",0,"data-popup-open","V",0,"data-pressed"])},3540(e,t,n){"use strict";var o=n(1609),r=n(2002),i=n(7547),s=n(5087),a=n(9398),c=n(790);const l=o.forwardRef(function(e,t){const[n,l]=o.useState();(0,r.g)(()=>{i.N&&s.Fp&&l("button")},[]);const d={tabIndex:0,role:n};return(0,c.jsx)("span",{...e,ref:t,style:a.Q,"aria-hidden":!n||void 0,...d,"data-base-ui-focus-guard":""})});n.d(t,["U",0,l])},2710(e,t,n){"use strict";var o=n(1609),r=n(790);const i=o.forwardRef(function(e,t){const{cutout:n,...o}=e;let i;if(n){const e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,r.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});n.d(t,["W",0,i])},2095(e,t,n){"use strict";n.d(t,{B:()=>r});var o=n(1289);function r(e,t,{detail:n=0,pointerType:r=""}={}){e.dispatchEvent(new((0,o.zk)(e).PointerEvent)("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}},9057(e,t,n){"use strict";n.d(t,{r:()=>i});var o=n(9175),r=n(1289);function i(e){const t=(0,r.L9)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=(0,r.sb)(e),a=s?e.offsetWidth:n,c=s?e.offsetHeight:i;return((0,o.LI)(n)!==a||(0,o.LI)(i)!==c)&&(n=a,i=c),{width:n,height:i}}},1493(e,t,n){"use strict";n.d(t,{Z:()=>r});var o=n(1289);function r(e,t){const n=(t??(0,o.zk)(e).getComputedStyle(e)).transform;let r=0,i=0,s=1;if(n&&"none"!==n){const e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){const t=e[1].split(", ").map(parseFloat);6===t.length?(r=t[4],i=t[5],s=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(r=t[12],i=t[13],s=t[0])}}return{x:r,y:i,scale:s}}},1049(e,t,n){"use strict";function o(e,t){return e.getAnimations(t).filter(e=>{const t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}n.d(t,{h:()=>o})},9624(e,t,n){"use strict";var o=n(4466),r=n(5849),i=n(7571);i.L,i.L,i.V;const s={[r.ho]:""},a={[r.$h]:""},c={[r.ii]:""},l={open:e=>e?s:a,anchorHidden:e=>e?c:null},d={...l,...o.G};n.d(t,["GW",0,l,"LM",0,d])},1223(e,t,n){"use strict";n.d(t,{Ae:()=>h,UM:()=>g,cQ:()=>b,i6:()=>_,l$:()=>y,tr:()=>v,xp:()=>m,xs:()=>w});var o=n(1609),r=(n(5795),n(2570)),i=n(8583),s=n(2002),a=n(1749),c=n(7300),l=n(8536),d=n(7925),u=n(6429),p=n(5351);const f={tabIndex:-1,[c.Ed]:""};function g(e){return t=>"touch"!==t||e.current}function m(e,t=!1){const n=(0,i.B)(),o=null!=(0,l.R1)(),r=(0,a.j)(()=>e(n,o)).current;return(0,d.D)({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:o,onOpenChange:r.setOpen}),r}function h({handle:e,store:t}){return(0,s.g)(()=>e.attachStore(t),[e,t]),null}function b(e,t,n,o=!1){let r=e.preventUnmountingOnClose;t?r=!1:o&&(r=!0);const i=n?.id??null;let s=e.activeTriggerId,a=e.activeTriggerElement;return(i||t)&&(s=i,a=n??null),{open:t,preventUnmountingOnClose:r,activeTriggerId:s,activeTriggerElement:a,openedWithoutTrigger:t?null==n:e.openedWithoutTrigger}}function v(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,r=o.useRef(null),i=e.useState("open"),a=e.useState("triggerCount"),c=e.useState("activeTriggerId"),l=e.useState("activeTriggerElement");(0,s.g)(()=>{if(!i)return r.current=null,0!==e.state.triggerCount&&e.set("triggerCount",0),void(e.state.openedWithoutTrigger&&e.set("openedWithoutTrigger",!1));const t=e.context.triggerElements.size,o={};e.state.triggerCount!==t&&(o.triggerCount=t);const s=e.select("activeTriggerId");let a=null;if(s){const t=e.context.triggerElements.getById(s);if(t)r.current=s,t!==e.state.activeTriggerElement&&(o.activeTriggerElement=t);else{for(const[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){o.activeTriggerId=t,o.activeTriggerElement=n,r.current=t;break}void 0===o.activeTriggerId&&(r.current===s?a=s:r.current=null)}}else r.current=null;if(!a&&!s&&!e.state.openedWithoutTrigger&&1===t){const t=e.context.triggerElements.entries().next();if(!t.done){const[e,n]=t.value;o.activeTriggerId=e,o.activeTriggerElement=n,r.current=e}}void 0===o.triggerCount&&void 0===o.activeTriggerId&&void 0===o.activeTriggerElement||e.update(o),a&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===a&&!e.context.triggerElements.getById(a)){const t=(0,p.d)("none");e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,c,l,n])}function y(e,t,n,o){const{mounted:r,transitionStatus:i,forceUnmount:s}=(0,u.Y)({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState("preventUnmountingOnClose"),setPreventUnmountOnClose:e=>t.set("preventUnmountingOnClose",e),animateInitialOpen:o,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return(0,a.j)(()=>(t.set("mounted",r),null)),t.useSyncedValues({mounted:r,transitionStatus:i}),{forceUnmount:s,transitionStatus:i}}function _(e,t){e.useSyncedValues(t),(0,s.g)(()=>()=>{e.update({activeTriggerProps:r.t0,inactiveTriggerProps:r.t0,popupProps:r.t0})},[e])}function w(e,t){(0,s.g)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,s.g)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])}n.d(t,["Ls",0,f])},2975(e,t,n){"use strict";n.d(t,{Z:()=>o});class o{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(const t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(const t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}},6404(e,t,n){"use strict";n.d(t,{r:()=>i});var o=n(2570),r=n(3367);function i(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new r.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:o.t0,inactiveTriggerProps:o.t0,popupProps:o.t0}}const s=e=>e.triggerIdProp??e.activeTriggerId,a=e=>e.openProp??e.open,c=e=>(e.popupElement?.id??e.floatingId)||void 0;function l(e,t){return void 0!==t&&a(e)&&s(e)===t}const d={open:a,mounted:e=>e.mounted,transitionStatus:e=>a(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:s,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:c,isTriggerActive:(e,t)=>void 0!==t&&s(e)===t,isOpenedByTrigger:(e,t)=>l(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&s(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>function(e,t){return!!l(e,t)||void 0!==t&&a(e)&&null==s(e)&&!e.openedWithoutTrigger&&1===e.triggerCount}(e,t)?c(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};n.d(t,["o",0,d])},3850(e,t,n){"use strict";function o(e,t){return"function"==typeof e?e(t):e}n.d(t,{S:()=>o})},7304(e,t,n){"use strict";function o(e){return null==e?e:"current"in e?e.current:e}n.d(t,{q:()=>o})},1044(e,t,n){"use strict";function o(e,t){return"function"==typeof e?e(t):e}n.d(t,{m:()=>o})},6200(e,t,n){"use strict";n.d(t,{S:()=>r});var o=n(1609);function r(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:s}=e,a=r&&!1!==t,c=r&&!1===t;return{props:o.useMemo(()=>{const e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=i,!s&&n&&(e.tabIndex=t?i:-1)),(s&&(t||a)||!s&&n)&&(e["aria-disabled"]=n),!s||t&&!c||(e.disabled=n),e},[r,n,t,a,c,s,i])}}},7001(e,t,n){"use strict";n.d(t,{v:()=>i});var o=n(2002),r=n(8659);function i(e,t){const n=(0,r.e)(e);return(0,o.g)(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}},3260(e,t,n){"use strict";function o(e,t,n){return 100*(e-t)/(n-t)}n.d(t,{w:()=>o})},7584(e,t,n){"use strict";function o(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}n.d(t,{q:()=>o})},9156(e,t,n){"use strict";function o(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}n.d(t,{q:()=>o})},2570(e,t,n){"use strict";function o(){}n.d(t,{tE:()=>o});const r=Object.freeze([]),i=Object.freeze({});n.d(t,["Ml",0,r,"t0",0,i])},9403(e,t,n){"use strict";n.d(t,{iE:()=>i,kz:()=>s});n(1609);const o=[];let r;function i(){return r}function s(e){o.push(e)}},3169(e,t,n){"use strict";var o,r;const i=(o="https://base-ui.com/production-error",r="Base UI",function(e,...t){const n=new URL(o);return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`${r} error #${e}; visit ${n} for the full message.`});n.d(t,["A",0,i])},8805(e,t,n){"use strict";n.d(t,{Z:()=>i});var o=n(2740);const r=new Map;function i(e,t,n){return null==e?"":function(e,t){const n=JSON.stringify({locale:(0,o.k)(e),options:t}),i=r.get(n);if(i)return i;const s=new Intl.NumberFormat(e,t);return r.set(n,s),s}(t,n).format(e)}},8641(e,t,n){"use strict";n.d(t,{v:()=>i});var o=n(1609),r=n(3100);function i(e){if(!o.isValidElement(e))return null;const t=e,n=t.props;return((0,r._)(19)?n?.ref:t.ref)??null}},9931(e,t,n){"use strict";n.d(t,{i:()=>d});var o=n(1609),r=n(2484),i=n(3100);const s=()=>()=>{},a=()=>!0,c=()=>!1;const l=(0,i._)(18)?function(){return(0,r.useSyncExternalStore)(s,a,c)}:function(){const[e,t]=o.useState(!1);return o.useEffect(()=>{t(!0)},[]),e};function d(){return!l()}},2272(e,t,n){"use strict";n.d(t,{Y:()=>r});var o=n(3100);function r(e){return(0,o._)(19)?e:e?"true":void 0}},6105(e,t,n){"use strict";function o(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}n.d(t,{F:()=>o})},1238(e,t,n){"use strict";function o(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}n.d(t,{g:()=>o})},71(e,t,n){"use strict";function o(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{r:()=>o})},2240(e,t,n){"use strict";function o(e){return e?.ownerDocument||document}n.d(t,{R:()=>o})},5087(e,t,n){"use strict";var o=n(4778);const r="undefined"!=typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none");!r&&o.ST.includes("firefox"),!r&&o.ST.includes("chrom");n.d(t,["Fp",0,r])},8858(e,t,n){"use strict";var o=n(4778);const r=/jsdom|happydom/.test(o.ST);n.d(t,["I",0,r])},4563(e,t,n){"use strict";var o=n(4778);const r=/^i(os$|p)/.test(o.JG)||"macintel"===o.JG&&o.RT>1,i="android",s=o.JG===i||o.ST.includes(i),a=!r&&o.JG.startsWith("mac"),c=(o.JG.startsWith("win"),!s&&/^(linux|chrome os)/.test(o.JG),a||r);n.d(t,["Bt",0,c,"s4",0,r,"yA",0,s])},7547(e,t,n){"use strict";const o=n(4563).Bt;n.d(t,["N",0,o])},4778(e,t,n){"use strict";const{userAgent:o,platform:r,maxTouchPoints:i}="undefined"==typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},s=o.toLowerCase(),a=r.toLowerCase();n.d(t,["JG",0,a,"RT",0,i,"ST",0,s])},3100(e,t,n){"use strict";n.d(t,{_:()=>i});var o=n(1609);const r=parseInt(o.version,10);function i(e){return r>=e}},6233(e,t,n){"use strict";let o;var r=n(1609);const i={...o||(o=n.t(r,2))};n.d(t,["X",0,i])},865(e,t,n){"use strict";n.d(t,{EW:()=>a,RS:()=>r,gR:()=>i,kp:()=>s});var o=n(1289);function r(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function i(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&(0,o.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function s(e,t){let n=e;for(;n;){if((0,o.vq)(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??((0,o.Ng)(n)?n.host:null)}return null}function a(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}},5489(e,t,n){"use strict";n.d(t,{H:()=>l});var o=n(1609),r=n(3372),i=n(9017),s=n(9288),a=n(2002),c=n(2570);class l extends r.i{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){o.useDebugValue(e);const n=this;(0,a.g)(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){const n=this;(0,a.g)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){const t=this;const n=Object.values(e);(0,a.g)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){o.useDebugValue(e);const n=this,r=void 0!==t;(0,a.g)(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,o){return(0,this.selectors[e])(this.state,t,n,o)}useState(e,t,n,r){return o.useDebugValue(e),(0,i.P)(this,this.selectors[e],t,n,r)}useContextCallback(e,t){o.useDebugValue(e);const n=(0,s.K)(t??c.tE);this.context[e]=n}useStateSetter(e){const t=o.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n="function"==typeof e?e:this.selectors[e];let o=n(this.state);return t(o,o,this),this.subscribe(e=>{const r=n(e);if(!Object.is(o,r)){const e=o;o=r,t(r,e,this)}})}}},3372(e,t,n){"use strict";n.d(t,{i:()=>r});var o=n(9017);class r{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;const t=this.updateTick;for(const n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(const t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){const e={...this.state};this.setState(e)}use(e,t,n,r){return(0,o.P)(this,e,t,n,r)}}},9017(e,t,n){"use strict";n.d(t,{P:()=>l});var o=n(1609),r=n(2484),i=n(2566),s=n(3100),a=n(9403);const c=(0,s._)(19)?function(e,t,n,i,s){const c=(0,a.iE)();if(!c)return function(e,t,n,i,s){const a=o.useCallback(()=>t(e.getSnapshot(),n,i,s),[e,t,n,i,s]);return(0,r.useSyncExternalStore)(e.subscribe,a,a)}(e,t,n,i,s);const l=c.syncIndex;let d;c.syncIndex+=1,c.didInitialize?(d=c.syncHooks[l],d.store===e&&d.selector===t&&Object.is(d.a1,n)&&Object.is(d.a2,i)&&Object.is(d.a3,s)||(d.store!==e&&(c.didChangeStore=!0),d.store=e,d.selector=t,d.a1=n,d.a2=i,d.a3=s,d.value=t(e.getSnapshot(),n,i,s))):(d={store:e,selector:t,a1:n,a2:i,a3:s,value:t(e.getSnapshot(),n,i,s)},c.syncHooks.push(d));return d.value}:function(e,t,n,o,r){return(0,i.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,o,r))};function l(e,t,n,o,r){return c(e,t,n,o,r)}(0,a.kz)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const o=e.syncHooks[n],r=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,r)||(t=!0,o.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const t of e.syncHooks)n.add(t.store);const o=[];for(const e of n)o.push(e.subscribe(t));return()=>{for(const e of o)e()}}),(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},2740(e,t,n){"use strict";function o(e){return Array.isArray(e)?e.map(e=>o(e)).join(","):null==e?"":String(e)}n.d(t,{k:()=>o})},4541(e,t,n){"use strict";n.d(t,{KP:()=>c,NR:()=>l});var o=n(1749),r=n(1966);const i=null;globalThis.requestAnimationFrame;class s{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;const t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;return this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}}let a=new s;class c{static create(){return new c}static request(e){return a.request(e)}static cancel(e){return a.cancel(e)}currentId=i;request(e){this.cancel(),this.currentId=a.request(()=>{this.currentId=i,e()})}cancel=()=>{this.currentId!==i&&(a.cancel(this.currentId),this.currentId=i)};disposeEffect=()=>this.cancel}function l(){const e=(0,o.j)(c.create).current;return(0,r.y)(e.disposeEffect),e}},8922(e,t,n){"use strict";n.d(t,{q:()=>r});var o=n(1609);function r({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=o.useRef(void 0!==e),[s,a]=o.useState(()=>t);return[i&&void 0!==e?e:s,o.useCallback(e=>{i||a(e)},[])]}},3784(e,t,n){"use strict";n.d(t,{g:()=>r});var o=n(1609);function r(){const[,e]=o.useState({});return o.useCallback(()=>{e({})},[])}},8583(e,t,n){"use strict";n.d(t,{B:()=>c});var o=n(1609),r=n(6233),i=n(3784);let s=0;const a=r.X.useId;function c(e,t){if(void 0!==a){const n=a();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const n=o.useRef(void 0),r=(0,i.g)(),a=e??n.current;return o.useEffect(()=>{null==n.current&&(s+=1,n.current=`${t}-${s}`,null==e&&r())},[e,t,r]),a}(e,t)}},2002(e,t,n){"use strict";var o=n(1609);const r="undefined"!=typeof document?o.useLayoutEffect:()=>{};n.d(t,["g",0,r])},8970(e,t,n){"use strict";n.d(t,{U:()=>i,a:()=>r});var o=n(1749);function r(e,t,n,r){const i=(0,o.j)(s).current;return function(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}(i,e,t,n,r)&&a(i,[e,t,n,r]),i.callback}function i(e){const t=(0,o.j)(s).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}(t,e)&&a(t,e),t.callback}function s(){return{callback:null,cleanup:null,refs:[]}}function a(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const o=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const r=t[e];if(null!=r)switch(typeof r){case"function":{const t=r(n);"function"==typeof t&&(o[e]=t);break}case"object":r.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=o[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}},1966(e,t,n){"use strict";n.d(t,{y:()=>i});var o=n(1609),r=n(2570);function i(e){o.useEffect(e,r.Ml)}},1749(e,t,n){"use strict";n.d(t,{j:()=>i});var o=n(1609);const r={};function i(e,t){const n=o.useRef(r);return n.current===r&&(n.current=e(t)),n}},198(e,t,n){"use strict";n.d(t,{K:()=>v});var o=n(1289),r=n(7584),i=n(5087),s=n(4563),a=n(2240),c=n(2002),l=n(3405),d=n(4541);let u={},p={},f="";function g(e,t){return(0,o.ZU)(e)?e:t}function m(e,t,n){return/hidden|clip/.test(e.getComputedStyle(g(t,n)).overflowY)}function h(e){const t=(0,a.R)(e),n=t.documentElement,s=t.body,c=(0,o.zk)(n);let l=0,m=0,h=!1;const b=d.KP.create();if(i.Fp&&1!==(c.visualViewport?.scale??1))return()=>{};function v(){const t=c.getComputedStyle(n),o=c.getComputedStyle(s),r=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";l=n.scrollTop,m=n.scrollLeft,u={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},f=n.style.scrollBehavior,p={position:s.style.position,height:s.style.height,width:s.style.width,boxSizing:s.style.boxSizing,overflowY:s.style.overflowY,overflowX:s.style.overflowX,scrollBehavior:s.style.scrollBehavior};const i=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,b="scroll"===t.overflowY||"scroll"===o.overflowY,v="scroll"===t.overflowX||"scroll"===o.overflowX,y=Math.max(0,c.innerWidth-s.clientWidth),_=Math.max(0,c.innerHeight-s.clientHeight),w=parseFloat(o.marginTop)+parseFloat(o.marginBottom),x=parseFloat(o.marginLeft)+parseFloat(o.marginRight),k=g(n,s);if(h=function(e){if("undefined"==typeof CSS||!CSS.supports||!CSS.supports("scrollbar-gutter","stable")||"undefined"==typeof document)return!1;const t=(0,a.R)(e),n=t.documentElement,o=g(n,t.body),r=o.style.overflowY,i=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",o.style.overflowY="scroll";const s=o.offsetWidth;o.style.overflowY="hidden";const c=o.offsetWidth;return o.style.overflowY=r,n.style.scrollbarGutter=i,s===c}(e),h)return n.style.scrollbarGutter=r,k.style.overflowY="hidden",void(k.style.overflowX="hidden");Object.assign(n.style,{scrollbarGutter:r,overflowY:"hidden",overflowX:"hidden"}),(i||b)&&(n.style.overflowY="scroll"),(d||v)&&(n.style.overflowX="scroll"),Object.assign(s.style,{position:"relative",height:w||_?`calc(100dvh - ${w+_}px)`:"100dvh",width:x||y?`calc(100vw - ${x+y}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),s.scrollTop=l,s.scrollLeft=m,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function y(){Object.assign(n.style,u),Object.assign(s.style,p),h||(n.scrollTop=l,n.scrollLeft=m,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=f)}v();const _=(0,r.q)(c,"resize",function(){y(),b.request(v)});return()=>{b.cancel(),y(),"function"==typeof c.removeEventListener&&_()}}const b=new class{lockCount=0;restore=null;timeoutLock=l.E.create();timeoutUnlock=l.E.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(0===this.lockCount||null!==this.restore)return;const t=(0,a.R)(e),n=t.documentElement,r=t.body,i=(0,o.zk)(n);if(m(i,n,r)){const t=new i.MutationObserver(()=>{m(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),o={attributes:!0};return t.observe(n,o),t.observe(r,o),void(this.restore=()=>t.disconnect())}const c=s.s4||!function(e){if("undefined"==typeof document)return!1;const t=(0,a.R)(e);return(0,o.zk)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=c?function(e){const t=(0,a.R)(e),n=g(t.documentElement,t.body),o={overflowY:n.style.overflowY,overflowX:n.style.overflowX};return Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,o)}}(e):h(e)}};function v(e=!0,t=null){(0,c.g)(()=>{if(e)return b.acquire(t)},[e,t])}},9288(e,t,n){"use strict";n.d(t,{K:()=>a});var o=n(6233),r=n(1749);const i=o.X.useInsertionEffect,s=i&&i!==o.X.useLayoutEffect?i:e=>e();function a(e){const t=(0,r.j)(c).current;return t.next=e,s(t.effect),t.trampoline}function c(){const e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){0}},3405(e,t,n){"use strict";n.d(t,{E:()=>i,Z:()=>s});var o=n(1749),r=n(1966);class i{static create(){return new i}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function s(){const e=(0,o.j)(i.create).current;return(0,r.y)(e.disposeEffect),e}},7946(e,t,n){"use strict";n.d(t,{u:()=>i});var o=n(2002),r=n(1749);function i(e){const t=(0,r.j)(s,e).current;return t.next=e,(0,o.g)(t.effect),t}function s(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},9398(e,t,n){"use strict";const o={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},r={...o,position:"fixed",margin:0,top:0,left:0};n.d(t,["Q",0,r])},1289(e,t,n){"use strict";function o(){return"undefined"!=typeof window}function r(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){return!!o()&&(e instanceof Node||e instanceof i(e).Node)}function a(e){return!!o()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!o()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function l(e){return!(!o()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=p(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&"inline"!==r&&"contents"!==r}n.d(t,{$4:()=>f,L9:()=>p,Ll:()=>s,Ng:()=>l,ZU:()=>d,eu:()=>u,mq:()=>r,sb:()=>c,vq:()=>a,zk:()=>i});function u(e){return/^(html|body|#document)$/.test(r(e))}function p(e){return i(e).getComputedStyle(e)}function f(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||l(e)&&e.host||function(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return l(t)?t.host:t}},9175(e,t,n){"use strict";Math.min,Math.max;const o=Math.round;Math.floor;n.d(t,["LI",0,o])},5046(e,t,n){"use strict";n.d(t,{xn:()=>z});var o=n(4997),r=n(9786),i=n(7143),s=n(2267),a=n(7336),c=n(7731),l=n(912),d=n(1355),u=n(8472),p=n(7436),f=n(4022),g=n(233),m=n(4694),h=n(6767),b={button:"wp-element-button",caption:"wp-element-caption"},v={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"},y={"core/button":[":hover",":focus",":focus-visible",":active"],"core/navigation-link":[":hover",":focus",":focus-visible",":active"]},_={link:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"],button:[":link",":any-link",":visited",":hover",":focus",":focus-visible",":active"]};function w(e={},t,n){let o=[];return Object.keys(e).forEach(r=>{const i=t+(0,d.k)(r.replace("/","-")),s=e[r];if(s instanceof Object){const e=i+n;o=[...o,...w(s,e,n)]}else o.push(`${i}: ${s}`)}),o}function x(e={},t="",n,i={},a=!1){const l=s.B4===t,u=Object.entries(o.__EXPERIMENTAL_STYLE_PROPERTY).reduce((t,[o,{value:i,properties:s,useEngine:a,rootOnly:c}])=>{if(c&&!l)return t;const u=i;if("elements"===u[0]||a)return t;const p=(0,g.K)(e,u);if("--wp--style--root--padding"===o&&("string"==typeof p||!n))return t;if(s&&"string"!=typeof p)Object.entries(s).forEach(e=>{const[n,o]=e;if(!(0,g.K)(p,[o],!1))return;const i=n.startsWith("--")?n:(0,d.k)(n);t.push(`${i}: ${(0,r.getCSSValueFromRawStyle)((0,g.K)(p,[o]))}`)});else if((0,g.K)(e,u,!1)){const n=o.startsWith("--")?o:(0,d.k)(o);t.push(`${n}: ${(0,r.getCSSValueFromRawStyle)((0,g.K)(e,u))}`)}return t},[]);e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=(0,s.y_)(e.background.backgroundImage,i)),!l&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...(0,p.g)(e.background)}}));return(0,r.getCSSRules)(e).forEach(e=>{if(l&&(n||a)&&e.key.startsWith("padding"))return;const t=e.key.startsWith("-")?e.key:(0,d.k)(e.key);let o=(0,s.y_)(e.value,i);"font-size"===t&&(o=(0,c.j)({name:"",slug:"",size:o},i?.settings)),"aspect-ratio"===t&&u.push("min-height: unset"),u.push(`${t}: ${o}`)}),u}var k=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function S(e,t,n){if(!e)return{};const o=Object.entries(e),r=t?y[t]??[]:[],i=o.filter(([e])=>k.includes(e)||r.includes(e)||n[e]).map(([e,t])=>[e,JSON.parse(JSON.stringify(t))]);return Object.fromEntries(i)}function j(e){const{styles:t,baseStyles:n,selector:o,featureSelectors:r,name:i,elementName:s,mediaQuery:a,variationName:c}=e,l=i?y[i]??[]:_[s??""]??[];return l.length?l.flatMap(e=>{const l=t?.[e];return l&&"object"==typeof l?[{styles:JSON.parse(JSON.stringify(l)),baseStyles:[t,...n??[]],selector:o,selectorSuffix:e,mediaQuery:a,featureSelectors:r&&"string"!=typeof r?r:void 0,name:i,elementName:s,variationName:c}]:[]}):[]}function C(e,t){const n={...e?.elements??{}};return Object.keys(t).forEach(t=>{Object.entries(e?.[t]?.elements??{}).forEach(([e,o])=>{n[e]={...n[e]??{},[t]:o}})}),n}var E=(e,t)=>{const n=[];if(!e?.styles)return n;const r=(0,m.hG)(e),i=function(e,t){return S(e,void 0,t)}(e.styles,r);return i&&n.push({styles:i,selector:s.B4,skipSelectorWrapper:!0}),Object.entries(o.__EXPERIMENTAL_ELEMENTS).forEach(([t,o])=>{e.styles?.elements?.[t]&&n.push({styles:e.styles?.elements?.[t]??{},selector:o,elementName:t,skipSelectorWrapper:!b[t]})}),Object.entries(e.styles?.blocks??{}).forEach(([e,i])=>{const a=S(i,e,r),c=i;c?.css&&(a.css=c.css);const l=[],d=[];c?.variations&&Object.entries(c.variations).forEach(([n,i])=>{const a=i,u=S(a,e,r);a?.css&&(u.css=a.css);const p="string"!=typeof t?t[e]?.styleVariationSelectors?.[n]:void 0;if(p&&"string"!=typeof t){const o=t[e];d.push({styles:u,baseStyles:[c],selector:p,featureSelectors:o?.featureSelectors,fallbackGapValue:o?.fallbackGapValue,hasLayoutSupport:o?.hasLayoutSupport,isStyleVariation:!0,variationName:n,layoutSelector:p+o.selector,layoutHasBlockGapSupport:!0,name:e})}Object.entries(C(a,r)).forEach(([e,t])=>{t&&o.__EXPERIMENTAL_ELEMENTS[e]&&l.push({styles:t,selector:(0,s.q1)(p,o.__EXPERIMENTAL_ELEMENTS[e]),elementName:e,isStyleVariation:!0})}),Object.entries(a?.blocks??{}).forEach(([e,n])=>{const i="string"!=typeof t?(0,s.q1)(p,t[e]?.selector):void 0,a="string"!=typeof t?(0,s.q1)(p,t[e]?.duotoneSelector):void 0,c="string"!=typeof t?(0,s.hX)(p,t[e]?.featureSelectors??{}):void 0,d=S(n,e,r);n?.css&&(d.css=n.css),i&&"string"!=typeof t&&(l.push({selector:i,name:e,isStyleVariation:!0,duotoneSelector:a,featureSelectors:c,fallbackGapValue:t[e]?.fallbackGapValue,hasLayoutSupport:t[e]?.hasLayoutSupport,styles:d}),Object.entries(C(n,r)).forEach(([e,t])=>{t&&o.__EXPERIMENTAL_ELEMENTS[e]&&l.push({styles:t,selector:(0,s.q1)(i,o.__EXPERIMENTAL_ELEMENTS[e]),elementName:e,isStyleVariation:!0})}))})}),"string"!=typeof t&&t?.[e]?.selector&&n.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:a,featureSelectors:t[e].featureSelectors,name:e}),n.push(...d),Object.entries(C(c,r)).forEach(([r,i])=>{"string"!=typeof t&&i&&t?.[e]&&o.__EXPERIMENTAL_ELEMENTS[r]&&n.push({styles:i,selector:t[e]?.selector.split(",").map(e=>o.__EXPERIMENTAL_ELEMENTS[r].split(",").map(t=>e+" "+t)).join(","),elementName:r})}),n.push(...l)}),n},T=(e,t)=>{const n=[];if(!e?.settings)return n;const o=e=>{let t={};return s.EA.forEach(({path:n})=>{const o=(0,g.K)(e,n,!1);!1!==o&&(t=(0,g.n)(t,n,o))}),t},r=o(e.settings),i=e.settings?.custom;return(Object.keys(r).length>0||i)&&n.push({presets:r,custom:i,selector:s.bB}),Object.entries(e.settings?.blocks??{}).forEach(([e,r])=>{const i=r.custom;if("string"==typeof t||!t[e])return;const s=o(r);(Object.keys(s).length>0||i)&&n.push({presets:s,custom:i,selector:t[e]?.selector,featureSelectors:t[e]?.featureSelectors})}),n};function R(e,t,n){if(!e||"string"==typeof e)return n;const o=e[t];return"string"==typeof o?o:o&&"object"==typeof o&&"string"==typeof o.root?o.root:n}function M(e,t,{path:n,valueKey:o,valueFunc:r,cssVarInfix:i}){const s=(0,g.K)(e,n,[]),a=[];for(const e of["default","theme","custom"])if(s[e])for(const n of s[e]){const e=(0,d.k)(n.slug);o&&!r?a.push(`--wp--preset--${i}--${e}: ${n[o]}`):r&&"function"==typeof r&&a.push(`--wp--preset--${i}--${e}: ${r(n,t)}`)}return a}function A(e,{tree:t,useRootPaddingAlign:n,disableLayoutStyles:o,hasBlockGapSupport:r,hasFallbackGapSupport:i,disableRootPadding:a}){const{selector:c,selectorSuffix:l,mediaQuery:d,duotoneSelector:p,styles:g,baseStyles:m,fallbackGapValue:h,hasLayoutSupport:b,featureSelectors:v,layoutSelector:y,layoutHasBlockGapSupport:_,skipSelectorWrapper:w,name:k,variationName:S}=e;let j="";const C=l?(0,s.fx)(c,l):c;if(v&&"string"!=typeof v){let e=((e,t)=>{const n={};return Object.entries(e).forEach(([e,o])=>{if("root"===e||"css"===e||!t?.[e])return;const r="string"==typeof o;if(r||"object"!=typeof o||null===o||Object.entries(o).forEach(([o,r])=>{if("root"===o||!t?.[e][o])return;const i=x({[e]:{[o]:t[e][o]}});n[r]=[...n[r]||[],...i],delete t[e][o]}),r||"object"==typeof o&&null!==o&&"root"in o){const i=r?o:o.root,s=x({[e]:t[e]});n[i]=[...n[i]||[],...s],delete t[e]}}),n})(v,g);e=((e,t,n)=>{if("core/paragraph"!==n)return e;const o=t?.blocks?.["core/paragraph"];if("all"!==(o?.typography?.textIndent??t?.typography?.textIndent??"subsequent"))return e;const r=".wp-block-paragraph + .wp-block-paragraph";if(r in e){const t=e[r],n={...e};return delete n[r],n[".wp-block-paragraph"]=t,n}return e})(e,t.settings,k),e=((e,t)=>{const n=".wp-block-button";if(!(n in e))return e;const o={...e};return o[n]=o[n].map(e=>{const n=e.match(/^width:\s*(.+)$/);if(!n)return e;const o=n[1];let r=null;o.endsWith("%")&&(r=parseFloat(o));const i="var(--wp--preset--dimension--";if(null===r&&o.startsWith(i)&&o.endsWith(")")){const e=o.slice(29,-1),n={...t?.dimensions?.dimensionSizes??{},...t?.blocks?.["core/button"]?.dimensions?.dimensionSizes??{}};for(const t of Object.values(n))if(Array.isArray(t)){for(const n of t)if(n.slug===e&&"string"==typeof n.size&&n.size.endsWith("%")){r=parseFloat(n.size);break}if(null!==r)break}}return null===r||isNaN(r)?e:`width: calc(${r} * 1% - (var(--wp--style--block-gap, 0.5em) * (1 - ${r} / 100)))`}),o})(e,t.settings),Object.entries(e).forEach(([e,t])=>{if(t.length){let n=S?(0,s.Pn)(S,e):e;n=l?(0,s.fx)(n,l):n;const o=t.join(";");j+=`:root :where(${n}){${o};}`}})}if(p){const e={};g?.filter&&(e.filter=g.filter,delete g.filter);const t=x(e);t.length&&(j+=`${p}{${t.join(";")};}`)}const E=y??C,T=_??r;o||s.B4!==E&&!b||(j+=function({layoutDefinitions:e=f.o,style:t,selector:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,fallbackGapValue:i}){let a="";const c=t?.spacing?.blockGap;let l=o?(0,u.$)(c):"";r&&(n===s.B4?l=l||"0.5em":!o&&i&&(l=i));const d=o&&c&&"string"!=typeof c?(0,u.$)(c.top):l;if(l&&e&&(Object.values(e).forEach(({className:e,name:t,spacingStyles:r})=>{if(!o&&"flex"!==t&&"grid"!==t)return;const i=["default","constrained"].includes(t)?d:l;r?.length&&r.forEach(t=>{const r=[];if(t.rules&&Object.entries(t.rules).forEach(([e,t])=>{r.push(`${e}: ${t||i}`)}),r.length){let i="";i=o?n===s.B4?`:root :where(.${e})${t?.selector||""}`:`:root :where(${n}-${e})${t?.selector||""}`:n===s.B4?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,a+=`${i} { ${r.join("; ")}; }`}})}),n===s.B4&&o&&(a+=`${s.bB} { --wp--style--block-gap: ${l}; }`)),n===s.B4&&e){const t=["block","flex","grid"];Object.values(e).forEach(({className:e,displayMode:o,baseStyles:r})=>{o&&t.includes(o)&&(a+=`${n} .${e} { display:${o}; }`),r?.length&&r.forEach(t=>{const n=[];t.rules&&Object.entries(t.rules).forEach(([e,t])=>{n.push(`${e}: ${t}`)}),n.length&&(a+=`.${e}${t?.selector||""} { ${n.join("; ")}; }`)})})}return a}({style:g,selector:E,hasBlockGapSupport:T,hasFallbackGapSupport:i,fallbackGapValue:h}));const R=function(e,t,n){const o=n?.find(e=>e?.background?.backgroundClip)?.background?.backgroundClip;if("text"!==o)return e;const r=t?.background?.backgroundClip,i=!!t?.background?.gradient||!!t?.background?.backgroundImage||!!t?.color?.gradient;return r&&"text"!==r?i?e:[...e,"background-image: unset"]:r||i||!t?.color?.text?e:[...e,"-webkit-text-fill-color: currentColor"]}(x(g,C,n,t,a),g,m);if(R?.length){j+=`${w?C:`:root :where(${C})`}{${R.join(";")};}`}if(g?.css){const e=v&&"object"==typeof v?v.css:void 0;let t;"string"==typeof e?t=e:e&&"object"==typeof e&&"root"in e&&"string"==typeof e.root&&(t=e.root),t&&S&&(t=(0,s.Pn)(S,t));const n=t??c,o=l?(0,s.fx)(n,l):n;j+=function(e,t){let n="";if(!e||""===e.trim())return n;return e.split("&").forEach(e=>{if(!e||""===e.trim())return;if(!e.includes("{"))n+=`:root :where(${t}){${e.trim()}}`;else{const o=e.replace("}","").split("{");if(2!==o.length)return;const[r,i]=o,a=r.match(/([>+~\s]*::[a-zA-Z-]+)/),c=a?a[1]:"",l=a?r.replace(c,"").trim():r.trim();let d;d=""===l?t:r.startsWith(" ")?(0,s.q1)(t,l):(0,s.fx)(t,l),n+=`:root :where(${d})${c}{${i.trim()}}`}}),n}(g.css,o)}return d&&j?`${d}{${j}}`:j}var P=(e,t,n,o,r=!1,i=!1,a={})=>{const c={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...a},l=E(e,t),p=T(e,t),f=e?.settings?.useRootPaddingAwareAlignments,{contentSize:h,wideSize:b}=e?.settings?.layout||{},v=c.marginReset||c.rootPadding||c.layoutStyles;let y="";if(c.presets&&(h||b)&&(y+=`${s.bB} {`,y=h?y+` --wp--style--global--content-size: ${h};`:y,y=b?y+` --wp--style--global--wide-size: ${b};`:y,y+="}"),v&&(y+=":where(body) {margin: 0;",c.rootPadding&&f&&(y+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;\n\t\t\t\t"),y+="}"),c.blockStyles){const t=(0,m.hG)(e);l.forEach(s=>{if(s.isStyleVariation&&!c.variationStyles)return;const a=function(e,t){const{styles:n,baseStyles:o,selector:r,fallbackGapValue:i,featureSelectors:s,hasLayoutSupport:a,layoutHasBlockGapSupport:c,layoutSelector:l,name:d,elementName:u,isStyleVariation:p,variationName:f}=e;return d||u?Object.entries(t).flatMap(([e,t])=>{const g=n?.[e];return g&&"object"==typeof g?[{styles:JSON.parse(JSON.stringify(g)),baseStyles:[n,...o??[]],selector:r,mediaQuery:t,featureSelectors:s&&"string"!=typeof s?s:void 0,fallbackGapValue:i,hasLayoutSupport:a,name:d,elementName:u,isStyleVariation:p,variationName:f,layoutSelector:l,layoutHasBlockGapSupport:c}]:[]}):[]}(s,t);[s,...a,...j(s),...a.flatMap(j)].forEach(t=>{y+=A(t,{tree:e,useRootPaddingAlign:f,disableLayoutStyles:r,hasBlockGapSupport:n,hasFallbackGapSupport:o,disableRootPadding:i})})})}if(c.layoutStyles&&(y+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",y+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",y+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),c.blockGap&&n){const t=(0,u.$)(e?.styles?.spacing?.blockGap)||"0.5em";y+=`:root :where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,y+=":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",y+=":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return c.presets&&p.forEach(({selector:e,presets:t})=>{s.B4!==e&&s.bB!==e||(e="");const n=function(e="*",t={}){return s.EA.reduce((n,{path:o,cssVarInfix:r,classes:i})=>{if(!i)return n;const s=(0,g.K)(t,o,[]);return["default","theme","custom"].forEach(t=>{s[t]&&s[t].forEach(({slug:t})=>{i.forEach(({classSuffix:o,propertyName:i})=>{const s=`.has-${(0,d.k)(t)}-${o}`,a=e?`:where(${e})${s}`:s,c=`var(--wp--preset--${r}--${(0,d.k)(t)})`;n+=`${a}{${i}: ${c} !important;}`})})}),n},"")}(e,t);n.length>0&&(y+=n)}),y};function N(e,t){return T(e,t).flatMap(({presets:e})=>function(e={}){return s.EA.filter(e=>"duotone"===e.path.at(-1)).flatMap(t=>{const n=(0,g.K)(e,t.path,{});return["default","theme","custom"].filter(e=>n[e]).flatMap(e=>n[e].map(e=>(0,l.xX)(`wp-duotone-${e.slug}`,e.colors))).join("")})}(e))}var I=(e,t)=>{const{getBlockStyles:n}=(0,i.select)(o.store),r={};return e.forEach(e=>{const i=e.name,c=(0,a.$)(e);if(!c)return;let l=(0,a.$)(e,"filter.duotone");if(!l){const t=(0,a.$)(e),n=(0,o.getBlockSupport)(e,"color.__experimentalDuotone",!1);"string"==typeof n&&t&&(l=(0,s.q1)(t,n))}const d=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,u=e?.supports?.spacing?.blockGap,p="object"!=typeof u||Array.isArray(u)?void 0:u.__experimentalDefault,f=n(i),g={};f?.forEach(e=>{const n=t?`-${t}`:"",o=`${e.name}${n}`,r=(0,s.NJ)(o,c);g[o]=r});const m=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(v).forEach(([t,o])=>{const r=(0,a.$)(e,t);r&&(n[o]=r)}),n})(e,c);r[i]={duotoneSelector:l??void 0,fallbackGapValue:p,featureSelectors:Object.keys(m).length?m:void 0,hasLayoutSupport:d,name:i,selector:c,styleVariationSelectors:f?.length?g:void 0}}),r};function z(e={},t=[],n={}){const{hasBlockGapSupport:r,hasFallbackGapSupport:i,disableLayoutStyles:a=!1,disableRootPadding:c=!1,styleOptions:l={}}=n,d=t.length>0?t:(0,o.getBlockTypes)(),u=(0,h.P)(e,"spacing.blockGap"),p=r??null!=u,f=i??!p;if(!e?.styles||!e?.settings)return[[],{}];const g=function(e){const t=e.styles?.blocks,n=t?.["core/separator"];return n&&n.color?.background&&!n.color?.text&&!n.border?.color?{...e,styles:{...e.styles,blocks:{...t,"core/separator":{...n,color:{...n.color,text:n.color?.background}}}}}:e}(e),m=I(d),b=((e,t)=>{const n=T(e,t);let o="";for(const{presets:t,custom:r,selector:i,featureSelectors:a}of n){const n=i,c={[n]:[]};if(e?.settings)for(const o of s.EA){const r=M(t,e.settings,o);if(0===r.length)continue;const i=R(a,o.path[0],n);c[i]||(c[i]=[]),c[i].push(...r)}const l=w(r,"--wp--custom--","--");l.length>0&&c[n].push(...l);for(const[e,t]of Object.entries(c))t.length>0&&(o+=`${e}{${t.join(";")};}`)}return o})(g,m),v=P(g,m,p,f,a,c,l),y=N(g,m);return[[{css:b,isGlobalStyles:!0},{css:v,isGlobalStyles:!0},{css:g?.styles?.css??"",isGlobalStyles:!0},{assets:y,__unstableType:"svgs",isGlobalStyles:!0}],g.settings]}},7336(e,t,n){"use strict";n.d(t,{$:()=>i});var o=n(2267),r=n(233);function i(e,t="root",n={}){if(!t)return null;const{fallback:s=!1}=n,{name:a,selectors:c,supports:l}=e,d=c&&Object.keys(c).length>0,u=Array.isArray(t)?t.join("."):t;let p=null;if(p=d&&c.root?c?.root:l?.__experimentalSelector?l.__experimentalSelector:".wp-block-"+a.replace("core/","").replace("/","-"),"root"===u)return p;const f=Array.isArray(t)?t:t.split(".");if(1===f.length){const e=s?p:null;if(d){return(0,r.K)(c,`${u}.root`,null)||(0,r.K)(c,u,null)||e}const t=l?(0,r.K)(l,`${u}.__experimentalSelector`,null):void 0;return t?(0,o.q1)(p,t):e}let g;return d&&(g=(0,r.K)(c,u,null)),g||(s?i(e,f[0],n):null)}},6767(e,t,n){"use strict";n.d(t,{P:()=>i});var o=n(233),r=["appearanceTools","useRootPaddingAwareAlignments","background.backgroundClip","background.backgroundImage","background.backgroundRepeat","background.backgroundSize","background.backgroundPosition","background.gradient","border.color","border.radius","border.radiusSizes","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.aspectRatio","dimensions.height","dimensions.minHeight","dimensions.minWidth","dimensions.width","dimensions.dimensionSizes","layout.contentSize","layout.definitions","layout.wideSize","lightbox.enabled","lightbox.allowEditing","position.fixed","position.sticky","spacing.customSpacingSize","spacing.defaultSpacingSizes","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.defaultFontSizes","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textIndent","typography.textShadow","typography.defaultTextShadowPresets","typography.textShadowPresets","typography.textTransform","typography.writingMode","viewport.mobile","viewport.tablet"];function i(e,t,n){const i=n?".blocks."+n:"",s=t?"."+t:"",a=`settings${i}${s}`,c=`settings${s}`;if(t)return(0,o.K)(e,a)??(0,o.K)(e,c);let l={};return r.forEach(t=>{const n=(0,o.K)(e,`settings${i}.${t}`)??(0,o.K)(e,`settings.${t}`);void 0!==n&&(l=(0,o.n)(l,t.split("."),n))}),l}},7436(e,t,n){"use strict";n.d(t,{g:()=>i});var o="cover",r="50% 50%";function i(e){if(!e||("object"!=typeof(t=e.backgroundImage)||null===t||!("url"in t)||!t.url))return;var t;let n;return e?.backgroundSize||(n={backgroundSize:o}),"contain"!==e?.backgroundSize||e?.backgroundPosition||(n={backgroundPosition:r}),n}},2267(e,t,n){"use strict";n.d(t,{B4:()=>s,EA:()=>l,NJ:()=>g,Pn:()=>m,Px:()=>_,bB:()=>a,fx:()=>f,hX:()=>p,q1:()=>u,yQ:()=>y,y_:()=>b});var o=n(9786),r=n(7731),i=n(233),s="body",a=":root";function c(e){if(!e.includes(","))return[e];const t=[];let n="",o=0;for(const r of e){if("("===r)o++;else if(")"===r&&o>0)o--;else if(","===r&&0===o){t.push(n),n="";continue}n+=r}return t.push(n),t}var l=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>(0,r.j)(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["typography","textShadowPresets"],valueKey:"textShadow",cssVarInfix:"text-shadow",classes:[{classSuffix:"text-shadow",propertyName:"text-shadow"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]},{path:["dimensions","dimensionSizes"],valueKey:"size",cssVarInfix:"dimension",classes:[]}],d={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family","typography.textShadow":"text-shadow"};function u(e,t){if(!e||!t)return t;const n=c(e),o=c(t),r=[];return n.forEach(e=>{o.forEach(t=>{r.push(`${e.trim()} ${t.trim()}`)})}),r.join(", ")}function p(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach(([t,o])=>{"string"==typeof o&&(n[t]=u(e,o)),"object"==typeof o&&(n[t]={},Object.entries(o).forEach(([o,r])=>{n[t][o]=u(e,r)}))}),n}function f(e,t){if(!e.includes(","))return e+t;return c(e).map(e=>e+t).join(",")}function g(e,t){const n=`.is-style-${e}`;if(!t)return n;const o=/[^\s:]+/,r=e=>e+n;return c(t).map(e=>e.replace(o,r)).join(",")}function m(e,t){const n=`.is-style-${e}`;return g(e,c(t).map(e=>{const t=e.trim(),o=`${n} `;return t.startsWith(o)?t.slice(o.length):t}).join(","))}function h(e,t){if(!e||!t||!Array.isArray(t))return e;const n=t.find(t=>t?.name===e);return n?.href?n?.href:e}function b(e,t){if(!e||!t)return e;const n=function(e,t){if(!e||!t)return e;if("object"==typeof e&&"ref"in e&&e?.ref){const n=(0,o.getCSSValueFromRawStyle)((0,i.K)(t,e.ref));if("object"==typeof n&&null!==n&&"ref"in n&&n?.ref)return;return void 0===n?e:n}return e}(e,t);return"object"==typeof n&&null!==n&&"url"in n&&n?.url?{...n,url:h(n.url,t?._links?.["wp:theme-file"])}:n}function v(e,t,n=[],o="slug",r){const s=[t?(0,i.K)(e,["blocks",t,...n]):void 0,(0,i.K)(e,n)].filter(Boolean);for(const i of s)if(i){const s=["custom","theme","default"];for(const a of s){const s=i[a];if(s){const i=s.find(e=>e[o]===r);if(i){if("slug"===o)return i;return v(e,t,n,"slug",i.slug)[o]===i[o]?i:void 0}}}}}function y(e,t,n){if(!n||"string"!=typeof n){if("object"!=typeof n||null===n||!("ref"in n)||"string"!=typeof n.ref)return n;{const t=(0,i.K)(e,n.ref);if(!t||"object"==typeof t&&"ref"in t)return t;n=t}}const o="var:",r="var(--wp--";let s;if(n.startsWith(o))s=n.slice(4).split("|");else{if(!n.startsWith(r)||!n.endsWith(")"))return n;s=n.slice(10,-1).split("--")}const[a,...c]=s;return"preset"===a?function(e,t,n,[o,r]=[]){const i=l.find(e=>e.cssVarInfix===o);if(!i||!e.settings)return n;const s=v(e.settings,t,i.path,"slug",r);if(s){const{valueKey:n}=i;return y(e,t,s[n])}return n}(e,t,n,c):"custom"===a?function(e,t,n,o=[]){const r=(t?(0,i.K)(e?.settings??{},["blocks",t,"custom",...o]):void 0)??(0,i.K)(e?.settings??{},["custom",...o]);return r?y(e,t,r):n}(e,t,n,c):n}function _(e,t,n,o){if(!o)return o;const r=d[n],i=l.find(e=>e.cssVarInfix===r);if(!i)return o;const{valueKey:s,path:a}=i,c=v(e,t,a,s,o);return c?`var:preset|${r}|${c.slug}`:o}},912(e,t,n){"use strict";n.d(t,{xX:()=>r});var o=n(3270);function r(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach(e=>{const n=(0,o.Mj)(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)}),t}(t);return`\n<svg\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n\tviewBox="0 0 0 0"\n\twidth="0"\n\theight="0"\n\tfocusable="false"\n\trole="none"\n\taria-hidden="true"\n\tstyle="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"\n>\n\t<defs>\n\t\t<filter id="${e}">\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t<feComponentTransfer color-interpolation-filters="sRGB">\n\t\t\t\t<feFuncR type="table" tableValues="${n.r.join(" ")}"></feFuncR>\n\t\t\t\t<feFuncG type="table" tableValues="${n.g.join(" ")}"></feFuncG>\n\t\t\t\t<feFuncB type="table" tableValues="${n.b.join(" ")}"></feFuncB>\n\t\t\t\t<feFuncA type="table" tableValues="${n.a.join(" ")}"></feFuncA>\n\t\t\t</feComponentTransfer>\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t<feComposite in2="SourceGraphic" operator="in"></feComposite>\n\t\t</filter>\n\t</defs>\n</svg>`}},2636(e,t,n){"use strict";n.d(t,{Of:()=>r,UE:()=>o});function o({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:o="320px",maximumViewportWidth:s="1600px",scaleFactor:a=1,minimumFontSizeLimit:c}){if(c=r(c)?c:"14px",n){const o=r(n);if(!o?.unit||!o?.value)return null;const s=r(c,{coerceTo:o.unit});if(s?.value&&!e&&!t&&o?.value<=s?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t="px"===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),.25),.75),r=i(o.value*n,3);e=s?.value&&r<s?.value?`${s.value}${s.unit}`:`${r}${o.unit}`}}const l=r(e),d=l?.unit||"rem",u=r(t,{coerceTo:d});if(!l||!u)return null;const p=r(e,{coerceTo:"rem"}),f=r(s,{coerceTo:d}),g=r(o,{coerceTo:d});if(!f||!g||!p)return null;const m=f.value-g.value;if(!m)return null;const h=i(g.value/100,3),b=i(h,3)+d,v=i(((u.value-l.value)/m*100||1)*a,3);return`clamp(${e}, ${`${p.value}${p.unit} + ((1vw - ${b}) * ${v})`}, ${t})`}function r(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},s=r?.join("|"),a=new RegExp(`^(\\d*\\.?\\d+)(${s}){1,1}$`),c=e.toString().match(a);if(!c||c.length<3)return null;let[,l,d]=c,u=parseFloat(l);return"px"!==n||"em"!==d&&"rem"!==d||(u*=o,d=n),"px"!==d||"em"!==n&&"rem"!==n||(u/=o,d=n),"em"!==n&&"rem"!==n||"em"!==d&&"rem"!==d||(d=n),d?{value:i(u,3),unit:d}:null}function i(e,t=3){const n=Math.pow(10,t);return Math.round(e*n)/n}},8472(e,t,n){"use strict";n.d(t,{$:()=>r});var o=n(7479);function r(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const r=(0,o.X)(n?.top)||t,i=(0,o.X)(n?.left)||t;return r===i?r:`${r} ${i}`}},4022(e,t,n){"use strict";n.d(t,{o:()=>o});var o={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}}},233(e,t,n){"use strict";function o(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const o=t.pop();let r=e;for(const e of t){const t=r[e];r=r[e]=Array.isArray(t)?[...t]:{...t}}return r[o]=n,e}n.d(t,{K:()=>r,n:()=>o});var r=(e,t,n)=>{const o=Array.isArray(t)?t:t.split(".");let r=e;return o.forEach(e=>{r=r?.[e]}),r??n}},7479(e,t,n){"use strict";function o(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}n.d(t,{X:()=>o})},1355(e,t,n){"use strict";function o(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([a-zA-Z])/g,"$1-$2").replace(/([a-zA-Z])([0-9])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}n.d(t,{k:()=>o})},7731(e,t,n){"use strict";n.d(t,{j:()=>i});var o=n(2636);function r(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function i(e,t){const{size:n}=e;if(!n||"0"===n||!1===e?.fluid)return n;if(!r(t?.typography)&&!r(e))return n;const i=function(e){const t=e?.typography??{},n=e?.layout,i=(0,o.Of)(n?.wideSize)?n?.wideSize:null;return r(t)&&i?{fluid:{maxViewportWidth:i,..."object"==typeof t.fluid?t.fluid:{}}}:{fluid:t?.fluid}}(t)?.fluid??{},s=(0,o.UE)({minimumFontSize:"boolean"==typeof e?.fluid?void 0:e?.fluid?.min,maximumFontSize:"boolean"==typeof e?.fluid?void 0:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:"object"==typeof i?i?.minFontSize:void 0,maximumViewportWidth:"object"==typeof i?i?.maxViewportWidth:void 0,minimumViewportWidth:"object"==typeof i?i?.minViewportWidth:void 0});return s||n}},4694(e,t,n){"use strict";n.d(t,{hG:()=>s});var o={mobile:"480px",tablet:"782px"},r=/^(\d+|\d*\.\d+)(px|em|rem)$/;function i(e){const t=function(e){return e&&"object"==typeof e?function(e){return"mobile"in e||"tablet"in e}(e)?e:e.settings?.viewport??{}:{}}(e),n={},i={};Object.keys(o).forEach(e=>{const o=e,s=t[o],a=function(e){if("number"==typeof e)return e;if("string"!=typeof e)return;const t=e.trim().match(r);if(!t)return;const n=Number.parseFloat(t[1]);return"px"===t[2]?n:16*n}(s);void 0!==a&&function(e){return"string"==typeof e&&r.test(e.trim())}(s)&&(n[o]=s.trim(),i[o]=a)});const s=Object.keys(n);if(!s.length)return{...o};if(1===s.length)return n;const a=n.mobile,c=n.tablet;return i.mobile>=i.tablet?{mobile:a}:{mobile:a,tablet:c}}function s(e){const t=i(e),n={};return t.mobile&&(n["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(n["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),n}},3109(e,t,n){"use strict";n.d(t,{A:()=>r});var o=n(6087),r=(0,o.forwardRef)(({icon:e,size:t=24,style:n,...r},i)=>{const s=e.props.style,a=s||n?{...s,...n}:void 0;return(0,o.cloneElement)(e,{width:t,height:t,...r,...a?{style:a}:{},ref:i})})},2344(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M20 12L5 12M10 7L5 12L10 17"})})},135(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M18 16L8 6M19 13L11 5M18 8L16 6M16 18L6 8M13 19L5 11M8 18L6 16",strokeLinecap:"round"})})},8929(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M7.59201 17.7565C8.8135 18.6933 10.3417 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99593 4.75 12L4.75 14M14.75 14.75L12.25 12.25L12.25 8M2 12L4.75 14L7.5 12"})})},2478(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M6.75 8.25H5C4.30964 8.25 3.75 8.80964 3.75 9.5V17C3.75 17.6904 4.30964 18.25 5 18.25H19C19.6904 18.25 20.25 17.6904 20.25 17V9.5C20.25 8.80964 19.6904 8.25 19 8.25H17.25M6.75 8.25V6.25C6.75 5.97386 6.97386 5.75 7.25 5.75H9.75C10.0261 5.75 10.25 5.97386 10.25 6.25V8.25M6.75 8.25H10.25M10.25 8.25H13.75M13.75 8.25V6.25C13.75 5.97386 13.9739 5.75 14.25 5.75H16.75C17.0261 5.75 17.25 5.97386 17.25 6.25V8.25M13.75 8.25H17.25"})})},3758(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M12 8L12 13M12 14.5L12 16M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z",strokeLinejoin:"round"})})},8901(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M7 12L10 15L17 8"})})},9558(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M14 6.5L9 12L14 17.5"})})},8329(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M10 6.5L15 12L10 17.5"})})},4532(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M17.25 14C17.25 16.8995 14.8995 19.25 12 19.25C9.10051 19.25 6.75 16.8995 6.75 14C6.75 11.1005 10 7.37 12 5.12C14 7.37 17.25 11.1005 17.25 14Z"})})},9099(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M12 9L12 14M12 15.5V17M11.1284 5.04947L3.83827 18.0097C3.46331 18.6763 3.94502 19.5 4.70985 19.5H19.2902C20.055 19.5 20.5367 18.6763 20.1617 18.0097L12.8716 5.04947C12.4893 4.36982 11.5107 4.36982 11.1284 5.04947Z"})})},1866(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M9.5 6.25H6.5C5.80964 6.25 5.25 6.80964 5.25 7.5V17.5C5.25 18.1904 5.80964 18.75 6.5 18.75H16.5C17.1904 18.75 17.75 18.1904 17.75 17.5V14.5M11.5 12.5L18.75 5.25M12.5 5.25H18.75V11.5"})})},8847(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M12 16V11M12 9.5V8M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round"})})},4361(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)(o.Path,{d:"M12 20V4"}),(0,r.jsx)(o.Rect,{x:"4",y:"9",width:"16",height:"6",fill:"currentColor",stroke:"none"})]})},7105(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)(o.Path,{d:"M4.75 4V20"}),(0,r.jsx)(o.Rect,{x:"9",y:"9",width:"11",height:"6",fill:"currentColor",stroke:"none"})]})},3172(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)(o.Rect,{x:"4",y:"9",width:"11",height:"6",fill:"currentColor",stroke:"none"}),(0,r.jsx)(o.Path,{d:"M19.25 20V4"})]})},7217(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75"})})},2243(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)(o.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round"}),(0,r.jsx)(o.Path,{d:"M9 12L11 14L15 10"})]})},103(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M7 12H17"})})},2141(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)(o.Path,{d:"M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25L12 4.75Z",fill:"currentColor",stroke:"none"}),(0,r.jsx)(o.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round"})]})},7839(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(o.Path,{d:"M5 7.5H7M19 7.5H17M17 7.5L16.1588 17.1733C16.069 18.2068 15.2038 19 14.1664 19H9.83363C8.79622 19 7.93102 18.2068 7.84115 17.1733L7 7.5M17 7.5H14.9897M7 7.5H9.01027M14.9897 7.5C14.8627 5.96012 13.5727 4.75 12 4.75C10.4273 4.75 9.13731 5.96012 9.01027 7.5M14.9897 7.5H9.01027"})})},7480(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)(o.Path,{d:"M4.5 17.5V17.2027L5.62821 13.9324M5.62821 13.9324L8.19231 6.5H8.80769L11.3718 13.9324L12.5 17.2027V17.5M11.3718 13.9324H5.62821"}),(0,r.jsx)(o.Path,{d:"M19.5 13.8097V11.0001M19.5 13.8097C19.5 15.4844 18.1304 16.9603 16.5576 16.9603C14.9848 16.9603 14.5586 15.9414 14.4922 15.4844C14.4258 15.0273 14.4545 14.2521 15.1207 13.6609C15.7868 13.0696 16.6425 12.9616 17.4007 12.8201C18.1589 12.6786 19.5 12.2501 19.5 11.0001M19.5 13.8097V17.5M19.5 11.0001C19.5 9.75009 18.4545 9.25 17.3189 9.25C15.3174 9.25 14.5 11.0001 14.5 11.0001"})]})},6168(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(5573),r=n(790),i=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)(o.Path,{d:"M 22 12 C 22 6.49 17.51 2 12 2 C 6.48 2 2 6.49 2 12 C 2 17.52 6.48 22 12 22 C 17.51 22 22 17.52 22 12 M 9.78 17.37 L 6.37 8.22 C 6.92 8.2 7.54 8.14 7.54 8.14 C 8.04 8.08 7.98 7.01 7.48 7.03 C 7.48 7.03 6.03 7.14 5.11 7.14 C 4.93 7.14 4.74 7.14 4.53 7.13 C 6.12 4.69 8.87 3.11 12 3.11 C 14.33 3.11 16.45 3.98 18.05 5.45 C 17.37 5.34 16.4 5.84 16.4 7.03 C 16.4 7.77 16.85 8.39 17.3 9.13 C 17.65 9.74 17.85 10.49 17.85 11.59 C 17.85 13.08 16.45 16.59 16.45 16.59 L 13.42 8.22 C 13.96 8.2 14.24 8.05 14.24 8.05 C 14.74 8 14.68 6.8 14.18 6.83 C 14.18 6.83 12.74 6.95 11.8 6.95 C 10.93 6.95 9.47 6.83 9.47 6.83 C 8.97 6.8 8.91 8.03 9.41 8.05 L 10.33 8.13 L 11.59 11.54 L 9.78 17.37 M 19.41 12 C 19.65 11.36 20.15 10.13 19.84 7.75 C 20.54 9.04 20.89 10.46 20.89 12 C 20.89 15.29 19.16 18.24 16.49 19.78 C 17.46 17.19 18.43 14.58 19.41 12 M 8.1 20.09 C 5.12 18.65 3.11 15.53 3.11 12 C 3.11 10.7 3.34 9.52 3.83 8.41 C 5.25 12.3 6.67 16.2 8.1 20.09 M 12.13 13.46 L 14.71 20.44 C 13.85 20.73 12.95 20.89 12 20.89 C 11.21 20.89 10.43 20.78 9.71 20.56 C 10.52 18.18 11.33 15.82 12.13 13.46 L 12.13 13.46"})})},3022(e,t,n){"use strict";function o(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=o(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const r=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r};n.d(t,["A",0,r])},3270(e,t,n){"use strict";n.d(t,{Mj:()=>I});for(var o={grad:.9,turn:360,rad:360/(2*Math.PI)},r=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},i=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},s=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)<0?e+360:e},c=function(e,t){return void 0===t&&(t=0),i(e,t)%360},l=function(e){return{r:s(e.r,0,255),g:s(e.g,0,255),b:s(e.b,0,255),a:s(e.a)}},d=function(e){return{r:i(e.r),g:i(e.g),b:i(e.b),a:i(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,p=function(e,t){var n=e.charCodeAt(t);return(15&n)+9*(n>>6)},f=function(e,t){return p(e,t)<<4|p(e,t+1)},g=[],m=0;m<256;m++)g.push((m<16?"0":"")+m.toString(16));var h=function(e){return g[s(e,0,255)]},b=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,i=Math.max(t,n,o),s=i-Math.min(t,n,o),a=s?i===t?(n-o)/s:i===n?2+(o-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:r}},v=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var i=Math.floor(t),s=o*(1-n),a=o*(1-(t-i)*n),c=o*(1-(1-t+i)*n),l=i%6;return{r:255*[o,a,s,s,c,o][l],g:255*[c,o,o,a,s,s][l],b:255*[s,s,c,o,o,a][l],a:r}},y=function(e){return{h:a(e.h),s:s(e.s,0,100),l:s(e.l,0,100),a:s(e.a)}},_=function(e){return{h:c(e.h),s:i(e.s),l:i(e.l),a:i(e.a,3)}},w=function(e){return v((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},x=function(e){return{h:(t=b(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},k=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,S=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s+([+-]?(?:\d*\.\d+|\d+))%\s+([+-]?(?:\d*\.\d+|\d+))%\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,C=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,E={string:[[function(e){if(!u.test(e))return null;var t=e.length;return t<=5?{r:17*p(e,1),g:17*p(e,2),b:17*p(e,3),a:5===t?i(17*p(e,4)/255,2):1}:7===t||9===t?{r:f(e,1),g:f(e,3),b:f(e,5),a:9===t?i(f(e,7)/255,2):1}:null},"hex"],[function(e){var t=j.exec(e)||C.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=k.exec(e)||S.exec(e);if(!t)return null;var n,r,i=y({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(o[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return w(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,i=e.a,s=void 0===i?1:i;return r(t)&&r(n)&&r(o)?l({r:Number(t),g:Number(n),b:Number(o),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,i=e.a,s=void 0===i?1:i;if(!r(t)||!r(n)||!r(o))return null;var a=y({h:Number(t),s:Number(n),l:Number(o),a:Number(s)});return w(a)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,i=e.a,c=void 0===i?1:i;if(!r(t)||!r(n)||!r(o))return null;var l=function(e){return{h:a(e.h),s:s(e.s,0,100),v:s(e.v,0,100),a:s(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(c)});return v(l)},"hsv"]]},T=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},R=function(e){return"string"==typeof e?T(e.trim(),E.string):"object"==typeof e&&null!==e?T(e,E.object):[null,void 0]},M=function(e,t){var n=x(e);return{h:n.h,s:s(n.s+100*t,0,100),l:n.l,a:n.a}},A=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},P=function(e,t){var n=x(e);return{h:n.h,s:n.s,l:s(n.l+100*t,0,100),a:n.a}},N=function(){function e(e){this.parsed=R(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return i(A(this.rgba),2)},e.prototype.isDark=function(){return A(this.rgba)<.5},e.prototype.isLight=function(){return A(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=d(this.rgba)).r,n=e.g,o=e.b,s=(r=e.a)<1?h(i(255*r)):"","#"+h(t)+h(n)+h(o)+s;var e,t,n,o,r,s},e.prototype.toRgb=function(){return d(this.rgba)},e.prototype.toRgbString=function(){return t=(e=d(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return _(x(this.rgba))},e.prototype.toHslString=function(){return t=(e=_(x(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=b(this.rgba),{h:c(e.h),s:i(e.s),v:i(e.v),a:i(e.a,3)};var e},e.prototype.invert=function(){return I({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),I(M(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),I(M(this.rgba,-e))},e.prototype.grayscale=function(){return I(M(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),I(P(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),I(P(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(x(this.rgba).h+e)},e.prototype.alpha=function(e){return"number"==typeof e?I({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):i(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=x(this.rgba);return"number"==typeof e?I({h:e,s:t.s,l:t.l,a:t.a}):c(t.h)},e.prototype.isEqual=function(e){return this.toHex()===I(e).toHex()},e}(),I=function(e){return e instanceof N?e:new N(e)}},4584(e,t,n){"use strict";n.d(t,{Y:()=>o});var o=(0,n(6087).createContext)({phase:"idle",showSpinner:!1,errorMessage:void 0,confirm:async()=>{}})},4799(e,t,n){"use strict";n.d(t,{z:()=>z});var o=n(3773),r=n(753),i=n(7791),s=n(8697),a=n(9629),c=n(3022),l=n(6087),d=n(9491),u=n(7723),p=n(7805),f=n(2326),g=n(3499),m=n(5769),h=n(1220),b=n(9968),v=n(4584),y=n(6357),_=n(790),w="data-wp-hash";function x(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=x();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)k(e,n,o)}(document)),e.__wpStyleRuntime}function k(e,t,n){if(!e.head)return;const o=x();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${w}]`))if(n.getAttribute(w)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(w,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}function S(e,t){const n=x();n.styles.set(e,t);for(const o of n.documents.keys())k(o,e,t)}S("c19cd1686b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f1c50237c4787636__header{min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-gap-lg,16px)}._579f95efdec92a66__footer,.f1c50237c4787636__header{align-items:center;display:flex;gap:var(--wpds-dimension-gap-sm,8px);padding-inline:var(--wpds-dimension-padding-2xl,24px)}._579f95efdec92a66__footer{justify-content:flex-end;padding-block:var(--wpds-dimension-gap-lg,16px) var(--wpds-dimension-padding-2xl,24px)}._5371cc08aad82574__title{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--_gcd-heading-margin:0 auto 0 0;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);margin-inline-end:auto;&:dir(rtl){--_gcd-heading-margin:0 0 0 auto}}._766d9011d37ce2d9__content{flex:1 1 auto;min-block-size:0;overflow-block:auto;overflow-inline:hidden;padding:var(--wpds-dimension-padding-2xl,24px);&:focus-visible{outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}}.f1c50237c4787636__header:has(~._766d9011d37ce2d9__content){border-block-end:1px solid transparent;padding-block-end:calc(var(--wpds-dimension-gap-lg, 16px) - 1px - var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}.f1c50237c4787636__header~._766d9011d37ce2d9__content{padding-block-start:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content~._579f95efdec92a66__footer{border-block-start:1px solid transparent;padding-block-start:calc(var(--wpds-dimension-gap-lg, 16px) - 1px - var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content:has(~._579f95efdec92a66__footer){padding-block-end:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content>.f1c50237c4787636__header,._766d9011d37ce2d9__content>[data-drawer-content]>.f1c50237c4787636__header{padding-inline:0}._766d9011d37ce2d9__content>.f1c50237c4787636__header:first-child,._766d9011d37ce2d9__content>[data-drawer-content]>.f1c50237c4787636__header:first-child{padding-block-start:0}._766d9011d37ce2d9__content>._579f95efdec92a66__footer,._766d9011d37ce2d9__content>[data-drawer-content]>._579f95efdec92a66__footer{padding-inline:0}._766d9011d37ce2d9__content>._579f95efdec92a66__footer:last-child,._766d9011d37ce2d9__content>[data-drawer-content]>._579f95efdec92a66__footer:last-child{padding-block-end:0}.f1c50237c4787636__header:has(~[data-wp-ui-overlay-scroll-container][data-wp-ui-overlay-scrolled-from-top]){border-block-end-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}[data-wp-ui-overlay-scroll-container][data-wp-ui-overlay-scrolled-from-bottom]~._579f95efdec92a66__footer{border-block-start-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}[data-wp-ui-overlay-modal] [data-wp-ui-overlay-scroll-container]{overscroll-behavior:contain}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._074affe4c56b4f2f__backdrop{background-color:rgba(0,0,0,.35);inset:0;position:fixed;z-index:var(--wp-ui-dialog-z-index,initial);&[data-ending-style],&[data-starting-style]{opacity:0}&[data-open]{opacity:1}@media not (prefers-reduced-motion){transition:opacity var(--wpds-motion-duration-md,.2s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1))}}._8acaa98861620d4d__popup{--viewport-inset:var(--wpds-dimension-padding-2xl,24px);--_wp-ui-elevation-lg:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);box-shadow:var(--_wp-ui-elevation-lg);box-sizing:border-box;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);left:50%;line-height:var(--wpds-typography-line-height-md,24px);max-height:calc(100dvh - var(--viewport-inset)*2);min-width:var(--wpds-dimension-surface-width-sm,320px);overflow:hidden;position:fixed;top:50%;transform:translate(-50%,-50%);width:calc(100vw - var(--viewport-inset)*2);z-index:var(--wp-ui-dialog-z-index,initial);&[data-ending-style],&[data-starting-style]{opacity:0;transform:translate(-50%,-50%) scale(.9)}@media not (prefers-reduced-motion){transition:opacity var(--wpds-motion-duration-md,.2s) var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1)),transform var(--wpds-motion-duration-md,.2s) var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1))}@media (min-width:480px){min-width:var(--wpds-dimension-surface-width-md,400px)}&.fee2d441dbb756d0__is-auto{max-width:calc(100vw - var(--viewport-inset)*2);min-width:min(var(--wpds-dimension-surface-width-sm,320px),calc(100vw - var(--viewport-inset)*2));width:max-content;@media (min-width:480px){min-width:min(var(--wpds-dimension-surface-width-md,400px),calc(100vw - var(--viewport-inset)*2))}}&._7acfa67ebf092988__is-small{max-width:var(--wpds-dimension-surface-width-md,400px)}&._1eeeed880cb5769d__is-medium{max-width:var(--wpds-dimension-surface-width-lg,560px)}&._99f900b2267e22d0__is-large{max-width:var(--wpds-dimension-surface-width-2xl,960px)}&.b49f7ff9c06fe387__is-stretch{max-width:none}&.dcd4c2f5036cbf1a__is-full{height:100dvh}}._074affe4c56b4f2f__backdrop~._8acaa98861620d4d__popup{border-color:transparent}@media (forced-colors:active){._074affe4c56b4f2f__backdrop~* ._8acaa98861620d4d__popup,._8acaa98861620d4d__popup{border-color:CanvasText}}._76fb3b28fcbd45fc__header [data-wp-ui-dialog-close-icon]{margin-inline-start:auto}.d9d6da914ef0a77c__description{margin-bottom:var(--wpds-dimension-gap-lg,16px)}}}');var j="_074affe4c56b4f2f__backdrop",C="_8acaa98861620d4d__popup",E="_1eeeed880cb5769d__is-medium";S("7c3267f794","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var T="dfcfdc28396e5d98__outset-ring--focus-visible";S("9d544b5491","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f1c50237c4787636__header{min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-gap-lg,16px)}._579f95efdec92a66__footer,.f1c50237c4787636__header{align-items:center;display:flex;gap:var(--wpds-dimension-gap-sm,8px);padding-inline:var(--wpds-dimension-padding-2xl,24px)}._579f95efdec92a66__footer{justify-content:flex-end;padding-block:var(--wpds-dimension-gap-lg,16px) var(--wpds-dimension-padding-2xl,24px)}._5371cc08aad82574__title{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--_gcd-heading-margin:0 auto 0 0;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);margin-inline-end:auto;&:dir(rtl){--_gcd-heading-margin:0 0 0 auto}}._766d9011d37ce2d9__content{flex:1 1 auto;min-block-size:0;overflow-block:auto;overflow-inline:hidden;padding:var(--wpds-dimension-padding-2xl,24px);&:focus-visible{outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}}.f1c50237c4787636__header:has(~._766d9011d37ce2d9__content){border-block-end:1px solid transparent;padding-block-end:calc(var(--wpds-dimension-gap-lg, 16px) - 1px - var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}.f1c50237c4787636__header~._766d9011d37ce2d9__content{padding-block-start:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content~._579f95efdec92a66__footer{border-block-start:1px solid transparent;padding-block-start:calc(var(--wpds-dimension-gap-lg, 16px) - 1px - var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content:has(~._579f95efdec92a66__footer){padding-block-end:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content>.f1c50237c4787636__header,._766d9011d37ce2d9__content>[data-drawer-content]>.f1c50237c4787636__header{padding-inline:0}._766d9011d37ce2d9__content>.f1c50237c4787636__header:first-child,._766d9011d37ce2d9__content>[data-drawer-content]>.f1c50237c4787636__header:first-child{padding-block-start:0}._766d9011d37ce2d9__content>._579f95efdec92a66__footer,._766d9011d37ce2d9__content>[data-drawer-content]>._579f95efdec92a66__footer{padding-inline:0}._766d9011d37ce2d9__content>._579f95efdec92a66__footer:last-child,._766d9011d37ce2d9__content>[data-drawer-content]>._579f95efdec92a66__footer:last-child{padding-block-end:0}.f1c50237c4787636__header:has(~[data-wp-ui-overlay-scroll-container][data-wp-ui-overlay-scrolled-from-top]){border-block-end-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}[data-wp-ui-overlay-scroll-container][data-wp-ui-overlay-scrolled-from-bottom]~._579f95efdec92a66__footer{border-block-start-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}[data-wp-ui-overlay-modal] [data-wp-ui-overlay-scroll-container]{overscroll-behavior:contain}}}");var R="f1c50237c4787636__header",M="_5371cc08aad82574__title",A="_766d9011d37ce2d9__content";S("8db156ca64","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f1c50237c4787636__header{min-height:var(--wpds-dimension-size-md,32px);padding-block:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-gap-lg,16px)}._579f95efdec92a66__footer,.f1c50237c4787636__header{align-items:center;display:flex;gap:var(--wpds-dimension-gap-sm,8px);padding-inline:var(--wpds-dimension-padding-2xl,24px)}._579f95efdec92a66__footer{justify-content:flex-end;padding-block:var(--wpds-dimension-gap-lg,16px) var(--wpds-dimension-padding-2xl,24px)}._5371cc08aad82574__title{--_gcd-heading-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--_gcd-heading-margin:0 auto 0 0;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);margin-inline-end:auto;&:dir(rtl){--_gcd-heading-margin:0 0 0 auto}}._766d9011d37ce2d9__content{flex:1 1 auto;min-block-size:0;overflow-block:auto;overflow-inline:hidden;padding:var(--wpds-dimension-padding-2xl,24px);&:focus-visible{outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}}.f1c50237c4787636__header:has(~._766d9011d37ce2d9__content){border-block-end:1px solid transparent;padding-block-end:calc(var(--wpds-dimension-gap-lg, 16px) - 1px - var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}.f1c50237c4787636__header~._766d9011d37ce2d9__content{padding-block-start:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content~._579f95efdec92a66__footer{border-block-start:1px solid transparent;padding-block-start:calc(var(--wpds-dimension-gap-lg, 16px) - 1px - var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content:has(~._579f95efdec92a66__footer){padding-block-end:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2)}._766d9011d37ce2d9__content>.f1c50237c4787636__header,._766d9011d37ce2d9__content>[data-drawer-content]>.f1c50237c4787636__header{padding-inline:0}._766d9011d37ce2d9__content>.f1c50237c4787636__header:first-child,._766d9011d37ce2d9__content>[data-drawer-content]>.f1c50237c4787636__header:first-child{padding-block-start:0}._766d9011d37ce2d9__content>._579f95efdec92a66__footer,._766d9011d37ce2d9__content>[data-drawer-content]>._579f95efdec92a66__footer{padding-inline:0}._766d9011d37ce2d9__content>._579f95efdec92a66__footer:last-child,._766d9011d37ce2d9__content>[data-drawer-content]>._579f95efdec92a66__footer:last-child{padding-block-end:0}.f1c50237c4787636__header:has(~[data-wp-ui-overlay-scroll-container][data-wp-ui-overlay-scrolled-from-top]){border-block-end-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}[data-wp-ui-overlay-scroll-container][data-wp-ui-overlay-scrolled-from-bottom]~._579f95efdec92a66__footer{border-block-start-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}[data-wp-ui-overlay-modal] [data-wp-ui-overlay-scroll-container]{overscroll-behavior:contain}.dbff6618234a2a93__error-message{align-self:flex-end;color:var(--wpds-color-foreground-content-error,#470000)}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._66cf5fe0c6a030bd__footer-column{align-items:stretch;flex-direction:column;gap:var(--wpds-dimension-gap-md,12px);justify-content:flex-start}._2ddc2fc9155a1dad__irreversible-action{--wp-ui-button-background-color:var(--wpds-color-background-interactive-error-strong,#cc1818);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-error-strong-active,#b90000);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-error-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-error-strong,#f2efef);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-error-strong-active,#f2efef);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-error-strong-disabled,#8d8d8d)}}}");var P="dbff6618234a2a93__error-message",N="_66cf5fe0c6a030bd__footer-column _579f95efdec92a66__footer",I="_2ddc2fc9155a1dad__irreversible-action",z=(0,l.forwardRef)(function({className:e,portal:t,intent:n="default",title:w,description:x,children:k,confirmButtonText:S=(0,u.__)("OK","jetpack"),cancelButtonText:z=(0,u.__)("Cancel","jetpack"),stickyHeader:F=!0,stickyFooter:O=!0,initialFocus:B,finalFocus:L,...$},H){const{phase:D,showSpinner:V,errorMessage:W,confirm:G}=(0,l.useContext)(v.Y),{ref:q,onScroll:U}=(0,m.P)(),{resolvedInitialFocus:K,popupRef:J}=(0,g.A)({initialFocus:B,deprioritizedAttributes:[m.S]}),X=(0,d.useMergeRefs)([H,J]),Y="irreversible"===n?I:void 0,Z="idle"!==D||void 0,Q=(0,_.jsx)("div",{className:R,children:(0,_.jsx)(b.E,{variant:"heading-xl",render:(0,_.jsx)(o.L,{}),className:M,children:w})}),ee=(0,_.jsxs)("div",{className:N,children:[(0,_.jsxs)(h.B,{direction:"row",gap:"sm",justify:"flex-end",align:"center",children:[(0,_.jsx)(r.H,{render:(0,_.jsx)(f.$,{variant:"minimal",tone:"neutral"}),disabled:Z,children:z}),(0,_.jsx)(f.$,{className:Y,onClick:G,loading:V||void 0,disabled:Z,children:S})]}),W&&(0,_.jsx)(b.E,{variant:"body-sm",className:P,children:W})]}),te=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.X,{className:j}),(0,_.jsxs)(s.h,{ref:X,className:(0,c.A)(C,e,E),initialFocus:K,finalFocus:L,...$,"data-wp-ui-overlay-modal":"",children:[F&&Q,(0,_.jsxs)("div",{ref:q,className:(0,c.A)(A,T),onScroll:U,children:[!F&&Q,x&&(0,_.jsx)(b.E,{variant:"body-md",render:(0,_.jsx)(a.r,{}),children:x}),k,!O&&ee]}),O&&ee]})]});return(0,p.o)(t,(0,_.jsx)(y.Z,{}),te)})},6357(e,t,n){"use strict";n.d(t,{Z:()=>a});var o=n(7603),r=n(6087),i=n(7725),s=n(790),a=(0,r.forwardRef)(function({container:e,...t},n){return(0,s.jsx)(o.Z,{ref:n,container:void 0===e?(0,i.un)():e,...t})})},7515(e,t,n){"use strict";n.d(t,{b:()=>d});var o=n(7918),r=n(195),i=n(9491),s=n(6087),a=n(4584),c=n(790);function l(){let e={phase:"idle",showSpinner:!1,errorMessage:void 0};const t=new Set;return{getValue:()=>e,subscribe:e=>(t.add(e),()=>{t.delete(e)}),update:n=>{e={...e,...n},t.forEach(e=>e())}}}function d({children:e,open:t,onOpenChange:n,defaultOpen:d,onConfirm:u}){const[p,f]=(0,s.useState)(d??!1),[g]=(0,s.useState)(l),m=(0,s.useSyncExternalStore)(g.subscribe,g.getValue,g.getValue),h=(0,s.useRef)(null),b=(0,i.useEvent)(u),v=(0,s.useRef)(0),y=t??p;(0,s.useEffect)(()=>{y&&"closing"===m.phase&&g.update({phase:"idle",showSpinner:!1})},[y,g,m.phase]);const _=(0,s.useCallback)((e,t)=>{(e||"pending"!==g.getValue().phase)&&(e||"idle"!==g.getValue().phase||g.update({phase:"closing"}),f(e),n?.(e,t))},[g,n]),w=(0,s.useCallback)(async()=>{if("idle"!==g.getValue().phase)return;g.update({phase:"pending",errorMessage:void 0});const e=++v.current;try{const n=b?.();null!=(t=n)&&"function"==typeof t.then&&g.update({showSpinner:!0});const o=await Promise.resolve(n);if(v.current!==e)return;if(o?.error)return g.update({phase:"idle",showSpinner:!1,errorMessage:o.error}),void(0,r.speak)(o.error,"assertive");!1!==o?.close?(g.update({phase:"closing"}),h.current?.close()):g.update({phase:"idle",showSpinner:!1})}catch(t){if(v.current!==e)return;g.update({phase:"idle",showSpinner:!1}),console.error(t)}var t},[g,b]),x=(0,s.useCallback)(e=>{e||(v.current++,g.update({phase:"idle",showSpinner:!1,errorMessage:void 0}))},[g]),k=(0,s.useMemo)(()=>({...m,confirm:w}),[m,w]);return(0,c.jsx)(o.V,{open:y,defaultOpen:d,onOpenChange:_,onOpenChangeComplete:x,actionsRef:h,children:(0,c.jsx)(a.Y.Provider,{value:k,children:e})})}},1526(e,t,n){"use strict";n.d(t,{$:()=>v});var o=n(8816),r=n(3022),i=n(195),s=n(6087),a=n(7723),c=n(4116),l=n(790),d="data-wp-hash";function u(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=u();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)p(e,n,o)}(document)),e.__wpStyleRuntime}function p(e,t,n){if(!e.head)return;const o=u();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${d}]`))if(n.getAttribute(d)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(d,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}function f(e,t){const n=u();n.styles.set(e,t);for(const o of n.documents.keys())p(o,e,t)}f("7d9151d891",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}>:not(._1322fe375ff021a3__spinner){opacity:0}}}@layer compositions{._1322fe375ff021a3__spinner{color:var(--wp-ui-button-foreground-color);height:var(--wp-ui-button-font-size);inset:0;margin:auto;pointer-events:none;position:absolute;width:var(--wp-ui-button-font-size);@media (prefers-reduced-motion){>*{animation:none}}@media (forced-colors:active){>*{stroke:ButtonText}}}}}');var g={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact",spinner:"_1322fe375ff021a3__spinner"};f("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var m="_336cd3e4e743482f__box-sizing";f("7c3267f794","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var h="abc777e9713fa711__outset-ring--focus-except-active";f("abb19c3171","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._400bf7ee0c6061a9__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");var b="_6defc79820e382c6__button",v=(0,s.forwardRef)(function({tone:e="brand",variant:t="solid",size:n="default",className:d,focusableWhenDisabled:u=!0,disabled:p,loading:f,loadingAnnouncement:v=(0,a.__)("Loading","jetpack"),children:y,..._},w){const x=(0,r.A)(b,m,h,"unstyled"!==t&&g.button,g[`is-${e}`],g[`is-${t}`],g[`is-${n}`],f&&g["is-loading"],d);return(0,s.useEffect)(()=>{f&&v&&(0,i.speak)(v)},[f,v]),(0,l.jsxs)(o.$,{ref:w,className:x,focusableWhenDisabled:u,disabled:p??f,..._,children:[y,f&&"unstyled"!==t&&(0,l.jsx)(c.y,{className:g.spinner})]})})},6313(e,t,n){"use strict";n.d(t,{a:()=>u});var o=n(3022),r=n(6087),i=n(1100),s=n(790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)})("7d9151d891",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}>:not(._1322fe375ff021a3__spinner){opacity:0}}}@layer compositions{._1322fe375ff021a3__spinner{color:var(--wp-ui-button-foreground-color);height:var(--wp-ui-button-font-size);inset:0;margin:auto;pointer-events:none;position:absolute;width:var(--wp-ui-button-font-size);@media (prefers-reduced-motion){>*{animation:none}}@media (forced-colors:active){>*{stroke:ButtonText}}}}}');var d="_9f6fc6553aeb36fe__icon",u=(0,r.forwardRef)(function({className:e,icon:t,...n},r){return(0,s.jsx)(i.I,{ref:r,icon:t,className:(0,o.A)(d,e),size:24,...n})})},2326(e,t,n){"use strict";n.d(t,{$:()=>i});var o=n(1526),r=n(6313);r.a.displayName="Button.Icon";var i=Object.assign(o.$,{Icon:r.a})},7293(e,t,n){"use strict";n.d(t,{V:()=>p});var o=n(3022),r=n(6087),i=n(9968),s=n(790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var d="_70f1dd22bad55b18__description",u=(0,s.jsx)("p",{}),p=(0,r.forwardRef)(function({render:e=u,className:t,children:n,...r},a){return(0,s.jsx)(i.E,{ref:a,variant:"body-md",render:e,className:(0,o.A)(d,t),...r,children:n})})},4638(e,t,n){"use strict";n.d(t,{I:()=>p});var o=n(3022),r=n(6087),i=n(1100),s=n(29),a=n(790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)d(e,n,o)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const o=l();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(c,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const o of n.documents.keys())d(o,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var u="_58c8e351db225608__icon",p=(0,r.forwardRef)(function({icon:e,className:t,...n},r){return(0,a.jsx)(s.b,{ref:r,className:(0,o.A)(u,t),...n,children:(0,a.jsx)(i.I,{icon:e})})})},2193(e,t,n){"use strict";n.d(t,{b:()=>u});var o=n(899),r=n(5339),i=n(3022),s=n(6087),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var d="a23e08e65c8e62e5__root",u=(0,s.forwardRef)(function({render:e,...t},n){const s=(0,i.A)(d);return(0,o.C)({defaultTagName:"div",render:e,ref:n,props:(0,r.v6)({className:s},t)})})},2237(e,t,n){"use strict";n.d(t,{h:()=>p});var o=n(3022),r=n(6087),i=n(9968),s=n(790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var d="b8b96f70820333a1__title",u=(0,s.jsx)("h2",{}),p=(0,r.forwardRef)(function({render:e=u,className:t,children:n,...r},a){return(0,s.jsx)(i.E,{ref:a,variant:"heading-lg",render:e,className:(0,o.A)(d,t),...r,children:n})})},29(e,t,n){"use strict";n.d(t,{b:()=>u});var o=n(899),r=n(5339),i=n(3022),s=n(6087),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var d="_01303b3680eaa216__visual",u=(0,s.forwardRef)(function({render:e,...t},n){const s=(0,i.A)(d);return(0,o.C)({defaultTagName:"div",render:e,ref:n,props:(0,r.v6)({className:s},t)})})},1100(e,t,n){"use strict";n.d(t,{I:()=>s});var o=n(6087),r=n(5573),i=n(790),s=(0,o.forwardRef)(function({icon:e,size:t=24,style:n,...o},s){const a=e.props.style||n?{...e.props.style,...n}:void 0;return(0,i.jsx)(r.SVG,{ref:s,...e.props,...o,...a?{style:a}:{},width:t,height:t})})},1868(e,t,n){"use strict";n.d(t,{V:()=>u});var o=n(6087),r=n(3022),i=n(9968),s=n(790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)})("30e8b36272","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;isolation:isolate;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.b5397fb9d05389e3__title{--_gcd-heading-color:var(--wp-ui-notice-text-color);color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button,.d329e7416d368d31__action-link{mix-blend-mode:luminosity;@media (forced-colors:active){mix-blend-mode:normal}}}}");var d="_1904b570a89bb815__description",u=(0,o.forwardRef)(function({className:e,...t},n){return(0,s.jsx)(i.E,{ref:n,variant:"body-md",className:(0,r.A)(d,e),...t})})},8050(e,t,n){"use strict";n.d(t,{b:()=>_});var o=n(6087),r=n(3758),i=n(9099),s=n(8847),a=n(2243),c=n(899),l=n(5339),d=n(3022),u=n(1100),p=n(790),f="data-wp-hash";function g(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=g();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)m(e,n,o)}(document)),e.__wpStyleRuntime}function m(e,t,n){if(!e.head)return;const o=g();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${f}]`))if(n.getAttribute(f)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(f,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}function h(e,t){const n=g();n.styles.set(e,t);for(const o of n.documents.keys())m(o,e,t)}h("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var b="_336cd3e4e743482f__box-sizing";h("30e8b36272","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;isolation:isolate;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.b5397fb9d05389e3__title{--_gcd-heading-color:var(--wp-ui-notice-text-color);color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button,.d329e7416d368d31__action-link{mix-blend-mode:luminosity;@media (forced-colors:active){mix-blend-mode:normal}}}}");var v={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions",title:"b5397fb9d05389e3__title","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error"},y={neutral:null,info:s.A,warning:r.A,success:a.A,error:i.A},_=(0,o.forwardRef)(function({intent:e="neutral",children:t,icon:n,render:o,...r},i){const s=null===n?null:n??y[e],a=(0,d.A)(v.notice,v[`is-${e}`],b);return(0,c.C)({defaultTagName:"div",render:o,ref:i,props:(0,l.v6)({className:a,children:(0,p.jsxs)(p.Fragment,{children:[t,s&&(0,p.jsx)(u.I,{className:v.icon,icon:s})]})},r)})})},5992(e,t,n){"use strict";n.d(t,{C:()=>f});var o=n(271),r=n(3022),i=n(6087),s=n(790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}function d(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)}d("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var u="_336cd3e4e743482f__box-sizing";d("4fcc1f90de","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0c8146c357ee3082__root{width:160px}._94b93b4b54f86af8__label,.d444d83093168104__value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.d444d83093168104__value{font-variant-numeric:tabular-nums}.f08088bb628044ff__track{background-color:var(--wpds-color-background-track-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);height:1.5px;overflow:hidden;position:relative;width:100%;@media (forced-colors:active){outline:var(--wpds-border-width-xs,1px) solid CanvasText;outline-offset:var(--wpds-border-width-xs,1px)}}._288dbe846a740467__indicator{background-color:currentColor;border-radius:inherit;color:var(--wpds-color-background-thumb-neutral,#1e1e1e);height:100%;inset-block-start:0;position:absolute;@media not (prefers-reduced-motion){transition:width var(--wpds-motion-duration-xl,.4s) ease-in-out}&[data-indeterminate]{animation:_412bd854b144d653__progress-slide 1.5s ease-in-out infinite;transition:none;width:50%;@media (prefers-reduced-motion:reduce){animation-duration:3s;animation-timing-function:steps(4)}}}@media (forced-colors:active){._288dbe846a740467__indicator{background-color:CanvasText;forced-color-adjust:none}}@keyframes _412bd854b144d653__progress-slide{0%{inset-inline-start:-50%}to{inset-inline-start:100%}}}}");var p="_288dbe846a740467__indicator",f=(0,i.forwardRef)(function({color:e,className:t,style:n,...i},a){return(0,s.jsx)(o.Z,{ref:a,style:void 0===e?n:{...n,color:e},className:(0,r.A)(u,p,t),...i})})},5765(e,t,n){"use strict";n.d(t,{J:()=>f});var o=n(403),r=n(3022),i=n(6087),s=n(9968),a=n(790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)d(e,n,o)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const o=l();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(c,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const o of n.documents.keys())d(o,e,t)})("4fcc1f90de","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0c8146c357ee3082__root{width:160px}._94b93b4b54f86af8__label,.d444d83093168104__value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.d444d83093168104__value{font-variant-numeric:tabular-nums}.f08088bb628044ff__track{background-color:var(--wpds-color-background-track-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);height:1.5px;overflow:hidden;position:relative;width:100%;@media (forced-colors:active){outline:var(--wpds-border-width-xs,1px) solid CanvasText;outline-offset:var(--wpds-border-width-xs,1px)}}._288dbe846a740467__indicator{background-color:currentColor;border-radius:inherit;color:var(--wpds-color-background-thumb-neutral,#1e1e1e);height:100%;inset-block-start:0;position:absolute;@media not (prefers-reduced-motion){transition:width var(--wpds-motion-duration-xl,.4s) ease-in-out}&[data-indeterminate]{animation:_412bd854b144d653__progress-slide 1.5s ease-in-out infinite;transition:none;width:50%;@media (prefers-reduced-motion:reduce){animation-duration:3s;animation-timing-function:steps(4)}}}@media (forced-colors:active){._288dbe846a740467__indicator{background-color:CanvasText;forced-color-adjust:none}}@keyframes _412bd854b144d653__progress-slide{0%{inset-inline-start:-50%}to{inset-inline-start:100%}}}}");var u="_94b93b4b54f86af8__label",p=(0,a.jsx)(s.E,{}),f=(0,i.forwardRef)(function({className:e,render:t=p,...n},i){return(0,a.jsx)(o.u,{ref:i,render:t,className:(0,r.A)(u,e),...n})})},5733(e,t,n){"use strict";n.d(t,{b:()=>h});var o=n(2803),r=n(3022),i=n(6087),s=n(7723),a=n(1220),c=n(790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)u(e,n,o)}(document)),e.__wpStyleRuntime}function u(e,t,n){if(!e.head)return;const o=d();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(l,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}function p(e,t){const n=d();n.styles.set(e,t);for(const o of n.documents.keys())u(o,e,t)}p("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var f="_336cd3e4e743482f__box-sizing";p("4fcc1f90de","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0c8146c357ee3082__root{width:160px}._94b93b4b54f86af8__label,.d444d83093168104__value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.d444d83093168104__value{font-variant-numeric:tabular-nums}.f08088bb628044ff__track{background-color:var(--wpds-color-background-track-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);height:1.5px;overflow:hidden;position:relative;width:100%;@media (forced-colors:active){outline:var(--wpds-border-width-xs,1px) solid CanvasText;outline-offset:var(--wpds-border-width-xs,1px)}}._288dbe846a740467__indicator{background-color:currentColor;border-radius:inherit;color:var(--wpds-color-background-thumb-neutral,#1e1e1e);height:100%;inset-block-start:0;position:absolute;@media not (prefers-reduced-motion){transition:width var(--wpds-motion-duration-xl,.4s) ease-in-out}&[data-indeterminate]{animation:_412bd854b144d653__progress-slide 1.5s ease-in-out infinite;transition:none;width:50%;@media (prefers-reduced-motion:reduce){animation-duration:3s;animation-timing-function:steps(4)}}}@media (forced-colors:active){._288dbe846a740467__indicator{background-color:CanvasText;forced-color-adjust:none}}@keyframes _412bd854b144d653__progress-slide{0%{inset-inline-start:-50%}to{inset-inline-start:100%}}}}");var g="_0c8146c357ee3082__root",m=e=>(0,c.jsx)(a.B,{...e,direction:"column",gap:"sm"}),h=(0,i.forwardRef)(function({className:e,render:t=m,...n},i){return(0,c.jsx)(o.w,{ref:i,render:t,getAriaValueText:e=>e||(0,s.__)("In progress","jetpack"),className:(0,r.A)(f,g,e),...n})})},3006(e,t,n){"use strict";n.d(t,{C:()=>f});var o=n(4099),r=n(3022),i=n(6087),s=n(790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}function d(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)}d("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var u="_336cd3e4e743482f__box-sizing";d("4fcc1f90de","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0c8146c357ee3082__root{width:160px}._94b93b4b54f86af8__label,.d444d83093168104__value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.d444d83093168104__value{font-variant-numeric:tabular-nums}.f08088bb628044ff__track{background-color:var(--wpds-color-background-track-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-lg,8px);height:1.5px;overflow:hidden;position:relative;width:100%;@media (forced-colors:active){outline:var(--wpds-border-width-xs,1px) solid CanvasText;outline-offset:var(--wpds-border-width-xs,1px)}}._288dbe846a740467__indicator{background-color:currentColor;border-radius:inherit;color:var(--wpds-color-background-thumb-neutral,#1e1e1e);height:100%;inset-block-start:0;position:absolute;@media not (prefers-reduced-motion){transition:width var(--wpds-motion-duration-xl,.4s) ease-in-out}&[data-indeterminate]{animation:_412bd854b144d653__progress-slide 1.5s ease-in-out infinite;transition:none;width:50%;@media (prefers-reduced-motion:reduce){animation-duration:3s;animation-timing-function:steps(4)}}}@media (forced-colors:active){._288dbe846a740467__indicator{background-color:CanvasText;forced-color-adjust:none}}@keyframes _412bd854b144d653__progress-slide{0%{inset-inline-start:-50%}to{inset-inline-start:100%}}}}");var p="f08088bb628044ff__track",f=(0,i.forwardRef)(function({className:e,...t},n){return(0,s.jsx)(o.X,{ref:n,className:(0,r.A)(u,p,e),...t})})},4116(e,t,n){"use strict";n.d(t,{y:()=>u});var o=n(3022),r=n(6087),i=n(790),s="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)c(e,n,o)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const o=a();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${s}]`))if(n.getAttribute(s)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const o of n.documents.keys())c(o,e,t)})("bc09fb824f","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.ab4d64c07c0ba587__spinner{background-color:transparent;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:inline-block;height:var(--wpds-dimension-size-2xs,16px);opacity:1;overflow:visible;position:relative;width:var(--wpds-dimension-size-2xs,16px)}.a7654e10245bb7d2__indicator{fill:transparent;stroke:currentColor;stroke-width:var(--wpds-border-width-sm,2px);stroke-linecap:round;transform-origin:50% 50%;@media (forced-colors:active){stroke:CanvasText}animation:_02322d973909703c__spinner-spin 1.4s linear infinite both}@keyframes _02322d973909703c__spinner-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}}}");var l="ab4d64c07c0ba587__spinner",d="a7654e10245bb7d2__indicator",u=(0,r.forwardRef)(function({className:e,color:t,style:n,...r},s){return(0,i.jsx)("svg",{className:(0,o.A)(l,e),style:void 0===t?n:{...n,color:t},viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...r,ref:s,children:(0,i.jsx)("path",{className:d,d:"m 50 0 a 50 50 0 0 1 0 100",vectorEffect:"non-scaling-stroke"})})})},1220(e,t,n){"use strict";n.d(t,{B:()=>u});var o=n(899),r=n(5339),i=n(6087),s="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)c(e,n,o)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const o=a();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${s}]`))if(n.getAttribute(s)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const o of n.documents.keys())c(o,e,t)})("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var l="_19ce0419607e1896__stack",d={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},u=(0,i.forwardRef)(function({direction:e,gap:t,align:n,justify:i,wrap:s,render:a,...c},u){const p={gap:t&&d[t],alignItems:n,justifyContent:i,flexDirection:e,flexWrap:s};return(0,o.C)({render:a,ref:u,props:(0,r.v6)(c,{style:p,className:l})})})},3736(e,t,n){"use strict";n.d(t,{P9:()=>i,g5:()=>r,hP:()=>s});n(6087),n(3484);var o=n(790);var r=function(){};var i=function(){};var s=function({children:e}){return(0,o.jsx)(o.Fragment,{children:e})}},1258(e,t,n){"use strict";n.d(t,{B:()=>f});var o=n(6087),r=n(3022),i=n(6299),s=n(2453),a=n(9491),c=n(790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)u(e,n,o)}(document)),e.__wpStyleRuntime}function u(e,t,n){if(!e.head)return;const o=d();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(l,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=d();n.styles.set(e,t);for(const o of n.documents.keys())u(o,e,t)})("f3c08da521",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&:not(.eb7aaeb14de04857__is-scrolling){overflow:visible}&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height;transition-timing-function:ease-out}background-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;z-index:1;._7313adbc8a112e90__tablist:has(>.a5fd8814f195aa5e__tab[aria-selected=true]:not([data-disabled]):focus-visible)\n\t\t\t\t&{background-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&[data-orientation=horizontal]{bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width)}&[data-orientation=vertical]{height:max(0px,calc(var(--active-tab-height) - var(--wpds-dimension-padding-md, 12px)*2));inset-inline-start:0;top:var(--wpds-dimension-padding-md,12px);translate:0 var(--active-tab-top);width:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&:is([aria-selected=true],[data-disabled]){cursor:default}&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:not([aria-selected=true]):hover,:not([aria-selected=true]):active,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);&:after{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);opacity:1}}&:after,&:before{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid transparent;pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1;outline-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset-block:calc(var(--wpds-dimension-padding-md, 12px) + var(--wpds-dimension-padding-xs, 4px));inset-inline:var(--wpds-dimension-padding-lg,16px);outline-offset:var(--wpds-dimension-padding-xs,4px)}&:not([data-disabled]):is(:not([aria-selected=true]):hover,:not([aria-selected=true]):active,:focus-visible):after{box-shadow:0 0 0 var(--wpds-dimension-padding-xs,4px) var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:0}}._59228b5227f38a99__is-minimal-variant.eb7aaeb14de04857__is-scrolling[data-orientation=horizontal] &{&:before{content:"";inset-block:var(--wpds-dimension-padding-md,12px);inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px);z-index:0}&:focus-visible{&:before{opacity:1;outline-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}&:after{outline:none}}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-md,12px);&:after{content:"";inset:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}}}');var p={tablist:"_7313adbc8a112e90__tablist","is-scrolling":"eb7aaeb14de04857__is-scrolling","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children"},f=(0,o.forwardRef)(function({children:e,variant:t="default",className:n,activateOnFocus:l,...d},u){const[f,g]=(0,o.useState)(null),[m,h]=(0,o.useState)({first:!1,last:!1,isScrolling:!1});(0,o.useEffect)(()=>{if(!f)return;const e=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=f,o=Math.max(e-t,0),r="rtl"===(f.dir||("undefined"!=typeof window?window.getComputedStyle(f).direction:"ltr"))&&n<0?-n:n,i={first:r>1,last:r<o-1,isScrolling:e>t};h(e=>e.first===i.first&&e.last===i.last&&e.isScrolling===i.isScrolling?e:i)},t=new ResizeObserver(e),n=()=>{t.disconnect(),t.observe(f),f.querySelectorAll('[role="tab"]').forEach(e=>t.observe(e))},o=new MutationObserver(n);o.observe(f,{childList:!0,subtree:!0});let r=!1;const i=()=>{r||(requestAnimationFrame(()=>{e(),r=!1}),r=!0)};return f.addEventListener("scroll",i,{passive:!0}),n(),e(),()=>{f.removeEventListener("scroll",i),t.disconnect(),o.disconnect()}},[f]);const b=(0,a.useMergeRefs)([u,e=>g(e)]);return(0,c.jsxs)(i.j,{ref:b,activateOnFocus:l,"data-select-on-move":l?"true":"false",className:(0,r.A)(p.tablist,m.isScrolling&&p["is-scrolling"],m.first&&p["is-overflowing-first"],m.last&&p["is-overflowing-last"],p[`is-${t}-variant`],n),...d,tabIndex:d.tabIndex??(m.isScrolling?-1:void 0),children:[e,(0,c.jsx)(s.E,{className:p.indicator})]})})},1576(e,t,n){"use strict";n.d(t,{Z:()=>g});var o=n(6087),r=n(3022),i=n(8021),s=n(3736),a=n(790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)d(e,n,o)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const o=l();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(c,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}function u(e,t){const n=l();n.styles.set(e,t);for(const o of n.documents.keys())d(o,e,t)}u("abb19c3171","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._400bf7ee0c6061a9__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");var p="_8c15fd0ed9f28ba4__div";u("7c3267f794","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var f="dfcfdc28396e5d98__outset-ring--focus-visible",g=(0,o.forwardRef)(function({className:e,...t},n){return(0,s.P9)(),(0,a.jsx)(i.R,{ref:n,className:(0,r.A)(p,f,e),...t})})},210(e,t,n){"use strict";n.d(t,{b:()=>c});var o=n(6087),r=n(7231),i=n(3736),s=n(350),a=n(790),c=(0,o.forwardRef)(function({...e},t){return(0,a.jsx)(s.F,{children:(0,a.jsx)(i.hP,{children:(0,a.jsx)(r.p,{ref:t,...e})})})})},799(e,t,n){"use strict";n.d(t,{o:()=>f});var o=n(6087),r=n(3022),i=n(8077),s=n(3736),a=n(790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)d(e,n,o)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const o=l();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(c,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const o of n.documents.keys())d(o,e,t)})("f3c08da521",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&:not(.eb7aaeb14de04857__is-scrolling){overflow:visible}&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height;transition-timing-function:ease-out}background-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;z-index:1;._7313adbc8a112e90__tablist:has(>.a5fd8814f195aa5e__tab[aria-selected=true]:not([data-disabled]):focus-visible)\n\t\t\t\t&{background-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&[data-orientation=horizontal]{bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width)}&[data-orientation=vertical]{height:max(0px,calc(var(--active-tab-height) - var(--wpds-dimension-padding-md, 12px)*2));inset-inline-start:0;top:var(--wpds-dimension-padding-md,12px);translate:0 var(--active-tab-top);width:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&:is([aria-selected=true],[data-disabled]){cursor:default}&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:not([aria-selected=true]):hover,:not([aria-selected=true]):active,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);&:after{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);opacity:1}}&:after,&:before{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid transparent;pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1;outline-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset-block:calc(var(--wpds-dimension-padding-md, 12px) + var(--wpds-dimension-padding-xs, 4px));inset-inline:var(--wpds-dimension-padding-lg,16px);outline-offset:var(--wpds-dimension-padding-xs,4px)}&:not([data-disabled]):is(:not([aria-selected=true]):hover,:not([aria-selected=true]):active,:focus-visible):after{box-shadow:0 0 0 var(--wpds-dimension-padding-xs,4px) var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:0}}._59228b5227f38a99__is-minimal-variant.eb7aaeb14de04857__is-scrolling[data-orientation=horizontal] &{&:before{content:"";inset-block:var(--wpds-dimension-padding-md,12px);inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px);z-index:0}&:focus-visible{&:before{opacity:1;outline-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}&:after{outline:none}}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-md,12px);&:after{content:"";inset:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}}}');var u="a5fd8814f195aa5e__tab",p="_5dfc77e6edd345d4__tab-children",f=(0,o.forwardRef)(function({className:e,children:t,...n},o){return(0,s.g5)(),(0,a.jsx)(i.M,{ref:o,className:(0,r.A)(u,e),...n,children:(0,a.jsx)("span",{className:p,children:t})})})},9968(e,t,n){"use strict";n.d(t,{E:()=>g});var o=n(899),r=n(5339),i=n(3022),s=n(6087),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)l(e,n,o)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),r.add(t)}function d(e,t){const n=c();n.styles.set(e,t);for(const o of n.documents.keys())l(o,e,t)}d("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var u={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};d("abb19c3171","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._400bf7ee0c6061a9__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");var p="_43cec3e1eec1066d__p",f="e97669c6d9a38497__heading",g=(0,s.forwardRef)(function({variant:e="body-md",render:t,className:n,...s},a){return(0,o.C)({render:t,defaultTagName:"span",ref:a,props:(0,r.v6)(s,{className:(0,i.A)(u.text,f,p,u[e],n)})})})},350(e,t,n){"use strict";n.d(t,{F:()=>s});var o=n(7759),r=n(7723),i=n(790);function s({children:e}){return(0,i.jsx)(o.F,{direction:(0,r.isRTL)()?"rtl":"ltr",children:e})}},7805(e,t,n){"use strict";n.d(t,{o:()=>r});var o=n(6087);function r(e,t,n){return(0,o.cloneElement)(e??t,{children:n})}},3499(e,t,n){"use strict";n.d(t,{A:()=>i});var o=n(6087),r=n(8146);function i({initialFocus:e,deprioritizedAttributes:t}){const n=(0,o.useRef)(null);let i=e;return void 0!==e&&!0!==e||(i=e=>{if("touch"===e)return n.current??!0;const o=n.current;if(!o)return!0;const i=(0,r.Kr)(o,{getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});for(const e of i)if(e instanceof HTMLElement&&!t.some(t=>e.hasAttribute(t)))return e;return!0}),{resolvedInitialFocus:i,popupRef:n}}},5769(e,t,n){"use strict";n.d(t,{P:()=>f,S:()=>i});var o=n(9491),r=n(6087),i="data-wp-ui-overlay-scroll-container",s="data-wp-ui-overlay-scrolled-from-top",a="data-wp-ui-overlay-scrolled-from-bottom",c="data-wp-ui-overlay-scroll-tabbable";function l(e){e.hasAttribute(c)&&"0"!==e.getAttribute("tabindex")&&e.removeAttribute(c)}function d(e){const{scrollTop:t,clientHeight:n,scrollHeight:o}=e,r=o-n>1;e.toggleAttribute(s,t>0),e.toggleAttribute(a,t+n<o-1),l(e),r?e.hasAttribute(c)||null!==e.getAttribute("tabindex")||(e.setAttribute("tabindex","0"),e.setAttribute(c,"")):e.hasAttribute(c)&&(e.removeAttribute("tabindex"),e.removeAttribute(c))}var u=[i,s,a];function p(e){for(const t of u)e.removeAttribute(t);l(e),e.hasAttribute(c)&&(e.removeAttribute("tabindex"),e.removeAttribute(c))}function f(e){const[t,n]=(0,r.useState)(null),s=(0,r.useCallback)(e=>{n(e)},[]);(0,o.useIsomorphicLayoutEffect)(()=>{if(!t)return;if(t.setAttribute(i,""),d(t),"undefined"==typeof ResizeObserver)return()=>{p(t)};const e=new ResizeObserver(()=>{d(t)});e.observe(t);for(const n of Array.from(t.children))e.observe(n);let n;return"undefined"!=typeof MutationObserver&&(n=new MutationObserver(n=>{for(const o of n)if(o.target===t){for(const t of Array.from(o.addedNodes))t instanceof Element&&e.observe(t);for(const t of Array.from(o.removedNodes))t instanceof Element&&e.unobserve(t)}d(t)}),n.observe(t,{childList:!0})),()=>{e.disconnect(),n?.disconnect(),p(t)}},[t]);return{ref:s,onScroll:(0,r.useCallback)(t=>{d(t.currentTarget),e?.(t)},[e])}}},3484(e,t,n){"use strict";n.d(t,{G:()=>i});var o=n(9491),r=n(6087);function i(e){const t=(0,o.useEvent)(e),n=(0,r.useRef)(null),i=(0,r.useRef)(!1),s=(0,r.useCallback)(()=>{i.current||(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{t(),n.current=null},0))},[t]);return(0,r.useEffect)(()=>(i.current=!1,()=>{i.current=!0,n.current&&clearTimeout(n.current)}),[]),s}},7725(e,t,n){"use strict";n.d(t,{un:()=>d});var o="data-wp-hash";function r(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=r();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,o]of t.styles)i(e,n,o)}(document)),e.__wpStyleRuntime}function i(e,t,n){if(!e.head)return;const i=r();let s=i.injectedStyles.get(e);if(s||(s=new Set,i.injectedStyles.set(e,s)),s.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${o}]`))if(n.getAttribute(o)===t)return!0;return!1}(e,t))return void s.add(t);const a=e.createElement("style");a.setAttribute(o,t),a.appendChild(e.createTextNode(n)),e.head.appendChild(a),s.add(t)}(function(e,t){const n=r();n.styles.set(e,t);for(const o of n.documents.keys())i(o,e,t)})("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var s="_11fc52b637ff8a7e__slot",a="data-wp-compat-overlay-slot";var c=null;function l(e){return e.setAttribute("aria-hidden","false"),e}function d(){if("undefined"==typeof window)return;if(!function(){let e;try{e=window.top?.wp}catch{}const t=e??window.wp;return"object"==typeof t?.components&&null!==t.components}()&&!0!==window.__wpUiCompatOverlaySlotEnabled)return;const e="undefined"==typeof document?null:document;if(!e||!e.body)return;if(c&&c.ownerDocument===e&&c.isConnected)return l(c);const t=e.querySelector(`[${a}]`);return t instanceof HTMLDivElement?c=l(t):(c?.isConnected&&c.remove(),c=l(function(e){const t=e.createElement("div");return t.setAttribute(a,""),s&&t.classList.add(s),e.body.appendChild(t),t}(e)),c)}}};const t={};function n(o){const r=t[o];if(void 0!==r)return r.exports;const i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf;let t;n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}const i=Object.create(null);n.r(i);const s={};t||=[null,e({}),e([]),e(e)];for(var a=2&r&&o;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,n.d(i,s),i}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],i=t[o++],s=0===i?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:i};n.o(e,r)||Object.defineProperty(e,r,s)}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.hasOwn(e,t),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(6125),t=n(390),o=n(1455),r=n.n(o),i=n(4715),s=n(4997),a=n(6427),c=n(3582),l=n(7143),d=n(3656),u=n(6087),p=n(7723),f=n(692),g=n(2279),m=n(7515),h=n(4799),b=n(5733),v=n(5765),y=n(3006),_=n(5992),w=n(3832),x=n(8712),k=n(7647),S=n(810),j=n(790);const __=p.__,C="/wpcom/v2/email-editor-bootstrap",E=["http:","https:"],T=["POST","PUT","PATCH"],R="/wp/v2/global-styles/",M="core/interface",A="core",P="null/email-styles-sidebar",N="jetpack-email-design",I="email-styles",z=`${N}/${I}`,F="jetpack/email-design",O="core/editor",B="core/preferences";function L(e,t){const{editorSettings:n,urls:o,userEmail:r,globalStylesPostId:i}=t;if(!e?.editor_settings)throw new Error("The email editor bundle is missing editor_settings.");if(!e?.editor_theme)throw new Error("The email editor bundle is missing editor_theme.");if("string"!=typeof o?.back||"string"!=typeof o?.listings)throw new Error("JetpackEmailDesignEditor.urls.back and .listings are required strings.");return Object.entries(o).forEach(([e,t])=>function(e,t){if("string"!=typeof e)throw new Error(`JetpackEmailDesignEditor.urls.${t} must be a string.`);let n;try{n=new URL(e,window.location.href)}catch{throw new Error(`JetpackEmailDesignEditor.urls.${t} is not a valid URL.`)}if(!E.includes(n.protocol))throw new Error(`JetpackEmailDesignEditor.urls.${t} must be an http or https URL.`)}(t,e)),{editorSettings:$({...e.editor_settings,...n,isFullScreenForced:!0},e),theme:e.editor_theme,urls:o,userEmail:r,globalStylesPostId:H(e)??i??null}}function $(e,t){const n=(0,S.fh)(e.styles,(0,S.Ru)(t));return!1===t?.shows_featured_image&&n.push({css:".wp-block-post-featured-image { display: none; }"}),{...e,styles:n}}function H(e){const t=e?.global_styles?.post_id;return Number.isInteger(t)&&t>0?t:null}function D(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:{}}function V(e){const t=e?.global_styles,n=H(e);if(!n||!t?.record)return{};const o=t.can_edit?"GET, POST, PUT":"GET",r={body:{...t.record,styles:D(t.record.styles),settings:D(t.record.settings)},headers:{Allow:o}};return{[`/wp/v2/global-styles/${n}`]:r,[`/wp/v2/global-styles/${n}?context=view`]:r,[`/wp/v2/global-styles/${n}?context=edit`]:r,OPTIONS:{[`/wp/v2/global-styles/${n}`]:{body:{},headers:{Allow:o}}}}}function W(e,t){const n=e?.templates;if(!Array.isArray(n)||0===n.length)return{};const o={body:n,headers:{"X-WP-Total":String(n.length),"X-WP-TotalPages":"1"}},r={"/wp/v2/templates":o,"/wp/v2/templates?context=edit":o,"/wp/v2/templates?context=view":o},i=n.find(e=>e?.id===t);if(i){const e={body:i,headers:{Allow:"GET"}};r[`/wp/v2/templates/${t}`]=e,r[`/wp/v2/templates/${t}?context=edit`]=e}return r}function G(){(0,l.dispatch)(M)?.enableComplementaryArea(A,P)}function q(e){return!!e?.global_styles?.can_edit}function U(t=10){const n=document.getElementById(e.Q);if(n)return n.tabIndex=-1,void n.focus();t>0&&window.requestAnimationFrame(()=>U(t-1))}function K(){G(),U()}const J=()=>window.location.reload();function X(e){return null!=e&&("object"!=typeof e||Object.values(e).some(X))}function Y({container:e}){return(0,u.createPortal)((0,j.jsx)("div",{className:"jetpack-email-design-reset-overlay",role:"status",children:(0,j.jsxs)(b.b,{value:null,children:[(0,j.jsx)(v.J,{children:__("Resetting your email design…","jetpack")}),(0,j.jsx)(y.C,{children:(0,j.jsx)(_.C,{})})]})}),e??document.body)}function Z({id:e,container:t}){const[n,o]=(0,u.useState)(!1),[i,s]=(0,u.useState)(!1),d=(0,l.useSelect)(t=>{return n=t(c.store).getEditedEntityRecord("root","globalStyles",e),X(n?.styles)||X(n?.settings);var n},[e]),p=(0,u.useRef)(!1),g=(0,u.useCallback)(()=>{p.current=!1,o(!0)},[]),b=(0,u.useCallback)(e=>{o(e),e||p.current||(0,x.g2)("reset",{outcome:"cancelled"})},[]),v=(0,u.useCallback)(async()=>{s(!0);try{await async function(e){const t=(0,l.select)(c.store).getEditedEntityRecord("root","globalStyles",e);await r()({path:C,method:"POST",data:{design:{styles:{},settings:{}}}}),(0,l.dispatch)(c.store).receiveEntityRecords("root","globalStyles",[{id:e,styles:{},settings:{}}],void 0,!1,{styles:t?.styles,settings:t?.settings})}(e),(0,x.g2)("reset",{outcome:"reset"}),J()}catch(e){(0,x.g2)("reset",{outcome:"error"}),console.error("Jetpack email design reset:",e),(0,l.dispatch)(f.store).createNotice("error",__("Your email design could not be reset. Please try again.","jetpack"),{type:"snackbar",isDismissible:!0}),s(!1)}},[e]),y=(0,u.useCallback)(()=>{p.current=!0,v()},[v]);return(0,j.jsxs)(j.Fragment,{children:[i&&(0,j.jsx)(Y,{container:t}),(0,j.jsx)(a.Button,{variant:"secondary",disabled:!d||i,accessibleWhenDisabled:!0,isBusy:i,onClick:g,children:__("Reset to defaults","jetpack")}),(0,j.jsx)(m.b,{open:n,onOpenChange:b,onConfirm:y,children:(0,j.jsx)(h.z,{intent:"irreversible",title:__("Reset email design","jetpack"),description:__("Are you sure you want to reset your email design? It will go back to the one based on your site, and the changes you made will be lost.","jetpack"),confirmButtonText:__("Reset","jetpack")})})]})}function Q({id:e,container:t}){return(0,j.jsx)(d.PluginDocumentSettingPanel,{name:I,title:__("Email styles","jetpack"),children:(0,j.jsxs)(a.__experimentalVStack,{alignment:"left",children:[(0,j.jsx)(a.Button,{variant:"secondary",onClick:K,children:__("Edit email styles","jetpack")}),!!e&&(0,j.jsx)(Z,{id:e,container:t})]})})}function ee(e){return"string"==typeof e.path?e.path.split("?")[0]:""}function te(e){const t=e?`${R}${e}`:null;return async(e,n)=>{const o=ee(e);return!1===e.parse&&o.startsWith(R)&&o!==t?{ok:(r=await n(e)).ok,status:r.status,statusText:r.statusText,headers:{get:e=>"allow"===String(e).toLowerCase()?"GET":r.headers.get(e)},json:()=>r.json(),text:()=>r.text()}:n(e);var r}}class ne extends Error{constructor(e){super(e),this.name="TestSendError",this.error=e}}function oe(e,t=null){return async(n,o)=>{const i=ee(n),s=(n.method||"GET").toUpperCase();if("/woocommerce-email-editor/v1/send_preview_email"!==i||"POST"!==s)return o(n);try{await async function(e){e&&(0,l.select)(c.store).hasEditsForEntityRecord("root","globalStyles",e)&&await(0,l.dispatch)(c.store).saveEditedEntityRecord("root","globalStyles",e,{throwOnError:!0})}(e);const o=t||await async function(){const e=await r()({path:(0,w.addQueryArgs)("/wp/v2/posts",{status:"publish",per_page:1,orderby:"date",order:"desc",_fields:"id"})});return Array.isArray(e)&&e[0]?.id?e[0].id:null}();if(!o)throw(0,x.g2)("test_email_error",{reason:"no_post"}),new ne(__("Publish a post first — test emails are sent using your most recent post.","jetpack"));const i=await r()({path:"/wpcom/v2/send-email-preview",method:"POST",data:{id:o,email:n.data?.email}});return(0,x.g2)("test_email_send"),i}catch(e){if(e instanceof ne)throw e;throw(0,x.g2)("test_email_error",{reason:"send_failed"}),new ne(e?.message??__("Your test email could not be sent.","jetpack"))}}}function re(){return(0,j.jsx)(a.Notice,{status:"error",isDismissible:!1,children:__("The email design editor could not be loaded. Please reload the page to try again.","jetpack")})}function ie(e){const t={};return e.templateSlug&&(t.template_slug=e.templateSlug),e.postId&&(t.post_id=e.postId),Object.keys(t).length?(0,w.addQueryArgs)(C,t):C}async function se(){const e=window.JetpackEmailDesignEditor;if(!e||"object"!=typeof e)return;const n=document.getElementById(e.elementId);if(!n)return;const o=(0,u.createRoot)(n);(0,x.ze)(e.tracks),(0,x.Cf)();let d=null,p=null,m=null;try{const h=await r()({path:ie(e)}),b=L(h,e);!function(e){(Array.isArray(e?.blocks)?e.blocks:[]).forEach(e=>{if(!e?.name||(0,s.getBlockType)(e.name))return;const t="string"==typeof e.title&&e.title?e.title:e.name,n="string"==typeof e.preview_html&&e.preview_html?e.preview_html:"";(0,s.registerBlockType)(e.name,{apiVersion:3,title:t,description:e.description||"",category:e.category||"design",attributes:e.attributes||{},supports:{...e.supports||{},html:!1,inserter:!1},edit:()=>(0,j.jsx)("div",{...(0,i.useBlockProps)(),children:n?(0,j.jsx)(a.Disabled,{children:(0,j.jsx)(u.RawHTML,{children:n})}):t}),save:()=>null})})}(h),function(){const e=(0,l.dispatch)("core/block-editor");e&&(e.__unstableMarkNextChangeAsNotPersistent(),e.setBlockEditingMode("","disabled"))}(),function(e){!1===e?.renders_through_email_editor&&(0,l.dispatch)(f.store).createNotice("warning",__("Email design is not active on this site, so changes saved here will not affect the emails your subscribers receive.","jetpack"),{context:"email-editor",type:"default",isDismissible:!1})}(h),q(h)&&(function(e=null,t=null){(0,g.registerPlugin)(N,{scope:"woocommerce-email-editor",render:()=>(0,j.jsx)(Q,{id:e,container:t})})}(b.globalStylesPostId,n),function(){const e=(0,l.dispatch)(B),t=(0,l.select)(B),n=(0,l.dispatch)(O),o=(0,l.select)(O);e&&t&&n&&o&&(t.get(F,"expandedStylesPanel")||(e.set(F,"expandedStylesPanel",!0),o.isEditorPanelOpened(z)||n.toggleEditorPanelOpened(z)))}());const v=function(e){const t=e?.template?.id;if("string"!=typeof t||""===t)throw new Error("The email editor bundle is missing its template id.");return t}(h),y=function(e,t){const n={...W(e,t),...V(e)};return Object.keys(n).length>0?n:null}(h,v);b.globalStylesPostId&&r().use(function(e){const t=`${R}${e}`;return async(n,o)=>{const i=ee(n),s=(n.method||"GET").toUpperCase();if(t!==i||!T.includes(s))return o(n);const a=(0,l.select)(c.store).getEditedEntityRecord("root","globalStyles",e);if(!a)throw new Error("Email design save found no global styles record to read.");const d={styles:a.styles??{},settings:a.settings??{}},u={style_keys:(0,x.Hk)(d.styles),setting_keys:(0,x.Hk)(d.settings)};let p;try{p=await r()({path:C,method:"POST",data:{design:d}})}catch(e){throw(0,x.g2)("save",{outcome:"error",...u}),e}const g=p?.design??{};return p?.discarded&&(0,l.dispatch)(f.store).createNotice("error",__("Those changes could not be saved to your email design.","jetpack"),{type:"snackbar",isDismissible:!0}),(0,x.g2)("save",{outcome:p?.discarded?"discarded":"saved",...u}),{id:e,settings:D(g.settings),styles:D(g.styles)}}}(b.globalStylesPostId)),r().use(te(b.globalStylesPostId)),r().use(oe(b.globalStylesPostId,e.postId??null)),y&&r().use(r().createPreloadingMiddleware(y)),q(h)&&(d=function(){const e=(0,l.select)(M);if(!e)return()=>{};const t=(0,l.subscribe)(()=>{const t=e.getActiveComplementaryArea(A);void 0!==t&&(null===t?n():P!==t&&G())});function n(){t(),window.removeEventListener("pointerdown",n,!0),window.removeEventListener("keydown",n,!0)}return window.addEventListener("pointerdown",n,!0),window.addEventListener("keydown",n,!0),n}(),p=(0,k.B)(b.globalStylesPostId,function(e){const t=e?.inherited_colors;return t&&"object"==typeof t?t:{}}(h)),m=(0,S.gr)((0,S.Ru)(h))),o.render((0,j.jsx)(u.StrictMode,{children:(0,j.jsx)(t.w,{postId:v,postType:"wp_template",config:b})}))}catch(e){d?.(),p?.(),m?.(),(0,x.g2)("load_error"),console.error("Jetpack email design editor:",e),o.render((0,j.jsx)(re,{}))}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",se,{once:!0}):se()})()})();
Save File
Cancel