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");

/*! For license information please see 49567.32cda52c3a3d397bc7e2.min.js.LICENSE.txt */
"use strict";(globalThis.webpackChunkcalypso=globalThis.webpackChunkcalypso||[]).push([[49567],{"./components/calypso-i18n-provider/index.tsx":(e,t,s)=>{s.d(t,{Z:()=>u});var n=s("../packages/i18n-utils/src/locale-context.tsx"),a=s("../packages/i18n-utils/src/locales.ts"),i=s("../node_modules/@wordpress/i18n/build-module/index.js"),r=s("../node_modules/@wordpress/react-i18n/build-module/index.js"),o=s("../packages/i18n-calypso/src/index.js"),c=s("../packages/i18n-calypso/src/context.js"),d=s("../node_modules/react/index.js"),p=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const u=({i18n:e=o.ZP,children:t})=>{const[s,u]=(0,d.useState)(e.getLocaleSlug());return(0,d.useEffect)((()=>{const t=()=>{i.i$.setLocaleData(e.getLocale()),u(e.getLocaleSlug())};return e.on("change",t),()=>{e.off("change",t)}}),[e]),(0,d.useEffect)((()=>{i.i$.resetLocaleData(e.getLocale())}),[s]),(0,p.tZ)(c.Z.Provider,{value:e,children:(0,p.tZ)(n.Iw,{localeSlug:s||a.OP,children:(0,p.tZ)(r.bd,{i18n:i.i$,children:t})})})}},"./components/data/query-preferences/index.jsx":(e,t,s)=>{s.d(t,{Z:()=>o});var n=s("../node_modules/react/index.js"),a=s("../node_modules/react-redux/es/index.js"),i=s("./state/preferences/actions.js"),r=s("./state/preferences/selectors.js");function o(){const e=(0,a.I0)();return(0,n.useEffect)((()=>{e(((e,t)=>{(0,r.rf)(t())||e((0,i.Fe)())}))}),[e]),null}},"./lib/detect-history-navigation/index.js":(e,t,s)=>{s.d(t,{Z:()=>a});let n=!1;const a={start:function(){window.addEventListener("popstate",(function(e){n=!!e.state}))},loadedViaHistory:function(){return n}}},"./lib/protect-form/index.tsx":(e,t,s)=>{s.d(t,{cG:()=>y,TW:()=>h,K8:()=>_,bw:()=>f});var n=s("../node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"),a=s("../node_modules/debug/src/browser.js"),i=s.n(a),r=s("../packages/i18n-calypso/src/index.js"),o=s("../node_modules/page/page.js"),c=s.n(o),d=s("../node_modules/react/index.js"),p=s("../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const u=i()("calypso:protect-form");let l=new Set,m=0;function g(e){if(!l.size)return;u("unsaved form changes detected");const t=r.ZP.translate("You have unsaved changes.");return(e||window.event).returnValue=t,t}const y=()=>{const e=(0,d.useRef)([]),t=(0,d.useCallback)((()=>function(e){l.delete(e)}(e.current)),[]),s=(0,d.useCallback)((()=>function(e){l.add(e)}(e.current)),[]);return(0,d.useEffect)((()=>(0===m&&"undefined"!=typeof window&&window.addEventListener("beforeunload",g),m++,()=>{m--,0===m&&"undefined"!=typeof window&&window.removeEventListener("beforeunload",g),t()})),[t]),{markChanged:s,markSaved:t}},h=(0,n.Z)((e=>t=>{const{markChanged:s,markSaved:n}=y(),a={...t,markChanged:s,markSaved:n};return(0,p.tZ)(e,{...a})}),"protectForm"),_=({isChanged:e})=>{const{markChanged:t,markSaved:s}=y();return(0,d.useEffect)((()=>{if(e)return t(),()=>s()}),[e,t,s]),null};const f=(e,t)=>{if(!l.size)return t();if(u("unsaved form changes detected"),function(){if("undefined"==typeof window)return!0;const e=r.ZP.translate("You have unsaved changes. Are you sure you want to leave this page?",{textOnly:!0});return window.confirm(e)}())l=new Set,t();else{const t=e.canonicalPath;setTimeout((function(){c().replace(t,null,!1,!1)}),0)}}},"./lib/touch-detect/index.js":(e,t,s)=>{function n(){return window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}s.d(t,{_:()=>n})},"./lib/url/support.js":(e,t,s)=>{s.d(t,{lz:()=>a,sR:()=>i,Jn:()=>r,BT:()=>o,SZ:()=>c,_j:()=>d,p5:()=>p,rH:()=>u,yY:()=>l,_v:()=>m,BW:()=>g,nG:()=>y,w7:()=>h,FH:()=>_,w0:()=>f,js:()=>w,y2:()=>b,oY:()=>j,sN:()=>v,Ck:()=>E,WZ:()=>C,f6:()=>O,JY:()=>S,Lf:()=>T,a7:()=>k,sO:()=>I,fu:()=>Z,g:()=>$,wO:()=>R,iV:()=>x,IU:()=>P,nS:()=>A,n5:()=>N,L6:()=>U,kq:()=>L,Ng:()=>D,DT:()=>q,CW:()=>M,Fr:()=>H,ml:()=>J,ut:()=>K,dV:()=>Y,BA:()=>F,A1:()=>G,lJ:()=>z,mm:()=>V,$d:()=>W,un:()=>X,wQ:()=>Q,M9:()=>B,xg:()=>ee,dL:()=>te,$:()=>se,tL:()=>ne,fQ:()=>ae,Nm:()=>ie,dR:()=>re,Oy:()=>oe,MG:()=>ce,kY:()=>de});const n="https://webcf.waybackmachine.org/web/20220607162746/https://wordpress.com/support",a=`${n}/add-email/adding-google-workspace-to-your-site/`,i=`${n}/add-email/adding-professional-email-to-your-site/`,r=`${n}/manage-purchases/#automatic-renewal`,o=`${n}/domains/custom-dns/#changing-name-servers-to-point-to-wordpress-com`,c=`${n}/domains/change-name-servers/#finding-out-your-new-name-server`,d=`${n}/concierge-support/`,p=`${n}/contact`,u="/help/contact",l=`${n}/domains/custom-dns/`,m=`${n}/update-contact-information/#designated-agent`,g=`${n}/domain-registration-agreements/`,y=`${n}/domains/register-domain/#waiting-for-domain-changes`,h=`${n}/domains/`,_=`${n}/domains/#cancel-a-domain-name`,f=`${n}/domains/domain-expiration/`,w=`${n}/domains/domain-expiration/#expiry-auction`,b=`${n}/domains/domain-expiration/#renewing-a-domain-in-the-redemption-period`,j=`${n}/domains/register-domain/#waiting-for-domain-changes`,v=`${n}/domains/domain-pricing-and-available-tlds`,E=`${n}/domains/custom-dns/#editing-or-deleting-dns-records`,C=`${n}/domains/custom-dns/#txt-record-character-limit`,O=`${n}/ecommerce/`,S=`${n}/move-domain/incoming-domain-transfer/#checking-your-transfer-status-and-failed-transfers`,T=`${n}/incoming-domain-transfer/status-and-failed-transfers/#pending`,k=`${n}/incoming-domain-transfer/`,I=`${n}/incoming-domain-transfer/prepare-domain-for-transfer/#unlock`,Z=`${n}/incoming-domain-transfer/prepare-domain-for-transfer/#auth-code`,$=`${n}/incoming-domain-transfer/#auth-code-invalid`,R=`${n}/incoming-domain-transfer/#which-tl-ds-extensions-can-i-transfer-to-word-press-com`,x=`${n}/payment/#edit-payment-details`,P=`${n}/domains/register-domain/#email-validation-and-verification`,A=`${n}/empty-site/`,N=`${n}/forms/`,U=`${n}/your-site-and-the-gdpr/`,L="https://webcf.waybackmachine.org/web/20220607162746/https://workspace.google.com/learning-center/",D=`${n}/https-ssl/`,q="https://webcf.waybackmachine.org/web/20220607162746/https://jetpack.com/support/",M="https://webcf.waybackmachine.org/web/20220607162746/https://jetpack.com/support/getting-started-with-jetpack/fixing-jetpack-connection-issues/",H="https://webcf.waybackmachine.org/web/20220607162746/https://jetpack.com/contact-support/?rel=support",J="https://webcf.waybackmachine.org/web/20220607162746/https://jetpack.com/pricing/",K="https://webcf.waybackmachine.org/web/20220607162746/https://help.vaultpress.com/install-vaultpress/",Y="https://webcf.waybackmachine.org/web/20220607162746/https://akismet.com/support/",F=`${n}/domains/map-existing-domain/`,G=`${n}/domains/map-existing-domain/#2-ask-your-domain-provider-to-update-your-dns-settings`,z=`${n}/domains/map-existing-domain/#mapping-with-our-a-records`,V=`${n}/domains/map-subdomain/`,W=`${n}/domains/map-subdomain/#adding-cname-records-with-your-registrar`,X=`${n}/domains/map-existing-domain/#change-your-domains-name-servers`,Q=`${n}/domains/domain-registrations-and-privacy/#privacy-protection`,B=`${n}/domains/register-domain/#public-versus-private-registration-and-gdpr`,ee=`${n}/manage-purchases/#refund-policy`,te=`${n}/domains/register-domain/`,se=`${n}/domains/#set-a-primary-address`,ne=`${n}/setting-up-premium-services/`,ae=`${n}/site-redirect/`,ie=`${n}/`,re=`${n}/transfer-domain-registration/`,oe=`${n}/update-contact-information/#email-or-name-changes`,ce=`${n}/domains/domain-management/#update-nameservers`,de=`${n}/wpcc-faq`},"./sections-helper.js":(e,t,s)=>{s.d(t,{oq:()=>i,OY:()=>r,MA:()=>o,zD:()=>c});var n=s("../node_modules/lodash-es/find.js");let a=null;function i(e){a=e}function r(){if(!a)throw new Error("sections-helper has not been initialized yet");return a}function o(e){const t=(0,n.Z)(a,{name:e});t&&t.load()}function c(e,t){const s=(0,n.Z)(a,{name:e,module:t});return s?Promise.resolve(s.load()):Promise.reject(`Attempting to load non-existent section: ${e} (module=${t})`)}},"./state/analytics/actions/with-analytics.js":(e,t,s)=>{s.d(t,{w:()=>a});const n=(e,t)=>{return"function"==typeof t?s=>{s(e),s(t)}:{...t,meta:{...t.meta,analytics:(s=e,n=t,[...s.meta?.analytics??[],...n.meta?.analytics??[]])}};var s,n};function a(e,t){return void 0===t?t=>n(e,t):n(e,t)}},"./state/audio/middleware.js":(e,t,s)=>{s.d(t,{ZP:()=>r});var n=s("./state/action-types.ts");const a=()=>"object"==typeof window&&"function"==typeof window.Audio,i=Object.create(null);i[n.$Tb]=(e,{message:t})=>{t&&"customer"===t.source||(e=>{if(!a())return;new window.Audio(e).play()})("/calypso/audio/chat-pling.wav")};const r=({dispatch:e})=>t=>a()?s=>{const n=i[s.type];return"function"==typeof n&&n(e,s),t(s)}:t},"./state/desktop/middleware.js":(e,t,s)=>{s.d(t,{Z:()=>c});var n=s("../node_modules/debug/src/browser.js"),a=s.n(n),i=s("./state/action-types.ts"),r=s("./state/desktop/window-events.js");const o=a()("desktop:middleware"),c=()=>e=>t=>t.type===i.hxz?(o("Dispatching window event for action type: ",t.type),window.dispatchEvent(new window.CustomEvent(r.D)),e(t)):e(t)},"./state/desktop/window-events.js":(e,t,s)=>{s.d(t,{D:()=>n});const n="NOTIFY_DESKTOP_NOTIFICATIONS_UNSEEN_COUNT_RESET"},"./state/gutenberg-iframe-eligible/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),a=s("../packages/state-utils/src/index.ts"),i=s("./state/action-types.ts");const r=(0,s("./state/utils/keyed-reducer.ts").J)("siteId",((e,{type:t,isEligibleForGutenframe:s})=>t===i.p8O?s:e)),o=(0,a.xi)("gutenbergIframeEligible",r);(0,n.x)(["gutenbergIframeEligible"],o)},"./state/happychat/constants.js":(e,t,s)=>{s.d(t,{jP:()=>n,SJ:()=>a,bp:()=>i,XY:()=>r,oP:()=>o,ad:()=>c,Qy:()=>d,lc:()=>p,ul:()=>u,mH:()=>l,EB:()=>m,mr:()=>g,so:()=>y,Zy:()=>h,dZ:()=>_,sH:()=>f,pW:()=>w,HY:()=>b,s0:()=>j,Bp:()=>v,nN:()=>E,i5:()=>C});const n="ping timeout",a="uninitialized",i="connecting",r="connected",o="disconnected",c="reconnecting",d="unauthorized",p=30,u="product",l="language",m="jpop",g="WP.com",y={CUSTOMER_EVENT:"customer-event",CUSTOMER_INFO:"customer-info",LOG:"log"},h="abandoned",_="assigned",f="assigning",w="blocked",b="closed",j="default",v="new",E="missed",C="pending"},"./state/happychat/init.js":(e,t,s)=>{var n=s("./state/redux-store.ts"),a=s("../packages/state-utils/src/index.ts"),i=s("./state/utils/reducer-utils.ts"),r=s("./state/action-types.ts"),o=s("./state/happychat/constants.js"),c=s("./state/utils/schema-utils.js"),d=s("./state/utils/with-persistence.ts");const p={type:"array",additionalProperties:!1,items:{type:"object",additionalProperties:!1,required:["id","source","message","timestamp","user_id","type"],properties:{id:{type:"string"},source:{type:"string"},message:{type:"string"},name:{type:"string"},image:{type:"string"},timestamp:{type:["number","string"]},user_id:{type:["number","string"]},type:{type:"string"},links:{type:"array"}}}},u=e=>e<17e8?1e3*e:e,l=(0,c.G)({type:"number"},((e=null,t)=>{switch(t.type){case r.qjX:case r.$Tb:return Date.now()}return e})),m=(e={},t)=>{switch(t.type){case r.$Tb:case r.IoY:case r.Ylp:{const{message:e}=t;return{id:e.id,source:e.source,message:e.text,name:e.user.name,image:e.user.avatarURL,isEdited:!!e.revisions,isOptimistic:e.isOptimistic,files:e.files,timestamp:u(e.timestamp),user_id:e.user.id,type:e.type??"message",links:e.meta?.links}}}return e},g=e=>parseInt(e.timestamp,10),y=(e,t)=>g(e)-g(t),h=(0,c.G)(p,(0,d.$)(((e=[],t)=>{switch(t.type){case r.$Tb:case r.IoY:{if(t.message.meta?.forOperator)return e;const s=m({},t),n=e.findIndex((({id:e})=>s.id===e));return n>=0?[...e.slice(0,n),s,...e.slice(n+1)]:e.concat([s])}case r.Ylp:{const s=e.findIndex((({id:e})=>t.message.id===e));return-1===s?e:[...e.slice(0,s),m({},t),...e.slice(s+1)]}case r.kJ4:{const s=t.messages?.filter((t=>!!t.id&&(!t.meta?.forOperator&&!e.some((e=>e.id===t.id)))))??[];return(e=>e.slice().sort(y))(e.concat(s.map((e=>({id:e.id,source:e.source,message:e.text,name:e.user.name,image:e.user.picture,isEdited:!!e.revisions,files:e.files,timestamp:u(e.timestamp),user_id:e.user.id,type:e.type??"message",links:e.meta?.links})))))}}return e}),{serialize:e=>e.slice(-1*o.lc)})),_=(0,i.U)({status:(e=o.s0,t)=>t.type===r.myH?t.status:e,timeline:h,lastActivityTimestamp:l}),f=(0,i.U)({error:(e=null,t)=>{switch(t.type){case r.M7f:return null;case r.f5U:return t.error}return e},isAvailable:(e=!1,t)=>t.type===r.nHy?t.isAvailable:e,localizedSupport:(e=!1,t)=>t.type===r.Sur?t.isAvailable:e,status:(e=o.SJ,t)=>{switch(t.type){case r.Mei:return o.bp;case r.M7f:return o.XY;case r.f5U:return o.oP;case r.k_K:return o.ad}return e}}),w=(0,c.G)({type:"number"},(0,d.$)(((e=null,t)=>{switch(t.type){case r.vQd:return Date.now();case r.o9b:return null}return e}),{serialize:e=>null===e?Date.now():e})),b=(0,i.U)({currentMessage:(e="",t)=>{switch(t.type){case r.qjX:return"";case r.c2t:return t.message}return e},isMinimizing:(e=!1,t)=>t.type===r.tyO?!!t.isMinimizing:e,isOpen:(e=!1,t)=>t.type===r.eYx?!!t.isOpen:e,lostFocusAt:w}),j=(0,c.G)({type:["object","null"],properties:{city:{type:"string"},country_long:{type:"string"},country_short:{type:"string"},region:{type:"string"}}},((e=null,t)=>{if(t.type===r.M7f){const s=t.user.geoLocation;return s&&s.country_long&&s.city?s:e}return e})),v=(0,c.G)({type:["boolean","null"]},((e=null,t)=>t.type===r.Xeb?t.config.isUserEligible:e)),E=(0,c.G)({type:["object","null"],properties:{precancellation:{type:"boolean"},presale:{type:"boolean"}}},((e=null,t)=>t.type===r.Xeb?t.config.availability:e)),C=(0,c.G)({type:["string","null"]},((e=null,t)=>t.type===r.Xeb?t.config.supportLevel:e)),O=(0,i.U)({geoLocation:j,isEligible:v,availability:E,supportLevel:C}),S=(0,i.U)({chat:_,connection:f,ui:b,user:O}),T=(0,a.xi)("happychat",S);(0,n.x)(["happychat"],T)},"./state/happychat/middleware-calypso.js":(e,t,s)=>{s.d(t,{ZP:()=>j});var n=s("./state/action-types.ts"),a=s("./state/analytics/actions/with-analytics.js"),i=s("./state/analytics/actions/record.js"),r=s("./state/current-user/selectors.js"),o=s("./state/happychat/connection/actions.js"),c=s("./state/happychat/constants.js"),d=s("./state/happychat/selectors/get-groups.js"),p=s("./state/happychat/selectors/get-happychat-chat-status.js"),u=s("./state/happychat/selectors/get-skills.js"),l=s("./state/happychat/selectors/is-happychat-chat-assigned.js"),m=s("./state/happychat/selectors/is-happychat-client-connected.js"),g=s("./state/help/selectors.js"),y=s("./state/jetpack-connect/action-types.js"),h=s("./state/selectors/get-current-route.js"),_=s("./state/sites/selectors/get-site-plan-slug.js"),f=s("./state/ui/selectors/get-section-name.js");const w=(e,t)=>`Looking at https://wordpress.com${t}`,b=({getState:e,dispatch:t},s)=>{const a=e();if(!(0,m.Z)(a)||!(0,l.Z)(a))return;s.meta?.analytics&&((e,{meta:{analytics:t}})=>{t.forEach((({type:t,payload:{service:s,name:a,properties:i}})=>{if(t===n.u2u&&"tracks"===s){const t=(({name:e,properties:t})=>{switch(e){case"calypso_add_new_wordpress_click":return'Clicked "Add new site" button';case"calypso_domain_search_add_button_click":return`Clicked "Add" button to add domain "${t.domain_name}"`;case"calypso_domain_remove_button_click":return`Clicked "Remove" button to remove domain "${t.domain_name}"`;case"calypso_themeshowcase_theme_activate":return`Changed theme from "${t.previous_theme}" to "${t.theme}"`;case"calypso_editor_featured_image_upload":return"Changed the featured image on the current post";case"calypso_map_domain_step_add_domain_click":return`Add "${t.domain_name}" to the cart in the "Map a domain" step`;case"calypso_view_site_page_view":return`Looking at ${t.full_url} inside the View Site section`}return null})({name:a,properties:i});t&&e((0,o.qP)(t)),e((0,o.gp)(a))}}))})(t,s);const i=(e=>{switch(e.type){case n.rNQ:return`Changed a comment's status to "${e.status}"`;case n.s_X:return"Export completed";case n.H3r:return`Export failed: ${e.error.message}`;case n.VJM:return"Started an export";case n.waY:case y.YB:case n.aqr:case n.aRw:case n.C8L:return null;case n.hZH:return`Saved post "${e.savedPost.title}" ${e.savedPost.short_URL}`;case n.fd:return`Connected ${e.connection.label} sharing`;case n.VM$:return`Disconnected ${e.connection.label} sharing`;case n.WjV:return null;case n.suc:return"Saved site settings"}return null})(s);i&&t((0,o.qP)(i))},j=e=>t=>s=>{const y=e.getState(),{dispatch:j}=e;switch(b(e,s),s.type){case n.myH:if((0,p.Z)(y)===c.i5&&s.status===c.dZ){j((0,a.w)((0,i.jN)("calypso_happychat_start"),(0,o.qP)(w(0,(0,h.Z)(y)))));const e=(0,g.QQ)(y);j((0,o.yW)({calypsoSectionName:(0,f.Z)(y)||"__unknown__",wpcomSiteId:""+e,wpcomSitePlan:(0,_.Z)(y,e)}))}break;case n.uWp:if((0,m.Z)(y)){const e=(0,r.Mg)(y),t=(0,d.Z)(y,s.siteId),n=(0,u.Z)(y,s.siteId);j((0,o._8)(e,t,n))}break;case n.RSp:(0,m.Z)(y)&&(0,l.Z)(y)&&j((0,o.qP)(w(0,s.path)))}return t(s)}},"./state/happychat/middleware.js":(e,t,s)=>{function n(e){let t=null;function n(){return t||(t=Promise.all([s.e(49923),s.e(73583)]).then(s.bind(s,"../packages/happychat-connection/src/connection.ts")).then((({default:t})=>t(e)))),t}return{init:async(e,t)=>(await n()).init(e,t),request:async(e,t)=>(await n()).request(e,t),send:async e=>(await n()).send(e)}}s.d(t,{Z:()=>p});var a=s("../node_modules/lodash-es/get.js"),i=s("./state/action-types.ts"),r=s("./state/happychat/connection/actions.js"),o=s("./state/happychat/selectors/is-happychat-chat-assigned.js"),c=s("./state/happychat/selectors/is-happychat-client-connected.js");const d={HAPPYCHAT_BLUR:"Stopped looking at Happychat",HAPPYCHAT_FOCUS:"Started looking at Happychat"},p=((e=null)=>(null==e&&(e=n({receiveAccept:r.pL,receiveConnect:r.id,receiveDisconnect:r.nv,receiveError:r.Mx,receiveInit:r.k_,receiveLocalizedSupport:r.$W,receiveMessage:r.QM,receiveMessageOptimistic:r.dN,receiveMessageUpdate:r.gg,receiveReconnecting:r.Mo,receiveStatus:r.KX,receiveToken:r.wH,receiveUnauthorized:r.up,requestTranscript:r.bi})),t=>s=>n=>{const p=t.getState();switch(n.type){case i.Mei:e.init(t.dispatch,n.auth);break;case i.R_D:e.request(n,n.timeout);break;case i.$tj:e.send(n),t.dispatch((0,r.yW)({howCanWeHelp:(0,a.Z)(n,"payload.meta.howCanWeHelp",null),howYouFeel:(0,a.Z)(n,"payload.meta.howYouFeel",null)}));break;case i.Syf:case i.vsK:case i.qjX:case i.Do$:case i.ILV:case i.SgU:e.send(n);break;case i.vQd:case i.o9b:(0,c.Z)(p)&&(0,o.Z)(p)&&d[n.type]&&t.dispatch((0,r.qP)(d[n.type]))}return s(n)}))()},"./state/happychat/selectors/get-happychat-chat-status.js":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("../node_modules/lodash-es/get.js");s("./state/happychat/init.js");const a=e=>(0,n.Z)(e,"happychat.chat.status")},"./state/happychat/selectors/is-happychat-chat-assigned.js":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("../node_modules/lodash-es/get.js"),a=s("./state/happychat/constants.js");s("./state/happychat/init.js");const i=e=>(0,n.Z)(e,"happychat.chat.status")===a.dZ},"./state/index.js":(e,t,s)=>{s.d(t,{E:()=>y});var n=s("../packages/calypso-config/src/index.ts"),a=s("../node_modules/redux/es/redux.js"),i=s("../node_modules/redux-dynamic-middlewares/lib/index.js"),r=s("../node_modules/redux-thunk/es/index.js"),o=s("./state/data-layer/wpcom-api-middleware.js"),c=s("./state/utils/add-reducer-enhancer.js");const d={actionHistory:[],shouldRecordActions:!0,historySize:100,watchPredicate:null},p=e=>{if(e instanceof RegExp)return({type:t})=>e.test(t);if("string"==typeof e)return({type:t})=>t===e;if("function"==typeof e)return e;throw new TypeError("provide string or RegExp matching `action.type` or a predicate function")},u={clear:()=>{d.actionHistory=[]},filter:e=>d.actionHistory.filter(p(e)),setSize:e=>{d.historySize=e},start:()=>{d.shouldRecordActions=!0},stop:()=>{d.shouldRecordActions=!1},unwatch:()=>{d.watchPredicate=null},watch:e=>{d.watchPredicate=e?p(e):null}};Object.defineProperty(u,"history",{enumerable:!0,get:()=>d.actionHistory});const l=e=>(...t)=>{const s=e(...t);if("undefined"==typeof window)return s;return Object.assign(window,{actionLog:u}),{...s,dispatch:e=>(d.shouldRecordActions&&(e=>{const{actionHistory:t,historySize:s}=d,n="function"==typeof e?{type:"thunk (hidden)"}:{};t.push({...e,...n,meta:{...e.meta,timestamp:Date.now()}}),t.length>2*s&&(d.actionHistory=t.slice(-1*s))})(e),"function"==typeof d.watchPredicate&&"function"==typeof console.log&&d.watchPredicate(e)&&console.log("Watched action observed:\n%o",e),s.dispatch(e))}},m=e=>(...t)=>{const s=e(...t);return"undefined"!=typeof window&&(Object.assign(window,s),Object.defineProperty(window,"state",{enumerable:!0,get:s.getState})),s};var g=s("./state/reducer.js");function y(e,t=g.Z){const d="object"==typeof window,p=(0,n._k)("desktop"),u="object"==typeof window&&"function"==typeof window.Audio,y=[r.Z,o.Z,d&&s("./state/happychat/middleware.js").Z,d&&s("./state/happychat/middleware-calypso.js").ZP,i.ZP,d&&s("./state/analytics/middleware.js").i,d&&s("./state/lib/middleware.js").Z,u&&s("./state/audio/middleware.js").ZP,p&&s("./state/desktop/middleware.js").Z].filter(Boolean),h=[c.f,d&&window.app&&window.app.isDebug&&m,(0,a.applyMiddleware)(...y),d&&window.app&&window.app.isDebug&&l,d&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()].filter(Boolean);return(0,a.createStore)(t,e,(0,a.compose)(...h))}},"./state/jetpack-connect/action-types.js":(e,t,s)=>{s.d(t,{YB:()=>n,t5:()=>a,n1:()=>i,Ok:()=>r,O:()=>o,Fb:()=>c,LU:()=>d,o$:()=>p,Ec:()=>u,DY:()=>l,OM:()=>m,JX:()=>g,a4:()=>y,GP:()=>h,YV:()=>_,FE:()=>f,WG:()=>w,Wq:()=>b});const n="JETPACK_CONNECT_AUTHORIZE",a="JETPACK_CONNECT_AUTHORIZE_LOGIN_COMPLETE",i="JETPACK_CONNECT_AUTHORIZE_RECEIVE",r="JETPACK_CONNECT_AUTHORIZE_RECEIVE_SITE_LIST",o="JETPACK_CONNECT_CHECK_URL",c="JETPACK_CONNECT_CHECK_URL_RECEIVE",d="JETPACK_CONNECT_COMPLETE_FLOW",p="JETPACK_CONNECT_CONFIRM_JETPACK_STATUS",u="JETPACK_CONNECT_DISMISS_URL_STATUS",l="JETPACK_CONNECT_QUERY_SET",m="JETPACK_CONNECT_RETRY_AUTH",g="JETPACK_CONNECT_SSO_AUTHORIZE_ERROR",y="JETPACK_CONNECT_SSO_AUTHORIZE_REQUEST",h="JETPACK_CONNECT_SSO_AUTHORIZE_SUCCESS",_="JETPACK_CONNECT_SSO_VALIDATION_ERROR",f="JETPACK_CONNECT_SSO_VALIDATION_REQUEST",w="JETPACK_CONNECT_SSO_VALIDATION_SUCCESS",b="JETPACK_CONNECT_USER_ALREADY_CONNECTED"},"./state/lib/middleware.js":(e,t,s)=>{s.d(t,{Z:()=>l});var n=s("../node_modules/lodash-es/once.js"),a=s("../node_modules/lodash-es/defer.js"),i=s("../node_modules/page/page.js"),r=s.n(i),o=s("./state/action-types.ts"),c=s("./state/current-user/selectors.js");s("./state/immediate-login/init.js");var d=s("../packages/i18n-calypso/src/index.js");var p=s("./state/notices/actions.ts");const u=(0,n.Z)(((e,t,s)=>{if(!t.query.immediate_login_attempt)return;if(e(((e,t,s,n)=>({type:o.Mt0,success:e,reason:t,email:s,locale:n}))(t.query.immediate_login_success,t.query.login_reason,t.query.login_email,t.query.login_locale)),r().replace(((e,t)=>{const s=["immediate_login_attempt","immediate_login_success","login_reason","login_email","login_locale"],n=Object.keys(t).filter((e=>-1===s.indexOf(e))).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`));return e+(n.length?"?"+n.join("&"):"")})(t.path,t.query)),!t.query.immediate_login_success)return;const n=(0,c.vz)(s());n&&(0,a.Z)((()=>{e((0,p.RT)(((e,t)=>(0,d.Iu)("You're logged in as %(email)s.",{args:{email:t}}))(t.query.login_reason,n)))}))})),l=({dispatch:e,getState:t})=>n=>a=>((async(e,t,n)=>{switch(t.type){case o.RSp:return u(e,t,n);case o.bgv:case o.UUJ:case o.xLe:{const{fetchAutomatedTransferStatusForSelectedSite:t}=await Promise.all([s.e(37365),s.e(27456)]).then(s.bind(s,"./state/lib/automated-transfer-middleware.js"));t(e,n)}}})(e,a,t),n(a))},"./state/reducer.js":(e,t,s)=>{s.d(t,{Z:()=>P});var n=s("./state/utils/reducer-utils.ts"),a=s("./state/current-user/reducer.js"),i=s("./state/data-layer/wpcom-http/utils.js"),r=s("../node_modules/lodash-es/merge.js"),o=s("../node_modules/lodash-es/reduce.js"),c=s("../node_modules/lodash-es/isEqual.js"),d=s("../node_modules/lodash-es/omit.js"),p=s("../node_modules/lodash-es/get.js"),u=s("../node_modules/lodash-es/includes.js"),l=s("./state/action-types.ts"),m=s("./state/themes/action-types.js"),g=s("./state/utils/schema-utils.js");const y=e=>(t,{siteId:s})=>({...t,[s]:e}),h=(0,n.U)({items:(e={},t)=>{if(t.type===l.tvw){const{siteId:s,status:n}=t;return{...e,[s]:n}}return e},requesting:(e={},t)=>{switch(t.type){case l.U5d:return y(!0)(e,t);case l.QLz:case l.D5g:return y(!1)(e,t)}return e}});var _=s("../node_modules/lodash-es/find.js");const f=(e,t,s,n)=>{const a=(0,_.Z)(e[t],{domain:s}),i=e[t].indexOf(a),r=[...e[t]];return r.splice(i,1,Object.assign({},a,n)),Object.assign({},e,{[t]:r})},w=(0,g.G)({type:"object",additionalProperties:!1,patternProperties:{"^\\d+$":{type:"array",items:{type:"object",required:["domain"],properties:{aftermarketAuction:{type:"boolean"},autoRenewalDate:{type:"string"},autoRenewing:{type:"boolean"},blogId:{type:"number"},canSetAsPrimary:{type:"boolean"},currentUserCanManage:{type:"boolean"},canManageDnsRecords:{type:"boolean"},canManageNameServers:{type:"boolean"},canUpdateContactInfo:{type:"boolean"},cannotManageDnsRecordsReason:{type:["null","string"]},cannotManageNameServersReason:{type:["null","string"]},cannotUpdateContactInfoReason:{type:["null","string"]},domain:{type:"string"},expired:{type:"boolean"},expiry:{type:["null","string"]},expirySoon:{type:"boolean"},googleAppsSubscription:{type:"object"},titanMailSubscription:{type:"object"},hasRegistration:{type:"boolean"},hasWpcomNameservers:{type:"boolean"},hasZone:{type:"boolean"},isPendingIcannVerification:{type:"boolean"},isPendingRenewal:{type:"boolean"},isPremium:{type:"boolean"},isPrimary:{type:"boolean"},isSubdomain:{type:"boolean"},isWPCOMDomain:{type:"boolean"},manualTransferRequired:{type:"boolean"},name:{type:"string"},owner:{type:"string",optional:!0},partnerDomain:{type:"boolean"},pendingRegistration:{type:"boolean"},pendingRegistrationTime:{type:"string"},pointsToWpcom:{type:"boolean"},registrar:{type:"string"},registrationDate:{type:"string"},subscriptionId:{type:["null","string"]},supportsDomainConnect:{type:"boolean",optional:!0},supportsGdprConsentManagement:{type:"boolean",optional:!0},type:{type:"string"},transferStartDate:{type:["null","string"]},transferEndDate:{type:["null","string"]}}}}}},((e={},t)=>{const{siteId:s}=t;switch(t.type){case l.t2O:return Object.assign({},e,{[s]:t.domains});case l.DGo:return f(e,s,t.domain,{privateDomain:!0,contactInfoDisclosed:!1});case l.ON1:return f(e,s,t.domain,{privateDomain:!1,contactInfoDisclosed:!1});case l.tGX:return f(e,s,t.domain,{privateDomain:!1,contactInfoDisclosed:!0});case l.HYG:return f(e,s,t.domain,{privateDomain:!1,contactInfoDisclosed:!1})}return e})),b=(0,n.U)({errors:(e={},t)=>{switch(t.type){case l.wOJ:case l.RI4:return Object.assign({},e,{[t.siteId]:null});case l.dyA:return Object.assign({},e,{[t.siteId]:t.error})}return e},items:w,requesting:(e={},t)=>{switch(t.type){case l.wOJ:case l.RI4:case l.dyA:return Object.assign({},e,{[t.siteId]:t.type===l.wOJ})}return e},updatingPrivacy:(e={},t)=>{switch(t.type){case l.sBg:case l.DGo:case l.zVI:case l.HCR:case l.ON1:case l.T6o:case l.w6q:case l.tGX:case l.M5U:case l.K1T:case l.HYG:case l.sQe:return Object.assign({},e,{[t.siteId]:{[t.domain]:-1!==[l.sBg,l.HCR,l.w6q,l.K1T].indexOf(t.type)}})}return e}});var j=s("./state/sites/features/reducer.js"),v=s("./state/utils/keyed-reducer.ts"),E=s("./state/sites/intro-offers/types.ts");const C=(0,v.J)("siteId",((e,{type:t})=>{switch(t){case l.Frv:return E.e.Pending;case l.lfH:return E.e.Success;case l.Byq:return E.e.Failed}return e})),O=(0,v.J)("siteId",((e,{type:t,payload:s})=>t===l.Kmp?s?(e=>{const t={};return e.forEach((e=>{t[e.product_id]=(({currency_code:e,discount_percentage:t,formatted_price:s,ineligible_reason:n,product_id:a,product_slug:i,raw_price:r})=>({currencyCode:e,discountPercentage:t,formattedPrice:s,ineligibleReason:n,productId:a,productSlug:i,rawPrice:r}))(e)})),t})(s):void 0:e)),S=(0,n.U)({requestStatus:C,items:O});var T=s("./state/sites/plans/reducer.js"),k=s("./state/sites/products/reducer.js"),I=s("./state/sites/schema.js");const Z=(0,g.G)(I.K,((e=null,t)=>{if(null===e&&t.type!==l.UUJ&&t.type!==l.xLe)return null;switch(t.type){case l.Khp:{const s=e[t.siteId];return s?Object.assign({},e,{[t.siteId]:(0,r.Z)({},s,{options:{wordads:!0}})}):e}case l.UUJ:case l.xLe:{const s=t.site?[t.site]:t.sites,n=l.xLe===t.type?{}:e;return(0,o.Z)(s,((t,s)=>((0,c.Z)(t[s.ID],s)||(t===e&&(t={...e}),t[s.ID]=s),t)),n||{})}case l.SYS:case l.Oh9:return(0,d.Z)(e,t.siteId);case m.hX:{const{siteId:s,themeStylesheet:n}=t,a=e[s];if(!a)break;return{...e,[s]:(0,r.Z)({},a,{options:{theme_slug:n}})}}case l.rZJ:case l.KBY:{const{siteId:s,settings:n}=t,a=e[s];if(!a)return e;let i=a;return(0,o.Z)(["blog_public","wpcom_public_coming_soon","wpcom_coming_soon","site_icon"],((t,r)=>{if(!n.hasOwnProperty(r))return t;switch(r){case"blog_public":{const e=-1===parseInt(n.blog_public,10);if(a.is_private===e)return t;i={...i,is_private:e};break}case"wpcom_coming_soon":case"wpcom_public_coming_soon":{const e=1===parseInt(n.wpcom_public_coming_soon,10)||1===parseInt(n.wpcom_coming_soon,10);if(a.is_coming_soon===e)return t;i={...i,is_coming_soon:e};break}case"site_icon":{const e=n.site_icon;if(!a.icon&&null===e||a.icon&&a.icon.media_id===e)return t;i=null===e?(0,d.Z)(i,"icon"):{...i,icon:{media_id:e}};break}}return t===e&&(t={...e}),t[s]=i,t}),e)}case l.aqr:{const{siteId:s,mediaIds:n}=t,a=(0,p.Z)(e[s],"icon.media_id");return a&&(0,u.Z)(n,a)?{...e,[s]:(0,d.Z)(e[s],"icon")}:e}case l.U0$:{const{siteId:s}=t,n=(0,p.Z)(e[s],"updates");return n?{...e,[s]:{...e[s],updates:{...n,plugins:n.plugins-1,total:n.total-1}}}:e}case l.uvG:{const{siteId:s,frontPageOptions:n}=t,a=e[s];if(!a)break;return{...e,[s]:(0,r.Z)({},a,{options:{...n}})}}case l.lTr:{const{siteId:s,migrationStatus:n,lastModified:a}=t;if(!e[s])return e;const i=e[s].site_migration||{},o={status:n};return a&&(o.last_modified=a),{...e,[s]:{...e[s],site_migration:(0,r.Z)({},i,o)}}}}return e})),$=(0,g.G)(I.W,((e=!1,t)=>t.type===l.xLe||e)),R=(0,n.U)({connection:h,domains:b,requestingAll:(e=!1,t)=>{switch(t.type){case l.M4_:return!0;case l.eTV:case l.KSQ:return!1}return e},introOffers:S,items:Z,plans:T.z,products:k.R,features:j.E,requesting:(e={},t)=>{switch(t.type){case l.hJk:{const{siteId:s}=t;return{...e,[s]:!0}}case l.uuM:{const{siteId:s}=t;return{...e,[s]:!1}}case l.Mvd:{const{siteId:s}=t;return{...e,[s]:!1}}}return e},hasAllSitesList:$,jetpackSiteDisconnected:(e=!1,t)=>{switch(t.type){case l.ftJ:return!1;case l.Oh9:return!0}return e}}),x={currentUser:a.ZP,dataRequests:i.I6,sites:R},P=(0,n.U)(x)},"./state/selectors/is-vip-site.js":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("./state/selectors/get-raw-site.ts");function a(e,t){const s=(0,n.Z)(e,t);return s&&s.hasOwnProperty("is_vip")?s.is_vip:null}},"./state/sites/features/reducer.js":(e,t,s)=>{s.d(t,{T:()=>a,E:()=>r});var n=s("./state/action-types.ts");const a={data:null,error:null,hasLoadedFromServer:!1,isRequesting:!1};function i(e,t,s){return Object.assign({},e,{[t]:Object.assign({},a,e[t],s)})}function r(e={},{type:t,siteId:s,features:a,error:r}){switch(t){case n.fa4:return i(e,s,{error:null,isRequesting:!0});case n.xNf:return i(e,s,{error:null,hasLoadedFromServer:!0,isRequesting:!1,data:a});case n.YCt:return i(e,s,{error:r,isRequesting:!1})}return e}},"./state/sites/intro-offers/types.ts":(e,t,s)=>{let n;s.d(t,{e:()=>n}),function(e){e.Pending="pending",e.Success="success",e.Failed="failed"}(n||(n={}))},"./state/sites/plans/reducer.js":(e,t,s)=>{s.d(t,{T:()=>i,z:()=>o});var n=s("../node_modules/lodash-es/omit.js"),a=s("./state/action-types.ts");const i={data:null,error:null,hasLoadedFromServer:!1,isRequesting:!1};function r(e,t,s){return Object.assign({},e,{[t]:Object.assign({},i,e[t],s)})}function o(e={},t){switch(t.type){case a.gNn:return r(e,t.siteId,{error:null,isRequesting:!0});case a.Rmh:return r(e,t.siteId,{error:null,hasLoadedFromServer:!0,isRequesting:!1,data:t.plans});case a.$MQ:return r(e,t.siteId,{error:t.error,isRequesting:!1});case a.XLI:return(0,n.Z)(e,t.siteId)}return e}},"./state/sites/products/reducer.js":(e,t,s)=>{s.d(t,{T:()=>a,R:()=>r});var n=s("./state/action-types.ts");const a={data:null,error:null,hasLoadedFromServer:!1,isRequesting:!1};function i(e,t,s){return Object.assign({},e,{[t]:Object.assign({},a,e[t],s)})}function r(e={},t){switch(t.type){case n.eO9:return i(e,t.siteId,{error:null,isRequesting:!0});case n.S3d:return i(e,t.siteId,{error:null,hasLoadedFromServer:!0,isRequesting:!1,data:t.products});case n.whB:return i(e,t.siteId,{error:t.error,isRequesting:!1})}return e}},"./state/sites/schema.js":(e,t,s)=>{s.d(t,{K:()=>n,W:()=>a});const n={type:"object",patternProperties:{"^\\d+$":{type:"object",required:["ID","name"],properties:{ID:{type:"number"},name:{type:"string"},URL:{type:"string"},jetpack:{type:"boolean"},icon:{type:"object",properties:{img:{type:"string"},ico:{type:"string"},media_id:{type:"number"}}},visible:{type:"boolean"},is_private:{type:"boolean"},is_vip:{type:"boolean"},options:{type:"object"},meta:{type:"object"},is_multisite:{type:"boolean"},capabilities:{type:"object",patternProperties:{"^[a-z_]+$":{type:"boolean"}}},plan:{type:"object",required:["product_id","product_slug"],properties:{product_id:{type:["number","string"]},product_slug:{type:"string"},product_name_short:{type:["string","null"]},expired:{type:"boolean"},user_is_owner:{type:"boolean"},is_free:{type:"boolean"}}},single_user_site:{type:"boolean"},updates:{type:"object",properties:{jp_version:{type:"string"},plugins:{type:"number"},themes:{type:"number"},total:{type:"number"},translations:{type:"number"},wordpress:{type:"number"},wp_version:{type:"string"}}},lang:{type:"string"}}}},additionalProperties:!1},a={type:["boolean","null"]}},"./state/sites/selectors/get-site-plan-slug.js":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("./state/sites/selectors/get-site-plan.ts");function a(e,t){return(0,n.Z)(e,t)?.product_slug??null}},"./state/sites/selectors/get-site-plan.ts":(e,t,s)=>{s.d(t,{Z:()=>a});var n=s("./state/selectors/get-raw-site.ts");function a(e,t){if(!t)return null;const s=(0,n.Z)(e,t);return s?s.plan?.expired?s.jetpack&&!s.is_wpcom_atomic?{product_id:2002,product_slug:"jetpack_free",product_name_short:"Free",free_trial:!1,expired:!1}:{product_id:1,product_slug:"free_plan",product_name_short:"Free",free_trial:!1,expired:!1}:s.plan:null}},"./state/ui/selectors/get-section-name.js":(e,t,s)=>{s.d(t,{Z:()=>i});var n=s("../node_modules/lodash-es/get.js"),a=s("./state/ui/selectors/get-section.js");function i(e){return(0,n.Z)((0,a.Z)(e),"name",null)}},"../packages/accessible-focus/src/index.ts":(e,t,s)=>{s.d(t,{Z:()=>r});const n=[9,32,37,38,39,40],a=["Tab"," ","Spacebar","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"];let i=!1;function r(){document.addEventListener("keydown",(function(e){i||function(e){let t;return void 0!==e.key?t=e.key:void 0!==e.keyIdentifier?t=e.keyIdentifier:void 0!==e.keyCode&&(t=e.keyCode),void 0!==t&&("string"==typeof t?-1!==a.indexOf(t):-1!==n.indexOf(t))}(e)&&(i=!0,document.documentElement.classList.add("accessible-focus"))})),document.addEventListener("mouseup",(function(){i&&(i=!1,document.documentElement.classList.remove("accessible-focus"))}))}}}]);

}
/*
     FILE ARCHIVED ON 16:27:46 Jun 07, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 04:52:14 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.491
  exclusion.robots: 0.025
  exclusion.robots.policy: 0.016
  esindex: 0.009
  cdx.remote: 51.159
  LoadShardBlock: 109.006 (3)
  PetaboxLoader3.datanode: 101.287 (5)
  load_resource: 350.57 (2)
  PetaboxLoader3.resolve: 237.524 (2)
*/