HEX
Server: LiteSpeed
System: Linux premium267.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: predezso (1249)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/predezso/alwaysgaia.com/wp-content/plugins/jetpack/_inc/blocks/story/view.js
(()=>{var e={1455:e=>{"use strict";e.exports=window.wp.apiFetch},2118:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a});var r=n(47143),s=n(66194),i=n(10790);const o=({bulletIndex:e,playerId:t,index:n,disabled:o,isSelected:a,onClick:l})=>{const c=(0,r.useSelect)(e=>e("jetpack/story/player").getCurrentSlideProgressPercentage(t),[t]);return(0,i.jsx)(s.Dv,{index:n,progress:c,disabled:o,isSelected:a,onClick:l},`bullet-${e}`)},a=({playerId:e,slides:t,disabled:n,onSlideSeek:a,maxBullets:l})=>{const{currentSlideIndex:c}=(0,r.useSelect)(t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e)}),[e]),u=Math.min(t.length,l),d=Math.floor(u/2);let p,f=0,g=t.length-1;return t.length<=l||c<d?(p=c,g=u-1):c>=t.length-d?(p=c-t.length+u,f=t.length-u):(p=d,f=c-d,g=c+d),(0,i.jsxs)("div",{className:"wp-story-pagination wp-story-pagination-bullets",role:"tablist",children:[f>0&&(0,i.jsx)(s.Dv,{index:f-1,progress:100,isEllipsis:!0},"bullet-0"),Array.from(Array(u),(e,t)=>t+1).map((t,r)=>{const l=r+f;let u=null;if(l<c)u=100;else{if(!(l>c))return(0,i.jsx)(o,{playerId:e,bulletIndex:r,index:l,disabled:n,isSelected:p===r,onClick:()=>a(l)},`bullet-${r}`);u=0}return(0,i.jsx)(s.Dv,{index:l,progress:u,disabled:n,isSelected:p===r,onClick:()=>a(l)},`bullet-${r}`)}),g<t.length-1&&(0,i.jsx)(s.Dv,{index:g+1,progress:0,isEllipsis:!0},`bullet-${u+1}`)]})}},4335:(e,t,n)=>{"use strict";async function r(e){const t=e.tagName.toLowerCase();if("img"===t){if(e.complete)return;await new Promise(t=>{e.addEventListener("load",t,{once:!0})})}else if("video"===t||"audio"===t){if(e.HAVE_ENOUGH_DATA===e.readyState)return;await new Promise(t=>{e.addEventListener("canplaythrough",t,{once:!0}),e.addEventListener("load",t,{once:!0}),e.HAVE_NOTHING===e.readyState&&e.networkState!==e.NETWORK_LOADING&&e.load()})}}n.d(t,{A:()=>r})},4651:(e,t,n)=>{"use strict";n.d(t,{WI:()=>o,fe:()=>l});const r=new Set(["alert","status","log","marquee","timer"]);let s=[],i=!1;function o(e){if(i)return;const t=document.body.children;for(const n of t)n!==e&&a(n)&&(n.setAttribute("aria-hidden","true"),s.push(n));i=!0}function a(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||r.has(t))}function l(){if(i){for(const e of s)e.removeAttribute("aria-hidden");s=[],i=!1}}},5573:e=>{"use strict";e.exports=window.wp.primitives},5738:(e,t,n)=>{"use strict";n(47143),n(52619),n(15458),n(54206)},7625:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(97999);const s={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,r.isSimpleSite)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},8362:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,a=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,s=function(e,t){if(null==e)return{};var n,r,s={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(e,i),c=["gridicon","gridicons-fullscreen",a,!1,!1,!1].filter(Boolean).join(" ");return s.default.createElement("svg",o({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})))};var r,s=(r=n(51609))&&r.__esModule?r:{default:r},i=["size","onClick","icon","className"];function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)}},9653:(e,t,n)=>{"use strict";n(97999);var r=n(68902),s=n.n(r);window,s()("shared-extension-utils:connection")},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},12162:(e,t,n)=>{"use strict";n.d(t,{Tb:()=>r,kD:()=>i,nh:()=>s});const r={currentTime:0,duration:null,timeout:null,lastUpdate:null},s={progress:r,index:0,mediaElement:null,duration:null,ended:!1,ready:!1},i={slideCount:0,currentSlide:s,previousSlide:null,muted:!1,playing:!1,ended:!1,buffering:!1,fullscreen:!1,settings:{imageTime:5,startMuted:!1,playInFullscreen:!0,playOnNextSlide:!0,playOnLoad:!1,exitFullscreenOnEnd:!0,loadInFullscreen:!1,blurredBackground:!0,showSlideCount:!1,showProgressBar:!0,shadowDOM:{enabled:!0,mode:"open",globalStyleElements:'#jetpack-block-story-css, link[href*="jetpack/_inc/blocks/story/view.css"]'},defaultAspectRatio:.5625,cropUpTo:.2,volume:.8,maxBullets:7,maxBulletsFullscreen:14}}},13022:(e,t,n)=>{"use strict";function r(e){var t,n,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}n.d(t,{A:()=>s});const s=function(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(s&&(s+=" "),s+=t);return s}},13404:(e,t,n)=>{"use strict";function r(e,t){return{type:"SET_MUTED",value:t,playerId:e}}function s(e,t){return{type:"SET_PLAYING",value:t,playerId:e}}function i(e,t){return{type:"SHOW_SLIDE",index:t,playerId:e}}function o(e,t,n){return{type:"SLIDE_READY",mediaElement:t,duration:n,playerId:e}}function a(e,t){return{type:"SET_CURRENT_SLIDE_PROGRESS",value:t,playerId:e}}function l(e){return{type:"RESET_CURRENT_SLIDE_PROGRESS",playerId:e}}function c(e){return{type:"SET_CURRENT_SLIDE_ENDED",playerId:e}}function u(e,t){return{type:"SET_FULLSCREEN",playerId:e,fullscreen:t}}function d(e){return{type:"ENDED",playerId:e}}function p(e,t={}){return{type:"INIT",playerId:e,settings:t}}function f(e,t){return{type:"SET_BUFFERING",value:t,playerId:e}}n.r(t),n.d(t,{init:()=>p,resetCurrentSlideProgress:()=>l,setBuffering:()=>f,setCurrentSlideEnded:()=>c,setCurrentSlideProgress:()=>a,setEnded:()=>d,setFullscreen:()=>u,setMuted:()=>r,setPlaying:()=>s,showSlide:()=>i,slideReady:()=>o})},15458:(e,t,n)=>{"use strict";n(97999);var r=n(27723);n(93832),n(76406);const __=r.__;__("Upgrade your plan to use video covers","jetpack"),__("Upgrade your plan to upload audio","jetpack")},16949:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(10790);const s=()=>(0,r.jsx)("div",{className:"wp-story-loading-spinner",children:(0,r.jsx)("div",{className:"wp-story-loading-spinner__outer",children:(0,r.jsx)("div",{className:"wp-story-loading-spinner__inner"})})})},17e3:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(86087);function s(e){const t={};let n="span",s=e.icon;const i=document.createElement("div");i.innerHTML=e.icon;const o=i.querySelector("svg");return o&&(n="svg",s=o.innerHTML,Array.from(o.attributes).forEach(({nodeName:e,nodeValue:n})=>t[e]=n)),(0,r.createElement)(n,{...t,dangerouslySetInnerHTML:{__html:s||""}})}},25412:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,E9:()=>u,F6:()=>l});var r=n(97999),s=n(47143),i=n(43401),o=n(63559);const a="SET_JETPACK_MODULES";function l(e){return u({isLoading:e})}function c(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function u(e){return{type:a,options:e}}const d={updateJetpackModuleStatus:function*(e){try{yield c(e.name,!0),yield(0,i.sB)(e);const t=yield(0,i.wz)();return yield u({data:t}),!0}catch{const e=(0,s.select)(o.F).getJetpackModules();return yield u(e),!1}finally{yield c(e.name,!1)}},setJetpackModules:u,fetchModules:function*(){if((0,r.isSimpleSite)())return!0;try{yield l(!0);const e=yield(0,i.wz)();return yield u({data:e}),!0}catch{const e=(0,s.select)(o.F).getJetpackModules();return yield u(e),!1}finally{yield l(!1)}}}},27723:e=>{"use strict";e.exports=window.wp.i18n},29491:e=>{"use strict";e.exports=window.wp.compose},32047:e=>{"use strict";function t(e,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)t(e,n[r]);else for(r in n)e[r]=(e[r]||[]).concat(n[r])}e.exports=function(e){var n,r={};return t(r,e),(n=function(e){return function(t){return function(n){var s,i,o=r[n.type],a=t(n);if(o)for(s=0;s<o.length;s++)(i=o[s](n,e))&&e.dispatch(i);return a}}}).effects=r,n}},33841:(e,t,n)=>{"use strict";function r(e,t){return!!e[t]}function s(e,t){return e[t].currentSlide.index}function i(e,t){return e[t].currentSlide.progress}function o(e,t){const n=e[t].currentSlide.progress.currentTime,r=e[t].currentSlide.progress.duration,s=Math.round(100*n/r);return s>=100?100:s}function a(e,t){return e[t].playing}function l(e,t){return e[t].muted}function c(e,t){return e[t].buffering}function u(e,t){return e[t].currentSlide.mediaElement}function d(e,t){return e[t].currentSlide.duration}function p(e,t){return e[t].currentSlide.ended}function f(e,t){return e[t].currentSlide.ready}function g(e,t){return e[t].previousSlide?.mediaElement}function m(e,t){return e[t].fullscreen}function y(e,t){return e[t].ended}function h(e,t){return e[t].settings}function w(e,t){return e[t].settings.slideCount}n.r(t),n.d(t,{getCurrentMediaDuration:()=>d,getCurrentMediaElement:()=>u,getCurrentSlideIndex:()=>s,getCurrentSlideProgress:()=>i,getCurrentSlideProgressPercentage:()=>o,getPreviousSlideMediaElement:()=>g,getSettings:()=>h,getSlideCount:()=>w,hasCurrentSlideEnded:()=>p,hasEnded:()=>y,isBuffering:()=>c,isCurrentSlideReady:()=>f,isFullscreen:()=>m,isMuted:()=>l,isPlayerReady:()=>r,isPlaying:()=>a})},37822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(27723),s=n(79544),i=n(83600),o=n(10790);const _x=r._x;function a({playing:e,muted:t,onPlayPressed:n,onMutePressed:r,showMute:a}){return(0,o.jsxs)("div",{className:"wp-story-controls",children:[(0,o.jsx)(s.d,{isPressed:e,label:e?_x("pause","Button tooltip text","jetpack"):_x("play","Button tooltip text","jetpack",0),onClick:n,children:e?(0,o.jsx)(i.E$,{}):(0,o.jsx)(i.ud,{})}),a&&(0,o.jsx)(s.d,{isPressed:t,label:t?_x("unmute","Button tooltip text","jetpack"):_x("mute","Button tooltip text","jetpack",0),onClick:r,children:t?(0,o.jsx)(i.lQ,{}):(0,o.jsx)(i.Fz,{})})]})}},39384:e=>{"use strict";e.exports=window.JetpackConnection},41790:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(32047),s=n.n(r),i=n(47437);function o(e){const t=[s()(i.A)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r=[];const o={getState:e.getState,dispatch:(...e)=>n(...e)};return r=t.map(e=>e(o)),n=r.reduceRight((e,t)=>t(e),e.dispatch),e.dispatch=n,e}},43401:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,sB:()=>l,wz:()=>a});var r=n(1455),s=n.n(r);const i="FETCH_JETPACK_MODULES",o="UPDATE_JETPACK_MODULE_STATUS",a=()=>({type:i}),l=e=>({type:o,settings:e}),c={[i]:function(){return s()({path:"/jetpack/v4/module/all",method:"GET"})},[o]:function({settings:e}){return s()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},44393:(e,t,n)=>{"use strict";n(86087)},44997:e=>{var t=1e3,n=60*t,r=60*n,s=24*r,i=7*s,o=365.25*s;function a(e,t,n,r){var s=t>=1.5*n;return Math.round(e/n)+" "+r+(s?"s":"")}e.exports=function(e,l){l=l||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*i;case"days":case"day":case"d":return l*s;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var i=Math.abs(e);if(i>=s)return a(e,i,s,"day");if(i>=r)return a(e,i,r,"hour");if(i>=n)return a(e,i,n,"minute");if(i>=t)return a(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=s)return Math.round(e/s)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},45089:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47143),s=n(86087),i=n(48558),o=n(73971),a=n(64915),l=(n(51935),n(10790));function c({id:e,slides:t,metadata:n,disabled:c,...u}){const d=(0,s.useMemo)(()=>e||Math.random().toString(36),[e]),{init:p,setEnded:f,setPlaying:g,setFullscreen:m,showSlide:y}=(0,r.useDispatch)("jetpack/story/player"),{playing:h,currentSlideIndex:w,fullscreen:v,isReady:S,playerSettings:b}=(0,r.useSelect)(e=>{const{getCurrentSlideIndex:t,getSettings:n,isFullscreen:r,isPlayerReady:s,isPlaying:i}=e("jetpack/story/player");return s(d)?{playing:i(d),currentSlideIndex:t(d),isReady:!0,fullscreen:r(d),playerSettings:n(d)}:{isReady:!1}},[d]);(0,s.useEffect)(()=>{S||p(d,{slideCount:t.length,...u})},[S,d]);const C=(0,s.useCallback)(e=>{switch(e.keyCode){case i.ENTER:if(v)break;case i.SPACE:g(d,!h);break;case i.LEFT:w>0&&y(d,w-1);break;case i.RIGHT:w<t.length-1?y(d,w+1):f(d)}},[d,w,v,h]),x=(0,s.useCallback)(()=>{m(d,!1)},[d]);return S?(0,l.jsx)(o.A,{shadowDOM:b.shadowDOM,className:"wp-story-app",fullscreenClassName:"wp-story-fullscreen",bodyFullscreenClassName:"wp-story-in-fullscreen",playerQuerySelector:".wp-story-container",fullscreen:v,onExitFullscreen:x,onKeyDown:C,children:(0,l.jsx)(a.A,{id:d,slides:t,metadata:n,disabled:c})}):null}},47143:e=>{"use strict";e.exports=window.wp.data},47437:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(13404),s=n(33841);const i=e=>e&&e.src&&"video"===e.tagName.toLowerCase();function o(e,t){const{getState:n}=t,r=e.playerId,o=(0,s.getCurrentMediaElement)(n(),r),a=(0,s.getPreviousSlideMediaElement)(n(),r);if(i(a)&&(a.currentTime=0,a.onwaiting=null,a.onplaying=null,a.pause()),!i(o))return;const l=(0,s.isMuted)(n(),r),c=(0,s.isPlaying)(n(),r),u=(0,s.getSettings)(n(),r);l!==o.muted&&(o.muted=l,l||(o.volume=u.volume)),c?o.play():o.pause()}function a(e,t){const{getState:n,dispatch:o}=t,l=e.playerId,c=(0,s.isCurrentSlideReady)(n(),l),u=(0,s.isPlaying)(n(),l),d=(0,s.getCurrentSlideProgress)(n(),l);if(clearTimeout(d.timeout),!u||!c)return void(d.lastUpdate&&o((0,r.setCurrentSlideProgress)(l,{...d,lastUpdate:null})));const p=(0,s.getCurrentMediaElement)(n(),l),f=(0,s.getCurrentMediaDuration)(n(),l),g=d.lastUpdate?Date.now()-d.lastUpdate:100,m=i(p)?p.currentTime:d.currentTime+g/1e3;if(m>=f){o((0,r.setCurrentSlideEnded)(l));const e=(0,s.getSlideCount)(n(),l);return void((0,s.getCurrentSlideIndex)(n(),l)===e-1&&o((0,r.setEnded)(l)))}o((0,r.setCurrentSlideProgress)(l,{timeout:setTimeout(()=>a(e,t),100),lastUpdate:Date.now(),duration:f,currentTime:m}))}const l={SET_PLAYING:[a,o],SLIDE_READY:[function(e,t){const{getState:n,dispatch:o}=t,a=e.playerId,l=(0,s.getCurrentMediaElement)(n(),a);if(!i(l))return;const c=(0,s.getCurrentSlideProgress)(n(),a);0===l.currentTime&&c.currentTime>0&&(l.currentTime=c.currentTime),l.onwaiting=()=>o((0,r.setBuffering)(a,!0)),l.onplaying=()=>o((0,r.setBuffering)(a,!1))},a,o],SET_MUTED:o,SHOW_SLIDE:o}},48160:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(27723),s=n(13022),i=n(10790);const __=r.__;function o({isEllipsis:e,disabled:t,index:n,isSelected:o,progress:a,onClick:l}){const c=t||e;let u=null;return e||(u=o?(0,r.sprintf)(/* translators: %d: Slide number. */
__("Slide %d, currently selected","jetpack"),n+1):(0,r.sprintf)(/* translators: %d: Slide number. */
__("Go to slide %d","jetpack"),n+1)),(0,i.jsx)("button",{role:c?"presentation":"tab",className:(0,s.A)("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":e}),"aria-label":u,"aria-disabled":c||o,onClick:c||o?void 0:l,disabled:c,children:(0,i.jsx)("div",{className:"wp-story-pagination-bullet-bar",children:(0,i.jsx)("div",{className:"wp-story-pagination-bullet-bar-progress",style:{width:`${a}%`}})})},n)}},48558:e=>{"use strict";e.exports=window.wp.keycodes},48874:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(29491),s=n(48558),i=n(10790);function o({overlayClassName:e,children:t,className:n,focusOnMount:o,shouldCloseOnEsc:a=!0,onRequestClose:l,onKeyDown:c,modalRef:u}){const d=(0,r.useFocusOnMount)(o),p=(0,r.useConstrainedTabbing)(),f=(0,r.useFocusReturn)();return(0,i.jsx)("div",{className:e,onKeyDown:function(e){a&&e.keyCode===s.ESCAPE&&(e.stopPropagation(),l&&l(e)),e.target&&"button"===e.target.tagName.toLowerCase()&&e.keyCode===s.SPACE||c&&c(e)},children:(0,i.jsx)("div",{className:n,ref:(0,r.useMergeRefs)([p,f,d,u]),children:t})})}},51426:(e,t,n)=>{"use strict";n(9653)},51609:e=>{"use strict";e.exports=window.React},51935:(e,t,n)=>{"use strict";var r=n(47143),s=n(13404),i=n(41790),o=n(55255),a=n(33841);const l=(0,r.registerStore)("jetpack/story/player",{actions:s,reducer:o.A,selectors:a});(0,i.A)(l)},52619:e=>{"use strict";e.exports=window.wp.hooks},54206:(e,t,n)=>{"use strict";n(47143),n(86087)},55247:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const r={isLoading:!1,isUpdating:{},data:{}},s=(e=r,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},55255:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(93764),s=n.n(r),i=n(12162);function o(e=i.kD,t){switch(t.type){case"SHOW_SLIDE":{const n=e.currentSlide===t.index+1;return{...e,currentSlide:{...i.nh,index:t.index},previousSlide:e.currentSlide,playing:n?e.settings.playOnNextSlide:e.playing}}case"SLIDE_READY":return{...e,buffering:!1,currentSlide:{...e.currentSlide,mediaElement:t.mediaElement,duration:t.duration,ready:!0},previousSlide:null};case"SET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:t.value}};case"SET_CURRENT_SLIDE_ENDED":return{...e,currentSlide:{...e.currentSlide,ended:!0}};case"RESET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:{...i.Tb}}};case"SET_MUTED":return{...e,muted:t.value};case"SET_PLAYING":{const n=t.value&&e.ended;return{...e,playing:t.value,buffering:!!t.value&&e.buffering,fullscreen:!e.playing&&t.value?e.settings.playInFullscreen:e.fullscreen,ended:!n&&e.ended,currentSlide:n?{...i.nh,index:0}:e.currentSlide,previousSlide:n?null:e.previousSlide}}case"SET_BUFFERING":return{...e,buffering:t.value};case"SET_FULLSCREEN":return{...e,fullscreen:t.fullscreen,playing:!(e.fullscreen&&!t.fullscreen&&e.settings.playInFullscreen)&&e.playing};case"INIT":{const n=s()(e.settings,t.settings);return{...e,settings:n,playing:n.playOnLoad,fullscreen:n.loadInFullscreen}}case"ENDED":return{...e,currentSlide:{...i.nh,index:e.settings.slideCount-1,progress:{...i.Tb,currentTime:100,duration:100}},ended:!0,playing:!1,fullscreen:!e.settings.exitFullscreenOnEnd}}return e}function a(e={},t){return t.playerId?{...e,[t.playerId]:o(e[t.playerId],t)}:e}},56677:(e,t,n)=>{"use strict";n.d(t,{ND:()=>s,NS:()=>o,Sn:()=>r,ql:()=>i});const r=()=>document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled,s=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement,i=(e,t)=>{if((e.requestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen).call(e),t){const e=()=>{document.fullscreenElement||(document.removeEventListener("fullscreenchange",e),t())};document.addEventListener("fullscreenchange",e)}},o=()=>(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document)},56697:(e,t,n)=>{e.exports=function(e){function t(e){let n,s,i,o=null;function a(...e){if(!a.enabled)return;const r=a,s=Number(new Date),i=s-(n||s);r.diff=i,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,s)=>{if("%%"===n)return"%";o++;const i=t.formatters[s];if("function"==typeof i){const t=e[o];n=i.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(s!==t.namespaces&&(s=t.namespaces,i=t.enabled(e)),i),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e,t){let n=0,r=0,s=-1,i=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(s=r,i=n,r++):(n++,r++);else{if(-1===s)return!1;r=s+1,i++,n=i}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(s(e,n))return!1;for(const n of t.names)if(s(e,n))return!0;return!1},t.humanize=n(44997),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},58630:(e,t,n)=>{"use strict";n.d(t,{$U:()=>a});var r=n(13022),s=n(10790);const i=({title:e,alt:t,className:n,id:i,mediaRef:o,mime:a,sizes:l,srcset:c,url:u})=>(0,s.jsx)("img",{ref:o,"data-id":i,"data-mime":a,title:e,alt:t,src:u,className:(0,r.A)("wp-story-image",`wp-image-${i}`,n),srcSet:c,sizes:l}),o=({title:e,className:t,id:n,mediaRef:i,mime:o,url:a,poster:l})=>(0,s.jsx)("video",{className:(0,r.A)("wp-story-video","intrinsic-ignore",`wp-video-${n}`,t),ref:i,"data-id":n,title:e,type:o,src:a,poster:l,tabIndex:-1,preload:"auto",playsInline:!0}),a=({targetAspectRatio:e,cropUpTo:t,type:n,width:r,height:a,...l})=>{let c=null;if(r&&a){const n=r/a;if(n>=e){n>e/(1-t)||(c="wp-story-crop-wide")}else{n<e*(1-t)||(c="wp-story-crop-narrow")}}const u="video"===n||(l.mime||"").startsWith("video/");return(0,s.jsx)("figure",{children:u?(0,s.jsx)(o,{...l,className:c}):(0,s.jsx)(i,{...l,className:c})})}},61999:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(86087);const s=e=>{const t=(0,r.useRef)(void 0),n=(0,r.useRef)(void 0),s=(0,r.useRef)(e),i=(0,r.useCallback)(e=>{e.touches&&1===e.touches.length&&e.preventDefault()},[]);return(0,r.useEffect)(()=>{s.current=e},[e]),{onTouchStart:(0,r.useCallback)(e=>{e.target&&(e.target.addEventListener("touchend",i,{passive:!1}),n.current=e.target),t.current=setTimeout(()=>{s.current&&s.current(!0),t.current=null},200)},[]),onTouchEnd:(0,r.useCallback)(e=>{t.current?clearTimeout(t.current):(s.current&&s.current(!1),e.stopPropagation()),n.current&&n.current.removeEventListener("touchend",i)},[])}}},63162:e=>{"use strict";e.exports=window.wp.blob},63559:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var r=n(47143),s=n(25412),i=n(43401),o=n(55247),a=n(96020),l=n(7625);const c="jetpack-modules",u=(0,r.createReduxStore)(c,{reducer:o.A,actions:s.Ay,controls:i.Ay,resolvers:a.A,selectors:l.A});(0,r.register)(u);const d=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==d&&(0,r.dispatch)(c).setJetpackModules({data:{...d}})},63678:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(86087),s=n(10790);const i=window&&window.Element&&Object.hasOwn(window.Element.prototype,"attachShadow");function o({enabled:e,delegatesFocus:t=!1,mode:n="open",globalStyleElements:o=[],adoptedStyleSheets:l=null,mountOnElement:c=null,children:u}){const[d,p]=(0,r.useState)(null),f=c||d,[g,m]=(0,r.useState)(null),y="string"==typeof o?[...document.querySelectorAll(o)]:o,h=i&&e&&y.length>0,w=(0,r.useCallback)(e=>{null!==e&&p(e.parentNode)},[]);if((0,r.useEffect)(()=>{if(!f)return;if(f.shadowRoot)return void m(f.shadowRoot);const e=f.attachShadow({delegatesFocus:t,mode:n});l&&(e.adoptedStyleSheets=l),m(e)},[f]),h&&!g)return c?null:(0,s.jsx)("span",{ref:w});const v=(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(a,{globalStyleElements:y}),u]});return h?(0,r.createPortal)(v,g):v}function a({globalStyleElements:e}){return(0,s.jsx)(s.Fragment,{children:e.map(({id:e,tagName:t,attributes:n,innerHTML:r},i)=>"LINK"===t?(0,s.jsx)("link",{id:e,rel:n.rel.value,href:n.href.value},e||i):"STYLE"===t?(0,s.jsx)("style",{id:e,children:r},e||i):void 0)})}},64915:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(70728),s=n(63162),i=n(29491),o=n(47143),a=n(86087),l=n(27723),c=n(13022),u=n(68331),d=n(66194),p=n(61999),f=n(2118),g=n(67860),m=n(10790);const __=l.__,y=(0,r.sh)(u);function h({id:e,slides:t,metadata:n,disabled:r}){const{setFullscreen:l,setEnded:u,setPlaying:h,setMuted:w,showSlide:v}=(0,o.useDispatch)("jetpack/story/player"),{playing:S,muted:b,currentSlideIndex:C,currentSlideEnded:x,ended:E,fullscreen:j,settings:A}=(0,o.useSelect)(t=>{const{getCurrentSlideIndex:n,getSettings:r,hasCurrentSlideEnded:s,hasEnded:i,isFullscreen:o,isMuted:a,isPlaying:l}=t("jetpack/story/player");return{playing:l(e),muted:a(e),currentSlideIndex:n(e),currentSlideEnded:s(e),ended:i(e),fullscreen:o(e),settings:r(e)}},[e]),k=(0,a.useRef)(void 0),[F,I]=(0,a.useState)(null),M=(0,i.useResizeObserver)(e=>{const t=e[0]?.contentRect.width;t&&I(t)},{box:"border-box"}),[N,P]=(0,a.useState)(A.defaultAspectRatio),O=t.some(e=>(0,s.isBlobURL)(e.url)),_=t=>{v(e,t)},T=(0,a.useCallback)(()=>{r||j||A.playInFullscreen&&!S&&h(e,!0)},[S,r,j]),{onTouchStart:R,onTouchEnd:L}=(0,p.A)(t=>{h(e,!t)},[]),D=(0,a.useCallback)(()=>{C>0&&_(C-1)},[C]),U=(0,a.useCallback)(()=>{C<t.length-1?_(C+1):u(e)},[C,t]),z=(0,a.useCallback)(()=>{l(e,!1)},[]);let B,q;return(0,a.useEffect)(()=>{r&&S&&h(e,!1)},[r,S]),(0,a.useEffect)(()=>{S&&x&&U()},[S,x]),(0,a.useLayoutEffect)(()=>{const e=k?.current.offsetHeight;if(!k.current||!A.defaultAspectRatio||e<=0)return;M(k.current);let t=Math.round(A.defaultAspectRatio*e);if(j){const e=k.current.offsetWidth;t=Math.abs(1-t/e)<A.cropUpTo?e:t}I(t),P(t/e)},[M,j]),B=j?[__("You are currently playing a story.","jetpack"),S?__("Press space to pause.","jetpack"):__("Press space to play.","jetpack",0),__("Press escape to exit.","jetpack")].join(" "):__("Play story","jetpack"),q=r?"presentation":j?"dialog":"button",(0,m.jsxs)("div",{className:"wp-story-display-contents",children:[(0,m.jsxs)("div",{role:q,"aria-label":B,tabIndex:j?-1:0,className:(0,c.A)("wp-story-container",{"wp-story-with-controls":!r&&!j&&!A.playInFullscreen,"wp-story-fullscreen":j,"wp-story-ended":E,"wp-story-disabled":r,"wp-story-clickable":!r&&!j}),style:{maxWidth:`${F}px`},onClick:T,onTouchStart:R,onTouchEnd:L,children:[(0,m.jsx)(d.Y9,{...n,fullscreen:j,onExitFullscreen:z}),(0,m.jsx)("div",{ref:k,className:"wp-story-wrapper",children:t.map((t,n)=>(0,m.jsx)(g.A,{playerId:e,media:t,index:n,playing:!r&&S,uploading:O,settings:A,targetAspectRatio:N},n))}),(0,m.jsx)(d.hJ,{icon:y,slideCount:t.length,showSlideCount:A.showSlideCount,ended:E,hasPrevious:C>0,onPreviousSlide:D,onNextSlide:U}),A.showProgressBar&&(0,m.jsx)(f.Ay,{playerId:e,slides:t,disabled:!j,onSlideSeek:_,maxBullets:j?A.maxBulletsFullscreen:A.maxBullets}),(0,m.jsx)(d.H2,{playing:S,muted:b,onPlayPressed:()=>h(e,!S),onMutePressed:()=>w(e,!b),showMute:(e=>{const n=e<t.length?t[e]:null;return!!n&&("video"===n.type||(n.mime||"").startsWith("video/"))})(C)})]}),j&&(0,m.jsx)(d.VS,{currentMedia:A.blurredBackground&&t.length>C&&t[C]})]})}},66194:(e,t,n)=>{"use strict";n.d(t,{$U:()=>c.$U,Dv:()=>r.A,H2:()=>s.A,VS:()=>a.A,Y9:()=>i.A,hJ:()=>o.A,xu:()=>l.A});var r=n(48160),s=n(37822),i=n(91757),o=n(67634),a=n(94868),l=n(16949),c=n(58630);n(79544)},67634:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(86087),s=n(27723),i=n(8362),o=n(79544),a=n(83600),l=n(10790);const __=s.__;function c({ended:e,hasPrevious:t,onNextSlide:n,onPreviousSlide:c,icon:u,slideCount:d,showSlideCount:p}){const f=(0,r.useCallback)(t=>{e||(t.stopPropagation(),c())},[c,e]),g=(0,r.useCallback)(t=>{e||(t.stopPropagation(),n())},[n,e]);return(0,l.jsxs)("div",{className:"wp-story-overlay",children:[p&&(0,l.jsxs)("div",{className:"wp-story-embed-icon",children:[u,(0,l.jsx)("span",{children:d})]}),!p&&(0,l.jsx)("div",{className:"wp-story-embed-icon-expand",children:(0,l.jsx)(i.A,{role:"img"})}),t&&(0,l.jsx)("div",{className:"wp-story-prev-slide",onClick:f,children:(0,l.jsx)(o.k,{size:44,label:__("Previous Slide","jetpack"),className:"outlined-w",children:(0,s.isRTL)()?(0,l.jsx)(a.af,{size:24}):(0,l.jsx)(a.Ej,{size:24})})}),(0,l.jsx)("div",{className:"wp-story-next-slide",onClick:g,children:(0,l.jsx)(o.k,{size:44,label:__("Next Slide","jetpack"),className:"outlined-w",children:(0,s.isRTL)()?(0,l.jsx)(a.Ej,{size:24}):(0,l.jsx)(a.af,{size:24})})})]})}},67860:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47143),s=n(86087),i=n(13022),o=n(66194),a=n(4335),l=n(10790);const c=({playerId:e,media:t,index:n,playing:c,uploading:u,settings:d,targetAspectRatio:p})=>{const{currentSlideIndex:f,buffering:g}=(0,r.useSelect)(t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e),buffering:t("jetpack/story/player").isBuffering(e)}),[e]),{slideReady:m}=(0,r.useDispatch)("jetpack/story/player"),y=n===f,h=(0,s.useRef)(null),[w,v]=(0,s.useState)(!1),[S,b]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{if(y&&!S){const t=h.current&&h.current.src&&"video"===h.current.tagName.toLowerCase()?h.current:null;m(e,h.current,t?t.duration:d.imageTime)}},[y,S]),(0,s.useEffect)(()=>{n<=f+(c?1:0)&&v(!0)},[c,f]),(0,s.useLayoutEffect)(()=>{h.current&&(0,a.A)(h.current).then(()=>{b(!1)})},[w,u]),(0,l.jsxs)(l.Fragment,{children:[y&&(S||u||g)&&(0,l.jsx)("div",{className:(0,i.A)("wp-story-slide","is-loading",{transparent:c&&g,"semi-transparent":u||!c&&g}),children:(0,l.jsx)(o.xu,{})}),(0,l.jsx)("div",{role:"figure",className:"wp-story-slide",style:{display:y&&!S?"block":"none"},tabIndex:y?0:-1,children:w&&(0,l.jsx)(o.$U,{...t,targetAspectRatio:p,cropUpTo:d.cropUpTo,index:n,mediaRef:h})})]})}},68331:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/story","title":"Story","description":"Add an interactive story.","keywords":["story","image","video","gallery"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><g><path d=\'M17 5a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2h9z\' /><path d=\'M13 4H5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2z\' /><path d=\'M7 16h8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z\' /></g></svg>","supports":{"html":false},"attributes":{"settings":{"type":"object"},"mediaFiles":{"type":"array","default":[]}},"example":{"attributes":{"mediaFiles":[{"alt":"","caption":"","mime":"image/jpg","type":"image","id":22,"url":"./storyExample1.png"}]}}}')},68902:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(s=r))}),t.splice(s,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(56697)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},70728:(e,t,n)=>{"use strict";n.d(t,{sh:()=>r.s});n(76406),n(87036),n(86327),n(77560),n(15458),n(86484),n(54206),n(44393),n(82754);var r=n(17e3);n(63559),n(51426),n(5738),n(73030)},73030:(e,t,n)=>{"use strict";n(98490)},73971:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(86087),s=n(13022),i=n(56677),o=n(63678),a=n(91391),l=n(10790);const c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);function u({className:e,fullscreenClassName:t,bodyFullscreenClassName:n,fullscreen:u,shadowDOM:d,onKeyDown:p,onExitFullscreen:f,playerQuerySelector:g,children:m}){const y=(0,r.useRef)(void 0),h=(0,r.useRef)(void 0),[w,v]=(0,r.useState)(null),S=c&&i.Sn(),b=u&&!S,C=u&&S;return(0,r.useLayoutEffect)(()=>{if(S)u?y.current&&i.ql(y.current,f):i.ND()&&i.NS();else if(u){if(v([document.documentElement.scrollLeft,document.documentElement.scrollTop]),document.body.classList.add(n),document.getElementsByTagName("html")[0].classList.add(n),h.current){const e=h.current.querySelector(g);e&&e.focus()}}else if(document.body.classList.remove(n),document.getElementsByTagName("html")[0].classList.remove(n),w){window.scrollTo(...w);const e=y.current.querySelector(g);e&&e.focus()}},[u]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A,{...d,children:(0,l.jsx)("div",{ref:y,className:(0,s.A)(e,{[t]:C}),onKeyDown:p,children:!b&&m})}),(0,l.jsx)(a.A,{className:(0,s.A)(e,{[t]:b}),isOpened:b,onRequestClose:f,shadowDOM:d,onKeyDown:b&&p,focusOnMount:!1,modalRef:h,children:b&&m})]})}},74128:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5573),s=n(10790);const i=(e,t=24,n=24,i="0 0 24 24")=>(0,s.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:i,children:[(0,s.jsx)(r.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e]})},74993:(e,t,n)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},76406:(e,t,n)=>{"use strict";n(97999)},77560:(e,t,n)=>{"use strict";n(29491),n(10790)},79544:(e,t,n)=>{"use strict";n.d(t,{d:()=>o,k:()=>i});var r=n(13022),s=n(10790);const i=({className:e,size:t,label:n,isPressed:i,...o})=>(0,s.jsx)("button",{type:"button","aria-label":n,"aria-pressed":i,className:(0,r.A)("jetpack-mdc-icon-button","circle-icon","outlined","bordered",e),style:{width:`${t}px`,height:`${t}px`},...o}),o=({className:e,size:t=24,label:n,isPressed:i,...o})=>(0,s.jsx)("button",{type:"button","aria-label":n,"aria-pressed":i,className:(0,r.A)("jetpack-mdc-icon-button",e),style:{width:`${t}px`,height:`${t}px`},...o})},82754:(e,t,n)=>{"use strict";n(47143),n(86087),n(63559)},83600:(e,t,n)=>{"use strict";n.d(t,{E$:()=>l,Ej:()=>p,Fz:()=>u,US:()=>c,af:()=>f,lQ:()=>d,ud:()=>a});var r=n(5573),s=n(74128),i=n(10790);const o=({children:e,size:t})=>(0,s.A)(e,t,t),a=({size:e})=>(0,i.jsx)(o,{size:e,children:(0,i.jsx)(r.Path,{d:"M8 5v14l11-7z"})}),l=({size:e})=>(0,i.jsx)(o,{size:e,children:(0,i.jsx)(r.Path,{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})}),c=({size:e})=>(0,i.jsx)(o,{size:e,children:(0,i.jsx)(r.Path,{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),u=({size:e})=>(0,i.jsx)(o,{size:e,children:(0,i.jsx)(r.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"})}),d=({size:e})=>(0,i.jsx)(o,{size:e,children:(0,i.jsx)(r.Path,{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"})}),p=({size:e})=>(0,i.jsx)(o,{size:e,children:(0,i.jsx)(r.Path,{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}),f=({size:e})=>(0,i.jsx)(o,{size:e,children:(0,i.jsx)(r.Path,{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})},86087:e=>{"use strict";e.exports=window.wp.element},86327:(e,t,n)=>{"use strict";n(92279)},86484:(e,t,n)=>{"use strict";var r=n(91793);n(39384),n(86087);const{tracks:s}=r.A,{recordEvent:i}=s},87036:(e,t,n)=>{"use strict";n(97999)},91391:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(29491),s=n(86087),i=n(63678),o=n(4651),a=n(48874),l=n(10790);let c,u=0;const d=()=>{};class p extends s.Component{constructor(e){super(e),this.prepareDOM()}componentDidMount(){u++,1===u&&this.openFirstModal()}componentWillUnmount(){u--,0===u&&this.closeLastModal(),this.cleanDOM()}prepareDOM(){c||(c=document.createElement("div"),document.body.appendChild(c)),this.node=document.createElement("div"),c.appendChild(this.node),this.node.ontouchstart=d,this.node.ontouchend=d}cleanDOM(){this.node&&c&&c.contains(this.node)&&c.removeChild(this.node),this.node=null}openFirstModal(){o.WI(c)}closeLastModal(){o.fe()}render(){const{children:e,isOpened:t,shadowDOM:n,...r}=this.props;return(0,l.jsx)(i.A,{...n,mountOnElement:this.node,children:t&&(0,l.jsx)(a.A,{...r,children:e})})}}p.defaultProps={shouldCloseOnEsc:!0,isOpened:!1,focusOnMount:!0};const f=(0,r.withInstanceId)(p)},91757:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(27723),s=n(79544),i=n(83600),o=n(10790);const __=r.__;function a({fullscreen:e,onExitFullscreen:t,siteIconUrl:n,storyTitle:r}){return e?(0,o.jsxs)("div",{className:"wp-story-meta",children:[(0,o.jsx)("div",{className:"wp-story-icon",children:(0,o.jsx)("img",{alt:__("Site icon","jetpack"),src:n,width:"40",height:"40"})}),(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"wp-story-title",children:r})}),(0,o.jsx)(s.d,{className:"wp-story-exit-fullscreen",label:__("Exit Fullscreen","jetpack"),onClick:t,children:(0,o.jsx)(i.US,{})})]}):null}},91793:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(68902);const s=n.n(r)()("dops:analytics");let i,o;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const a={initialize:function(e,t,n){a.setUser(e,t),a.setSuperProps(n),a.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){o={ID:e,username:t}},setSuperProps:function(e){i=e},assignSuperProps:function(e){i=Object.assign(i||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Built stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){a.tracks.recordPageView(e),a.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,s,i,o){a.ga.recordPurchase(e,t,n,r,s,i,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(i&&(s("- Super Props: %o",i),t=Object.assign(t,i)),s('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):s('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};a.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){a.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){s("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};a.ga.initialized||(o&&(e={userId:"u-"+o.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),a.ga.initialized=!0)},recordPageView:function(e,t){a.ga.initialize(),s("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){a.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(i+=" [Option Label: "+n+"]"),void 0!==r&&(i+=" [Option Value: "+r+"]"),s(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,s,i,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:s,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){o&&window._tkq.push(["identifyUser",o.ID,o.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},l=a},92279:e=>{"use strict";e.exports=window.wp.plugins},93764:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function s(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var s={};return n.isMergeableObject(e)&&i(e).forEach(function(t){s[t]=r(e[t],n)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&n.isMergeableObject(t[i])?s[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):s[i]=r(t[i],n))}),s}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||s,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var o=Array.isArray(n);return o===Array.isArray(e)?o?i.arrayMerge(e,n,i):a(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})};var c=l;e.exports=c},93832:e=>{"use strict";e.exports=window.wp.url},94868:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5573),s=n(10790);function i({currentMedia:e}){const t=e&&"image"===e.type?e.url:null;return(0,s.jsxs)("div",{className:"wp-story-background",children:[(0,s.jsx)("div",{className:"wp-story-background-image",style:{backgroundImage:t?`url("${t}")`:"none"}}),(0,s.jsx)("div",{className:"wp-story-background-blur"}),(0,s.jsx)(r.SVG,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0",children:(0,s.jsx)("filter",{id:"gaussian-blur-18",children:(0,s.jsx)("feGaussianBlur",{stdDeviation:"18"})})})]})}},96020:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(25412),s=n(43401);const i={getJetpackModules:function*(){try{yield(0,r.F6)(!0);const e=yield(0,s.wz)();if(e)return(0,r.E9)({data:e})}catch(e){console.error(e)}finally{yield(0,r.F6)(!1)}}}},97999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},98490:e=>{"use strict";e.exports=window.wp.domReady}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{"use strict";n(74993)})(),(()=>{"use strict";var e=n(98490),t=n.n(e),r=n(86087),s=n(45089),i=n(10790);if("undefined"!=typeof window){const e=Array.from(new URLSearchParams(window.location.search).entries()).filter(e=>e[0].startsWith("wp-story-")).reduce((e,t)=>{const n=t[0].replace(/^wp-story-/,"").replace(/-([a-z])/g,e=>e[1].toUpperCase());try{e[n]=JSON.parse(t[1])}catch{e[n]=JSON.parse(`"${t[1]}"`)}return e},{});t()(function(){const t=[...document.querySelectorAll(":not(#debug-bar-wp-query) .wp-story")];t.forEach(n=>{if("true"===n.getAttribute("data-block-initialized"))return;let o=null;1===t.length&&(o={...e});const a=n.getAttribute("data-settings");if(a)try{o={...o,...JSON.parse(a)}}catch{}!function(e,t){"string"==typeof e&&(e=document.querySelectorAll(e));const n=e.querySelector(".wp-story-wrapper"),o=e.querySelector(".wp-story-meta");let a=[];n&&n.children.length>0&&(a=function(e){return[...e.querySelectorAll("li > figure > :first-child")].map(e=>({alt:e.getAttribute("alt")||e.getAttribute("title"),mime:e.getAttribute("data-mime")||e.getAttribute("type"),url:e.getAttribute("src"),id:e.getAttribute("data-id"),type:"img"===e.tagName.toLowerCase()?"image":"video",srcset:e.getAttribute("srcset"),sizes:e.getAttribute("sizes")}))}(n));let l={};o&&o.children.length>0&&(l=function(e){const t=e.querySelector("div:first-child > img"),n=e.querySelector(".wp-story-title"),r=t&&t.src;return{storyTitle:n&&n.innerText,siteIconUrl:r}}(o));const c=function(e){return e.getAttribute("data-id")}(e),u=document.querySelector(`[data-id='${c}']`);u&&(0,r.createRoot)(u).render((0,i.jsx)(s.A,{id:c,slides:a,metadata:l,disabled:!1,...t}))}(n,o)})})}})()})();