var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); "use strict";(globalThis.webpackChunkcalypso=globalThis.webpackChunkcalypso||[]).push([[6150],{"./blocks/gdpr-banner/index.jsx":(e,t,s)=>{s.r(t),s.d(t,{default:()=>Z});var n=s("../packages/components/src/card/index.tsx"),o=s("../packages/components/src/button/index.tsx"),i=s("../packages/i18n-utils/src/localize-url.tsx"),r=s("../node_modules/classnames/index.js"),a=s.n(r),c=s("../node_modules/cookie/index.js"),l=s("../packages/i18n-calypso/src/use-translate.js"),d=s("../node_modules/react/index.js"),u=s("../node_modules/react-redux/es/index.js"),p=s("./lib/mobile-app/index.js"),m=s("./lib/analytics/utils/is-country-in-gdpr-zone.ts");var h=s("./lib/analytics/utils/refresh-country-code-cookie-gdpr.js"),g=s("./lib/formatting/prevent-widows.js"),f=s("./state/analytics/actions/record.js"),y=s("./state/analytics/actions/bump-stat.js"),w=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const b="visible",_="hidden",j="hiding";function v(){const e=c.parse(document.cookie);return{country:e.country_code,pixel:e.sensitive_pixel_option}}const k="undefined"==typeof document?e=>e:()=>{const[{country:e,pixel:t},s]=(0,d.useState)(v);return(0,d.useEffect)((()=>{e||(0,h.Z)().then((()=>s(v)))}),[e]),n=e,o=t,!(0,p.H)()&&"yes"!==o&&"no"!==o&&(void 0===n?null:"unknown"===n||(0,m.Z)(n));var n,o};function Z({showGdprBanner:e=!1}){const t=k(e);return null==t?null:(0,w.tZ)(x,{show:t})}function x({show:e}){const[t,s]=(0,d.useState)(e?b:_),r=(0,u.I0)(),p=(0,l.Z)();(0,d.useEffect)((()=>{t===b&&r((0,y.P)("cookie-banner-view","total,"+document.location.host.replace(/[^a-zA-Z0-9]/g,"-")))}),[t,r]);const m=p("Our websites and dashboards use cookies. By continuing, you agree to their use. {{a}}Learn more{{/a}}, including how to control cookies.",{components:{a:(0,w.tZ)("a",{href:(0,i.aq)("https://webcf.waybackmachine.org/web/20220607150355/https://automattic.com/cookies")})}});return(0,w.BX)(n.Z,{compact:!0,className:a()("gdpr-banner",{"gdpr-banner__hidden":t===_,"gdpr-banner__hiding":t===j}),children:[(0,w.tZ)("div",{className:"gdpr-banner__text-content",children:(0,g.R)(m)}),(0,w.tZ)("div",{className:"gdpr-banner__buttons",children:(0,w.tZ)(o.Z,{className:"gdpr-banner__acknowledge-button",onClick:()=>{document.cookie=c.serialize("sensitive_pixel_option","yes",{path:"/",maxAge:15552e3}),r((0,f.jN)("a8c_cookie_banner_ok",{site:"Calypso"})),s(j)},children:p("Got it!")})})]})}},"./boot/locale.js":(e,t,s)=>{s.d(t,{w:()=>d});var n=s("../packages/calypso-config/src/index.ts"),o=s("../packages/i18n-utils/src/utils.ts"),i=s("../packages/i18n-calypso/src/index.js"),r=s("./lib/i18n-utils/empathy-mode.js"),a=s("./lib/i18n-utils/switch-locale.js"),c=s("./state/action-types.ts"),l=s("./state/ui/language/actions.js");const d=(e,t)=>{n.ZP.isEnabled("i18n/empathy-mode")&&e.i18n_empathy_mode&&(0,r.uI)();let s=e.localeVariant||e.localeSlug;const d=e?.use_fallback_for_incomplete_languages&&(0,o.Yk)(s);d&&(s=(0,n.ZP)("i18n_default_locale_slug"));const u=window?.i18nLanguageManifest?.locale?.[""]?.localeSlug;if(window.i18nLocaleStrings){const e=JSON.parse(window.i18nLocaleStrings);i.ZP.setLocale(e);const s=i.ZP.getLocaleSlug(),n=i.ZP.getLocaleVariant();t.dispatch({type:c.JqF,localeSlug:s,localeVariant:n}),s&&(0,a.Ye)(s)}else if(e&&e.localeSlug)d?t.dispatch((0,l.i)(s)):t.dispatch((0,l.i)(e.localeSlug,e.localeVariant));else if(u)t.dispatch((0,l.i)(u));else{const e=function(){const e=window.location.pathname.replace(/\/$/,""),t=e.substr(e.lastIndexOf("/")+1);return(0,o.aK)().includes(t)&&!(0,o.TF)(t)&&t}();e&&t.dispatch((0,l.i)(e,""))}}},"./boot/polyfills.js":(e,t,s)=>{s("../packages/calypso-polyfills/browser.js");(0,s("../node_modules/lodash-es/noop.js").Z)()},"./components/async-load/index.jsx":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("../node_modules/lodash-es/omit.js"),i=s("../node_modules/react/index.js"),r=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");class a extends i.Component{constructor(...e){super(...e),(0,n.Z)(this,"state",{component:null})}componentDidMount(){this.mounted=!0,this.require()}UNSAFE_componentWillReceiveProps(e){this.mounted&&this.props.require!==e.require&&this.setState({component:null})}componentDidUpdate(e){this.props.require!==e.require&&this.require()}componentWillUnmount(){this.mounted=!1}require(){const e=this.props.require;e((t=>{this.mounted&&this.props.require===e&&this.setState({component:t})}))}render(){if(this.state.component){const e=(0,o.Z)(this.props,["placeholder","require"]);return(0,r.tZ)(this.state.component,{...e})}return this.props.placeholder}}(0,n.Z)(a,"defaultProps",{placeholder:(0,r.tZ)("div",{className:"async-load__placeholder"})})},"./components/data/document-head/index.jsx":(e,t,s)=>{s.d(t,{Z:()=>v});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("../node_modules/lodash-es/debounce.js"),i=s("../node_modules/lodash-es/isEqual.js"),r=s("../node_modules/react/index.js"),a=s("../node_modules/react-redux/es/index.js"),c=(s("./components/translatable/proptype.js"),s("./state/document-head/actions.js")),l=s("../packages/calypso-config/src/index.ts"),d=s("../packages/state-utils/src/index.ts"),u=s("../node_modules/lodash-es/compact.js"),p=s("./lib/formatting/decode-entities.ts"),m=s("./state/document-head/selectors/get-document-head-capped-unread-count.js"),h=s("./state/document-head/selectors/get-document-head-title.js"),g=s("./state/sites/selectors/get-site-title.js"),f=s("./state/ui/selectors/get-section-group.js");function y(e){return["sites","editor","gutenberg"].includes((0,f.Z)(e))}var w=s("./state/ui/selectors/get-selected-site-id.js");s("./state/document-head/init.js"),s("./state/ui/init.js");const b=(0,d.P1)((e=>{let t="";const s=(0,m.y)(e);return s&&(t+=`(${s}) `),t+=(0,u.Z)([(0,h.p)(e),y(e)&&(0,g.Z)(e,(0,w.Z)(e))]).join(" ‹ "),t&&(t=(0,p.S)(t)+" — "),t+(0,l.ZP)("site_name")}),(e=>[e.documentHead,e.ui.section,e.ui.selectedSiteId])),_="undefined"==typeof document;class j extends r.Component{constructor(e){super(e),(0,n.Z)(this,"setFormattedTitle",(0,o.Z)((()=>{document.title=this.props.formattedTitle}))),_&&this.syncState()}componentDidMount(){this.syncState(),this.setFormattedTitle()}componentDidUpdate(e){this.syncState(e),this.props.formattedTitle!==e.formattedTitle&&this.setFormattedTitle()}componentWillUnmount(){this.setFormattedTitle.cancel()}syncState(e=null){const{title:t,unreadCount:s,link:n,meta:o}=this.props;void 0===t||e&&e.title?.toString?.()===t?.toString?.()||this.props.setTitle(t),void 0===s||e&&e.unreadCount===s||this.props.setUnreadCount(s),void 0===n||e&&(0,i.Z)(e.link,n)||this.props.setLink(n),void 0===o||e&&(0,i.Z)(e.meta,o)||this.props.setMeta(o)}render(){return null}}const v=(0,a.$j)(((e,t)=>({formattedTitle:t.skipTitleFormatting?(0,h.p)(e):b(e)})),{setTitle:c.SQ,setLink:c.F_,setMeta:c.uW,setUnreadCount:c.ge})(j)},"./components/empty-content/index.jsx":(e,t,s)=>{s.d(t,{Z:()=>u});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("../packages/components/src/button/index.tsx"),i=s("../packages/i18n-utils/src/localize-url.tsx"),r=s("../node_modules/classnames/index.js"),a=s.n(r),c=s("../node_modules/react/index.js"),l=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");class d extends c.Component{primaryAction(){return"string"!=typeof this.props.action?this.props.action:this.props.actionURL||this.props.actionCallback?(0,l.tZ)(o.Z,{primary:!0,className:"empty-content__action",onClick:this.props.actionCallback,href:(0,i.aq)(this.props.actionURL),target:this.props.actionTarget,disabled:this.props.actionDisabled,ref:this.props.actionRef,onMouseEnter:this.props.actionHoverCallback,onTouchStart:this.props.actionHoverCallback,children:this.props.action}):void 0}secondaryAction(){return"string"!=typeof this.props.secondaryAction?this.props.secondaryAction:this.props.secondaryActionURL||this.props.secondaryActionCallback?(0,l.tZ)(o.Z,{className:"empty-content__action button",onClick:this.props.secondaryActionCallback,href:this.props.secondaryActionURL,target:this.props.secondaryActionTarget,children:this.props.secondaryAction}):void 0}render(){const e=this.props.action&&this.primaryAction(),t=this.props.secondaryAction&&this.secondaryAction(),s=this.props.illustration&&(0,l.tZ)("img",{src:this.props.illustration,alt:"",width:this.props.illustrationWidth,className:"empty-content__illustration"});return(0,l.BX)("div",{className:a()("empty-content",this.props.className,{"is-compact":this.props.isCompact,"has-title-only":this.props.title&&!this.props.line}),children:[s,this.props.title?(0,l.tZ)("h2",{className:"empty-content__title",children:this.props.title}):null,this.props.line?(0,l.tZ)("h3",{className:"empty-content__line",children:this.props.line}):null,e,t,this.props.children]})}}(0,n.Z)(d,"defaultProps",{title:"You haven't created any content yet.",illustration:"/calypso/images/illustrations/illustration-empty-results.svg",isCompact:!1});const u=d},"./components/gravatar/index.jsx":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("../packages/components/src/gravatar/index.tsx"),o=s("../node_modules/lodash-es/get.js"),i=s("../node_modules/react-redux/es/index.js"),r=s("./state/gravatar-status/selectors.js");const a=(0,i.$j)(((e,t)=>({tempImage:(0,r.$)(e,(0,o.Z)(t,"user.ID",!1))})))(n.K)},"./components/route/index.js":(e,t,s)=>{s.d(t,{nY:()=>a,CA:()=>c});var n=s("../node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"),o=s("../node_modules/react/index.js"),i=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const r=(0,o.createContext)({currentSection:!1,currentRoute:"",currentQuery:!1});function a({currentSection:e=!1,currentRoute:t="",currentQuery:s=!1,children:n}){const a=(0,o.useMemo)((()=>({currentSection:e,currentRoute:t,currentQuery:s})),[e,t,s]);return(0,i.tZ)(r.Provider,{value:a,children:n})}const c=(0,n.Z)((e=>function(t){const s=(0,o.useContext)(r);return(0,i.tZ)(e,{...t,...s})}),"WithCurrentRoute")},"./components/translatable/proptype.js":()=>{!function(e){function t(t,s,n,o,i){return o=o||"ANONYMOUS",void 0===s[n]?t?new Error("Required "+i+" `"+n+"` was not specified in `"+o+"`."):null:e(s,n,o,i)}const s=t.bind(null,!1);s.isRequired=t.bind(null,!0)}((function(e,t,s){s=s||"ANONYMOUS";const n=e[t];return null!=n?"string"==typeof n||"object"==typeof n&&"data"===n.type||"object"==typeof n&&["object","function"].includes(typeof n.type)&&("Translatable"===n.type.name||String(n.type.displayName).match(/\(Translatable\)/))?null:new Error("Invalid value for Translatable string in `"+s+"`. Please pass a translate() call."):null}))},"./components/wordpress-logo/index.jsx":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const o=function({className:e="wordpress-logo",size:t=72}){return(0,n.tZ)("svg",{className:e,height:t,width:t,viewBox:"0 0 72 72",children:(0,n.tZ)("path",{d:"M36,0C16.1,0,0,16.1,0,36c0,19.9,16.1,36,36,36c19.9,0,36-16.2,36-36C72,16.1,55.8,0,36,0z M3.6,36 c0-4.7,1-9.1,2.8-13.2l15.4,42.3C11.1,59.9,3.6,48.8,3.6,36z M36,68.4c-3.2,0-6.2-0.5-9.1-1.3l9.7-28.2l9.9,27.3 c0.1,0.2,0.1,0.3,0.2,0.4C43.4,67.7,39.8,68.4,36,68.4z M40.5,20.8c1.9-0.1,3.7-0.3,3.7-0.3c1.7-0.2,1.5-2.8-0.2-2.7 c0,0-5.2,0.4-8.6,0.4c-3.2,0-8.5-0.4-8.5-0.4c-1.7-0.1-2,2.6-0.2,2.7c0,0,1.7,0.2,3.4,0.3l5,13.8L28,55.9L16.2,20.8 c2-0.1,3.7-0.3,3.7-0.3c1.7-0.2,1.5-2.8-0.2-2.7c0,0-5.2,0.4-8.6,0.4c-0.6,0-1.3,0-2.1,0C14.7,9.4,24.7,3.6,36,3.6 c8.4,0,16.1,3.2,21.9,8.5c-0.1,0-0.3,0-0.4,0c-3.2,0-5.4,2.8-5.4,5.7c0,2.7,1.5,4.9,3.2,7.6c1.2,2.2,2.7,4.9,2.7,8.9 c0,2.8-0.8,6.3-2.5,10.5l-3.2,10.8L40.5,20.8z M52.3,64l9.9-28.6c1.8-4.6,2.5-8.3,2.5-11.6c0-1.2-0.1-2.3-0.2-3.3 c2.5,4.6,4,9.9,4,15.5C68.4,47.9,61.9,58.4,52.3,64z"})})}},"./components/wordpress-wordmark/index.jsx":(e,t,s)=>{s.d(t,{Z:()=>r});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("../node_modules/react/index.js"),i=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");class r extends o.PureComponent{render(){return(0,i.tZ)("svg",{className:this.props.className,width:this.props.width,height:this.props.height,viewBox:"0 0 1007.7 172.4",xmlns:"http://www.w3.org/2000/svg",children:(0,i.BX)("g",{fill:"#FFF",children:[(0,i.tZ)("path",{d:"M84.18,3.7a82,82,0,1,0,82,82A82.09,82.09,0,0,0,84.18,3.7Zm-73.72,82a73.48,73.48,0,0,1,6.38-30L52,152.05A73.72,73.72,0,0,1,10.46,85.7Zm73.72,73.73a73.77,73.77,0,0,1-20.83-3L85.47,92.15l22.66,62.08a6.44,6.44,0,0,0,.53,1A73.52,73.52,0,0,1,84.18,159.43ZM94.34,51.13c4.43-.23,8.43-.7,8.43-.7,4-.47,3.51-6.31-.46-6.07,0,0-12,.93-19.65.93-7.25,0-19.42-.93-19.42-.93-4-.24-4.44,5.83-.47,6.07,0,0,3.76.47,7.73.7L82,82.6,65.85,131,39,51.13c4.44-.23,8.43-.7,8.43-.7,4-.47,3.51-6.31-.47-6.07,0,0-11.94.93-19.64.93-1.39,0-3,0-4.75-.09A73.7,73.7,0,0,1,134,31.33c-.32,0-.63-.06-1-.06-7.25,0-12.38,6.31-12.38,13.09,0,6.07,3.5,11.21,7.24,17.29,2.8,4.91,6.07,11.21,6.07,20.33q0,9.47-5.61,23.83L121,130.38Zm26.9,98.29,22.52-65.11c4.21-10.51,5.6-18.92,5.6-26.4a55.93,55.93,0,0,0-.49-7.58,73.73,73.73,0,0,1-27.63,99.09Z"}),(0,i.tZ)("path",{d:"M728,88.75c0-4.41,4.77-6.12,9.92-6.12a59.43,59.43,0,0,1,16.16,2.56v-12A59.58,59.58,0,0,0,736.85,71c-14,0-23.76,6.61-23.76,17.39,0,20.94,28.9,15.55,28.9,25.72,0,5-4.53,6.36-11.15,6.36-4.65,0-12.12-1.81-17.51-3.68v11.88a48.73,48.73,0,0,0,17,3.44c13.6,0,26.58-4,26.58-18.62,0-20.2-28.9-14.94-28.9-24.73M804.23,101c0-13.59,7.47-18.25,16.29-18.25a48.26,48.26,0,0,1,16.22,3.31V73.81A47.22,47.22,0,0,0,820.27,71c-19.23,0-31.11,11.75-31.11,30.74,0,18,8.58,30.37,30.25,30.37a53.71,53.71,0,0,0,18.06-3.31v-12c-6.61,2.57-11.69,3.55-16.22,3.55-9.55,0-17-4.41-17-19.35M388.56,82h-.49V72.46H374.6v58.17h14.45V96c4.53-8.57,10-11.39,19.23-11.39h1.47V72a38.81,38.81,0,0,0-3.92-.25c-7.84,0-13.23,3.07-17.27,10.29m181.29,0h-.49V72.46H555.89v58.17h14.45V96c4.53-8.57,10-11.39,19.23-11.39H591V72a38.55,38.55,0,0,0-3.92-.25c-7.84,0-13.23,3.07-17.27,10.29M988,71c-6.24,0-13.35,3.43-19.84,7.71l-1.71,1.11c-3.06-6.49-9.19-8.82-15.92-8.82-6.25,0-13.35,3.18-19.84,7.47v-6H917v58.17h14.58V88.87c5.38-3.55,11.14-5.76,15.3-5.76,4.78,0,7.72,2.57,7.72,10.78v36.74h14.45V89c5.39-3.55,11.15-5.88,15.31-5.88,4.77,0,7.71,2.57,7.71,10.78v36.74h14.45V90.46C1006.52,79.19,999.79,71,988,71M876,120.46c-9.43,0-14.45-6.12-14.45-18.86s5-18.86,14.45-18.86,14.33,6.13,14.33,18.86-4.9,18.86-14.33,18.86M876,71c-20,0-29.39,12.86-29.39,30.61S856,132.1,876,132.1s29.4-12.74,29.4-30.5S895.8,71,876,71M675.42,88.75c0-4.41,4.78-6.12,9.92-6.12a59.45,59.45,0,0,1,16.17,2.56v-12A59.65,59.65,0,0,0,684.24,71c-14,0-23.75,6.61-23.75,17.39,0,20.94,28.9,15.55,28.9,25.72,0,5-4.54,6.36-11.15,6.36-4.65,0-12.12-1.81-17.51-3.68v11.88a48.73,48.73,0,0,0,17,3.44c13.6,0,26.58-4,26.58-18.62,0-20.2-28.91-14.94-28.91-24.73m-62.7,6.36c.86-8.08,5.27-13.22,12.49-13.22,7.72,0,10,6.12,10,13.22ZM625.34,71c-18.62,0-28.29,14.45-28.29,30.25,0,21.67,11.38,30.86,29.86,30.86a69.17,69.17,0,0,0,21.45-3.31v-12c-6.06,2.22-11.54,3.56-17.41,3.56-10.77,0-18-2.94-18.35-15.67h37.23a69.26,69.26,0,0,0,.49-8.57c0-12.25-6.49-25.11-25-25.11m-108.6,19.1H505.28V60.7h11.46c9.31,0,14,5.15,14,14.33s-4.28,15.06-14,15.06m-.12-41.51H489.85v82.05h15.43V102.09h11.34c17.51,0,30.25-9.43,30.25-27.06s-12.74-26.45-30.25-26.45m-59.1,65.27c-4.65,4.29-9.06,6.61-13.71,6.61-8,0-13.11-5.26-13.11-17.63,0-13.35,6.37-20.33,17.39-20.33a26.89,26.89,0,0,1,9.43,1.84Zm0-41.51A52.7,52.7,0,0,0,446.62,71c-20,0-30.86,13.35-30.86,32.82s10.9,28.29,23.76,28.29a31.84,31.84,0,0,0,18.73-6.86v5.39H472v-82H457.52Zm-124,48.12c-9.43,0-14.45-6.12-14.45-18.86s5-18.86,14.45-18.86,14.33,6.13,14.33,18.86-4.9,18.86-14.33,18.86m0-49.47c-20,0-29.39,12.86-29.39,30.61s9.43,30.5,29.39,30.5S363,119.36,363,101.6,353.4,71,333.56,71m432.92,59.64H781V115.69h-14.5Zm-475.39-82L274.74,111.4,258.39,48.58H241.88L245.73,62l-14.39,51.49L215.68,48.58H199.81l22.31,82.05h17.3l13.36-43.87,12.52,43.87h17.29l23.42-82Z"})]})})}}(0,n.Z)(r,"displayName","WordPressWordmark"),(0,n.Z)(r,"defaultProps",{width:150,height:25,className:"wpcom-wordmark"})},"./controller/shared.js":(e,t,s)=>{s.d(t,{n6:()=>c,QS:()=>l,qR:()=>d,D9:()=>u});var n=s("./state/current-user/selectors.js"),o=s("./state/ui/section/actions.js"),i=s("./state/ui/language/actions.js"),r=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const a=()=>{};function c(e){return(t,s)=>{const{i18n:o,store:i,queryClient:a,section:c,pathname:l,query:d,primary:u,secondary:p,showGdprBanner:m}=t;t.isServerSide&&(0,n.Pc)(t.store.getState())||(t.layout=(0,r.tZ)(e,{i18n:o,store:i,queryClient:a,currentSection:c,currentRoute:l,currentQuery:d,primary:u,secondary:p,redirectUri:t.originalUrl,showGdprBanner:m})),s()}}function l(e){return(t,s=a)=>{t.section=e,t.store.dispatch((0,o.z)(e)),s()}}function d(e="lang"){return(t,s)=>{const n=t.query[e];n&&(t.lang=n,t.store.dispatch((0,i.i)(n)));const o=t.params[e];o&&(t.lang=o,t.store.dispatch((0,i.i)(o))),s()}}function u(...e){return(t,s)=>{const n=e.values();!function e(){const o=n.next().value;o?o(t,e):s()}()}}},"./controller/web-util.js":(e,t,s)=>{s.d(t,{s:()=>o,Z:()=>i});var n=s("../node_modules/react-dom/index.js");function o(e){n.render(e.layout,document.getElementById("wpcom"))}function i(e){n.hydrate(e.layout,document.getElementById("wpcom"))}},"./jetpack-connect/woo-dna-config.js":(e,t,s)=>{s.d(t,{Z:()=>n});const n=e=>Object.freeze({isWooDnaFlow:()=>Boolean(e&&e.woodna_service_name),getFlowName:()=>"woodna:"+e.from,getServiceName:()=>e.woodna_service_name,getServiceHelpUrl:()=>e.woodna_help_url})},"./layout/body-section-css-class.js":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("../node_modules/react/index.js");function o(e,t){(0,n.useEffect)((()=>{if(!t)return;for(const t of document.body.classList)t.startsWith(e)&&document.body.classList.remove(t);const s=e+t;return document.body.classList.add(s),()=>document.body.classList.remove(s)}),[e,t])}function i({group:e,section:t,bodyClass:s}){return o("is-group-",e),o("is-section-",t),(0,n.useEffect)((()=>{if(Array.isArray(s)&&0!==s.length)return s.forEach((e=>{document.body.classList.add(e)})),()=>{s.forEach((e=>{document.body.classList.remove(e)}))}}),[s]),null}},"./layout/logged-out.jsx":(e,t,s)=>{s.d(t,{Z:()=>B});var n=s("../packages/calypso-config/src/index.ts"),o=s("../node_modules/classnames/index.js"),i=s.n(o),r=s("../node_modules/react-redux/es/index.js"),a=s("./blocks/gdpr-banner/index.jsx"),c=s("./components/async-load/index.jsx"),l=s("./components/route/index.js"),d=s("./jetpack-connect/woo-dna-config.js"),u=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),p=s("../packages/i18n-utils/src/utils.ts"),m=s("../packages/i18n-calypso/src/index.js"),h=s("../packages/i18n-calypso/src/localize.js"),g=s("../node_modules/react/index.js"),f=s("./components/wordpress-logo/index.jsx"),y=s("./components/wordpress-wordmark/index.jsx"),w=s("./lib/domains/utils/is-domain-connect-authorize-path.js"),b=s("./lib/paths/index.js"),_=s("./lib/url/add-query-args.ts"),j=s("./layout/masterbar/item.tsx"),v=s("./layout/masterbar/masterbar.jsx"),k=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js"),Z=function(e){Promise.all([s.e(90532),s.e(30788),s.e(71539),s.e(43400),s.e(28498),s.e(80168),s.e(77841),s.e(66575),s.e(12818),s.e(23683),s.e(49923),s.e(96235),s.e(79258),s.e(20138),s.e(16869),s.e(51306),s.e(87203),s.e(61702),s.e(52212),s.e(757),s.e(6348),s.e(12517),s.e(1802),s.e(93206)]).then(s.bind(s,"./layout/masterbar/checkout.tsx")).then((function(t){e(t.default)}))};class x extends g.Component{renderLoginItem(){const{currentQuery:e,currentRoute:t,sectionName:s,translate:n,redirectUri:o}=this.props;if("login"===s)return null;let i=null;o?i=o:t&&(i=e?(0,_.Z)(e,t):t);const r="jetpack-connect"===s;let a=(0,b.x4)({emailAddress:r&&(e?.user_email??!1),isJetpack:r,locale:(0,m.Yj)(),redirectTo:i});return e?.partner_id&&(a=(0,_.Z)({partner_id:e.partner_id},a)),(0,k.tZ)(j.Z,{url:a,children:n("Log In",{context:"Toolbar",comment:"Should be shorter than ~12 chars"})})}renderSignupItem(){const{currentQuery:e,currentRoute:t,locale:s,sectionName:o,translate:i}=this.props;if("signup"===o)return null;if(t.startsWith("/jetpack/connect/authorize"))return null;const r=e?.redirect_to??"";if((0,w.x)(r))return null;let a=(0,n.ZP)("signup_url");const c=e?.signup_flow;return t.startsWith("/log-in/jetpack")?a=e?.redirect_to?.includes("/jetpack/connect/authorize")&&e?.redirect_to?.includes("_wp_nonce")?e.redirect_to:"/jetpack/connect":"jetpack-connect"===o?a="/jetpack/connect":c&&(a+="/"+c),(0,p.TF)(s)||(a=(0,p.s6)(a,s)),(0,k.tZ)(j.Z,{url:a,children:i("Sign Up",{context:"Toolbar",comment:"Should be shorter than ~12 chars"})})}render(){const{title:e,isCheckout:t,isCheckoutPending:s}=this.props;return t||s?(0,k.tZ)(c.Z,{require:Z,placeholder:null,title:e,isLeavingAllowed:!s}):(0,k.BX)(v.Z,{children:[(0,k.BX)(j.Z,{className:"masterbar__item-logo",children:[(0,k.tZ)(f.Z,{className:"masterbar__wpcom-logo"}),(0,k.tZ)(y.Z,{className:"masterbar__wpcom-wordmark"})]}),(0,k.tZ)(j.Z,{className:"masterbar__item-title",children:e}),(0,k.BX)("div",{className:"masterbar__login-links",children:[this.renderSignupItem(),this.renderLoginItem()]})]})}}(0,u.Z)(x,"defaultProps",{sectionName:"",title:""});const E=(0,l.CA)((0,h.Z)(x));var S=s("../packages/components/src/gridicon/index.tsx"),P=s("../packages/i18n-utils/src/localize-url.tsx"),T=s("./components/jetpack-logo/index.jsx"),A=s("./lib/oauth2-clients.js");class R extends g.Component{componentDidMount(){const e=[new window.FontFace("Recoleta","url(https://s1.wp.com/i/fonts/recoleta/400.woff2)"),new window.FontFace("Recoleta","url(https://s1.wp.com/i/fonts/recoleta/700.woff2)",{weight:700})];if(!document.fonts.check("12px Recoleta"))for(const t of e)t.load().then((e=>document.fonts.add(e)))}render(){const{oauth2Client:e,translate:t}=this.props;return(0,k.tZ)("header",{className:"masterbar masterbar__crowdsignal",children:(0,k.tZ)("nav",{className:"masterbar__crowdsignal-nav-wrapper",children:(0,k.BX)("ul",{className:"masterbar__crowdsignal-nav",children:[(0,k.tZ)("li",{className:"masterbar__crowdsignal-nav-item",children:(0,k.tZ)("a",{href:"https://webcf.waybackmachine.org/web/20220607150355/https://crowdsignal.com",className:"masterbar__crowdsignal-link",children:(0,k.tZ)("img",{className:"masterbar__crowdsignal-client-logo",src:e.icon,alt:e.title})})}),(0,k.tZ)("li",{className:"masterbar__crowdsignal-nav-item masterbar__crowdsignal-nav-text",children:(0,k.tZ)("p",{className:"masterbar__crowdsignal-text",children:(0,k.tZ)("span",{children:t("{{span}}%(product)s is {{/span}}built by the people behind WordPress.com",{args:{product:e.title},components:{span:(0,k.tZ)("span",{className:"masterbar__crowdsignal-wide-screen-only"})}})})})}),(0,k.tZ)("li",{className:"masterbar__crowdsignal-nav-item",children:(0,k.tZ)("a",{href:"https://webcf.waybackmachine.org/web/20220607150355/https://wordpress.com",className:"masterbar__crowdsignal-link",children:(0,k.tZ)(f.Z,{size:40,className:"masterbar__crowdsignal-wordpress-logo"})})})]})})})}}const L=(0,h.Z)(R),C=({oauth2Client:e})=>(0,k.tZ)("header",{className:"masterbar masterbar__oauth-client",children:(0,k.tZ)("nav",{children:(0,k.BX)("ul",{className:"masterbar__oauth-client-main-nav",children:[(0,k.tZ)("li",{className:"masterbar__oauth-client-current",children:(0,A.CQ)(e)?(0,k.tZ)("div",{className:"masterbar__oauth-client-logo",children:(0,k.tZ)(T.Z,{full:!0,monochrome:!1,size:28})}):e.icon&&(0,k.tZ)("div",{className:"masterbar__oauth-client-logo",children:(0,k.tZ)("img",{src:e.icon,alt:e.title})})}),(0,A.dS)(e)&&(0,k.tZ)("li",{className:"masterbar__oauth-client-close",children:(0,k.BX)("a",{href:"https://webcf.waybackmachine.org/web/20220607150355/https://woocommerce.com",children:["Cancel ",(0,k.tZ)("span",{children:"X"})]})}),!(0,A.dS)(e)&&!(0,A.CQ)(e)&&(0,k.tZ)("li",{className:"masterbar__oauth-client-wpcc-sign-in",children:(0,k.BX)("a",{href:(0,P.aq)("https://webcf.waybackmachine.org/web/20220607150355/https://wordpress.com/"),className:"masterbar__oauth-client-wpcom",target:"_self",children:[(0,k.tZ)(S.Z,{icon:"my-sites",size:24}),"WordPress.com"]})})]})})}),I=({oauth2Client:e})=>(0,A.O7)(e)?(0,k.tZ)(L,{oauth2Client:e}):(0,k.tZ)(C,{oauth2Client:e});I.displayName="OauthClientMasterbar";const N=I;var U=s("./lib/mobile-app/index.js"),M=s("./state/oauth2-clients/ui/selectors.js"),q=s("./state/selectors/get-initial-query-arguments.js"),O=s("./state/ui/selectors/masterbar-is-visible.js"),H=s("./layout/body-section-css-class.js"),F=function(e){s.e(39675).then(s.bind(s,"./components/global-notices/index.jsx")).then((function(t){e(t.default)}))},D=function(e){s.e(55400).then(s.bind(s,"./blocks/inline-help/index.jsx")).then((function(t){e(t.default)}))};const G=({isJetpackLogin:e,isWhiteLogin:t,isPopup:s,isJetpackWooCommerceFlow:o,isJetpackWooDnaFlow:r,isP2Login:l,wccomFrom:d,masterbarIsHidden:u,oauth2Client:p,primary:m,secondary:h,sectionGroup:g,sectionName:f,sectionTitle:y,redirectUri:w,useOAuth2Layout:b,showGdprBanner:_})=>{const j="checkout"===f,v="checkout-pending"===f,Z="checkout"===f&&window.location.pathname.startsWith("/checkout/jetpack"),x="checkout"===f&&window.location.pathname.startsWith("/checkout/jetpack/thank-you"),S={["is-group-"+g]:g,["is-section-"+f]:f,"focus-content":!0,"has-no-sidebar":!h,"has-no-masterbar":u,"is-jetpack-login":e,"is-jetpack-site":Z,"is-white-login":t,"is-popup":s,"is-jetpack-woocommerce-flow":o,"is-jetpack-woo-dna-flow":r,"is-wccom-oauth-flow":(0,A.dS)(p)&&d,"is-p2-login":l};let P=null;b&&p&&p.name?(0,A.dS)(p)&&d?P=null:(S.dops=!0,S[p.name]=!0,(0,A.O7)(p)&&(S["has-no-masterbar"]=!1),P=(0,k.tZ)(N,{oauth2Client:p})):P=n.ZP.isEnabled("jetpack-cloud")||(0,U.H)()||x?null:(0,k.tZ)(E,{title:y,sectionName:f,isCheckout:j,isCheckoutPending:v,redirectUri:w});return(0,k.BX)("div",{className:i()("layout",S),children:[(0,k.tZ)(H.Z,{group:g,section:f,bodyClass:["font-smoothing-antialiased"]}),P,(0,k.BX)("div",{id:"content",className:"layout__content",children:[(0,k.tZ)(c.Z,{require:F,placeholder:null,id:"notices"}),j&&(0,k.tZ)(c.Z,{require:D,placeholder:null}),(0,k.tZ)("div",{id:"primary",className:"layout__primary",children:m}),(0,k.tZ)("div",{id:"secondary",className:"layout__secondary",children:h})]}),n.ZP.isEnabled("gdpr-banner")&&(0,k.tZ)(a.default,{showGdprBanner:_})]})};G.displayName="LayoutLoggedOut";const B=(0,l.CA)((0,r.$j)(((e,{currentSection:t,currentRoute:s,currentQuery:n})=>{const o=t?.group??null,i=t?.name??null,r=t?.title??"",a=s.startsWith("/log-in/jetpack"),c=s.startsWith("/log-in/new"),l=(0,d.Z)((0,q.Z)(e)).isWooDnaFlow(),u="login"===i&&"p2"===n?.from,p=a||c||l||u,m="1"===n?.is_popup,h=["signup","jetpack-connect"].includes(i),g="woocommerce-onboarding"===n?.from,f=n?.["wccom-from"];return{isJetpackLogin:a,isWhiteLogin:c,isPopup:m,isJetpackWooCommerceFlow:g,isJetpackWooDnaFlow:l,isP2Login:u,wccomFrom:f,masterbarIsHidden:!(0,O.Z)(e)||h||p,sectionGroup:o,sectionName:i,sectionTitle:r,oauth2Client:(0,M.op)(e),useOAuth2Layout:(0,M.rM)(e)}}))(G))},"./layout/masterbar/item.tsx":(e,t,s)=>{s.d(t,{Z:()=>d});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("../packages/components/src/gridicon/index.tsx"),i=s("../node_modules/classnames/index.js"),r=s.n(i),a=s("../node_modules/react/index.js"),c=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");class l extends a.Component{constructor(...e){super(...e),(0,n.Z)(this,"_preloaded",!1),(0,n.Z)(this,"preload",(()=>{this._preloaded||"function"!=typeof this.props.preloadSection||(this._preloaded=!0,this.props.preloadSection())}))}renderChildren(){const{children:e,hasUnseen:t,icon:s}=this.props;return(0,c.BX)(a.Fragment,{children:[t&&(0,c.tZ)("span",{className:"masterbar__item-bubble","aria-label":"You have unseen content"}),!!s&&("string"!=typeof s?s:(0,c.tZ)(o.Z,{icon:s,size:24})),(0,c.tZ)("span",{className:"masterbar__item-content",children:e})]})}render(){const e=r()("masterbar__item",this.props.className,{"is-active":this.props.isActive,"has-unseen":this.props.hasUnseen,"masterbar__item--always-show-content":this.props.alwaysShowContent}),t={"data-tip-target":this.props.tipTarget,onClick:this.props.onClick,title:this.props.tooltip,className:e,onTouchStart:this.preload,onMouseEnter:this.preload};return this.props.url?(0,c.tZ)("a",{...t,href:this.props.url,ref:this.props.innerRef,children:this.renderChildren()}):(0,c.tZ)("button",{...t,ref:this.props.innerRef,children:this.renderChildren()})}}(0,n.Z)(l,"defaultProps",{icon:"",onClick:()=>{},hasUnseen:!1,url:""});const d=(0,a.forwardRef)(((e,t)=>(0,c.tZ)(l,{innerRef:t,...e})))},"./layout/masterbar/masterbar.jsx":(e,t,s)=>{s.d(t,{Z:()=>r});var n=s("../node_modules/classnames/index.js"),o=s.n(n),i=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const r=({children:e,className:t})=>(0,i.tZ)("header",{id:"header",className:o()("masterbar",t),children:e})},"./lib/analytics/ad-tracking/constants.js":(e,t,s)=>{s.d(t,{wZ:()=>i,a1:()=>r,ZK:()=>a,_O:()=>c,n_:()=>l,CO:()=>d,xb:()=>u,RQ:()=>p,kL:()=>m,tP:()=>h,GL:()=>g,eG:()=>f,hR:()=>y,Mf:()=>w,Q1:()=>b,az:()=>_,Cr:()=>j,S$:()=>v,nF:()=>k,fF:()=>Z,lB:()=>x,n5:()=>E,Dt:()=>S,j_:()=>P,Oi:()=>T,EV:()=>A,rf:()=>R,kB:()=>L,y2:()=>C,yf:()=>I,Eu:()=>N,xV:()=>U,E9:()=>M,O5:()=>q,pP:()=>O,Ai:()=>H,zR:()=>F,Uk:()=>D,L:()=>G,cf:()=>B,Hb:()=>V,zv:()=>z,oh:()=>W,Kj:()=>$,qc:()=>J});var n=s("../packages/calypso-config/src/index.ts"),o=s("../node_modules/debug/src/browser.js");const i=!0,r=!0,a=!0,c=!0,l=!0,d=!1,u=!0,p=!0,m=!1,h=!0,g=!0,f=!0,y=!1,w=!0,b=!1,_=!1,j=!1,v=!1,k=!1,Z=s.n(o)()("calypso:analytics:ad-tracking"),x="https://webcf.waybackmachine.org/web/20220607150355/https://connect.facebook.net/en_US/fbevents.js",E="https://webcf.waybackmachine.org/web/20220607150355/https://www.googletagmanager.com/gtag/js?id=",S="https://webcf.waybackmachine.org/web/20220607150355/https://bat.bing.com/bat.js",P="https://webcf.waybackmachine.org/web/20220607150355/https://static.criteo.net/js/ld/ld.js",T="https://webcf.waybackmachine.org/web/20220607150355/https://sp.analytics.yahoo.com/spp.pl?a=10000&.yp=10014088&ec=wordpresspurchase",A="https://webcf.waybackmachine.org/web/20220607150355/https://sp.analytics.yahoo.com/spp.pl?a=10000&.yp=10014088",R="https://webcf.waybackmachine.org/web/20220607150355/https://data.adxcel-ec2.com/pixel/?ad_log=referer&action=purchase&pixid=7efc5994-458b-494f-94b3-31862eee9e26",L="https://webcf.waybackmachine.org/web/20220607150355/https://d.turn.com/r/dd/id/L21rdC84MTYvY2lkLzE3NDc0MzIzNDgvdC8yL2NhdC8zMjE4NzUwOQ",C="https://webcf.waybackmachine.org/web/20220607150355/https://tags.w55c.net/rs?id=cab35a3a79dc4173b8ce2c47adad2cea&t=marketing",I="https://webcf.waybackmachine.org/web/20220607150355/https://tags.w55c.net/rs?id=d239e9cb6d164f7299d2dbf7298f930a&t=marketing",N="https://webcf.waybackmachine.org/web/20220607150355/https://tags.w55c.net/rs?id=d299eef42f2d4135a96d0d40ace66f3a&t=checkout",U="https://webcf.waybackmachine.org/web/20220607150355/https://d.adroll.com/ipixel/PEJHFPIHPJC2PD3IMTCWTT/WV6A5O5PBJBIBDYGZHVBM5?name=ded132f8",M="https://webcf.waybackmachine.org/web/20220607150355/https://d.adroll.com/fb/ipixel/PEJHFPIHPJC2PD3IMTCWTT/WV6A5O5PBJBIBDYGZHVBM5?name=ded132f8",q="https://webcf.waybackmachine.org/web/20220607150355/https://d.adroll.com/ipixel/PEJHFPIHPJC2PD3IMTCWTT/WV6A5O5PBJBIBDYGZHVBM5?name=8eb337b5",O="https://webcf.waybackmachine.org/web/20220607150355/https://d.adroll.com/fb/ipixel/PEJHFPIHPJC2PD3IMTCWTT/WV6A5O5PBJBIBDYGZHVBM5?name=8eb337b5",H="https://webcf.waybackmachine.org/web/20220607150355/https://static.ads-twitter.com/uwt.js",F="https://webcf.waybackmachine.org/web/20220607150355/https://snap.licdn.com/li.lms-analytics/insight.min.js",D="https://webcf.waybackmachine.org/web/20220607150355/https://a.quora.com/qevents.js",G="https://webcf.waybackmachine.org/web/20220607150355/https://amplify.outbrain.com/cp/obtp.js",B="https://webcf.waybackmachine.org/web/20220607150355/https://s.pinimg.com/ct/core.js",V={bingInit:"4074038",criteo:"31321",dcmFloodlightAdvertiserId:"6355556",facebookInit:"823166884443641",facebookJetpackInit:"919484458159593",fullStory:"120RG4",fullStoryJetpack:"181XXV",linkedInPartnerId:"195308",outbrainAdvId:"00f0f5287433c2851cc0cb917c7ff0465e",pinterestInit:"2613194105266",quantcast:"p-3Ma3jHaQMB_bS",quoraPixelId:"420845cb70e444938cf0728887a74ca1",twitterPixelId:"nvzbs",wpcomGoogleAnalyticsGtag:(0,n.ZP)("google_analytics_key"),wpcomFloodlightGtag:"DC-6355556",wpcomGoogleAdsGtag:"AW-946162814",wpcomGoogleAdsGtagSignupStart:"AW-946162814/baDICKzQiq4BEP6YlcMD",wpcomGoogleAdsGtagRegistration:"AW-946162814/_6cKCK6miZYBEP6YlcMD",wpcomGoogleAdsGtagSignup:"AW-946162814/5-NnCKy3xZQBEP6YlcMD",wpcomGoogleAdsGtagAddToCart:"AW-946162814/MF4yCNi_kZYBEP6YlcMD",wpcomGoogleAdsGtagPurchase:"AW-946162814/taG8CPW8spQBEP6YlcMD",jetpackGoogleAnalyticsGtag:"UA-52447-43",jetpackGoogleAdsGtagPurchase:"AW-946162814/kIF1CL3ApfsBEP6YlcMD"},z="dcmsid",W=1800,$="WordPress.com",J="Jetpack"},"./lib/analytics/ad-tracking/floodlight.js":(e,t,s)=>{s.d(t,{j:()=>c,I:()=>d});var n=s("../packages/calypso-analytics/src/index.ts"),o=s("../node_modules/cookie/index.js"),i=s("../node_modules/uuid/dist/esm-browser/v4.js"),r=s("./lib/analytics/utils/is-ad-tracking-allowed.js"),a=s("./lib/analytics/ad-tracking/constants.js");s("./lib/analytics/ad-tracking/setup.js");function c(e){if(!(0,r.Z)()||!a.ZK)return;const t=["event","conversion",{...{...l(),allow_custom_scripts:!0},...e}];(0,a.fF)("recordParamsInFloodlightGtag:",t),window.gtag(...t)}function l(){const e={},t=(0,n.ts)(),s=(0,n.di)();return t&&(e.u4=t.hashedPii.ID),s&&(e.u5=s),e}function d(e){if(!(0,r.Z)()||!a.ZK)return;const t=function(){const e=o.parse(document.cookie)[a.zv];if(e)return(0,a.fF)("Floodlight: Existing session: "+e),e;const t=(0,i.Z)().replace(new RegExp("-","g"),"");return(0,a.fF)("Floodlight: New session: "+t),t}();document.cookie=o.serialize(a.zv,t,{maxAge:a.oh}),(0,a.fF)("retarget: recordPageViewInFloodlight: wpvisit"),c({session_id:t,u6:e,u7:t,send_to:"DC-6355556/wordp0/wpvisit+per_session"}),(0,a.fF)("retarget: recordPageViewInFloodlight: wppv"),c({u6:e,u7:t,send_to:"DC-6355556/wordp0/wppv+standard"})}},"./lib/analytics/ad-tracking/load-tracking-scripts.js":(e,t,s)=>{s.d(t,{_:()=>r});var n=s("../packages/calypso-analytics/src/index.ts"),o=s("../packages/load-script/src/index.js"),i=s("./lib/analytics/ad-tracking/constants.js");s("./lib/analytics/ad-tracking/setup.js");const r=function(e){let t,s="not-loading";const n=new Promise((e=>{t=e}));return()=>("not-loading"===s&&(s="loading",e().then((e=>{s="loaded",t(e)}),(()=>{s="not-loading"}))),n)}((async()=>{const e=function(){const e=[];i._O&&e.push(i.lB);const t=[i.wZ&&i.Hb.wpcomGoogleAnalyticsGtag,i.xb&&i.Hb.wpcomGoogleAdsGtag,i.ZK&&i.Hb.wpcomFloodlightGtag].filter((e=>!1!==e));t.length>0&&e.push(i.n5+t[0]);i.n_&&e.push(i.Dt);i.az&&e.push(i.j_);i.kL&&e.push(("https:"===document.location.protocol?"https://webcf.waybackmachine.org/web/20220607150355/https://secure":"https://webcf.waybackmachine.org/web/20220607150355/http://edge")+".quantserve.com/quant.js");i.Mf&&e.push(i.Ai);i.Q1&&e.push(i.zR);i.S$&&e.push(i.Uk);i.GL&&e.push(i.L);i.eG&&e.push(i.cf);return e}();let t=!1;for(const s of e){try{await(0,o.ve)(s)}catch(e){t=!0,(0,i.fF)("loadTrackingScripts: [Load Error] a tracking script failed to load: ",e)}(0,i.fF)("loadTrackingScripts: [Loaded]",s)}if(t)throw new Error("One or more tracking scripts failed to load");(0,i.fF)("loadTrackingScripts: load done"),function(){i._O&&function(){let e={};const t=(0,n.ts)();t&&(e={em:t.hashedPii.email});(0,i.fF)("initFacebook",e),window.fbq("init",i.Hb.facebookInit,e),window.fbq("set","autoConfig",!1,i.Hb.facebookJetpackInit),window.fbq("init",i.Hb.facebookJetpackInit,e)}();if(i.n_){const e={ti:i.Hb.bingInit,q:window.uetq};"undefined"!=typeof UET&&(window.uetq=new UET(e))}i.Mf&&window.twq("init",i.Hb.twitterPixelId);i.S$&&window.qp("init",i.Hb.quoraPixelId);if(i.eG){const e=(0,n.ts)(),t=e?{em:e.hashedPii.email}:{};window.pintrk("load",i.Hb.pinterestInit,t)}(0,i.fF)("loadTrackingScripts: init done")}(),(0,i.fF)("loadTrackingScripts: dataLayer:",JSON.stringify(window.dataLayer,null,2))}))},"./lib/analytics/ad-tracking/setup-gtag.js":(e,t,s)=>{function n(){window.dataLayer&&window.gtag||(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date))}s.d(t,{U:()=>n})},"./lib/analytics/ad-tracking/setup.js":(e,t,s)=>{var n=s("./lib/analytics/ad-tracking/constants.js"),o=s("./lib/analytics/ad-tracking/setup-gtag.js");"undefined"!=typeof window&&((0,o.U)(),n._O&&function(){if(window.fbq)return;const e=window.fbq=function(){e.callMethod?e.callMethod.apply(e,arguments):e.queue.push(arguments)};window._fbq||(window._fbq=e);window._fbq.disablePushState=!0,e.push=e,e.loaded=!0,e.version="2.0",e.queue=[]}(),n.n_&&!window.uetq&&(window.uetq=[]),n.az&&!window.criteo_q&&(window.criteo_q=[]),n.kL&&!window._qevents&&(window._qevents=[]),n.xb&&((0,o.U)(),window.gtag("config",n.Hb.wpcomGoogleAdsGtag)),n.ZK&&((0,o.U)(),window.gtag("config",n.Hb.wpcomFloodlightGtag)),n.Mf&&function(){if(window.twq)return;const e=window.twq=function(){e.exe?e.exe.apply(e,arguments):e.queue.push(arguments)};e.version="1.1",e.queue=[]}(),n.Q1&&(window._linkedin_data_partner_id||(window._linkedin_data_partner_id=n.Hb.linkedInPartnerId)),n.S$&&function(){if(window.qp)return;const e=window.qp=function(){e.qp?e.qp.apply(e,arguments):e.queue.push(arguments)};e.queue=[]}(),n.GL&&function(){const e=window.obApi=function(){e.dispatch?e.dispatch.apply(e,arguments):e.queue.push(arguments)};e.version="1.0",e.loaded=!0,e.marketerId=n.Hb.outbrainAdvId,e.queue=[]}(),n.eG&&function(){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};const e=window.pintrk;e.queue=[],e.version="3.0"}}(),n.nF&&(window.adRoll||(window.adRoll={trackPageview:function(){(new window.Image).src=n.xV,(new window.Image).src=n.E9},trackPurchase:function(){(new window.Image).src=n.O5,(new window.Image).src=n.pP}})))},"./lib/analytics/fullstory.js":(e,t,s)=>{s.d(t,{U:()=>h,K:()=>g});var n=s("../packages/calypso-analytics/src/index.ts"),o=s("../packages/calypso-config/src/index.ts"),i=s("../node_modules/debug/src/browser.js"),r=s.n(i),a=s("./lib/e2e/index.ts"),c=s("./lib/jetpack/is-jetpack-cloud.ts"),l=s("./lib/analytics/ad-tracking/constants.js"),d=s("./lib/analytics/utils/is-pii-url.js"),u=s("./lib/analytics/utils/may-we-track-current-user-gdpr.ts");const p=r()("calypso:analytics:fullstory");let m=!1;function h(){f(),window.FS&&(p("retargetFullStory"),window.FS.restart(),y())}function g(e,t){if(f(),!window.FS||!e)return;const s=w(t);p("recordFullStoryEvent:",{name:e,props:s}),window.FS.event(e,s),y()}function f(){var e,t,s,i,r,h,g,f;m||!o.ZP.isEnabled("fullstory")||(0,n.vX)()||(0,a.b)()||(0,d.Z)()||!(0,u.Z)()?m||p("maybeAddFullStoryScript:",!1):(m=!0,p("maybeAddFullStoryScript:",!0),window._fs_debug=!1,window._fs_host="fullstory.com",window._fs_script="edge.fullstory.com/s/fs.js",window._fs_org=(0,c.Z)()?l.Hb.fullStoryJetpack:l.Hb.fullStory,window._fs_namespace="FS",e=window,t=document,s=window._fs_namespace,i="script",r="user",p("maybeAddFullStoryScript:","script loading"),s in e?e.console&&e.console.log&&e.console.log("FullStory namespace conflict. Please set window._fs_namespace."):((g=e[s]=function(e,t,s){g.q?g.q.push([e,t,s]):g._api(e,t,s)}).q=[],(h=t.createElement(i)).async=1,h.crossOrigin="anonymous",h.src="https://"+window._fs_script,(f=t.getElementsByTagName(i)[0]).parentNode.insertBefore(h,f),g.identify=function(e,t,s){g(r,{uid:e},s),t&&g(r,t,s)},g.setUserVars=function(e,t){g(r,e,t)},g.event=function(e,t,s){g("event",{n:e,p:t},s)},g.anonymize=function(){g.identify(!1)},g.shutdown=function(){g("rec",!1)},g.restart=function(){g("rec",!0)},g.log=function(e,t){g("log",[e,t])},g.consent=function(e){g("consent",!arguments.length||e)},g.identifyAccount=function(e,t){h="account",(t=t||{}).acctId=e,g(h,t)},g.clearUserCookie=function(){},g.setVars=function(e,t){g("setVars",[e,t])},g._w={},f="XMLHttpRequest",g._w[f]=e[f],f="fetch",g._w[f]=e[f],e[f]&&(e[f]=function(){return g._w[f].apply(this,arguments)}),g._v="1.3.0"))}function y(){if(!window.FS)return;const e=(0,n.ts)();e&&(p("maybeIdentifyUser:",e),window.FS.identify(e.hashedPii.ID))}function w(e){const t={};e="object"==typeof e?e:{};for(const[s,n]of Object.entries(e)){const e=typeof n;"string"===e?t[s+"_str"]=n:"boolean"===e?t[s+"_bool"]=n:"number"===e||"bigint"===e?-1!==String(n).indexOf(".")?t[s+"_real"]=n:t[s+"_int"]=n:"object"===e&&(t[s]=w(n))}return t}},"./lib/analytics/ga.js":(e,t,s)=>{s.d(t,{Yh:()=>y,eK:()=>f});var n=s("../node_modules/debug/src/browser.js"),o=s.n(n),i=s("../packages/calypso-analytics/src/index.ts"),r=s("../packages/calypso-config/src/index.ts"),a=s("./lib/analytics/utils/is-pii-url.js"),c=s("./lib/analytics/utils/may-we-track-current-user-gdpr.ts"),l=s("./lib/jetpack/is-jetpack-cloud.ts"),d=s("./lib/analytics/ad-tracking/constants.js"),u=s("./lib/analytics/ad-tracking/setup-gtag.js");s("./lib/analytics/ad-tracking/setup.js");function p(){const e=(0,i.ts)();return{...e&&{user_id:e.hashedPii.ID},anonymize_ip:!0,transport_type:"function"==typeof window.navigator.sendBeacon?"beacon":"xhr",use_amp_client_id:!0,custom_map:{dimension3:"client_id"},linker:(0,l.Z)()?{domains:["wordpress.com"]}:{accept_incoming:!0}}}const m=o()("calypso:analytics:ga");let h=!1;function g(){if(!h){const t={send_page_view:!1,...p()};m("parameters:",t),e=t,(0,u.U)(),window.gtag("config",d.Hb.wpcomGoogleAnalyticsGtag,e),h=!0}var e}const f=w((function(e,t,s=!1){m("Recording Page View ~ [URL: "+e+"] [Title: "+t+"] [useJetpackGoogleAnalytics: "+s+"]"),function(e,t,s=!1){window.gtag("config",d.Hb.wpcomGoogleAnalyticsGtag,{...p(),page_path:e,page_title:t}),s&&window.gtag("config",d.Hb.jetpackGoogleAnalyticsGtag,{...p(),page_path:e,page_title:t})}(e,t,s)})),y=w((function(e,t,s,n){void 0===n||isNaN(Number(String(n)))||(n=Math.round(Number(String(n))));let o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==s&&(o+=" [Option Label: "+s+"]"),void 0!==n&&(o+=" [Option Value: "+n+"]"),m(o),function(e,t,s,n){window.gtag("event",t,{event_category:e,event_label:s,value:n})}(e,t,s,n)}));function w(e){return function(...t){d.wZ&&r.ZP.isEnabled("ad-tracking")&&!(0,i.vX)()&&!(0,a.Z)()&&(0,c.Z)()?(g(),e(...t)):m("[Disallowed] analytics %s( %o )",e.name,t)}}},"./lib/analytics/init.js":(e,t,s)=>{s.d(t,{M:()=>r});var n=s("../packages/calypso-analytics/src/index.ts"),o=s("../node_modules/debug/src/browser.js");const i=s.n(o)()("calypso:analytics:init");async function r(e,t){await(0,n.MB)(e,t);const o=(0,n.ts)();if("object"==typeof e&&o&&(0,n.di)()){const e=await s.e(66474).then(s.bind(s,"./lib/analytics/ad-tracking/record-alias-in-floodlight.js")),{recordAliasInFloodlight:t}=e;i("recordAliasInFloodlight",o),t()}}},"./lib/analytics/page-view.js":(e,t,s)=>{s.d(t,{A:()=>R});var n=s("../packages/calypso-analytics/src/index.ts"),o=s("../packages/viewport/src/index.ts"),i=s("./lib/analytics/utils/refresh-country-code-cookie-gdpr.js"),r=s("./lib/analytics/utils/is-ad-tracking-allowed.js"),a=s("./lib/analytics/ad-tracking/constants.js"),c=s("./lib/analytics/ad-tracking/floodlight.js"),l=s("./lib/analytics/ad-tracking/load-tracking-scripts.js");s("./lib/analytics/ad-tracking/setup.js");let d=0;var u=s("./lib/analytics/fullstory.js"),p=s("../node_modules/cookie/index.js"),m=s("../node_modules/debug/src/browser.js"),h=s.n(m),g=s("./lib/analytics/utils/debug.js");function f(e){const t={"-":"+",_:"/",".":"="};return window.atob(e.replace(/[-_.]/g,(e=>t[e])))}function y(e){try{const t=new URL(e);if((0,g.Z)("urlParseAmpCompatible: original query:",t.search),t.searchParams.has("tk_amp")){const e=function(e){if(0===(e=e.split("*").filter((e=>e.length)).slice(2)).length||0!=e.length%2)return null;const t={};for(let s=0;s<e.length;s+=2)t[e[s]]=f(e[s+1]);return t}(t.searchParams.get("tk_amp"));(0,g.Z)("urlParseAmpCompatible: tk_amp:",e);for(const s of Object.keys(e))t.searchParams.has(s)||t.searchParams.set(s,e[s])}return(0,g.Z)("urlParseAmpCompatible: merged query:",t.search),t}catch{return null}}const w=h()("calypso:analytics:sem"),b=["adgroupid","campaignid","device","gclid","gclsrc","fbclid","keyword","matchtype","network","type","term","utm_campaign","utm_content","utm_medium","utm_source","utm_term","targetid","locationid","ref","format"],_=new RegExp("^[a-zA-Z\\d_\\-]{1,128}$");function j(e,t){return-1!==b.indexOf(e)&&("utm_source"===e||"utm_campaign"===t?function(e){return _.test(e)}(t):function(e,t){return"gclid"===e?t.length<=100:"keyword"===e?t.length<=80:t.length<=50}(e,t))}function v(e,t){document.cookie=p.serialize(e,t,{path:"/",maxAge:31536e3,domain:"."+document.location.hostname.split(".").slice(-2).join(".")})}var k=s("./lib/analytics/utils/marketing-coupons-key.js");var Z=s("./lib/analytics/ga.js"),x=s("./lib/analytics/queue.js"),E=s("../node_modules/lodash-es/pick.js"),S=s("./lib/analytics/tracks.js");const P=h()("calypso:analytics:refer"),T=["status","success","duplicate","description","cookie_id","vendor_id","affiliate_id","campaign_id","sub_id","referrer"];function A(){if(!window||!window.location)return;const e=window.location.href,t=y(e),s=t?.searchParams.get("aff")||t?.searchParams.get("affiliate"),n=t?.searchParams.get("cid"),o=t?.searchParams.get("sid");s&&!isNaN(s)&&((0,S.recordTracksEvent)("calypso_refer_visit",{page:t.host+t.pathname}),async function({affiliateId:e,campaignId:t,subId:s,referrer:n}){P("Recording affiliate referral.",{affiliateId:e,campaignId:t,subId:s,referrer:n});const o={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"application/json"},i=new URLSearchParams({affiliate_id:e,campaign_id:t||"",sub_id:s||"",referrer:n||""}).toString();P("Fetching Refer platform response.");try{const e=await window.fetch("https://webcf.waybackmachine.org/web/20220607150355/https://refer.wordpress.com/clicks/67402",{credentials:"include",method:"POST",headers:o,body:i}),t=await e.json();if(e.ok)return P("Recording Refer platform success response.",t),void(0,S.recordTracksEvent)("calypso_refer_visit_response",{...(0,E.Z)(t.data,T),status:e.status||"",success:t.success||!0,description:t.message||"success"});P("Recording Refer platform error response.",t),(0,S.recordTracksEvent)("calypso_refer_visit_response",{...(0,E.Z)(t.data,T),status:e.status||"",success:t.success||!1,description:t.message||"error"})}catch(e){P("Failed to fetch Refer platform response.",e)}}({affiliateId:s,campaignId:n,subId:o,referrer:e}))}function R(e,t,s={},p={}){setTimeout((()=>{s.device_type=(0,o.jv)(),(0,n.w2)(e,s),async function(e,t,s=!1){await(0,i.Z)(),(0,Z.eK)(e,t,s)}(e,t,p?.useJetpackGoogleAnalytics),A(),function(){const e=y(window.location.href)?.searchParams.get("coupon");if(!e)return;let t=null;try{const e=window.localStorage.getItem(k.Z);t=JSON.parse(e)}catch(e){}t||(t={});const s=Date.now();(0,g.Z)("Found coupons in localStorage: ",t),t[e]=s,Object.keys(t).forEach((e=>{s>t[e]+6048e5&&delete t[e]}));try{(0,g.Z)("Storing coupons in localStorage: ",t),window.localStorage.setItem(k.Z,JSON.stringify(t))}catch(e){}}(),function(){if(!document.location.search)return void w("No query data in URL.");const e=y(document.location.href)?.searchParams;let t=new URLSearchParams;if(e){const s=Array.from(e.entries()).filter((([e,t])=>j(e,t)));t=new URLSearchParams(s),e.get("amp_client_id")&&(0,n.lH)(["identifyAnonUser",e.get("amp_client_id")])}if(!t.get("utm_source")||!t.get("utm_campaign"))return void w("Missing utm_source or utm_campaign.");const s=t.toString();s&&(w("ad_details: "+s),v("ad_details",s),v("ad_timestamp",Math.floor((new Date).getTime()/1e3)))}(),async function(e){if(await(0,i.Z)(),!(0,r.Z)())return void(0,a.fF)("retarget: [Skipping] ad tracking is not allowed",e);if(await(0,l._)(),(0,a.fF)("retarget:",e),a.kL){const e={qacct:a.Hb.quantcast,event:"refresh"};(0,a.fF)("retarget: [Quantcast]",e),window._qevents.push(e)}if(a._O){const e=["trackSingle",a.Hb.facebookInit,"PageView"];(0,a.fF)("retarget: [Facebook]",e),window.fbq(...e)}if(a.n_&&((0,a.fF)("retarget: [Bing]"),window.uetq.push("pageLoad")),a.xb){const t=["config",a.Hb.wpcomGoogleAdsGtag,{page_path:e}];(0,a.fF)("retarget: [Google Ads] WPCom",t),window.gtag(...t)}(0,c.I)(e),a.eG&&((0,a.fF)("retarget: [Pinterest]"),window.pintrk("page")),a.nF&&((0,a.fF)("retarget: [AdRoll]"),window.adRoll.trackPageview());const t=Date.now()/1e3;if(t>=d+86400){if(d=t,a.GL){const e=["track","PAGE_VIEW"];(0,a.fF)("retarget: [Outbrain] [rate limited]",e),window.obApi(...e)}if(a.hR){const e=a.y2;(0,a.fF)("retarget: [Icon Media] [rate limited]",e),(new window.Image).src=e}if(a.Mf){const e=["track","PageView"];(0,a.fF)("retarget: [Twitter] [rate limited]",e),window.twq(...e)}if(a.CO){const e=a.EV;(0,a.fF)("retarget: [Yahoo Gemini] [rate limited]",e),(new window.Image).src=e}if(a.S$){const e=["track","ViewContent"];(0,a.fF)("retarget: [Quora] [rate limited]",e),window.qp(...e)}}(0,a.fF)("retarget: dataLayer:",JSON.stringify(window.dataLayer,null,2))}(e),(0,u.U)(),(0,x.V)()}),0)}},"./lib/analytics/queue.js":(e,t,s)=>{s.d(t,{x:()=>c,V:()=>l});var n=s("../node_modules/debug/src/browser.js");const o=s.n(n)()("calypso:analytics:queue"),i={signup:()=>s.e(82874).then(s.bind(s,"./lib/analytics/signup.js"))};function r(){if(!window.localStorage)return[];let e=window.localStorage.getItem("analyticsQueue");return e=e?JSON.parse(e):[],e=Array.isArray(e)?e:[],e}function a(e,t,...s){"string"==typeof t&&"function"==typeof i[e]&&i[e]().then((e=>{"function"==typeof e[t]&&e[t].apply(null,s||void 0)}))}function c(e,t,...s){if(!window.localStorage)return a(e,t,...s);let n=r();const i={moduleName:e,trigger:t,args:s};n.push(i),n=n.slice(-100),o("Adding new item to queue.",i),window.localStorage.setItem("analyticsQueue",JSON.stringify(n))}function l(){if(!window.localStorage)return;const e=r();window.localStorage&&window.localStorage.removeItem("analyticsQueue"),o("Processing items in queue.",e),e.forEach((e=>{"object"==typeof e&&"string"==typeof e.trigger&&(o("Processing item in queue.",e),a(e.moduleName,e.trigger,...e.args))}))}},"./lib/analytics/super-props.js":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("../packages/calypso-config/src/index.ts");const o=/\/(:site|:site_id|:siteid|:blogid|:blog_id|:siteslug)(\/|$|\?)/i;var i=s("./state/current-user/selectors.js"),r=s("./state/ui/selectors/get-selected-site.js");const a=e=>t=>{const s=e.getState(),a={environment:"production",environment_id:(0,n.ZP)("env_id"),site_count:(0,i.bo)(s)||0,site_id_label:"wpcom",client:(0,n.ZP)("client_slug")};var c;const l=!(c=t.path)||!o.test(c)?null:(0,r.Z)(s);return l&&Object.assign(a,{blog_id:l.ID,blog_lang:l.lang,site_id_label:l.jetpack?"jetpack":"wpcom",site_plan_id:l.plan?l.plan.product_id:null}),a}},"./lib/analytics/tracks.js":(e,t,s)=>{s.r(t),s.d(t,{tracksEvents:()=>i,recordTracksEvent:()=>r,recordTracksPageView:()=>a,setTracksOptOut:()=>c});var n=s("../node_modules/events/events.js"),o=s("../packages/calypso-analytics/src/index.ts");const i=new n.EventEmitter;function r(e,t){o.MR.once("record-event",((e,t)=>{i.emit("record-event",e,t)})),(0,o.jN)(e,t)}function a(e,t){(0,o.P6)(e,t)}function c(e){(0,o.lH)(["setOptOut",e])}},"./lib/analytics/utils/is-ad-tracking-allowed.js":(e,t,s)=>{s.d(t,{Z:()=>l});var n=s("../packages/calypso-analytics/src/index.ts"),o=s("../packages/calypso-config/src/index.ts"),i=s("./lib/analytics/utils/debug.js"),r=s("./lib/analytics/utils/is-pii-url.js");const a=["/log-in"];var c=s("./lib/analytics/utils/may-we-track-current-user-gdpr.ts");function l(){const e=o.ZP.isEnabled("ad-tracking")&&!(0,n.vX)()&&!function(){const{href:e}=document.location,t=a.some((t=>-1!==e.indexOf(t)));return(0,i.Z)(`Is URL Excluded for Performance: ${t}`),t}()&&!(0,r.Z)()&&(0,c.Z)();return(0,i.Z)(`isAdTrackingAllowed: ${e}`),e}},"./lib/analytics/utils/marketing-coupons-key.js":(e,t,s)=>{s.d(t,{Z:()=>n});const n="marketing-coupons"},"./lib/analytics/utils/refresh-country-code-cookie-gdpr.js":(e,t,s)=>{s.d(t,{Z:()=>r});var n=s("../node_modules/cookie/index.js"),o=s("./lib/analytics/utils/debug.js");let i=null;async function r(){const e=n.parse(document.cookie);e.country_code?(0,o.Z)("refreshCountryCodeCookieGdpr: country_code cookie is fresh: %s",e.country_code):(null===i&&(i=function(){const e=(new Date).getTime();return fetch("https://webcf.waybackmachine.org/web/20220607150355/https://public-api.wordpress.com/geo/?v="+e).then((e=>e.ok?e.json():e.body().then((e=>{throw new Error(e)})))).then((e=>e.country_short)).catch((e=>((0,o.Z)("refreshCountryCodeCookieGdpr: error: ",e),"unknown")))}().then((e=>function(e){const t=21600;document.cookie=n.serialize("country_code",e,{path:"/",maxAge:t}),(0,o.Z)("refreshCountryCodeCookieGdpr: country_code cookie set to %s",e)}(e)))),await i,i=null)}},"./lib/domains/utils/is-domain-connect-authorize-path.js":(e,t,s)=>{function n(e){return e&&"string"==typeof e&&e.startsWith("/domain-connect/authorize/")}s.d(t,{x:()=>n})},"./lib/formatting/decode-entities.ts":(e,t,s)=>{s.d(t,{S:()=>o});const n=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea");function o(e){return"string"!=typeof e||-1===e.indexOf("&")?e:function(e){n.innerHTML=e;const t=n.textContent;return n.innerHTML="",t}(e)}},"./lib/formatting/prevent-widows.js":(e,t,s)=>{s.d(t,{R:()=>o});var n=s("../node_modules/react/index.js");function o(e,t=2){return r("string"==typeof e?e.trim():e,Math.max(1,t-1)).part}const i=/\s+(\S*)$/;function r(e,t){let s=0;if("string"==typeof e&&e.length>0){let n=e,o="";for(;s<t&&i.test(n);){o=" "+i.exec(n)[1]+o,n=n.replace(i,""),s++}return o=n+o,{part:o,substituted:s}}if(Array.isArray(e)&&e.length>0){let n=[],o=e.length-1;for(;s<t&&o>=0;){const i=r(e[o],t-s);n.unshift(i.part),s+=i.substituted,o--}return n=e.slice(0,o+1).concat(n),{part:n,substituted:s}}if((0,n.isValidElement)(e)&&e.props.children){const o=r(e.props.children,t);if(o.substituted>0){const t=Array.isArray(o.part)?o.part:[o.part];return{part:(0,n.cloneElement)(e,e.props,...t),substituted:o.substituted}}return{part:e,substituted:s}}return{part:e,substituted:s}}},"./lib/i18n-utils/empathy-mode.js":(e,t,s)=>{s.d(t,{Fs:()=>c,V0:()=>l,uI:()=>d});var n=s("../packages/i18n-calypso/src/index.js"),o=s("../packages/i18n-calypso/src/i18n.js");let i=(0,n.Iu)("I don't understand");n.ZP.on("change",(()=>{i=(0,n.Iu)("I don't understand")}));let r=!1,a=!1;function c(e){r="boolean"==typeof e?e:!r,!a&&r&&d(),n.ZP.reRenderTranslations()}function l(){return r}function d(){const e=new o.Z,t=e.translate.bind(e),s=e.registerTranslateHook.bind(e),c=[i];n.ZP.translateHooks.forEach(s),n.ZP.registerTranslateHook(((e,s)=>{const o=n.ZP.getLocaleSlug();return!r||o===n.ZP.defaultLocaleSlug||c.includes(s.original)?e:n.ZP.hasTranslation(s)?t(s):"👉 "+function(e,t=i){let s=t;for(;s.length<e.length;)s+=" "+t;return s.substr(0,e.length)}(s.original)})),a=!0,r=!0}},"./lib/jetpack/is-jetpack-cloud.ts":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("../packages/calypso-config/src/index.ts");const o=["jetpack-cloud-development","jetpack-cloud-stage","jetpack-cloud-horizon","jetpack-cloud-production"],i=()=>o.includes((0,n.ZP)("env_id"))},"./lib/load-dev-helpers/index.js":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("../packages/calypso-config/src/index.ts");function o(e){if(n.ZP.isEnabled("dev/auth-helper")){const e=document.querySelector(".environment.is-auth");e&&s.e(20632).then(s.bind(s,"./lib/auth-helper/index.jsx")).then((function(t){(0,t.default)(e)}))}if(e&&n.ZP.isEnabled("dev/preferences-helper")){const t=document.querySelector(".environment.is-prefs");t&&Promise.all([s.e(84473),s.e(90415),s.e(42497)]).then(s.bind(s,"./lib/preferences-helper/index.js")).then((function(s){(0,s.default)(t,e)}))}if(n.ZP.isEnabled("dev/features-helper")){const e=document.querySelector(".environment.is-features");e&&s.e(18537).then(s.bind(s,"./lib/features-helper/index.js")).then((function(t){(0,t.default)(e)}))}if(n.ZP.isEnabled("dev/react-query-devtools")){const e=document.querySelector(".environment.is-react-query-devtools");e&&s.e(64705).then(s.bind(s,"./lib/react-query-devtools-helper/index.jsx")).then((function(t){(0,t.default)(e)}))}}},"./lib/mobile-app/index.js":(e,t,s)=>{function n(){return"undefined"!=typeof navigator&&(navigator.userAgent&&/wp-(android|iphone)/.test(navigator.userAgent))}function o(){return"undefined"!=typeof navigator&&(navigator.userAgent&&/wc-(android|ios)/.test(navigator.userAgent))}s.d(t,{H:()=>n,T:()=>o})},"./lib/oauth2-clients.js":(e,t,s)=>{s.d(t,{Si:()=>n,O7:()=>o,Ro:()=>i,dS:()=>r,CQ:()=>a});const n=e=>973===e?.id,o=e=>978===e?.id,i=e=>1854===e?.id,r=e=>e&&[50019,50915,50916].includes(e.id),a=e=>e&&[68663,69040,69041].includes(e.id)},"./lib/paths/index.js":(e,t,s)=>{s.d(t,{x4:()=>i,$p:()=>a,fb:()=>u,Nf:()=>d});var n=s("../packages/i18n-utils/src/utils.ts"),o=s("./lib/url/add-query-args.ts");function i({isJetpack:e,isGutenboarding:t,isWhiteLogin:s,locale:i,redirectTo:r,twoFactorAuthType:a,socialConnect:c,emailAddress:l,socialService:d,oauth2ClientId:u,wccomFrom:p,site:m,useMagicLink:h,from:g,allowSiteConnection:f,signupUrl:y,useQRCode:w}={}){let b="/log-in";return d?b+="/"+d+"/callback":a&&e?b+="/jetpack/"+a:a&&(t||s)?b+="/new/"+a:a?b+="/"+a:c?b+="/social-connect":e?b+="/jetpack":t||s?b+="/new":h?b+="/link":w&&(b+="/qr"),i&&"en"!==i&&(b=(0,n.s6)(b,i)),m&&(b=(0,o.Z)({site:m},b)),r&&(b=r.includes("jetpack-sso")?r:(0,o.Z)({redirect_to:r},b)),l&&(b=(0,o.Z)({email_address:l},b)),u&&!isNaN(u)&&(b=(0,o.Z)({client_id:u},b)),p&&(b=(0,o.Z)({"wccom-from":p},b)),g&&(b=(0,o.Z)({from:g},b)),y&&(b=(0,o.Z)({signup_url:y},b)),f&&(b=(0,o.Z)({allow_site_connection:"1"},b)),b}var r=s("../packages/i18n-utils/src/localize-url.tsx");function a({locale:e}={}){return(0,r.aq)("https://webcf.waybackmachine.org/web/20220607150355/https://wordpress.com/wp-login.php?action=lostpassword",e)}var c=s("../packages/calypso-config/src/index.ts"),l=s("./lib/jetpack/is-jetpack-cloud.ts");function d(){return(0,l.Z)()?(0,c.ZP)("jetpack_connect_url"):(0,c.ZP)("signup_url")}function u(e){const t=function(e){return e?"/"+("object"==typeof e?e.slug:e):""}(e);return"/post"+t}},"./lib/url/add-query-args.ts":(e,t,s)=>{s.d(t,{Z:()=>r});var n=s("../packages/calypso-url/src/url-type.ts"),o=s("../packages/calypso-url/src/format.ts"),i=s("../node_modules/lodash-es/pickBy.js");function r(e,t){if("object"!=typeof e)throw new Error("addQueryArgs expects the first argument to be an object.");if("string"!=typeof t)throw new Error("addQueryArgs expects the second argument to be a string.");const s=(0,n.D)(t);if(s===n.a.INVALID)throw new Error("addQueryArgs expects the second argument to be a valid URL.");e=(0,i.Z)(e,(e=>null!=e));const r=new URL(t,"http://__domain__.invalid"),a=new URLSearchParams(r.search);for(const t of Object.keys(e))a.set(t,String(e[t]));if(s===n.a.PATH_RELATIVE){let e=a.toString();return""!==e&&(e=`?${e}`),""!==r.search?t.replace(r.search,e):r.hash?t.replace(r.hash,`${e}${r.hash}`):`${t}${e}`}return r.search=a.toString(),(0,o.Z)(r,s)}},"./lib/url/http-utils.ts":(e,t,s)=>{s.d(t,{ce:()=>o,nq:()=>i,Wj:()=>r});const n=/^https?:\/\//;function o(e){return""===e?"":e?e.replace(n,""):null}function i(e){return e?o(e).replace(/\//g,"::"):null}function r(e){return o(e).replace(/\/$/,"")}},"./lib/user/shared-utils/filter-user-object.js":(e,t,s)=>{s.d(t,{v:()=>c});var n=s("./lib/formatting/decode-entities.ts"),o=s("./lib/url/http-utils.ts");const i=["ID","display_name","username","avatar_URL","site_count","jetpack_site_count","visible_site_count","jetpack_visible_site_count","date","has_unseen_notes","newest_note_type","phone_account","email","email_verified","is_valid_google_apps_country","user_ip_country_code","logout_URL","primary_blog","primary_blog_is_jetpack","primary_blog_url","meta","is_new_reader","social_login_connections","abtests","lasagna_jwt","i18n_empathy_mode","use_fallback_for_incomplete_languages"],r=["ID"],a=["display_name","description","user_URL"];function c(e){if("object"!=typeof e)throw new Error("the /me response is not an object");for(const t of r)if(!e.hasOwnProperty(t))throw new Error(`the /me response misses a required field '${t}'`);const t={};for(const s of i){const o=e[s];t[s]=o&&a.includes(s)?(0,n.S)(o):o}return Object.assign(t,function(e){const t=e.primary_blog_url||"";return{primarySiteSlug:(s=t,(0,o.ce)(s).replace(/\//g,"::")),localeSlug:e.language,localeVariant:e.locale_variant};var s}(e))}},"./lib/user/shared-utils/initialize-current-user.js":(e,t,s)=>{s.d(t,{k:()=>a});var n=s("../packages/calypso-config/src/index.ts"),o=s("./lib/user/support-user-interop.js"),i=s("./lib/user/shared-utils/filter-user-object.js"),r=s("./lib/user/shared-utils/raw-current-user-fetch.js");async function a(){let e,t=!1;if((0,o.isSupportUserSession)()&&((0,o.supportUserBoot)(),t=!0),(0,o.isSupportNextSession)()&&(0,o.supportNextBoot)(),!t&&n.ZP.isEnabled("wpcom-user-bootstrap"))return!!window.currentUser&&window.currentUser;try{e=await(0,r.G)()}catch(e){"authorization_required"!==e.error&&console.error("Failed to fetch the user from /me endpoint:",e)}return!!e&&(0,i.v)(e)}},"./lib/user/shared-utils/raw-current-user-fetch.js":(e,t,s)=>{s.d(t,{G:()=>o});var n=s("./lib/wp/browser.js");function o(){return n.Z.me().get({meta:"flags"})}},"./lib/user/support-user-interop.js":(e,t,s)=>{s.r(t),s.d(t,{isSupportNextSession:()=>v,isSupportSession:()=>k,isSupportUserSession:()=>j,rebootNormally:()=>x,setSupportSessionReduxStore:()=>w,supportNextBoot:()=>P,supportUserBoot:()=>S});var n=s("../node_modules/debug/src/browser.js"),o=s.n(n),i=s("./lib/browser-storage/index.ts");const r=o()("calypso:support-user"),a=e=>t=>(r("Bypassing localStorage","key"),t>=Object.keys(e).length?null:Object.keys(e)[t]),c=(e,t,s)=>(n,o)=>{s&&t.indexOf(n)>-1?s(n,o):(r("Bypassing localStorage","setItem",n),e[n]=o)},l=(e,t,s)=>n=>s&&t.indexOf(n)>-1?s(n):(r("Bypassing localStorage","getItem",n),e[n]||null),d=(e,t,s)=>n=>{s&&t.indexOf(n)>-1?s(n):(r("Bypassing localStorage","removeItem",n),delete e[n])},u=e=>()=>{r("Bypassing localStorage","clear");for(const t in e)delete e[t]};function p({root:e=("undefined"==typeof window?void 0:window),allowedKeys:t=[]}={}){let s,n,o;r("Bypassing localStorage"),e&&e.localStorage&&e.Storage&&e.Storage.prototype&&(s=e.Storage.prototype.setItem.bind(e.localStorage),n=e.Storage.prototype.getItem.bind(e.localStorage),o=e.Storage.prototype.removeItem.bind(e.localStorage));const i={},p=(e=>()=>(r("Bypassing localStorage","length property"),Object.keys(e).length))(i),m={setItem:c(i,t,s),getItem:l(i,t,n),removeItem:d(i,t,o),key:a(i),clear:u(i)};try{Object.defineProperty(e,"localStorage",{value:m,enumerable:!0,configurable:!0}),Object.defineProperty(e.localStorage,"length",{get:p})}catch(t){Object.assign(e.localStorage,m)}}var m=s("./lib/wp/browser.js");const h=o()("calypso:support-user"),g="boot_support_user";let f=()=>{};const y=new Promise((e=>{f=t=>e(t)})),w=f,b=()=>{try{return JSON.parse(window.sessionStorage.getItem(g))}catch(e){return{}}},_=(()=>{const e=b();return e&&e.user&&e.token})(),j=()=>_,v=()=>!("undefined"==typeof window||!window.isSupportSession),k=()=>j()||v();let Z;const x=()=>{h("Rebooting Calypso normally"),window.sessionStorage.removeItem(g),window.removeEventListener("beforeunload",Z),window.location.search=""},E=e=>{h("Deactivating support user and rebooting due to token error",e.message),x()};async function S(){const{user:e,token:t}=b();h("Booting Calypso with support user",e),window.sessionStorage.removeItem(g),Z=((e,t)=>()=>{e&&t&&window.sessionStorage.setItem(g,JSON.stringify({user:e,token:t}))})(e,t),window.addEventListener("beforeunload",Z),(0,i.bv)(!0);p([g,"debug"]),m.Z.setSupportUserToken(e,t,E);const{supportSessionActivate:n}=await s.e(45289).then(s.bind(s,"./state/support/actions.js"));(await y).dispatch(n())}async function P(){(0,i.bv)(!0);p(["debug"]);const{supportSessionActivate:e}=await s.e(45289).then(s.bind(s,"./state/support/actions.js"));(await y).dispatch(e())}},"./state/action-watchers/utils.js":(e,t,s)=>{s.d(t,{A:()=>i});var n=s("../node_modules/lodash-es/mergeWith.js");const o=(e,t)=>Array.isArray(e)?e.concat(t):void 0,i=(...e)=>e.length>1?(0,n.Z)(Object.create(null),...e,o):e[0]},"./state/analytics/actions/bump-stat.js":(e,t,s)=>{s.d(t,{P:()=>o});var n=s("./state/action-types.ts");function o(e,t){return{type:n.lAo,meta:{analytics:[{type:n.lAo,payload:{group:e,name:t}}]}}}},"./state/analytics/actions/record.js":(e,t,s)=>{s.d(t,{yt:()=>i,jN:()=>r,Bn:()=>a,l8:()=>c,AR:()=>l});var n=s("./state/action-types.ts");const o=(e,t)=>({type:n.u2u,meta:{analytics:[{type:n.u2u,payload:Object.assign({},{service:e},t)}]}}),i=(e,t,s,n)=>o("ga",{category:e,action:t,label:s,value:n}),r=(e,t)=>o("tracks",{name:e,properties:t}),a=(e,t)=>o("fb",{name:e,properties:t}),c=e=>o("adwords",{properties:e}),l=(e,t,s,o={},i={})=>({type:n.Wj3,meta:{analytics:[{type:n.Wj3,payload:{service:s,url:e,title:t,options:i,...o}}]}})},"./state/analytics/middleware.js":(e,t,s)=>{s.d(t,{i:()=>m,Z:()=>h});var n=s("./lib/analytics/ad-tracking/constants.js");s("./lib/analytics/ad-tracking/setup.js");var o=s("./lib/analytics/ga.js"),i=s("./lib/analytics/hotjar.js"),r=s("./lib/analytics/mc.js"),a=s("./lib/analytics/page-view.js"),c=s("./lib/analytics/tracks.js"),l=s("./state/action-types.ts");const d={ga:({category:e,action:t,label:s,value:n})=>(0,o.Yh)(e,t,s,n),tracks:({name:e,properties:t})=>(0,c.recordTracksEvent)(e,t),fb:({name:e,properties:t})=>function(e,t){window.fbq&&window.fbq("trackSingleCustom",n.Hb.facebookInit,e,t)}(e,t),adwords:({properties:e})=>function(e){(0,n.fF)("trackCustomAdWordsRemarketingEvent:",e)}(e)},u={ga:({url:e,title:t})=>(0,o.eK)(e,t),default:({url:e,title:t,options:s,...n})=>(0,a.A)(e,t,n,s)},p=e=>{e.meta.analytics.forEach((({type:e,payload:t})=>{const{service:s="default",...n}=t;switch(e){case l.u2u:return d[s]?.(n);case l.Wj3:return u[s]?.(n);case l.lAo:return(({group:e,name:t})=>(0,r.P)(e,t))(n)}}))},m=()=>e=>t=>{switch(t.type){case l.K5f:return void("HotJar"===t.trackingTool&&(0,i.o)());case l.ti2:return void(0,c.setTracksOptOut)(t.isOptingOut);default:t.meta?.analytics&&p(t)}return e(t)},h=m},"./state/current-user/actions.js":(e,t,s)=>{s.d(t,{lx:()=>l,k:()=>u,S9:()=>p,nW:()=>m});var n=s("./lib/user/shared-utils/raw-current-user-fetch.js"),o=s("./lib/user/shared-utils/filter-user-object.js"),i=s("./lib/user/shared-utils/get-logout-url.js"),r=s("./lib/user/store.js"),a=s("./state/action-types.ts"),c=s("./state/current-user/selectors.js");function l(e){return{type:a.uBM,user:e}}let d=null;function u(){return e=>d||(e({type:a.Vh6}),d=(0,n.G)().then((async t=>{const s=(0,o.v)(t),n=(0,r.An)();null!=n&&n!==s.ID&&await(0,r.YF)(),(0,r.od)(s.ID),e(l(s))})).catch((()=>{})).finally((()=>{d=null})),d)}function p(e){return async(t,s)=>{const n=(0,c.ts)(s()),o=(0,i.K)(n,e);(0,r.Or)(),await(0,r.YF)(),window.location.href=o}}function m(e){return{type:a.KAg,verified:e}}},"./state/current-user/reducer.js":(e,t,s)=>{s.d(t,{ZP:()=>u});var n=s("./state/action-types.ts"),o=s("./state/utils/schema-utils.js"),i=s("./state/utils/reducer-utils.ts");const r=(0,i.U)({status:(e=null,t)=>{switch(t.type){case n.G1W:return"requesting";case n.YPU:return"sent";case n.dAl:return"error";case n.iHL:return null}return e},errorMessage:(e="",t)=>{switch(t.type){case n.G1W:case n.YPU:return"";case n.dAl:{const{message:e}=t;return e}case n.iHL:return""}return e}}),a=(0,o.G)({type:["integer","null"],minimum:0},((e=null,t)=>t.type===n.uBM?t.user.ID:e)),c=(0,o.G)({type:"array"},((e=[],t)=>t.type===n.uBM?t.user.meta?.data?.flags?.active_flags??[]:e));const l=(0,o.G)({type:"object",additionalProperties:!1,patternProperties:{"^\\d+$":{type:"object",properties:{edit_pages:{type:"boolean"},edit_posts:{type:"boolean"},edit_others_posts:{type:"boolean"},edit_others_pages:{type:"boolean"},delete_posts:{type:"boolean"},delete_others_posts:{type:"boolean"},edit_theme_options:{type:"boolean"},edit_users:{type:"boolean"},list_users:{type:"boolean"},manage_categories:{type:"boolean"},manage_options:{type:"boolean"},promote_users:{type:"boolean"},publish_posts:{type:"boolean"},upload_files:{type:"boolean"},delete_users:{type:"boolean"},remove_users:{type:"boolean"},view_stats:{type:"boolean"}}}}},((e={},t)=>{switch(t.type){case n.UUJ:case n.xLe:return(t.site?[t.site]:t.sites).reduce(((t,s)=>(!s.capabilities||function(e,t){if(!e||!t)return!1;const s=Object.keys(e),n=Object.keys(t);return s.length===n.length&&s.every((s=>t[s]===e[s]))}(s.capabilities,t[s.ID])||(t===e&&(t={...e}),t[s.ID]=s.capabilities),t)),e)}return e})),d=(0,o.G)({type:["string","null"]},((e=null,t)=>t.type===n.uBM?t.user.lasagna_jwt||null:e)),u=(0,i.U)({id:a,user:(e=null,t)=>{switch(t.type){case n.uBM:return t.user;case n.KAg:return{...e,email_verified:t.verified}}return e},capabilities:l,flags:c,emailVerification:r,lasagnaJwt:d})},"./state/current-user/selectors.js":(e,t,s)=>{function n(e){return e.currentUser?.id}function o(e){return null!==n(e)}function i(e){return e?.currentUser?.user??null}s.d(t,{rc:()=>n,Pc:()=>o,ts:()=>i,Mg:()=>a,Yv:()=>c,bo:()=>l,f0:()=>d,DI:()=>u,q4:()=>p,vz:()=>m,s_:()=>h,A4:()=>g,Y:()=>f,eq:()=>y,DV:()=>w});const r=(e,t=null)=>s=>i(s)?.[e]??t,a=r("localeSlug"),c=r("user_ip_country_code");function l(e){const t=i(e);return t?t.site_count||0:null}function d(e){const t=i(e);return t?t.visible_site_count||0:null}const u=r("date"),p=r("username"),m=r("email"),h=r("display_name");function g(e,t){return-1!==e.currentUser.flags.indexOf(t)}const f=r("email_verified",!1);function y(e){return e.currentUser.lasagnaJwt}const w=r("bootstrapped",!1)},"./state/data-layer/handler-registry.js":(e,t,s)=>{s.d(t,{Z9:()=>r,rU:()=>a});var n=s("./state/action-watchers/utils.js");let o={};const i=new Set,r=(e,t)=>{i.has(e)||(i.add(e),o=(0,n.A)(o,t))},a=e=>o[e]},"./state/data-layer/utils.js":(e,t,s)=>{s.d(t,{aF:()=>d,yJ:()=>p});var n=s("../packages/state-utils/src/index.ts"),o=s("../node_modules/lodash-es/map.js"),i=s("../node_modules/lodash-es/isPlainObject.js"),r=s("../node_modules/lodash-es/reduce.js"),a=s("../node_modules/lodash-es/set.js"),c=s("../node_modules/lodash-es/camelCase.js");const l={meta:{dataLayer:{doBypass:!0}}},d=e=>(0,n.zc)(e,l);function u(e,t){return Array.isArray(e)?(0,o.Z)(e,(e=>u(e,t))):(0,i.Z)(e)?(0,r.Z)(e,((e,s,n)=>{const o=t(n),i=u(s,t);return(0,a.Z)(e,[o],i)}),{}):e}const p=e=>u(e,c.default)},"./state/data-layer/wpcom-api-middleware.js":(e,t,s)=>{s.d(t,{Z:()=>L});var n=s("./state/data-layer/handler-registry.js"),o=s("./state/data-layer/utils.js"),i=s("../packages/state-utils/src/index.ts"),r=s("../node_modules/debug/src/browser.js"),a=s.n(r),c=s("../node_modules/lodash-es/get.js"),l=s("../node_modules/lodash-es/compact.js"),d=s("./lib/wp/browser.js"),u=s("./state/action-types.ts"),p=s("../node_modules/lodash-es/pick.js"),m=s("../node_modules/lodash-es/isEqual.js"),h=s("../node_modules/lodash-es/sortBy.js");const g=a()("calypso:data-layer:remove-duplicate-gets"),f=new Map,y=e=>"GET"===(0,c.Z)(e,"method","").toUpperCase(),w=(e=[],t=[])=>[...e,...t.filter((t=>-1===e.findIndex((e=>(0,m.Z)(t,e)))))],b=({path:e,apiNamespace:t,apiVersion:s,query:n={}})=>JSON.stringify([e,t,s,(0,h.Z)(Object.entries(n),(e=>e[0]))]);var _=s("../node_modules/lodash-es/merge.js"),j=s("../node_modules/lodash-es/random.js");const v=(e,t)=>{const s=Math.round(e*Math.pow(2,t-1)/2),n=s+(0,j.Z)(0,s);return(0,j.Z)(e,3*n)};var k=s("./state/data-layer/wpcom-http/pipeline/retry-on-failure/policies.js");const Z=[((e=v)=>t=>{const{nextError:s,originalRequest:n,store:{dispatch:o}}=t;if(!s)return t;if(i=n,"GET"!==(0,c.Z)(i,"method","").toUpperCase())return t;var i;const{options:{retryPolicy:r=k.ZP}={}}=n,{delay:a,maxAttempts:l,name:d}=r,u=(0,c.Z)(n,"meta.dataLayer.retryCount",0)+1;return"NO_RETRY"===d||u>l?t:(setTimeout((()=>o((0,_.Z)(n,{meta:{dataLayer:{retryCount:u}}}))),e(a,u)),{...t,shouldAbort:!0})})(),e=>{const{originalRequest:t}=e;if(!y(t))return e;const s=b(t),n=f.get(s);if(!n)return g("applyDuplicatesHandler has entered an impossible state! A HTTP request is exiting the http pipeline without having entered it. There must be a bug somewhere"),e;f.delete(s);const o={failures:w(e.failures||[],n.failures),successes:w(e.successes||[],n.successes)};return{...e,...o}}],x=(e,t)=>!0!==e.shouldAbort?t(e):e,E=(e,t)=>null!==e.nextRequest?t(e):e,S=(P=Z,(e,t,s,n,o)=>(0,p.Z)(P.reduce(x,{originalRequest:e,store:t,originalData:s,originalError:n,originalHeaders:o,nextData:s,nextError:n,nextHeaders:o,failures:(0,l.Z)([e.onFailure]),successes:(0,l.Z)([e.onSuccess])}),["failures","nextData","nextError","nextHeaders","successes","shouldAbort"]));var P;const T=(e=>(t,s)=>e.reduce(E,{originalRequest:t,store:s,nextRequest:t}).nextRequest)([e=>{const{nextRequest:t}=e;if(!y(t))return e;if((0,c.Z)(t,"meta.dataLayer.retryCount",0)>0)return e;const s=b(t),n=f.get(s),o=(r=t,{failures:w((i=n||{failures:[],successes:[]}).failures,(0,l.Z)([r.onFailure])),successes:w(i.successes,(0,l.Z)([r.onSuccess]))});var i,r;return f.set(s,o),n?{...e,nextRequest:null}:e}]),A=a()("calypso:data-layer:wpcom-http"),R={[u.koV]:[((e,t)=>({dispatch:s},n)=>{const o=e(n,s);if(null===o)return;const{body:r,formData:a,onStreamRecord:u,method:p,onProgress:m,options:h,path:g,query:f={}}=o,{responseType:y}=h||{},w=(0,c.Z)(h,"options.fetcher","wpcom"),b=u&&(e=>s((0,i.zc)(u,{meta:{dataLayer:{streamRecord:e}}}))),_=p.toUpperCase(),j=function(e,t="wpcom"){const s="wpcomJetpackLicensing"===t?d.g.req:d.Z.req;return(0,c.Z)({GET:s.get.bind(s),POST:s.post.bind(s)},e,null)}(_,w)(...(0,l.Z)([{path:g,formData:a,onStreamRecord:b,responseType:y},{...f},"POST"===_&&r,(e,n,r)=>{A("callback fn by Req method: error=%o data=%o headers=%o",e,n,r);const{failures:a,nextData:c,nextError:l,nextHeaders:d,shouldAbort:u,successes:p}=t(o,{dispatch:s},n,e,r);return!0===u?null:l?a.forEach((e=>s((0,i.zc)(e,((e,t)=>({meta:{dataLayer:{error:e,headers:t}}}))(l,d))))):p.forEach((e=>s((0,i.zc)(e,((e,t)=>({meta:{dataLayer:{data:e,headers:t}}}))(c,d)))))}]));"POST"===_&&m&&j.upload&&(j.upload.onprogress=e=>s((0,i.zc)(m,(({total:e,loaded:t})=>({meta:{dataLayer:{progress:{total:e,loaded:t}}}}))(e))))})(T,S)]};(0,n.Z9)("WordPress API request loader",R);const L=(C=n.rU,e=>t=>s=>{const n=C(s.type);if(!n)return t(s);const i=s.meta;if(i){const e=i.dataLayer;if(e&&!0===e.doBypass)return t(s)}n.forEach((t=>t(e,s))),(e=>{const t=e.meta;if(!t)return!0;const s=t.dataLayer;return!s||!(s.data||s.error||s.headers||s.progress)})(s)&&t((0,o.aF)(s))});var C},"./state/data-layer/wpcom-http/actions.js":(e,t,s)=>{s.d(t,{d:()=>o});var n=s("./state/action-types.ts");const o=({apiVersion:e,apiNamespace:t,body:s,method:o,path:i,query:r={},formData:a,onSuccess:c,onFailure:l,onProgress:d,onStreamRecord:u,...p},m=null)=>{const h=t?{apiNamespace:t}:{apiVersion:e};return{type:n.koV,body:s,method:o,path:i,query:{...r,...h},formData:a,onSuccess:c||m,onFailure:l||m,onProgress:d||m,onStreamRecord:u||m,options:p}}},"./state/data-layer/wpcom-http/pipeline/retry-on-failure/policies.js":(e,t,s)=>{s.d(t,{iD:()=>n,ZP:()=>o});const n=()=>({name:"NO_RETRY"}),o=(({delay:e=1e3,maxAttempts:t=3}={})=>({name:"EXPONENTIAL_BACKOFF",delay:Math.max(500,e),maxAttempts:Math.min(5,t)}))()},"./state/data-layer/wpcom-http/utils.js":(e,t,s)=>{s.d(t,{wU:()=>m,NG:()=>g,I6:()=>f,BN:()=>y});var n=s("../node_modules/@wordpress/warning/build-module/index.js"),o=s("../node_modules/fast-json-stable-stringify/index.js"),i=s.n(o),r=s("../node_modules/lodash-es/get.js"),a=s("../node_modules/lodash-es/merge.js"),c=s("./state/utils/keyed-reducer.ts");const l=()=>{},d=e=>e,u=e=>(0,r.Z)(e,"meta.dataLayer.data",void 0),p=e=>(0,r.Z)(e,"meta.dataLayer.error",void 0),m=e=>(0,r.Z)(e,"meta.dataLayer.headers",void 0),h=e=>(0,r.Z)(e,"meta.dataLayer.progress",void 0),g=e=>{const{meta:t,...s}=e,n=(0,r.Z)(t,"dataLayer.requestKey");return n||i()(s)},f=(0,c.J)("meta.dataLayer.requestKey",((e=null,{meta:{dataLayer:{lastUpdated:t,pendingSince:s,status:n}={}}={}})=>void 0===n?e:Object.assign({...e},{status:n},t&&{lastUpdated:t},s&&{pendingSince:s}))),y=(w=e=>(t,s)=>{if(!0!==(0,r.Z)(s,"meta.dataLayer.trackRequest")||h(s))return e(t,s);const n=g(s),o=(e=>void 0!==p(e)?"failure":void 0!==u(e)?"success":"pending")(s),i=Object.assign({requestKey:n,status:o},"pending"===o?{pendingSince:Date.now()}:{lastUpdated:Date.now()});e({...t,dispatch:e=>t.dispatch((0,a.Z)(e,{meta:{dataLayer:i}}))},s)},e=>(e.fetch||(0,n.Z)("fetch handler is not defined: no request will ever be issued"),e.onSuccess||(0,n.Z)("onSuccess handler is not defined: response to the request is being ignored"),e.onError||(0,n.Z)("onError handler is not defined: error during the request is being ignored"),w(((t,s)=>{const n=function(e,t){const{fetch:s=l,onSuccess:n=l,onError:o=l,onProgress:i=l,onStreamRecord:a=l,fromApi:c=d}=e,m=p(t);if(m)return o(t,m);const g=u(t);if(g)try{return n(t,c(g))}catch(e){return o(t,e)}const f=h(t);if(f)return i(t,f);const y=(e=>(0,r.Z)(e,"meta.dataLayer.streamRecord",void 0))(t);return y?a(t,y):s(t)}(e,s);if(n)return Array.isArray(n)?n.map(t.dispatch):t.dispatch(n)}))));var w},"./state/document-head/actions.js":(e,t,s)=>{s.d(t,{SQ:()=>o,ge:()=>i,F_:()=>r,uW:()=>a});var n=s("./state/action-types.ts");s("./state/document-head/init.js");function o(e){return{type:n.Cft,title:e}}function i(e){return{type:n.zxC,count:e}}function r(e){return{type:n.s_H,link:e}}function a(e){return{type:n.$LK,meta:e}}},"./state/document-head/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),o=s("../packages/calypso-config/src/index.ts"),i=s("../packages/state-utils/src/index.ts"),r=s("../node_modules/lodash-es/isEqual.js"),a=s("./state/action-types.ts"),c=s("./state/utils/schema-utils.js"),l=s("./state/utils/reducer-utils.ts");const d=(0,o.ZP)("meta"),u=(0,c.G)({type:"string"},((e="",t)=>t.type===a.Cft?t.title:e)),p=(0,c.G)({type:"number"},((e=0,t)=>{switch(t.type){case a.zxC:return t.count;case a.RSp:return 0}return e})),m=(0,c.G)({type:"array",items:{type:"object",properties:{name:{type:"string"},property:{type:"string"},content:{type:"string"}}}},((e=d,t)=>t.type===a.$LK?t.meta:e)),h=(0,c.G)({type:"array",items:{type:"object",properties:{href:{type:"string"},rel:{type:"string"}}}},((e=[],t)=>{if(t.type===a.s_H){if(!t.link)return e;return(Array.isArray(t.link)?t.link:[t.link]).reduce(((e,t)=>!e.some((e=>(0,r.Z)(e,t)))?[...e,t]:e),e)}return e})),g=(0,l.U)({link:h,meta:m,title:u,unreadCount:p}),f=(0,i.xi)("documentHead",g);(0,n.x)(["documentHead"],f)},"./state/document-head/selectors/get-document-head-capped-unread-count.js":(e,t,s)=>{s.d(t,{y:()=>n});s("./state/document-head/init.js");function n(e){const t=function(e){return e.documentHead.unreadCount}(e);return t?t<=40?String(t):"40+":""}},"./state/document-head/selectors/get-document-head-title.js":(e,t,s)=>{s.d(t,{p:()=>n});s("./state/document-head/init.js");function n(e){return e.documentHead.title}},"./state/gravatar-status/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),o=s("./state/action-types.ts");const i=(0,s("./state/utils/reducer-utils.ts").U)({isUploading:(e=!1,t)=>{switch(t.type){case o.x6w:return!0;case o.FSM:case o.z6l:return!1}return e},tempImage:(e=null,t)=>t.type===o.GDG?t.src:e});(0,n.x)(["gravatarStatus"],i)},"./state/gravatar-status/selectors.js":(e,t,s)=>{s.d(t,{F:()=>o,$:()=>i});var n=s("./state/current-user/selectors.js");s("./state/gravatar-status/init.js");function o(e){return e.gravatarStatus.isUploading}function i(e,t){return(0,n.rc)(e)===t&&(e.gravatarStatus.tempImage??!1)}},"./state/immediate-login/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("./state/action-types.ts");const r={attempt:!1,success:!1,reason:null,email:null,locale:null},a=(0,o.xi)("immediateLogin",((e=r,t)=>{if(t.type===i.Mt0){const{success:e,reason:s,email:n,locale:o}=t;return{attempt:!0,success:!!e,reason:s||null,email:n||null,locale:o||null}}return e}));(0,n.x)(["immediateLogin"],a)},"./state/immediate-login/selectors.js":(e,t,s)=>{s.d(t,{Yh:()=>a,j4:()=>c,xX:()=>r,iv:()=>l});var n=s("../node_modules/lodash-es/get.js"),o=s("../node_modules/lodash-es/includes.js");const i=["auto-renew-failed","bd_card-expiring","bd_missing-payment","bd_renewal-failure","bd_autorenew-disabled","expired-domain-notice","plan-expired","renew-domain-expiration-notice","upcoming_expiry_notification"];s("./state/immediate-login/init.js");const r=e=>(0,n.Z)(e,"immediateLogin.attempt",!1),a=e=>(0,n.Z)(e,"immediateLogin.email",null),c=e=>(0,n.Z)(e,"immediateLogin.locale",null),l=e=>(0,o.Z)(i,(e=>(0,n.Z)(e,"immediateLogin.reason",null))(e))},"./state/initial-state.js":(e,t,s)=>{s.d(t,{yq:()=>m,w_:()=>h,Eq:()=>y,oY:()=>b,aY:()=>_,eC:()=>v});s("../packages/calypso-config/src/index.ts");var n=s("../node_modules/debug/src/browser.js"),o=s.n(n),i=s("../node_modules/lodash-es/throttle.js"),r=s("../node_modules/lodash-es/map.js"),a=s("../node_modules/lodash-es/pick.js"),c=s("./lib/user/support-user-interop.js"),l=s("./state/action-types.ts"),d=s("./state/utils/serialize.ts"),u=s("./state/persisted-state.js");const p=o()("calypso:state"),m=5e3,h=6048e5,g=Date.now();function f(e,t){const{_timestamp:s,...n}=t;return(0,d.v)(e,n)}function y(){return!(0,c.isSupportSession)()}function w(e,t){return"redux-state-"+(e??"logged-out")+(t?":"+t:"")}function b(e,t){if(!y())return()=>{};let s=null;const n=(0,i.default)((function(){const n=e.getState();if(n===s)return;s=n;const o=(0,d.q)(e.getCurrentReducer(),n),i=Date.now(),a=w(t),c=(0,r.Z)(o.get(),((e,t)=>async function(e,t,s,n){"root"!==t&&(e+=":"+t);const o={...s,_timestamp:n};await(0,u.cD)(e,o)}(a,t,e,i)));Promise.all(c).catch((e=>p("failed to set redux-store state",e)))}),m,{leading:!1,trailing:!0});"undefined"!=typeof window&&window.addEventListener("beforeunload",n.flush);const o=e.subscribe(n);return()=>{"undefined"!=typeof window&&window.removeEventListener("beforeunload",n.flush),o(),n.cancel()}}function _(e,t){const s=function(e,t){if(!y())return null;0;let s=j(e,void 0,t);const n=[...e.getStorageKeys()];function o({storageKey:n,reducer:o}){const i=j(o,n,t);i&&(s=e(s,{type:l.gm2,storageKey:n,storedState:i}))}for(const e of n)o(e);return s}(e,t),n=function(e){if("object"!=typeof window||!window.initialReduxState||(0,c.isSupportSession)())return null;const t=f(e,window.initialReduxState);return(0,a.Z)(t,Object.keys(window.initialReduxState))}(e);return{...s,...n}}function j(e,t,s){const n=w(s,t);return k(t,(0,u._v)(n),e,!1)}const v=e=>(t,s)=>{let n=null;s&&"undefined"!=typeof window&&(n=window.initialReduxState?.[s]??null);let o=(0,u._v)(w(e,s));o||"signup"!==s||(o=(0,u._v)(w(null,s)),o&&o.progress&&o.progress.user&&delete o.progress.user,p("fetched signup state from logged out state",o));let i=null!==n;return o?._timestamp&&o._timestamp>g&&(i=!1),k(s,i?n:o,t,i)};function k(e,t,s,n=!1){const o=n?"server":"persisted";try{if(null===t)return p(`Redux state for subkey '${e}' not found in ${o} data`),null;const i=n?g+h>Date.now():function(e){return e._timestamp&&e._timestamp+h>Date.now()}(t);if(!i)return p(`${o} Redux state is too old, dropping`),null;const r=f(s,t);return r||(p(`${o} Redux state failed to deserialize, dropping`),null)}catch(e){return p(`error while loading ${o} Redux state:`,e),null}}},"./state/notices/actions.ts":(e,t,s)=>{s.d(t,{qq:()=>i,iI:()=>r,RT:()=>a,tF:()=>c,hS:()=>l,PU:()=>d,fI:()=>u});var n=s("../node_modules/uuid/dist/esm-browser/v4.js"),o=s("./state/action-types.ts");s("./state/notices/init.js");const i=e=>({noticeId:e,type:o.czl}),r=(e,t,{id:s,...i}={})=>({type:o.zvG,notice:Object.assign({showDismiss:!0},i,{noticeId:s||(0,n.Z)(),status:e,text:t})}),a=(e,t)=>r("is-success",e,t),c=(e,t)=>r("is-error",e,t),l=(e,t)=>r("is-info",e,t),d=(e,t)=>r("is-warning",e,t),u=(e,t)=>r("is-plain",e,t)},"./state/notices/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("../node_modules/lodash-es/omit.js"),r=s("../node_modules/lodash-es/reduce.js"),a=s("./state/action-types.ts");const c=(0,s("./state/utils/reducer-utils.ts").U)({items:(e={},t)=>{switch(t.type){case a.zvG:{const{notice:s}=t;return{...e,[s.noticeId]:s}}case a.czl:{const{noticeId:s}=t;return e.hasOwnProperty(s)?(0,i.Z)(e,s):e}case a.RSp:return(0,r.Z)(e,((e,t,s)=>{if(!t.isPersistent&&!t.displayOnNextPage)return e;let n=t;return n.displayOnNextPage&&(n={...n,displayOnNextPage:!1}),e[s]=n,e}),{})}return e},lastTimeShown:(e={},t)=>{if(t.type===a.zvG){const{notice:s}=t;return{...e,[s.noticeId]:Date.now()}}return e}}),l=(0,o.xi)("notices",c);(0,n.x)(["notices"],l)},"./state/oauth2-clients/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("./state/action-types.ts"),r=s("./state/utils/reducer-utils.ts"),a=s("../node_modules/lodash-es/startsWith.js");const c=(0,r.U)({currentClientId:(e=null,t)=>{if(t.type===i.RSp){const{path:s,query:n}=t;return(0,a.Z)(s,"/log-in")?n.client_id?Number(n.client_id):e:((0,a.Z)(s,"/start/wpcc")||(0,a.Z)(s,"/start/crowdsignal"))&&n.oauth2_client_id?Number(n.oauth2_client_id):e}return e}}),l={930:{id:930,name:"vaultpress",title:"Vaultpress",icon:"https://webcf.waybackmachine.org/web/20220607150355/https://vaultpress.com/images/vaultpress-wpcc-nav-2x.png"},973:{id:973,name:"akismet",title:"Akismet",icon:"https://webcf.waybackmachine.org/web/20220607150355/https://akismet.com/img/akismet-wpcc-logo-2x.png"},978:{id:978,name:"crowdsignal",title:"Crowdsignal",icon:"https://webcf.waybackmachine.org/web/20220607150355/https://app.crowdsignal.com/images/logo-white.png"},1854:{id:1854,name:"gravatar",title:"Gravatar",icon:"https://webcf.waybackmachine.org/web/20220607150355/https://gravatar.com/images/grav-logo-2x.png"},50019:{id:50019,name:"woo",title:"WooCommerce",icon:"https://webcf.waybackmachine.org/web/20220607150355/https://woocommerce.com/wp-content/themes/woo/images/logo-woocommerce@2x.png"},50915:{id:50915,name:"woo",title:"WooCommerce",icon:"https://webcf.waybackmachine.org/web/20220607150355/https://woocommerce.com/wp-content/themes/woo/images/logo-woocommerce@2x.png"},50916:{id:50916,name:"woo",title:"WooCommerce.com",icon:"https://webcf.waybackmachine.org/web/20220607150355/https://woocommerce.com/wp-content/themes/woo/images/logo-woocommerce@2x.png"},68663:{id:68663,name:"jetpack-cloud",title:"Jetpack Cloud"},69040:{id:69040,name:"jetpack-cloud",title:"Jetpack Cloud"},69041:{id:69041,name:"jetpack-cloud",title:"Jetpack Cloud"}};const d=(0,r.U)({clients:function(e=l,t){return t.type===i.l6x?{...e,[t.data.id]:{...e[t.data.id],...t.data}}:e},ui:c}),u=(0,o.xi)("oauth2Clients",d);(0,n.x)(["oauth2Clients"],u)},"./state/oauth2-clients/ui/selectors.js":(e,t,s)=>{s.d(t,{op:()=>o,HK:()=>n,rM:()=>i});s("./state/oauth2-clients/init.js");function n(e){return e.oauth2Clients?.ui.currentClientId}const o=e=>{const t=n(e);return t?((e,t)=>e.oauth2Clients.clients[t]??null)(e,t):null},i=e=>!!n(e)},"./state/persisted-state.js":(e,t,s)=>{s.d(t,{Gr:()=>c,_v:()=>l,cD:()=>d});var n=s("../node_modules/debug/src/browser.js"),o=s.n(n),i=s("./lib/browser-storage/index.ts");const r=o()("calypso:state");let a={};async function c(){try{const e=await(0,i.vo)(/^(redux-state|query-state)-/);r("fetched persisted state from storage",e),a=e??{}}catch(e){r("error while loading persisted state:",e)}}function l(e){return a[e]??null}async function d(e,t){await(0,i.EV)(e,t),a[e]=t}},"./state/route/actions.js":(e,t,s)=>{s.d(t,{p:()=>o,Y:()=>i});var n=s("./state/action-types.ts");s("./state/ui/init.js");function o(e,t={}){return{type:n.RSp,path:e,query:t}}function i(){return{type:n.mQe}}},"./state/route/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("./state/action-types.ts"),r=s("./state/utils/reducer-utils.ts"),a=s("./state/utils/schema-utils.js");const c=/^\/(block-editor|page[^s]|post[^s])/,l=(e="",t)=>{const{path:s,type:n}=t;switch(n){case i.RSp:return s&&!c.test(s)?s:e;case i.mQe:return"";default:return e}},d={type:"string"},u={initial:"",current:"",previous:""},p=(e=u,t)=>t.type===i.RSp?{initial:""===e.initial?t.path:e.initial,current:t.path,previous:e.current}:e,m={initial:!1,current:!1,previous:!1},h=(e=m,t)=>t.type===i.RSp?{initial:!1===e.initial?t.query:e.initial,current:t.query,previous:e.current}:e;const g=(0,r.U)({lastNonEditorRoute:(0,a.G)(d,l),path:p,query:h,timestamp:function(e=null,t){return t.type===i.RSp?Date.now():e}}),f=(0,o.xi)("route",g);(0,n.x)(["route"],f)},"./state/selectors/get-current-locale-slug.js":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("../node_modules/lodash-es/get.js");s("./state/ui/init.js");function o(e){return(0,n.Z)(e,"ui.language.localeSlug",null)}},"./state/selectors/get-current-route.js":(e,t,s)=>{s.d(t,{r:()=>o,Z:()=>i});var n=s("../node_modules/lodash-es/get.js");s("./state/route/init.js");const o=e=>(0,n.Z)(e,"route.path.current",null),i=o},"./state/selectors/get-initial-query-arguments.js":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("../node_modules/lodash-es/get.js");s("./state/route/init.js");const o=e=>(0,n.Z)(e,"route.query.initial",null)},"./state/selectors/get-raw-site.ts":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("./state/selectors/get-sites-items.ts");function o(e,t){return(0,n.Z)(e)[t]||null}},"./state/selectors/get-sites-items.ts":(e,t,s)=>{s.d(t,{Z:()=>o});const n=Object.freeze({});function o(e){return e.sites.items||n}},"./state/sites/selectors/can-jetpack-site-update-files.js":(e,t,s)=>{s.d(t,{Z:()=>r});var n=s("./state/sites/selectors/get-site-option.js"),o=s("./state/sites/selectors/is-jetpack-site.js"),i=s("./state/sites/selectors/is-jetpack-site-secondary-network-site.js");function r(e,t){if(!(0,o.Z)(e,t))return null;if((0,n.Z)(e,t,"is_multi_network"))return!1;if((0,i.Z)(e,t))return!1;const s=(0,n.Z)(e,t,"file_mod_disabled");return!s||!s.includes("disallow_file_mods")&&!s.includes("has_no_file_system_write_access")}},"./state/sites/selectors/get-site-by-slug.js":(e,t,s)=>{s.d(t,{Z:()=>r});var n=s("../packages/state-utils/src/index.ts"),o=s("./state/selectors/get-sites-items.ts"),i=s("./state/sites/selectors/get-site-slug.js");const r=(0,n.P1)(((e,t)=>Object.values((0,o.Z)(e)).find((s=>(0,i.Z)(e,s.ID)===t))??null),(e=>[(0,o.Z)(e)]))},"./state/sites/selectors/get-site-domain.js":(e,t,s)=>{s.d(t,{Z:()=>c});var n=s("./lib/url/http-utils.ts"),o=s("./state/selectors/get-raw-site.ts"),i=s("./state/sites/selectors/get-site-option.js"),r=s("./state/sites/selectors/get-site-slug.js"),a=s("./state/sites/selectors/is-site-conflicting.js");function c(e,t){if((0,i.Z)(e,t,"is_redirect")||(0,a.Z)(e,t))return(0,r.Z)(e,t);const s=(0,o.Z)(e,t);return s?(0,n.ce)(s.URL):null}},"./state/sites/selectors/get-site-option.js":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("./state/sites/selectors/get-site-options.js");function o(e,t,s){return(0,n.Z)(e,t)?.[s]??null}},"./state/sites/selectors/get-site-options.js":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("./state/selectors/get-raw-site.ts");const o=Object.freeze({}),i=(e,t)=>{const s=(0,n.Z)(e,t);return s?s.options||o:null}},"./state/sites/selectors/get-site-slug.js":(e,t,s)=>{s.d(t,{Z:()=>d});var n=s("../packages/state-utils/src/index.ts"),o=s("./lib/url/http-utils.ts"),i=s("./state/selectors/get-raw-site.ts"),r=s("./state/selectors/get-sites-items.ts"),a=s("./state/sites/selectors/get-site-option.js"),c=s("./state/sites/selectors/get-site-options.js"),l=s("./state/sites/selectors/is-site-conflicting.js");const d=(0,n.P1)(((e,t)=>{const s=(0,i.Z)(e,t);return s?(0,a.Z)(e,t,"is_redirect")||(0,l.Z)(e,t)?(0,o.ce)((0,a.Z)(e,t,"unmapped_url")):(0,o.nq)(s.URL):null}),((e,t)=>[(0,r.Z)(e),(0,c.Z)(e,t)]))},"./state/sites/selectors/get-site-title.js":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("./state/selectors/get-raw-site.ts"),o=s("./state/sites/selectors/get-site-domain.js");function i(e,t){const s=(0,n.Z)(e,t);return s?s.name?s.name.trim():(0,o.Z)(e,t):null}},"./state/sites/selectors/get-site.js":(e,t,s)=>{s.d(t,{Z:()=>_});var n=s("./state/selectors/get-raw-site.ts"),o=s("./state/sites/selectors/can-jetpack-site-update-files.js"),i=s("./state/sites/selectors/get-site-option.js"),r=s("./state/sites/selectors/is-jetpack-site.js");function a(e,t){if(!(0,r.Z)(e,t))return null;if(!(0,o.Z)(e,t))return!1;const s=(0,i.Z)(e,t,"file_mod_disabled");return!s||!s.includes("automatic_updater_disabled")}var c=s("./state/sites/selectors/is-jetpack-site-main-network-site.js"),l=s("./state/sites/selectors/is-jetpack-site-secondary-network-site.js");function d(e,t){return(0,r.Z)(e,t)?{canAutoupdateFiles:a(e,t),canUpdateFiles:(0,o.Z)(e,t),isMainNetworkSite:(0,c.Z)(e,t),isSecondaryNetworkSite:(0,l.Z)(e,t)}:{}}var u=s("./state/sites/selectors/get-site-by-slug.js"),p=s("./lib/url/http-utils.ts"),m=s("./state/sites/selectors/get-site-domain.js"),h=s("./state/sites/selectors/get-site-options.js"),g=s("./state/sites/selectors/get-site-slug.js"),f=s("./state/sites/selectors/get-site-title.js"),y=s("./state/sites/selectors/is-site-conflicting.js");function w(e,t){if(!(0,n.Z)(e,t))return null;const s={domain:(0,m.Z)(e,t),options:(0,h.Z)(e,t),slug:(0,g.Z)(e,t),title:(0,f.Z)(e,t)};return(0,i.Z)(e,t,"is_mapped_domain")&&!(0,r.Z)(e,t)&&(s.wpcom_url=(0,p.ce)((0,i.Z)(e,t,"unmapped_url"))),(0,y.Z)(e,t)&&(s.URL=(0,i.Z)(e,t,"unmapped_url")),s}let b=new WeakMap;function _(e,t){const s=(0,n.Z)(e,t)||(0,u.Z)(e,t);if(!s)return null;const o=b.get(s);if(o)return o;const i={...s,...w(e,s.ID),...d(e,s.ID)};return b.set(s,i),i}_.clearCache=()=>{b=new WeakMap}},"./state/sites/selectors/is-jetpack-site-main-network-site.js":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("./lib/url/http-utils.ts"),o=s("./state/selectors/get-raw-site.ts"),i=s("./state/sites/selectors/get-site-option.js"),r=s("./state/sites/selectors/is-jetpack-site.js");function a(e,t){const s=(0,o.Z)(e,t);if(!s||!(0,r.Z)(e,t))return null;if(!s.is_multisite)return!1;const a=(0,i.Z)(e,t,"unmapped_url"),c=(0,i.Z)(e,t,"main_network_site");return!(!a||!c)&&(0,n.ce)(a)===(0,n.ce)(c)}},"./state/sites/selectors/is-jetpack-site-secondary-network-site.js":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("./lib/url/http-utils.ts"),o=s("./state/selectors/get-raw-site.ts"),i=s("./state/sites/selectors/get-site-option.js"),r=s("./state/sites/selectors/is-jetpack-site.js");function a(e,t){const s=(0,o.Z)(e,t);if(!s||!(0,r.Z)(e,t))return null;if(!s.is_multisite)return!1;const a=(0,i.Z)(e,t,"unmapped_url"),c=(0,i.Z)(e,t,"main_network_site");return!(!a||!c)&&(0,n.ce)(a)!==(0,n.ce)(c)}},"./state/sites/selectors/is-jetpack-site.js":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("./state/selectors/get-raw-site.ts");function o(e,t){const s=(0,n.Z)(e,t);return s?s.jetpack:null}},"./state/sites/selectors/is-site-conflicting.js":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("../packages/state-utils/src/index.ts"),o=s("./lib/url/http-utils.ts"),i=s("./state/selectors/get-sites-items.ts");const r=(0,n.P1)((e=>{const t=Object.values((0,i.Z)(e));return t.filter((e=>{const s=(0,o.ce)(e.URL);return!e.jetpack&&t.some((e=>e.jetpack&&s===(0,o.ce)(e.URL)))})).map((e=>e.ID))}),i.Z);function a(e,t){return r(e).includes(t)}},"./state/themes/action-types.js":(e,t,s)=>{s.d(t,{PG:()=>n,S_:()=>o,a5:()=>i,rZ:()=>r,a:()=>a,gI:()=>c,kc:()=>l,Qe:()=>d,q8:()=>u,hX:()=>p,w_:()=>m,Nf:()=>h,uG:()=>g,AT:()=>f,KC:()=>y,_R:()=>w,UT:()=>b,AH:()=>_,Ie:()=>j,ho:()=>v,Fp:()=>k,pS:()=>Z,Si:()=>x,Yg:()=>E,MC:()=>S,rF:()=>P,KU:()=>T,Iz:()=>A,Mo:()=>R,v5:()=>L,aB:()=>C,A2:()=>I,LG:()=>N,Dw:()=>U,VD:()=>M,rV:()=>q,Mv:()=>O,O_:()=>H,PM:()=>F,QS:()=>D,Rb:()=>G,R2:()=>B,Fg:()=>V,In:()=>z,K6:()=>W,$i:()=>$,_F:()=>J,t1:()=>K});const n="ACTIVE_THEME_REQUEST",o="ACTIVE_THEME_REQUEST_FAILURE",i="ACTIVE_THEME_REQUEST_SUCCESS",r="RECOMMENDED_THEMES_FAIL",a="RECOMMENDED_THEMES_FETCH",c="RECOMMENDED_THEMES_SUCCESS",l="THEME_ACCEPT_AUTO_LOADING_HOMEPAGE_WARNING",d="THEME_ACTIVATE",u="THEME_ACTIVATE_FAILURE",p="THEME_ACTIVATE_SUCCESS",m="THEMES_UPDATE",h="THEMES_UPDATE_FAILURE",g="THEMES_UPDATE_SUCCESS",f="THEME_BACK_PATH_SET",y="THEME_CLEAR_ACTIVATED",w="THEME_DELETE",b="THEME_DELETE_FAILURE",_="THEME_DELETE_SUCCESS",j="THEME_FILTERS_ADD",v="THEME_FILTERS_REQUEST",k="THEME_HIDE_AUTO_LOADING_HOMEPAGE_WARNING",Z="THEME_INSTALL",x="THEME_INSTALL_FAILURE",E="THEME_INSTALL_SUCCESS",S="THEME_PREVIEW_OPTIONS",P="THEME_PREVIEW_STATE",T="THEME_REQUEST",A="THEME_REQUEST_FAILURE",R="THEME_REQUEST_SUCCESS",L="THEME_SHOW_AUTO_LOADING_HOMEPAGE_WARNING",C="THEME_TRANSFER_INITIATE_FAILURE",I="THEME_TRANSFER_INITIATE_PROGRESS",N="THEME_TRANSFER_INITIATE_REQUEST",U="THEME_TRANSFER_INITIATE_SUCCESS",M="THEME_TRANSFER_STATUS_FAILURE",q="THEME_TRANSFER_STATUS_RECEIVE",O="THEME_UPLOAD_CLEAR",H="THEME_UPLOAD_FAILURE",F="THEME_UPLOAD_PROGRESS",D="THEME_UPLOAD_START",G="THEME_UPLOAD_SUCCESS",B="THEMES_BOOKMARK_SET",V="THEMES_REQUEST",z="THEMES_REQUEST_FAILURE",W="THEMES_REQUEST_SUCCESS",$="TRENDING_THEMES_FAIL",J="TRENDING_THEMES_FETCH",K="TRENDING_THEMES_SUCCESS"},"./state/ui/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),o=s("../packages/state-utils/src/index.ts"),i=s("./state/action-types.ts"),r=s("./state/utils/schema-utils.js"),a=s("./state/utils/reducer-utils.ts"),c=s("../node_modules/lodash-es/get.js"),l=s("./state/themes/action-types.js");const d=["calypso_themeshowcase_theme_click"],u={GUIDED_TOUR_UPDATE:i.H6A,THEMES_REQUEST_SUCCESS:l.K6,ROUTE_SET:i.RSp,SITE_SETTINGS_RECEIVE:i.KBY},p=(m=[e=>u.hasOwnProperty(e.type)&&("function"!=typeof u[e.type]||u[e.type](e)),e=>(0,c.Z)(e,"meta.analytics",[]).some((e=>d.includes(e.payload.name)))],e=>m.some((t=>t(e))));var m;const h=(0,r.G)({type:"string"},((e="",t)=>t.type!==i.IK5||t.isLoading||!t.section?.name||["checkout","checkout-pending","checkout-thank-you","plans"].includes(t.section.name)?e:["plugins","themes","hosting"].includes(t.section.name)?t.section.name:"")),g=(0,a.U)({upgradeIntent:h});const f={localeSlug:(0,s("../packages/calypso-config/src/index.ts").ZP)("i18n_default_locale_slug"),localeVariant:null};const y={current:"content",next:null};const w=(0,a.U)({view:(e=null,t)=>t.type===i.WkZ?t.view:e}),b={postIdWithActiveSharePanel:null},_=(e=b,t)=>{switch(t.type){case i.KF6:return{...e,postIdWithActiveSharePanel:null};case i.WYe:return e.postIdWithActiveSharePanel===t.postGlobalId?{...e,postIdWithActiveSharePanel:null}:{...e,postIdWithActiveSharePanel:t.postGlobalId}}return e};const j=(0,a.U)({currentPreviewSiteId:function(e=null,t){return t.type===i.dGx?t.siteId??null:e},currentPreviewUrl:function(e=null,t){switch(t.type){case i.dGx:return t.url;case i.kLL:return null}return e}});const v=(0,r.G)({type:["number","null"]},((e=null,t)=>t.type===i.bgv?t.siteId||null:e)),k=(0,r.G)({type:"boolean"},((e=!1,t)=>t.type===i.bgv||e));const Z=(0,a.U)({actionLog:(e=[],t)=>p(t)?((e,t)=>t?[...e,t].slice(-50):e)(e,(e=>({...e,timestamp:Date.now()}))(t)):e,appBannerVisibility:(e=!0,{type:t,isVisible:s})=>t===i.Fux?s:e,appBannerDismissed:(e=null,{type:t})=>t===i.JYg||e,helpCenterVisible:(e=null,{type:t,value:s})=>t===i.xm0?s:e,checkout:g,isSectionLoading:function(e=!1,t){return t.type===i.Nq?t.isSectionLoading:e},isNotificationsOpen:function(e=!1,{type:t}){return t===i.hxz?!e:e},language:function(e=f,t){return t.type===i.JqF?{localeSlug:t.localeSlug,localeVariant:t.localeVariant}:e},layoutFocus:function(e=y,t){switch(t.type){case i.kUt:return t.area===e.current?e:Object.assign({},e,{current:t.area});case i.vO0:return t.area===e.next?e:Object.assign({},e,{next:t.area});case i.XTm:{let t=e.next;return t||"content"===e.current||(t="content"),t?Object.assign({},e,{current:t,next:null}):e}}return e},masterbarVisibility:(e=!0,{type:t,isVisible:s})=>t===i.NnF?s:e,mediaModal:w,postTypeList:_,preview:j,section:function(e=!1,t){return t.type===i.IK5&&void 0!==t.section?t.section:e},selectedSiteId:v,siteSelectionInitialized:k}),x=(0,o.xi)("ui",Z);(0,n.x)(["ui"],x)},"./state/ui/language/actions.js":(e,t,s)=>{s.d(t,{i:()=>i});var n=s("./lib/i18n-utils/switch-locale.js"),o=s("./state/action-types.ts");s("./state/ui/init.js");const i=(e,t=null)=>((0,n.ZP)(t||e),{type:o.JqF,localeSlug:e,localeVariant:t})},"./state/ui/section/actions.js":(e,t,s)=>{s.d(t,{z:()=>o,t:()=>i});var n=s("./state/action-types.ts");s("./state/ui/init.js");function o(e,t={}){const s={...t,type:n.IK5};return e&&(s.section=e),s}function i(e){return{type:n.Nq,isSectionLoading:e}}},"./state/ui/selectors/get-section-group.js":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("../node_modules/lodash-es/get.js"),o=s("./state/ui/selectors/get-section.js");function i(e){return(0,n.Z)((0,o.Z)(e),"group",null)}},"./state/ui/selectors/get-section.js":(e,t,s)=>{s.d(t,{Z:()=>n});s("./state/ui/init.js");function n(e){return e.ui.section||!1}},"./state/ui/selectors/get-selected-site-id.js":(e,t,s)=>{s.d(t,{Z:()=>n});s("./state/ui/init.js");function n(e){return e.ui.selectedSiteId}},"./state/ui/selectors/get-selected-site.js":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("./state/sites/selectors/get-site.js"),o=s("./state/ui/selectors/get-selected-site-id.js");function i(e){const t=(0,o.Z)(e);return t?(0,n.Z)(e,t):null}},"./state/ui/selectors/masterbar-is-visible.js":(e,t,s)=>{s.d(t,{Z:()=>n});s("./state/ui/init.js");function n(e){return e.ui.masterbarVisibility}},"./state/utils/add-reducer-enhancer.js":(e,t,s)=>{s.d(t,{f:()=>n});const n=e=>(t,s)=>{const n=e(t,s);let o=t;return{...n,addReducer:function(e,t){o=o.addReducer(e,t),this.replaceReducer(o)},getCurrentReducer:function(){return o}}}},"./state/utils/keyed-reducer.ts":(e,t,s)=>{s.d(t,{J:()=>p});var n=s("../node_modules/lodash-es/get.js"),o=s("../node_modules/lodash-es/isEqual.js"),i=s("../node_modules/lodash-es/omit.js"),r=s("../node_modules/lodash-es/reduce.js"),a=s("../node_modules/lodash-es/omitBy.js"),c=s("../node_modules/lodash-es/mapValues.js"),l=s("./state/serialization-result.ts"),d=s("./state/utils/serialize.ts"),u=s("./state/utils/with-persistence.ts");const p=(e,t)=>{if("string"!=typeof e)throw new TypeError("Key name passed into `keyedReducer` must be a string but I detected a "+typeof e);if(!e.length)throw new TypeError("Key name passed into `keyedReducer` must have a non-zero length but I detected an empty string");if("function"!=typeof t)throw new TypeError("Reducer passed into `keyedReducer` must be a function but I detected a "+typeof t);const s=t(void 0,{type:"@@calypso/INIT"});return(0,u.$)(((r={},a)=>{const c=(0,n.Z)(a,e,void 0);if(null==c)return r;const l=r[c],d=t(l,a);return d===l?r:void 0===d||(0,o.Z)(d,s)?r.hasOwnProperty(c)?(0,i.Z)(r,c):r:{...r,[c]:d}}),{serialize:e=>(0,r.Z)(e,((e,n,i)=>{const r=(0,d.q)(t,n);return void 0===r||(0,o.Z)(r,s)||(e||(e=new l._),e.addRootResult(i,r)),e}),void 0),deserialize:e=>(0,a.Z)((0,c.Z)(e,(e=>(0,d.v)(t,e))),(e=>void 0===e||(0,o.Z)(e,s)))})}},"../packages/calypso-url/src/format.ts":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("../packages/calypso-url/src/url-type.ts");function o(e,t){let s,o;if(!(e instanceof URL)&&"string"!=typeof e)throw new Error("`url` should be a string or URL instance");if(e instanceof URL)s=e,o=n.a.ABSOLUTE;else{if(o=(0,n.D)(e),o===n.a.INVALID)throw new Error("Cannot format an invalid URL.");if(o===n.a.PATH_RELATIVE)throw new Error("Cannot format path-relative URLs.");s=new URL(e,"http://__domain__.invalid/")}switch(void 0===t&&(t=o),t){case n.a.PATH_RELATIVE:throw new Error("Cannot format into path-relative URLs.");case n.a.PATH_ABSOLUTE:return s.href.replace(s.origin,"");case n.a.SCHEME_RELATIVE:if(o===n.a.PATH_ABSOLUTE)throw new Error("Cannot format a path-absolute URL as a scheme-relative URL.");return s.href.replace(s.protocol,"");case n.a.ABSOLUTE:if(o!==n.a.ABSOLUTE)throw new Error("Cannot format a partial URL as an absolute URL.");return s.href;default:throw new Error(`Cannot format as \`${t}\` URL type.`)}}},"../packages/calypso-url/src/safe-image-url/index.ts":(e,t,s)=>{s.d(t,{F:()=>c});var n=s("../packages/photon/src/index.ts"),o=s("../packages/calypso-url/src/url-parts.ts");let i;i="object"==typeof globalThis.location?new RegExp(`^(/(?!/)|data:image/[^;]+;|blob:${globalThis.location.origin}/)`):/^(\/(?!\/)|data:image\/[^;]+;)/;const r=/^([-a-zA-Z0-9_]+\.)*(gravatar\.com|wordpress\.com|wp\.com|a8c\.com)$/,a=["w","h","resize","fit","s"];function c(e){if("string"!=typeof e)return null;if(e.length<1)return null;if(i.test(e))return e;const t=(0,o.A)(e);if(r.test(t.hostname))return t.protocol="https",(0,o.C)(t).toString();if(t.search&&(t.host||t.hostname||t.origin)){if(a.forEach((e=>t.searchParams.delete(e))),"0"===t.searchParams.get("authuser")&&t.searchParams.delete("authuser"),Array.from(t.searchParams).length)return null;t.search="",t?.protocol||(t.protocol="https"),e=(0,o.C)(t).toString()}return t.pathname.endsWith(".svg")?null:(0,n.Z)(e)}},"../packages/components/src/button/index.tsx":(e,t,s)=>{s.d(t,{Z:()=>l});var n=s("../node_modules/classnames/index.js"),o=s.n(n),i=s("../node_modules/react/index.js"),r=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const a=(e,t)=>{const s=e.plain?o()("button-plain",e.className):o()("button",e.className,{"is-compact":e.compact,"is-primary":e.primary,"is-scary":e.scary,"is-busy":e.busy,"is-borderless":e.borderless});if((e=>!!e.href)(e)){const n=(({type:e,borderless:t,busy:s,className:n,compact:o,primary:i,scary:r,plain:a,...c})=>c)(e),o=n.target?(n.rel||"").replace(/noopener|noreferrer/g,"")+" noopener noreferrer":n.rel;return(0,r.tZ)("a",{...n,rel:o,className:s,ref:t})}const n=(({type:e="button",borderless:t,busy:s,className:n,compact:o,primary:i,scary:r,plain:a,rel:c,href:l,target:d,...u})=>({...u,type:e}))(e);return(0,r.tZ)("button",{...n,className:s,ref:t})},c=(0,i.forwardRef)(a);c.defaultProps={type:"button"};const l=c},"../packages/components/src/card/index.tsx":(e,t,s)=>{s.d(t,{Z:()=>d});var n=s("../node_modules/classnames/index.js"),o=s.n(n),i=s("../node_modules/react/index.js"),r=s("../packages/components/src/gridicon/index.tsx"),a=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const c=({children:e,className:t,compact:s,displayAsLink:n,highlight:c,tagName:l="div",href:d,target:u,...p},m)=>{const h=o()("card",t,{"is-card-link":n||d,"is-clickable":p.onClick,"is-compact":s,"is-highlight":c},!!c&&"is-"+c);return d?(0,a.BX)("a",{...p,href:d,target:u,className:h,ref:m,children:[(0,a.tZ)(r.Z,{className:"card__link-indicator",icon:u?"external":"chevron-right"}),e]}):(0,i.createElement)(l,{...p,className:h,ref:m},n&&(0,a.tZ)(r.Z,{className:"card__link-indicator",icon:u?"external":"chevron-right"}),e)},l=(0,i.forwardRef)(c);l.displayName="Card";const d=(0,i.memo)(l)},"../packages/components/src/gravatar/index.tsx":(e,t,s)=>{s.d(t,{K:()=>p});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("../packages/calypso-url/src/url-type.ts"),i=s("../packages/calypso-url/src/url-parts.ts"),r=s("../packages/calypso-url/src/format.ts"),a=s("../packages/calypso-url/src/safe-image-url/index.ts"),c=s("../node_modules/classnames/index.js"),l=s.n(c),d=s("../node_modules/react/index.js"),u=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");class p extends d.Component{constructor(...e){super(...e),(0,n.Z)(this,"state",{failedToLoad:!1}),(0,n.Z)(this,"onError",(()=>this.setState({failedToLoad:!0})))}getResizedImageURL(e){const{imgSize:t}=this.props,s="https://webcf.waybackmachine.org/web/20220607150355/https://www.gravatar.com/avatar/0";e=e||s;const n=(0,o.D)(e);if(n===o.a.INVALID||n===o.a.PATH_RELATIVE)return s;const{search:a,origin:c,host:l,...d}=(0,i.A)(e);return/^([-a-zA-Z0-9_]+\.)*(gravatar.com)$/.test(d.hostname)?(d.searchParams.set("s",t?.toString()??"32"),d.searchParams.set("d","mm")):d.searchParams.set("resize",`${t},${t}`),d.protocol=d.protocol||"https:",d.hostname=d.hostname||"__domain__.invalid",(0,r.Z)((0,i.C)(d),n)}render(){const{alt:e,title:t,size:s,tempImage:n,user:o}=this.props;if(!o)return(0,u.tZ)("span",{className:"gravatar is-placeholder",style:{width:s,height:s}});if(this.state.failedToLoad&&!n)return(0,u.tZ)("span",{className:"gravatar is-missing"});const i=e||o.display_name||o.name,r=n||this.getResizedImageURL((0,a.F)(o.avatar_URL)),c=l()("gravatar",this.props.className);return(0,u.tZ)("img",{alt:i,title:t,className:c,src:r,width:s,height:s,onError:this.onError})}}(0,n.Z)(p,"defaultProps",{imgSize:96,size:32})},"../packages/components/src/popover/index.jsx":(e,t,s)=>{s.d(t,{Z:()=>k});var n=s("../node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("../node_modules/classnames/index.js"),i=s.n(o),r=s("../packages/i18n-calypso/src/rtl.js"),a=s("../node_modules/lodash-es/defer.js"),c=s("../node_modules/react/index.js"),l=s("../node_modules/react-dom/index.js"),d=s("../packages/components/src/root-child/index.tsx");function u(){const e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,e}const p={top:"bottom",bottom:"top",left:"right",right:"left"},m={top:"right",left:"top",bottom:"left",right:"bottom"};let h=null,g=0;function f(){return h||(h=u()),h}function y(){h=u()}function w(e,t,s){const n=f(),o=s.getBoundingClientRect(),i=t.clientHeight,r=t.clientWidth,a={top:o.top-i,bottom:n.height-o.bottom-i,left:o.left-r,right:n.width-o.right-r},c=e.split(/\s+/),[l]=c;let[,d]=c;const u=function(e,t){const s=[e,p[e],m[e],p[m[e]]];let n,o=-1/0;for(let i=0,r=s.length;i<r;i++){const r=s[i],a=t[r];if(a>0)return r;a>o&&(o=a,n=e)}return n}(l,a);return d!==u&&d!==p[u]||(d=null),function(e,t,s,n,o,i){const r=f(),a="top"===e||"bottom"===e,c=t?[a?`${e} ${t}`:`${t} ${e}`,e,a?`${e} ${p[t]}`:`${p[t]} ${e}`]:[e,a?`${e} ${m[e]}`:`${m[e]} ${e}`,a?`${e} ${p[m[e]]}`:`${p[m[e]]} ${e}`];let l,d=0;const u=o*i;for(let e=0,t=c.length;e<t;e++){const t=c[e],a=b(t,s,n),p=a.left+o,m=a.top+i,h=Math.min(a.top<r.top?m-r.top:r.bottom-a.top,i),g=Math.min(a.left<r.left?p-r.left:r.right-a.left,o)*h;if(g===u)return t;g>d&&(d=g,l=t)}return l}(u,d,t,s,r,i)||e}function b(e,t,s,n){const o=t.getBoundingClientRect();if(!o)throw new Error("could not get bounding client rect of Tip element");const i=o.width,r=o.height,a=s.getBoundingClientRect();if(!a)throw new Error("could not get bounding client rect of `target`");const c=a.width,l=a.height,d=function(e,t){const s=t.body||t.getElementsByTagName("body")[0],n=t.documentElement||s.parentNode,o=n.clientTop||s.clientTop||0,i=n.clientLeft||s.clientLeft||0,r=window.pageYOffset||n.scrollTop,a=window.pageXOffset||n.scrollLeft;return{top:e.top+r-o,left:e.left+a-i}}(a,document);if(!d)throw new Error("could not determine page offset of `target`");let u={};switch(e){case"top":u={top:d.top-r,left:n&&n.left?d.left+n.left:d.left+c/2-i/2};break;case"bottom":u={top:d.top+l,left:n&&n.left?d.left+n.left:d.left+c/2-i/2};break;case"right":u={top:d.top+l/2-r/2,left:d.left+c};break;case"left":u={top:d.top+l/2-r/2,left:d.left-i};break;case"top left":u={top:d.top-r,left:d.left+c/2-i+15};break;case"top right":u={top:d.top-r,left:d.left+c/2-15};break;case"bottom left":u={top:d.top+l,left:d.left+c/2-i+15};break;case"bottom right":u={top:d.top+l,left:d.left+c/2-15};break;case"left top":u={top:d.top+l/2-r,left:d.left-i};break;case"left bottom":u={top:d.top+l/2,left:d.left-i};break;case"right top":u={top:d.top+l/2-r,left:d.left+c};break;case"right bottom":u={top:d.top+l/2,left:d.left+c};break;default:throw new Error(`invalid position "${e}"`)}return u}var _=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const j=()=>{};class v extends c.Component{constructor(...e){super(...e),(0,n.Z)(this,"scheduledPositionUpdate",null),(0,n.Z)(this,"scheduledFocus",null),(0,n.Z)(this,"popoverNodeRef",(0,c.createRef)()),(0,n.Z)(this,"popoverInnerNodeRef",(0,c.createRef)()),(0,n.Z)(this,"state",{left:-99999,top:-99999,positionClass:this.getPositionClass(this.props.position)}),(0,n.Z)(this,"onKeydown",(e=>{if(27===e.keyCode){const e=l.findDOMNode(this.props.context);e&&e.focus(),this.close(!0)}})),(0,n.Z)(this,"getTouchEvent",(()=>"onpointerdown"in document?"pointerdown":"ontouchstart"in document?"touchstart":"click")),(0,n.Z)(this,"onClickout",(e=>{const t=this.popoverInnerNodeRef.current;let s=t&&!t.contains(e.target);if(s&&this.props.context){const t=l.findDOMNode(this.props.context);s=t&&!t.contains(e.target)}if(s&&this.props.ignoreContext){const t=l.findDOMNode(this.props.ignoreContext);s=t&&!t.contains(e.target)}s&&this.close()})),(0,n.Z)(this,"onWindowChange",(()=>{this.setPosition()})),(0,n.Z)(this,"setPosition",(()=>{let e;e=this.props.customPosition?Object.assign({positionClass:this.getPositionClass(this.constructor.defaultProps.position)},this.props.customPosition):this.computePosition(),e&&this.setState(e)})),(0,n.Z)(this,"handleOnMouseEnter",(()=>{const{onMouseEnter:e}=this.props;e?.()})),(0,n.Z)(this,"handleOnMouseLeave",(()=>{const{onMouseLeave:e}=this.props;e?.()}))}componentDidMount(){this.bindListeners(),this.setPosition(),this.show()}componentDidUpdate(){null==this.scheduledPositionUpdate&&(this.scheduledPositionUpdate=(0,a.Z)((()=>{this.setPosition(),this.scheduledPositionUpdate=null})))}componentWillUnmount(){this.unbindListeners()}bindListeners(){this.bindClickoutHandler(),this.bindEscKeyListener(),this.bindReposition(),g++>0||(window.addEventListener("resize",y,!0),window.addEventListener("scroll",y,!0))}unbindListeners(){this.unbindClickoutHandler(),this.unbindEscKeyListener(),this.unbindReposition(),--g>0||(window.removeEventListener("resize",y,!0),window.removeEventListener("scroll",y,!0)),null!=this.scheduledPositionUpdate&&(window.clearTimeout(this.scheduledPositionUpdate),this.scheduledPositionUpdate=null),null!=this.scheduledFocus&&(window.clearTimeout(this.scheduledFocus),this.scheduledFocus=null)}bindEscKeyListener(){this.props.closeOnEsc&&document.addEventListener("keydown",this.onKeydown,!0)}unbindEscKeyListener(){this.props.closeOnEsc&&document.removeEventListener("keydown",this.onKeydown,!0)}bindClickoutHandler(){document.addEventListener(this.getTouchEvent(),this.onClickout,!0)}unbindClickoutHandler(){document.removeEventListener(this.getTouchEvent(),this.onClickout,!0)}bindReposition(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}unbindReposition(){window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0)}focusPopover(){this.scheduledFocus=(0,a.Z)((()=>{this.popoverNodeRef.current&&this.popoverNodeRef.current.focus(),this.scheduledFocus=null}))}getPositionClass(e){return`is-${e.replace(/\s+/g,"-")}`}adjustRtlPosition(e){if(this.props.isRtl)switch(e){case"top right":case"right top":return"top left";case"right":return"left";case"bottom right":case"right bottom":return"bottom left";case"bottom left":case"left bottom":return"bottom right";case"left":return"right";case"top left":case"left top":return"top right"}return e}computePosition(){const{position:e,relativePosition:t}=this.props,s=this.popoverInnerNodeRef.current,n=l.findDOMNode(this.props.context);if(!n)return null;let o=e;this.props.autoRtl&&(o=this.adjustRtlPosition(o)),this.props.autoPosition&&(o=w(o,s,n));return Object.assign({},function(e,t){const s=f(),n=t.getBoundingClientRect().width;return e.left=Math.max(0,Math.min(e.left,s.width-n)),e}(b(o,s,n,t),s),{positionClass:this.getPositionClass(o)})}getStylePosition(){const{left:e,top:t}=this.state;return{left:e,top:t}}show(){this.props.focusOnShow&&this.focusPopover(),this.props.onShow()}close(e=!1){this.props.onClose(e)}render(){if(!this.props.context)return null;const e=i()("popover",this.props.className,this.state.positionClass);return(0,_.BX)("div",{ref:this.popoverNodeRef,"aria-label":this.props["aria-label"],id:this.props.id,role:"tooltip",tabIndex:"-1",style:this.getStylePosition(),className:e,onMouseEnter:this.handleOnMouseEnter,onMouseLeave:this.handleOnMouseLeave,children:[(0,_.tZ)("div",{className:"popover__arrow"}),(0,_.tZ)("div",{ref:this.popoverInnerNodeRef,className:"popover__inner",children:this.props.children})]})}}(0,n.Z)(v,"defaultProps",{autoPosition:!0,autoRtl:!0,className:"",closeOnEsc:!0,isRtl:!1,focusOnShow:!0,position:"top",onShow:j,onClose:j,onMouseEnter:j,onMouseLeave:j});const k=function({isVisible:e=!1,showDelay:t=0,...s}){const n=(0,r.V)(),[o,i]=(0,c.useState)(e);return(0,c.useEffect)((()=>{if(t>0&&o!==e&&e){const e=setTimeout((()=>{i(!0)}),t);return()=>{clearTimeout(e)}}}),[t,e,o]),o===e||0!==t&&e||i(e),o?(0,_.tZ)(d.Z,{children:(0,_.tZ)(v,{...s,isRtl:n})}):null}},"../packages/components/src/root-child/index.tsx":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("../node_modules/react/index.js"),o=s("../node_modules/react-dom/index.js");const i=({children:e})=>{const[t,s]=(0,n.useState)(null);return(0,n.useLayoutEffect)((()=>{const e=document.createElement("div");return document.body.appendChild(e),s(e),()=>{document.body.removeChild(e)}}),[]),t?o.createPortal(e,t):null}},"../packages/i18n-calypso/src/rtl.js":(e,t,s)=>{s.d(t,{V:()=>c,P:()=>l});var n=s("../node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"),o=s("../node_modules/react/index.js"),i=s("../node_modules/use-subscription/index.js"),r=s("../packages/i18n-calypso/src/context.js"),a=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");function c(){const e=(0,o.useContext)(r.Z),t=(0,o.useMemo)((()=>({getCurrentValue:()=>e.isRtl(),subscribe:t=>(e.on("change",t),()=>e.off("change",t))})),[e]);return(0,i.useSubscription)(t)}const l=(0,n.Z)((e=>(0,o.forwardRef)(((t,s)=>{const n=c();return(0,a.tZ)(e,{...t,isRtl:n,ref:s})}))),"WithRTL")},"../packages/photon/src/index.ts":(e,t,s)=>{s.d(t,{Z:()=>p});var n=s("../node_modules/crc32/lib/crc32.js"),o=s.n(n),i=s("../node_modules/debug/src/browser.js"),r=s.n(i),a=s("../node_modules/seed-random/index.js"),c=s.n(a);const l=r()("photon"),d={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},u="__domain__.invalid";function p(e,t){let s;try{s=new URL(e,"https://__domain__.invalid")}catch{return null}const n="https:"===s.protocol,i=new URL("https://webcf.waybackmachine.org/web/20220607150355/https://i0.wp.com");if(r=s.host,/^i[0-2]\.wp\.com$/.test(r))i.pathname=s.pathname,i.hostname=n?"i0.wp.com":s.hostname;else{if(s.search)return null;let e=s.href.replace(`${s.protocol}/`,"");"blob:"===s.protocol&&(e=s.pathname.replace("://","//")),s.hostname===u&&(e=s.pathname),i.pathname=e,i.hostname=function(e,t){if(t)return"i0.wp.com";const s=o()(e),n=c()(s),i="i"+Math.floor(3*n());return l('determined server "%s" to use with "%s"',i,e),i+".wp.com"}(e,"https:"===i.protocol),n&&i.searchParams.set("ssl","1")}var r;if(t)for(const[e,s]of Object.entries(t))"host"!==e&&"hostname"!==e?"secure"!==e||s?i.searchParams.set(d[e]??e,s.toString()):i.protocol="http:":i.hostname=s;return l("generated Photon URL: %s",i.href),i.href}},"../packages/viewport/src/index.ts":(e,t,s)=>{s.d(t,{Gh:()=>o,oh:()=>i,kV:()=>p,Sp:()=>m,tq:()=>h,nI:()=>g,Z3:()=>f,bQ:()=>y,jv:()=>w});const n=769,o="<480px",i=">960px",r="undefined"==typeof window||!window.matchMedia,a=()=>null;function c(e){return{addListener:()=>{},removeListener:()=>{},...e}}function l(e){const{min:t,max:s}=e??{};return void 0!==t&&void 0!==s?r?c({matches:n>t&&n<=s}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${s}px)`):void 0!==t?r?c({matches:n>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==s&&(r?c({matches:n<=s}):window.matchMedia(`(max-width: ${s}px)`))}const d={"<480px":l({max:480}),"<660px":l({max:660}),"<782px":l({max:782}),"<800px":l({max:800}),"<960px":l({max:960}),"<1040px":l({max:1040}),"<1280px":l({max:1280}),"<1400px":l({max:1400}),">480px":l({min:480}),">660px":l({min:660}),">782px":l({min:782}),">800px":l({min:800}),">960px":l({min:960}),">1040px":l({min:1040}),">1280px":l({min:1280}),">1400px":l({min:1400}),"480px-660px":l({min:480,max:660}),"660px-960px":l({min:660,max:960}),"480px-960px":l({min:480,max:960})};function u(e){if(d.hasOwnProperty(e))return d[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(e){}}function p(e){const t=u(e);return t?t.matches:void 0}function m(e,t){if(!t)return a;const s=u(e);if(s&&!r){const e=e=>t(e.matches);return s.addListener(e),()=>s.removeListener(e)}return a}function h(){return p(o)}function g(){return p(i)}function f(e){return m(i,e)}function y(){return r?n:window.innerWidth}function w(){return h()?"mobile":!r&&window.innerWidth<1040?"tablet":"desktop"}}}]); } /* FILE ARCHIVED ON 15:03:55 Jun 07, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:52:13 Nov 19, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.741 exclusion.robots: 0.033 exclusion.robots.policy: 0.02 esindex: 0.013 cdx.remote: 12.576 LoadShardBlock: 59.83 (3) PetaboxLoader3.datanode: 115.982 (5) load_resource: 168.581 (2) PetaboxLoader3.resolve: 76.909 (2) */