관리-도구
편집 파일: jetpack-ai-admin.js
/*! For license information please see jetpack-ai-admin.js.LICENSE.txt */ (()=>{var e,t,n={6704(){},969(e,t,n){"use strict";n.d(t,{A:()=>r});const r={"admin-page":"sexr0jUxC1jVixdKiDnC",background:"vKQ11sLeAM45M04P1ccj","without-bottom-border":"zWDcRnnZPA743KzSQdUg","admin-page-header":"iWGAhN9gOB48g0jEO1OQ","admin-page-footer":"N7JAnsuu_FtPrtDg8bVw","sandbox-domain-badge":"JOYmuxQjG4FArIIUxJfA"}},7934(e,t,n){"use strict";n.d(t,{A:()=>r});const r={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},5250(){},6727(e,t,n){"use strict";n.d(t,{A:()=>r});const r={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",smcols:"4",mdcols:"8",lgcols:"12","col-sm-1":"RuVLl3q4lxTQa3wbhBJB","col-sm-1-start":"f9LZTRG4MMK42rS89afW","col-sm-1-end":"bHe_zKxjjpUwHw_MdYE1","col-sm-2":"QZbNrOqE2aNSn50xVhpU","col-sm-2-start":"ev7W3z7zVYPeHAlYqZjf","col-sm-2-end":"NJWd1m_e7lOiPYru2ZMP","col-sm-3":"Xc6nt1Qc1DI0Z2A3gt1r","col-sm-3-start":"UIcN_GXiPRoIsin8Kohg","col-sm-3-end":"GRKCyqb5LufCSCgykKFc","col-sm-4":"i_qTq8gqhhC3vIUepVRB","col-sm-4-start":"G3qaZ3Jpbvam_1XvGxgc","col-sm-4-end":"VRCNYKZtO9zukEwmgP1y","col-md-1":"tRm008K_WJL79WoNZTNL","col-md-1-start":"l5T2P_bgKts4tdaRkS1d","col-md-1-end":"zOCxfLZpF6BlgC7a_Yq1","col-md-2":"F80DdgVn0m5OpvtSQWka","col-md-2-start":"oI1c7JYfiJtMQHbhngtU","col-md-2-end":"pMQtA_4jh1_1lVknqEP5","col-md-3":"VenqMpdgyKQVUNNQcfqd","col-md-3-start":"seNYL99uoczf9V4MxBxT","col-md-3-end":"YKfF1HFhI9KygA5l3b2J","col-md-4":"yAi0Cv1xDWkoqsaUhvhR","col-md-4-start":"ubhnyZOnkgxNhh6XtVWv","col-md-4-end":"RGOPGQbWMJ9Ei5oFxS7X","col-md-5":"Sz1E2aWbX483ijdi6yge","col-md-5-start":"tku6_bRYrX9tMbgYGmIl","col-md-5-end":"b5JHttOhSEcI1WBlqAjk","col-md-6":"FboSx5MoKTAWbxXyYlCw","col-md-6-start":"Jhs8yEEmodG30edbJvag","col-md-6-end":"IpzbbKVqEqPcfIGkXkwt","col-md-7":"mhCPwfAZ4Kmm_empzJAq","col-md-7-start":"x034ilrJF7rO9UJB2rI1","col-md-7-end":"Wt8t2e16viRrOJ1lLA5v","col-md-8":"S6pIrEy9AMLKx9bgh_Ae","col-md-8-start":"kEfI4tGyuWfHTlRnvIab","col-md-8-end":"PUzX4RRsKq1dnsz3gebS","col-lg-1":"X_pdcLJikd8LS_YAdJlB","col-lg-1-start":"tl936d14Huby4khYp05X","col-lg-1-end":"hnge0LnR69d3NXEtEE1t","col-lg-2":"fj0NUMuyZQcPNgKcjp5Z","col-lg-2-start":"R2ncBX7a2NigdYCcV1OX","col-lg-2-end":"t8vMSDVYno9k9itRwnXb","col-lg-3":"wsDuEN2GqHx6qzo8dUdk","col-lg-3-start":"cIEVPUweWtLBy3xaXnMx","col-lg-3-end":"fajUWBwu1m2B479j3jmz","col-lg-4":"YR0c7fQTgMkDdWzwSyLp","col-lg-4-start":"xlwp8BmplxkKNMI7gamo","col-lg-4-end":"_C4O1w9DUqx1m3gPf8aA","col-lg-5":"Z54F1hAErckAIrKlxnXW","col-lg-5-start":"ezSDWkRHmKSxDJXxuiOH","col-lg-5-end":"T0ChoeAjGJjkkNrYhD4g","col-lg-6":"qtMoMPF6yHvGJnWHSsde","col-lg-6-start":"gdoywN5VPiWERfIBqkph","col-lg-6-end":"wUev_VH5uf_pwFFlbnAU","col-lg-7":"egIPDFJsOpownTClq9XP","col-lg-7-start":"yGhp9yoAW7k0kQik9AB7","col-lg-7-end":"SJ43U9mR5wUg5V2qBeQA","col-lg-8":"cTuyHfMwSUJxN_HdIEgd","col-lg-8-start":"smCr8DaIagcumdvdldiK","col-lg-8-end":"T03NHzQJvzwL6wAfIiTL","col-lg-9":"pMvxM3RJGjqyNdf9qg1Y","col-lg-9-start":"iIVpNRwEnQ_JI5gpp9EN","col-lg-9-end":"ZbQ4u4vGSX5rJOje4uGL","col-lg-10":"gKb5wuIDAlKGbrjK2vxy","col-lg-10-start":"Z7pINdImE2WJiYnZBTqm","col-lg-10-end":"ZTxp6qpvwurMdOnLLSz1","col-lg-11":"NnQTlbfnxPDR6cQ7rygg","col-lg-11-start":"O137wZd6Yl0olSA9PsXR","col-lg-11-end":"zf2OJtQ2MPz6SDoh6CB0","col-lg-12":"U3H6UHW6HqRt9hdzVg3O","col-lg-12-start":"zynnNeS_ZBTxABcVpUQH","col-lg-12-end":"vI8tltFZtFUNAy9Iag9s"}},4824(e,t,n){"use strict";n.d(t,{A:()=>r});const r={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},1110(){},4818(){},1601(){},4997(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,a=365.25*o;function s(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"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 s=/^(-?(?:\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(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;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>=o)return s(e,i,o,"day");if(i>=r)return s(e,i,r,"hour");if(i>=n)return s(e,i,n,"minute");if(i>=t)return s(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"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))}},372(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(67);const o=n.n(r)()("dops:analytics");let i,a;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const s={initialize:function(e,t,n){s.setUser(e,t),s.setSuperProps(n),s.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){a={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]);o("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);s.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]);o("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Built stat "%s" in group "%s"',t,e);return n}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){s.tracks.recordPageView(e),s.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,o,i,a){s.ga.recordPurchase(e,t,n,r,o,i,a)}},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&&(o("- Super Props: %o",i),t=Object.assign(t,i)),o('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):o('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};s.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){s.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){o("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};s.ga.initialized||(a&&(e={userId:"u-"+a.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),s.ga.initialized=!0)},recordPageView:function(e,t){s.ga.initialize(),o("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,r){s.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(i+=" [Option Label: "+n+"]"),void 0!==r&&(i+=" [Option Value: "+r+"]"),o(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,o,i,a){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:a}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:o,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){a&&window._tkq.push(["identifyUser",a.ID,a.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=s},5932(e,t,n){"use strict";n.d(t,{Ay:()=>u});var r=n(6439),o=n(3832);function i(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const a=i("JsonParseError"),s=i("JsonParseAfterRedirectError"),c=i("Api404Error"),l=i("Api404AfterRedirectError"),d=i("FetchNetworkError");const u=new function(e,t){let n=e,i=e,a={"X-WP-Nonce":t},s={credentials:"same-origin",headers:a},c={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){i=e},setApiNonce(e){a={"X-WP-Nonce":e},s={credentials:"same-origin",headers:a},c={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,o)=>{const i={};return(0,r.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(i.redirect_uri=t),o&&(i.from=o),g(`${n}jetpack/v4/connection/register`,c,{body:JSON.stringify(i)}).then(p).then(f)},fetchAuthorizationUrl:e=>u((0,o.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),s).then(p).then(f),fetchSiteConnectionData:()=>u(`${n}jetpack/v4/connection/data`,s).then(f),fetchSiteConnectionStatus:()=>u(`${n}jetpack/v4/connection`,s).then(f),fetchSiteConnectionTest:()=>u(`${n}jetpack/v4/connection/test`,s).then(p).then(f),fetchUserConnectionData:()=>u(`${n}jetpack/v4/connection/data`,s).then(f),fetchUserTrackingSettings:()=>u(`${n}jetpack/v4/tracking/settings`,s).then(p).then(f),updateUserTrackingSettings:e=>g(`${n}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),disconnectSite:()=>g(`${n}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(p).then(f),fetchConnectUrl:()=>u(`${n}jetpack/v4/connection/url`,s).then(p).then(f),unlinkUser:(e=!1,t={})=>{const r={linked:!1,force:!!e};return t.disconnectAllUsers&&(r["disconnect-all-users"]=!0),g(`${n}jetpack/v4/connection/user`,c,{body:JSON.stringify(r)}).then(p).then(f)},reconnect:()=>g(`${n}jetpack/v4/connection/reconnect`,c).then(p).then(f),fetchConnectedPlugins:()=>u(`${n}jetpack/v4/connection/plugins`,s).then(p).then(f),setHasSeenWCConnectionModal:()=>g(`${n}jetpack/v4/seen-wc-connection-modal`,c).then(p).then(f),fetchModules:()=>u(`${n}jetpack/v4/module/all`,s).then(p).then(f),fetchModule:e=>u(`${n}jetpack/v4/module/${e}`,s).then(p).then(f),activateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(p).then(f),deactivateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>g(`${n}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(p).then(f),updateSettings:e=>g(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),getProtectCount:()=>u(`${n}jetpack/v4/module/protect/data`,s).then(p).then(f),resetOptions:e=>g(`${n}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(p).then(f),activateVaultPress:()=>g(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(f),getVaultPressData:()=>u(`${n}jetpack/v4/module/vaultpress/data`,s).then(p).then(f),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),g(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify(r)}).then(p).then(f)},activateAkismet:()=>g(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(f),getAkismetData:()=>u(`${n}jetpack/v4/module/akismet/data`,s).then(p).then(f),checkAkismetKey:()=>u(`${n}jetpack/v4/module/akismet/key/check`,s).then(p).then(f),checkAkismetKeyTyped:e=>g(`${n}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(p).then(f),getFeatureTypeStatus:e=>u(`${n}jetpack/v4/feature/${e}`,s).then(p).then(f),fetchStatsData:e=>u(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),s).then(p).then(f).then(m),getPluginUpdates:()=>u(`${n}jetpack/v4/updates/plugins`,s).then(p).then(f),getPlans:()=>u(`${n}jetpack/v4/plans`,s).then(p).then(f),fetchSettings:()=>u(`${n}jetpack/v4/settings`,s).then(p).then(f),updateSetting:e=>g(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),fetchSiteData:()=>u(`${n}jetpack/v4/site`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>u(`${n}jetpack/v4/site/features`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteProducts:()=>u(`${n}jetpack/v4/site/products`,s).then(p).then(f),fetchSitePurchases:()=>u(`${n}jetpack/v4/site/purchases`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>u(`${n}jetpack/v4/site/benefits`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteDiscount:()=>u(`${n}jetpack/v4/site/discount`,s).then(p).then(f).then(e=>e.data),fetchSetupQuestionnaire:()=>u(`${n}jetpack/v4/setup/questionnaire`,s).then(p).then(f),fetchRecommendationsData:()=>u(`${n}jetpack/v4/recommendations/data`,s).then(p).then(f),fetchRecommendationsProductSuggestions:()=>u(`${n}jetpack/v4/recommendations/product-suggestions`,s).then(p).then(f),fetchRecommendationsUpsell:()=>u(`${n}jetpack/v4/recommendations/upsell`,s).then(p).then(f),fetchRecommendationsConditional:()=>u(`${n}jetpack/v4/recommendations/conditional`,s).then(p).then(f),saveRecommendationsData:e=>g(`${n}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>u(`${n}jetpack/v4/products`,s).then(p).then(f),fetchRewindStatus:()=>u(`${n}jetpack/v4/rewind`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>u(`${n}jetpack/v4/scan`,s).then(p).then(f).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>g(`${n}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(p).then(f),fetchPluginsData:()=>u(`${n}jetpack/v4/plugins`,s).then(p).then(f),fetchIntroOffers:()=>u(`${n}jetpack/v4/intro-offers`,s).then(p).then(f),fetchVerifySiteGoogleStatus:e=>u(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,s).then(p).then(f),verifySiteGoogle:e=>g(`${n}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(p).then(f),submitSurvey:e=>g(`${n}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(p).then(f),saveSetupQuestionnaire:e=>g(`${n}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(p).then(f),updateLicensingError:e=>g(`${n}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(p).then(f),updateLicenseKey:e=>g(`${n}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(p).then(f),getUserLicensesCounts:()=>u(`${n}jetpack/v4/licensing/user/counts`,s).then(p).then(f),getUserLicenses:()=>u(`${n}jetpack/v4/licensing/user/licenses`,s).then(p).then(f),updateLicensingActivationNoticeDismiss:e=>g(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(p).then(f),updateRecommendationsStep:e=>g(`${n}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>g(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(p),startIDCFresh:e=>g(`${n}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(p).then(f),migrateIDC:()=>g(`${n}jetpack/v4/identity-crisis/migrate`,c).then(p),attachLicenses:e=>g(`${n}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(p).then(f),fetchSearchPlanInfo:()=>u(`${i}jetpack/v4/search/plan`,s).then(p).then(f),fetchSearchSettings:()=>u(`${i}jetpack/v4/search/settings`,s).then(p).then(f),updateSearchSettings:e=>g(`${i}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),fetchSearchStats:()=>u(`${i}jetpack/v4/search/stats`,s).then(p).then(f),fetchWafSettings:()=>u(`${n}jetpack/v4/waf`,s).then(p).then(f),updateWafSettings:e=>g(`${n}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(p).then(f),fetchWordAdsSettings:()=>u(`${n}jetpack/v4/wordads/settings`,s).then(p).then(f),updateWordAdsSettings:e=>g(`${n}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>u(`${i}jetpack/v4/search/pricing`,s).then(p).then(f),fetchMigrationStatus:()=>u(`${n}jetpack/v4/migration/status`,s).then(p).then(f),fetchBackupUndoEvent:()=>u(`${n}jetpack/v4/site/backup/undo-event`,s).then(p).then(f),fetchBackupPreflightStatus:()=>u(`${n}jetpack/v4/site/backup/preflight`,s).then(p).then(f)};function u(e,t){return fetch(l(e),t)}function g(e,t,n){return fetch(e,Object.assign({},t,n)).catch(h)}function m(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise(()=>{throw e.redirected?new l(e.redirected):new c}):e.json().catch(e=>g(e)).then(t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n})}function f(e){return e.json().catch(t=>g(t,e.redirected,e.url))}function g(e,t,n){throw t?new s(n):new a}function h(){throw new d}},2947(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(5932),o=n(1753),i=(n(6704),n(6427)),a=n(7723),s=n(3022),c=n(1609),l=n(8250),d=n(7142),u=n(8509),p=n(5918),f=n(969),g=n(790);const __=a.__,h=({children:e,className:t,showHeader:n=!0,showFooter:h=!0,showBackground:m=!0,sandboxedDomain:b="",apiRoot:v="",apiNonce:w="",optionalMenuItems:y,header:x,title:_,subTitle:k,logo:C,actions:A,breadcrumbs:j,tabs:S,showBottomBorder:E=!0,unwrapped:R=!1})=>{(0,c.useEffect)(()=>{r.Ay.setApiRoot(v),r.Ay.setApiNonce(w)},[v,w]);const M=(0,s.A)(f.A["admin-page"],"jp-admin-page",t,{[f.A.background]:m,[f.A["without-bottom-border"]]:S||!E}),T=(0,c.useCallback)(async()=>{try{const e=await r.Ay.fetchSiteConnectionTest();window.alert(e.message)}catch(e){window.alert((0,a.sprintf)(/* translators: %s: an error message. */ __("There was an error testing Jetpack. Error: %s","jetpack"),e.message))}},[]),I=_?(0,g.jsxs)(i.__experimentalHStack,{spacing:2,justify:"left",children:[C||(0,g.jsx)(d.A,{showText:!1,height:20}),(0,g.jsx)("span",{children:_})]}):void 0;return n&&(I||j)?(0,g.jsx)("div",{className:M,children:(0,g.jsxs)(o.A,{ariaLabel:_,breadcrumbs:j,title:I,subTitle:k,actions:A,showSidebarToggle:!1,children:[S,R?e:(0,g.jsx)(p.A,{fluid:!0,horizontalSpacing:0,children:(0,g.jsx)(u.A,{children:e})}),h&&(0,g.jsx)(l.A,{menu:y})]})}):(0,g.jsxs)("div",{className:M,children:[n&&(0,g.jsx)(p.A,{horizontalSpacing:5,children:(0,g.jsxs)(u.A,{className:(0,s.A)(f.A["admin-page-header"],"jp-admin-page-header"),children:[x||(0,g.jsx)(d.A,{}),b&&(0,g.jsx)("code",{className:f.A["sandbox-domain-badge"],onClick:T,onKeyDown:T,role:"button",tabIndex:0,title:`Sandboxing via ${b}. Click to test connection.`,children:"API Sandboxed"})]})}),(0,g.jsx)(p.A,{fluid:!0,horizontalSpacing:0,children:(0,g.jsx)(u.A,{children:e})}),h&&(0,g.jsx)(l.A,{menu:y})]})}},8907(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(7723),o=n(3022),i=n(790);const __=r.__,a=({title:e=__("An Automattic Airline","jetpack"),height:t=7,className:n,...r})=>(0,i.jsxs)("svg",{role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:t,className:(0,o.A)("jp-automattic-byline-logo",n),...r,children:[(0,i.jsx)("desc",{id:"jp-automattic-byline-logo-title",children:e}),(0,i.jsx)("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),(0,i.jsx)("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),(0,i.jsx)("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})]})},1112(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(6427),o=n(7723),i=n(3109),a=n(1866),s=n(3022),c=n(1609),l=n(7934),d=n(790);const __=o.__,u=(0,c.forwardRef)((e,t)=>{const{children:n,variant:o="primary",size:c="normal",weight:u="bold",icon:p,iconSize:f,disabled:g,isDestructive:h,isLoading:m,isExternalLink:b,className:v,text:w,fullWidth:y,...x}=e,_=(0,s.A)(l.A.button,v,{[l.A.normal]:"normal"===c,[l.A.small]:"small"===c,[l.A.icon]:Boolean(p),[l.A.loading]:m,[l.A.regular]:"regular"===u,[l.A["full-width"]]:y,[l.A["is-icon-button"]]:Boolean(p)&&!n}),k="normal"===c?20:16,C=b&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.A,{size:k,icon:a.A,className:l.A["external-icon"]}),(0,d.jsx)(r.VisuallyHidden,{as:"span",children:/* translators: accessibility text */ __("(opens in a new tab)","jetpack")})]}),A=b?"_blank":void 0,j=n?.[0]&&null!==n[0]&&"components-tooltip"!==n?.[0]?.props?.className,S={ref:t,target:A,variant:o,className:(0,s.A)(_,{"has-text":!!p&&j}),icon:b?void 0:p,iconSize:f,disabled:g,"aria-disabled":g,isDestructive:h,text:w,...x};return(0,d.jsxs)(r.Button,{...S,children:[m&&(0,d.jsx)(r.Spinner,{}),(0,d.jsx)("span",{children:n}),C]})});u.displayName="Button";const p=u},8250(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(7999),o=n(7723),i=n(1220),a=n(9968),s=n(9654),c=n(3022),l=n(3924),d=n(8907),u=(n(5250),n(7142)),p=n(790);const __=o.__,f=({className:e,menu:t,...n})=>{let o=[];return(0,r.isWpcomPlatformSite)()||window?.JetpackNetworkAdminData||(o=[{label:__("Products","jetpack"),href:(0,r.getAdminUrl)("admin.php?page=my-jetpack#/products")},{label:__("Help","jetpack"),href:(0,r.getAdminUrl)("admin.php?page=my-jetpack#/help")},...o]),t&&(o=[...o,...t]),(0,p.jsxs)(i.B,{render:(0,p.jsx)("footer",{}),className:(0,c.A)("jetpack-footer",e),"aria-label":__("Jetpack","jetpack"),role:"contentinfo",direction:"row",justify:"flex-start",align:"center",wrap:"wrap",gap:"xl",...n,children:[(0,p.jsxs)(i.B,{className:"jetpack-footer__logo",direction:"row",gap:"sm",align:"center",children:[(0,p.jsx)(u.A,{showText:!1,height:16,"aria-hidden":"true"}),(0,p.jsx)(a.E,{variant:"body-md",children:"Jetpack"})]}),(0,p.jsx)(i.B,{render:(0,p.jsx)("ul",{}),direction:"row",gap:"lg",wrap:"wrap",children:o.map(e=>{const t="button"===e.role;return(0,p.jsx)("li",{children:(0,p.jsx)(a.E,{variant:"body-sm",className:"jetpack-footer__menu-item",render:t?(0,p.jsx)(s.N,{render:(0,p.jsx)(a.E,{variant:"body-md",render:(0,p.jsx)("span",{})}),tone:"neutral",variant:"default",role:e.role,tabIndex:0,onClick:e.onClick||void 0,onKeyDown:e.onKeyDown||void 0}):(0,p.jsx)(s.N,{render:(0,p.jsx)(a.E,{variant:"body-md",render:(0,p.jsx)("a",{})}),tone:"neutral",variant:"default",href:e.href||"",title:e.title||"",role:e.role,onClick:e.onClick||void 0,onKeyDown:e.onKeyDown||void 0}),children:e.label})},e.label)})}),(0,p.jsx)("a",{className:"jetpack-footer__a8c",href:(0,l.A)("a8c-about"),rel:"noopener noreferrer",target:"_blank",children:(0,p.jsx)(d.A,{height:8})})]})}},7142(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(7723),o=n(3022),i=n(790);const __=r.__,a=({logoColor:e="#069e08",showText:t=!0,className:n,height:r=32,title:a,...s})=>{const c=t?"0 0 118 32":"0 0 32 32",l=a??__("Jetpack Logo","jetpack");return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:(0,o.A)("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title",height:r,...s,role:"img",children:[(0,i.jsx)("title",{id:"jetpack-logo-title",children:l}),(0,i.jsx)("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),(0,i.jsx)("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),(0,i.jsx)("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),(0,i.jsx)("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),(0,i.jsx)("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),(0,i.jsx)("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),(0,i.jsx)("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})]})]})}},8509(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(3022),o=n(1609),i=n(6727);const a=Number(i.A.smcols),s=Number(i.A.mdcols),c=Number(i.A.lgcols),l=e=>{const{children:t,tagName:n="div",className:l}=e,d=Math.min(a,"number"==typeof e.sm?e.sm:a),u=Math.min(a,"object"==typeof e.sm?e.sm.start:0),p=Math.min(a,"object"==typeof e.sm?e.sm.end:0),f=Math.min(s,"number"==typeof e.md?e.md:s),g=Math.min(s,"object"==typeof e.md?e.md.start:0),h=Math.min(s,"object"==typeof e.md?e.md.end:0),m=Math.min(c,"number"==typeof e.lg?e.lg:c),b=Math.min(c,"object"==typeof e.lg?e.lg.start:0),v=Math.min(c,"object"==typeof e.lg?e.lg.end:0),w=(0,r.A)(l,{[i.A[`col-sm-${d}`]]:!(u&&p),[i.A[`col-sm-${u}-start`]]:u>0,[i.A[`col-sm-${p}-end`]]:p>0,[i.A[`col-md-${f}`]]:!(g&&h),[i.A[`col-md-${g}-start`]]:g>0,[i.A[`col-md-${h}-end`]]:h>0,[i.A[`col-lg-${m}`]]:!(b&&v),[i.A[`col-lg-${b}-start`]]:b>0,[i.A[`col-lg-${v}-end`]]:v>0});return(0,o.createElement)(n,{className:w},t)}},5918(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(3022),o=n(1609),i=n(4824);const a=({children:e,fluid:t=!1,tagName:n="div",className:a,horizontalGap:s=1,horizontalSpacing:c=1},l)=>{const d=(0,o.useMemo)(()=>{const e=`calc( var(--horizontal-spacing) * ${c} )`;return{paddingTop:e,paddingBottom:e,rowGap:`calc( var(--horizontal-spacing) * ${s} )`}},[s,c]),u=(0,r.A)(a,i.A.container,{[i.A.fluid]:t});return(0,o.createElement)(n,{className:u,style:d,ref:l},e)},s=(0,o.forwardRef)(a)},7506(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(6427),o=n(6087),i=n(1112),a=(n(1110),n(790));const s=e=>{const{icon:t,title:n,description:s,primaryCtaLabel:c,primaryCtaURL:l,primaryCtaIsExternalLink:d,primaryCtaOnClick:u,secondaryCtaLabel:p,secondaryCtaURL:f,secondaryCtaIsExternalLink:g,secondaryCtaOnClick:h}=e;return(0,a.jsx)(r.Card,{isRounded:!0,size:"large",children:(0,a.jsxs)(r.CardBody,{className:"upsell-banner",size:"large",children:[t&&(0,a.jsx)("div",{className:"upsell-banner--icon",children:(0,a.jsx)("img",{src:t,alt:""})}),(0,a.jsxs)("div",{className:"upsell-banner--content",children:[(0,a.jsxs)("div",{className:"upsell-banner--content-info",children:[(0,a.jsx)("h3",{children:n}),(0,a.jsx)("p",{children:(0,o.createInterpolateElement)(s,{br:(0,a.jsx)("br",{})})})]}),(0,a.jsxs)("div",{className:"upsell-banner--content-cta",children:[p&&f&&(0,a.jsx)(i.A,{className:"upsell-banner--content-cta-button secondary",href:f,onClick:h??void 0,isExternalLink:g,children:p}),c&&l&&(0,a.jsx)(i.A,{className:"upsell-banner--content-cta-button primary",href:l,onClick:u??void 0,isExternalLink:d,children:c})]})]})]})})}},3924(e,t,n){"use strict";function r(e,t={}){const n={};let r;if("undefined"!=typeof window&&(r=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map(e=>e+"="+n[e]).join("&")}n.d(t,{A:()=>r})},6439(e,t,n){let r={};try{r=n(4277)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const o=e=>Object.hasOwn(r,e);e.exports={jetpackConfigHas:o,jetpackConfigGet:e=>{if(!o(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},6154(e,t,n){"use strict";n.d(t,{A:()=>S});var r=n(7142),o=n(2947),i=n(6427),a=n(6087),s=n(7723),c=n(1220),l=n(8050),d=n(1868),u=n(5372),p=n(3835),f=n(140),g=n(8622),h=n(9679),m=n(8501),b=n(4790),v=n(2997),w=n(790);const __=s.__,{blogId:y,activityLogUrl:x,apiRoot:_,apiNonce:k}=window?.jetpackAiSettings??{},C={hub:"AI",read:__("Read","jetpack"),write:__("Write","jetpack"),setup:__("Connect external AI agent","jetpack")},A={hub:__("Control how AI agents interact with your site.","jetpack"),read:__("View your site’s content.","jetpack"),write:__("Create, update, and manage content on your site.","jetpack"),setup:__("Get instructions for connecting your external AI assistant.","jetpack")};function j({view:e,onNavigate:t}){return(0,w.jsx)("nav",{"aria-label":__("Breadcrumbs","jetpack"),children:(0,w.jsxs)("ul",{className:"admin-ui-breadcrumbs__list jetpack-ai-admin__breadcrumbs",children:[(0,w.jsx)("li",{children:(0,w.jsxs)("button",{type:"button",className:"jetpack-ai-admin__breadcrumb-link",onClick:t,children:[(0,w.jsx)(r.A,{showText:!1,height:20}),"AI"]})}),(0,w.jsx)("li",{children:(0,w.jsx)("span",{className:"jetpack-ai-admin__breadcrumb-current",children:C[e]})})]})})}function S(){const[e,t]=(0,a.useState)("hub"),[n,r]=(0,a.useState)(null),{isLoading:s,savingToolIds:S,mcpAbilities:E,hasMcpAccess:R,error:M,updateMcpAbilities:T}=(0,b.T)();(0,a.useEffect)(()=>{!s&&R&&p.A.tracks.recordEvent("jetpack_mcp_settings_viewed")},[s,R]);const I=(0,a.useCallback)(e=>(r(null),T(e).catch(()=>{r(__("Failed to save MCP settings. Please try again.","jetpack"))})),[T]),O=(0,a.useCallback)(()=>r(null),[]),N=(0,a.useCallback)(()=>t("hub"),[]),P="hub"!==e;return(0,w.jsx)(o.A,{title:P?void 0:C.hub,subTitle:A[e],breadcrumbs:P?(0,w.jsx)(j,{view:e,onNavigate:N}):void 0,apiRoot:_,apiNonce:k,children:(0,w.jsxs)("div",{className:"jetpack-ai-admin__content",children:[s&&(0,w.jsx)("div",{className:"jetpack-ai-admin__loading",children:(0,w.jsx)(i.Spinner,{})}),!s&&M&&(0,w.jsx)(l.b,{intent:"error",children:(0,w.jsx)(d.V,{children:M})}),!s&&n&&(0,w.jsxs)(l.b,{intent:"error",children:[(0,w.jsx)(d.V,{children:n}),(0,w.jsx)(u.U,{label:__("Dismiss","jetpack"),onClick:O})]}),!s&&!M&&!y&&(0,w.jsx)(l.b,{intent:"warning",children:(0,w.jsx)(d.V,{children:__("This site is not connected to WordPress.com. Please connect Jetpack to manage MCP settings.","jetpack")})}),!s&&!M&&!!y&&!R&&(0,w.jsx)(m.A,{}),!s&&!M&&!!y&&R&&(0,w.jsxs)(c.B,{direction:"column",gap:"md",children:["hub"===e&&(0,w.jsx)(f.A,{mcpAbilities:E,blogId:y,activityLogUrl:x,savingToolIds:S,onNavigate:t,onUpdate:I}),"read"===e&&(0,w.jsx)(g.A,{mcpAbilities:E,blogId:y,savingToolIds:S,onUpdate:I}),"write"===e&&(0,w.jsx)(v.A,{mcpAbilities:E,blogId:y,savingToolIds:S,onUpdate:I}),"setup"===e&&(0,w.jsx)(h.A,{})]})]})})}},666(e,t,n){"use strict";n.d(t,{G7:()=>u,Nr:()=>d,TI:()=>p,ai:()=>f,h:()=>s,sg:()=>i});var r=n(7723);const __=r.__,o={POSTS:__("Posts","jetpack"),PAGES:__("Pages","jetpack"),DESIGN:__("Design","jetpack"),SITES:__("Sites","jetpack"),ACCOUNT:__("Account","jetpack"),DOMAINS:__("Domains","jetpack"),DEVELOPER_TESTING:__("Developer & testing","jetpack"),UNCATEGORIZED:__("Uncategorized","jetpack")},i=[o.SITES,o.POSTS,o.PAGES,o.DESIGN,o.DOMAINS,o.ACCOUNT,o.DEVELOPER_TESTING,o.UNCATEGORIZED],a={POSTS:__("Posts","jetpack"),COMMENTS:__("Comments","jetpack"),CATEGORIES_TAGS:__("Categories & tags","jetpack"),SITES:__("Sites","jetpack"),MEDIA:__("Media","jetpack"),SITE_SETTINGS:__("Site settings","jetpack"),ANALYTICS:__("Analytics","jetpack"),ACCOUNT:__("Account","jetpack"),NOTIFICATIONS:__("Notifications","jetpack")},s={[o.POSTS]:[a.POSTS,a.COMMENTS,a.CATEGORIES_TAGS],[o.SITES]:[a.SITES,a.SITE_SETTINGS,a.MEDIA,a.ANALYTICS],[o.ACCOUNT]:[a.ACCOUNT,a.NOTIFICATIONS]},c={posts:o.POSTS,comments:o.POSTS,"categories-tags":o.POSTS,pages:o.PAGES,design:o.DESIGN,sites:o.SITES,media:o.SITES,users:o.SITES,plugins:o.SITES,"site-settings":o.SITES,analytics:o.SITES,account:o.ACCOUNT,notifications:o.ACCOUNT,billing:o.ACCOUNT,domains:o.DOMAINS,"developer-testing":o.DEVELOPER_TESTING},l={posts:a.POSTS,comments:a.COMMENTS,"categories-tags":a.CATEGORIES_TAGS,sites:a.SITES,media:a.MEDIA,users:a.SITE_SETTINGS,plugins:a.SITE_SETTINGS,"site-settings":a.SITE_SETTINGS,analytics:a.ANALYTICS,account:a.ACCOUNT,notifications:a.NOTIFICATIONS,billing:a.ACCOUNT};function d(e,t){const n=t?.category;if(n)return l[n]}function u(e,t){return!1===t?.readonly}function p(e,t){const n=t?.category;return n&&c[n]?c[n]:o.UNCATEGORIZED}function f(e){return e}},140(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(6427),o=n(6087),i=n(7723),a=n(3758),s=n(8329),c=n(4211),l=n(8847),d=n(9203),u=n(815),p=n(2243),f=n(5210),g=n(5788),h=n(1220),m=n(2326),b=n(3835),v=n(666),w=n(4085),y=(n(4818),n(790));const __=i.__;function x(e,t){if(0===e.length)return t?{text:__("All enabled","jetpack"),intent:"success"}:{text:__("Disabled","jetpack")};const n=e.filter(([,e])=>e.enabled).length;return n===e.length?{text:__("All enabled","jetpack"),intent:"success"}:0===n?{text:__("Disabled","jetpack")}:{ /* translators: %1$d: enabled count, %2$d: total count */ text:(0,i.sprintf)(__("%1$d of %2$d enabled","jetpack"),n,e.length),intent:"info"}}const _={success:"stable",info:"informational",warning:"medium",neutral:"draft"};function k({badge:e}){const t=e.intent??"neutral",n={success:p.A,info:l.A,warning:a.A}[t];return(0,y.jsx)(g.E,{intent:_[t]??"draft",children:n?(0,y.jsxs)("span",{className:"jetpack-ai-mcp__badge-content",children:[(0,y.jsx)(r.Icon,{icon:n,size:14}),e.text]}):e.text})}function C({icon:e,title:t,badge:n,onClick:o}){return(0,y.jsx)(m.$,{className:"jetpack-ai-mcp__summary-row",onClick:o,variant:"minimal",tone:"neutral",children:(0,y.jsxs)(h.B,{direction:"row",justify:"space-between",align:"center",style:{width:"100%"},children:[(0,y.jsxs)(h.B,{direction:"row",gap:"sm",align:"center",justify:"flex-start",children:[(0,y.jsx)(r.Icon,{className:"jetpack-ai-mcp__row-icon",icon:e,size:24}),(0,y.jsx)(r.__experimentalText,{children:t})]}),(0,y.jsxs)(h.B,{direction:"row",gap:"sm",align:"center",justify:"flex-end",children:[n&&(0,y.jsx)(k,{badge:n}),(0,y.jsx)(r.Icon,{icon:s.A,size:20})]})]})})}function A({title:e,description:t,onClick:n}){return(0,y.jsxs)("button",{className:"jetpack-ai-mcp__connect-row",onClick:n,type:"button",children:[(0,y.jsx)("span",{className:"jetpack-ai-mcp__connect-row-icon",children:(0,y.jsx)(r.Icon,{icon:c.A,size:24})}),(0,y.jsxs)("span",{className:"jetpack-ai-mcp__connect-row-text",children:[(0,y.jsx)(r.__experimentalText,{as:"p",className:"jetpack-ai-mcp__connect-row-title",weight:600,children:e}),(0,y.jsx)(r.__experimentalText,{as:"p",className:"jetpack-ai-mcp__connect-row-description",variant:"muted",children:t})]}),(0,y.jsx)("span",{className:"jetpack-ai-mcp__connect-row-chevron",children:(0,y.jsx)(r.Icon,{icon:s.A,size:24})})]})}function j({mcpAbilities:e,blogId:t,activityLogUrl:n,savingToolIds:i,onNavigate:a,onUpdate:c}){const l=(0,w.gt)(e??{}),p=(0,w.jv)(e??{}),g=(0,w.cm)(e??{},t),m=p.size?Object.fromEntries(Object.entries(l).filter(([e])=>p.has(e))):l,_=(0,w.h5)(e??{},t),k=(0,w.eH)(m,g,_),j=Object.keys(g).length>0,S=e?.site_level_enabled_default??!1,E=Object.entries(k).filter(([,e])=>!1!==e.visible),R=E.filter(([e,t])=>!(0,v.G7)(e,t)),M=E.filter(([e,t])=>(0,v.G7)(e,t)),T=S?{text:__("All enabled","jetpack"),intent:"success"}:{text:__("Disabled","jetpack")},I=j?x(R,S):T,O=j?x(M,S):T,N=(0,o.useCallback)(e=>{b.A.tracks.recordEvent("jetpack_mcp_enabled_toggled",{enabled:e});const n={};e&&R.forEach(([e])=>{n[e]=!0}),c({sites:[{blog_id:t,site_level_enabled:e,abilities:n}]})},[t,c,R]),P=(0,o.useCallback)(()=>a("read"),[a]),z=(0,o.useCallback)(()=>a("write"),[a]),D=(0,o.useCallback)(()=>a("setup"),[a]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(r.Card,{className:"jetpack-ai-mcp__access-card",children:[(0,y.jsx)(r.CardBody,{children:(0,y.jsxs)(h.B,{direction:"column",gap:"md",children:[(0,y.jsxs)(h.B,{direction:"column",gap:"xs",children:[(0,y.jsx)(r.__experimentalText,{as:"h3",weight:600,children:__("External AI agent access","jetpack")}),(0,y.jsx)(r.__experimentalText,{variant:"muted",children:__("Allow external AI agents to access this site via MCP.","jetpack")})]}),(0,y.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:_,disabled:i.has("__site_level__"),label:__("Enable MCP access","jetpack"),onChange:N})]})}),_&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(r.CardDivider,{}),(0,y.jsx)(C,{icon:f.A,title:__("Read","jetpack"),badge:I,onClick:P}),(0,y.jsx)(r.CardDivider,{}),(0,y.jsx)(C,{icon:u.A,title:__("Write","jetpack"),badge:O,onClick:z})]})]}),_&&(0,y.jsx)(r.Card,{className:"jetpack-ai-mcp__action-card",children:(0,y.jsx)(A,{title:__("Connect external AI agent","jetpack"),description:__("Get instructions for connecting your external AI agent.","jetpack"),onClick:D})}),_&&n&&(0,y.jsx)(r.Card,{className:"jetpack-ai-mcp__action-card",children:(0,y.jsxs)("a",{className:"jetpack-ai-mcp__connect-row",href:n,target:"_blank",rel:"noopener noreferrer",children:[(0,y.jsx)("span",{className:"jetpack-ai-mcp__connect-row-icon",children:(0,y.jsx)(r.Icon,{icon:d.A,size:24})}),(0,y.jsxs)("span",{className:"jetpack-ai-mcp__connect-row-text",children:[(0,y.jsx)(r.__experimentalText,{as:"p",className:"jetpack-ai-mcp__connect-row-title",weight:600,children:__("Activity log","jetpack")}),(0,y.jsx)(r.__experimentalText,{as:"p",className:"jetpack-ai-mcp__connect-row-description",variant:"muted",children:__("Review recent actions taken by AI agents on your site.","jetpack")})]}),(0,y.jsx)("span",{className:"jetpack-ai-mcp__connect-row-chevron",children:(0,y.jsx)(r.Icon,{icon:s.A,size:24})})]})})]})}},8622(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(6427),o=n(6087),i=n(7723),a=n(1220),s=n(3835),c=n(666),l=n(4085),d=n(790);const __=i.__;function u({toolId:e,tool:t,savingToolIds:n,onToggle:i}){const a=(0,o.useCallback)(t=>i(e,t),[e,i]);return(0,d.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:t.enabled,disabled:n.has(e),label:t.title,help:t.description,onChange:a})}function p({categoryName:e,allEnabled:t,savingToolIds:n,categoryTools:i,onEnableAll:a}){const s=(0,o.useCallback)(e=>a(i,e),[i,a]);return(0,d.jsx)(r.CardHeader,{children:(0,d.jsxs)("div",{className:"jetpack-ai-mcp__category-header-row",children:[(0,d.jsx)(r.__experimentalText,{as:"h3",weight:600,size:14,children:e}),(0,d.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:t,disabled:i.some(([e])=>n.has(e)),label:__("Enable all","jetpack"),onChange:s})]})})}function f({mcpAbilities:e,blogId:t,savingToolIds:n,onUpdate:i}){const f=(0,l.gt)(e??{}),g=(0,l.jv)(e??{}),h=(0,l.cm)(e??{},t),m=g.size?Object.fromEntries(Object.entries(f).filter(([e])=>g.has(e))):f,b=(0,l.h5)(e??{},t),v=(0,l.eH)(m,h,b),w=Object.entries(v).filter(([,e])=>!1!==e.visible).filter(([e,t])=>!(0,c.G7)(e,t)),y=(0,o.useCallback)(e=>e,[]),x=(0,o.useCallback)((e,n)=>{s.A.tracks.recordEvent("jetpack_mcp_allowlist_updated",{tool_id:e,enabled:n,view:"read"}),i({sites:[{blog_id:t,abilities:y({[e]:n})}]})},[t,y,i]),_=(0,o.useCallback)((e,n)=>{s.A.tracks.recordEvent("jetpack_mcp_allowlist_updated",{enabled:n,tool_count:e.length,view:"read"});const r={};e.forEach(([e])=>{r[e]=n}),i({sites:[{blog_id:t,abilities:y(r)}]})},[t,y,i]),k={};w.forEach(([e,t])=>{const n=(0,c.TI)(e,t);k[n]||(k[n]=[]),k[n].push([e,t])});const C=e=>e.map(([e,t])=>(0,d.jsx)(u,{toolId:e,tool:t,savingToolIds:n,onToggle:x},e)),A=(e,t)=>{const n={};e.forEach(([e,t])=>{const r=(0,c.Nr)(e,t)??"";n[r]||(n[r]=[]),n[r].push([e,t])});return(c.h[t]??[]).filter(e=>n[e]?.length>0).map((e,t)=>(0,d.jsxs)(o.Fragment,{children:[t>0&&(0,d.jsx)(r.CardDivider,{className:"jetpack-ai-mcp__tool-group-divider"}),(0,d.jsx)(r.CardBody,{children:(0,d.jsx)(a.B,{direction:"column",gap:"md",children:C((0,c.ai)(n[e]))})})]},e))};return 0===w.length?(0,d.jsx)(r.Card,{children:(0,d.jsx)(r.CardBody,{children:(0,d.jsx)(r.__experimentalText,{variant:"muted",children:__("No read tools available.","jetpack")})})}):(0,d.jsx)(a.B,{direction:"column",gap:"md",children:c.sg.map(e=>{const t=k[e];if(!t?.length)return null;const o=t.every(([,e])=>e.enabled),i=c.h[e];return(0,d.jsxs)(r.Card,{children:[(0,d.jsx)(p,{categoryName:e,allEnabled:o,savingToolIds:n,categoryTools:t,onEnableAll:_}),i?A(t,e):(0,d.jsx)(r.CardBody,{children:(0,d.jsx)(a.B,{direction:"column",gap:"md",children:C(t)})})]},e)})})}},9679(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(3924),o=n(6427),i=n(6087),a=n(7723),s=n(8901),c=n(4260),l=n(1220),d=n(9654),u=n(2326),p=n(790);const __=a.__,f="wpcom-mcp",g="https://public-api.wordpress.com/wpcom/v2/mcp/v1",h=[{label:"Claude",value:"claude"},{label:"Claude Code",value:"claude-code"},{label:"Cursor",value:"cursor"},{label:"VS Code",value:"vscode"},{label:"Continue",value:"continue"},{label:__("Other MCP client","jetpack"),value:"default"}],m={claude:(0,r.A)("https://docs.claude.com/en/docs/mcp"),"claude-code":(0,r.A)("https://code.claude.com/docs/en/mcp"),vscode:(0,r.A)("https://code.visualstudio.com/docs/copilot/customization/mcp-servers"),cursor:(0,r.A)("https://docs.cursor.com/en/context/mcp"),continue:(0,r.A)("https://docs.continue.dev/customize/deep-dives/mcp"),default:(0,r.A)("https://modelcontextprotocol.io/docs/develop/connect-local-servers")},b={claude:__("Claude documentation","jetpack"),"claude-code":__("Claude Code documentation","jetpack"),vscode:__("VS Code documentation","jetpack"),cursor:__("Cursor documentation","jetpack"),continue:__("Continue documentation","jetpack"),default:__("MCP documentation","jetpack")};function v(){const[e,t]=(0,i.useState)("claude"),[n,a]=(0,i.useState)("idle"),v=JSON.stringify(function(e){const t={url:g};switch(e){case"claude":return{mcpServers:{[f]:t}};case"claude-code":return{mcpServers:{[f]:{type:"http",url:g}}};case"vscode":return{servers:{[f]:t}};case"cursor":return{mcpServers:{[f]:t}};case"continue":return{mcpServers:[{name:f,...t}]};default:return{mcpServers:{[f]:t}}}}(e),null,2),w=(0,i.useCallback)(()=>{},[]),y=(0,i.useCallback)(async()=>{try{await navigator.clipboard.writeText(v),a("success"),setTimeout(()=>a("idle"),2e3)}catch{}},[v]),x=["claude","claude-code","cursor"].includes(e);return(0,p.jsxs)(l.B,{direction:"column",gap:"md",children:[(0,p.jsx)(o.Card,{children:(0,p.jsx)(o.CardBody,{children:(0,p.jsx)(o.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Choose your AI agent","jetpack"),value:e,options:h,onChange:t})})}),x&&(0,p.jsx)(o.Card,{children:(0,p.jsx)(o.CardBody,{children:(0,p.jsxs)(l.B,{direction:"column",gap:"md",children:[(0,p.jsx)(o.__experimentalText,{as:"h3",weight:600,children:__("Quick setup","jetpack")}),"claude"===e&&(0,p.jsxs)("ol",{className:"jetpack-ai-mcp-setup__steps",children:[(0,p.jsx)("li",{children:(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:(0,i.createInterpolateElement)(__("Open <ClaudeSettings/>.","jetpack"),{ClaudeSettings:(0,p.jsx)(d.N,{href:(0,r.A)("https://claude.ai/settings/connectors"),openInNewTab:!0,children:__("Claude settings","jetpack")})})})}),(0,p.jsx)("li",{children:(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:__('Click "Browse connectors" and search for WordPress.com.',"jetpack")})}),(0,p.jsx)("li",{children:(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:__("Select WordPress.com and follow the prompts.","jetpack")})})]}),"claude-code"===e&&(0,p.jsxs)(l.B,{direction:"column",gap:"md",children:[(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:__('Claude Code uses a different config format with type: "http". Use the CLI or copy the configuration below.',"jetpack")}),(0,p.jsxs)("ol",{className:"jetpack-ai-mcp-setup__steps",children:[(0,p.jsx)("li",{children:(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:(0,i.createInterpolateElement)(__("Run in your terminal: <code/>","jetpack"),{code:(0,p.jsx)("code",{className:"jetpack-ai-mcp-setup__code",children:`claude mcp add --transport http ${f} ${g}`})})})}),(0,p.jsx)("li",{children:(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:(0,i.createInterpolateElement)(__("Or copy the configuration below and add it to your <mcpJson/> or <claudeJson/> file.","jetpack"),{mcpJson:(0,p.jsx)("code",{className:"jetpack-ai-mcp-setup__code",children:".mcp.json"}),claudeJson:(0,p.jsx)("code",{className:"jetpack-ai-mcp-setup__code",children:"~/.claude.json"})})})}),(0,p.jsx)("li",{children:(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:(0,i.createInterpolateElement)(__("In Claude Code, run <code/> to authenticate with your WordPress.com account.","jetpack"),{code:(0,p.jsx)("code",{className:"jetpack-ai-mcp-setup__code",children:"/mcp"})})})})]})]}),"cursor"===e&&(0,p.jsxs)(l.B,{direction:"column",gap:"md",children:[(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:__("For Cursor users, use the one-click install to add the WordPress.com MCP app.","jetpack")}),(0,p.jsx)(u.$,{variant:"solid",className:"jetpack-ai-mcp-setup__action-button",render:(0,p.jsx)("a",{href:"cursor://anysphere.cursor-deeplink/mcp/install?name=WordPress.com&config=eyJjb21tYW5kIjoibnB4IC15IG1jcC1yZW1vdGUgaHR0cHM6Ly9wdWJsaWMtYXBpLndvcmRwcmVzcy5jb20vd3Bjb20vdjIvbWNwL3YxIn0%3D",target:"_blank",rel:"noreferrer"}),children:__("Install in Cursor","jetpack")})]})]})})}),(0,p.jsx)(o.Card,{children:(0,p.jsx)(o.CardBody,{children:(0,p.jsxs)(l.B,{direction:"column",gap:"sm",children:[(0,p.jsxs)(l.B,{direction:"row",justify:"space-between",align:"center",children:[(0,p.jsx)(o.__experimentalText,{as:"h3",weight:600,children:__("Manual setup","jetpack")}),(0,p.jsx)(u.$,{variant:"minimal",tone:"neutral",size:"compact",onClick:y,"aria-label":__("Copy configuration to clipboard","jetpack"),children:(0,p.jsx)(o.Icon,{icon:"success"===n?s.A:c.A,size:18})})]}),(0,p.jsx)(o.__experimentalText,{as:"p",variant:"muted",children:__("Copy this configuration into your client’s MCP settings.","jetpack")}),(0,p.jsx)(o.TextareaControl,{className:"jetpack-ai-mcp-setup__config-textarea",__nextHasNoMarginBottom:!0,value:v,onChange:w,readOnly:!0}),m[e]&&(0,p.jsx)(d.N,{href:m[e],openInNewTab:!0,children:b[e]})]})})})]})}},8501(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(7506),o=n(7723),i=n(790);const __=o.__,{upgradeUrl:a}=window?.jetpackAiSettings??{};function s(){return(0,i.jsx)(r.A,{title:__("Your dream site is just a prompt away","jetpack"),description:__("Get AI-powered assistance to help you build, edit, and redesign your site with ease.<br/>Available on the WordPress.com Business and Commerce plans.","jetpack"),primaryCtaLabel:__("Upgrade plan","jetpack"),primaryCtaURL:a})}},4790(e,t,n){"use strict";n.d(t,{T:()=>c});var r=n(1455),o=n.n(r),i=n(6087),a=n(7723);const __=a.__,s="/wpcom/v2/jetpack-ai/mcp-settings";function c(){const[e,t]=(0,i.useState)(!0),[n,r]=(0,i.useState)(()=>new Set),[a,c]=(0,i.useState)(null),[l,d]=(0,i.useState)(null),[u,p]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=!1;return t(!0),o()({path:s}).then(t=>{e||(c(t?.mcp_abilities??{}),d(!1!==t?.has_mcp_access&&Object.keys(t?.mcp_abilities?.account??{}).length>0),p(null))}).catch(t=>{e||p(t?.message??__("Failed to load MCP settings.","jetpack"))}).finally(()=>{e||t(!1)}),()=>{e=!0}},[]);const f=(0,i.useCallback)(e=>{const t=e.sites?.[0]??{},n=Object.keys(t.abilities??{});return void 0!==t.site_level_enabled&&n.push("__site_level__"),r(e=>{const t=new Set(e);return n.forEach(e=>t.add(e)),t}),o()({path:s,method:"POST",data:{mcp_abilities:e}}).then(e=>{c(e?.mcp_abilities??a),p(null)}).catch(e=>{throw p(e?.message??__("Failed to save MCP settings.","jetpack")),e}).finally(()=>{r(e=>{const t=new Set(e);return n.forEach(e=>t.delete(e)),t})})},[a]);return{isLoading:e,savingToolIds:n,mcpAbilities:a,hasMcpAccess:l,error:u,updateMcpAbilities:f}}},4085(e,t,n){"use strict";function r(e){if(e?.account)return e.account;const t=e?.mcp_abilities;return t?.account?t.account:t||{}}function o(e){const t=e?.site||e?.mcp_abilities?.site||{};return new Set(Object.keys(t))}function i(e,t){const n=(e?.sites||e?.mcp_abilities?.sites||[]).find(e=>e.blog_id===parseInt(t));return n?.abilities||{}}function a(e,t,n=null){return Object.fromEntries(Object.entries(e).map(([e,r])=>[e,{...r,enabled:e in t?t[e]:n??r.enabled}]))}function s(e,t){const n=(e?.sites||e?.mcp_abilities?.sites||[]).find(e=>e.blog_id===parseInt(t));return n?!0===n.site_level_enabled:!0===(e?.site_level_enabled_default??e?.mcp_abilities?.site_level_enabled_default)}n.d(t,{cm:()=>i,eH:()=>a,gt:()=>r,h5:()=>s,jv:()=>o})},2997(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(6427),o=n(6087),i=n(7723),a=n(1220),s=n(3835),c=n(666),l=n(4085),d=n(790);const __=i.__;function u({toolId:e,tool:t,savingToolIds:n,onToggle:i}){const a=(0,o.useCallback)(t=>i(e,t),[e,i]);return(0,d.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:t.enabled,disabled:n.has(e),label:t.title,help:t.description,onChange:a})}function p({categoryName:e,allEnabled:t,savingToolIds:n,categoryTools:i,onEnableAll:a}){const s=(0,o.useCallback)(e=>a(i,e),[i,a]);return(0,d.jsx)(r.CardHeader,{children:(0,d.jsxs)("div",{className:"jetpack-ai-mcp__category-header-row",children:[(0,d.jsx)(r.__experimentalText,{as:"h3",weight:600,size:14,children:e}),(0,d.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:t,disabled:i.some(([e])=>n.has(e)),label:__("Enable all","jetpack"),onChange:s})]})})}function f({mcpAbilities:e,blogId:t,savingToolIds:n,onUpdate:i}){const f=(0,l.gt)(e??{}),g=(0,l.jv)(e??{}),h=(0,l.cm)(e??{},t),m=g.size?Object.fromEntries(Object.entries(f).filter(([e])=>g.has(e))):f,b=(0,l.h5)(e??{},t),v=(0,l.eH)(m,h,b),w=Object.entries(v).filter(([,e])=>!1!==e.visible).filter(([e,t])=>(0,c.G7)(e,t)),y=(0,o.useCallback)(e=>e,[]),x=(0,o.useCallback)((e,n)=>{s.A.tracks.recordEvent("jetpack_mcp_allowlist_updated",{tool_id:e,enabled:n,view:"write"}),i({sites:[{blog_id:t,abilities:y({[e]:n})}]})},[t,y,i]),_=(0,o.useCallback)((e,n)=>{s.A.tracks.recordEvent("jetpack_mcp_allowlist_updated",{enabled:n,tool_count:e.length,view:"write"});const r={};e.forEach(([e])=>{r[e]=n}),i({sites:[{blog_id:t,abilities:y(r)}]})},[t,y,i]),k={};w.forEach(([e,t])=>{const n=(0,c.TI)(e,t);k[n]||(k[n]=[]),k[n].push([e,t])});const C=e=>e.map(([e,t])=>(0,d.jsx)(u,{toolId:e,tool:t,savingToolIds:n,onToggle:x},e)),A=(e,t)=>{const n={};e.forEach(([e,t])=>{const r=(0,c.Nr)(e,t)??"";n[r]||(n[r]=[]),n[r].push([e,t])});return(c.h[t]??[]).filter(e=>n[e]?.length>0).map((e,t)=>(0,d.jsxs)(o.Fragment,{children:[t>0&&(0,d.jsx)(r.CardDivider,{className:"jetpack-ai-mcp__tool-group-divider"}),(0,d.jsx)(r.CardBody,{children:(0,d.jsx)(a.B,{direction:"column",gap:"md",children:C((0,c.ai)(n[e]))})})]},e))};return 0===w.length?(0,d.jsx)(r.Card,{children:(0,d.jsx)(r.CardBody,{children:(0,d.jsx)(r.__experimentalText,{variant:"muted",children:__("No write tools are available for this site.","jetpack")})})}):(0,d.jsx)(a.B,{direction:"column",gap:"md",children:c.sg.map(e=>{const t=k[e];if(!t?.length)return null;const o=t.every(([,e])=>e.enabled),i=c.h[e];return(0,d.jsxs)(r.Card,{children:[(0,d.jsx)(p,{categoryName:e,allEnabled:o,savingToolIds:n,categoryTools:t,onEnableAll:_}),i?A(t,e):(0,d.jsx)(r.CardBody,{children:(0,d.jsx)(a.B,{direction:"column",gap:"md",children:C(t)})})]},e)})})}},4924(e,t,n){"use strict";n.d(t,{A:()=>o});const r={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};const o=function(e){if(e in r)return r[e];throw new Error("config key `"+e+"` does not exist")}},3835(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(372),o=n(4924);r.A.setMcAnalyticsEnabled((0,o.A)("mc_analytics_enabled")),r.A.setGoogleAnalyticsEnabled((0,o.A)("google_analytics_enabled"),(0,o.A)("google_analytics_key"));const i=r.A},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 r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,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:r}=e.exports;r.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,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e,t){let n=0,r=0,o=-1,i=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(o=r,i=n,r++):(n++,r++);else{if(-1===o)return!1;r=o+1,i++,n=i}for(;r<t.length&&"*"===t[r];)r++;return r===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(o(e,n))return!1;for(const n of t.names)if(o(e,n))return!0;return!1},t.humanize=n(4997),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}},1937(e,t,n){"use strict";var r=n(1609);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(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(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,d=r[1];return s(function(){o.value=n,o.getSnapshot=t,l(o)&&d({inst:o})},[e,n,t]),a(function(){return l(o)&&d({inst:o}),e(function(){l(o)&&d({inst:o})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},9838(e,t,n){"use strict";var r=n(1609),o=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},a=o.useSyncExternalStore,s=r.useRef,c=r.useEffect,l=r.useMemo,d=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var u=s(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,a=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(a=e,t):(a=e,s=n)}var a,s,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,o]);var f=a(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)},4277(e){"use strict";e.exports={consumer_slug:"jetpack"}},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},195(e){"use strict";e.exports=window.wp.a11y},1455(e){"use strict";e.exports=window.wp.apiFetch},6427(e){"use strict";e.exports=window.wp.components},6087(e){"use strict";e.exports=window.wp.element},7723(e){"use strict";e.exports=window.wp.i18n},5573(e){"use strict";e.exports=window.wp.primitives},3832(e){"use strict";e.exports=window.wp.url},733(e,t,n){"use strict";n.d(t,{$:()=>a});var r=n(1609),o=n(8468),i=n(4233);const a=r.forwardRef(function(e,t){const{render:n,className:r,disabled:a=!1,focusableWhenDisabled:s=!1,nativeButton:c=!0,style:l,...d}=e,{getButtonProps:u,buttonRef:p}=(0,o.s)({disabled:a,focusableWhenDisabled:s,native:c}),f={disabled:a};return(0,i.o)("button",e,{state:f,ref:[t,p],props:[d,u]})})},767(e,t,n){"use strict";n.d(t,{G:()=>a});var r=n(334),o=n(1609);const i=o.createContext(void 0);function a(e=!1){const t=o.useContext(i);if(void 0===t&&!e)throw new Error((0,r.A)(16));return t}},7306(e,t,n){"use strict";n.d(t,{j:()=>i});var r=n(1609);const o=r.createContext(void 0);function i(){const e=r.useContext(o);return e?.direction??"ltr"}},8399(e,t,n){"use strict";n.d(t,{T:()=>u,c:()=>p});var r=n(1609),o=n(986),i=n(3819),a=n(9207),s=n(9081),c=n(9427),l=n(790);const d=r.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new o.E,currentIdRef:{current:null},currentContextRef:{current:null}});function u(e){const{children:t,delay:n,timeoutMs:i=0}=e,a=r.useRef(n),s=r.useRef(n),c=r.useRef(null),u=r.useRef(null),p=(0,o.Z)();return(0,l.jsx)(d.Provider,{value:r.useMemo(()=>({hasProvider:!0,delayRef:a,initialDelayRef:s,currentIdRef:c,timeoutMs:i,currentContextRef:u,timeout:p}),[i,p]),children:t})}function p(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,o=n.useState("floatingId"),{open:l}=t,u=r.useContext(d),{currentIdRef:p,delayRef:f,timeoutMs:g,initialDelayRef:h,currentContextRef:m,hasProvider:b,timeout:v}=u,[w,y]=r.useState(!1);return(0,i.g)(()=>{function e(){y(!1),m.current?.setIsInstantPhase(!1),p.current=null,m.current=null,f.current=h.current}if(p.current&&!l&&p.current===o){if(y(!1),g){const t=o;return v.start(g,()=>{n.select("open")||p.current&&p.current!==t||e()}),()=>{v.clear()}}e()}},[l,o,p,f,g,h,m,v,n]),(0,i.g)(()=>{if(!l)return;const e=m.current,t=p.current;v.clear(),m.current={onOpenChange:n.setOpen,setIsInstantPhase:y},p.current=o,f.current={open:0,close:(0,a.uf)(h.current,"close")},null!==t&&t!==o?(y(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,s.d)(c.dv))):(y(!1),e?.setIsInstantPhase(!1))},[l,o,n,p,f,g,h,m,v]),(0,i.g)(()=>()=>{m.current=null},[m]),r.useMemo(()=>({hasProvider:b,delayRef:f,isInstantPhase:w}),[b,f,w])}},5507(e,t,n){"use strict";n.d(t,{CK:()=>g});var r=n(1609),o=n(5795),i=n(1289),a=n(2496),s=n(3819),c=n(9829),l=n(80),d=n(4233),u=n(2147);n(790);const p=r.createContext(null);const f=(0,l.F)("portal");function g(e={}){const{ref:t,container:n,componentProps:l=u.t0,elementProps:g}=e,h=(0,a.B)(),m=r.useContext(p),b=m?.portalNode,[v,w]=r.useState(null),[y,x]=r.useState(null),_=(0,c.K)(e=>{null!==e&&x(e)}),k=r.useRef(null);(0,s.g)(()=>{if(null===n)return void(k.current&&(k.current=null,x(null),w(null)));if(null==h)return;const e=(n&&((0,i.Ll)(n)?n:n.current))??b??document.body;null!=e?k.current!==e&&(k.current=e,x(null),w(e)):k.current&&(k.current=null,x(null),w(null))},[n,b,h]);const C=(0,d.o)("div",l,{ref:[t,_],props:[{id:h,[f]:""},g]});return{portalNode:y,portalSubtree:v&&C?o.createPortal(C,v):null}}},8800(e,t,n){"use strict";n.d(t,{K:()=>c});var r=n(171),o=n(6214),i=n(2864),a=n(4296);const s={open:(0,r.M)(e=>e.open),transitionStatus:(0,r.M)(e=>e.transitionStatus),domReferenceElement:(0,r.M)(e=>e.domReferenceElement),referenceElement:(0,r.M)(e=>e.positionReference??e.referenceElement),floatingElement:(0,r.M)(e=>e.floatingElement),floatingId:(0,r.M)(e=>e.floatingId)};class c extends o.H{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:o,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:(0,i.d)(),nested:n,triggerElements:o},s),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,a.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)}}},5701(e,t,n){"use strict";n.d(t,{R1:()=>a,cq:()=>s});var r=n(1609);n(790);const o=r.createContext(null);const i=r.createContext(null);const a=()=>r.useContext(o)?.id||null,s=e=>{const t=r.useContext(i);return e??t}},6739(e,t,n){"use strict";n.d(t,{j:()=>d});var r=n(1609),o=n(1289),i=n(6205),a=n(9829),s=n(3456),c=n(4296);function l(e){return null!=e&&null!=e.clientX}function d(e,t={}){const n="rootStore"in e?e.rootStore:e,d=n.useState("open"),u=n.useState("floatingElement"),p=n.useState("domReferenceElement"),f=n.context.dataRef,{enabled:g=!0,axis:h="both"}=t,m=r.useRef(!1),b=r.useRef(null),[v,w]=r.useState(),[y,x]=r.useState([]),_=(0,a.K)((e,t,r)=>{m.current||f.current.openEvent&&!l(f.current.openEvent)||n.set("positionReference",function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){const i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},a="x"===t.axis||"both"===t.axis,s="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&"touch"!==t.pointerType;let l=i.width,d=i.height,u=i.x,p=i.y;return null==n&&t.x&&a&&(n=i.x-t.x),null==r&&t.y&&s&&(r=i.y-t.y),u-=n||0,p-=r||0,l=0,d=0,!o||c?(l="y"===t.axis?i.width:0,d="x"===t.axis?i.height:0,u=a&&null!=t.x?t.x:u,p=s&&null!=t.y?t.y:p):o&&!c&&(d="x"===t.axis?i.height:d,l="y"===t.axis?i.width:l),o=!0,{width:l,height:d,x:u,y:p,top:p,right:u+l,bottom:p+d,left:u}}}}(r??p,{x:e,y:t,axis:h,dataRef:f,pointerType:v}))}),k=(0,a.K)(e=>{d?b.current||x([]):_(e.clientX,e.clientY,e.currentTarget)}),C=(0,c.Go)(v)?u:d,A=r.useCallback(()=>{if(!C||!g)return;const e=(0,o.zk)(u);if(!f.current.openEvent||l(f.current.openEvent)){const t=()=>{b.current?.(),b.current=null};return b.current=(0,i.q)(e,"mousemove",function(e){const t=(0,s.EW)(e);(0,s.gR)(u,t)?(b.current?.(),b.current=null):_(e.clientX,e.clientY)}),t}n.set("positionReference",p)},[C,g,u,f,p,n,_]);r.useEffect(()=>A(),[A,y]),r.useEffect(()=>{g&&!u&&(m.current=!1)},[g,u]),r.useEffect(()=>{!g&&d&&(m.current=!0)},[g,d]);const j=r.useMemo(()=>{function e(e){w(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:k,onMouseEnter:k}},[k]);return r.useMemo(()=>g?{reference:j,trigger:j}:{},[g,j])}},364(e,t,n){"use strict";n.d(t,{s:()=>y});var r=n(1609),o=n(1289),i=n(6205),a=n(6807),s=n(986),c=n(9829),l=n(1333),d=n(9312),u=n(3456),p=n(4296),f=n(9161),g=n(5701),h=n(9081),m=n(9427),b=n(80);const v={intentional:"onClick",sloppy:"onPointerDown"};function w(){return!1}function y(e,t={}){const n="rootStore"in e?e.rootStore:e,y=n.useState("open"),x=n.useState("floatingElement"),{dataRef:_}=n.context,{enabled:k=!0,escapeKey:C=!0,outsidePress:A=!0,outsidePressEvent:j="sloppy",referencePress:S=w,referencePressEvent:E="sloppy",bubbles:R,externalTree:M}=t,T=(0,g.cq)(M),I=(0,c.K)("function"==typeof A?A:()=>!1),O="function"==typeof A?I:A,N=!1!==O,P=(0,c.K)(()=>j),z=r.useRef(!1),D=r.useRef(!1),$=r.useRef(!1),{escapeKey:L,outsidePress:B}={escapeKey:"boolean"==typeof(F=R)?F:F?.escapeKey??!1,outsidePress:"boolean"==typeof F?F:F?.outsidePress??!0};var F;const q=r.useRef(null),H=(0,s.Z)(),U=(0,s.Z)(),V=(0,c.K)(()=>{U.clear(),_.current.insideReactTree=!1}),W=r.useRef(!1),J=r.useRef(""),G=(0,c.K)(S),K=(0,c.K)(e=>{if(!y||!k||!C||"Escape"!==e.key)return;if(W.current)return;const t=_.current.floatingContext?.nodeId,r=T?(0,f.CM)(T.nodesRef.current,t):[];if(!L&&r.length>0){let e=!0;if(r.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}const o=(0,p.O_)(e)?e.nativeEvent:e,i=(0,h.d)(m.jv,o);n.setOpen(!1,i),L||i.isPropagationAllowed||e.stopPropagation()}),Z=(0,c.K)(()=>{_.current.insideReactTree=!0,U.start(0,V)});r.useEffect(()=>{if(!y||!k)return;_.current.__escapeKeyBubbles=L,_.current.__outsidePressBubbles=B;const e=new s.E,t=new s.E;function r(){$.current=!0,t.start(0,()=>{$.current=!1})}function c(){z.current=!1,D.current=!1}function p(){const e=J.current,t="pen"!==e&&e?e:"mouse",n=P(),r="function"==typeof n?n():n;return"string"==typeof r?r:r[t]}function g(e){const t=_.current.floatingContext?.nodeId,r=T&&(0,f.CM)(T.nodesRef.current,t).some(t=>(0,d.F2)(e,t.context?.elements.floating));return(0,d.F2)(e,n.select("floatingElement"))||(0,d.F2)(e,n.select("domReferenceElement"))||r}function v(e){if(function(e){const t=p();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e))return void V();if(_.current.insideReactTree)return void V();const r=(0,u.EW)(e),i=`[${(0,b.F)("inert")}]`,a=(0,o.vq)(r)?r.getRootNode():null,s=Array.from(((0,o.Ng)(a)?a:(0,l.R)(n.select("floatingElement"))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>(0,u.gR)(e,r))))return;let v=(0,o.vq)(r)?r:null;for(;v&&!(0,o.eu)(v);){const e=(0,o.$4)(v);if((0,o.eu)(e)||!(0,o.vq)(e))break;v=e}if(s.length&&(0,o.vq)(r)&&!(0,d.tZ)(r)&&!(0,u.gR)(r,n.select("floatingElement"))&&s.every(e=>!(0,u.gR)(v,e)))return;if((0,o.sb)(r)&&!("touches"in e)){const t=(0,o.eu)(r),n=(0,o.L9)(r),i=/auto|scroll/,a=t||i.test(n.overflowX),s=t||i.test(n.overflowY),c=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,l=s&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,d="rtl"===n.direction,u=l&&(d?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),p=c&&e.offsetY>r.clientHeight;if(u||p)return}if(g(e))return;if("intentional"===p()&&$.current)return t.clear(),void($.current=!1);if("function"==typeof O&&!O(e))return;const w=_.current.floatingContext?.nodeId,y=T?(0,f.CM)(T.nodesRef.current,w):[];if(y.length>0){let e=!0;if(y.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,(0,h.d)(m.Np,e)),V()}function w(e){if("sloppy"!==p()||!n.select("open")||!k||(0,d.F2)(e,n.select("floatingElement"))||(0,d.F2)(e,n.select("domReferenceElement")))return;const t=e.touches[0];t&&(q.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},H.start(1e3,()=>{q.current&&(q.current.dismissOnTouchEnd=!1,q.current.dismissOnMouseDown=!1)}))}function A(e,t){const n=(0,u.EW)(e);if(!n)return;const r=(0,i.q)(n,e.type,()=>{t(e),r()})}function j(e){H.clear(),"pointerdown"===e.type&&(J.current=e.pointerType),"mousedown"===e.type&&q.current&&!q.current.dismissOnMouseDown||A(e,e=>{"pointerdown"===e.type?function(e){"sloppy"===p()&&"touch"!==e.pointerType&&n.select("open")&&k&&!(0,d.F2)(e,n.select("floatingElement"))&&!(0,d.F2)(e,n.select("domReferenceElement"))&&v(e)}(e):v(e)})}function S(e){if(!z.current)return;const n=D.current;c(),"intentional"===p()&&("pointercancel"!==e.type?g(e)||(n?r():("function"!=typeof O||O(e))&&(t.clear(),$.current=!0,V())):n&&r())}function E(e){if("sloppy"!==p()||!q.current||(0,d.F2)(e,n.select("floatingElement"))||(0,d.F2)(e,n.select("domReferenceElement")))return;const t=e.touches[0];if(!t)return;const r=Math.abs(t.clientX-q.current.startX),o=Math.abs(t.clientY-q.current.startY),i=Math.sqrt(r*r+o*o);i>5&&(q.current.dismissOnTouchEnd=!0),i>10&&(v(e),H.clear(),q.current=null)}function R(e){"sloppy"!==p()||!q.current||(0,d.F2)(e,n.select("floatingElement"))||(0,d.F2)(e,n.select("domReferenceElement"))||(q.current.dismissOnTouchEnd&&v(e),H.clear(),q.current=null)}const M=(0,l.R)(x),I=(0,a.g)(C&&(0,a.g)((0,i.q)(M,"keydown",K),(0,i.q)(M,"compositionstart",function(){e.clear(),W.current=!0}),(0,i.q)(M,"compositionend",function(){e.start((0,o.Tc)()?5:0,()=>{W.current=!1})})),N&&(0,a.g)((0,i.q)(M,"click",j,!0),(0,i.q)(M,"pointerdown",j,!0),(0,i.q)(M,"pointerup",S,!0),(0,i.q)(M,"pointercancel",S,!0),(0,i.q)(M,"mousedown",j,!0),(0,i.q)(M,"mouseup",S,!0),(0,i.q)(M,"touchstart",function(e){J.current="touch",A(e,w)},!0),(0,i.q)(M,"touchmove",function(e){A(e,E)},!0),(0,i.q)(M,"touchend",function(e){A(e,R)},!0)));return()=>{I(),e.clear(),t.clear(),c(),$.current=!1}},[_,x,C,N,O,y,k,L,B,K,V,P,T,n,H]),r.useEffect(V,[O,V]);const X=r.useMemo(()=>({onKeyDown:K,[v[E]]:e=>{G()&&n.setOpen(!1,(0,h.d)(m.Ui,e.nativeEvent))},..."intentional"!==E&&{onClick(e){G()&&n.setOpen(!1,(0,h.d)(m.Ui,e.nativeEvent))}}}),[K,n,E,G]),Y=(0,c.K)(e=>{if(!y||!k||0!==e.button)return;const t=(0,u.EW)(e.nativeEvent);(0,u.gR)(n.select("floatingElement"),t)&&(z.current||(z.current=!0,D.current=!1))}),Q=(0,c.K)(e=>{y&&k&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&z.current&&(D.current=!0)}),ee=r.useMemo(()=>({onKeyDown:K,onPointerDown:Q,onMouseDown:Q,onClickCapture:Z,onMouseDownCapture(e){Z(),Y(e)},onPointerDownCapture(e){Z(),Y(e)},onMouseUpCapture:Z,onTouchEndCapture:Z,onTouchMoveCapture:Z}),[K,Z,Y,Q]);return r.useMemo(()=>k?{reference:X,floating:ee,trigger:X}:{},[k,X,ee])}},7236(e,t,n){"use strict";n.d(t,{w:()=>l});var r=n(1609),o=n(469),i=n(1289),a=n(3819),s=n(5701),c=n(6589);function l(e={}){const{nodeId:t,externalTree:n}=e,l=(0,c.P)(e),d=e.rootContext||l,u={reference:d.useState("referenceElement"),floating:d.useState("floatingElement"),domReference:d.useState("domReferenceElement")},[p,f]=r.useState(null),g=r.useRef(null),h=(0,s.cq)(n);(0,a.g)(()=>{u.domReference&&(g.current=u.domReference)},[u.domReference]);const m=(0,o.we)({...e,elements:{...u,...p&&{reference:p}}}),b=r.useCallback(e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),m.refs.setReference(t)},[m.refs]),[v,w]=r.useState(void 0),[y,x]=r.useState(null);d.useSyncedValue("referenceElement",v??null);const _=(0,i.vq)(v)?v:null;d.useSyncedValue("domReferenceElement",void 0===v?u.domReference:_),d.useSyncedValue("floatingElement",y);const k=r.useCallback(e=>{((0,i.vq)(e)||null===e)&&(g.current=e,w(e)),((0,i.vq)(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!(0,i.vq)(e))&&m.refs.setReference(e)},[m.refs,w]),C=r.useCallback(e=>{x(e),m.refs.setFloating(e)},[m.refs]),A=r.useMemo(()=>({...m.refs,setReference:k,setFloating:C,setPositionReference:b,domReference:g}),[m.refs,k,C,b]),j=r.useMemo(()=>({...m.elements,domReference:u.domReference}),[m.elements,u.domReference]),S=d.useState("open"),E=d.useState("floatingId"),R=r.useMemo(()=>({...m,dataRef:d.context.dataRef,open:S,onOpenChange:d.setOpen,events:d.context.events,floatingId:E,refs:A,elements:j,nodeId:t,rootStore:d}),[m,A,j,t,d,S,E]);return(0,a.g)(()=>{d.context.dataRef.current.floatingContext=R;const e=h?.nodesRef.current.find(e=>e.id===t);e&&(e.context=R)}),r.useMemo(()=>({...m,context:R,refs:A,elements:j,rootStore:d}),[m,A,j,R,d])}},6589(e,t,n){"use strict";n.d(t,{P:()=>d});var r=n(1289),o=n(2496),i=n(3074),a=n(3819),s=n(5701),c=n(8800),l=n(1432);function d(e){const{open:t=!1,onOpenChange:n,elements:d={}}=e,u=(0,o.B)(),p=null!=(0,s.R1)();const f=(0,i.j)(()=>new c.K({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:d.reference??null,floatingElement:d.floating??null,triggerElements:new l.Z,floatingId:u,syncOnly:!1,nested:p})).current;return(0,a.g)(()=>{const e={open:t,floatingId:u};void 0!==d.reference&&(e.referenceElement=d.reference,e.domReferenceElement=(0,r.vq)(d.reference)?d.reference:null),void 0!==d.floating&&(e.floatingElement=d.floating),f.update(e)},[t,u,d.reference,d.floating,f]),f.context.onOpenChange=n,f.context.nested=p,f}},3612(e,t,n){"use strict";n.d(t,{i:()=>m});var r=n(1609),o=n(1289),i=n(6205),a=n(6807),s=n(7591),c=n(986),l=n(1333),d=n(9312),u=n(3456),p=n(9081),f=n(9427),g=n(80);const h=s.cX&&s.nr;function m(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:s,dataRef:m}=n.context,{enabled:b=!0,delay:v}=t,w=r.useRef(!1),y=r.useRef(null),x=(0,c.Z)(),_=r.useRef(!0);r.useEffect(()=>{const e=n.select("domReferenceElement");if(!b)return;const t=(0,o.zk)(e);return(0,a.g)((0,i.q)(t,"blur",function(){const e=n.select("domReferenceElement");!n.select("open")&&(0,o.sb)(e)&&e===(0,u.RS)((0,l.R)(e))&&(w.current=!0)}),h&&(0,i.q)(t,"keydown",function(){_.current=!0},!0),h&&(0,i.q)(t,"pointerdown",function(){_.current=!1},!0))},[n,b]),r.useEffect(()=>{if(b)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){if(e.reason===f.Ui||e.reason===f.jv){const e=n.select("domReferenceElement");(0,o.vq)(e)&&(y.current=e,w.current=!0)}}},[s,b,n]);const k=r.useMemo(()=>({onMouseLeave(){w.current=!1,y.current=null},onFocus(e){const t=e.currentTarget;if(w.current){if(y.current===t)return;w.current=!1,y.current=null}const r=(0,u.EW)(e.nativeEvent);if((0,o.vq)(r))if(h&&!e.relatedTarget){if(!_.current&&!(0,d.$u)(r))return}else if(!(0,d.em)(r))return;const i=(0,d.Hi)(e.relatedTarget,n.context.triggerElements),{nativeEvent:a,currentTarget:s}=e,c="function"==typeof v?v():v;n.select("open")&&i||0===c||void 0===c?n.setOpen(!0,(0,p.d)(f.F4,a,s)):x.start(c,()=>{w.current||n.setOpen(!0,(0,p.d)(f.F4,a,s))})},onBlur(e){w.current=!1,y.current=null;const t=e.relatedTarget,r=e.nativeEvent,i=(0,o.vq)(t)&&t.hasAttribute((0,g.F)("focus-guard"))&&"outside"===t.getAttribute("data-type");x.start(0,()=>{const e=n.select("domReferenceElement"),o=(0,u.RS)((0,l.R)(e));if(!t&&o===e)return;if((0,u.gR)(m.current.floatingContext?.refs.floating.current,o)||(0,u.gR)(e,o)||i)return;const a=t??o;(0,d.Hi)(a,n.context.triggerElements)||n.setOpen(!1,(0,p.d)(f.F4,r))})}}),[m,n,x,v]);return r.useMemo(()=>b?{reference:k,trigger:k}:{},[b,k])}},5606(e,t,n){"use strict";n.d(t,{a:()=>w});var r=n(1609),o=n(1289),i=n(6205),a=n(6807),s=n(9829),c=n(3819),l=n(986),d=n(1333),u=n(9312),p=n(3456),f=n(9161),g=n(9081),h=n(9427),m=n(5701),b=n(6608),v=n(9207);function w(e,t={}){const n="rootStore"in e?e.rootStore:e,w=n.useState("open"),y=n.useState("floatingElement"),x=n.useState("domReferenceElement"),{dataRef:_}=n.context,{enabled:k=!0,closeDelay:C=0,nodeId:A}=t,j=(0,b.uu)(n),S=(0,m.cq)(),E=(0,m.R1)(),R=(0,s.K)(()=>(0,v.GI)(_.current.openEvent?.type,j.interactedInside)),M=(0,s.K)(()=>{const e=_.current.openEvent?.type;return e?.includes("mouse")&&"mousedown"!==e}),T=(0,s.K)(e=>(0,u.Hi)(e,n.context.triggerElements)),I=r.useCallback(e=>{const t=(0,v.uf)(C,"close",j.pointerType),r=()=>{n.setOpen(!1,(0,g.d)(h.N7,e)),S?.events.emit("floating.closed",e)};t?j.openChangeTimeout.start(t,r):(j.openChangeTimeout.clear(),r())},[C,n,j,S]),O=(0,s.K)(()=>{(0,b.GH)(j)}),N=(0,s.K)(e=>{const t=(0,p.EW)(e);(0,u.H5)(t)?j.interactedInside=null!=t?.closest("[aria-haspopup]"):j.interactedInside=!1});(0,c.g)(()=>{w||(j.pointerType=void 0,j.restTimeoutPending=!1,j.interactedInside=!1,O())},[w,j,O]),r.useEffect(()=>O,[O]),(0,c.g)(()=>{if(k&&w&&j.handleCloseOptions?.blockPointerEvents&&M()&&(0,o.vq)(x)&&y){const e=x,t=y,n=(0,d.R)(y),r=S?.nodesRef.current.find(e=>e.id===E)?.context?.elements.floating;r&&(r.style.pointerEvents="");const o=j.handleCloseOptions?.getScope?.()??j.pointerEventsScopeElement??r??e.closest("[data-rootownerid]")??n.body;return(0,b.D8)(j,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{O()}}},[k,w,x,y,j,M,S,E,O]);const P=(0,l.Z)();r.useEffect(()=>{if(!k)return;function e(t){!S||!E||(0,f.CM)(S.nodesRef.current,E).length>0||P.start(0,()=>{S.events.off("floating.closed",e),n.setOpen(!1,(0,g.d)(h.N7,t)),S.events.emit("floating.closed",t)})}const t=y;return(0,a.g)(t&&(0,i.q)(t,"mouseenter",function(){j.openChangeTimeout.clear(),P.clear(),S?.events.off("floating.closed",e),O()}),t&&(0,i.q)(t,"mouseleave",function(t){if(S&&E&&(0,f.CM)(S.nodesRef.current,E).length>0)return void S.events.on("floating.closed",e);if(T(t.relatedTarget))return;const n=_.current.floatingContext?.nodeId??A,r=t.relatedTarget;S&&n&&(0,o.vq)(r)&&(0,f.CM)(S.nodesRef.current,n,!1).some(e=>(0,p.gR)(e.context?.elements.floating,r))||(j.handler?j.handler(t):(O(),R()||I(t)))}),t&&(0,i.q)(t,"pointerdown",N,!0),()=>{S?.events.off("floating.closed",e)})},[k,y,n,_,A,R,T,I,O,N,j,S,E,P])}},6608(e,t,n){"use strict";n.d(t,{D8:()=>l,GH:()=>c,uu:()=>d});var r=n(543),o=n(3074),i=n(986);class a{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new i.E,this.restTimeout=new i.E,this.handleCloseOptions=void 0}static create(){return new a}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const s=new WeakMap;function c(e){if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&s.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),s.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function l(e,t){const{scopeElement:n,referenceElement:r,floatingElement:o}=t,i=s.get(n);i&&i!==e&&c(i),c(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=o,s.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",o.style.pointerEvents="auto"}function d(e){const t=(0,o.j)(a.create).current,n=e.context.dataRef.current;return n.hoverInteractionState||(n.hoverInteractionState=t),(0,r.y)(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}},7657(e,t,n){"use strict";n.d(t,{j:()=>y});var r=n(1609),o=n(5795),i=n(1289),a=n(6205),s=n(6807),c=n(2667),l=n(9829),d=n(1333),u=n(9312),p=n(3456),f=n(4296),g=n(9081),h=n(9427),m=n(5701),b=n(6608),v=n(9207);const w={current:null};function y(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:y,events:x}=n.context,{enabled:_=!0,delay:k=0,handleClose:C=null,mouseOnly:A=!1,restMs:j=0,move:S=!0,triggerElementRef:E=w,externalTree:R,isActiveTrigger:M=!0,getHandleCloseContext:T,isClosing:I}=t,O=(0,m.cq)(R),N=(0,b.uu)(n),P=r.useRef(!1),z=(0,c.u)(C),D=(0,c.u)(k),$=(0,c.u)(j),L=(0,c.u)(_),B=(0,c.u)(I);M&&(N.handleCloseOptions=z.current?.__options);const F=(0,l.K)(()=>(0,v.GI)(y.current.openEvent?.type,N.interactedInside)),q=(0,l.K)(e=>(0,u.Hi)(e,n.context.triggerElements)),H=(0,l.K)((e,t,r)=>{const o=n.context.triggerElements;if(o.hasElement(t))return!e||!(0,p.gR)(e,t);if(!(0,i.vq)(r))return!1;const a=r;return o.hasMatchingElement(e=>(0,p.gR)(e,a))&&(!e||!(0,p.gR)(e,a))}),U=(0,l.K)((e,t=!0)=>{const r=(0,v.uf)(D.current,"close",N.pointerType);r?N.openChangeTimeout.start(r,()=>{n.setOpen(!1,(0,g.d)(h.N7,e)),O?.events.emit("floating.closed",e)}):t&&(N.openChangeTimeout.clear(),n.setOpen(!1,(0,g.d)(h.N7,e)),O?.events.emit("floating.closed",e))}),V=(0,l.K)(()=>{if(!N.handler)return;(0,d.R)(n.select("domReferenceElement")).removeEventListener("mousemove",N.handler),N.handler=void 0}),W=(0,l.K)(()=>{(0,b.GH)(N)});return r.useEffect(()=>V,[V]),r.useEffect(()=>{if(_)return x.on("openchange",e),()=>{x.off("openchange",e)};function e(e){e.open?P.current=!1:(P.current=e.reason===h.N7,V(),N.openChangeTimeout.clear(),N.restTimeout.clear(),N.blockMouseMove=!0,N.restTimeoutPending=!1)}},[_,x,N,V]),r.useEffect(()=>{if(!_)return;const e=E.current??(M?n.select("domReferenceElement"):null);if((0,i.vq)(e))return S?(0,s.g)((0,a.q)(e,"mousemove",t,{once:!0}),(0,a.q)(e,"mouseenter",t),(0,a.q)(e,"mouseleave",r)):(0,s.g)((0,a.q)(e,"mouseenter",t),(0,a.q)(e,"mouseleave",r));function t(e){if(N.openChangeTimeout.clear(),N.blockMouseMove=!1,A&&!(0,f.Go)(N.pointerType))return;const t=(0,v.hq)($.current),r=(0,v.uf)(D.current,"open",N.pointerType),o=(0,p.EW)(e),a=e.currentTarget??null,s=n.select("domReferenceElement");let c=a;if((0,i.vq)(o)&&!n.context.triggerElements.hasElement(o))for(const e of n.context.triggerElements.elements())if((0,p.gR)(e,o)){c=e;break}(0,i.vq)(a)&&(0,i.vq)(s)&&!n.context.triggerElements.hasElement(a)&&(0,p.gR)(a,s)&&(c=s);const l=null!=c&&H(s,c,o),d=n.select("open"),u=B.current?.()??"ending"===n.select("transitionStatus"),m=!d&&u&&P.current,b=!l&&(0,i.vq)(c)&&(0,i.vq)(s)&&(0,p.gR)(s,c)&&m,w=t>0&&!r,y=!d||l;l&&(d||m)||b?n.setOpen(!0,(0,g.d)(h.N7,e,c)):w||(r?N.openChangeTimeout.start(r,()=>{y&&n.setOpen(!0,(0,g.d)(h.N7,e,c))}):y&&n.setOpen(!0,(0,g.d)(h.N7,e,c)))}function r(e){if(F())return void W();V();const t=n.select("domReferenceElement"),r=(0,d.R)(t);N.restTimeout.clear(),N.restTimeoutPending=!1;const o=y.current.floatingContext??T?.();if(q(e.relatedTarget))return;if(z.current&&o){n.select("open")||N.openChangeTimeout.clear();const t=E.current;return N.handler=z.current({...o,tree:O,x:e.clientX,y:e.clientY,onClose(){W(),V(),L.current&&!F()&&t===n.select("domReferenceElement")&&U(e,!0)}}),r.addEventListener("mousemove",N.handler),void N.handler(e)}("touch"!==N.pointerType||!(0,p.gR)(n.select("floatingElement"),e.relatedTarget))&&U(e)}},[V,W,y,D,U,n,_,z,N,M,H,F,q,A,S,$,E,O,L,T,B]),r.useMemo(()=>{if(_)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e,r=e.currentTarget,i=n.select("domReferenceElement"),a=n.select("open"),s=H(i,r,e.target);if(A&&!(0,f.Go)(N.pointerType))return;if(a&&s&&N.handleCloseOptions?.blockPointerEvents){const e=n.select("floatingElement");if(e){const t=N.handleCloseOptions?.getScope?.()??r.ownerDocument.body;(0,b.D8)(N,{scopeElement:t,referenceElement:r,floatingElement:e})}}const c=(0,v.hq)($.current);function l(){if(N.restTimeoutPending=!1,F())return;const e=n.select("open");N.blockMouseMove||e&&!s||n.setOpen(!0,(0,g.d)(h.N7,t,r))}a&&!s||0===c||!s&&N.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(N.restTimeout.clear(),"touch"===N.pointerType?o.flushSync(()=>{l()}):s&&a?l():(N.restTimeoutPending=!0,N.restTimeout.start(c,l)))}};function e(e){N.pointerType=e.pointerType}},[_,N,F,H,A,n,$])}},9207(e,t,n){"use strict";n.d(t,{GI:()=>a,hq:()=>i,uf:()=>o});var r=n(4296);function o(e,t,n){const o=function(e,t){return null==t||(0,r.Go)(t)?"function"==typeof e?e():e:0}(e,n);return"number"==typeof o?o:o?.[t]}function i(e){return"function"==typeof e?e():e}function a(e,t){return t||"click"===e||"mousedown"===e}},1819(e,t,n){"use strict";n.d(t,{b:()=>i});var r=n(1609),o=n(2577);function i(e=[]){const t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),o=e.map(e=>e?.item),i=e.map(e=>e?.trigger),s=r.useCallback(t=>a(t,e,"reference"),t),c=r.useCallback(t=>a(t,e,"floating"),n),l=r.useCallback(t=>a(t,e,"item"),o),d=r.useCallback(t=>a(t,e,"trigger"),i);return r.useMemo(()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:l,getTriggerProps:d}),[s,c,l,d])}function a(e,t,n){const r=new Map,i="item"===n,a={};"floating"===n&&(a.tabIndex=-1,a[o.Ed]="");for(const t in e)i&&e&&(t===o.XA||t===o.WS)||(a[t]=e[t]);for(let o=0;o<t.length;o+=1){let c;const l=t[o]?.[n];c="function"==typeof l?e?l(e):null:l,c&&s(a,c,i,r)}return s(a,e,i,r),a}function s(e,t,n,r){for(const i in t){const a=t[i];(!n||i!==o.XA&&i!==o.WS)&&(i.startsWith("on")?(r.has(i)||r.set(i,[]),"function"==typeof a&&(r.get(i)?.push(a),e[i]=(...e)=>r.get(i)?.map(t=>t(...e)).find(e=>void 0!==e))):e[i]=a)}}},2891(e,t,n){"use strict";n.d(t,{D:()=>l});var r=n(2496),o=n(3074),i=n(3819),a=n(1289),s=n(5701),c=n(8800);function l(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:l}=e,d=(0,r.B)(),u=null!=(0,s.R1)(),p=t.useState("open"),f=t.useState("activeTriggerElement"),g=t.useState(n?"popupElement":"positionerElement"),h=t.context.triggerElements,m=(0,o.j)(()=>new c.K({open:p,transitionStatus:void 0,referenceElement:f,floatingElement:g,triggerElements:h,onOpenChange:l,floatingId:d,syncOnly:!0,nested:u})).current;return(0,i.g)(()=>{const e={open:p,floatingId:d,referenceElement:f,floatingElement:g};(0,a.vq)(f)&&(e.domReferenceElement=f),m.state.positionReference===m.state.referenceElement&&(e.positionReference=f),m.update(e)},[p,d,f,g,m]),m.context.onOpenChange=l,m.context.nested=u,m}},9574(e,t,n){"use strict";n.d(t,{U:()=>i});var r=n(9175);const o=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:u=0,offsetParent:p="real"}=(0,r._3)(e,t)||{};if(null==d)return{};const f=(0,r.nI)(u),g={x:n,y:o},h=(0,r.Dz)(i),m=(0,r.sq)(h),b=await s.getDimensions(d),v="y"===h,w=v?"top":"left",y=v?"bottom":"right",x=v?"clientHeight":"clientWidth",_=a.reference[m]+a.reference[h]-g[h]-a.floating[m],k=g[h]-a.reference[h],C="real"===p?await(s.getOffsetParent?.(d)):c.floating;let A=c.floating[x]||a.floating[m];A&&await(s.isElement?.(C))||(A=c.floating[x]||a.floating[m]);const j=_/2-k/2,S=A/2-b[m]/2-1,E=Math.min(f[w],S),R=Math.min(f[y],S),M=E,T=A-b[m]-R,I=A/2-b[m]/2+j,O=(0,r.qE)(M,I,T),N=!l.arrow&&null!=(0,r.Sg)(i)&&I!==O&&a.reference[m]/2-(I<M?E:R)-b[m]/2<0,P=N?I<M?I-M:I-T:0;return{[h]:g[h]+P,data:{[h]:O,centerOffset:I-O-P,...N&&{alignmentOffset:P}},reset:N}}}),i=(e,t)=>({...o(e),options:[e,t]})},2911(e,t,n){"use strict";n.d(t,{i:()=>p});var r=n(1289),o=n(986),i=n(3456),a=n(9161);const s=.1*.1,c=.5;function l(e,t,n,r,o,i){return r>=t!=i>=t&&e<=(o-n)*(t-r)/(i-r)+n}function d(e,t,n,r,o,i,a,s,c,d){let u=!1;return l(e,t,n,r,o,i)&&(u=!u),l(e,t,o,i,a,s)&&(u=!u),l(e,t,a,s,c,d)&&(u=!u),l(e,t,c,d,n,r)&&(u=!u),u}function u(e,t,n,r,o,i){const a=Math.min(n,o),s=Math.max(n,o),c=Math.min(r,i),l=Math.max(r,i);return e>=a&&e<=s&&t>=c&&t<=l}function p(e={}){const{blockPointerEvents:t=!1}=e,n=new o.E,l=({x:e,y:t,placement:o,elements:l,onClose:p,nodeId:f,tree:g})=>{const h=o?.split("-")[0];let m=!1,b=null,v=null,w="undefined"!=typeof performance?performance.now():0;return function(o){n.clear();const y=l.domReference,x=l.floating;if(!y||!x||null==h||null==e||null==t)return;const{clientX:_,clientY:k}=o,C=(0,i.EW)(o),A="mouseleave"===o.type,j=(0,i.gR)(x,C),S=(0,i.gR)(y,C);if(j&&(m=!0,!A))return;if(S&&(m=!1,!A))return void(m=!0);if(A&&(0,r.vq)(o.relatedTarget)&&(0,i.gR)(x,o.relatedTarget))return;function E(){return Boolean(g&&(0,a.CM)(g.nodesRef.current,f).length>0)}function R(){E()||(n.clear(),p())}if(E())return;const M=y.getBoundingClientRect(),T=x.getBoundingClientRect(),I=e>T.right-T.width/2,O=t>T.bottom-T.height/2,N=T.width>M.width,P=T.height>M.height,z=(N?M:T).left,D=(N?M:T).right,$=(P?M:T).top,L=(P?M:T).bottom;if("top"===h&&t>=M.bottom-1||"bottom"===h&&t<=M.top+1||"left"===h&&e>=M.right-1||"right"===h&&e<=M.left+1)return void R();let B=!1;switch(h){case"top":B=u(_,k,z,M.top+1,D,T.bottom-1);break;case"bottom":B=u(_,k,z,T.top+1,D,M.bottom-1);break;case"left":B=u(_,k,T.right-1,L,M.left+1,$);break;case"right":B=u(_,k,M.right-1,L,T.left+1,$)}if(B)return;if(m&&!function(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}(_,k,M))return void R();if(!A&&function(e,t){const n=performance.now(),r=n-w;if(null===b||null===v||0===r)return b=e,v=t,w=n,!1;const o=e-b,i=t-v;return b=e,v=t,w=n,o*o+i*i<r*r*s}(_,k))return void R();let F=!1;switch(h){case"top":{const n=N?.25:2,r=N||I?e+n:e-n,o=N?e-n:I?e+n:e-n,i=t+c+1,a=I||N?T.bottom-c:T.top,s=I?N?T.bottom-c:T.top:T.bottom-c;F=d(_,k,r,i,o,i,T.left,a,T.right,s);break}case"bottom":{const n=N?.25:2,r=N||I?e+n:e-n,o=N?e-n:I?e+n:e-n,i=t-c,a=I||N?T.top+c:T.bottom,s=I?N?T.top+c:T.bottom:T.top+c;F=d(_,k,r,i,o,i,T.left,a,T.right,s);break}case"left":{const n=P?.25:2,r=P||O?t+n:t-n,o=P?t-n:O?t+n:t-n,i=e+c+1,a=O||P?T.right-c:T.left,s=O?P?T.right-c:T.left:T.right-c;F=d(_,k,a,T.top,s,T.bottom,i,r,i,o);break}case"right":{const n=P?.25:2,r=P||O?t+n:t-n,o=P?t-n:O?t+n:t-n,i=e-c,a=O||P?T.left+c:T.right,s=O?P?T.left+c:T.right:T.left+c;F=d(_,k,i,r,i,o,a,T.top,s,T.bottom);break}}F?m||n.start(40,R):R()}};return l.__options={...e,blockPointerEvents:t},l}},2577(e,t,n){"use strict";n.d(t,{BT:()=>a,Ed:()=>r,WS:()=>i,XA:()=>o});const r="data-base-ui-focusable",o="active",i="selected",a="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"},80(e,t,n){"use strict";function r(e){return`data-base-ui-${e}`}n.d(t,{F:()=>r})},2864(e,t,n){"use strict";function r(){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:()=>r})},9312(e,t,n){"use strict";n.d(t,{$u:()=>d,F2:()=>c,H5:()=>u,Hi:()=>s,em:()=>p,tZ:()=>l});var r=n(1289),o=n(7591),i=n(2577),a=n(3456);function s(e,t){if(!(0,r.vq)(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,e]of t.entries())if((0,a.gR)(e,n))return!e.hasAttribute("data-trigger-disabled");return!1}function c(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 l(e){return e.matches("html,body")}function d(e){return(0,r.sb)(e)&&e.matches(i.BT)}function u(e){return null!=e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${i.BT}`)}function p(e){if(!e||o.KT)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}},4296(e,t,n){"use strict";function r(e){return"nativeEvent"in e}function o(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function i(e){const t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}n.d(t,{Ev:()=>i,Go:()=>o,O_:()=>r})},1664(e,t,n){"use strict";n.d(t,{H:()=>i});var r=n(1432),o=n(8800);function i(){return new o.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new r.Z,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}},9161(e,t,n){"use strict";function r(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...r(e,t.id,n)])}n.d(t,{CM:()=>r})},3456(e,t,n){"use strict";n.d(t,{EW:()=>a,RS:()=>o,gR:()=>i});var r=n(1289);function o(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,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function a(e){return"composedPath"in e?e.composedPath()[0]:e.target}},9300(e,t,n){"use strict";n.d(t,{PT:()=>g,VN:()=>h,lZ:()=>a,v6:()=>i});var r=n(6504);const o={};function i(e,t,n,r,o){if(!(n||r||o||e))return s(t);let i=s(e);return t&&(i=c(i,t)),n&&(i=c(i,n)),r&&(i=c(i,r)),o&&(i=c(i,o)),i}function a(e){if(0===e.length)return o;if(1===e.length)return s(e[0]);let t=s(e[0]);for(let n=1;n<e.length;n+=1)t=c(t,e[n]);return t}function s(e){return d(e)?{...u(e,o)}:function(e){const t={...e};for(const e in t){const n=t[e];l(e,n)&&(t[e]=f(n))}return t}(e)}function c(e,t){return d(t)?u(t,e):function(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":e[n]=(0,r.r)(e.style,o);break;case"className":e[n]=h(e.className,o);break;default:l(n,o)?e[n]=p(e[n],o):e[n]=o}}return e}(e,t)}function l(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function u(e,t){return d(e)?e(t):e??o}function p(e,t){return t?e?n=>{if(m(n)){const r=n;g(r);const o=t(r);return r.baseUIHandlerPrevented||e?.(r),o}const r=t(n);return e?.(n),r}:f(t):e}function f(e){return e?t=>(m(t)&&g(t),e(t)):e}function g(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function h(e,t){return t?e?t+" "+e:t:e}function m(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},2038(e,t,n){"use strict";n.d(t,{o:()=>f});var r=n(1609),o=n(8467),i=n(8611),a=n(2717),s=n(6950),c=n(3494),l=n(4233),d=n(7664),u=n(5606);const p={...a.GW,...s.G},f=r.forwardRef(function(e,t){const{className:n,render:r,style:a,...s}=e,f=(0,o.g)(),{side:g,align:h}=(0,i.s)(),m=f.useState("open"),b=f.useState("instantType"),v=f.useState("transitionStatus"),w=f.useState("popupProps"),y=f.useState("floatingRootContext");(0,c.v)({open:m,ref:f.context.popupRef,onComplete(){m&&f.context.onOpenChangeComplete?.(!0)}});const x=f.useState("disabled"),_=f.useState("closeDelay");(0,u.a)(y,{enabled:!x,closeDelay:_});const k={open:m,side:g,align:h,instant:b,transitionStatus:v};return(0,l.o)("div",e,{state:k,ref:[t,f.context.popupRef,f.useStateSetter("popupElement")],props:[w,(0,d.d)(v),s],stateAttributesMapping:p})})},1486(e,t,n){"use strict";n.d(t,{K:()=>c});var r=n(1609),o=n(8467),i=n(9163),a=n(9e3),s=n(790);const c=r.forwardRef(function(e,t){const{keepMounted:n=!1,...r}=e;return(0,o.g)().useState("mounted")||n?(0,s.jsx)(i.$.Provider,{value:n,children:(0,s.jsx)(a.F,{ref:t,...r})}):null})},9163(e,t,n){"use strict";n.d(t,{$:()=>i,a:()=>a});var r=n(334),o=n(1609);const i=o.createContext(void 0);function a(){const e=o.useContext(i);if(void 0===e)throw new Error((0,r.A)(70));return e}},4630(e,t,n){"use strict";n.d(t,{o:()=>p});var r=n(1609),o=n(8467),i=n(8611),a=n(9567),s=n(9163),c=n(3275),l=n(3124),d=n(6097),u=n(790);const p=r.forwardRef(function(e,t){const{render:n,className:p,anchor:f,positionMethod:g="absolute",side:h="top",align:m="center",sideOffset:b=0,alignOffset:v=0,collisionBoundary:w="clipping-ancestors",collisionPadding:y=5,arrowPadding:x=5,sticky:_=!1,disableAnchorTracking:k=!1,collisionAvoidance:C=c.Pe,style:A,...j}=e,S=(0,o.g)(),E=(0,s.a)(),R=S.useState("open"),M=S.useState("mounted"),T=S.useState("trackCursorAxis"),I=S.useState("disableHoverablePopup"),O=S.useState("floatingRootContext"),N=S.useState("instantType"),P=S.useState("transitionStatus"),z=S.useState("hasViewport"),D=(0,a.s)({anchor:f,positionMethod:g,floatingRootContext:O,mounted:M,side:h,sideOffset:b,align:m,alignOffset:v,collisionBoundary:w,collisionPadding:y,sticky:_,arrowPadding:x,disableAnchorTracking:k,keepMounted:E,collisionAvoidance:C,adaptiveOrigin:z?l.n:void 0}),$=r.useMemo(()=>({open:R,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:"none"!==T?"tracking-cursor":N}),[R,D.side,D.align,D.anchorHidden,T,N]),L=(0,d.i)(e,$,{styles:D.positionerStyles,transitionStatus:P,props:j,refs:[t,S.useStateSetter("positionerElement")],hidden:!M,inert:!R||"both"===T||I});return(0,u.jsx)(i.v.Provider,{value:D,children:L})})},8611(e,t,n){"use strict";n.d(t,{s:()=>a,v:()=>i});var r=n(334),o=n(1609);const i=o.createContext(void 0);function a(){const e=o.useContext(i);if(void 0===e)throw new Error((0,r.A)(71));return e}},7882(e,t,n){"use strict";n.d(t,{B:()=>s});var r=n(1609),o=n(8399),i=n(6119),a=n(790);const s=function(e){const{delay:t,closeDelay:n,timeout:s=400}=e,c=r.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),l=r.useMemo(()=>({open:t,close:n}),[t,n]);return(0,a.jsx)(i.K.Provider,{value:c,children:(0,a.jsx)(o.T,{delay:l,timeoutMs:s,children:e.children})})}},6119(e,t,n){"use strict";n.d(t,{K:()=>o,n:()=>i});var r=n(1609);const o=r.createContext(void 0);function i(){return r.useContext(o)}},4438(e,t,n){"use strict";n.d(t,{s:()=>m});var r=n(1609),o=n(799),i=n(6012),a=n(3819),s=n(8467),c=n(6739),l=n(364),d=n(1819),u=n(9081),p=n(6488),f=n(9160),g=n(9427),h=n(790);const m=(0,o.G1)(function(e){const{disabled:t=!1,defaultOpen:n=!1,open:o,disableHoverablePopup:m=!1,trackCursorAxis:b="none",actionsRef:v,onOpenChange:w,onOpenChangeComplete:y,handle:x,triggerId:_,defaultTriggerId:k=null,children:C}=e,A=f.h.useStore(x?.store,{open:n,openProp:o,activeTriggerId:k,triggerIdProp:_});(0,i.j)(()=>{void 0===o&&!1===A.state.open&&!0===n&&A.update({open:!0,activeTriggerId:k})}),A.useControlledProp("openProp",o),A.useControlledProp("triggerIdProp",_),A.useContextCallback("onOpenChange",w),A.useContextCallback("onOpenChangeComplete",y);const j=A.useState("open"),S=!t&&j,E=A.useState("activeTriggerId"),R=A.useState("payload");A.useSyncedValues({trackCursorAxis:b,disableHoverablePopup:m}),(0,a.g)(()=>{j&&t&&A.setOpen(!1,(0,u.d)(g.r9))},[j,t,A]),A.useSyncedValue("disabled",t),(0,p.tr)(A);const{forceUnmount:M,transitionStatus:T}=(0,p.l$)(S,A),I=A.select("floatingRootContext"),O=A.useState("isInstantPhase"),N=A.useState("instantType"),P=A.useState("lastOpenChangeReason"),z=r.useRef(null);(0,a.g)(()=>{"ending"===T&&P===g.dv||"ending"!==T&&O?("delay"!==N&&(z.current=N),A.set("instantType","delay")):null!==z.current&&(A.set("instantType",z.current),z.current=null)},[T,O,P,N,A]),(0,a.g)(()=>{S&&null==E&&A.set("payload",void 0)},[A,E,S]);const D=r.useCallback(()=>{A.setOpen(!1,function(e,t){const n=(0,u.d)(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}(A,g.zJ))},[A]);r.useImperativeHandle(v,()=>({unmount:M,close:D}),[M,D]);const $=(0,l.s)(I,{enabled:!t,referencePress:()=>A.select("closeOnClick")}),L=(0,c.j)(I,{enabled:!t&&"none"!==b,axis:"none"===b?void 0:b}),{getReferenceProps:B,getFloatingProps:F,getTriggerProps:q}=(0,d.b)([$,L]),H=r.useMemo(()=>B(),[B]),U=r.useMemo(()=>q(),[q]),V=r.useMemo(()=>F(),[F]);return A.useSyncedValues({activeTriggerProps:H,inactiveTriggerProps:U,popupProps:V}),(0,h.jsx)(s.B.Provider,{value:A,children:"function"==typeof C?C({payload:R}):C})})},8467(e,t,n){"use strict";n.d(t,{B:()=>i,g:()=>a});var r=n(334),o=n(1609);const i=o.createContext(void 0);function a(e){const t=o.useContext(i);if(void 0===t&&!e)throw new Error((0,r.A)(72));return t}},9160(e,t,n){"use strict";n.d(t,{h:()=>f});var r=n(1609),o=n(5795),i=n(171),a=n(6214),s=n(3074),c=n(2891),l=n(9427),d=n(1432),u=n(4145);const p={...u.o,disabled:(0,i.M)(e=>e.disabled),instantType:(0,i.M)(e=>e.instantType),isInstantPhase:(0,i.M)(e=>e.isInstantPhase),trackCursorAxis:(0,i.M)(e=>e.trackCursorAxis),disableHoverablePopup:(0,i.M)(e=>e.disableHoverablePopup),lastOpenChangeReason:(0,i.M)(e=>e.openChangeReason),closeOnClick:(0,i.M)(e=>e.closeOnClick),closeDelay:(0,i.M)(e=>e.closeDelay),hasViewport:(0,i.M)(e=>e.hasViewport)};class f extends a.H{constructor(e){super({...{...(0,u.r)(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1},...e},{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new d.Z},p)}setOpen=(e,t)=>{const n=t.reason,r=n===l.N7,i=e&&n===l.F4,a=!e&&(n===l.Ui||n===l.jv);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);const s=()=>{const r={open:e,openChangeReason:n};i?r.instantType="focus":a?r.instantType="dismiss":n===l.N7&&(r.instantType=void 0);const o=t.trigger?.id??null;(o||e)&&(r.activeTriggerId=o,r.activeTriggerElement=t.trigger??null),this.update(r)};r?o.flushSync(s):s()};static useStore(e,t){const n=(0,s.j)(()=>new f(t)).current,r=e??n,o=(0,c.D)({popupStore:r,onOpenChange:r.setOpen});return r.state.floatingRootContext=o,r}}},1994(e,t,n){"use strict";n.d(t,{k:()=>v});var r=n(334),o=n(1609),i=n(799),a=n(8467),s=n(2717),c=n(4233),l=n(6488),d=n(727),u=n(6119),p=n(8399),f=n(3612),g=n(7657),h=n(2911),m=n(9903),b=n(1667);const v=(0,i.nk)(function(e,t){const{className:n,render:i,handle:v,payload:w,disabled:y,delay:x,closeOnClick:_=!0,closeDelay:k,id:C,style:A,...j}=e,S=(0,a.g)(!0),E=v?.store??S;if(!E)throw new Error((0,r.A)(82));const R=(0,d.e)(C),M=E.useState("isTriggerActive",R),T=E.useState("isOpenedByTrigger",R),I=E.useState("floatingRootContext"),O=o.useRef(null),N=x??b.r,P=k??0,{registerTrigger:z,isMountedByThisTrigger:D}=(0,l.L_)(R,O,E,{payload:w,closeOnClick:_,closeDelay:P}),$=(0,u.n)(),{delayRef:L,isInstantPhase:B,hasProvider:F}=(0,p.c)(I,{open:T});E.useSyncedValue("isInstantPhase",B);const q=E.useState("disabled"),H=y??q,U=E.useState("trackCursorAxis"),V=E.useState("disableHoverablePopup"),W=(0,g.j)(I,{enabled:!H,mouseOnly:!0,move:!1,handleClose:V||"both"===U?null:(0,h.i)(),restMs(){const e=$?.delay,t="object"==typeof L.current?L.current.open:void 0;let n=N;return F&&(n=0!==t?x??e??N:0),n},delay(){const e="object"==typeof L.current?L.current.close:void 0;let t=P;return null==k&&F&&(t=e),{close:t}},triggerElementRef:O,isActiveTrigger:M,isClosing:()=>"ending"===E.select("transitionStatus")}),J=(0,f.i)(I,{enabled:!H}).reference,G={open:T},K=E.useState("triggerProps",D);return(0,c.o)("button",e,{state:G,ref:[t,z,O],props:[W,J,K,{onPointerDown(){E.set("closeOnClick",_)},id:R,[m.x.triggerDisabled]:H?"":void 0},j],stateAttributesMapping:s.qV})})},9903(e,t,n){"use strict";n.d(t,{x:()=>o});var r=n(2717);let o=function(e){return e[e.popupOpen=r.Vs.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e}({})},1667(e,t,n){"use strict";n.d(t,{r:()=>r});const r=600},8468(e,t,n){"use strict";n.d(t,{s:()=>d});var r=n(1609),o=n(1289),i=n(9829),a=n(3819),s=n(9300),c=n(767),l=n(917);function d(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:o=0,native:d=!0,composite:p}=e,f=r.useRef(null),g=(0,c.G)(!0),h=p??void 0!==g,{props:m}=(0,l.S)({focusableWhenDisabled:n,disabled:t,composite:h,tabIndex:o,isNativeButton:d});const b=r.useCallback(()=>{const e=f.current;u(e)&&h&&t&&void 0===m.disabled&&e.disabled&&(e.disabled=!1)},[t,m.disabled,h]);(0,a.g)(b,[b]);return{getButtonProps:r.useCallback((e={})=>{const{onClick:n,onMouseDown:r,onKeyUp:o,onKeyDown:i,onPointerDown:a,...c}=e,l=d?"button":void 0;return(0,s.v6)({type:l,onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t)return;if((0,s.PT)(e),i?.(e),e.baseUIHandlerPrevented)return;const r=e.target===e.currentTarget,o=e.currentTarget,a=u(o),c=!d&&(l=o,Boolean("A"===l?.tagName&&l?.href));var l;const p=r&&(d?a:!c),f="Enter"===e.key,g=" "===e.key,m=o.getAttribute("role"),b=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(r&&h&&g){if(e.defaultPrevented&&b)return;return e.preventDefault(),void(c||d&&a?(o.click(),e.preventBaseUIHandler()):p&&(n?.(e),e.preventBaseUIHandler()))}p&&(d||!g&&!f||e.preventDefault(),!d&&f&&n?.(e))},onKeyUp(e){t||((0,s.PT)(e),o?.(e),e.target===e.currentTarget&&d&&h&&u(e.currentTarget)&&" "===e.key?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||d||h||" "!==e.key||n?.(e))},onPointerDown(e){t?e.preventDefault():a?.(e)}},d?void 0:{role:"button"},m,c)},[t,m,h,d]),buttonRef:(0,i.K)(e=>{f.current=e,b()})}}function u(e){return(0,o.sb)(e)&&"BUTTON"===e.tagName}},3196(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(4233);function o(e){return(0,r.o)(e.defaultTagName??"div",e,e)}},9e3(e,t,n){"use strict";n.d(t,{F:()=>s});var r=n(1609),o=n(5795),i=n(5507),a=n(790);const s=r.forwardRef(function(e,t){const{children:n,container:s,className:c,render:l,style:d,...u}=e,{portalNode:p,portalSubtree:f}=(0,i.CK)({container:s,ref:t,componentProps:e,elementProps:u});return f||p?(0,a.jsxs)(r.Fragment,{children:[f,p&&o.createPortal(n,p)]}):null})},3124(e,t,n){"use strict";n.d(t,{j:()=>a,n:()=>s});var r=n(1333),o=n(1289),i=n(9175);const a={sideX:"left",sideY:"top"},s={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:s},elements:{floating:c},platform:l,strategy:d,placement:u}=e,p=(0,o.zk)(c),f=p.getComputedStyle(c);if(!("0s"!==f.transitionDuration&&""!==f.transitionDuration))return{x:t,y:n,data:a};const g=await(l.getOffsetParent?.(c));let h={width:0,height:0};if("fixed"===d&&p?.visualViewport)h={width:p.visualViewport.width,height:p.visualViewport.height};else if(g===p){const e=(0,r.R)(c);h={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await(l.isElement?.(g))&&(h=await l.getDimensions(g));const m=(0,i.C0)(u);let b=t,v=n;"left"===m&&(b=h.width-(t+s.width)),"top"===m&&(v=h.height-(n+s.height));return{x:b,y:v,data:{sideX:"left"===m?"right":a.sideX,sideY:"top"===m?"bottom":a.sideY}}}}},3275(e,t,n){"use strict";n.d(t,{K2:()=>r,Pe:()=>o});const r={style:{transition:"none"}},o={fallbackAxisSide:"end"}},9081(e,t,n){"use strict";n.d(t,{d:()=>o});var r=n(2147);function o(e,t,n,o){let i=!1,a=!1;const s=o??r.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...s}}},7664(e,t,n){"use strict";n.d(t,{d:()=>i});var r=n(3275),o=n(2147);function i(e){return"starting"===e?r.K2:o.t0}},5340(e,t,n){"use strict";function r(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}n.d(t,{v:()=>r})},3016(e,t,n){"use strict";n.d(t,{j:()=>o});var r=n(469);const o={name:"hide",async fn(e){const{width:t,height:n,x:o,y:i}=e.rects.reference,a=0===t&&0===n&&0===o&&0===i,s=await(0,r.jD)().fn(e);return{data:{referenceHidden:s.data?.referenceHidden||a}}}}},2717(e,t,n){"use strict";n.d(t,{GW:()=>u,Vs:()=>i,qV:()=>d});var r=n(6950);let o=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=r.T.startingStyle]="startingStyle",e[e.endingStyle=r.T.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e}({}),i=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({});const a={[i.popupOpen]:""},s=(i.popupOpen,i.pressed,{[o.open]:""}),c={[o.closed]:""},l={[o.anchorHidden]:""},d={open:e=>e?a:null},u={open:e=>e?s:c,anchorHidden:e=>e?l:null}},6488(e,t,n){"use strict";n.d(t,{L_:()=>c,l$:()=>d,tr:()=>l});var r=n(1609),o=n(9829),i=n(3819),a=n(1224),s=n(3494);function c(e,t,n,a){const s=n.useState("isMountedByTrigger",e),c=function(e,t){const n=r.useRef(null),o=r.useRef(null);return r.useCallback(r=>{if(void 0!==e){if(null!==n.current){const e=n.current,r=o.current,i=t.context.triggerElements.getById(e);r&&i===r&&t.context.triggerElements.delete(e),n.current=null,o.current=null}null!==r&&(n.current=e,o.current=r,t.context.triggerElements.add(e,r))}},[t,e])}(e,n),l=(0,o.K)(t=>{if(c(t),!t||!n.select("open"))return;const r=n.select("activeTriggerId");r!==e?null==r&&n.update({activeTriggerId:e,activeTriggerElement:t,...a}):n.update({activeTriggerElement:t,...a})});return(0,i.g)(()=>{s&&n.update({activeTriggerElement:t.current,...a})},[s,n,t,...Object.values(a)]),{registerTrigger:l,isMountedByThisTrigger:s}}function l(e){const t=e.useState("open");(0,i.g)(()=>{if(t&&!e.select("activeTriggerId")&&1===e.context.triggerElements.size){const t=e.context.triggerElements.entries().next();if(!t.done){const[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function d(e,t,n){const{mounted:r,setMounted:i,transitionStatus:c}=(0,a.$)(e);t.useSyncedValues({mounted:r,transitionStatus:c});const l=(0,o.K)(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),d=t.useState("preventUnmountingOnClose");return(0,s.v)({enabled:!d,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:c}}},1432(e,t,n){"use strict";n.d(t,{Z:()=>r});class r{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){const n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){const t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(const t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}},4145(e,t,n){"use strict";n.d(t,{o:()=>c,r:()=>a});var r=n(171),o=n(1664),i=n(2147);function a(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:(0,o.H)(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:i.t0,inactiveTriggerProps:i.t0,popupProps:i.t0}}const s=(0,r.M)(e=>e.triggerIdProp??e.activeTriggerId),c={open:(0,r.M)(e=>e.openProp??e.open),mounted:(0,r.M)(e=>e.mounted),transitionStatus:(0,r.M)(e=>e.transitionStatus),floatingRootContext:(0,r.M)(e=>e.floatingRootContext),preventUnmountingOnClose:(0,r.M)(e=>e.preventUnmountingOnClose),payload:(0,r.M)(e=>e.payload),activeTriggerId:s,activeTriggerElement:(0,r.M)(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:(0,r.M)((e,t)=>void 0!==t&&s(e)===t),isOpenedByTrigger:(0,r.M)((e,t)=>void 0!==t&&s(e)===t&&e.open),isMountedByTrigger:(0,r.M)((e,t)=>void 0!==t&&s(e)===t&&e.mounted),triggerProps:(0,r.M)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:(0,r.M)(e=>e.popupProps),popupElement:(0,r.M)(e=>e.popupElement),positionerElement:(0,r.M)(e=>e.positionerElement)}},9427(e,t,n){"use strict";n.d(t,{F4:()=>a,N7:()=>i,Np:()=>s,Ui:()=>o,dv:()=>r,jv:()=>c,r9:()=>l,zJ:()=>d});const r="none",o="trigger-press",i="trigger-hover",a="trigger-focus",s="outside-press",c="escape-key",l="disabled",d="imperative-action"},1835(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{S:()=>r})},4941(e,t,n){"use strict";function r(e){return null==e?e:"current"in e?e.current:e}n.d(t,{q:()=>r})},3057(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{m:()=>r})},6950(e,t,n){"use strict";n.d(t,{G:()=>a,T:()=>r});let r=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const o={[r.startingStyle]:""},i={[r.endingStyle]:""},a={transitionStatus:e=>"starting"===e?o:"ending"===e?i:null}},9567(e,t,n){"use strict";n.d(t,{s:()=>w});var r=n(1609),o=n(9175),i=n(1333),a=n(1289),s=n(3819),c=n(2667),l=n(9829),d=n(5569),u=n(7236),p=n(469),f=n(7306),g=n(9574),h=n(3016),m=n(3124);function b(e,t,n){const r="inline-start"===e||"inline-end"===e;return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function v(e,t,n){const{rects:r,placement:i}=e;return{side:b(t,(0,o.C0)(i),n),align:(0,o.Sg)(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function w(e){const{anchor:t,positionMethod:n="absolute",side:w="bottom",sideOffset:x=0,align:_="center",alignOffset:k=0,collisionBoundary:C,collisionPadding:A=5,sticky:j=!1,arrowPadding:S=5,disableAnchorTracking:E=!1,keepMounted:R=!1,floatingRootContext:M,mounted:T,collisionAvoidance:I,shiftCrossAxis:O=!1,nodeId:N,adaptiveOrigin:P,lazyFlip:z=!1,externalTree:D}=e,[$,L]=r.useState(null);T||null===$||L(null);const B=I.side||"flip",F=I.align||"flip",q=I.fallbackAxisSide||"end",H="function"==typeof t?t:void 0,U=(0,l.K)(H),V=H?U:t,W=(0,c.u)(t),J=(0,c.u)(T),G="rtl"===(0,f.j)(),K=$||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":G?"left":"right","inline-start":G?"right":"left"}[w],Z="center"===_?K:`${K}-${_}`;let X=A;const Y="bottom"===w?1:0,Q="top"===w?1:0,ee="right"===w?1:0,te="left"===w?1:0;"number"==typeof X?X={top:X+Y,right:X+te,bottom:X+Q,left:X+ee}:X&&(X={top:(X.top||0)+Y,right:(X.right||0)+te,bottom:(X.bottom||0)+Q,left:(X.left||0)+ee});const ne={boundary:"clipping-ancestors"===C?"clippingAncestors":C,padding:X},re=r.useRef(null),oe=(0,c.u)(x),ie=(0,c.u)(k),ae="function"!=typeof x?x:0,se="function"!=typeof k?k:0,ce=[(0,p.cY)(e=>{const t=v(e,w,G),n="function"==typeof oe.current?oe.current(t):oe.current,r="function"==typeof ie.current?ie.current(t):ie.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ae,se,G,w])],le="none"===F&&"shift"!==B,de=!le&&(j||O||"shift"===B),ue="none"===B?null:(0,p.UU)({...ne,padding:{top:X.top+1,right:X.right+1,bottom:X.bottom+1,left:X.left+1},mainAxis:!O&&"flip"===B,crossAxis:"flip"===F&&"alignment",fallbackAxisSideDirection:q}),pe=le?null:(0,p.BN)(e=>{const t=(0,i.R)(e.elements.floating).documentElement;return{...ne,rootBoundary:O?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:"none"!==F,crossAxis:de,limiter:j||O?void 0:(0,p.ER)(e=>{if(!re.current)return{};const{width:t,height:n}=re.current.getBoundingClientRect(),r=(0,o.TV)((0,o.C0)(e.placement));return{offset:("y"===r?t:n)/2+("y"===r?X.left+X.right:X.top+X.bottom)/2}})}},[ne,j,O,X,F]);"shift"===B||"shift"===F||"center"===_?ce.push(pe,ue):ce.push(ue,pe),ce.push((0,p.Ej)({...ne,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!J.current)return;const o=e.style;o.setProperty("--available-width",`${t}px`),o.setProperty("--available-height",`${n}px`);const i=(0,a.zk)(e).devicePixelRatio||1,{x:s,y:c,width:l,height:d}=r.reference,u=(Math.round((s+l)*i)-Math.round(s*i))/i,p=(Math.round((c+d)*i)-Math.round(c*i))/i;o.setProperty("--anchor-width",`${u}px`),o.setProperty("--anchor-height",`${p}px`)}}),(0,g.U)(()=>({element:re.current||(0,i.R)(re.current).createElement("div"),padding:S,offsetParent:"floating"}),[S]),{name:"transformOrigin",fn(e){const{elements:t,middlewareData:n,placement:r,rects:i,y:a}=e,s=(0,o.C0)(r),c=(0,o.TV)(s),l=re.current,d=n.arrow?.x||0,u=n.arrow?.y||0,p=d+(l?.clientWidth||0)/2,f=u+(l?.clientHeight||0)/2,g=Math.abs(n.shift?.y||0),h=i.reference.height/2,m="function"==typeof x?x(v(e,w,G)):x,b=g>m,y={top:`${p}px calc(100% + ${m}px)`,bottom:`${p}px ${-m}px`,left:`calc(100% + ${m}px) ${f}px`,right:`${-m}px ${f}px`}[s],_=`${p}px ${i.reference.y+h-a}px`;return t.floating.style.setProperty("--transform-origin",de&&"y"===c&&b?_:y),{}}},h.j,P),(0,s.g)(()=>{!T&&M&&M.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[T,M]);const fe=r.useMemo(()=>({elementResize:!E&&"undefined"!=typeof ResizeObserver,layoutShift:!E&&"undefined"!=typeof IntersectionObserver}),[E]),{refs:ge,elements:he,x:me,y:be,middlewareData:ve,update:we,placement:ye,context:xe,isPositioned:_e,floatingStyles:ke}=(0,u.w)({rootContext:M,open:R?T:void 0,placement:Z,middleware:ce,strategy:n,whileElementsMounted:R?void 0:(...e)=>(0,d.ll)(...e,fe),nodeId:N,externalTree:D}),{sideX:Ce,sideY:Ae}=ve.adaptiveOrigin||m.j,je=_e?n:"fixed",Se=r.useMemo(()=>{const e=P?{position:je,[Ce]:me,[Ae]:be}:{position:je,...ke};return _e||(e.opacity=0),e},[P,je,Ce,me,Ae,be,ke,_e]),Ee=r.useRef(null);(0,s.g)(()=>{if(!T)return;const e=W.current,t="function"==typeof e?e():e,n=(y(t)?t.current:t)||null||null;n!==Ee.current&&(ge.setPositionReference(n),Ee.current=n)},[T,ge,V,W]),r.useEffect(()=>{if(!T)return;const e=W.current;"function"!=typeof e&&y(e)&&e.current!==Ee.current&&(ge.setPositionReference(e.current),Ee.current=e.current)},[T,ge,V,W]),r.useEffect(()=>{if(R&&T&&he.domReference&&he.floating)return(0,d.ll)(he.domReference,he.floating,we,fe)},[R,T,he,we,fe]);const Re=(0,o.C0)(ye),Me=b(w,Re,G),Te=(0,o.Sg)(ye)||"center",Ie=Boolean(ve.hide?.referenceHidden);(0,s.g)(()=>{z&&T&&_e&&L(Re)},[z,T,_e,Re]);const Oe=r.useMemo(()=>({position:"absolute",top:ve.arrow?.y,left:ve.arrow?.x}),[ve.arrow]),Ne=0!==ve.arrow?.centerOffset;return r.useMemo(()=>({positionerStyles:Se,arrowStyles:Oe,arrowRef:re,arrowUncentered:Ne,side:Me,align:Te,physicalSide:Re,anchorHidden:Ie,refs:ge,context:xe,isPositioned:_e,update:we}),[Se,Oe,re,Ne,Me,Te,Re,Ie,ge,xe,_e,we])}function y(e){return null!=e&&"current"in e}},1036(e,t,n){"use strict";n.d(t,{V:()=>c});var r=n(5795),o=n(6082),i=n(9829),a=n(4941),s=n(6950);function c(e,t=!1,n=!0){const c=(0,o.N)();return(0,i.K)((o,i=null)=>{c.cancel();const l=(0,a.q)(e);if(null==l)return;const d=l,u=()=>{r.flushSync(o)};if("function"!=typeof d.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)o();else{if(t){const e=s.T.startingStyle;if(!d.hasAttribute(e))return void c.request(p);const t=new MutationObserver(()=>{d.hasAttribute(e)||(t.disconnect(),p())});return t.observe(d,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(p)}function p(){Promise.all(d.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||u()}).catch(()=>{if(n)return void(i?.aborted||u());const e=d.getAnimations();!i?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&p()})}})}},727(e,t,n){"use strict";n.d(t,{e:()=>o});var r=n(2496);function o(e){return(0,r.B)(e,"base-ui")}},917(e,t,n){"use strict";n.d(t,{S:()=>o});var r=n(1609);function o(e){const{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:i=0,isNativeButton:a}=e,s=o&&!1!==t,c=o&&!1===t;return{props:r.useMemo(()=>{const e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&n)&&(e["aria-disabled"]=n),!a||t&&!c||(e.disabled=n),e},[o,n,t,s,c,a,i])}}},3494(e,t,n){"use strict";n.d(t,{v:()=>a});var r=n(1609),o=n(9829),i=n(1036);function a(e){const{enabled:t=!0,open:n,ref:a,onComplete:s}=e,c=(0,o.K)(s),l=(0,i.V)(a,n,!1);r.useEffect(()=>{if(!t)return;const e=new AbortController;return l(c,e.signal),()=>{e.abort()}},[t,n,c,l])}},6097(e,t,n){"use strict";n.d(t,{i:()=>a});var r=n(2717),o=n(4233),i=n(7664);function a(e,t,{styles:n,transitionStatus:a,props:s,refs:c,hidden:l,inert:d=!1}){const u={...n};return d&&(u.pointerEvents="none"),(0,o.o)("div",e,{state:t,ref:c,props:[{role:"presentation",hidden:l,style:u},(0,i.d)(a),s],stateAttributesMapping:r.GW})}},4233(e,t,n){"use strict";n.d(t,{o:()=>f});var r=n(334),o=n(1609),i=n(6211),a=n(9742),s=n(6504),c=n(5340),l=n(1835),d=n(3057),u=n(9300),p=n(2147);function f(e,t,n={}){const f=t.render,h=function(e,t={}){const{className:n,style:r,render:o}=e,{state:f=p.t0,ref:g,props:h,stateAttributesMapping:m,enabled:b=!0}=t,v=b?(0,l.S)(n,f):void 0,w=b?(0,d.m)(r,f):void 0,y=b?(0,c.v)(f,m):p.t0,x=b&&h?function(e){if(Array.isArray(e))return(0,u.lZ)(e);return(0,u.v6)(void 0,e)}(h):void 0,_=b?(0,s.r)(y,x)??{}:p.t0;"undefined"!=typeof document&&(b?Array.isArray(g)?_.ref=(0,i.U)([_.ref,(0,a.v)(o),...g]):_.ref=(0,i.a)(_.ref,(0,a.v)(o),g):(0,i.a)(null,null));if(!b)return p.t0;void 0!==v&&(_.className=(0,u.VN)(_.className,v));void 0!==w&&(_.style=(0,s.r)(_.style,w));return _}(t,n);if(!1===n.enabled)return null;return function(e,t,n,i){if(t){if("function"==typeof t)return t(n,i);const e=(0,u.v6)(n,t.props);e.ref=n.ref;let r=t;if(r?.$$typeof===g){r=o.Children.toArray(t)[0]}return o.cloneElement(r,e)}if(e&&"string"==typeof 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);throw new Error((0,r.A)(8))}(e,f,h,n.state??p.t0)}const g=Symbol.for("react.lazy")},1224(e,t,n){"use strict";n.d(t,{$:()=>a});var r=n(1609),o=n(3819),i=n(6082);function a(e,t=!1,n=!1){const[a,s]=r.useState(e&&t?"idle":void 0),[c,l]=r.useState(e);return e&&!c&&(l(!0),s("starting")),e||!c||"ending"===a||n||s("ending"),e||c||"ending"!==a||s(void 0),(0,o.g)(()=>{if(!e&&c&&"ending"!==a&&n){const e=i.K.request(()=>{s("ending")});return()=>{i.K.cancel(e)}}},[e,c,a,n]),(0,o.g)(()=>{if(!e||t)return;const n=i.K.request(()=>{s(void 0)});return()=>{i.K.cancel(n)}},[t,e]),(0,o.g)(()=>{if(!e||!t)return;e&&c&&"idle"!==a&&s("starting");const n=i.K.request(()=>{s("idle")});return()=>{i.K.cancel(n)}},[t,e,c,a]),{mounted:c,setMounted:l,transitionStatus:a}}},6205(e,t,n){"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}n.d(t,{q:()=>r})},7591(e,t,n){"use strict";n.d(t,{KT:()=>l,cX:()=>c,nr:()=>s});const r="undefined"!=typeof navigator,o=function(){if(!r)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;if(e?.platform)return{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints};return{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),i=function(){if(!r)return"";const e=navigator.userAgentData;if(e?.platform)return e.platform;return navigator.platform??""}(),a=function(){if(!r)return"";const e=navigator.userAgentData;if(e&&Array.isArray(e.brands))return e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" ");return navigator.userAgent}(),s=(!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter:none"),"MacIntel"===o.platform&&o.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(o.platform),r&&/firefox/i.test(a),r&&/apple/i.test(navigator.vendor)),c=(r&&/Edg/i.test(a),r&&/android/i.test(i)||/android/i.test(a),r&&i.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints),l=a.includes("jsdom/")},2147(e,t,n){"use strict";function r(){}n.d(t,{t0:()=>o,tE:()=>r});Object.freeze([]);const o=Object.freeze({})},799(e,t,n){"use strict";n.d(t,{G1:()=>l,iE:()=>s,kz:()=>c,nk:()=>d});var r=n(1609),o=n(3074);const i=[];let a;function s(){return a}function c(e){i.push(e)}function l(e){const t=(t,n)=>{const r=(0,o.j)(u).current;let s;try{a=r;for(const e of i)e.before(r);s=e(t,n);for(const e of i)e.after(r);r.didInitialize=!0}finally{a=void 0}return s};return t.displayName=e.displayName||e.name,t}function d(e){return r.forwardRef(l(e))}function u(){return{didInitialize:!1}}},334(e,t,n){"use strict";n.d(t,{A:()=>i});var r,o;const i=(r="https://base-ui.com/production-error",o="Base UI",function(e,...t){const n=new URL(r);return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`${o} error #${e}; visit ${n} for the full message.`})},9742(e,t,n){"use strict";n.d(t,{v:()=>i});var r=n(1609),o=n(8521);function i(e){if(!r.isValidElement(e))return null;const t=e,n=t.props;return((0,o._)(19)?n?.ref:t.ref)??null}},6807(e,t,n){"use strict";function r(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}n.d(t,{g:()=>r})},6504(e,t,n){"use strict";function r(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{r:()=>r})},1333(e,t,n){"use strict";function r(e){return e?.ownerDocument||document}n.d(t,{R:()=>r})},8521(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(1609);const o=parseInt(r.version,10);function i(e){return o>=e}},4910(e,t,n){"use strict";var r;n.d(t,{X:()=>i});var o=n(1609);const i={...r||(r=n.t(o,2))}},6214(e,t,n){"use strict";n.d(t,{H:()=>l});var r=n(1609),o=n(7833),i=n(254),a=n(9829),s=n(3819),c=n(2147);class l extends o.i{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){r.useDebugValue(e),(0,s.g)(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){const n=this;(0,s.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,s.g)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){r.useDebugValue(e);const n=void 0!==t;(0,s.g)(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,o){return r.useDebugValue(e),(0,i.P)(this,this.selectors[e],t,n,o)}useContextCallback(e,t){r.useDebugValue(e);const n=(0,a.K)(t??c.tE);this.context[e]=n}useStateSetter(e){const t=r.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 r=n(this.state);return t(r,r,this),this.subscribe(e=>{const o=n(e);if(!Object.is(r,o)){const e=r;r=o,t(o,e,this)}})}}},7833(e,t,n){"use strict";n.d(t,{i:()=>o});var r=n(254);class o{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,o){return(0,r.P)(this,e,t,n,o)}}},171(e,t,n){"use strict";n.d(t,{M:()=>o});var r=n(334);const o=(e,t,n,o,i,a,...s)=>{if(s.length>0)throw new Error((0,r.A)(1));let c;if(e&&t&&n&&o&&i&&a)c=(r,s,c,l)=>{const d=e(r,s,c,l),u=t(r,s,c,l),p=n(r,s,c,l),f=o(r,s,c,l),g=i(r,s,c,l);return a(d,u,p,f,g,s,c,l)};else if(e&&t&&n&&o&&i)c=(r,a,s,c)=>{const l=e(r,a,s,c),d=t(r,a,s,c),u=n(r,a,s,c),p=o(r,a,s,c);return i(l,d,u,p,a,s,c)};else if(e&&t&&n&&o)c=(r,i,a,s)=>{const c=e(r,i,a,s),l=t(r,i,a,s),d=n(r,i,a,s);return o(c,l,d,i,a,s)};else if(e&&t&&n)c=(r,o,i,a)=>{const s=e(r,o,i,a),c=t(r,o,i,a);return n(s,c,o,i,a)};else if(e&&t)c=(n,r,o,i)=>{const a=e(n,r,o,i);return t(a,r,o,i)};else{if(!e)throw new Error("Missing arguments");c=e}return c}},254(e,t,n){"use strict";n.d(t,{P:()=>l});var r=n(1609),o=n(2484),i=n(2566),a=n(8521),s=n(799);const c=(0,a._)(19)?function(e,t,n,i,a){const c=(0,s.iE)();if(!c)return function(e,t,n,i,a){const s=r.useCallback(()=>t(e.getSnapshot(),n,i,a),[e,t,n,i,a]);return(0,o.useSyncExternalStore)(e.subscribe,s,s)}(e,t,n,i,a);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,a)||(d.store!==e&&(c.didChangeStore=!0),d.store=e,d.selector=t,d.a1=n,d.a2=i,d.a3=a,d.didChange=!0)):(d={store:e,selector:t,a1:n,a2:i,a3:a,value:t(e.getSnapshot(),n,i,a),didChange:!1},c.syncHooks.push(d));return d.value}:function(e,t,n,r,o){return(0,i.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,o))};function l(e,t,n,r,o){return c(e,t,n,r,o)}(0,s.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 r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);!r.didChange&&Object.is(r.value,o)||(t=!0,r.value=o,r.didChange=!1)}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 r=[];for(const e of n)r.push(e.subscribe(t));return()=>{for(const e of r)e()}}),(0,o.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},6082(e,t,n){"use strict";n.d(t,{K:()=>s,N:()=>c});var r=n(3074),o=n(543);const i=null;globalThis.requestAnimationFrame;const a=new class{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||(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}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 c(){const e=(0,r.j)(s.create).current;return(0,o.y)(e.disposeEffect),e}},2496(e,t,n){"use strict";n.d(t,{B:()=>s});var r=n(1609),o=n(4910);let i=0;const a=o.X.useId;function s(e,t){if(void 0!==a){const n=a();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[n,o]=r.useState(e),a=e||n;return r.useEffect(()=>{null==n&&(i+=1,o(`${t}-${i}`))},[n,t]),a}(e,t)}},3819(e,t,n){"use strict";n.d(t,{g:()=>o});var r=n(1609);const o="undefined"!=typeof document?r.useLayoutEffect:()=>{}},6211(e,t,n){"use strict";n.d(t,{U:()=>i,a:()=>o});var r=n(3074);function o(e,t,n,o){const i=(0,r.j)(a).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(i,e,t,n,o)&&s(i,[e,t,n,o]),i.callback}function i(e){const t=(0,r.j)(a).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}(t,e)&&s(t,e),t.callback}function a(){return{callback:null,cleanup:null,refs:[]}}function s(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 r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.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=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}},6012(e,t,n){"use strict";n.d(t,{j:()=>o});var r=n(1609);function o(e){const t=r.useRef(!0);t.current&&(t.current=!1,e())}},543(e,t,n){"use strict";n.d(t,{y:()=>i});var r=n(1609);const o=[];function i(e){r.useEffect(e,o)}},3074(e,t,n){"use strict";n.d(t,{j:()=>i});var r=n(1609);const o={};function i(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}},9829(e,t,n){"use strict";var r;n.d(t,{K:()=>c});var o=n(1609),i=n(3074);const a=(r||(r=n.t(o,2)))[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],s=a&&a!==o.useLayoutEffect?a:e=>e();function c(e){const t=(0,i.j)(l).current;return t.next=e,s(t.effect),t.trampoline}function l(){const e={next:void 0,callback:d,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function d(){0}},986(e,t,n){"use strict";n.d(t,{E:()=>i,Z:()=>a});var r=n(3074),o=n(543);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 a(){const e=(0,r.j)(i.create).current;return(0,o.y)(e.disposeEffect),e}},2667(e,t,n){"use strict";n.d(t,{u:()=>i});var r=n(3819),o=n(3074);function i(e){const t=(0,o.j)(a,e).current;return t.next=e,(0,r.g)(t.effect),t}function a(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},159(e,t,n){"use strict";n.d(t,{BN:()=>f,ER:()=>g,Ej:()=>h,UU:()=>s,cY:()=>p,jD:()=>d,rD:()=>a});var r=n(9175);function o(e,t,n){let{reference:o,floating:i}=e;const a=(0,r.TV)(t),s=(0,r.Dz)(t),c=(0,r.sq)(s),l=(0,r.C0)(t),d="y"===a,u=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,f=o[c]/2-i[c]/2;let g;switch(l){case"top":g={x:u,y:o.y-i.height};break;case"bottom":g={x:u,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-i.width,y:p};break;default:g={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":g[s]-=f*(n&&d?-1:1);break;case"end":g[s]+=f*(n&&d?-1:1)}return g}async function i(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:g=0}=(0,r._3)(t,e),h=(0,r.nI)(g),m=c[f?"floating"===p?"reference":"floating":p],b=(0,r.B1)(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:l})),v="floating"===p?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),y=await(null==a.isElement?void 0:a.isElement(w))&&await(null==a.getScale?void 0:a.getScale(w))||{x:1,y:1},x=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:w,strategy:l}):v);return{top:(b.top-x.top+h.top)/y.y,bottom:(x.bottom-b.bottom+h.bottom)/y.y,left:(b.left-x.left+h.left)/y.x,right:(x.right-b.right+h.right)/y.x}}const a=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:c}=n,l=c.detectOverflow?c:{...c,detectOverflow:i},d=await(null==c.isRTL?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:f}=o(u,r,d),g=r,h=0;const m={};for(let n=0;n<s.length;n++){const i=s[n];if(!i)continue;const{name:b,fn:v}=i,{x:w,y,data:x,reset:_}=await v({x:p,y:f,initialPlacement:r,placement:g,strategy:a,middlewareData:m,rects:u,platform:l,elements:{reference:e,floating:t}});p=null!=w?w:p,f=null!=y?y:f,m[b]={...m[b],...x},_&&h<50&&(h++,"object"==typeof _&&(_.placement&&(g=_.placement),_.rects&&(u=!0===_.rects?await c.getElementRects({reference:e,floating:t,strategy:a}):_.rects),({x:p,y:f}=o(u,g,d))),n=-1)}return{x:p,y:f,placement:g,strategy:a,middlewareData:m}};const s=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...b}=(0,r._3)(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=(0,r.C0)(i),w=(0,r.TV)(c),y=(0,r.C0)(c)===c,x=await(null==l.isRTL?void 0:l.isRTL(d.floating)),_=f||(y||!m?[(0,r.bV)(c)]:(0,r.WJ)(c)),k="none"!==h;!f&&k&&_.push(...(0,r.lP)(c,m,h,x));const C=[c,..._],A=await l.detectOverflow(t,b),j=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(u&&j.push(A[v]),p){const e=(0,r.w7)(i,s,x);j.push(A[e[0]],A[e[1]])}if(S=[...S,{placement:i,overflows:j}],!j.every(e=>e<=0)){var E,R;const e=((null==(E=a.flip)?void 0:E.index)||0)+1,t=C[e];if(t){if(!("alignment"===p&&w!==(0,r.TV)(t))||S.every(e=>(0,r.TV)(e.placement)!==w||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(R=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!n)switch(g){case"bestFit":{var M;const e=null==(M=S.filter(e=>{if(k){const t=(0,r.TV)(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}};function c(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l(e){return r.r_.some(t=>e[t]>=0)}const d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:i="referenceHidden",...a}=(0,r._3)(e,t);switch(i){case"referenceHidden":{const e=c(await o.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:l(e)}}}case"escaped":{const e=c(await o.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:l(e)}}}default:return{}}}}};const u=new Set(["left","top"]);const p=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:a,placement:s,middlewareData:c}=t,l=await async function(e,t){const{placement:n,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.C0)(n),c=(0,r.Sg)(n),l="y"===(0,r.TV)(n),d=u.has(s)?-1:1,p=a&&l?-1:1,f=(0,r._3)(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&"number"==typeof m&&(h="end"===c?-1*m:m),l?{x:h*p,y:g*d}:{x:g*d,y:h*p}}(t,e);return s===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}},f=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:a}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=(0,r._3)(e,t),u={x:n,y:o},p=await a.detectOverflow(t,d),f=(0,r.TV)((0,r.C0)(i)),g=(0,r.PG)(f);let h=u[g],m=u[f];if(s){const e="y"===g?"bottom":"right",t=h+p["y"===g?"top":"left"],n=h-p[e];h=(0,r.qE)(t,h,n)}if(c){const e="y"===f?"bottom":"right",t=m+p["y"===f?"top":"left"],n=m-p[e];m=(0,r.qE)(t,m,n)}const b=l.fn({...t,[g]:h,[f]:m});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[g]:s,[f]:c}}}}}},g=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=(0,r._3)(e,t),p={x:n,y:o},f=(0,r.TV)(i),g=(0,r.PG)(f);let h=p[g],m=p[f];const b=(0,r._3)(c,t),v="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const e="y"===g?"height":"width",t=a.reference[g]-a.floating[e]+v.mainAxis,n=a.reference[g]+a.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(d){var w,y;const e="y"===g?"width":"height",t=u.has((0,r.C0)(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(w=s.offset)?void 0:w[f])||0)+(t?0:v.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[f])||0)-(t?v.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[g]:h,[f]:m}}}},h=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:a,platform:s,elements:c}=t,{apply:l=()=>{},...d}=(0,r._3)(e,t),u=await s.detectOverflow(t,d),p=(0,r.C0)(i),f=(0,r.Sg)(i),g="y"===(0,r.TV)(i),{width:h,height:m}=a.floating;let b,v;"top"===p||"bottom"===p?(b=p,v=f===(await(null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(v=p,b="end"===f?"top":"bottom");const w=m-u.top-u.bottom,y=h-u.left-u.right,x=(0,r.jk)(m-u[b],w),_=(0,r.jk)(h-u[v],y),k=!t.middlewareData.shift;let C=x,A=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(A=y),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(C=w),k&&!f){const e=(0,r.T9)(u.left,0),t=(0,r.T9)(u.right,0),n=(0,r.T9)(u.top,0),o=(0,r.T9)(u.bottom,0);g?A=h-2*(0!==e||0!==t?e+t:(0,r.T9)(u.left,u.right)):C=m-2*(0!==n||0!==o?n+o:(0,r.T9)(u.top,u.bottom))}await l({...t,availableWidth:A,availableHeight:C});const j=await s.getDimensions(c.floating);return h!==j.width||m!==j.height?{reset:{rects:!0}}:{}}}}},5569(e,t,n){"use strict";n.d(t,{BN:()=>C,ER:()=>E,Ej:()=>j,UU:()=>A,cY:()=>k,jD:()=>S,ll:()=>_,rD:()=>R});var r=n(159),o=n(9175),i=n(1289);function a(e){const t=(0,i.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=(0,i.sb)(e),s=a?e.offsetWidth:n,c=a?e.offsetHeight:r,l=(0,o.LI)(n)!==s||(0,o.LI)(r)!==c;return l&&(n=s,r=c),{width:n,height:r,$:l}}function s(e){return(0,i.vq)(e)?e:e.contextElement}function c(e){const t=s(e);if(!(0,i.sb)(t))return(0,o.Jx)(1);const n=t.getBoundingClientRect(),{width:r,height:c,$:l}=a(t);let d=(l?(0,o.LI)(n.width):n.width)/r,u=(l?(0,o.LI)(n.height):n.height)/c;return d&&Number.isFinite(d)||(d=1),u&&Number.isFinite(u)||(u=1),{x:d,y:u}}const l=(0,o.Jx)(0);function d(e){const t=(0,i.zk)(e);return(0,i.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:l}function u(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),l=s(e);let u=(0,o.Jx)(1);t&&(r?(0,i.vq)(r)&&(u=c(r)):u=c(e));const p=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,i.zk)(e))&&t}(l,n,r)?d(l):(0,o.Jx)(0);let f=(a.left+p.x)/u.x,g=(a.top+p.y)/u.y,h=a.width/u.x,m=a.height/u.y;if(l){const e=(0,i.zk)(l),t=r&&(0,i.vq)(r)?(0,i.zk)(r):r;let n=e,o=(0,i._m)(n);for(;o&&r&&t!==n;){const e=c(o),t=o.getBoundingClientRect(),r=(0,i.L9)(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,g*=e.y,h*=e.x,m*=e.y,f+=a,g+=s,n=(0,i.zk)(o),o=(0,i._m)(n)}}return(0,o.B1)({width:h,height:m,x:f,y:g})}function p(e,t){const n=(0,i.CP)(e).scrollLeft;return t?t.left+n:u((0,i.ep)(e)).left+n}function f(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-p(e,n),y:n.top+t.scrollTop}}function g(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=(0,i.zk)(e),r=(0,i.ep)(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const e=(0,i.Tc)();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,l=o.offsetTop)}const d=p(r);if(d<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else d<=25&&(a+=d);return{width:a,height:s,x:c,y:l}}(e,n);else if("document"===t)r=function(e){const t=(0,i.ep)(e),n=(0,i.CP)(e),r=e.ownerDocument.body,a=(0,o.T9)(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=(0,o.T9)(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+p(e);const l=-n.scrollTop;return"rtl"===(0,i.L9)(r).direction&&(c+=(0,o.T9)(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:c,y:l}}((0,i.ep)(e));else if((0,i.vq)(t))r=function(e,t){const n=u(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=(0,i.sb)(e)?c(e):(0,o.Jx)(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:a*s.x,y:r*s.y}}(t,n);else{const n=d(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,o.B1)(r)}function h(e,t){const n=(0,i.$4)(e);return!(n===t||!(0,i.vq)(n)||(0,i.eu)(n))&&("fixed"===(0,i.L9)(n).position||h(n,t))}function m(e,t,n){const r=(0,i.sb)(t),a=(0,i.ep)(t),s="fixed"===n,c=u(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const d=(0,o.Jx)(0);function g(){d.x=p(a)}if(r||!r&&!s)if(("body"!==(0,i.mq)(t)||(0,i.ZU)(a))&&(l=(0,i.CP)(t)),r){const e=u(t,!0,s,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else a&&g();s&&!r&&a&&g();const h=!a||r||s?(0,o.Jx)(0):f(a,l);return{x:c.left+l.scrollLeft-d.x-h.x,y:c.top+l.scrollTop-d.y-h.y,width:c.width,height:c.height}}function b(e){return"static"===(0,i.L9)(e).position}function v(e,t){if(!(0,i.sb)(e)||"fixed"===(0,i.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,i.ep)(e)===n&&(n=n.ownerDocument.body),n}function w(e,t){const n=(0,i.zk)(e);if((0,i.Tf)(e))return n;if(!(0,i.sb)(e)){let t=(0,i.$4)(e);for(;t&&!(0,i.eu)(t);){if((0,i.vq)(t)&&!b(t))return t;t=(0,i.$4)(t)}return n}let r=v(e,t);for(;r&&(0,i.Lv)(r)&&b(r);)r=v(r,t);return r&&(0,i.eu)(r)&&b(r)&&!(0,i.sQ)(r)?n:r||(0,i.gJ)(e)||n}const y={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s="fixed"===a,l=(0,i.ep)(r),d=!!t&&(0,i.Tf)(t.floating);if(r===l||d&&s)return n;let p={scrollLeft:0,scrollTop:0},g=(0,o.Jx)(1);const h=(0,o.Jx)(0),m=(0,i.sb)(r);if((m||!m&&!s)&&(("body"!==(0,i.mq)(r)||(0,i.ZU)(l))&&(p=(0,i.CP)(r)),m)){const e=u(r);g=c(r),h.x=e.x+r.clientLeft,h.y=e.y+r.clientTop}const b=!l||m||s?(0,o.Jx)(0):f(l,p);return{width:n.width*g.x,height:n.height*g.y,x:n.x*g.x-p.scrollLeft*g.x+h.x+b.x,y:n.y*g.y-p.scrollTop*g.y+h.y+b.y}},getDocumentElement:i.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const s=[..."clippingAncestors"===n?(0,i.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,i.v9)(e,[],!1).filter(e=>(0,i.vq)(e)&&"body"!==(0,i.mq)(e)),o=null;const a="fixed"===(0,i.L9)(e).position;let s=a?(0,i.$4)(e):e;for(;(0,i.vq)(s)&&!(0,i.eu)(s);){const t=(0,i.L9)(s),n=(0,i.sQ)(s);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||(0,i.ZU)(s)&&!n&&h(e,s))?r=r.filter(e=>e!==s):o=t,s=(0,i.$4)(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],c=g(t,s[0],a);let l=c.top,d=c.right,u=c.bottom,p=c.left;for(let e=1;e<s.length;e++){const n=g(t,s[e],a);l=(0,o.T9)(n.top,l),d=(0,o.jk)(n.right,d),u=(0,o.jk)(n.bottom,u),p=(0,o.T9)(n.left,p)}return{width:d-p,height:u-l,x:p,y:l}},getOffsetParent:w,getElementRects:async function(e){const t=this.getOffsetParent||w,n=this.getDimensions,r=await n(e.floating);return{reference:m(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=a(e);return{width:t,height:n}},getScale:c,isElement:i.vq,isRTL:function(e){return"rtl"===(0,i.L9)(e).direction}};function x(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}=r,f=s(e),g=a||c?[...f?(0,i.v9)(f):[],...t?(0,i.v9)(t):[]]:[];g.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});const h=f&&d?function(e,t){let n,r=null;const a=(0,i.ep)(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(c,l){void 0===c&&(c=!1),void 0===l&&(l=1),s();const d=e.getBoundingClientRect(),{left:u,top:p,width:f,height:g}=d;if(c||t(),!f||!g)return;const h={rootMargin:-(0,o.RI)(p)+"px "+-(0,o.RI)(a.clientWidth-(u+f))+"px "+-(0,o.RI)(a.clientHeight-(p+g))+"px "+-(0,o.RI)(u)+"px",threshold:(0,o.T9)(0,(0,o.jk)(1,l))||1};let m=!0;function b(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||x(d,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(b,{...h,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(b,h)}r.observe(e)}(!0),s}(f,n):null;let m,b=-1,v=null;l&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&v&&t&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),f&&!p&&v.observe(f),t&&v.observe(t));let w=p?u(e):null;return p&&function t(){const r=u(e);w&&!x(w,r)&&n();w=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;g.forEach(e=>{a&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,p&&cancelAnimationFrame(m)}}const k=r.cY,C=r.BN,A=r.UU,j=r.Ej,S=r.jD,E=r.ER,R=(e,t,n)=>{const o=new Map,i={platform:y,...n},a={...i.platform,_c:o};return(0,r.rD)(e,t,{...i,platform:a})}},469(e,t,n){"use strict";n.d(t,{BN:()=>f,ER:()=>g,Ej:()=>m,UU:()=>h,cY:()=>p,jD:()=>b,we:()=>u});var r=n(5569),o=n(1609),i=n(5795),a="undefined"!=typeof document?o.useLayoutEffect:function(){};function s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!s(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l(e,t){const n=c(e);return Math.round(t*n)/n}function d(e){const t=o.useRef(e);return a(()=>{t.current=e}),t}function u(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:u=[],platform:p,elements:{reference:f,floating:g}={},transform:h=!0,whileElementsMounted:m,open:b}=e,[v,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,x]=o.useState(u);s(y,u)||x(u);const[_,k]=o.useState(null),[C,A]=o.useState(null),j=o.useCallback(e=>{e!==M.current&&(M.current=e,k(e))},[]),S=o.useCallback(e=>{e!==T.current&&(T.current=e,A(e))},[]),E=f||_,R=g||C,M=o.useRef(null),T=o.useRef(null),I=o.useRef(v),O=null!=m,N=d(m),P=d(p),z=d(b),D=o.useCallback(()=>{if(!M.current||!T.current)return;const e={placement:t,strategy:n,middleware:y};P.current&&(e.platform=P.current),(0,r.rD)(M.current,T.current,e).then(e=>{const t={...e,isPositioned:!1!==z.current};$.current&&!s(I.current,t)&&(I.current=t,i.flushSync(()=>{w(t)}))})},[y,t,n,P,z]);a(()=>{!1===b&&I.current.isPositioned&&(I.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[b]);const $=o.useRef(!1);a(()=>($.current=!0,()=>{$.current=!1}),[]),a(()=>{if(E&&(M.current=E),R&&(T.current=R),E&&R){if(N.current)return N.current(E,R,D);D()}},[E,R,D,N,O]);const L=o.useMemo(()=>({reference:M,floating:T,setReference:j,setFloating:S}),[j,S]),B=o.useMemo(()=>({reference:E,floating:R}),[E,R]),F=o.useMemo(()=>{const e={position:n,left:0,top:0};if(!B.floating)return e;const t=l(B.floating,v.x),r=l(B.floating,v.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...c(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,h,B.floating,v.x,v.y]);return o.useMemo(()=>({...v,update:D,refs:L,elements:B,floatingStyles:F}),[v,D,L,B,F])}const p=(e,t)=>{const n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},f=(e,t)=>{const n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},g=(e,t)=>({fn:(0,r.ER)(e).fn,options:[e,t]}),h=(e,t)=>{const n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>{const n=(0,r.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}},b=(e,t)=>{const n=(0,r.jD)(e);return{name:n.name,fn:n.fn,options:[e,t]}}},1289(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function o(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 a(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function l(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function d(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function u(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function p(e){return/^(table|td|th)$/.test(o(e))}function f(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{$4:()=>C,CP:()=>k,L9:()=>_,Ll:()=>s,Lv:()=>p,Ng:()=>d,Tc:()=>y,Tf:()=>f,ZU:()=>u,_m:()=>S,ep:()=>a,eu:()=>x,gJ:()=>w,mq:()=>o,sQ:()=>v,sb:()=>l,v9:()=>j,vq:()=>c,zk:()=>i});const g=/transform|translate|scale|rotate|perspective|filter/,h=/paint|layout|strict|content/,m=e=>!!e&&"none"!==e;let b;function v(e){const t=c(e)?_(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!y()&&(m(t.backdropFilter)||m(t.filter))||g.test(t.willChange||"")||h.test(t.contain||"")}function w(e){let t=C(e);for(;l(t)&&!x(t);){if(v(t))return t;if(f(t))return null;t=C(t)}return null}function y(){return null==b&&(b="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),b}function x(e){return/^(html|body|#document)$/.test(o(e))}function _(e){return i(e).getComputedStyle(e)}function k(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function C(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||a(e);return d(t)?t.host:t}function A(e){const t=C(e);return x(t)?e.ownerDocument?e.ownerDocument.body:e.body:l(t)&&u(t)?t:A(t)}function j(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=A(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),s=i(o);if(a){const e=S(s);return t.concat(s,s.visualViewport||[],u(o)?o:[],e&&n?j(e):[])}return t.concat(o,j(o,[],n))}function S(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},9175(e,t,n){"use strict";n.d(t,{B1:()=>E,C0:()=>p,Dz:()=>b,Jx:()=>c,LI:()=>a,PG:()=>g,RI:()=>s,Sg:()=>f,T9:()=>i,TV:()=>m,WJ:()=>w,_3:()=>u,bV:()=>j,jk:()=>o,lP:()=>A,nI:()=>S,qE:()=>d,r_:()=>r,sq:()=>h,w7:()=>v});const r=["top","right","bottom","left"],o=Math.min,i=Math.max,a=Math.round,s=Math.floor,c=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t,n){return i(e,o(t,n))}function u(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function b(e){return g(m(e))}function v(e,t,n){void 0===n&&(n=!1);const r=f(e),o=b(e),i=h(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=j(a)),[a,j(a)]}function w(e){const t=j(e);return[y(e),t,y(t)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const x=["left","right"],_=["right","left"],k=["top","bottom"],C=["bottom","top"];function A(e,t,n,r){const o=f(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?_:x:t?x:_;case"left":case"right":return t?k:C;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}function j(e){const t=p(e);return l[t]+e.slice(t.length)}function S(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function E(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},6144(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(3022),o=n(6087),i=n(790),a=(0,o.forwardRef)(({children:e,className:t,ariaLabel:n,as:o="div",...a},s)=>(0,i.jsx)(o,{ref:s,className:(0,r.A)("admin-ui-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...a,children:e}));a.displayName="NavigableRegion";var s=a},1748(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(1220),o=n(8503),i=n(790);function a({headingLevel:e=2,breadcrumbs:t,badges:n,title:a,subTitle:s,actions:c,showSidebarToggle:l=!0}){const d=`h${e}`;return(0,i.jsxs)(r.B,{direction:"column",className:"admin-ui-page__header",render:(0,i.jsx)("header",{}),children:[(0,i.jsxs)(r.B,{direction:"row",justify:"space-between",gap:"sm",children:[(0,i.jsxs)(r.B,{direction:"row",gap:"sm",align:"center",justify:"start",children:[l&&(0,i.jsx)(o.D,{bubblesVirtually:!0,className:"admin-ui-page__sidebar-toggle-slot"}),a&&(0,i.jsx)(d,{className:"admin-ui-page__header-title",children:a}),t,n]}),(0,i.jsx)(r.B,{direction:"row",gap:"sm",style:{width:"auto",flexShrink:0},className:"admin-ui-page__header-actions",align:"center",children:c})]}),s&&(0,i.jsx)("p",{className:"admin-ui-page__header-subtitle",children:s})]})}},1753(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(3022),o=n(1748),i=n(6144),a=n(8503),s=n(790);function c({headingLevel:e,breadcrumbs:t,badges:n,title:a,subTitle:c,children:l,className:d,actions:u,ariaLabel:p,hasPadding:f=!1,showSidebarToggle:g=!0}){const h=(0,r.A)("admin-ui-page",d),m=p??("string"==typeof a?a:"");return(0,s.jsxs)(i.A,{className:h,ariaLabel:m,children:[(a||t||n||u)&&(0,s.jsx)(o.A,{headingLevel:e,breadcrumbs:t,badges:n,title:a,subTitle:c,actions:u,showSidebarToggle:g}),f?(0,s.jsx)("div",{className:"admin-ui-page__content has-padding",children:l}):l]})}c.SidebarToggleFill=a.a;var l=c},8503(e,t,n){"use strict";n.d(t,{D:()=>i,a:()=>o});var r=n(6427),{Fill:o,Slot:i}=(0,r.createSlotFill)("SidebarToggle")},3109(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6087),o=(0,r.forwardRef)(({icon:e,size:t=24,...n},o)=>(0,r.cloneElement)(e,{width:t,height:t,...n,ref:o}))},3758(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})})},8901(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})})},8329(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})})},5995(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},4211(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fillRule:"evenodd",children:(0,o.jsx)(r.Path,{d:"M19.53 4.47a.75.75 0 0 1 0 1.06L17.06 8l.77.769a3.155 3.155 0 0 1 .685 3.439 3.15 3.15 0 0 1-.685 1.022v.001L13.23 17.83v.001a3.15 3.15 0 0 1-4.462 0L8 17.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L6.94 16l-.77-.769a3.154 3.154 0 0 1-.685-3.439 3.15 3.15 0 0 1 .685-1.023l4.599-4.598a3.152 3.152 0 0 1 4.462 0l.769.768 2.47-2.47a.75.75 0 0 1 1.06 0Zm-2.76 7.7L15 13.94 10.06 9l1.771-1.77a1.65 1.65 0 0 1 2.338 0L16.77 9.83a1.649 1.649 0 0 1 0 2.338h-.001ZM13.94 15 9 10.06l-1.77 1.771a1.65 1.65 0 0 0 0 2.338l2.601 2.602a1.649 1.649 0 0 0 2.338 0v-.001L13.94 15Z"})})},4260(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})})},9099(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})})},1866(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},8847(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})})},9203(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})})},815(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})})},2243(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})})},5210(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})})},5294(e,t,n){"use strict";n.d(t,{yf:()=>o});var r=["@wordpress/admin-ui","@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/boot","@wordpress/commands","@wordpress/connectors","@wordpress/workflows","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/font-list-route","@wordpress/format-library","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/rich-text","@wordpress/route","@wordpress/router","@wordpress/routes","@wordpress/sync","@wordpress/theme","@wordpress/dataviews","@wordpress/fields","@wordpress/lazy-editor","@wordpress/media-utils","@wordpress/upload-media","@wordpress/global-styles-ui","@wordpress/ui","@wordpress/views"],o=(e,t)=>{if(!r.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return{lock:i,unlock:a}};function i(e,t){if(!e)throw new Error("Cannot lock an undefined object.");const n=e;c in n||(n[c]={}),s.set(n[c],t)}function a(e){if(!e)throw new Error("Cannot unlock an undefined object.");const t=e;if(!(c in t))throw new Error("Cannot unlock an object that was not locked before. ");return s.get(t[c])}var s=new WeakMap,c=Symbol("Private API ID")},9174(e,t,n){"use strict";n.d(t,{Ax:()=>c,BM:()=>d});var r=n(3749),o=n(5728),i=(n(5885),n(6582)),a=n(6301),s=n(3132);function c(e){if("string"!=typeof e||""===e.trim())throw new Error("Seed color must be a non-empty string");return(0,i.N)(e,s.m)}var l="surface2";function d(e,t){if("string"!=typeof e||""===e.trim())throw new Error("Seed color must be a non-empty string");const n=t?{mainDirection:(c=t).direction,pinLightness:{stepName:l,value:(0,a.C2)((0,r.A)(c.ramp[l],[o.A,"l"]),c.direction)}}:void 0;var c;return(0,i.N)(e,s.l,n)}},6339(e,t,n){"use strict";n.d(t,{Hw:()=>l,bJ:()=>d,jB:()=>u});var r=n(3873),o=n(317),i=n(4576),a=n(6715),s=n(380),c=n(5728);n(5885);function l(e){const t=(0,a.A)((0,i.A)(e,o.A));return(0,a.A)(t,{format:"hex"})}function d(e,t){return(0,r.A)(e,t)}function u(e){return(0,i.A)((0,s.A)(e,{space:o.A,method:"css"}),c.A)}},5189(e,t,n){"use strict";n.d(t,{Tq:()=>l,UE:()=>i,Uv:()=>a,iV:()=>c,nI:()=>p,oR:()=>s,r8:()=>u,yh:()=>d});var r=n(4576),o=n(5728),i=(n(5885),(0,r.A)("white",o.A)),a=(0,r.A)("black",o.A),s=.02,c=3.1,l={lighter:{min:.2,max:.4},darker:{min:.75,max:.98}},d=.004,u=10,p={bg:"#fcfcfc",primary:"#3858e9",info:"#0090ff",success:"#4ab866",caution:"#f0d149",warning:"#f0b849",error:"#cc1818"}},7685(e,t,n){"use strict";n.d(t,{a:()=>d});var r=n(3749),o=n(5728),i=(n(5885),n(6301)),a=n(5189),s=n(6339),c=n(8043);function l(e,t){return Math.log(e/t)}function d(e,t,n,d,{lightnessConstraint:u,taperChromaOptions:p}={}){if(n<=1)return{color:e,reached:!0,achieved:1};function f(e){let n=e,i=(0,r.A)(t,[o.A,"c"]);if(p){const e=(0,c.D)(t,n,p);if(!("l"in e)||!("c"in e))return e;n=e.l,i=e.c}return(0,s.jB)({spaceId:"oklch",coords:[n,i,(0,r.A)(t,[o.A,"h"])]})}const g="lighter"===d?1:0,h="lighter"===d?a.UE:a.Uv,m=(0,s.bJ)(e,h);if(u){const t=f(u.value),r=(0,s.bJ)(e,t),o=l(r,n)>=-a.yh;if(o||"force"===u.type)return{color:t,reached:o,achieved:r,deficit:o?l(r,m):l(n,r)}}if(l(m,n)<=a.yh)return{color:h,reached:l(m,n)>=-a.yh,achieved:m,deficit:l(n,m)};const b=(0,r.A)(e,[o.A,"l"]),v=l(1,n),w=g,y=l(m,n);return{color:(0,i.A6)(f,t=>l((0,s.bJ)(e,t),n),b,v,w,y),reached:!0,achieved:n,deficit:l(n,m)}}},6582(e,t,n){"use strict";n.d(t,{N:()=>p});var r=n(3749),o=n(4721),i=n(7840),a=n(5728),s=(n(5885),n(6339)),c=n(7685),l=n(6301),d=n(5189);function u({seed:e,sortedSteps:t,config:n,mainDir:r,oppDir:o,pinLightness:i}){const a={};let d,u,p=-1/0,f="lighter";const g=new Map;g.set("seed",e);for(const h of t){let t=function(e,t){return"main"===t?r:"opposite"===t?o:"best"===t?(0,l.tp)(e,m.preferLighter).better:t};const{contrast:m,lightness:b,taperChromaOptions:v,sameAsIfPossible:w}=n[h],y=g.get(m.reference);if(!y)throw new Error(`Reference color for step ${h} not found: ${m.reference}`);if(w){const e=g.get(w);if(!e)throw new Error(`Same-as color for step ${h} not found: ${w}`);if((0,s.bJ)(y,e)>=(0,l.Pr)(m.target)){g.set(h,e),a[h]=(0,s.Hw)(e);continue}}const x=t(y,m.followDirection),_=(0,l.Pr)(m.target);let k;i?.stepName===h?k={value:i.value,type:"force"}:b&&(k={value:b(x),type:"onlyIfSucceeds"});const C=(0,c.a)(y,e,_,x,{lightnessConstraint:k,taperChromaOptions:v});!m.ignoreWhenAdjustingSeed&&C.deficit&&C.deficit>p&&(p=C.deficit,f=x,u=h),g.set(h,C.color),a[h]=(0,s.Hw)(C.color),C.reached||m.ignoreWhenAdjustingSeed||(d??=[],d.push(h))}return{rampResults:a,warnings:d,maxDeficit:p,maxDeficitDirection:f,maxDeficitStep:u}}function p(e,t,{mainDirection:n,pinLightness:c,rescaleToFitContrastTargets:p=!0}={}){let f;try{f=(0,s.jB)(e)}catch(t){throw new Error(`Invalid seed color "${e}": ${t instanceof Error?t.message:"Unknown error"}`)}let g="lighter",h="darker";if(n)g=n,h="darker"===n?"lighter":"darker";else{const{better:e,worse:t}=(0,l.tp)(f);g=e,h=t}const m=(0,l.xQ)(t),{rampResults:b,warnings:v,maxDeficit:w,maxDeficitDirection:y,maxDeficitStep:x}=u({seed:f,sortedSteps:m,config:t,mainDir:g,oppDir:h,pinLightness:c});let _=b;if(w>d.yh&&p){let e=function(e){return(0,s.jB)((0,o.A)((0,i.A)(f),[a.A,"l"],e))},n=function(e){const n=u({seed:e,sortedSteps:d,config:t,mainDir:g,oppDir:h,pinLightness:c});return n.maxDeficitDirection===y?n.maxDeficit:-w};const d=(0,l.Lr)(x,t),p="lighter"===y?0:1,b=-w,v=(0,r.A)(f,[a.A,"l"]),k=w;_=u({seed:(0,l.A6)(e,n,p,b,v,k),sortedSteps:m,config:t,mainDir:g,oppDir:h,pinLightness:c}).rampResults}if("darker"===g){const e=_.surface1;_.surface1=_.surface3,_.surface3=e}return{ramp:_,warnings:v,direction:g}}},3132(e,t,n){"use strict";n.d(t,{l:()=>d,m:()=>l});var r=e=>"lighter"===e?.9551:.235,o={alpha:.7},i={alpha:.6,kLight:.2,kDark:.2},a={alpha:.6,radiusDark:.01,radiusLight:.01,kLight:.8,kDark:.8},s={alpha:.75,radiusDark:.01,radiusLight:.01},c={contrast:{reference:"surface3",followDirection:"main",target:7,preferLighter:!0},lightness:r,taperChromaOptions:i},l={surface1:{contrast:{reference:"surface2",followDirection:"opposite",target:1.06,ignoreWhenAdjustingSeed:!0},taperChromaOptions:o},surface2:{contrast:{reference:"seed",followDirection:"main",target:1}},surface3:{contrast:{reference:"surface2",followDirection:"main",target:1.06},taperChromaOptions:o},surface4:{contrast:{reference:"surface2",followDirection:"main",target:1.12},taperChromaOptions:o},surface5:{contrast:{reference:"surface2",followDirection:"main",target:1.2},taperChromaOptions:o},surface6:{contrast:{reference:"surface2",followDirection:"main",target:1.4},taperChromaOptions:o},bgFill1:{contrast:{reference:"surface2",followDirection:"main",target:4},lightness:e=>"lighter"===e?.67:.45},bgFill2:{contrast:{reference:"bgFill1",followDirection:"main",target:1.2}},bgFillInverted1:{contrast:{reference:"bgFillInverted2",followDirection:"opposite",target:1.2}},bgFillInverted2:c,bgFillDark:{contrast:{reference:"surface3",followDirection:"darker",target:7,ignoreWhenAdjustingSeed:!0},lightness:r,taperChromaOptions:i},stroke1:{contrast:{reference:"stroke3",followDirection:"opposite",target:2.6},taperChromaOptions:a},stroke2:{contrast:{reference:"stroke3",followDirection:"opposite",target:2.4},taperChromaOptions:a},stroke3:{contrast:{reference:"surface3",followDirection:"main",target:3},taperChromaOptions:a},stroke4:{contrast:{reference:"stroke3",followDirection:"main",target:1.5},taperChromaOptions:a},fgSurface1:{contrast:{reference:"surface3",followDirection:"main",target:2,preferLighter:!0},taperChromaOptions:i},fgSurface2:{contrast:{reference:"surface3",followDirection:"main",target:3,preferLighter:!0},taperChromaOptions:i},fgSurface3:{contrast:{reference:"surface3",followDirection:"main",target:4.5,preferLighter:!0},lightness:e=>"lighter"===e?.77:.56,taperChromaOptions:i},fgSurface4:c,fgFill:{contrast:{reference:"bgFill1",followDirection:"best",target:4.5,preferLighter:!0},lightness:r,taperChromaOptions:i},fgFillInverted:{contrast:{reference:"bgFillInverted1",followDirection:"best",target:4.5,preferLighter:!0},lightness:r,taperChromaOptions:i},fgFillDark:{contrast:{reference:"bgFillDark",followDirection:"best",target:4.5,preferLighter:!0},lightness:r,taperChromaOptions:i}},d={...l,surface1:{...l.surface1,taperChromaOptions:s},surface2:{contrast:{reference:"bgFill1",followDirection:"opposite",target:l.bgFill1.contrast.target,ignoreWhenAdjustingSeed:!0},taperChromaOptions:s},surface3:{...l.surface3,taperChromaOptions:s},surface4:{...l.surface4,taperChromaOptions:s},surface5:{...l.surface5,taperChromaOptions:s},surface6:{...l.surface6,taperChromaOptions:s},bgFill1:{contrast:{reference:"seed",followDirection:"main",target:1}},stroke1:{...l.stroke1},stroke2:{...l.stroke2},stroke3:{...l.stroke3,sameAsIfPossible:"fgSurface3",taperChromaOptions:void 0},stroke4:{...l.stroke4,taperChromaOptions:void 0},fgSurface1:{...l.fgSurface1,taperChromaOptions:void 0},fgSurface2:{...l.fgSurface2,taperChromaOptions:void 0},fgSurface3:{...l.fgSurface3,taperChromaOptions:void 0,sameAsIfPossible:"bgFill1"},fgSurface4:{...l.fgSurface4,taperChromaOptions:void 0}}},5885(e,t,n){"use strict";var r=n(7602),o=n(317),i=n(8562),a=n(2004),s=n(5728);r.A.register(o.A),r.A.register(s.A),r.A.register(a.A),r.A.register(i.A)},8043(e,t,n){"use strict";n.d(t,{D:()=>s});var r=n(3749),o=n(317),i=n(380),a=n(5728);n(5885);function s(e,t,n={}){const i=n.gamut??o.A,s=n.alpha??.65,u=n.carry??.5,p=n.cUpperBound??.45,g=n.radiusLight??.2,h=n.radiusDark??.2,m=n.kLight??.85,b=n.kDark??.85,v=n.achromaEpsilon??.005,w=Math.max(0,(0,r.A)(e,[a.A,"c"]));let y=(0,r.A)(e,[a.A,"h"]);const x=w<v,_=null===y||!Number.isFinite(y);if(x||_){if("number"!=typeof n.hueFallback)return{space:a.A,coords:[c(t),0,0],alpha:1};y=l(n.hueFallback)}const k=c((0,r.A)(e,[a.A,"l"])),C=f(k,y,i,p),A=f(c(t),y,i,p);let j=0;j=c(w/(C>0?C:1e-6));const S=s*A*Math.pow(j,c(u))*function(e,t,n){const r=t-e;if(r>=0){const e=n.radiusLight>0?Math.abs(r)/n.radiusLight:1,t=d(e>1?1:e);return 1-(1-n.kLight)*t}const o=n.radiusDark>0?Math.abs(r)/n.radiusDark:1,i=d(o>1?1:o);return 1-(1-n.kDark)*i}(k,t,{radiusLight:g,radiusDark:h,kLight:m,kDark:b});return{l:c(t),c:S}}function c(e){return e<0?0:e>1?1:e}function l(e){let t=e%360;return t<0&&(t+=360),t}function d(e){const t=c(e);return.5-.5*Math.cos(Math.PI*t)}var u=new Map;function p(e,t){return Math.round(e/t)*t}function f(e,t,n,o){const s=function(e,t,n,r){return`${n}|L:${p(e,.05)}|H:${p(l(t),10)}|cap:${p(r,.05)}`}(e,t,n.id,o),c=u.get(s);if("number"==typeof c)return c;const d=function(e,t,n,o){const s={space:a.A,coords:[e,o,t],alpha:1},c=(0,i.A)(s,{space:n,method:"css"});return(0,r.A)(c,[a.A,"c"])}(e,t,n,o);return u.set(s,d),d}},6301(e,t,n){"use strict";n.d(t,{A6:()=>d,C2:()=>l,Lr:()=>a,Pr:()=>c,tp:()=>s,xQ:()=>i});n(5885);var r=n(5189),o=n(6339);function i(e){const{dependents:t}=function(e){const t=new Map,n=new Map;return Object.keys(e).forEach(e=>{t.set(e,[])}),n.set("seed",[]),Object.keys(e).forEach(e=>{n.set(e,[])}),Object.entries(e).forEach(([e,r])=>{const o=e,i=r.contrast.reference;t.get(o).push(i),n.get(i).push(o),r.sameAsIfPossible&&(t.get(o).push(r.sameAsIfPossible),n.get(r.sameAsIfPossible).push(o))}),{dependencies:t,dependents:n}}(e),n=[],r=new Set,o=new Set;return function e(i){if(o.has(i))throw new Error(`Circular dependency detected involving step: ${String(i)}`);if(r.has(i))return;o.add(i),(t.get(i)||[]).forEach(t=>{e(t)}),o.delete(i),r.add(i),"seed"!==i&&n.unshift(i)}("seed"),n}function a(e,t){const n=new Set;return function e(r){if("seed"===r||n.has(r))return;const o=t[r];o&&(e(o.contrast.reference),o.sameAsIfPossible&&e(o.sameAsIfPossible),n.add(r))}(e),Array.from(n)}function s(e,t){return(0,o.bJ)(e,r.Uv)>(0,o.bJ)(e,r.UE)+(t?r.iV:0)?{better:"darker",worse:"lighter"}:{better:"lighter",worse:"darker"}}function c(e){return 1===e?1:e+r.oR}function l(e,t){const n=r.Tq[t];return Math.max(n.min,Math.min(n.max,e))}function d(e,t,n,o,i,a){let s,c,l=n,d=o,u=!1,p=i,f=a,g=!1,h=0;for(;;){h++;const n=(l*f-p*d)/(f-d);if(s=e(n),c=t(s),Math.abs(c)<=r.yh||h>=r.r8)break;c<=0?(l=n,d=c,u&&(f/=2),u=!0,g=!1):(p=n,f=c,g&&(d/=2),g=!0,u=!1)}return s}},2271(e,t,n){"use strict";n.d(t,{D:()=>r});var r=(0,n(6087).createContext)({resolvedSettings:{color:{},cursor:void 0}})},5424(e,t,n){"use strict";n.d(t,{s:()=>o});var r=n(5294),{lock:o,unlock:i}=(0,r.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/theme")},9572(e,t,n){"use strict";n.d(t,{A:()=>r});var r={"primary-bgFill1":["bg-interactive-brand-strong"],"primary-fgFill":["fg-interactive-brand-strong","fg-interactive-brand-strong-active"],"primary-bgFill2":["bg-interactive-brand-strong-active"],"primary-surface4":["bg-interactive-brand-weak-active"],"primary-fgSurface3":["fg-interactive-brand","fg-interactive-brand-active"],"primary-stroke3":["bg-thumb-brand","bg-thumb-brand-active","stroke-focus-brand","stroke-interactive-brand","stroke-surface-brand-strong"],"primary-stroke4":["stroke-interactive-brand-active"],"primary-stroke1":["stroke-surface-brand"],"primary-surface1":["bg-surface-brand"],"info-surface2":["bg-surface-info-weak"],"info-surface4":["bg-surface-info"],"info-fgSurface4":["fg-content-info"],"info-fgSurface3":["fg-content-info-weak"],"info-stroke3":["stroke-surface-info-strong"],"info-stroke1":["stroke-surface-info"],"success-surface2":["bg-surface-success-weak"],"success-surface4":["bg-surface-success"],"success-fgSurface4":["fg-content-success"],"success-fgSurface3":["fg-content-success-weak"],"success-stroke3":["stroke-surface-success-strong"],"success-stroke1":["stroke-surface-success"],"warning-surface2":["bg-surface-warning-weak"],"warning-surface4":["bg-surface-warning"],"warning-fgSurface4":["fg-content-warning"],"warning-fgSurface3":["fg-content-warning-weak"],"warning-stroke3":["stroke-surface-warning-strong"],"warning-stroke1":["stroke-surface-warning"],"error-bgFill1":["bg-interactive-error-strong"],"error-fgFill":["fg-interactive-error-strong","fg-interactive-error-strong-active"],"error-bgFill2":["bg-interactive-error-strong-active"],"error-surface2":["bg-interactive-error-active","bg-surface-error-weak"],"error-surface4":["bg-interactive-error-weak-active","bg-surface-error"],"error-fgSurface4":["fg-content-error"],"error-fgSurface3":["fg-content-error-weak","fg-interactive-error","fg-interactive-error-active"],"error-stroke3":["stroke-interactive-error","stroke-interactive-error-strong","stroke-surface-error-strong"],"error-stroke4":["stroke-interactive-error-active"],"error-stroke1":["stroke-surface-error"],"bg-surface2":["bg-surface-neutral"],"bg-surface5":["bg-interactive-neutral-strong-disabled"],"bg-surface4":["bg-interactive-neutral-weak-active"],"bg-surface3":["bg-surface-neutral-strong"],"bg-fgSurface4":["fg-content-neutral","fg-interactive-neutral","fg-interactive-neutral-active"],"bg-fgSurface3":["fg-content-neutral-weak","fg-interactive-neutral-weak"],"bg-fgSurface2":["fg-interactive-neutral-disabled","fg-interactive-neutral-strong-disabled","fg-interactive-neutral-weak-disabled"],"bg-stroke3":["bg-thumb-neutral-weak","stroke-interactive-neutral","stroke-surface-neutral-strong"],"bg-stroke4":["bg-thumb-neutral-weak-active","stroke-interactive-neutral-active","stroke-interactive-neutral-strong"],"bg-stroke2":["bg-thumb-neutral-disabled","bg-track-neutral","stroke-interactive-neutral-disabled","stroke-surface-neutral"],"bg-stroke1":["bg-track-neutral-weak","stroke-surface-neutral-weak"],"bg-bgFillInverted2":["bg-interactive-neutral-strong-active"],"bg-bgFillInverted1":["bg-interactive-neutral-strong"],"bg-fgFillInverted":["fg-interactive-neutral-strong","fg-interactive-neutral-strong-active"],"bg-surface1":["bg-surface-neutral-weak"],"caution-surface2":["bg-surface-caution-weak"],"caution-surface4":["bg-surface-caution"],"caution-fgSurface4":["fg-content-caution"],"caution-fgSurface3":["fg-content-caution-weak"]}},3843(e,t,n){"use strict";n.d(t,{j:()=>a});var r=n(5424),o=n(697),i=n(7998),a={};(0,r.s)(a,{ThemeProvider:o.N,useThemeProviderStyles:i.i})},697(e,t,n){"use strict";n.d(t,{N:()=>l});var r=n(6087),o=n(2271),i=n(7998),a=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='f4e6e06c6a']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","f4e6e06c6a"),e.appendChild(document.createTextNode(".dba930ea7a9438fd__root{display:contents}")),document.head.appendChild(e)}var s="dba930ea7a9438fd__root";function c({instanceId:e,isRoot:t}){const n=`[data-wpds-theme-provider-id="${e}"]`,r=[];return t&&r.push(`:root:has(.${s}[data-wpds-root-provider="true"]${n})`),r.push(`.${s}.${s}${n}`),r.join(",")}var l=({children:e,color:t={},cursor:n,isRoot:l=!1,density:d})=>{const u=(0,r.useId)(),{themeProviderStyles:p,resolvedSettings:f}=(0,i.i)({color:t,cursor:n}),g=(0,r.useMemo)(()=>({resolvedSettings:f}),[f]);return(0,a.jsxs)(a.Fragment,{children:[p?(0,a.jsx)("style",{children:`${c({instanceId:u,isRoot:l})} {${h=p,Object.entries(h).map(([e,t])=>`${e}: ${t};`).join("")}}`}):null,(0,a.jsx)("div",{"data-wpds-theme-provider-id":u,"data-wpds-root-provider":l,"data-wpds-density":d,className:s,children:(0,a.jsx)(o.D.Provider,{value:g,children:e})})]});var h}},7998(e,t,n){"use strict";n.d(t,{i:()=>x});var r=n(317),o=n(8562),i=n(4721),a=n(4576),s=n(7840),c=n(1636),l=n(6087),d=(n(5885),n(2271)),u=n(9572),p=n(9174),f=n(5189),g=n(6339),h=(0,c.A)(p.Ax,{maxSize:10}),m=(0,c.A)(p.BM,{maxSize:10}),b=[["--wp-components-color-accent","var(--wp-admin-theme-color)"],["--wp-components-color-accent-darker-10","var(--wp-admin-theme-color-darker-10)"],["--wp-components-color-accent-darker-20","var(--wp-admin-theme-color-darker-20)"],["--wp-components-color-accent-inverted","var(--wpds-color-fg-interactive-brand-strong, #fff)"],["--wp-components-color-background","var(--wpds-color-bg-surface-neutral-strong, #ffffff)"],["--wp-components-color-foreground","var(--wpds-color-fg-content-neutral, #1e1e1e)"],["--wp-components-color-foreground-inverted","var(--wpds-color-bg-surface-neutral, #fcfcfc)"],["--wp-components-color-gray-100","var(--wpds-color-bg-surface-neutral, #fcfcfc)"],["--wp-components-color-gray-200","var(--wpds-color-stroke-surface-neutral, #dbdbdb)"],["--wp-components-color-gray-300","var(--wpds-color-stroke-surface-neutral, #dbdbdb)"],["--wp-components-color-gray-400","var(--wpds-color-stroke-interactive-neutral, #8d8d8d)"],["--wp-components-color-gray-600","var(--wpds-color-stroke-interactive-neutral, #8d8d8d)"],["--wp-components-color-gray-700","var(--wpds-color-fg-content-neutral-weak, #707070)"],["--wp-components-color-gray-800","var(--wpds-color-fg-content-neutral, #1e1e1e)"]];function v(e){return(0,a.A)(e,r.A).coords.map(e=>Math.round(255*(e??0))).join(", ")}function w(e){const t=(0,a.A)(e,o.A),n=t.coords[2]??0,r=(0,i.A)((0,s.A)(t),[o.A,"l"],Math.max(0,n-5)),c=(0,i.A)((0,s.A)(t),[o.A,"l"],Math.max(0,n-10));return[["--wp-admin-theme-color",(0,g.Hw)(t)],["--wp-admin-theme-color--rgb",v(t)],["--wp-admin-theme-color-darker-10",(0,g.Hw)(r)],["--wp-admin-theme-color-darker-10--rgb",v(r)],["--wp-admin-theme-color-darker-20",(0,g.Hw)(c)],["--wp-admin-theme-color-darker-20--rgb",v(c)]]}function y(e){const t=[];for(const[n,{ramp:r}]of e)for(const[e,o]of Object.entries(r)){const r=`${n}-${e}`,i=u.A[r]??[];for(const e of i)t.push([`--wpds-color-${e}`,o])}return t}function x({color:e={},cursor:t}={}){const{resolvedSettings:n}=(0,l.useContext)(d.D),r=e.primary??n.color?.primary??f.nI.primary,o=e.bg??n.color?.bg??f.nI.bg,i=t?.control??n.cursor?.control,a=(0,l.useMemo)(()=>({color:{primary:r,bg:o},cursor:i?{control:i}:void 0}),[r,o,i]),s=(0,l.useMemo)(()=>{const e={...f.nI,bg:o,primary:r},t=new Map,n=h(e.bg);return Object.entries(e).forEach(([e,r])=>{"bg"===e?t.set(e,n):t.set(e,m(r,n))}),function({primary:e,computedColorRamps:t}){return Object.fromEntries([y(t),w(e),b].flat())}({primary:e.primary,computedColorRamps:t})},[r,o]);return{resolvedSettings:a,themeProviderStyles:(0,l.useMemo)(()=>({...s,...i&&{"--wpds-cursor-control":i}}),[s,i])}}},3022(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},7602(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(3181),o=n(6406),i=n(9933),a=n(7785),s=n(8070);class c{constructor(e){this.id=e.id,this.name=e.name,this.base=e.base?c.get(e.base):null,this.aliases=e.aliases,this.base&&(this.fromBase=e.fromBase,this.toBase=e.toBase);let t=e.coords??this.base.coords;for(let e in t)"name"in t[e]||(t[e].name=e);this.coords=t;let n=e.white??this.base.white??"D65";this.white=(0,i.ie)(n),this.formats=e.formats??{};for(let e in this.formats){let t=this.formats[e];t.type||="function",t.name||=e}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:e.cssId||this.id}),e.gamutSpace?this.gamutSpace="self"===e.gamutSpace?this:c.get(e.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(e,t)=>!0),this.referred=e.referred,Object.defineProperty(this,"path",{value:l(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),a.A.run("colorspace-init-end",this)}inGamut(e,{epsilon:t=75e-6}={}){if(!this.equals(this.gamutSpace))return e=this.to(this.gamutSpace,e),this.gamutSpace.inGamut(e,{epsilon:t});let n=Object.values(this.coords);return e.every((e,o)=>{let i=n[o];if("angle"!==i.type&&i.range){if((0,r.$I)(e))return!0;let[n,o]=i.range;return(void 0===n||e>=n-t)&&(void 0===o||e<=o+t)}return!0})}get isUnbounded(){return Object.values(this.coords).every(e=>!("range"in e))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let e in this.coords)if("angle"===this.coords[e].type)return!0;return!1}getFormat(e){if(!e)return null;"default"===e?e=Object.values(this.formats)[0]:"string"==typeof e&&(e=this.formats[e]);let t=o.A.get(e,this);return t!==e&&e.name in this.formats&&(this.formats[e.name]=t),t}equals(e){return!!e&&(this===e||this.id===e||this.id===e.id)}to(e,t){if(1===arguments.length){const n=(0,s.A)(e);[e,t]=[n.space,n.coords]}if(e=c.get(e),this.equals(e))return t;t=t.map(e=>(0,r.$I)(e)?0:e);let n,o,i=this.path,a=e.path;for(let e=0;e<i.length&&i[e].equals(a[e]);e++)n=i[e],o=e;if(!n)throw new Error(`Cannot convert between color spaces ${this} and ${e}: no connection space was found`);for(let e=i.length-1;e>o;e--)t=i[e].toBase(t);for(let e=o+1;e<a.length;e++)t=a[e].fromBase(t);return t}from(e,t){if(1===arguments.length){const n=(0,s.A)(e);[e,t]=[n.space,n.coords]}return(e=c.get(e)).to(this,t)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let e=[];for(let t in this.coords){let n=this.coords[t],r=n.range||n.refRange;e.push(r?.min??0)}return e}static registry={};static get all(){return[...new Set(Object.values(c.registry))]}static register(e,t){if(1===arguments.length&&(e=(t=arguments[0]).id),t=this.get(t),this.registry[e]&&this.registry[e]!==t)throw new Error(`Duplicate color space registration: '${e}'`);if(this.registry[e]=t,1===arguments.length&&t.aliases)for(let e of t.aliases)this.register(e,t);return t}static get(e,...t){if(!e||(0,r.Qs)(e,this))return e;if("string"===(0,r.NW)(e)){let t=c.registry[e.toLowerCase()];if(!t)throw new TypeError(`No color space found with id = "${e}"`);return t}if(t.length)return c.get(...t);throw new TypeError(`${e} is not a valid color space`)}static findFormat(e,t=c.all){if(!e)return null;"string"==typeof e&&(e={name:e});for(let n of t)for(let[t,r]of Object.entries(n.formats)){r.name??=t,r.type??="function";let i=!(e.name&&r.name!==e.name||e.type&&r.type!==e.type);if(e.id){let t=r.ids||[r.id],n=Array.isArray(e.id)?e.id:[e.id];i&&=n.some(e=>t.includes(e))}if(i){let e=o.A.get(r,n);return e!==r&&(n.formats[r.name]=e),e}}return null}static resolveCoord(e,t){let n,o,i=(0,r.NW)(e);if("string"===i?e.includes(".")?[n,o]=e.split("."):[n,o]=[,e]:Array.isArray(e)?[n,o]=e:(n=e.space,o=e.coordId),n=c.get(n),n||(n=t),!n)throw new TypeError(`Cannot resolve coordinate reference ${e}: No color space specified and relative references are not allowed here`);if(i=(0,r.NW)(o),"number"===i||"string"===i&&o>=0){let e=Object.entries(n.coords)[o];if(e)return{space:n,id:e[0],index:o,...e[1]}}n=c.get(n);let a=o.toLowerCase(),s=0;for(let e in n.coords){let t=n.coords[e];if(e.toLowerCase()===a||t.name?.toLowerCase()===a)return{space:n,id:e,index:s,...t};s++}throw new TypeError(`No "${o}" coordinate found in ${n.name}. Its coordinates are: ${Object.keys(n.coords).join(", ")}`)}static DEFAULT_FORMAT={type:"functions",name:"color"}}function l(e){let t=[e];for(let n=e;n=n.base;)t.push(n);return t}},6406(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(3181),o=n(1313);const i=Symbol("instance");class a{type;name;spaceCoords;coords;id;alpha;constructor(e,t=e.space){e[i]=this,this.type="function",this.name="color",Object.assign(this,e),this.space=t,"custom"!==this.type&&(this.spaceCoords=Object.values(t.coords),this.coords||(this.coords=this.spaceCoords.map(e=>{let t=["<number>","<percentage>"];return"angle"===e.type&&t.push("<angle>"),t})),this.coords=this.coords.map((e,t)=>{let n=this.spaceCoords[t];return"string"==typeof e&&(e=e.trim().split(/\s*\|\s*/)),e.map(e=>o.A.get(e,n))}))}serializeCoords(e,t,n){return n=e.map((e,t)=>o.A.get(n?.[t]??this.coords[t][0],this.spaceCoords[t])),e.map((e,r)=>n[r].serialize(e,t))}coerceCoords(e,t){return Object.entries(this.space.coords).map(([n,o],i)=>{let a=e[i];if((0,r.$I)(a)||isNaN(a))return a;let s=t[i],c=this.coords[i].find(e=>e.type==s);if(!c){let e=o.name||n;throw new TypeError(`${s??a?.raw??a} not allowed for ${e} in ${this.name}()`)}return a=c.resolve(a),c.range&&(t[i]=c.toString()),a})}canSerialize(){return"function"===this.type||this.serialize}parse(e){return null}static get(e,...t){return!e||(0,r.Qs)(e,this)?e:e[i]?e[i]:new a(e,...t)}}},6309(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(7602),o=n(1918),i=n(9933),a=n(6490);class s extends r.A{constructor(e){e.coords||(e.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),e.base||(e.base=a.A),e.toXYZ_M&&e.fromXYZ_M&&(e.toBase??=t=>{let n=(0,o.R)(t,e.toXYZ_M);return this.white!==this.base.white&&(n=(0,i.Ay)(this.white,this.base.white,n)),n},e.fromBase??=t=>(t=(0,i.Ay)(this.base.white,this.white,t),(0,o.R)(t,e.fromXYZ_M))),e.referred??="display",super(e)}}},1313(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(3181);class o{type;coordMeta;coordRange;range;constructor(e,t){if("object"==typeof e&&(this.coordMeta=e),t&&(this.coordMeta=t,this.coordRange=t.range??t.refRange),"string"==typeof e){let t=e.trim().match(/^(?<type><[a-z]+>)(\[(?<min>-?[.\d]+),\s*(?<max>-?[.\d]+)\])?$/);if(!t)throw new TypeError(`Cannot parse ${e} as a type definition.`);this.type=t.groups.type;let{min:n,max:r}=t.groups;(n||r)&&(this.range=[+n,+r])}}get computedRange(){return this.range?this.range:"<percentage>"===this.type?this.percentageRange():"<angle>"===this.type?[0,360]:null}get unit(){return"<percentage>"===this.type?"%":"<angle>"===this.type?"deg":""}resolve(e){if("<angle>"===this.type)return e;let t=this.computedRange,n=this.coordRange;return"<percentage>"===this.type&&(n??=this.percentageRange()),(0,r._b)(t,n,e)}serialize(e,t){let n="<percentage>"===this.type?this.percentageRange(100):this.computedRange,o=this.unit;return e=(0,r._b)(this.coordRange,n,e),(0,r.g1)(e,{unit:o,precision:t})}toString(){let e=this.type;if(this.range){let[t="",n=""]=this.range;e+=`[${t},${n}]`}return e}percentageRange(e=1){let t;return t=this.coordMeta&&this.coordMeta.range||this.coordRange&&this.coordRange[0]>=0?[0,1]:[-1,1],[t[0]*e,t[1]*e]}static get(e,t){return(0,r.Qs)(e,this)?e:new this(e,t)}}},9933(e,t,n){"use strict";n.d(t,{Ay:()=>s,FL:()=>i,ie:()=>a});var r=n(7785),o=n(1918);const i={D50:[.3457/.3585,1,.2958/.3585],D65:[.3127/.329,1,.3583/.329]};function a(e){return Array.isArray(e)?e:i[e]}function s(e,t,n,s={}){if(e=a(e),t=a(t),!e||!t)throw new TypeError(`Missing white point to convert ${e?"":"from"}${e||t?"":"/"}${t?"":"to"}`);if(e===t)return n;let c={W1:e,W2:t,XYZ:n,options:s};if(r.A.run("chromatic-adaptation-start",c),c.M||(c.W1===i.D65&&c.W2===i.D50?c.M=[[1.0479297925449969,.022946870601609652,-.05019226628920524],[.02962780877005599,.9904344267538799,-.017073799063418826],[-.009243040646204504,.015055191490298152,.7518742814281371]]:c.W1===i.D50&&c.W2===i.D65&&(c.M=[[.955473421488075,-.02309845494876471,.06325924320057072],[-.0283697093338637,1.0099953980813041,.021041441191917323],[.012314014864481998,-.020507649298898964,1.330365926242124]])),r.A.run("chromatic-adaptation-end",c),c.M)return(0,o.R)(c.XYZ,c.M);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}},2013(e,t,n){"use strict";function r(e){return"number"!=typeof e?e:(e%360+360)%360}n.d(t,{h:()=>r})},7840(e,t,n){"use strict";function r(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}n.d(t,{A:()=>r})},3873(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8070),o=n(9667);function i(e,t){e=(0,r.A)(e),t=(0,r.A)(t);let n=Math.max((0,o.J1)(e),0),i=Math.max((0,o.J1)(t),0);return i>n&&([n,i]=[i,n]),(n+.05)/(i+.05)}},9975(e,t,n){"use strict";n.d(t,{A:()=>r});const r={gamut_mapping:"css",precision:5,deltaE:"76",verbose:"test"!==globalThis?.process?.env?.NODE_ENV?.toLowerCase(),warn:function(e){this.verbose&&globalThis?.console?.warn?.(e)}}},2528(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(9975),o=n(8970),i=n(5386),a=n(8070);const s=25**7,c=Math.PI,l=180/c,d=c/180;function u(e){const t=e*e;return t*t*t*e}function p(e,t,{kL:n=1,kC:p=1,kH:f=1}={}){[e,t]=(0,a.A)([e,t]);let[g,h,m]=o.A.from(e),b=i.A.from(o.A,[g,h,m])[1],[v,w,y]=o.A.from(t),x=i.A.from(o.A,[v,w,y])[1];b<0&&(b=0),x<0&&(x=0);let _=u((b+x)/2),k=.5*(1-Math.sqrt(_/(_+s))),C=(1+k)*h,A=(1+k)*w,j=Math.sqrt(C**2+m**2),S=Math.sqrt(A**2+y**2),E=0===C&&0===m?0:Math.atan2(m,C),R=0===A&&0===y?0:Math.atan2(y,A);E<0&&(E+=2*c),R<0&&(R+=2*c),E*=l,R*=l;let M,T=v-g,I=S-j,O=R-E,N=E+R,P=Math.abs(O);j*S===0?M=0:P<=180?M=O:O>180?M=O-360:O<-180?M=O+360:r.A.warn("the unthinkable has happened");let z,D=2*Math.sqrt(S*j)*Math.sin(M*d/2),$=(g+v)/2,L=(j+S)/2,B=u(L);z=j*S===0?N:P<=180?N/2:N<360?(N+360)/2:(N-360)/2;let F=($-50)**2,q=1+.015*F/Math.sqrt(20+F),H=1+.045*L,U=1;U-=.17*Math.cos((z-30)*d),U+=.24*Math.cos(2*z*d),U+=.32*Math.cos((3*z+6)*d),U-=.2*Math.cos((4*z-63)*d);let V=1+.015*L*U,W=30*Math.exp(-1*((z-275)/25)**2),J=2*Math.sqrt(B/(B+s)),G=(T/(n*q))**2;return G+=(I/(p*H))**2,G+=(D/(f*V))**2,G+=-1*Math.sin(2*W*d)*J*(I/(p*H))*(D/(f*V)),Math.sqrt(G)}},9147(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(3390);function o(e,t){return(0,r.A)(e,t,"lab")}},7049(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(8970),o=n(5386),i=n(8070),a=n(3181);const s=Math.PI/180;function c(e,t,{l:n=2,c=1}={}){[e,t]=(0,i.A)([e,t]);let[l,d,u]=r.A.from(e),[,p,f]=o.A.from(r.A,[l,d,u]),[g,h,m]=r.A.from(t),b=o.A.from(r.A,[g,h,m])[1];p<0&&(p=0),b<0&&(b=0);let v=l-g,w=p-b,y=(d-h)**2+(u-m)**2-w**2,x=.511;l>=16&&(x=.040975*l/(1+.01765*l));let _,k=.0638*p/(1+.0131*p)+.638;(0,a.$I)(f)&&(f=0),_=f>=164&&f<=345?.56+Math.abs(.2*Math.cos((f+168)*s)):.36+Math.abs(.4*Math.cos((f+35)*s));let C=Math.pow(p,4),A=Math.sqrt(C/(C+1900)),j=(v/(n*x))**2;return j+=(w/(c*k))**2,j+=y/(k*(A*_+1-A))**2,Math.sqrt(j)}},8947(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(8330),o=n(8070);Math.PI;const i=Math.PI/180,a=[1,.007,.0228];function s(e){e[1]<0&&(e=r.A.fromBase(r.A.toBase(e)));const t=Math.log(Math.max(1+a[2]*e[1]*r.k.flRoot,1))/a[2],n=e[0]*i,o=t*Math.cos(n),s=t*Math.sin(n);return[e[2],o,s]}function c(e,t){[e,t]=(0,o.A)([e,t]);let[n,i,a]=s(r.A.from(e)),[c,l,d]=s(r.A.from(t));return Math.sqrt((n-c)**2+(i-l)**2+(a-d)**2)}},7515(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(8870),o=n(8070);function i(e,t){[e,t]=(0,o.A)([e,t]);let[n,i,a]=r.A.from(e),[s,c,l]=r.A.from(t);return 720*Math.sqrt((n-s)**2+.25*(i-c)**2+(a-l)**2)}},9618(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5366),o=n(8070),i=n(3181);function a(e,t){[e,t]=(0,o.A)([e,t]);let[n,a,s]=r.A.from(e),[c,l,d]=r.A.from(t),u=n-c,p=a-l;(0,i.$I)(s)&&(0,i.$I)(d)?(s=0,d=0):(0,i.$I)(s)?s=d:(0,i.$I)(d)&&(d=s);let f=s-d,g=2*Math.sqrt(a*l)*Math.sin(f/2*(Math.PI/180));return Math.sqrt(u**2+p**2+g**2)}},376(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2736),o=n(8070);function i(e,t){[e,t]=(0,o.A)([e,t]);let[n,i,a]=r.Ay.from(e),[s,c,l]=r.Ay.from(t),d=n-s,u=i-c,p=a-l;return Math.sqrt(d**2+u**2+p**2)}},9904(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2736),o=n(8070);function i(e,t){[e,t]=(0,o.A)([e,t]);let[n,i,a]=r.Ay.from(e),[s,c,l]=r.Ay.from(t),d=n-s,u=2*(i-c),p=2*(a-l);return Math.sqrt(d**2+u**2+p**2)}},7387(e,t,n){"use strict";n.d(t,{Ay:()=>u});var r=n(9147),o=n(7049),i=n(2528),a=n(9618),s=n(7515),c=n(376),l=n(9904),d=n(8947);const u={deltaE76:r.A,deltaECMC:o.A,deltaE2000:i.A,deltaEJz:a.A,deltaEITP:s.A,deltaEOK:c.A,deltaEOK2:l.A,deltaEHCT:d.A}},3390(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(7602),o=n(3181);function i(e,t,n="lab"){let i=(n=r.A.get(n)).from(e),a=n.from(t);return Math.sqrt(i.reduce((e,t,n)=>{let r=a[n];return(0,o.$I)(t)||(0,o.$I)(r)?e:e+(r-t)**2},0))}},3749(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(7602),o=n(1546),i=n(8070);function a(e,t){if(e=(0,i.A)(e),"alpha"===t)return e.alpha??1;let{space:n,index:a}=r.A.resolveCoord(t,e.space);return(0,o.A)(e,n)[a]}},1546(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(7602),o=n(8070),i=n(3181);function a(e,t){e=(0,o.A)(e);let n,a=r.A.get(t,t?.space),s=t?.precision;return n=!a||e.space.equals(a)?e.coords.slice():a.from(e),void 0===s?n:n.map(e=>(0,i.QX)(e,s))}},8070(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(7602),o=n(3181),i=n(5266);function a(e,t){if(Array.isArray(e))return e.map(e=>a(e,t));if(!e)throw new TypeError("Empty color reference");(0,o.Kg)(e)&&(e=(0,i.Ay)(e,t));let n=e.space||e.spaceId;return"string"==typeof n&&(e.space=r.A.get(n)),void 0===e.alpha&&(e.alpha=1),e}},7785(e,t,n){"use strict";n.d(t,{A:()=>o});const r=new class{add(e,t,n){if("string"==typeof arguments[0])(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this);else for(var e in arguments[0])this.add(e,arguments[0][e],arguments[1])}run(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}},o=r},6070(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(7602),o=n(8070);function i(e,t,{epsilon:n=75e-6}={}){e=(0,o.A)(e),t||(t=e.space),t=r.A.get(t);let i=e.coords;return t!==e.space&&(i=t.from(e)),t.inGamut(i,{epsilon:n})}},4197(e,t,n){"use strict";n.d(t,{A:()=>r});const r={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[.6,50/255,.8],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,.6],lightslategrey:[119/255,136/255,.6],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[.4,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,.8],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[.4,.2,.6],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]}},9667(e,t,n){"use strict";n.d(t,{J1:()=>i});var r=n(3749),o=n(6490);function i(e){return(0,r.A)(e,[o.A,"y"])}},1918(e,t,n){"use strict";function r(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function o(e,t,n=[0,0,0]){const o=r(e,t[0]),i=r(e,t[1]),a=r(e,t[2]);return n[0]=o,n[1]=i,n[2]=a,n}n.d(t,{R:()=>o})},5266(e,t,n){"use strict";n.d(t,{Ay:()=>s});var r=n(3181),o=n(7785),i=n(7602),a=n(9975);function s(e,t){let n,s={str:String(e)?.trim(),options:t};if(o.A.run("parse-start",s),s.color)return s.color;s.parsed=function(e){if(!e)return;e=e.trim();let t=e.match(l.function);if(t){let e=[],n=[],r=!1,o=t[1].toLowerCase(),i=t[2].replace(l.singleArgument,(t,i)=>{let{value:a,meta:s}=function(e){let t={},n=e.match(l.unitValue)?.[0],r=t.raw=e;n?(t.type="%"===n?"<percentage>":"<angle>",t.unit=n,t.unitless=Number(r.slice(0,-n.length)),r=t.unitless*c[n]):l.number.test(r)?(r=Number(r),t.type="<number>"):"none"===r?r=null:"NaN"===r||"calc(NaN)"===r?(r=NaN,t.type="<number>"):t.type="<ident>";return{value:r,meta:t}}(i);return(t.startsWith("/")||"color"!==o&&3===e.length)&&(r=!0),e.push(a),n.push(s),""});return{name:o,args:e,argMeta:n,lastAlpha:r,commas:i.includes(","),rawName:t[1],rawArgs:t[2]}}}(s.str);let d=s.options?s.options.parseMeta??s.options.meta:null;if(s.parsed){let t,r,o=s.parsed.name,c=s.parsed.args,l=c.map((e,t)=>s.parsed.argMeta[t]?.type);if("color"===o){let n=c.shift();l.shift();let d=n.startsWith("--")?n.substring(2):`--${n}`,u=[n,d];if(t=i.A.findFormat({name:o,id:u,type:"function"}),!t){let t,r=n in i.A.registry?n:d;if(r in i.A.registry){let o=i.A.registry[r].formats?.color?.id;if(o){t=`Did you mean ${e.replace("color("+n,"color("+o)}?`}}throw new TypeError(`Cannot parse ${s.str}. `+(t??"Missing a plugin?"))}r=t.space,t.id.startsWith("--")&&!n.startsWith("--")&&a.A.warn(`${r.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${t.id}) instead of color(${n}).`),n.startsWith("--")&&!t.id.startsWith("--")&&a.A.warn(`${r.name} is a standard space and supported in the CSS spec. Use color(${t.id}) instead of prefixed color(${n}).`)}else t=i.A.findFormat({name:o,type:"function"}),r=t.space;d&&Object.assign(d,{format:t,formatId:t.name,types:l,commas:s.parsed.commas});let u=1;s.parsed.lastAlpha&&(u=s.parsed.args.pop(),d&&(d.alphaType=l.pop()));let p=t.coords.length;if(c.length!==p)throw new TypeError(`Expected ${p} coordinates for ${r.id} in ${s.str}), got ${c.length}`);c=t.coerceCoords(c,l),n={spaceId:r.id,coords:c,alpha:u}}else e:for(let e of i.A.all)for(let t in e.formats){let r=e.formats[t];if("custom"!==r.type)continue;if(r.test&&!r.test(s.str))continue;let o=e.getFormat(r),i=o.parse(s.str);if(i){d&&Object.assign(d,{format:o,formatId:t}),n=i;break e}}if(!n)throw new TypeError(`Could not parse ${e} as a color. Missing a plugin?`);return n.alpha=(0,r.$I)(n.alpha)?n.alpha:void 0===n.alpha?1:(0,r.qE)(0,n.alpha,1),n}const c={"%":.01,deg:1,grad:.9,rad:180/Math.PI,turn:360},l={function:/^([a-z]+)\(((?:calc\(NaN\)|.)+?)\)$/i,number:/^([-+]?(?:[0-9]*\.)?[0-9]+(e[-+]?[0-9]+)?)$/i,unitValue:RegExp(`(${Object.keys(c).join("|")})$`),singleArgument:/\/?\s*(none|NaN|calc\(NaN\)|[-+\w.]+(?:%|deg|g?rad|turn)?)/g}},6715(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(3181),o=n(7602),i=n(9975),a=n(8070),s=n(4576),c=n(6070),l=n(380),d=n(7840);function u(e,t={}){let n,{precision:u=i.A.precision,format:p,inGamut:f=!0,coords:g,alpha:h,commas:m}=t,b=(0,a.A)(e),v=p,w=b.parseMeta;w&&!p&&(w.format.canSerialize()&&(p=w.format,v=w.formatId),g??=w.types,h??=w.alphaType,m??=w.commas),v&&(p=b.space.getFormat(p)??o.A.findFormat(v)),p||(p=b.space.getFormat("default")??o.A.DEFAULT_FORMAT,v=p.name),p&&p.space&&p.space!==b.space&&(b=(0,s.A)(b,p.space));let y=b.coords.slice();if(f||=p.toGamut,f&&!(0,c.A)(b)&&(y=(0,l.A)((0,d.A)(b),!0===f?void 0:f).coords),"custom"===p.type){if(!p.serialize)throw new TypeError(`format ${v} can only be used to parse colors, not for serialization`);n=p.serialize(y,b.alpha,t)}else{let e=p.name||"color",t=p.serializeCoords(y,u,g);if("color"===e){let e=p.id||p.ids?.[0]||b.space.cssId||b.space.id;t.unshift(e)}let o=b.alpha;void 0!==h&&"object"!=typeof h&&(h="string"==typeof h?{type:h}:{include:h});let i=h?.type??"<number>",a=!0===h?.include||!0===p.alpha||!1!==h?.include&&!1!==p.alpha&&o<1,s="";if(m??=p.commas,a){if(null!==u){let e;"<percentage>"===i&&(e="%",o*=100),o=r.g1(o,{precision:u,unit:e})}s=`${m?",":" /"} ${o}`}n=`${e}(${t.join(m?", ":" ")}${s})`}return n}},4721(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(7602),o=n(8070),i=n(3749),a=n(1546),s=n(4510),c=n(3181);function l(e,t,n){if(e=(0,o.A)(e),2===arguments.length&&"object"===(0,c.NW)(arguments[1])){let t=arguments[1];for(let n in t)l(e,n,t[n])}else if("function"==typeof n&&(n=n((0,i.A)(e,t))),"alpha"===t)e.alpha=n;else{let{space:o,index:i}=r.A.resolveCoord(t,e.space),c=(0,a.A)(e,o);c[i]=n,(0,s.A)(e,o,c)}return e}l.returns="color"},4510(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(7602),o=n(8070);function i(e,t,n,i){return e=(0,o.A)(e),Array.isArray(t)&&([t,n,i]=[e.space,t,n]),t=r.A.get(t),e.coords=t===e.space?n.slice():t.to(e.space,n),void 0!==i&&(e.alpha=i),e}i.returns="color"},3333(e,t,n){"use strict";n.d(t,{I9:()=>_,cA:()=>w,pV:()=>x});var r=n(7602),o=n(3181),i=n(1918),a=n(2013),s=n(6490);const c=n(9933).FL.D65,l=1/.42,d=2*Math.PI,u=[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],p=[[1.8620678550872327,-1.0112546305316843,.14918677544445175],[.38752654323613717,.6214474419314753,-.008973985167612518],[-.015841498849333856,-.03412293802851557,1.0499644368778496]],f=[[460,451,288],[460,-891,-261],[460,-220,-6300]],g={dark:[.8,.525,.8],dim:[.9,.59,.9],average:[1,.69,1]},h={h:[20.14,90,164.25,237.53,380.14],e:[.8,.7,1,1.2,.8],H:[0,100,200,300,400]},m=180/Math.PI,b=Math.PI/180;function v(e,t){return e.map(e=>{const n=(0,o.kR)(t*Math.abs(e)*.01,.42);return 400*(0,o.pG)(n,e)/(n+27.13)})}function w(e,t,n,r,a){const s={};s.discounting=a,s.refWhite=e,s.surround=r;const c=e.map(e=>100*e);s.la=t,s.yb=n;const l=c[1],d=(0,i.R)(c,u);let p=g[s.surround];const f=p[0];s.c=p[1],s.nc=p[2];const h=(1/(5*s.la+1))**4;s.fl=h*s.la+.1*(1-h)*(1-h)*Math.cbrt(5*s.la),s.flRoot=s.fl**.25,s.n=s.yb/l,s.z=1.48+Math.sqrt(s.n),s.nbb=.725*s.n**-.2,s.ncb=s.nbb;const m=a?1:Math.max(Math.min(f*(1-1/3.6*Math.exp((-s.la-42)/92)),1),0);s.dRgb=d.map(e=>(0,o.GW)(1,l/e,m)),s.dRgbInv=s.dRgb.map(e=>1/e);const b=v(d.map((e,t)=>e*s.dRgb[t]),s.fl);return s.aW=s.nbb*(2*b[0]+b[1]+.05*b[2]),s}const y=w(c,64/Math.PI*.2,20,"average",!1);function x(e,t){if(!(void 0!==e.J^void 0!==e.Q))throw new Error("Conversion requires one and only one: 'J' or 'Q'");if(!(void 0!==e.C^void 0!==e.M^void 0!==e.s))throw new Error("Conversion requires one and only one: 'C', 'M' or 's'");if(!(void 0!==e.h^void 0!==e.H))throw new Error("Conversion requires one and only one: 'h' or 'H'");if(0===e.J||0===e.Q)return[0,0,0];let n=0;n=void 0!==e.h?(0,a.h)(e.h)*b:function(e){let t=(e%400+400)%400;const n=Math.floor(.01*t);t%=100;const[r,o]=h.h.slice(n,n+2),[i,s]=h.e.slice(n,n+2);return(0,a.h)((t*(s*r-i*o)-100*r*s)/(t*(s-i)-100*s))}(e.H)*b;const r=Math.cos(n),s=Math.sin(n);let c=0;void 0!==e.J?c=.1*(0,o.kR)(e.J,.5):void 0!==e.Q&&(c=.25*t.c*e.Q/((t.aW+4)*t.flRoot));let d=0;void 0!==e.C?d=e.C/c:void 0!==e.M?d=e.M/t.flRoot/c:void 0!==e.s&&(d=4e-4*e.s**2*(t.aW+4)/t.c);const u=(0,o.kR)(d*Math.pow(1.64-Math.pow(.29,t.n),-.73),10/9),g=.25*(Math.cos(n+2)+3.8),m=t.aW*(0,o.kR)(c,2/t.c/t.z),v=5e4/13*t.nc*t.ncb*g,w=m/t.nbb,y=23*(w+.305)*(0,o.Ed)(u,23*v+u*(11*r+108*s)),x=y*r,_=y*s,k=function(e,t){const n=100/t*2588.068098016295;return e.map(e=>{const t=Math.abs(e);return(0,o.pG)(n*(0,o.kR)(t/(400-t),l),e)})}((0,i.R)([w,x,_],f).map(e=>1*e/1403),t.fl);return(0,i.R)(k.map((e,n)=>e*t.dRgbInv[n]),p).map(e=>e/100)}function _(e,t){const n=e.map(e=>100*e),r=v((0,i.R)(n,u).map((e,n)=>e*t.dRgb[n]),t.fl),s=r[0]+(-12*r[1]+r[2])/11,c=(r[0]+r[1]-2*r[2])/9,l=(Math.atan2(c,s)%d+d)%d,p=.25*(Math.cos(l+2)+3.8),f=5e4/13*t.nc*t.ncb*(0,o.Ed)(p*Math.sqrt(s**2+c**2),r[0]+r[1]+1.05*r[2]+.305),g=(0,o.kR)(f,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),b=t.nbb*(2*r[0]+r[1]+.05*r[2]),w=(0,o.kR)(b/t.aW,.5*t.c*t.z),y=100*(0,o.kR)(w,2),x=4/t.c*w*(t.aW+4)*t.flRoot,_=g*w,k=_*t.flRoot,C=(0,a.h)(l*m),A=function(e){let t=(0,a.h)(e);t<=h.h[0]&&(t+=360);const n=(0,o.ah)(h.h,t)-1,[r,i]=h.h.slice(n,n+2),[s,c]=h.e.slice(n,n+2),l=(t-r)/s;return h.H[n]+100*l/(l+(i-t)/c)}(C);return{J:y,C:_,h:C,s:50*(0,o.kR)(t.c*g/(t.aW+4),.5),Q:x,M:k,H:A}}new r.A({id:"cam16-jmh",cssId:"--cam16-jmh",name:"CAM16-JMh",coords:{j:{refRange:[0,100],name:"J"},m:{refRange:[0,105],name:"Colorfulness"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:s.A,fromBase(e){void 0===this.ε&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);const t=_(e,y),n=Math.abs(t.M)<this.ε;return[t.J,n?0:t.M,n?null:t.h]},toBase:e=>x({J:e[0],M:e[1],h:e[2]},y)})},8330(e,t,n){"use strict";n.d(t,{A:()=>f,k:()=>p});var r=n(7602),o=n(2013),i=n(6490),a=n(3333);const s=n(9933).FL.D65,c=216/24389,l=24389/27;function d(e){return e>8?Math.pow((e+16)/116,3):e/l}function u(e,t){const n=116*((r=e[1])>c?Math.cbrt(r):(l*r+16)/116)-16;var r;if(0===n)return[0,0,0];const i=(0,a.I9)(e,p);return[(0,o.h)(i.h),i.C,n]}const p=(0,a.cA)(s,200/Math.PI*d(50),100*d(50),"average",!1),f=new r.A({id:"hct",name:"HCT",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},c:{refRange:[0,145],name:"Colorfulness"},t:{refRange:[0,100],name:"Tone"}},base:i.A,fromBase(e){void 0===this.ε&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);let t=u(e);return t[1]<this.ε&&(t[1]=0,t[0]=null),t},toBase:e=>function(e,t){let[n,r,o]=e,i=[],s=0;if(0===o)return[0,0,0];let c=d(o);s=o>0?.00379058511492914*o**2+.608983189401032*o+.9155088574762233:9514440756550361e-21*o**2+.08693057439788597*o-21.928975842194614;let l=0,u=1/0,p=s;for(;l<=15;){i=(0,a.pV)({J:s,C:r,h:n},t);const e=Math.abs(i[1]-c);if(e<u){if(e<=2e-12)return i;p=s,u=e}s-=(i[1]-c)*s/(2*i[1]),l+=1}return(0,a.pV)({J:s,C:r,h:n},t)}(e,p),formats:{color:{id:"--hct",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}})},8562(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(7602),o=n(317);const i=new r.A({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:o.A,fromBase:e=>{let t=Math.max(...e),n=Math.min(...e),[r,o,i]=e,[a,s,c]=[null,0,(n+t)/2],l=t-n;if(0!==l){switch(s=0===c||1===c?0:(t-c)/Math.min(c,1-c),t){case r:a=(o-i)/l+(o<i?6:0);break;case o:a=(i-r)/l+2;break;case i:a=(r-o)/l+4}a*=60}return s<0&&(a+=180,s=Math.abs(s)),a>=360&&(a-=360),[a,100*s,100*c]},toBase:e=>{let[t,n,r]=e;function o(e){let o=(e+t/30)%12,i=n*Math.min(r,1-r);return r-i*Math.max(-1,Math.min(o-3,9-o,1))}return t%=360,t<0&&(t+=360),n/=100,r/=100,[o(0),o(8),o(4)]},formats:{hsl:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]},hsla:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"],commas:!0,alpha:!0}}})},8870(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(7602),o=n(1918),i=n(4943);const a=.8359375,s=2413/128,c=18.6875,l=2610/16384,d=2523/32,u=16384/2610,p=32/2523,f=[[.3592832590121217,.6976051147779502,-.035891593232029],[-.1920808463704993,1.100476797037432,.0753748658519118],[.0070797844607479,.0748396662186362,.8433265453898765]],g=[[.5,.5,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],h=[[.9999999999999998,.0086090370379328,.111029625003026],[.9999999999999998,-.0086090370379328,-.1110296250030259],[.9999999999999998,.5600313357106791,-.3206271749873188]],m=[[2.0701522183894223,-1.3263473389671563,.2066510476294053],[.3647385209748072,.6805660249472273,-.0453045459220347],[-.0497472075358123,-.0492609666966131,1.1880659249923042]],b=new r.A({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:i.A,fromBase:e=>function(e){let t=e.map(function(e){return((a+s*(e/1e4)**l)/(1+c*(e/1e4)**l))**d});return(0,o.R)(t,g)}((0,o.R)(e,f)),toBase(e){let t=function(e){let t=(0,o.R)(e,h),n=t.map(function(e){return 1e4*(Math.max(e**p-a,0)/(s-c*e**p))**u});return n}(e);return(0,o.R)(t,m)},formats:{ictcp:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}})},7774(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(7602),o=n(1918),i=n(4943),a=n(3181);const s=1.15,c=.66,l=2610/16384,d=16384/2610,u=.8359375,p=2413/128,f=18.6875,g=1.7*2523/32,h=32/(1.7*2523),m=-.56,b=16295499532821565e-27,v=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],w=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],y=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],x=[[1,.13860504327153927,.05804731615611883],[1,-.1386050432715393,-.058047316156118904],[1,-.09601924202631895,-.811891896056039]],_=new r.A({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.21,.21]},bz:{refRange:[-.21,.21]}},base:i.A,fromBase(e){let[t,n,r]=e,i=s*t-(s-1)*r,d=c*n-(c-1)*t,h=(0,o.R)([i,d,r],v).map(function(e){let t=u+p*(0,a.kR)(e/1e4,l),n=1+f*(0,a.kR)(e/1e4,l);return(0,a.kR)(t/n,g)}),[w,x,_]=(0,o.R)(h,y);return[(1+m)*w/(1+m*w)-b,x,_]},toBase(e){let[t,n,r]=e,i=(t+b)/(1+m-m*(t+b)),l=(0,o.R)([i,n,r],x).map(function(e){let t=u-(0,a.kR)(e,h),n=f*(0,a.kR)(e,h)-p;return 1e4*(0,a.kR)(t/n,d)}),[g,v,y]=(0,o.R)(l,w),_=(g+(s-1)*y)/s;return[_,(v+(c-1)*_)/c,y]},formats:{jzazbz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}})},5366(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(7602),o=n(7774),i=n(5386);const a=new r.A({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,.26],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:o.A,fromBase:i.A.fromBase,toBase:i.A.toBase,formats:{jzczhz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}})},8970(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(7602),o=n(9933),i=n(738);const a=216/24389,s=24/116,c=24389/27;let l=o.FL.D50;const d=new r.A({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:l,base:i.A,fromBase(e){let t=e.map((e,t)=>e/l[t]).map(e=>e>a?Math.cbrt(e):(c*e+16)/116);return[116*t[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])]},toBase(e){let[t,n,r]=e,o=[];return o[1]=(t+16)/116,o[0]=n/500+o[1],o[2]=o[1]-r/200,[o[0]>s?Math.pow(o[0],3):(116*o[0]-16)/c,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/c,o[2]>s?Math.pow(o[2],3):(116*o[2]-16)/c].map((e,t)=>e*l[t])},formats:{lab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}})},5386(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(7602),o=n(8970),i=n(2013),a=n(3181);const s=new r.A({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:o.A,fromBase(e){if(void 0===this.ε){let e=Object.values(this.base.coords)[1].refRange,t=e[1]-e[0];this.ε=t/1e5}let[t,n,r]=e,o=Math.abs(n)<this.ε&&Math.abs(r)<this.ε,a=o?null:(0,i.h)(180*Math.atan2(r,n)/Math.PI);return[t,o?0:Math.sqrt(n**2+r**2),a]},toBase(e){let[t,n,r]=e,o=null,i=null;return(0,a.$I)(r)||(n=n<0?0:n,o=n*Math.cos(r*Math.PI/180),i=n*Math.sin(r*Math.PI/180)),[t,o,i]},formats:{lch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}})},2736(e,t,n){"use strict";n.d(t,{Ay:()=>d});var r=n(7602),o=n(1918),i=n(6490);const a=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],s=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],c=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],l=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],d=new r.A({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:i.A,fromBase(e){let t=(0,o.R)(e,a);return t[0]=Math.cbrt(t[0]),t[1]=Math.cbrt(t[1]),t[2]=Math.cbrt(t[2]),(0,o.R)(t,c,t)},toBase(e){let t=(0,o.R)(e,l);return t[0]=t[0]**3,t[1]=t[1]**3,t[2]=t[2]**3,(0,o.R)(t,s,t)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}})},5728(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(7602),o=n(2736),i=n(5386);const a=new r.A({id:"oklch",name:"OkLCh",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:o.Ay,fromBase:i.A.fromBase,toBase:i.A.toBase,formats:{oklch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}})},332(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new(n(6309).A)({id:"p3-linear",cssId:"display-p3-linear",name:"Linear P3",white:"D65",toXYZ_M:[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],fromXYZ_M:[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]]})},2004(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(6309),o=n(332),i=n(317);const a=new r.A({id:"p3",cssId:"display-p3",name:"P3",base:o.A,fromBase:i.A.fromBase,toBase:i.A.toBase})},8935(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new(n(6309).A)({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],fromXYZ_M:[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]]})},317(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(6309),o=n(8935),i=n(4197);let a=Array(3).fill("<percentage> | <number>[0, 255]"),s=Array(3).fill("<number>[0, 255]");const c=new r.A({id:"srgb",name:"sRGB",base:o.A,fromBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n>.0031308?t*(1.055*n**(1/2.4)-.055):12.92*e}),toBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4}),formats:{rgb:{coords:a},rgb_number:{name:"rgb",commas:!0,coords:s,alpha:!1},color:{},rgba:{coords:a,commas:!0,alpha:!0},rgba_number:{name:"rgba",commas:!0,coords:s},hex:{type:"custom",toGamut:!0,test:e=>/^#(([a-f0-9]{2}){3,4}|[a-f0-9]{3,4})$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,"$&$&"));let t=[];return e.replace(/[a-f0-9]{2}/gi,e=>{t.push(parseInt(e,16)/255)}),{spaceId:"srgb",coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:n=!0,alpha:r}={})=>{(!1!==r&&t<1||!0===r)&&e.push(t),e=e.map(e=>Math.round(255*e));let o=n&&e.every(e=>e%17==0);return"#"+e.map(e=>o?(e/17).toString(16):e.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:e=>/^[a-z]+$/i.test(e),parse(e){let t={spaceId:"srgb",coords:null,alpha:1};if("transparent"===(e=e.toLowerCase())?(t.coords=i.A.black,t.alpha=0):t.coords=i.A[e],t.coords)return t}}}})},4943(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(7602),o=n(6490);const i=new r.A({id:"xyz-abs-d65",cssId:"--xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:o.A,fromBase:e=>e.map(e=>203*e),toBase:e=>e.map(e=>e/203)})},738(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(7602),o=n(9933),i=n(6490);const a=new r.A({id:"xyz-d50",name:"XYZ D50",white:"D50",base:i.A,fromBase:e=>(0,o.Ay)(i.A.white,"D50",e),toBase:e=>(0,o.Ay)("D50",i.A.white,e)})},6490(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new(n(7602).A)({id:"xyz-d65",name:"XYZ D65",coords:{x:{refRange:[0,1],name:"X"},y:{refRange:[0,1],name:"Y"},z:{refRange:[0,1],name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]})},4576(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(8070),o=n(7602),i=n(380);function a(e,t,{inGamut:n}={}){e=(0,r.A)(e);let a=(t=o.A.get(t)).from(e),s={space:t,coords:a,alpha:e.alpha};return n&&(s=(0,i.A)(s,!0===n?void 0:n)),s}a.returns="color"},380(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(3181),o=n(7602),i=n(9975),a=n(2528),s=n(376),c=n(6070),l=n(4576),d=n(3749),u=n(2736),p=n(4721),f=n(7840),g=n(8070),h=n(7387),m=n(9933);const b={hct:{method:"hct.c",jnd:2,deltaEMethod:"hct",blackWhiteClamp:{}},"hct-tonal":{method:"hct.c",jnd:0,deltaEMethod:"hct",blackWhiteClamp:{channel:"hct.t",min:0,max:100}}};function v(e,{method:t=i.A.gamut_mapping,space:n,deltaEMethod:u="",jnd:y=2,blackWhiteClamp:x}={}){if(e=(0,g.A)(e),r.Kg(arguments[1])?n=arguments[1]:n||(n=e.space),n=o.A.get(n),(0,c.A)(e,n,{epsilon:0}))return e;let _;if("css"===t)_=function(e,{space:t}={}){const n=.02,i=1e-4;e=(0,g.A)(e),t||(t=e.space);t=o.A.get(t);const a=o.A.get("oklch");if(t.isUnbounded)return(0,l.A)(e,t);const d=(0,l.A)(e,a);let u=d.coords[0];if(u>=1){const n=(0,l.A)(w.WHITE,t);return n.alpha=e.alpha,(0,l.A)(n,t)}if(u<=0){const n=(0,l.A)(w.BLACK,t);return n.alpha=e.alpha,(0,l.A)(n,t)}if((0,c.A)(d,t,{epsilon:0}))return(0,l.A)(d,t);function p(e){const n=(0,l.A)(e,t),o=Object.values(t.coords);return n.coords=n.coords.map((e,t)=>{if("range"in o[t]){const[n,i]=o[t].range;return r.qE(n,e,i)}return e}),n}let h=0,m=d.coords[1],b=!0,v=(0,f.A)(d),y=p(v),x=(0,s.A)(y,v);if(x<n)return y;for(;m-h>i;){const e=(h+m)/2;if(v.coords[1]=e,b&&(0,c.A)(v,t,{epsilon:0}))h=e;else if(y=p(v),x=(0,s.A)(y,v),x<n){if(n-x<i)break;b=!1,h=e}else m=e}return y}(e,{space:n});else{if("clip"===t||(0,c.A)(e,n))_=(0,l.A)(e,n);else{Object.prototype.hasOwnProperty.call(b,t)&&({method:t,jnd:y,deltaEMethod:u,blackWhiteClamp:x}=b[t]);let i=a.A;if(""!==u)for(let e in h.Ay)if("deltae"+u.toLowerCase()===e.toLowerCase()){i=h.Ay[e];break}0===y&&(y=1e-16);let s=v((0,l.A)(e,n),{method:"clip",space:n});if(i(e,s)>y){if(x&&3===Object.keys(x).length){let t=o.A.resolveCoord(x.channel),n=(0,d.A)((0,l.A)(e,t.space),t.id);if(r.$I(n)&&(n=0),n>=x.max)return(0,l.A)({space:"xyz-d65",coords:m.FL.D65},e.space);if(n<=x.min)return(0,l.A)({space:"xyz-d65",coords:[0,0,0]},e.space)}let a=o.A.resolveCoord(t),s=a.space,c=a.id,u=(0,l.A)(e,s);u.coords.forEach((e,t)=>{r.$I(e)&&(u.coords[t]=0)});let g=(a.range||a.refRange)[0],h=function(e){const t=e?Math.floor(Math.log10(Math.abs(e))):0;return Math.max(parseFloat("1e"+(t-2)),1e-6)}(y),b=g,w=(0,d.A)(u,c);for(;w-b>h;){let e=(0,f.A)(u);e=v(e,{space:n,method:"clip"}),i(u,e)-y<h?b=(0,d.A)(u,c):w=(0,d.A)(u,c),(0,p.A)(u,c,(b+w)/2)}_=(0,l.A)(u,n)}else _=s}if("clip"===t||!(0,c.A)(_,n,{epsilon:0})){let e=Object.values(n.coords).map(e=>e.range||[]);_.coords=_.coords.map((t,n)=>{let[r,o]=e[n];return void 0!==r&&(t=Math.max(r,t)),void 0!==o&&(t=Math.min(t,o)),t})}}return n!==e.space&&(_=(0,l.A)(_,e.space)),e.coords=_.coords,e}v.returns="color";const w={WHITE:{space:u.Ay,coords:[1,0,0],alpha:1},BLACK:{space:u.Ay,coords:[0,0,0],alpha:1}}},3181(e,t,n){"use strict";function r(e){return"string"===o(e)}function o(e){return(Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function i(e,{precision:t=16,unit:n}){return a(e)?"none":(e=+s(e,t))+(n??"")}function a(e){return null===e}function s(e,t){if(0===e)return 0;let n=~~e,r=0;n&&t&&(r=1+~~Math.log10(Math.abs(n)));const o=10**(t-r);return Math.floor(e*o+.5)/o}function c(e,t,n){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*n}function l(e,t,n){return!e||!t||e===t||e[0]===t[0]&&e[1]===t[1]||isNaN(n)||null===n?n:c(t[0],t[1],function(e,t,n){return(n-e)/(t-e)}(e[0],e[1],n))}function d(e,t,n){return Math.max(Math.min(n,t),e)}function u(e,t){return Math.sign(e)===Math.sign(t)?e:-e}function p(e,t){return u(Math.abs(e)**t,e)}function f(e,t){return 0===t?0:e/t}function g(e,t,n=0,r=e.length){for(;n<r;){const o=n+r>>1;e[o]<t?n=o+1:r=o}return n}function h(e,t){if(e instanceof t)return!0;const n=t.name;for(;e;){const t=Object.getPrototypeOf(e),r=t?.constructor?.name;if(r===n)return!0;if(!r||"Object"===r)return!1;e=t}return!1}n.d(t,{$I:()=>a,Ed:()=>f,GW:()=>c,Kg:()=>r,NW:()=>o,QX:()=>s,Qs:()=>h,_b:()=>l,ah:()=>g,g1:()=>i,kR:()=>p,pG:()=>u,qE:()=>d})},1636(e,t,n){"use strict";function r(e,t){var n,r,o=0;function i(){var i,a,s=n,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<c;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(c),a=0;a<c;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}n.d(t,{A:()=>r})},5788(e,t,n){"use strict";n.d(t,{E:()=>c});var r=n(3022),o=n(6087),i=n(9968),a=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='d6a685e1aa']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","d6a685e1aa"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-bg-surface-error,#f6e6e3);color:var(--wpds-color-fg-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-bg-surface-warning,#fde6be);color:var(--wpds-color-fg-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-bg-surface-caution,#fee995);color:var(--wpds-color-fg-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-bg-surface-success,#c6f7cd);color:var(--wpds-color-fg-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-bg-surface-info,#deebfa);color:var(--wpds-color-fg-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-fg-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-fg-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}")),document.head.appendChild(e)}var s={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},c=(0,o.forwardRef)(function({intent:e="none",className:t,...n},o){return(0,a.jsx)(i.E,{ref:o,className:(0,r.A)(s.badge,s[`is-${e}-intent`],t),...n,variant:"body-sm"})})},1526(e,t,n){"use strict";n.d(t,{$:()=>f});var r=n(733),o=n(3022),i=n(195),a=n(6087),s=n(7723),c=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='26d90ece4e']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","26d90ece4e"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:499;--wp-ui-button-background-color:var(--wpds-color-bg-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-bg-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-bg-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-fg-interactive-neutral-strong-disabled,#8d8d8d);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height: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-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:padding-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);cursor:var(--wpds-cursor-control,pointer);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);height:var(--wp-ui-button-height);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);min-width:var(--wp-ui-button-min-width);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-decoration:none;@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}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:#0000;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:#0000;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);inset-inline-start:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:24px}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-disabled:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-bg-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-bg-interactive-neutral-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-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-bg-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-bg-interactive-neutral-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-bg-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-fg-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-bg-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{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-bg-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:32px}._914b42f315c0e580__is-loading{color:#0000;&:not([data-disabled]):is(:hover,:active,:focus){color:#0000}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}[aria-pressed=true].ad0619a3217c6a5b__is-minimal.e722a8f96726aa99__is-neutral{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-neutral-strong,#2d2d2d);--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-neutral-strong,#f0f0f0)}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}')),document.head.appendChild(e)}var l={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small","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","loading-animation":"_5a1d53da6f830c8d__loading-animation"};if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='e3ae230cea']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","e3ae230cea"),e.appendChild(document.createTextNode("@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}}}")),document.head.appendChild(e)}var d="_336cd3e4e743482f__box-sizing";if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='2a5ab8f3a7']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","2a5ab8f3a7"),e.appendChild(document.createTextNode("@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))}}")),document.head.appendChild(e)}var u="e25b2bdd7aa21721__outset-ring--focus-except-active";if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='1fb29d3a3c']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","1fb29d3a3c"),e.appendChild(document.createTextNode("._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)}")),document.head.appendChild(e)}var p="_6defc79820e382c6__button",f=(0,a.forwardRef)(function({tone:e="brand",variant:t="solid",size:n="default",className:f,focusableWhenDisabled:g=!0,disabled:h,loading:m,loadingAnnouncement:b=(0,s.__)("Loading","jetpack"),children:v,...w},y){const x=(0,o.A)(p,d,u,"unstyled"!==t&&l.button,l[`is-${e}`],l[`is-${t}`],l[`is-${n}`],m&&l["is-loading"],f);return(0,a.useEffect)(()=>{m&&b&&(0,i.speak)(b)},[m,b]),(0,c.jsx)(r.$,{ref:y,className:x,focusableWhenDisabled:g,disabled:h??m,...w,children:v})})},6313(e,t,n){"use strict";n.d(t,{a:()=>a});var r=n(6087),o=n(1100),i=n(790),a=(0,r.forwardRef)(function({icon:e,...t},n){return(0,i.jsx)(o.I,{ref:n,icon:e,viewBox:"4 4 16 16",size:16,...t})})},2326(e,t,n){"use strict";n.d(t,{$:()=>i});var r=n(1526),o=n(6313),i=Object.assign(r.$,{Icon:o.a})},3180(e,t,n){"use strict";n.d(t,{K:()=>g});var r=n(3022),o=n(6087),i=n(2326),a=n(1100),s=n(1011),c=n(3245),l=n(7231),d=n(4108),u=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='358a2a646a']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","358a2a646a"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}")),document.head.appendChild(e)}var p="_28cfdc260e755391__icon-button",f="f1c70d719989a85a__icon",g=(0,o.forwardRef)(function({label:e,className:t,children:n,disabled:o,focusableWhenDisabled:g,icon:h,size:m,shortcut:b,...v},w){const y=(0,r.A)(p,t);return(0,u.jsx)(d.K,{delay:0,children:(0,u.jsxs)(l.b,{children:[(0,u.jsx)(c.l,{ref:w,disabled:o&&!g,render:(0,u.jsx)(i.$,{...v,size:m,"aria-label":e,"aria-keyshortcuts":b?.ariaKeyShortcut,disabled:o,focusableWhenDisabled:g}),className:y,children:(0,u.jsx)(a.I,{icon:h,size:24,className:f})}),(0,u.jsxs)(s.z,{children:[e,b&&(0,u.jsxs)(u.Fragment,{children:[" ",(0,u.jsx)("span",{"aria-hidden":"true",children:b.displayShortcut})]})]})]})})})},1100(e,t,n){"use strict";n.d(t,{I:()=>a});var r=n(6087),o=n(5573),i=n(790),a=(0,r.forwardRef)(function({icon:e,size:t=24,...n},r){return(0,i.jsx)(o.SVG,{ref:r,fill:"currentColor",...e.props,...n,width:t,height:t})})},9654(e,t,n){"use strict";n.d(t,{N:()=>f});var r=n(3196),o=n(9300),i=n(3022),a=n(6087),s=n(7723),c=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='e3ae230cea']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","e3ae230cea"),e.appendChild(document.createTextNode("@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}}}")),document.head.appendChild(e)}var l="_336cd3e4e743482f__box-sizing";if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='2a5ab8f3a7']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","2a5ab8f3a7"),e.appendChild(document.createTextNode("@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))}}")),document.head.appendChild(e)}var d="_08e8a2e44959f892__outset-ring--focus";if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='221f9717dc']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","221f9717dc"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.d4250949359b05ce__link{text-decoration-thickness:.5px;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}.e6ad7c380ee337fe__has-link-icon{text-decoration:none}._8dc7567f9ff415bf__link-contents{text-decoration:underline;text-decoration-color:inherit;text-decoration-thickness:.5px}._0cb411afac4c86c7__link-icon{font-weight:var(--wpds-typography-font-weight-regular,400);margin-inline-start:var(--wpds-dimension-padding-xs,4px)}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}')),document.head.appendChild(e)}var u={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","has-link-icon":"e6ad7c380ee337fe__has-link-icon","link-contents":"_8dc7567f9ff415bf__link-contents","link-icon":"_0cb411afac4c86c7__link-icon"};if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='1fb29d3a3c']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","1fb29d3a3c"),e.appendChild(document.createTextNode("._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)}")),document.head.appendChild(e)}var p="_2c0831b0499dbd6e__a",f=(0,a.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:a=!1,render:f,className:g,onClick:h,...m},b){const v=!!m.href?.startsWith("#");return(0,r.C)({render:f,defaultTagName:"a",ref:b,props:(0,o.v6)(m,{className:(0,i.A)(p,l,d,"unstyled"!==t&&u.link,"unstyled"!==t&&u[`is-${n}`],"unstyled"===t&&u["is-unstyled"],a&&u["has-link-icon"],g),onClick:e=>{a&&v&&e.preventDefault(),h?.(e)},target:a?"_blank":void 0,children:a?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:u["link-contents"],children:e}),(0,c.jsx)("span",{className:u["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,s.__)("(opens in a new tab)","jetpack")})]}):e})})})},559(e,t,n){"use strict";n.d(t,{T:()=>i});var r=n(5294),{lock:o,unlock:i}=(0,r.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/ui")},5372(e,t,n){"use strict";n.d(t,{U:()=>d});var r=n(6087),o=n(7723),i=n(5995),a=n(3022),s=n(3180),c=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='81e7c56d50']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","81e7c56d50"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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;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,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._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;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:var(--wpds-typography-font-weight-regular,400);line-height:var(--wpds-typography-line-height-sm,20px);margin-block:auto;&: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-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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 wp-ui-compositions{._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}')),document.head.appendChild(e)}var l="_487e6a5c1375f7dc__close-icon",d=(0,r.forwardRef)(function({className:e,icon:t=i.A,label:n=(0,o.__)("Dismiss","jetpack"),...r},d){return(0,c.jsx)(s.K,{...r,ref:d,className:(0,a.A)(l,e),variant:"minimal",size:"small",tone:"neutral",icon:t,label:n})})},1868(e,t,n){"use strict";n.d(t,{V:()=>c});var r=n(6087),o=n(3022),i=n(9968),a=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='81e7c56d50']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","81e7c56d50"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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;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,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._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;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:var(--wpds-typography-font-weight-regular,400);line-height:var(--wpds-typography-line-height-sm,20px);margin-block:auto;&: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-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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 wp-ui-compositions{._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}')),document.head.appendChild(e)}var s="_1904b570a89bb815__description",c=(0,r.forwardRef)(function({className:e,...t},n){return(0,a.jsx)(i.E,{ref:n,variant:"body-md",className:(0,o.A)(s,e),...t})})},8050(e,t,n){"use strict";n.d(t,{b:()=>w});var r=n(195),o=n(6087),i=n(3758),a=n(9099),s=n(8847),c=n(2243),l=n(3196),d=n(9300),u=n(3022),p=n(1100),f=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='e3ae230cea']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","e3ae230cea"),e.appendChild(document.createTextNode("@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}}}")),document.head.appendChild(e)}var g="_336cd3e4e743482f__box-sizing";if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='81e7c56d50']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","81e7c56d50"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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;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,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._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;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:var(--wpds-typography-font-weight-regular,400);line-height:var(--wpds-typography-line-height-sm,20px);margin-block:auto;&: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-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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 wp-ui-compositions{._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}')),document.head.appendChild(e)}var h={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","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","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},m={neutral:null,info:s.A,warning:i.A,success:c.A,error:a.A};function b(e){return"error"===e?"assertive":"polite"}function v(e,t){const n=function(e){if(e){if("string"==typeof e)return e;try{return(0,o.renderToString)(e)}catch{return}}}(e);(0,o.useEffect)(()=>{n&&(0,r.speak)(n,t)},[n,t])}var w=(0,o.forwardRef)(function({intent:e="neutral",children:t,icon:n,spokenMessage:r=t,politeness:o=b(e),render:i,...a},s){v(r,o);const c=null===n?null:n??m[e],w=(0,u.A)(h.notice,h[`is-${e}`],g);return(0,l.C)({defaultTagName:"div",render:i,ref:s,props:(0,d.v6)({className:w,children:(0,f.jsxs)(f.Fragment,{children:[t,c&&(0,f.jsx)(p.I,{className:h.icon,icon:c})]})},a)})})},1220(e,t,n){"use strict";n.d(t,{B:()=>c});var r=n(3196),o=n(9300),i=n(6087);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='b51ff41489']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","b51ff41489"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}")),document.head.appendChild(e)}var a="_19ce0419607e1896__stack",s={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)"},c=(0,i.forwardRef)(function({direction:e,gap:t,align:n,justify:i,wrap:c,render:l,...d},u){const p={gap:t&&s[t],alignItems:n,justifyContent:i,flexDirection:e,flexWrap:c};return(0,r.C)({render:l,ref:u,props:(0,o.v6)(d,{style:p,className:a})})})},9968(e,t,n){"use strict";n.d(t,{E:()=>d});var r=n(3196),o=n(9300),i=n(3022),a=n(6087);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='4130d64bea']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","4130d64bea"),e.appendChild(document.createTextNode('@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);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);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);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);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);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-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-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-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-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)}}')),document.head.appendChild(e)}var s={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"};if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='1fb29d3a3c']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","1fb29d3a3c"),e.appendChild(document.createTextNode("._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)}")),document.head.appendChild(e)}var c="_43cec3e1eec1066d__p",l="e97669c6d9a38497__heading",d=(0,a.forwardRef)(function({variant:e="body-md",render:t,className:n,...a},d){return(0,r.C)({render:t,defaultTagName:"span",ref:d,props:(0,o.v6)(a,{className:(0,i.A)(s.text,e.startsWith("heading-")&&l,e.startsWith("body-")&&c,s[e],n)})})})},1011(e,t,n){"use strict";n.d(t,{z:()=>h});var r=n(3022),o=n(1486),i=n(4630),a=n(2038),s=n(6087),c=n(3843),l=n(559),d=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='e3ae230cea']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","e3ae230cea"),e.appendChild(document.createTextNode("@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}}}")),document.head.appendChild(e)}var u="_336cd3e4e743482f__box-sizing";if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='dd2ebab357']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","dd2ebab357"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-sm,2px);box-shadow:var(--wpds-elevation-sm,0 1px 2px 0 #0000000d,0 2px 3px 0 #0000000a,0 6px 6px 0 #00000008,0 8px 8px 0 #00000005);color:var(--wpds-color-fg-content-neutral,#1e1e1e);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-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}}')),document.head.appendChild(e)}var p="_480b748dd3510e64__positioner",f="_50096b232db7709d__popup",g=(0,l.T)(c.j).ThemeProvider,h=(0,s.forwardRef)(function({align:e="center",container:t,side:n="top",sideOffset:s=4,children:c,className:l,style:h,...m},b){return(0,d.jsx)(o.K,{container:t,children:(0,d.jsx)(i.o,{align:e,side:n,sideOffset:s,style:h,className:(0,r.A)(u,l,p),children:(0,d.jsx)(g,{color:{bg:"#1e1e1e"},children:(0,d.jsx)(a.o,{ref:b,className:f,...m,children:c})})})})})},4108(e,t,n){"use strict";n.d(t,{K:()=>i});var r=n(7882),o=n(790);function i({children:e,...t}){return(0,o.jsx)(r.B,{...t,children:e})}},7231(e,t,n){"use strict";n.d(t,{b:()=>i});var r=n(4438),o=n(790);function i(e){return(0,o.jsx)(r.s,{...e})}},3245(e,t,n){"use strict";n.d(t,{l:()=>a});var r=n(1994),o=n(6087),i=n(790),a=(0,o.forwardRef)(function({children:e,...t},n){return(0,i.jsx)(r.k,{ref:n,...t,children:e})})}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=o(1455),t=o.n(e),n=o(6087),r=o(6154),i=(o(1601),o(790));const{apiRoot:a,apiNonce:s}=window?.jetpackAiSettings??{};a&&t().use(t().createRootURLMiddleware(a)),s&&t().use(t().createNonceMiddleware(s)),function(){const e=document.getElementById("jetpack-ai-root");e&&n.createRoot(e).render((0,i.jsx)(r.A,{}))}()})()})();