|
1
|
|
-var Ke=Object.create;var se=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var et=Object.getPrototypeOf,tt=Object.prototype.hasOwnProperty;var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var rt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of De(t))!tt.call(e,o)&&o!==r&&se(e,o,{get:()=>t[o],enumerable:!(n=Qe(t,o))||n.enumerable});return e};var a=(e,t,r)=>(r=e!=null?Ke(et(e)):{},rt(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e));var R=h((Ot,ae)=>{ae.exports=window.wp.element});var L=h((Ht,de)=>{de.exports=window.wp.i18n});var pe=h((Ut,ce)=>{ce.exports=window.wp.apiFetch});var fe=h((Lt,le)=>{le.exports=window.wp.components});var b=h((Yt,ge)=>{ge.exports=window.React});var v=h((Bt,me)=>{me.exports=window.ReactJSXRuntime});var Ye=h((wr,Ve)=>{Ve.exports=window.wp.primitives});var C=a(R()),c=a(L()),Ze=a(pe()),Je=a(fe());function ue(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ue(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function nt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ue(e))&&(n&&(n+=" "),n+=t);return n}var A=nt;var he=a(b(),1),_e={};function V(e,t){let r=he.useRef(_e);return r.current===_e&&(r.current=e(t)),r}function ot(e,t){return function(n,...o){let i=new URL(e);return i.searchParams.set("code",n.toString()),o.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${n}; visit ${i} for the full message.`}}var it=ot("https://base-ui.com/production-error","Base UI"),ye=it;var m=a(b(),1);function Y(e,t,r,n){let o=V(ve).current;return st(o,e,t,r,n)&&we(o,[e,t,r,n]),o.callback}function be(e){let t=V(ve).current;return at(t,e)&&we(t,e),t.callback}function ve(){return{callback:null,cleanup:null,refs:[]}}function st(e,t,r,n,o){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==n||e.refs[3]!==o}function at(e,t){return e.refs.length!==t.length||e.refs.some((r,n)=>r!==t[n])}function we(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let n=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){let i=t[o];if(i!=null)switch(typeof i){case"function":{let s=i(r);typeof s=="function"&&(n[o]=s);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){let i=t[o];if(i!=null)switch(typeof i){case"function":{let s=n[o];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var ze=a(b(),1);var xe=a(b(),1),dt=parseInt(xe.version,10);function Se(e){return dt>=e}function $(e){if(!ze.isValidElement(e))return null;let t=e,r=t.props;return(Se(19)?r?.ref:t.ref)??null}function E(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var Kt=Object.freeze([]),w=Object.freeze({});function ke(e,t){let r={};for(let n in e){let o=e[n];if(t?.hasOwnProperty(n)){let i=t[n](o);i!=null&&Object.assign(r,i);continue}o===!0?r[`data-${n.toLowerCase()}`]="":o&&(r[`data-${n.toLowerCase()}`]=o.toString())}return r}function Re(e,t){return typeof e=="function"?e(t):e}function Ee(e,t){return typeof e=="function"?e(t):e}var B={};function l(e,t,r,n,o){if(!r&&!n&&!o&&!e)return I(t);let i=I(e);return t&&(i=N(i,t)),r&&(i=N(i,r)),n&&(i=N(i,n)),o&&(i=N(i,o)),i}function Ne(e){if(e.length===0)return B;if(e.length===1)return I(e[0]);let t=I(e[0]);for(let r=1;r<e.length;r+=1)t=N(t,e[r]);return t}function I(e){return W(e)?{...Ce(e,B)}:ct(e)}function N(e,t){return W(t)?Ce(t,e):pt(e,t)}function ct(e){let t={...e};for(let r in t){let n=t[r];Te(r,n)&&(t[r]=Ae(n))}return t}function pt(e,t){if(!t)return e;for(let r in t){let n=t[r];switch(r){case"style":{e[r]=E(e.style,n);break}case"className":{e[r]=F(e.className,n);break}default:Te(r,n)?e[r]=lt(e[r],n):e[r]=n}}return e}function Te(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),o=e.charCodeAt(2);return r===111&&n===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function W(e){return typeof e=="function"}function Ce(e,t){return W(e)?e(t):e??B}function lt(e,t){return t?e?(...r)=>{let n=r[0];if(Pe(n)){let i=n;Ie(i);let s=t(...r);return i.baseUIHandlerPrevented||e?.(...r),s}let o=t(...r);return e?.(...r),o}:Ae(t):e}function Ae(e){return e&&((...t)=>{let r=t[0];return Pe(r)&&Ie(r),e(...t)})}function Ie(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function F(e,t){return t?e?t+" "+e:t:e}function Pe(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var G=a(b(),1);function je(e,t,r={}){let n=t.render,o=ft(t,r);if(r.enabled===!1)return null;let i=r.state??w;return _t(e,n,o,i)}function ft(e,t={}){let{className:r,style:n,render:o}=e,{state:i=w,ref:s,props:f,stateAttributesMapping:u,enabled:d=!0}=t,_=d?Re(r,i):void 0,y=d?Ee(n,i):void 0,k=d?ke(i,u):w,Xe=d&&f?ut(f):void 0,p=d?E(k,Xe)??{}:w;return typeof document<"u"&&(d?Array.isArray(s)?p.ref=be([p.ref,$(o),...s]):p.ref=Y(p.ref,$(o),s):Y(null,null)),d?(_!==void 0&&(p.className=F(p.className,_)),y!==void 0&&(p.style=E(p.style,y)),p):w}function ut(e){return Array.isArray(e)?Ne(e):l(void 0,e)}var gt=Symbol.for("react.lazy");function _t(e,t,r,n){if(t){if(typeof t=="function")return t(r,n);let o=l(r,t.props);o.ref=r.ref;let i=t;return i?.$$typeof===gt&&(i=m.Children.toArray(t)[0]),m.cloneElement(i,o)}if(e&&typeof e=="string")return ht(e,r);throw new Error(ye(8))}function ht(e,t){return e==="button"?(0,G.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,G.createElement)("img",{alt:"",...t,key:t.key}):m.createElement(e,t)}function x(e){return je(e.defaultTagName??"div",e,e)}var He=a(R(),1),q="data-wp-hash";function Z(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&yt(document)),e.__wpStyleRuntime}function mt(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${q}]`))if(r.getAttribute(q)===t)return!0;return!1}function Ue(e,t,r){if(!e.head)return;let n=Z(),o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(mt(e,t)){o.add(t);return}let i=e.createElement("style");i.setAttribute(q,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}function yt(e){let t=Z();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,n]of t.styles)Ue(e,r,n);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Le(e,t){let r=Z();r.styles.set(e,t);for(let n of r.documents.keys())Ue(n,e,t)}typeof process>"u",Le("0c8601dd83",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{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-medium,499);--_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-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_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-medium,499);--_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-medium,499);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-medium,499);--_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-medium,499);--_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-medium,499);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-regular,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-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,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-regular,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-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,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 Me={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"};typeof process>"u",Le("1fb29d3a3c","._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);&: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,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-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,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-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 #0000)}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-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));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 #0000);transition:var(--_gcd-a-transition,none)}");var Oe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},J=(0,He.forwardRef)(function({variant:t="body-md",render:r,className:n,...o},i){return x({render:r,defaultTagName:"span",ref:i,props:l(o,{className:A(Me.text,Oe.heading,Oe.p,Me[t],n)})})});var $e=a(R(),1),X="data-wp-hash";function K(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vt(document)),e.__wpStyleRuntime}function bt(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${X}]`))if(r.getAttribute(X)===t)return!0;return!1}function Be(e,t,r){if(!e.head)return;let n=K(),o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(bt(e,t)){o.add(t);return}let i=e.createElement("style");i.setAttribute(X,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}function vt(e){let t=K();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,n]of t.styles)Be(e,r,n);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function wt(e,t){let r=K();r.styles.set(e,t);for(let n of r.documents.keys())Be(n,e,t)}typeof process>"u",wt("b51ff41489","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}");var xt={stack:"_19ce0419607e1896__stack"},St={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)"},P=(0,$e.forwardRef)(function({direction:t,gap:r,align:n,justify:o,wrap:i,render:s,...f},u){let d={gap:r&&St[r],alignItems:n,justifyContent:o,flexDirection:t,flexWrap:i};return x({render:s,ref:u,props:l(f,{style:d,className:xt.stack})})});var We=a(R(),1),Fe=a(L(),1),S=a(v(),1),Q="data-wp-hash";function D(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&kt(document)),e.__wpStyleRuntime}function zt(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Q}]`))if(r.getAttribute(Q)===t)return!0;return!1}function Ge(e,t,r){if(!e.head)return;let n=D(),o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(zt(e,t)){o.add(t);return}let i=e.createElement("style");i.setAttribute(Q,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}function kt(e){let t=D();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,n]of t.styles)Ge(e,r,n);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function M(e,t){let r=D();r.styles.set(e,t);for(let n of r.documents.keys())Ge(n,e,t)}typeof process>"u",M("e3ae230cea","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");var Rt={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",M("2a5ab8f3a7","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}");var Et={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"};typeof process>"u",M("90a23568f8",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-regular,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}');var j={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",M("1fb29d3a3c","._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);&: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,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-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,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-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 #0000)}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-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));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 #0000);transition:var(--_gcd-a-transition,none)}");var Nt={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},ee=(0,We.forwardRef)(function({children:t,variant:r="default",tone:n="brand",openInNewTab:o=!1,render:i,className:s,...f},u){return x({render:i,defaultTagName:"a",ref:u,props:l(f,{className:A(Nt.a,Rt["box-sizing"],Et["outset-ring--focus"],r!=="unstyled"&&j.link,r!=="unstyled"&&j[`is-${n}`],r==="unstyled"&&j["is-unstyled"],s),target:o?"_blank":void 0,children:(0,S.jsxs)(S.Fragment,{children:[t,o&&(0,S.jsx)("span",{className:j["link-icon"],role:"img","aria-label":(0,Fe.__)("(opens in a new tab)")})]})})})});var T=a(Ye());var te="data-wp-hash";function re(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ct(document)),e.__wpStyleRuntime}function Tt(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${te}]`))if(r.getAttribute(te)===t)return!0;return!1}function qe(e,t,r){if(!e.head)return;let n=re(),o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(Tt(e,t)){o.add(t);return}let i=e.createElement("style");i.setAttribute(te,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}function Ct(e){let t=re();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,n]of t.styles)qe(e,r,n);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function O(e,t){let r=re();r.styles.set(e,t);for(let n of r.documents.keys())qe(n,e,t)}typeof process>"u",O("a4904efd8f","._102f70874f5f6f85__root{flex-shrink:0;height:calc(var(--wpds-dimension-base, 4px)*17);width:calc(var(--wpds-dimension-base, 4px)*17)}._102f70874f5f6f85__root.c2b8e83bf37a1369__success{--site-health-stroke:var(--wpds-color-stroke-surface-success,#8ac894);--site-health-fg:var(--wpds-color-fg-content-success,#002900)}._102f70874f5f6f85__root._54958716847ff487__warning{--site-health-stroke:var(--wpds-color-stroke-surface-warning,#d0b481);--site-health-fg:var(--wpds-color-fg-content-warning,#2e1900)}._102f70874f5f6f85__root._3173cf56308a969a__error{--site-health-stroke:var(--wpds-color-stroke-surface-error,#daa39b);--site-health-fg:var(--wpds-color-fg-content-error,#470000)}._102f70874f5f6f85__root circle:first-child{stroke:var(--wpds-color-bg-track-neutral,#dbdbdb);stroke-width:12}._102f70874f5f6f85__root circle:last-of-type{stroke:var(--site-health-stroke);stroke-width:12;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .5s ease}.fcddc693d8da23b7__percentage{fill:var(--site-health-fg);font-size:36px;font-weight:var(--wpds-typography-font-weight-medium,499)}");var H={root:"_102f70874f5f6f85__root",success:"c2b8e83bf37a1369__success",warning:"_54958716847ff487__warning",error:"_3173cf56308a969a__error",percentage:"fcddc693d8da23b7__percentage"};var z=a(v()),oe=90,ne=2*Math.PI*oe;function U({percentage:e,tone:t}){let r=ne*(1-e/100);return(0,z.jsxs)(T.SVG,{className:`${H.root} ${H[t]}`,viewBox:"0 0 200 200",children:[(0,z.jsx)(T.Circle,{r:oe,cx:"100",cy:"100",fill:"transparent",strokeDasharray:ne,strokeDashoffset:0}),(0,z.jsx)(T.Circle,{r:oe,cx:"100",cy:"100",fill:"transparent",strokeDasharray:ne,strokeDashoffset:r}),(0,z.jsxs)("text",{x:"100",y:"100",textAnchor:"middle",dominantBaseline:"middle",className:H.percentage,children:[e,"%"]})]})}typeof process>"u",O("bc65cea012","._8ff8ab5f1d3747b3__root{height:100%;margin:0 auto;max-width:calc(var(--wpds-dimension-base, 4px)*80);text-align:center}.f5b9167dff836480__loading{height:100%;min-height:calc(var(--wpds-dimension-base, 4px)*55)}");var ie={root:"_8ff8ab5f1d3747b3__root",loading:"f5b9167dff836480__loading"};var g=a(v()),At=["/wp-site-health/v1/tests/background-updates","/wp-site-health/v1/tests/loopback-requests","/wp-site-health/v1/tests/https-status","/wp-site-health/v1/tests/dotorg-communication","/wp-site-health/v1/tests/authorization-header"];function It(e){return e===100?"success":e>=75?"warning":"error"}function Pt(e){return e.recommended+e.critical<=0?(0,c.__)("Great job! Your site currently passes all site health checks."):e.critical===1?(0,c.__)("Your site has a critical issue that should be addressed as soon as possible to improve its performance and security."):e.critical>1?(0,c.__)("Your site has critical issues that should be addressed as soon as possible to improve its performance and security."):e.recommended===1?(0,c.__)("Your site\u2019s health is looking good, but there is still one thing you can do to improve its performance and security."):(0,c.__)("Your site\u2019s health is looking good, but there are still some things you can do to improve its performance and security.")}function jt(){let[e,t]=(0,C.useState)(null),[r,n]=(0,C.useState)(!0);if((0,C.useEffect)(()=>{let u=!1,d=At.map(_=>(0,Ze.default)({path:_}).catch(()=>null));return Promise.all(d).then(_=>{if(u)return;let y={good:0,recommended:0,critical:0};for(let k of _)k?.status&&k.status in y&&y[k.status]++;t(y),n(!1)}),()=>{u=!0}},[]),r)return(0,g.jsx)(P,{className:ie.loading,direction:"column",align:"center",justify:"center",children:(0,g.jsx)(Je.Spinner,{})});if(!e)return null;let o=e.good+e.recommended+e.critical,i=o>0?Math.round(e.good/o*100):0,s=e.recommended+e.critical,f=It(i);return(0,g.jsxs)(P,{className:ie.root,align:"center",direction:"column",justify:"center",gap:"lg",children:[(0,g.jsx)(U,{percentage:i,tone:f}),(0,g.jsx)(J,{variant:"body-lg",children:Pt(e)}),s>0&&(0,g.jsx)(ee,{href:"site-health.php",children:(0,c.sprintf)((0,c._n)("Review %d item","Review %d items",s),s)})]})}export{jt as default}; |
|
1
|
+var Ke=Object.create;var se=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var et=Object.getPrototypeOf,tt=Object.prototype.hasOwnProperty;var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var rt=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of De(t))!tt.call(e,n)&&n!==r&&se(e,n,{get:()=>t[n],enumerable:!(o=Qe(t,n))||o.enumerable});return e};var s=(e,t,r)=>(r=e!=null?Ke(et(e)):{},rt(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e));var E=m((Lt,de)=>{de.exports=window.wp.element});var V=m((Vt,ce)=>{ce.exports=window.wp.i18n});var pe=m(($t,le)=>{le.exports=window.wp.apiFetch});var ue=m((Yt,fe)=>{fe.exports=window.wp.components});var y=m((Wt,_e)=>{_e.exports=window.React});var b=m((Zt,ye)=>{ye.exports=window.ReactJSXRuntime});var Fe=m((Tr,We)=>{We.exports=window.wp.primitives});var A=s(E()),l=s(V()),Je=s(pe()),Xe=s(ue());function ge(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=ge(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ot(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ge(e))&&(o&&(o+=" "),o+=t);return o}var I=ot;var me=s(y(),1),he={};function $(e,t){let r=me.useRef(he);return r.current===he&&(r.current=e(t)),r}var Gt=Object.freeze([]),v=Object.freeze({});function nt(e,t){return function(o,...n){let i=new URL(e);return i.searchParams.set("code",o.toString()),n.forEach(a=>i.searchParams.append("args[]",a)),`${t} error #${o}; visit ${i} for the full message.`}}var it=nt("https://base-ui.com/production-error","Base UI"),ve=it;var _=s(y(),1);function Y(e,t,r,o){let n=$(we).current;return at(n,e,t,r,o)&&xe(n,[e,t,r,o]),n.callback}function be(e){let t=$(we).current;return st(t,e)&&xe(t,e),t.callback}function we(){return{callback:null,cleanup:null,refs:[]}}function at(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function st(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function xe(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let a=i(r);typeof a=="function"&&(o[n]=a);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let a=o[n];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}default:}}}}}}var ze=s(y(),1);var Se=s(y(),1),dt=parseInt(Se.version,10);function ke(e){return dt>=e}function B(e){if(!ze.isValidElement(e))return null;let t=e,r=t.props;return(ke(19)?r?.ref:t.ref)??null}function N(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Re(e,t){let r={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let i=t[o](n);i!=null&&Object.assign(r,i);continue}n===!0?r[`data-${o.toLowerCase()}`]="":n&&(r[`data-${o.toLowerCase()}`]=n.toString())}return r}function Ee(e,t){return typeof e=="function"?e(t):e}function Ne(e,t){return typeof e=="function"?e(t):e}var W={};function p(e,t,r,o,n){if(!r&&!o&&!n&&!e)return P(t);let i=P(e);return t&&(i=T(i,t)),r&&(i=T(i,r)),o&&(i=T(i,o)),n&&(i=T(i,n)),i}function Te(e){if(e.length===0)return W;if(e.length===1)return P(e[0]);let t=P(e[0]);for(let r=1;r<e.length;r+=1)t=T(t,e[r]);return t}function P(e){return F(e)?{...Ae(e,W)}:ct(e)}function T(e,t){return F(t)?Ae(t,e):lt(e,t)}function ct(e){let t={...e};for(let r in t){let o=t[r];Ce(r,o)&&(t[r]=Ie(o))}return t}function lt(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=N(e.style,o);break}case"className":{e[r]=G(e.className,o);break}default:Ce(r,o)?e[r]=pt(e[r],o):e[r]=o}}return e}function Ce(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function F(e){return typeof e=="function"}function Ae(e,t){return F(e)?e(t):e??W}function pt(e,t){return t?e?(...r)=>{let o=r[0];if(je(o)){let i=o;Pe(i);let a=t(...r);return i.baseUIHandlerPrevented||e?.(...r),a}let n=t(...r);return e?.(...r),n}:Ie(t):e}function Ie(e){return e&&((...t)=>{let r=t[0];return je(r)&&Pe(r),e(...t)})}function Pe(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function G(e,t){return t?e?t+" "+e:t:e}function je(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var q=s(y(),1);function Me(e,t,r={}){let o=t.render;r.enabled!==!1&&(o=_t(o));let n=ft(t,r,o);if(r.enabled===!1)return null;let i=r.state??v;return ht(e,o,n,i)}function ft(e,t,r){let{className:o,style:n}=e,{state:i=v,ref:a,props:u,stateAttributesMapping:h,enabled:d=!0}=t,g=d?Ee(o,i):void 0,k=d?Ne(n,i):void 0,z=d?Re(i,h):v,R=d&&u?ut(u):void 0,c=d?N(z,R)??{}:v;return typeof document<"u"&&(d?Array.isArray(a)?c.ref=be([c.ref,B(r),...a]):c.ref=Y(c.ref,B(r),a):Y(null,null)),d?(g!==void 0&&(c.className=G(c.className,g)),k!==void 0&&(c.style=N(c.style,k)),c):v}function ut(e){return Array.isArray(e)?Te(e):p(void 0,e)}var gt=Symbol.for("react.lazy");function _t(e){if(e?.$$typeof!==gt)return e;let t=_.Children.toArray(e)[0];return _.isValidElement(t)?t:e}function ht(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=p(r,t.props);return n.ref=r.ref,_.cloneElement(t,n)}if(e&&typeof e=="string")return mt(e,r);throw new Error(ve(8))}function mt(e,t){return e==="button"?(0,q.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,q.createElement)("img",{alt:"",...t,key:t.key}):_.createElement(e,t)}function w(e){return Me(e.defaultTagName??"div",e,e)}var Ue=s(E(),1),Z="data-wp-hash";function J(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vt(document)),e.__wpStyleRuntime}function yt(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Z}]`))if(r.getAttribute(Z)===t)return!0;return!1}function Le(e,t,r){if(!e.head)return;let o=J(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(yt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(Z,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function vt(e){let t=J();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Le(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Ve(e,t){let r=J();r.styles.set(e,t);for(let o of r.documents.keys())Le(o,e,t)}typeof process>"u",Ve("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 Oe={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"};typeof process>"u",Ve("e8e31009f5","._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)}");var He={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},X=(0,Ue.forwardRef)(function({variant:t="body-md",render:r,className:o,...n},i){return w({render:r,defaultTagName:"span",ref:i,props:p(n,{className:I(Oe.text,He.heading,He.p,Oe[t],o)})})});var $e=s(E(),1),Ye=s(V(),1),x=s(b(),1),K="data-wp-hash";function Q(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&wt(document)),e.__wpStyleRuntime}function bt(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${K}]`))if(r.getAttribute(K)===t)return!0;return!1}function Be(e,t,r){if(!e.head)return;let o=Q(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(bt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(K,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function wt(e){let t=Q();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Be(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function M(e,t){let r=Q();r.styles.set(e,t);for(let o of r.documents.keys())Be(o,e,t)}typeof process>"u",M("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var xt={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",M("08122b3d53","@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,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_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 St={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",M("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var j={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",M("e8e31009f5","._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)}");var kt={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},D=(0,$e.forwardRef)(function({children:t,variant:r="default",tone:o="brand",openInNewTab:n=!1,target:i,render:a,className:u,...h},d){let g=n||/^_blank$/i.test(i??"");return w({render:a,defaultTagName:"a",ref:d,props:p(h,{className:I(kt.a,xt["box-sizing"],St["outset-ring--focus-except-active"],r!=="unstyled"&&j.link,r!=="unstyled"&&j[`is-${o}`],r==="unstyled"&&j["is-unstyled"],u),target:i??(n?"_blank":void 0),children:(0,x.jsxs)(x.Fragment,{children:[t,g&&(0,x.jsx)("span",{className:j["link-icon"],role:"img","aria-label":(0,Ye.__)("(opens in a new tab)")})]})})})});var Ge=s(E(),1),ee="data-wp-hash";function te(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Rt(document)),e.__wpStyleRuntime}function zt(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${ee}]`))if(r.getAttribute(ee)===t)return!0;return!1}function qe(e,t,r){if(!e.head)return;let o=te(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(zt(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(ee,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Rt(e){let t=te();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)qe(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Et(e,t){let r=te();r.styles.set(e,t);for(let o of r.documents.keys())qe(o,e,t)}typeof process>"u",Et("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var Nt={stack:"_19ce0419607e1896__stack"},Tt={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)"},O=(0,Ge.forwardRef)(function({direction:t,gap:r,align:o,justify:n,wrap:i,render:a,...u},h){let d={gap:r&&Tt[r],alignItems:o,justifyContent:n,flexDirection:t,flexWrap:i};return w({render:a,ref:h,props:p(u,{style:d,className:Nt.stack})})});import{HostLink as It}from"@wordpress/widget-primitives";var C=s(Fe());var re="data-wp-hash";function oe(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&At(document)),e.__wpStyleRuntime}function Ct(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${re}]`))if(r.getAttribute(re)===t)return!0;return!1}function Ze(e,t,r){if(!e.head)return;let o=oe(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Ct(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(re,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function At(e){let t=oe();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Ze(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function H(e,t){let r=oe();r.styles.set(e,t);for(let o of r.documents.keys())Ze(o,e,t)}typeof process>"u",H("eebb3d0b89","._102f70874f5f6f85__root{flex-shrink:0;height:64px;width:64px}._102f70874f5f6f85__root.c2b8e83bf37a1369__success{--site-health-stroke:var(--wpds-color-stroke-surface-success,#92d39d);--site-health-fg:var(--wpds-color-foreground-content-success,#002900)}._102f70874f5f6f85__root._54958716847ff487__warning{--site-health-stroke:var(--wpds-color-stroke-surface-warning,#e1bd7c);--site-health-fg:var(--wpds-color-foreground-content-warning,#2e1900)}._102f70874f5f6f85__root._3173cf56308a969a__error{--site-health-stroke:var(--wpds-color-stroke-surface-error,#e0afa7);--site-health-fg:var(--wpds-color-foreground-content-error,#470000)}._102f70874f5f6f85__root circle:first-child{stroke:var(--wpds-color-background-track-neutral,#dbdbdb);stroke-width:12}._102f70874f5f6f85__root circle:last-of-type{stroke:var(--site-health-stroke);stroke-width:12;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .5s ease}.fcddc693d8da23b7__percentage{fill:var(--site-health-fg);font-size:36px;font-weight:var(--wpds-typography-font-weight-emphasis,600)}");var U={root:"_102f70874f5f6f85__root",success:"c2b8e83bf37a1369__success",warning:"_54958716847ff487__warning",error:"_3173cf56308a969a__error",percentage:"fcddc693d8da23b7__percentage"};var S=s(b()),ie=90,ne=2*Math.PI*ie;function L({percentage:e,tone:t}){let r=ne*(1-e/100);return(0,S.jsxs)(C.SVG,{className:`${U.root} ${U[t]}`,viewBox:"0 0 200 200",children:[(0,S.jsx)(C.Circle,{r:ie,cx:"100",cy:"100",fill:"transparent",strokeDasharray:ne,strokeDashoffset:0}),(0,S.jsx)(C.Circle,{r:ie,cx:"100",cy:"100",fill:"transparent",strokeDasharray:ne,strokeDashoffset:r}),(0,S.jsxs)("text",{x:"100",y:"100",textAnchor:"middle",dominantBaseline:"middle",className:U.percentage,children:[e,"%"]})]})}typeof process>"u",H("846dda0ace","._8ff8ab5f1d3747b3__root{height:100%;margin:0 auto;max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}.f5b9167dff836480__loading{height:100%;min-height:220px}");var ae={root:"_8ff8ab5f1d3747b3__root",loading:"f5b9167dff836480__loading"};var f=s(b()),Pt=["/wp-site-health/v1/tests/background-updates","/wp-site-health/v1/tests/loopback-requests","/wp-site-health/v1/tests/https-status","/wp-site-health/v1/tests/dotorg-communication","/wp-site-health/v1/tests/authorization-header","/wp-site-health/v1/tests/page-cache"];function jt(e){return e===100?"success":e>=75?"warning":"error"}function Mt(e){return e.recommended+e.critical<=0?(0,l.__)("Great job! Your site currently passes all site health checks."):e.critical===1?(0,l.__)("Your site has a critical issue that should be addressed as soon as possible to improve its performance and security."):e.critical>1?(0,l.__)("Your site has critical issues that should be addressed as soon as possible to improve its performance and security."):e.recommended===1?(0,l.__)("Your site\u2019s health is looking good, but there is still one thing you can do to improve its performance and security."):(0,l.__)("Your site\u2019s health is looking good, but there are still some things you can do to improve its performance and security.")}function Ot(e){let r=`/site-health?status=${["critical","recommended"].filter(o=>e[o]>0).join(",")}`;return`admin.php?page=dashboard-wp-admin&p=${encodeURIComponent(r)}`}function Ht(){let[e,t]=(0,A.useState)(null),[r,o]=(0,A.useState)(!0);if((0,A.useEffect)(()=>{let g=!1,k=Pt.map(z=>(0,Je.default)({path:z}).catch(()=>null));return Promise.all(k).then(z=>{if(g)return;let R={good:0,recommended:0,critical:0};for(let c of z)c?.status&&c.status in R&&R[c.status]++;t(R),o(!1)}),()=>{g=!0}},[]),r)return(0,f.jsx)(O,{className:ae.loading,direction:"column",align:"center",justify:"center",children:(0,f.jsx)(Xe.Spinner,{})});if(!e)return null;let n=e.good+e.recommended+e.critical,i=n>0?Math.round(e.good/n*100):0,a=e.recommended+e.critical,u=jt(i),h=Ot(e),d=(0,l.sprintf)((0,l._n)("Review %d item","Review %d items",a),a);return(0,f.jsxs)(O,{className:ae.root,align:"center",direction:"column",justify:"center",gap:"lg",children:[(0,f.jsx)(L,{percentage:i,tone:u}),(0,f.jsx)(X,{variant:"body-lg",children:Mt(e)}),a>0&&(0,f.jsx)(D,{render:(0,f.jsx)(It,{href:h}),children:d})]})}export{Ht as default}; |