/*! For license information please see editor.js.LICENSE.txt */
(()=>{var e={61:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(56427),s=r(29491),o=r(86087),a=r(27723),i=r(51113),l=r(62510),c=r(31249),u=r(95789),d=r(51609),p=r(63098),h=r(70629),m=r(10790);const __=a.__;function g({className:e,disabled:t=!1,value:r="",placeholder:a="",showButtonLabels:d=!0,isTransparent:g=!1,state:f="init",showGuideLine:b=!1,error:v,requestsRemaining:k,showUpgradeMessage:y=!1,showFairUsageMessage:x=!1,upgradeUrl:j,wrapperRef:w,onChange:_,onSend:C,onStop:A,onClose:S,onUndo:E,onUpgrade:N,onTryAgain:T,lastAction:B,blockType:P},I){const M="requesting"===f||"suggesting"===f,[L,R]=(0,o.useState)(!1),[D,F]=(0,o.useState)(r||null),O=(0,o.useRef)(null),z=r?.length<=0&&"done"===f;(0,o.useImperativeHandle)(I,()=>O.current),(0,o.useEffect)(()=>{L&&O?.current?.focus()},[L]);const U=(0,o.useCallback)(()=>{F(r),R(!1),C?.(r)},[C,r]),H=(0,o.useCallback)(e=>{_?.(e),"init"!==f&&R(D?e!==D:e.length>0)},[_,D,f]),q=(0,o.useCallback)(()=>{A?.()},[A]),V=(0,o.useCallback)(()=>{S?.()},[S]),G=(0,o.useCallback)(()=>{E?.()},[E]),$=(0,o.useCallback)(e=>{N?.(e)},[N]),W=(0,o.useCallback)(()=>{T?.()},[T]);(0,s.useKeyboardShortcut)("enter",e=>{e.preventDefault(),U()},{target:O});const Z=(0,m.jsx)(m.Fragment,{children:M?(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:q,variant:"secondary",label:__("Stop request","jetpack"),children:d?__("Stop","jetpack"):(0,m.jsx)(i.A,{icon:c.A})}):(0,m.jsxs)(m.Fragment,{children:[r?.length>0&&(0,m.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:U,variant:"primary",disabled:!r?.length||t,label:__("Send request","jetpack"),children:d?__("Generate","jetpack"):(0,m.jsx)(i.A,{icon:l.A})})}),z&&(0,m.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:(0,m.jsxs)(n.Flex,{gap:1,role:"group",className:"jetpack-components-ai-control__button-group",children:[(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Undo","jetpack"),onClick:G,tooltipPosition:"top",children:(0,m.jsx)(i.A,{icon:u.A})}),(0,m.jsx)(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Close","jetpack"),onClick:V,variant:"tertiary",children:__("Close","jetpack")})]})})]})});let J=null;return v?.message?J=(0,m.jsx)(p.Kw,{error:v.message,code:v.code,onTryAgainClick:W,onUpgradeClick:$,upgradeUrl:j}):x?J=(0,m.jsx)(p.k9,{}):y?J=(0,m.jsx)(p.AK,{requestsRemaining:k,onUpgradeClick:$,upgradeUrl:j}):b&&(J=z?(0,m.jsx)(p.Yj,{aiFeedbackThumbsOptions:{showAIFeedbackThumbs:!0,ratedItem:"ai-assistant",prompt:B,block:P}}):(0,m.jsx)(p.Yj,{})),(0,m.jsx)(h.A,{className:e,disabled:t||M,value:r,placeholder:a,isTransparent:g,state:f,onChange:H,actions:Z,message:J,promptUserInputRef:O,wrapperRef:w})}const f=(0,d.forwardRef)(g)},125:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});var n=r(96865),s=r(74997),o=r(52998);const a=new n.OO({fixes:["paragraph"]});class i extends o.mt{constructor(e){super(e,["paragraph"])}getContent(){const e=this.getBlock();return t=(0,s.getBlockContent)(e),a.render({content:t});var t}}},241:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(63162),s=r(94715),o=r(56427),a=r(86087),i=r(27723),l=r(13022),c=r(66087),u=r(94107),d=r(33170),p=r(30889),h=r(34308),m=r(10790);const __=i.__;class g extends a.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,a.createRef)(),this.btnNextRef=(0,a.createRef)(),this.btnPrevRef=(0,a.createRef)(),this.paginationRef=(0,a.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{e(__("The Swiper library could not be loaded.","jetpack"))})}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:r,delay:n,effect:s,images:o,onError:a}=this.props;if(t===e.align&&(0,c.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),s!==e.effect||r!==e.autoplay||n!==e.delay||o!==e.images){let t;t=this.swiperIndex?o.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{a(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:r,effect:a,images:i}=this.props;return(0,m.jsx)("div",{className:t,"data-autoplay":e||null,"data-delay":e?r:null,"data-effect":a,style:{"--aspect-ratio":i[0]?.aspectRatio?`calc(${i[0].aspectRatio})`:void 0},children:(0,m.jsxs)("div",{className:"wp-block-jetpack-slideshow_container swiper",ref:this.slideshowRef,children:[(0,m.jsx)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper",children:i.map(({alt:e,caption:t,id:r,url:a,aspectRatio:i},c)=>(0,m.jsx)("li",{className:(0,l.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,n.isBlobURL)(a)&&"is-transient"),children:(0,m.jsxs)("figure",{children:[(0,m.jsx)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${r}`,"data-id":r,"data-aspect-ratio":i,src:a}),(0,n.isBlobURL)(a)&&(0,m.jsx)(o.Spinner,{}),t&&(0,m.jsx)(s.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})]})},r?`${r}-${c}`:`${a}-${c}`))}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,m.jsx)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,m.jsx)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})]})})}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,d.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!1,initialSlide:e,followFinger:!1,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:p.y}},{init:h.rQ,imagesReady:h.bz,paginationRender:h.n7,transitionEnd:h.WF})}const f=g},254:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(27723),s=r(6133);const __=n.__,o={attributes:{subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},subscribeButton:{type:"string",default:__("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},migrate:e=>({subscribePlaceholder:e.subscribePlaceholder,showSubscribersTotal:e.showSubscribersTotal,buttonOnNewLine:!0,submitButtonText:e.submitButtonText,buttonBackgroundColor:e.backgroundButtonColor?e.backgroundButtonColor:"primary",customButtonBackgroundColor:e.customBackgroundButtonColor,textColor:e.textButtonColor?e.textButtonColor:"background",customTextColor:e.customTextButtonColor}),save:s.A}},324:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(88015),s=r(65275);const o={attributes:n.A,migrate:e=>({includeSocialFollowers:!0,...e}),save:s.A}},333:(e,t,r)=>{"use strict";r.d(t,{wc:()=>a});var n=r(85985),s=r(66087);function o(){return(0,n.$i)()?.allowedMimeTypes??[]}function a(e,t){if(!e||!t)return!1;if(!o())return!1;const r=(n=t)?(0,s.pickBy)(o(),e=>e.startsWith(`${n}/`)):{};var n;const a=(i=r)?Object.keys(i).map(e=>e.split("|")).flat():[];var i;if("string"==typeof e){const t=e.split(".").pop();return t&&a.includes(t)}return"object"==typeof e&&(e.type&&Object.values(r).includes(e.type))}},434:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(97999),s=r(94715),o=r(56427),a=r(86087),i=r(27723),l=r(78218),c=r(63757),u=r(94530),d=r(86239),p=r(71969),h=r(10790);const __=i.__;const m=function({attributes:e,setAttributes:t}){const r=(0,s.useBlockProps)(),m=(0,l.y)(p.attributes,e),{showReblogButton:g,showAvatars:f}=m,b=!(0,n.isWpcomPlatformSite)(),v=[c,u,d],k=e=>e.preventDefault();return(0,h.jsxs)("div",{...r,children:[(0,h.jsxs)(s.InspectorControls,{children:[b&&(0,h.jsx)("div",{className:"wp-block-jetpack-like__learn-more",children:(0,h.jsx)(o.ExternalLink,{href:"https://jetpack.com/support/likes/",children:__("Learn more","jetpack")})}),(0,h.jsxs)(o.PanelBody,{title:__("Settings","jetpack"),children:[(0,n.isSimpleSite)()&&(0,h.jsx)(o.ToggleControl,{label:__("Show reblog button","jetpack"),checked:g,onChange:()=>t({showReblogButton:!g}),__nextHasNoMarginBottom:!0}),(0,h.jsx)(o.ToggleControl,{label:__("Show avatars","jetpack"),checked:f,onChange:()=>t({showAvatars:!f}),__nextHasNoMarginBottom:!0})]})]},"like-inspector"),(0,h.jsxs)("div",{className:"wpl-likebox",children:[(0,n.isSimpleSite)()&&g&&(0,h.jsx)("div",{className:"wpl-button reblog",children:(0,h.jsx)("a",{href:"#",title:__("Reblog this post on your main site.","jetpack"),className:"reblog sd-button",rel:"nofollow",children:(0,h.jsx)("span",{children:__("Reblog","jetpack")})})}),(0,h.jsx)("div",{className:"wpl-button like",children:(0,h.jsx)("a",{href:"#",className:"sd-button like",rel:"nofollow",onClick:k,children:(0,h.jsx)("span",{children:__("Like","jetpack")})})}),f&&(0,h.jsx)("ul",{className:"wpl-avatars",children:v.map((e,t)=>(0,h.jsx)("li",{className:"wp-liker-me",children:(0,h.jsx)("a",{className:"wpl-liker",href:"#",rel:"nofollow",onClick:k,children:(0,h.jsx)("img",{src:e,className:"avatar avatar-30",width:30,height:30,alt:""})})},`liker-${t}`))}),(0,h.jsx)("div",{className:"wpl-count",children:(0,h.jsx)("span",{className:"wpl-count-text",children:(0,h.jsx)("a",{href:"#",onClick:k,children:(0,a.createInterpolateElement)((0,i.sprintf)(
// translators: %1$d: Number of likes
__("%1$d likes","jetpack"),v.length),{span:(0,h.jsx)("span",{className:"wpl-count-number"})})})})})]})]})}},692:e=>{"use strict";e.exports=window.wp.notices},1063:(e,t,r)=>{"use strict";var n=r(94715),s=r(94375),o=r(88795),a=r(49108),i=r(89218),l=r(10790);(0,s.M)(o,{edit:i.A,save:()=>{const e=n.useBlockProps.save();return(0,l.jsx)("div",{...e,children:(0,l.jsx)(n.InnerBlocks.Content,{})})},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},deprecated:a.A})},1149:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(86087);const s=(e,t,r)=>{(0,n.useEffect)(()=>{const n=setTimeout(()=>e(r),t);return()=>clearTimeout(n)},[r,e,t])}},1176:(e,t,r)=>{"use strict";r.d(t,{N:()=>u});var n=r(96865),s=r(56427),o=r(27723),a=r(51609),i=r(2162),l=r(62402),c=r(10790);const __=o.__;function u({minWords:e=10,maxWords:t=100,disabled:r,words:o,onWordsNumberChange:u,language:d,onLanguageChange:p,tone:h,onToneChange:m}){const[g,f]=(0,a.useState)(!1);const b=d?.split(" ")[0],v=n.so[b]?.label||__("Language","jetpack"),k=n.oZ[h]?.label||__("Tone","jetpack");return(0,c.jsxs)("div",{className:"jetpack-ai-generate-excerpt-control",children:[(0,c.jsxs)(s.BaseControl,{className:"jetpack-ai-generate-excerpt-control__header",__nextHasNoMarginBottom:!0,children:[(0,c.jsx)(s.BaseControl.VisualLabel,{children:__("Settings","jetpack")}),(0,c.jsx)(s.Button,{label:__("Advanced AI options","jetpack"),icon:n.cj,onClick:function(){f(e=>!e)},"aria-pressed":g,isSmall:!0})]}),g&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i.HU,{disabled:r,onChange:p,value:d,label:v}),(0,c.jsx)(l.hN,{disabled:r,label:k,value:h,onChange:m})]}),(0,c.jsx)(s.RangeControl,{label:__("Desired length","jetpack"),value:o,onChange:u,min:e,max:t,help:__("Sets the desired length in words for the auto-generated excerpt. The final count may vary due to how AI works.","jetpack"),showTooltip:!1,disabled:r,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})]})}},1455:e=>{"use strict";e.exports=window.wp.apiFetch},1456:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(86087),s=r(27723),o=r(13022),a=r(35463),i=r(31238),l=r(56366),c=r(90256),u=r(88139),d=r(10790);const __=s.__;class p extends n.Component{renderImage(e,t){const{columns:r,imageFilter:n,images:o,isSave:a,linkTo:i,layoutStyle:l,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */
__("Open image %1$d of %2$d in full-screen","jetpack"),t+1,o.length),k=u.A,{src:y,srcSet:x}=(0,c.A)(e,{layoutStyle:l});return(0,d.jsx)(k,{alt:e.alt,"aria-label":v,columns:r,height:e.height,id:e.id,imageFilter:n,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:f===t,link:e.link,linkTo:i,customLink:e.customLink,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:o.length>1,srcSet:x,url:y,width:e.width},t)}render(){const{align:e,children:t,className:r,columns:n,images:s,layoutStyle:u,roundedCorners:p,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,c.s)(u)?l.A:i.A,v=this.props.images.map(this.renderImage,this),k=u!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{style:m,className:(0,o.A)(r,{[`has-rounded-corners-${k}`]:k>0}),children:[(0,d.jsx)(b,{align:e,columns:n,columnWidths:g?f:void 0,images:s,layoutStyle:u,renderedImages:v,onResize:g?void 0:h}),t]})}}},1624:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/podcast-player","title":"Podcast Player","description":"Select and play episodes from a single podcast.","keywords":["audio","embed"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"","supports":{"align":["wide","full"],"spacing":{"padding":true,"margin":true},"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true},"attributes":{"url":{"type":"string"},"selectedEpisodes":{"type":"array","default":[]},"itemsToShow":{"type":"integer","default":5},"showCoverArt":{"type":"boolean","default":true},"showEpisodeTitle":{"type":"boolean","default":true},"showEpisodeDescription":{"type":"boolean","default":true},"primaryColor":{"type":"string"},"customPrimaryColor":{"type":"string"},"hexPrimaryColor":{"type":"string"},"secondaryColor":{"type":"string"},"customSecondaryColor":{"type":"string"},"hexSecondaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"hexBackgroundColor":{"type":"string"},"exampleFeedData":{"type":"object"}},"example":{"attributes":{"customPrimaryColor":"GREEN","hexPrimaryColor":"GREEN","exampleFeedData":{"title":"Jetpack Example Podcast","link":"https://jetpack.com","cover":"https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160","tracks":[{"id":"3","title":"3. Our third episode","duration":"14:58"},{"id":"2","title":"2. Interview with a special guest","duration":"19:17"},{"id":"1","title":"1. Welcome to Example Podcast","duration":"11:25"}]}}}}')},1629:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-chat","title":"Jetpack AI Search","description":"Provide a summarized answer to questions, trained on the sites content. Powered by AI.","keywords":["AI","GPT","Chat","Search"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"","supports":{"align":true,"alignWide":true,"customClassName":true,"className":true,"html":false,"multiple":false,"reusable":false},"attributes":{"askButtonLabel":{"type":"string"},"placeholder":{"type":"string"},"showCopy":{"type":"boolean","default":true},"showFeedback":{"type":"boolean","default":true},"showSources":{"type":"boolean","default":true}}}')},1661:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});const n="jetpack-ai-breve"},1729:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);const o=({attributes:e})=>{const t=n.useBlockProps.save(),{imageBefore:r,imageAfter:o,caption:a,orientation:i}=e;return(0,s.jsxs)("figure",{...t,children:[(0,s.jsxs)("div",{className:"juxtapose","data-mode":i||"horizontal",children:[(0,s.jsx)("img",{id:r.id,src:r.url,alt:r.alt,width:r.width,height:r.height,className:"image-compare__image-before"}),(0,s.jsx)("img",{id:o.id,src:o.url,alt:o.alt,width:o.width,height:o.height,className:"image-compare__image-after"})]}),!n.RichText.isEmpty(a)&&(0,s.jsx)(n.RichText.Content,{tagName:"figcaption",value:a})]})}},1807:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:r,...n}=e;return{...n,showFullscreenButton:!0,className:t}},save:r(66730).A}},1811:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r(47143);const s=async()=>{const{clearSelectedBlock:e}=(0,n.dispatch)("core/block-editor"),{enableComplementaryArea:t}=(0,n.dispatch)("core/interface");e(),await t("core/edit-post","jetpack-sidebar/jetpack");const r=document.querySelector(".jetpack-ai-assistant-panel"),s=r?.classList.contains("is-opened"),o=r?.querySelector("h2 button");s&&o?.click(),setTimeout(()=>{o?.click()},50)}},1990:(e,t,r)=>{"use strict";r.d(t,{G:()=>l,W:()=>a});var n=r(27723),s=r(29726);const __=n.__,o={"add a new product":{[s._$]:__("Add a new payment plan","jetpack"),[s.h5]:__("Add a new subscription","jetpack")},"product not found":{[s._$]:__("Payment plan not found","jetpack"),[s.h5]:__("Subscription not found","jetpack")},"select a product":{[s._$]:__("Select a payment plan","jetpack"),[s.h5]:__("Select a subscription","jetpack")},"default new product title":{[s._$]:__("Monthly Subscription","jetpack"),[s.h5]:__("Monthly Subscription","jetpack")},"manage your products":{[s._$]:__("Manage your payment plans.","jetpack"),[s.h5]:__("Manage your subscriptions.","jetpack")},"saving product":{[s._$]:__("Saving payment plan…","jetpack"),[s.h5]:__("Saving subscription…","jetpack")},"add product":{[s._$]:__("Add payment plan","jetpack"),[s.h5]:__("Add subscription","jetpack")},"product requires a name":{[s._$]:__("Payment plan requires a name","jetpack"),[s.h5]:__("Subscription requires a name","jetpack")},"product requires a valid price":{[s._$]:__("Payment plan requires a valid price","jetpack"),[s.h5]:__("Subscription requires a valid price","jetpack")},"successfully created product":{[s._$]:__("Successfully created payment plan","jetpack"),[s.h5]:__("Successfully created subscription","jetpack")},"there was an error when adding the product":{[s._$]:__("There was an error when adding the payment plan.","jetpack"),[s.h5]:__("There was an error when adding the subscription.","jetpack")},"invalid product configured for this block":{[s._$]:__("Invalid payment plan configured for this block.","jetpack"),[s.h5]:__("Invalid subscription configured for this block.","jetpack")},"the button will be hidden from your visitors until you select a valid product":{[s._$]:__("The button will be hidden from your visitors until you select a valid payment plan.","jetpack"),[s.h5]:__("The subscribe button will be hidden from your visitors until you select a valid subscription.","jetpack")},"mark this product as a donation":{[s._$]:__("Mark this payment plan as a donation","jetpack"),[s.h5]:__("Mark this subscription as a donation","jetpack")}};function a(e,t=s._$){return o?.[e]?.[t]||null}const i={"1 month":__("Monthly Subscription","jetpack"),"1 year":__("Yearly Subscription","jetpack"),"one-time":__("Subscription","jetpack")};function l(e){return i[[e]]??""}},2162:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g,HU:()=>f});var n=r(96865),s=r(85985),o=r(56427),a=r(27723),i=r(51113),l=r(29115),c=r(84066),u=r(10790);const __=a.__,d=["en","es","fr","de","it","pt","ru","zh","ja","ar","hi","ko"],p=window?.Jetpack_Editor_Initial_State?.siteLocale||navigator?.language,h=p?.split("-")[0]||"en",m=(p?.split("-"),({value:e,onChange:t})=>{const r=[...d.filter(e=>e!==h)];return d.includes(h)&&r.unshift(h),(0,u.jsx)(o.MenuGroup,{label:__("Select language","jetpack"),children:r.map(r=>(0,u.jsx)(o.MenuItem,{onClick:()=>t(r+" ("+n.so[r].label+")"),isSelected:e===r,children:n.so[r].label},`key-${r}`))})});function g({value:e=h,label:t=n.u0,onChange:r,disabled:a=!1}){const{tracks:l}=(0,s.st)();return a?(0,u.jsx)(o.Tooltip,{text:t,children:(0,u.jsx)(o.Button,{disabled:!0,children:(0,u.jsx)(i.A,{icon:c.A})})}):(0,u.jsx)(o.ToolbarDropdownMenu,{icon:c.A,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&l.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"i18n"})},children:()=>(0,u.jsx)(m,{value:e,onChange:r})})}function f({value:e=h,label:t=n.u0,onChange:r,disabled:s=!1}){return(0,u.jsx)(o.DropdownMenu,{className:"ai-assistant__i18n-dropdown",icon:c.A,label:t,toggleProps:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"ai-assistant__i18n-dropdown__toggle-label",children:t}),(0,u.jsx)(i.A,{icon:l.A})]}),disabled:s},children:({onClose:t})=>(0,u.jsx)(m,{onChange:(...e)=>{r(...e),t()},value:e})})}},2164:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(94715),s=r(56427),o=r(27723),a=r(10790);const __=o.__,_x=o._x,i=[{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Original","image style","jetpack"),value:void 0},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Black and White","image style","jetpack"),value:"black-and-white"},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})]}),title:_x("Sepia","image style","jetpack"),value:"sepia"},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})]}),title:"1977",value:"1977"},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Clarendon","image style","jetpack"),value:"clarendon"},{icon:(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,a.jsx)(s.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})]}),title:_x("Gingham","image style","jetpack"),value:"gingham"}],l=__("Pick an image filter","jetpack"),c=(0,a.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(s.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"})]});function u({value:e,onChange:t}){return(0,a.jsx)(s.Dropdown,{placement:"bottom-start",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:({onToggle:e,isOpen:t})=>(0,a.jsx)(n.BlockControls,{children:(0,a.jsx)(s.Toolbar,{label:l,children:(0,a.jsx)(s.ToolbarButton,{onClick:e,"aria-expanded":t,"aria-haspopup":"true",label:l,showTooltip:!0,icon:c})})}),renderContent:({onClose:r})=>(0,a.jsx)(s.NavigableMenu,{className:"tiled-gallery__filter-picker-menu",children:i.map(({icon:n,title:o,value:i})=>{return(0,a.jsx)(s.MenuItem,{className:e===i?"is-active":void 0,icon:n,isSelected:e===i,onClick:(l=i,()=>{t(e===l?void 0:l),r()}),role:"menuitemcheckbox",children:o},i||"original");var l})})})}},2166:(e,t,r)=>{"use strict";r.d(t,{R:()=>a});var n=r(51609),s=r(10790);const o=(0,n.createContext)({}),a=({value:e,children:t})=>(0,s.jsx)(o.Provider,{value:e,children:t})},2194:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(94715),s=r(13022),o=r(90907),a=r(62393),i=r(10790);const l=({attributes:e})=>{const{align:t,mapDetails:r,points:l,zoom:c,mapCenter:u,markerColor:d,scrollToZoom:p,mapHeight:h,showFullscreenButton:m}=e,g=n.useBlockProps.save(),{className:f}=g,b=(0,o.D)(a.A,f),v=l.map((e,t)=>{const{longitude:r,latitude:n}=e.coordinates,s="https://www.google.com/maps/search/?api=1&query="+n+","+r;return(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:s,children:e.title})},t)});return(0,i.jsx)("div",{...g,className:(0,s.A)(f,t?`align${t}`:null),"data-map-style":b,"data-map-details":r,"data-points":JSON.stringify(l),"data-zoom":c,"data-map-center":JSON.stringify(u),"data-marker-color":d,"data-scroll-to-zoom":p||null,"data-map-height":h||null,"data-show-fullscreen-button":m||null,children:l.length>0&&(0,i.jsx)("ul",{children:v})})}},2230:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o({attributes:e}){const t=n.useBlockProps.save(),{url:r}=e;return(0,s.jsx)("a",{...t,href:r,children:r})}},2274:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(39384),s=r(85985),o=r(82201),a=r(27723),i=r(51609),l=r(10790);const __=a.__,c=()=>{const e=window?.location?.pathname.replace(/.*?wp-admin\//,""),t=window?.location?.search;return`${e}${t}`},u=({block:e,explanation:t=null})=>{const[r,a]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),{handleConnectUser:p}=(0,n.useConnection)({from:"editor",redirectUri:c(),autoTrigger:!1,skipPricingPage:!0}),{autosave:h}=(0,s.ZR)(),{tracks:m}=(0,s.st)();return(0,i.useEffect)(()=>{r&&p()},[r,p]),(0,l.jsxs)("div",{children:[(0,l.jsx)(o.cb,{buttonText:__("Connect Jetpack","jetpack"),className:"jetpack-connect-banner-nudge",description:__("Your account is not connected to Jetpack at the moment.","jetpack"),goToCheckoutPage:t=>{d(!0),h(t).then(()=>{m.recordEvent("jetpack_editor_connect_banner_click",{block:e}),a(!0),d(!1)})},checkoutUrl:"#",isRedirecting:r||u}),(0,l.jsx)("div",{className:"jetpack-connect-banner",children:t&&(0,l.jsx)("div",{className:"jetpack-connect-banner__explanation",children:(0,l.jsx)("p",{children:t})})})]})}},2369:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-2-78fc061b3eff2af1311b.jpg"},2467:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){function s(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,s,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var s,o,a,c;if(i(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(s=l(e))>0&&a.length>s&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=u.bind(n);return s.listener=r,n.wrapFn=s,s}function p(e,t,r){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?r?[s.listener||s]:[s]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var c=l.length,u=m(l,c);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,s=o;break}if(s<0)return this;0===s?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2500:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},2632:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(10402),s=r(54711);function o(e){const t=e?.innerText,r=(0,s.D)(e),o=r?.innerText,a=(0,n.u)(r,e),i=new RegExp(t,"gi"),l=Array.from(o.matchAll(i)).map(e=>e.index);return{target:t,parent:r,text:o,occurrence:Math.max(1,l.indexOf(a)+1)}}},2668:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),s=r(10790);function o(){const e=n.useBlockProps.save();return(0,s.jsx)("div",{...e,children:(0,s.jsx)(n.InnerBlocks.Content,{})})}},2699:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=/\r\n?|\n/g,s=/\0/g;function o(e){let t;t=e.src.replace(n,"\n"),t=t.replace(s,"�"),e.src=t}},2761:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(47143),s=r(38062),o=r(12365),a=r(10179),i=r(10790);function l({attributes:e,backgroundColor:t,clientId:r,context:l,fallbackBackgroundColor:c,fallbackTextColor:u,setAttributes:d,setBackgroundColor:p,setTextColor:h,textColor:m,gradientValue:g,setGradient:f,isGradientAvailable:b}){const{align:v,borderRadius:k}=e,y="jetpack/parentBlockWidth"in l,x=y?l["jetpack/parentBlockWidth"]:e.width,j=(0,n.useSelect)(e=>{const{getBlock:t,getBlockRootClientId:n}=e("core/block-editor");return t(n(r))}),{updateBlockAttributes:w}=(0,n.useDispatch)("core/block-editor");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.A,{backgroundColor:t,fallbackBackgroundColor:c,fallbackTextColor:u,gradientValue:g,setBackgroundColor:p,setGradient:f,setTextColor:h,textColor:m,isGradientAvailable:b}),(0,i.jsx)(o.A,{borderRadius:k,setAttributes:d}),(0,i.jsx)(s.D,{align:v,width:x,onChange:e=>{y?w(j.clientId,{width:e}):d({width:e})}})]})}},2905:(e,t,r)=>{"use strict";function n(e,t){return fetch(`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(e)}.json?access_token=${encodeURIComponent(t)}`).then(e=>e.json())}r.d(t,{I:()=>n})},3120:(e,t,r)=>{"use strict";r.d(t,{e:()=>h});var n=r(85985),s=r(94715),o=r(29491),a=r(47143),i=r(86087),l=r(95104),c=r(26845),u=r(23887),d=r(10790);const p=(0,o.createHigherOrderComponent)(e=>t=>{const{name:r,clientId:o,isSelected:p,attributes:h,setAttributes:m}=t||{},g=(0,n.tu)(r);if(!g)return(0,d.jsx)(e,{...t});const f=(0,n.sH)(r),b=(0,n.GT)(r),[v,k]=(0,i.useState)(!f),[y,x]=(0,i.useState)(!1),j="editor-canvas",w=(0,a.useSelect)(e=>e("core/block-editor").hasSelectedInnerBlock(o,!0),[o]),{hasParentBanner:_}=(0,i.useContext)(l.j)||{},C=(p||w)&&v&&!_,{tracks:A}=(0,n.st)(),S=(0,i.useMemo)(()=>({plan:g,blockName:r,context:j,tracks:A}),[g,r,A]);(0,i.useEffect)(()=>{C&&x(!0)},[C,x]),(0,i.useEffect)(()=>{!y&&C&&(0,u.r)(S)},[y,S,C]),(0,i.useEffect)(()=>k(!f),[h,k,f]),(0,i.useEffect)(()=>{m({shouldDisplayFrontendBanner:!_})},[m,_]);const E=(0,s.useBlockProps)();return(0,d.jsx)(l.b,{onBannerVisibilityChange:k,hasParentBanner:C,children:(0,d.jsxs)("div",{ref:E.ref,style:{maxWidth:"unset"},children:[(0,d.jsx)(c.Ay,{className:`is-${r.replace(/\//,"-")}-paid-block`,title:null,align:h?.align,visible:C,description:b?.description,requiredPlan:g,context:j,onRedirect:()=>(0,u.W)(S)}),(0,d.jsx)(e,{...t})]})})},"withUpgradeBanner");function h(e,t){return(0,n.tu)(t)?{...e,edit:p(e.edit)}:e}},3161:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(94715),s=r(86087),o=r(13022),a=r(53889),i=r(10790);const l=0,c=1,u=15,d=10,p="16px";function h({className:e,attributes:t}){const{subscribePlaceholder:r,showSubscribersTotal:h,buttonOnNewLine:m,submitButtonText:g,emailFieldBackgroundColor:f,customEmailFieldBackgroundColor:b,emailFieldGradient:v,customEmailFieldGradient:k,buttonBackgroundColor:y,customButtonBackgroundColor:x,buttonGradient:j,customButtonGradient:w,textColor:_,customTextColor:C,fontSize:A,customFontSize:S,borderRadius:E,borderWeight:N,borderColor:T,customBorderColor:B,padding:P,spacing:I,buttonWidth:M}=t,L=!!n.__experimentalGetGradientClass,R=(0,n.getColorClassName)("color",_),D=(0,n.getFontSizeClass)(A),F=(0,n.getColorClassName)("border-color",T),O=(0,n.getColorClassName)("background-color",y),z=L?(0,n.__experimentalGetGradientClass)(j):void 0,U=(0,n.getColorClassName)("background-color",f),H=L?(0,n.__experimentalGetGradientClass)(v):void 0,q=(0,o.A)(0===E?"no-border-radius":void 0,D,F),V=(0,o.A)(q,_?"has-text-color":void 0,R,y||j?"has-background":void 0,O,z),G=(0,o.A)(q,U,H),$=!U&&k?k:b,W=!O&&w?w:x,Z=M||void 0,J={subscribe_placeholder:r!==a.A.subscribePlaceholder.default?r:void 0,show_subscribers_total:h,button_on_newline:m,submit_button_text:g!==a.A.submitButtonText.default?g:void 0,custom_background_emailfield_color:$,custom_background_button_color:W,custom_text_button_color:C,custom_font_size:S||p,custom_border_radius:E||l,custom_border_weight:N||c,custom_border_color:B,custom_button_width:Z,custom_padding:P||u,custom_spacing:I||d,submit_button_classes:V,email_field_classes:G,show_only_email_and_button:!0},K=Object.entries(J).reduce((e,[t,r])=>void 0===r?e:e+` ${t}="${r}"`,"");return(0,i.jsx)("div",{className:(0,o.A)(e,"wp-block-jetpack-subscriptions__supports-newline",m?"wp-block-jetpack-subscriptions__use-newline":void 0,h?"wp-block-jetpack-subscriptions__show-subs":void 0),children:(0,i.jsx)(s.RawHTML,{children:`[jetpack_subscription_form${K}]`})})}},3175:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>b});var n,s=r(25006),o=r(82826),a=r(72485);!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(n||(n={}));var i,l,c;function u(e){return e>=n.ZERO&&e<=n.NINE}function d(e){return e>=n.UPPER_A&&e<=n.UPPER_F||e>=n.LOWER_A&&e<=n.LOWER_F}function p(e){return e===n.EQUALS||function(e){return e>=n.UPPER_A&&e<=n.UPPER_Z||e>=n.LOWER_A&&e<=n.LOWER_Z||u(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(i||(i={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(l||(l={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(c||(c={}));class h{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=c.Strict}startEntity(e){this.decodeMode=e,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l.EntityStart:return e.charCodeAt(t)===n.NUM?(this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=l.NamedEntity,this.stateNamedEntity(e,t));case l.NumericStart:return this.stateNumericStart(e,t);case l.NumericDecimal:return this.stateNumericDecimal(e,t);case l.NumericHex:return this.stateNumericHex(e,t);case l.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===n.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const s=r-t;this.result=this.result*Math.pow(n,s)+parseInt(e.substr(t,s),n),this.consumed+=s}}stateNumericHex(e,t){const r=t;for(;t>14;for(;t>14,0!==o){if(a===n.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==c.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&i.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~i.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case l.NamedEntity:return 0===this.result||this.decodeMode===c.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}function m(e){let t="";const r=new h(e,e=>t+=(0,a.MK)(e));return function(e,n){let s=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(s,o),r.startEntity(n);const a=r.write(e,o+1);if(a<0){s=o+r.end();break}s=o+a,o=0===a?s+1:s}const a=t+e.slice(s);return t="",a}}function g(e,t,r,n){const s=(t&i.BRANCH_LENGTH)>>7,o=t&i.JUMP_TABLE;if(0===s)return 0!==o&&n===o?r:-1;if(o){const t=n-o;return t<0||t>=s?-1:e[r+t]-1}let a=r,l=a+s-1;for(;a<=l;){const t=a+l>>>1,r=e[t];if(rn))return e[t+s];l=t-1}}return-1}const f=m(s.A);m(o.A);function b(e,t=c.Legacy){return f(e,t)}},3328:(e,t,r)=>{"use strict";r.d(t,{J:()=>l});var n=r(32448),s=r.n(n),o=r(63673);const a=s()("number-formatters:get-cached-formatter"),i=new Map;function l({locale:e,fallbackLocale:t=o.M,options:r,retries:n=1}){const s=JSON.stringify([e,r]);try{return i.get(s)??i.set(s,new Intl.NumberFormat(e,r)).get(s)}catch(s){if(a(`Intl.NumberFormat was called with a non-existent locale "${e}"; falling back to ${t}`),n)return l({locale:t,options:r,retries:n-1});throw s}}},3348:(e,t,r)=>{"use strict";var n=r(94715),s=r(74997),o=r(29491),a=r(47143),i=r(52619),l=r(27723),c=r(74628),u=r(17900),d=r(47960),p=r(10790);const __=l.__,h=(0,o.createHigherOrderComponent)(e=>t=>{const{name:r,attributes:o,isSelected:i}=t;if("core/embed"!==r)return(0,p.jsx)(e,{...t});if(!(o?.url?.match(/^https?:\/\/(?:video\.wordpress\.com\/[ve]\/|videopress\.com\/[ve]\/)[a-zA-Z\d]{8}/)||"videopress"===o?.providerNameSlug))return(0,p.jsx)(e,{...t});const{replaceBlock:l}=(0,a.dispatch)("core/block-editor");return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(e,{...t}),i&&(0,p.jsx)(n.InspectorControls,{children:(0,p.jsxs)("div",{className:"wp-block-videopress-video-transform",style:{padding:"16px"},children:[(0,p.jsx)("div",{className:"components-notice is-info",children:(0,p.jsx)("div",{className:"components-notice__content",children:__("You can transform this post's video blocks to the new VideoPress block to take advantage of new features.","jetpack")})}),(0,p.jsx)("div",{style:{marginTop:"8px"},children:(0,p.jsx)("button",{className:"components-button is-primary",onClick:()=>{const e=o.url,r=o.guid||(0,d.QW)(e),n=(0,s.createBlock)("videopress/video",{src:e,id:o.id||null,guid:r,title:o.title||"",caption:o.caption||"",isVideoPressExample:!1,autoplay:!1,controls:!0,muted:!1,playsinline:!0,preload:"metadata",useAverageColor:!0,poster:o.poster||"",loop:!1,videoPressTracks:[],className:o.className||"",align:o.align||"",rating:"",allowDownload:!1,privacySetting:c.NF.SITE_DEFAULT,url:(0,u.e)(r,{autoplay:!1,controls:!0,loop:!1,muted:!1,playsinline:!0,poster:o.poster||"",preload:"metadata",useAverageColor:!0})});l(t.clientId,n)},children:__("Transform to VideoPress block","jetpack")})})]})})]})},"withVideoPressSettings");(0,i.addFilter)("editor.BlockEdit","jetpack/videopress-embed-settings",h)},3361:(e,t,r)=>{"use strict";var n=r(74997),s=r(94375),o=r(17195),a=r(14164),i=r(12953),l=r(52755);(0,s.M)(o,{edit:a.A,save:i.A,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&l.QL.test(e.textContent),transform:e=>{const t=(0,l.Dl)(e.textContent);return(0,n.createBlock)("jetpack/nextdoor",{url:t})}}]}})},3506:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},3582:e=>{"use strict";e.exports=window.wp.coreData},3586:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(96865),s=r(85985),o=r(94715),a=r(74997),i=r(56427),l=r(29491),c=r(47143),u=r(86087),d=r(27723),p=r(13022),h=r(27970),m=r(56199),g=r(2274),f=r(32249),b=r(51698),v=r(4393),k=r(44732),y=r(76695),x=r(10790);const __=d.__,j="post"===window?.Jetpack_Editor_Initial_State?.screenBase;function w({attributes:e,setAttributes:t,clientId:r,isSelected:d}){const[w,_]=(0,u.useState)(null),{tracks:C}=(0,s.st)(),{getBlock:A}=(0,c.useSelect)("core/block-editor"),S=(0,u.useRef)(null),E=(0,u.useRef)(null),{replaceBlocks:N,removeBlock:T}=(0,c.useDispatch)("core/block-editor"),{editPost:B}=(0,c.useDispatch)("core/editor"),[P,I]=(0,u.useState)((0,n.MB)(e.preTransformAction)),{isOverLimit:M,requireUpgrade:L,increaseRequestsCount:R,requestsCount:D,requestsLimit:F,currentTier:O,loading:z,tierPlansEnabled:U}=(0,n.yM)(),H=Math.max(F-D,0),{autosaveAndRedirect:q}=(0,n.ON)(),V=(0,s.Bd)(O),G=()=>{setTimeout(()=>{S.current?.focus?.()},100)},$=()=>{setTimeout(()=>{E.current?.focus?.()},100)},W=(0,l.useViewportMatch)("medium","<"),Z=(0,u.useRef)(null),{getSuggestionFromOpenAI:J,stopSuggestion:K,showRetry:Y,contentBefore:Q,postTitle:X,retryRequest:ee,wholeContent:te,requestingState:re,error:ne}=(0,v.A)({onSuggestionDone:(0,u.useCallback)(e=>{G(),e||R()},[R]),onUnclearPrompt:(0,u.useCallback)(()=>{$(),R()},[R]),onModeration:G,attributes:e,clientId:r,content:e.content,tracks:C,userPrompt:e.userPrompt,requireUpgrade:L,initialRequestingState:e.requestingState,contentRef:Z,blockRef:E}),se="requesting"===re,oe=["requesting","suggesting"].includes(re),ae=(0,s.xI)(),{productPageUrl:ie}=(0,k.A)(),le=(0,y.y)(r);(0,u.useEffect)(()=>{if(!le)return;const e=JSON.parse(localStorage.getItem(le));if(!e)return;const{type:t,options:r}=e;localStorage.removeItem(le),J(t,r)},[le,J]),(0,u.useEffect)(()=>{ne&&_(!1)},[ne]),(0,u.useEffect)(()=>{["init","done"].includes(re)&&t({requestingState:re})},[re,t]);const ce=!!e.content,ue=e.promptType===n.vE,de=__("Accept","jetpack"),pe=__("Accept title","jetpack"),he=ue?pe:de,me=async()=>{let t=[],s=(0,n._E)({content:e.content||""});if(s?.split("\n").length>1&&s?.split("\n")?.[0]?.match(/^