View file File name : view.js Content :/*! For license information please see view.js.LICENSE.txt */ (()=>{var e={95723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(84265);let s,o,i,a;const l=/<(\/)?(\w+)\s*(\/)?>/g;function c(e,t,n,r,s){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:s,children:[]}}const u=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,r.isValidElement)(e)))};function d(e){const t=function(){const e=l.exec(s);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,o,i]=e,a=n.length;if(i)return["self-closed",o,t,a];if(r)return["closer",o,t,a];return["opener",o,t,a]}(),[n,u,d,m]=t,g=a.length,y=d>o?o:null;if(!e[u])return p(),!1;switch(n){case"no-more-tokens":if(0!==g){const{leadingTextStart:e,tokenStart:t}=a.pop();i.push(s.substr(e,t))}return p(),!1;case"self-closed":return 0===g?(null!==y&&i.push(s.substr(y,d-y)),i.push(e[u]),o=d+m,!0):(f(c(e[u],d,m)),o=d+m,!0);case"opener":return a.push(c(e[u],d,m,d+m,y)),o=d+m,!0;case"closer":if(1===g)return function(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:l,children:c}=a.pop(),u=e?s.substr(o,e-o):s.substr(o);u&&c.push(u);null!==n&&i.push(s.substr(n,l-n));i.push((0,r.cloneElement)(t,null,...c))}(d),o=d+m,!0;const t=a.pop(),n=s.substr(t.prevOffset,d-t.prevOffset);t.children.push(n),t.prevOffset=d+m;const l=c(t.element,t.tokenStart,t.tokenLength,d+m);return l.children=t.children,f(l),o=d+m,!0;default:return p(),!1}}function p(){const e=s.length-o;0!==e&&i.push(s.substr(o,e))}function f(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:i,children:l}=e,c=a[a.length-1],u=s.substr(c.prevOffset,n-c.prevOffset);u&&c.children.push(u),c.children.push((0,r.cloneElement)(t,null,...l)),c.prevOffset=i||n+o}t.default=(e,t)=>{if(s=e,o=0,i=[],a=[],l.lastIndex=0,!u(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(d(t));return(0,r.createElement)(r.Fragment,null,...i)}},82170:(e,t,n)=>{"use strict";var r=n(98504);Object.defineProperty(t,"__esModule",{value:!0});var s={createInterpolateElement:!0,Platform:!0,renderToString:!0,RawHTML:!0};Object.defineProperty(t,"Platform",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"RawHTML",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"createInterpolateElement",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"renderToString",{enumerable:!0,get:function(){return u.default}});var o=r(n(95723)),i=n(84265);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=n(81649);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l=n(98219);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(n(52595)),u=r(n(54852)),d=r(n(94468))},52595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0}},94468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({children:e,...t}){let n="";return r.Children.toArray(e).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(n+=e)})),(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:n},...t})};var r=n(84265)},81649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPortal",{enumerable:!0,get:function(){return r.createPortal}}),Object.defineProperty(t,"createRoot",{enumerable:!0,get:function(){return s.createRoot}}),Object.defineProperty(t,"findDOMNode",{enumerable:!0,get:function(){return r.findDOMNode}}),Object.defineProperty(t,"flushSync",{enumerable:!0,get:function(){return r.flushSync}}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return r.hydrate}}),Object.defineProperty(t,"hydrateRoot",{enumerable:!0,get:function(){return s.hydrateRoot}}),Object.defineProperty(t,"render",{enumerable:!0,get:function(){return r.render}}),Object.defineProperty(t,"unmountComponentAtNode",{enumerable:!0,get:function(){return r.unmountComponentAtNode}});var r=n(75795),s=n(18950)},84265:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Children",{enumerable:!0,get:function(){return r.Children}}),Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return r.Component}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return r.Fragment}}),Object.defineProperty(t,"PureComponent",{enumerable:!0,get:function(){return r.PureComponent}}),Object.defineProperty(t,"StrictMode",{enumerable:!0,get:function(){return r.StrictMode}}),Object.defineProperty(t,"Suspense",{enumerable:!0,get:function(){return r.Suspense}}),Object.defineProperty(t,"cloneElement",{enumerable:!0,get:function(){return r.cloneElement}}),t.concatChildren=function(...e){return e.reduce(((e,t,n)=>(r.Children.forEach(t,((t,s)=>{t&&"string"!=typeof t&&(t=(0,r.cloneElement)(t,{key:[n,s].join()})),e.push(t)})),e)),[])},Object.defineProperty(t,"createContext",{enumerable:!0,get:function(){return r.createContext}}),Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return r.createElement}}),Object.defineProperty(t,"createRef",{enumerable:!0,get:function(){return r.createRef}}),Object.defineProperty(t,"forwardRef",{enumerable:!0,get:function(){return r.forwardRef}}),Object.defineProperty(t,"isValidElement",{enumerable:!0,get:function(){return r.isValidElement}}),Object.defineProperty(t,"lazy",{enumerable:!0,get:function(){return r.lazy}}),Object.defineProperty(t,"memo",{enumerable:!0,get:function(){return r.memo}}),Object.defineProperty(t,"startTransition",{enumerable:!0,get:function(){return r.startTransition}}),t.switchChildrenNodeName=function(e,t){return e&&r.Children.map(e,((e,n)=>{if("string"==typeof e?.valueOf())return(0,r.createElement)(t,{key:n},e);const{children:s,...o}=e.props;return(0,r.createElement)(t,{key:n,...o},s)}))},Object.defineProperty(t,"useCallback",{enumerable:!0,get:function(){return r.useCallback}}),Object.defineProperty(t,"useContext",{enumerable:!0,get:function(){return r.useContext}}),Object.defineProperty(t,"useDebugValue",{enumerable:!0,get:function(){return r.useDebugValue}}),Object.defineProperty(t,"useDeferredValue",{enumerable:!0,get:function(){return r.useDeferredValue}}),Object.defineProperty(t,"useEffect",{enumerable:!0,get:function(){return r.useEffect}}),Object.defineProperty(t,"useId",{enumerable:!0,get:function(){return r.useId}}),Object.defineProperty(t,"useImperativeHandle",{enumerable:!0,get:function(){return r.useImperativeHandle}}),Object.defineProperty(t,"useInsertionEffect",{enumerable:!0,get:function(){return r.useInsertionEffect}}),Object.defineProperty(t,"useLayoutEffect",{enumerable:!0,get:function(){return r.useLayoutEffect}}),Object.defineProperty(t,"useMemo",{enumerable:!0,get:function(){return r.useMemo}}),Object.defineProperty(t,"useReducer",{enumerable:!0,get:function(){return r.useReducer}}),Object.defineProperty(t,"useRef",{enumerable:!0,get:function(){return r.useRef}}),Object.defineProperty(t,"useState",{enumerable:!0,get:function(){return r.useState}}),Object.defineProperty(t,"useSyncExternalStore",{enumerable:!0,get:function(){return r.useSyncExternalStore}}),Object.defineProperty(t,"useTransition",{enumerable:!0,get:function(){return r.useTransition}});var r=n(51609)},54852:(e,t,n)=>{"use strict";var r=n(98504);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.hasPrefix=h,t.renderAttributes=_,t.renderComponent=A,t.renderElement=x,t.renderNativeComponent=P,t.renderStyle=F;var s=n(21214),o=n(61433),i=n(89877),a=n(84265),l=r(n(94468));const{Provider:c,Consumer:u}=(0,a.createContext)(void 0),d=(0,a.forwardRef)((()=>null)),p=new Set(["string","boolean","number"]),f=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),m=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),g=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),y=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function h(e,t){return t.some((t=>0===e.indexOf(t)))}function b(e){return"key"===e||"children"===e}function w(e,t){return"style"===e?F(t):t}const v=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),E=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),C=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce(((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e)),{});function S(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return E[t]?E[t]:v[t]?(0,o.paramCase)(v[t]):C[t]?C[t]:t}function k(e){return e.startsWith("--")?e:h(e,["ms","O","Moz","Webkit"])?"-"+(0,o.paramCase)(e):(0,o.paramCase)(e)}function O(e,t){return"number"!=typeof t||0===t||y.has(e)?t:t+"px"}function x(e,t,n={}){if(null==e||!1===e)return"";if(Array.isArray(e))return j(e,t,n);switch(typeof e){case"string":return(0,i.escapeHTML)(e);case"number":return e.toString()}const{type:r,props:s}=e;switch(r){case a.StrictMode:case a.Fragment:return j(s.children,t,n);case l.default:const{children:e,...r}=s;return P(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return P(r,s,t,n);case"function":return r.prototype&&"function"==typeof r.prototype.render?A(r,s,t,n):x(r(s,n),t,n)}switch(r&&r.$$typeof){case c.$$typeof:return j(s.children,s.value,n);case u.$$typeof:return x(s.children(t||r._currentValue),t,n);case d.$$typeof:return x(r.render(s),t,n)}return""}function P(e,t,n,r={}){let s="";if("textarea"===e&&t.hasOwnProperty("value")){s=j(t.value,n,r);const{value:e,...o}=t;t=o}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?s=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(s=j(t.children,n,r));if(!e)return s;const o=_(t);return f.has(e)?"<"+e+o+"/>":"<"+e+o+">"+s+"</"+e+">"}function A(e,t,n,r={}){const s=new e(t,r);"function"==typeof s.getChildContext&&Object.assign(r,s.getChildContext());return x(s.render(),n,r)}function j(e,t,n={}){let r="";e=Array.isArray(e)?e:[e];for(let s=0;s<e.length;s++){r+=x(e[s],t,n)}return r}function _(e){let t="";for(const n in e){const r=S(n);if(!(0,i.isValidAttributeName)(r))continue;let s=w(n,e[n]);if(!p.has(typeof s))continue;if(b(n))continue;const o=m.has(r);if(o&&!1===s)continue;const a=o||h(n,["data-","aria-"])||g.has(r);("boolean"!=typeof s||a)&&(t+=" "+r,o||("string"==typeof s&&(s=(0,i.escapeAttribute)(s)),t+='="'+s+'"'))}return t}function F(e){if(!(0,s.isPlainObject)(e))return e;let t;for(const n in e){const r=e[n];if(null==r)continue;t?t+=";":t="";t+=k(n)+":"+O(n,r)}return t}t.default=x},98219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyElement=void 0;t.isEmptyElement=e=>"number"!=typeof e&&("string"==typeof e?.valueOf()||Array.isArray(e)?!e.length:!e)},51889:(e,t,n)=>{"use strict";n.d(t,{$4:()=>o,fZ:()=>i,xQ:()=>a});var r=n(54715),s=n(82769);function o(e,t){return 0===t?e.toLowerCase():(0,s.l3)(e,t)}function i(e,t){return 0===t?e.toLowerCase():(0,s.$7)(e)}function a(e,t){return void 0===t&&(t={}),(0,s.fL)(e,(0,r.Cl)({transform:o},t))}},91859:(e,t,n)=>{"use strict";n.d(t,{D:()=>a,f:()=>i});var r=n(54715),s=n(2532),o=n(21644);function i(e){return(0,o.R)(e.toLowerCase())}function a(e,t){return void 0===t&&(t={}),(0,s.W)(e,(0,r.Cl)({delimiter:" ",transform:i},t))}},61433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{camelCase:()=>r.xQ,camelCaseTransform:()=>r.$4,camelCaseTransformMerge:()=>r.fZ,capitalCase:()=>s.D,capitalCaseTransform:()=>s.f,constantCase:()=>o.F,dotCase:()=>i.a,headerCase:()=>a.u,noCase:()=>l.W,paramCase:()=>c.c,pascalCase:()=>u.fL,pascalCaseTransform:()=>u.l3,pascalCaseTransformMerge:()=>u.$7,pathCase:()=>d.y,sentenceCase:()=>p.o,sentenceCaseTransform:()=>p.u,snakeCase:()=>f.L});var r=n(51889),s=n(91859),o=n(55633),i=n(19382),a=n(22774),l=n(2532),c=n(74572),u=n(82769),d=n(70320),p=n(82682),f=n(68963)},55633:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(54715),s=n(2532),o=n(88415);function i(e,t){return void 0===t&&(t={}),(0,s.W)(e,(0,r.Cl)({delimiter:"_",transform:o.l},t))}},19382:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(54715),s=n(2532);function o(e,t){return void 0===t&&(t={}),(0,s.W)(e,(0,r.Cl)({delimiter:"."},t))}},22774:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(54715),s=n(91859);function o(e,t){return void 0===t&&(t={}),(0,s.D)(e,(0,r.Cl)({delimiter:"-"},t))}},21214:(e,t)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},25700:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});function r(e){return e.toLowerCase()}},44997:e=>{var t=1e3,n=60*t,r=60*n,s=24*r,o=7*s,i=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*i;case"weeks":case"week":case"w":return l*o;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 o=Math.abs(e);if(o>=s)return a(e,o,s,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=s)return Math.round(e/s)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=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))}},2532:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(25700),s=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],o=/[^A-Z0-9]+/gi;function i(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,i=void 0===n?s:n,l=t.stripRegexp,c=void 0===l?o:l,u=t.transform,d=void 0===u?r.g:u,p=t.delimiter,f=void 0===p?" ":p,m=a(a(e,i,"$1\0$2"),c,"\0"),g=0,y=m.length;"\0"===m.charAt(g);)g++;for(;"\0"===m.charAt(y-1);)y--;return m.slice(g,y).split("\0").map(d).join(f)}function a(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}},74572:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(54715),s=n(19382);function o(e,t){return void 0===t&&(t={}),(0,s.a)(e,(0,r.Cl)({delimiter:"-"},t))}},82769:(e,t,n)=>{"use strict";n.d(t,{$7:()=>i,fL:()=>a,l3:()=>o});var r=n(54715),s=n(2532);function o(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function i(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function a(e,t){return void 0===t&&(t={}),(0,s.W)(e,(0,r.Cl)({delimiter:"",transform:o},t))}},70320:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(54715),s=n(19382);function o(e,t){return void 0===t&&(t={}),(0,s.a)(e,(0,r.Cl)({delimiter:"/"},t))}},18950:(e,t,n)=>{"use strict";var r=n(75795);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},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,o,i=r[n.type],a=t(n);if(i)for(s=0;s<i.length;s++)(o=i[s](n,e))&&e.dispatch(o);return a}}}).effects=r,n}},82682:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,u:()=>i});var r=n(54715),s=n(2532),o=n(21644);function i(e,t){var n=e.toLowerCase();return 0===t?(0,o.R)(n):n}function a(e,t){return void 0===t&&(t={}),(0,s.W)(e,(0,r.Cl)({delimiter:" ",transform:i},t))}},68963:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(54715),s=n(19382);function o(e,t){return void 0===t&&(t={}),(0,s.a)(e,(0,r.Cl)({delimiter:"_"},t))}},90372:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(10067);const s=n.n(r)()("dops:analytics");let o,i;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){i={ID:e,username:t}},setSuperProps:function(e){o=e},assignSuperProps:function(e){o=Object.assign(o||{},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,o,i){a.ga.recordPurchase(e,t,n,r,s,o,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(o&&(s("- Super Props: %o",o),t=Object.assign(t,o)),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||(i&&(e={userId:"u-"+i.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 o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(o+=" [Option Label: "+n+"]"),void 0!==r&&(o+=" [Option Value: "+r+"]"),s(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,s,o,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:s,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},l=a},85985:(e,t,n)=>{"use strict";n.d(t,{sh:()=>r.s});n(82034),n(65595),n(53265),n(73489),n(76923),n(15877);var r=n(30335);n(88290)},15877:(e,t,n)=>{"use strict";n(51609)},30335:(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 o=document.createElement("div");o.innerHTML=e.icon;const i=o.querySelector("svg");return i&&(n="svg",s=i.innerHTML,Array.from(i.attributes).forEach((({nodeName:e,nodeValue:n})=>t[e]=n))),(0,r.createElement)(n,{...t,dangerouslySetInnerHTML:{__html:s||""}})}},73489:(e,t,n)=>{"use strict";var r=n(90372);n(39384),n(86087);const{tracks:s}=r.A,{recordEvent:o}=s},76923:(e,t,n)=>{"use strict";n(47143),n(86087),n(88290)},27105:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,E9:()=>u});var r=n(47143),s=n(62634),o=n(94478),i=n(88290);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,o.sB)(e);const t=yield(0,o.wz)();return yield u({data:t}),!0}catch(e){const t=(0,r.select)(i.F).getJetpackModules();return yield u(t),!1}finally{yield c(e.name,!1)}},setJetpackModules:u,fetchModules:function*(){if((0,s.Sy)())return!0;try{yield l(!0);const e=yield(0,o.wz)();return yield u({data:e}),!0}catch(e){const t=(0,r.select)(i.F).getJetpackModules();return yield u(t),!1}finally{yield l(!1)}}}},94478:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,sB:()=>l,wz:()=>a});var r=n(1455),s=n.n(r);const o="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",a=()=>({type:o}),l=e=>({type:i,settings:e}),c={[o]:function(){return s()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return s()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},88290:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var r=n(47143),s=n(27105),o=n(94478),i=n(38862),a=n(62701),l=n(31640);const c="jetpack-modules",u=(0,r.createReduxStore)(c,{reducer:i.A,actions:s.Ay,controls:o.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}})},38862:(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}},62701:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(27105),s=n(94478);const o={getJetpackModules:function*(){try{const e=yield(0,s.wz)();if(e)return(0,r.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(62634);const s={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,r.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},53265:(e,t,n)=>{"use strict";var r=n(27723);n(93832),n(66087);const __=r.__;__("Upgrade your plan to use video covers","jetpack"),__("Upgrade your plan to upload audio","jetpack")},82034:(e,t,n)=>{"use strict";n(92279)},62634:(e,t,n)=>{"use strict";function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function s(){return"simple"===r()}n.d(t,{Sy:()=>s})},65595:(e,t,n)=>{"use strict";n(96072),n(29491)},71645:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82170),s=n(5573);function o({currentMedia:e}){const t=e&&"image"===e.type?e.url:null;return(0,r.createElement)("div",{className:"wp-story-background"},(0,r.createElement)("div",{className:"wp-story-background-image",style:{backgroundImage:t?`url("${t}")`:"none"}}),(0,r.createElement)("div",{className:"wp-story-background-blur"}),(0,r.createElement)(s.SVG,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0"},(0,r.createElement)("filter",{id:"gaussian-blur-18"},(0,r.createElement)("feGaussianBlur",{stdDeviation:"18"}))))}},79809:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82170),s=n(27723),o=n(13022);const __=s.__;function i({isEllipsis:e,disabled:t,index:n,isSelected:i,progress:a,onClick:l}){const c=t||e;let u=null;return e||(u=i?(0,s.sprintf)(/* translators: %d: Slide number. */ __("Slide %d, currently selected","jetpack"),n+1):(0,s.sprintf)(/* translators: %d: Slide number. */ __("Go to slide %d","jetpack"),n+1)),(0,r.createElement)("button",{role:c?"presentation":"tab",key:n,className:(0,o.A)("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":e}),"aria-label":u,"aria-disabled":c||i,onClick:c||i?void 0:l,disabled:c},(0,r.createElement)("div",{className:"wp-story-pagination-bullet-bar"},(0,r.createElement)("div",{className:"wp-story-pagination-bullet-bar-progress",style:{width:`${a}%`}})))}},35941:(e,t,n)=>{"use strict";n.d(t,{d:()=>l,k:()=>a});var r=n(96072),s=n.n(r),o=n(82170),i=n(13022);const a=({className:e,size:t,label:n,isPressed:r,...a})=>(0,o.createElement)("button",s()({type:"button","aria-label":n,"aria-pressed":r,className:(0,i.A)("jetpack-mdc-icon-button","circle-icon","outlined","bordered",e),style:{width:`${t}px`,height:`${t}px`}},a)),l=({className:e,size:t=24,label:n,isPressed:r,...a})=>(0,o.createElement)("button",s()({type:"button","aria-label":n,"aria-pressed":r,className:(0,i.A)("jetpack-mdc-icon-button",e),style:{width:`${t}px`,height:`${t}px`}},a))},20058:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(82170);const s=()=>(0,r.createElement)("div",{className:"wp-story-loading-spinner"},(0,r.createElement)("div",{className:"wp-story-loading-spinner__outer"},(0,r.createElement)("div",{className:"wp-story-loading-spinner__inner"})))},48907:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82170),s=n(27723),o=n(35941),i=n(44227);const _x=s._x;function a({playing:e,muted:t,onPlayPressed:n,onMutePressed:s,showMute:a}){return(0,r.createElement)("div",{className:"wp-story-controls"},(0,r.createElement)(o.d,{isPressed:e,label:e?_x("pause","Button tooltip text","jetpack"):_x("play","Button tooltip text","jetpack",0),onClick:n},e?(0,r.createElement)(i.E$,null):(0,r.createElement)(i.ud,null)),a&&(0,r.createElement)(o.d,{isPressed:t,label:t?_x("unmute","Button tooltip text","jetpack"):_x("mute","Button tooltip text","jetpack",0),onClick:s},t?(0,r.createElement)(i.lQ,null):(0,r.createElement)(i.Fz,null)))}},41256:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82170),s=n(27723),o=n(35941),i=n(44227);const __=s.__;function a({fullscreen:e,onExitFullscreen:t,siteIconUrl:n,storyTitle:s}){return e?(0,r.createElement)("div",{className:"wp-story-meta"},(0,r.createElement)("div",{className:"wp-story-icon"},(0,r.createElement)("img",{alt:__("Site icon","jetpack"),src:n,width:"40",height:"40"})),(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"wp-story-title"},s)),(0,r.createElement)(o.d,{className:"wp-story-exit-fullscreen",label:__("Exit Fullscreen","jetpack"),onClick:t},(0,r.createElement)(i.US,null))):null}},44227:(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(82170),s=n(5573),o=n(62289);const i=({children:e,size:t})=>(0,o.A)(e,t,t),a=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(s.Path,{d:"M8 5v14l11-7z"})),l=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(s.Path,{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})),c=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(s.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,r.createElement)(i,{size:e},(0,r.createElement)(s.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,r.createElement)(i,{size:e},(0,r.createElement)(s.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,r.createElement)(i,{size:e},(0,r.createElement)(s.Path,{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),f=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(s.Path,{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))},84545:(e,t,n)=>{"use strict";n.d(t,{$U:()=>c.$U,Dv:()=>r.A,H2:()=>s.A,VS:()=>a.A,Y9:()=>o.A,hJ:()=>i.A,xu:()=>l.A});var r=n(79809),s=n(48907),o=n(41256),i=n(38925),a=n(71645),l=n(20058),c=n(45221);n(35941)},45221:(e,t,n)=>{"use strict";n.d(t,{$U:()=>c});var r=n(96072),s=n.n(r),o=n(82170),i=n(13022);const a=({title:e,alt:t,className:n,id:r,mediaRef:s,mime:a,sizes:l,srcset:c,url:u})=>(0,o.createElement)("img",{ref:s,"data-id":r,"data-mime":a,title:e,alt:t,src:u,className:(0,i.A)("wp-story-image",`wp-image-${r}`,n),srcSet:c,sizes:l}),l=({title:e,className:t,id:n,mediaRef:r,mime:s,url:a,poster:l})=>(0,o.createElement)("video",{className:(0,i.A)("wp-story-video","intrinsic-ignore",`wp-video-${n}`,t),ref:r,"data-id":n,title:e,type:s,src:a,poster:l,tabIndex:-1,preload:"auto",playsInline:!0}),c=({targetAspectRatio:e,cropUpTo:t,type:n,width:r,height:i,...c})=>{let u=null;if(r&&i){const n=r/i;if(n>=e){n>e/(1-t)||(u="wp-story-crop-wide")}else{n<e*(1-t)||(u="wp-story-crop-narrow")}}const d="video"===n||(c.mime||"").startsWith("video/");return(0,o.createElement)("figure",null,d?(0,o.createElement)(l,s()({},c,{className:u})):(0,o.createElement)(a,s()({},c,{className:u})))}},38925:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(82170),s=n(86087),o=n(27723),i=n(14847),a=n(35941),l=n(44227);const __=o.__;function c({ended:e,hasPrevious:t,onNextSlide:n,onPreviousSlide:c,icon:u,slideCount:d,showSlideCount:p}){const f=(0,s.useCallback)((t=>{e||(t.stopPropagation(),c())}),[c,e]),m=(0,s.useCallback)((t=>{e||(t.stopPropagation(),n())}),[n,e]);return(0,r.createElement)("div",{className:"wp-story-overlay"},p&&(0,r.createElement)("div",{className:"wp-story-embed-icon"},u,(0,r.createElement)("span",null,d)),!p&&(0,r.createElement)("div",{className:"wp-story-embed-icon-expand"},(0,r.createElement)(i.A,{role:"img"})),t&&(0,r.createElement)("div",{className:"wp-story-prev-slide",onClick:f},(0,r.createElement)(a.k,{size:44,label:__("Previous Slide","jetpack"),className:"outlined-w"},(0,o.isRTL)()?(0,r.createElement)(l.af,{size:24}):(0,r.createElement)(l.Ej,{size:24}))),(0,r.createElement)("div",{className:"wp-story-next-slide",onClick:m},(0,r.createElement)(a.k,{size:44,label:__("Next Slide","jetpack"),className:"outlined-w"},(0,o.isRTL)()?(0,r.createElement)(l.Ej,{size:24}):(0,r.createElement)(l.af,{size:24}))))}},92248:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(82170),s=n(86087),o=n(13022),i=n(10938),a=n(41055),l=n(51266);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:m,children:g}){const y=(0,s.useRef)(void 0),h=(0,s.useRef)(void 0),[b,w]=(0,s.useState)(null),v=c&&i.Sn(),E=u&&!v,C=u&&v;return(0,s.useLayoutEffect)((()=>{if(v)u?y.current&&i.ql(y.current,f):i.ND()&&i.NS();else if(u){if(w([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(m);e&&e.focus()}}else if(document.body.classList.remove(n),document.getElementsByTagName("html")[0].classList.remove(n),b){window.scrollTo(...b);const e=y.current.querySelector(m);e&&e.focus()}}),[u]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.A,d,(0,r.createElement)("div",{ref:y,className:(0,o.A)(e,{[t]:C}),onKeyDown:p},!E&&g)),(0,r.createElement)(l.A,{className:(0,o.A)(e,{[t]:E}),isOpened:E,onRequestClose:f,shadowDOM:d,onKeyDown:E&&p,focusOnMount:!1,modalRef:h},E&&g))}},97896:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(82170),s=n(47143),o=n(86087),i=n(48558),a=n(92248),l=n(33470);n(57418);function c({id:e,slides:t,metadata:n,disabled:c,...u}){const d=(0,o.useMemo)((()=>e||Math.random().toString(36)),[e]),{init:p,setEnded:f,setPlaying:m,setFullscreen:g,showSlide:y}=(0,s.useDispatch)("jetpack/story/player"),{playing:h,currentSlideIndex:b,fullscreen:w,isReady:v,playerSettings:E}=(0,s.useSelect)((e=>{const{getCurrentSlideIndex:t,getSettings:n,isFullscreen:r,isPlayerReady:s,isPlaying:o}=e("jetpack/story/player");return s(d)?{playing:o(d),currentSlideIndex:t(d),isReady:!0,fullscreen:r(d),playerSettings:n(d)}:{isReady:!1}}),[d]);(0,o.useEffect)((()=>{v||p(d,{slideCount:t.length,...u})}),[v,d]);const C=(0,o.useCallback)((e=>{switch(e.keyCode){case i.ENTER:if(w)break;case i.SPACE:m(d,!h);break;case i.LEFT:b>0&&y(d,b-1);break;case i.RIGHT:b<t.length-1?y(d,b+1):f(d)}}),[d,b,w,h]),S=(0,o.useCallback)((()=>{g(d,!1)}),[d]);return v?(0,r.createElement)(a.A,{shadowDOM:E.shadowDOM,className:"wp-story-app",fullscreenClassName:"wp-story-fullscreen",bodyFullscreenClassName:"wp-story-in-fullscreen",playerQuerySelector:".wp-story-container",fullscreen:w,onExitFullscreen:S,onKeyDown:C},(0,r.createElement)(l.A,{id:d,slides:t,metadata:n,disabled:c})):null}},10938:(e,t,n)=>{"use strict";n.d(t,{ND:()=>s,NS:()=>i,Sn:()=>r,ql:()=>o});const r=()=>document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled,s=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement,o=(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)}},i=()=>(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document)},41055:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82170),s=n(86087);const o=window&&window.Element&&Object.hasOwn(window.Element.prototype,"attachShadow");function i({enabled:e,delegatesFocus:t=!1,mode:n="open",globalStyleElements:i=[],adoptedStyleSheets:l=null,mountOnElement:c=null,children:u}){const[d,p]=(0,s.useState)(null),f=c||d,[m,g]=(0,s.useState)(null),y="string"==typeof i?[...document.querySelectorAll(i)]:i,h=o&&e&&y.length>0,b=(0,s.useCallback)((e=>{null!==e&&p(e.parentNode)}),[]);if((0,s.useEffect)((()=>{if(!f)return;if(f.shadowRoot)return void g(f.shadowRoot);const e=f.attachShadow({delegatesFocus:t,mode:n});l&&(e.adoptedStyleSheets=l),g(e)}),[f]),h&&!m)return c?null:(0,r.createElement)("span",{ref:b});const w=(0,r.createElement)(r.Fragment,null,h&&(0,r.createElement)(a,{globalStyleElements:y}),u);return h?(0,s.createPortal)(w,m):w}function a({globalStyleElements:e}){return(0,r.createElement)(r.Fragment,null,e.map((({id:e,tagName:t,attributes:n,innerHTML:s},o)=>"LINK"===t?(0,r.createElement)("link",{key:e||o,id:e,rel:n.rel.value,href:n.href.value}):"STYLE"===t?(0,r.createElement)("style",{key:e||o,id:e},s):void 0)))}},96464:(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),o=(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",o,{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",o)}),[])}}},55028:(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})},72246:(e,t,n)=>{"use strict";n.d(t,{WI:()=>a,fe:()=>l});var r=n(66087);const s=new Set(["alert","status","log","marquee","timer"]);let o=[],i=!1;function a(e){if(i)return;const t=document.body.children;(0,r.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||s.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),o.push(t))})),i=!0}function l(){i&&((0,r.forEach)(o,(e=>{e.removeAttribute("aria-hidden")})),o=[],i=!1)}},38215:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82170),s=n(29491),o=n(48558);function i({overlayClassName:e,children:t,className:n,focusOnMount:i,shouldCloseOnEsc:a=!0,onRequestClose:l,onKeyDown:c,modalRef:u}){const d=(0,s.useFocusOnMount)(i),p=(0,s.useConstrainedTabbing)(),f=(0,s.useFocusReturn)();return(0,r.createElement)("div",{className:e,onKeyDown:function(e){a&&e.keyCode===o.ESCAPE&&(e.stopPropagation(),l&&l(e)),e.target&&"button"===e.target.tagName.toLowerCase()&&e.keyCode===o.SPACE||c&&c(e)}},(0,r.createElement)("div",{className:n,ref:(0,s.useMergeRefs)([p,f,d,u])},t))}},51266:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(96072),s=n.n(r),o=n(82170),i=n(29491),a=n(86087),l=n(41055),c=n(72246),u=n(38215);let d,p=0;const f=()=>{};class m extends a.Component{constructor(e){super(e),this.prepareDOM()}componentDidMount(){p++,1===p&&this.openFirstModal()}componentWillUnmount(){p--,0===p&&this.closeLastModal(),this.cleanDOM()}prepareDOM(){d||(d=document.createElement("div"),document.body.appendChild(d)),this.node=document.createElement("div"),d.appendChild(this.node),this.node.ontouchstart=f,this.node.ontouchend=f}cleanDOM(){this.node&&d&&d.contains(this.node)&&d.removeChild(this.node),this.node=null}openFirstModal(){c.WI(d)}closeLastModal(){c.fe()}render(){const{children:e,isOpened:t,shadowDOM:n,...r}=this.props;return(0,o.createElement)(l.A,s()({},n,{mountOnElement:this.node}),t&&(0,o.createElement)(u.A,r,e))}}m.defaultProps={shouldCloseOnEsc:!0,isOpened:!1,focusOnMount:!0};const g=(0,i.withInstanceId)(m)},33470:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(96072),s=n.n(r),o=n(82170),i=n(85985),a=n(63162),l=n(29491),c=n(47143),u=n(86087),d=n(27723),p=n(13022),f=n(66087),m=n(68331),g=n(84545),y=n(96464),h=n(65489),b=n(42153);const __=d.__,w=(0,i.sh)(m);function v({id:e,slides:t,metadata:n,disabled:r}){const{setFullscreen:i,setEnded:d,setPlaying:m,setMuted:v,showSlide:E}=(0,c.useDispatch)("jetpack/story/player"),{playing:C,muted:S,currentSlideIndex:k,currentSlideEnded:O,ended:x,fullscreen:P,settings:A}=(0,c.useSelect)((t=>{const{getCurrentSlideIndex:n,getSettings:r,hasCurrentSlideEnded:s,hasEnded:o,isFullscreen:i,isMuted:a,isPlaying:l}=t("jetpack/story/player");return{playing:l(e),muted:a(e),currentSlideIndex:n(e),currentSlideEnded:s(e),ended:o(e),fullscreen:i(e),settings:r(e)}}),[e]),j=(0,u.useRef)(void 0),[_,F]=(0,u.useState)(null),[M,{width:T,height:I}]=(0,l.useResizeObserver)(),[R,N]=(0,u.useState)(A.defaultAspectRatio),L=(0,f.some)(t,(e=>(0,a.isBlobURL)(e.url))),D=t=>{E(e,t)},U=(0,u.useCallback)((()=>{r||P||A.playInFullscreen&&!C&&m(e,!0)}),[C,r,P]),{onTouchStart:z,onTouchEnd:B}=(0,y.A)((t=>{m(e,!t)}),[]),H=(0,u.useCallback)((()=>{k>0&&D(k-1)}),[k]),$=(0,u.useCallback)((()=>{k<t.length-1?D(k+1):d(e)}),[k,t]),q=(0,u.useCallback)((()=>{i(e,!1)}),[]);let V,W;return(0,u.useEffect)((()=>{r&&C&&m(e,!1)}),[r,C]),(0,u.useEffect)((()=>{C&&O&&$()}),[C,O]),(0,u.useLayoutEffect)((()=>{if(!j.current)return;let e=Math.round(A.defaultAspectRatio*j.current.offsetHeight);P&&(e=Math.abs(1-e/T)<A.cropUpTo?T:e),F(e)}),[T,I,P]),(0,u.useLayoutEffect)((()=>{_&&j.current&&j.current.offsetHeight>0&&N(_/j.current.offsetHeight)}),[_]),V=P?[__("You are currently playing a story.","jetpack"),C?__("Press space to pause.","jetpack"):__("Press space to play.","jetpack",0),__("Press escape to exit.","jetpack")].join(" "):__("Play story","jetpack"),W=r?"presentation":P?"dialog":"button",(0,o.createElement)("div",{className:"wp-story-display-contents"},M,(0,o.createElement)("div",{role:W,"aria-label":V,tabIndex:P?-1:0,className:(0,p.A)("wp-story-container",{"wp-story-with-controls":!r&&!P&&!A.playInFullscreen,"wp-story-fullscreen":P,"wp-story-ended":x,"wp-story-disabled":r,"wp-story-clickable":!r&&!P}),style:{maxWidth:`${_}px`},onClick:U,onTouchStart:z,onTouchEnd:B},(0,o.createElement)(g.Y9,s()({},n,{fullscreen:P,onExitFullscreen:q})),(0,o.createElement)("div",{ref:j,className:"wp-story-wrapper"},t.map(((t,n)=>(0,o.createElement)(b.A,{playerId:e,key:n,media:t,index:n,playing:!r&&C,uploading:L,settings:A,targetAspectRatio:R})))),(0,o.createElement)(g.hJ,{icon:w,slideCount:t.length,showSlideCount:A.showSlideCount,ended:x,hasPrevious:k>0,onPreviousSlide:H,onNextSlide:$}),A.showProgressBar&&(0,o.createElement)(h.Ay,{playerId:e,slides:t,disabled:!P,onSlideSeek:D,maxBullets:P?A.maxBulletsFullscreen:A.maxBullets}),(0,o.createElement)(g.H2,{playing:C,muted:S,onPlayPressed:()=>m(e,!C),onMutePressed:()=>v(e,!S),showMute:(e=>{const n=e<t.length?t[e]:null;return!!n&&("video"===n.type||(n.mime||"").startsWith("video/"))})(k)})),P&&(0,o.createElement)(g.VS,{currentMedia:A.blurredBackground&&t.length>k&&t[k]}))}},65489:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(82170),s=n(47143),o=n(66087),i=n(84545);const a=({bulletIndex:e,playerId:t,index:n,disabled:o,isSelected:a,onClick:l})=>{const c=(0,s.useSelect)((e=>e("jetpack/story/player").getCurrentSlideProgressPercentage(t)),[t]);return(0,r.createElement)(i.Dv,{key:`bullet-${e}`,index:n,progress:c,disabled:o,isSelected:a,onClick:l})},l=({playerId:e,slides:t,disabled:n,onSlideSeek:l,maxBullets:c})=>{const{currentSlideIndex:u}=(0,s.useSelect)((t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e)})),[e]),d=Math.min(t.length,c),p=Math.floor(d/2);let f,m=0,g=t.length-1;return t.length<=c||u<p?(f=u,g=d-1):u>=t.length-p?(f=u-t.length+d,m=t.length-d):(f=p,m=u-p,g=u+p),(0,r.createElement)("div",{className:"wp-story-pagination wp-story-pagination-bullets",role:"tablist"},m>0&&(0,r.createElement)(i.Dv,{key:"bullet-0",index:m-1,progress:100,isEllipsis:!0}),(0,o.range)(1,d+1).map(((t,s)=>{const o=s+m;let c=null;if(o<u)c=100;else{if(!(o>u))return(0,r.createElement)(a,{playerId:e,bulletIndex:s,key:`bullet-${s}`,index:o,disabled:n,isSelected:f===s,onClick:()=>l(o)});c=0}return(0,r.createElement)(i.Dv,{key:`bullet-${s}`,index:o,progress:c,disabled:n,isSelected:f===s,onClick:()=>l(o)})})),g<t.length-1&&(0,r.createElement)(i.Dv,{key:`bullet-${d+1}`,index:g+1,progress:0,isEllipsis:!0}))}},42153:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(96072),s=n.n(r),o=n(82170),i=n(47143),a=n(86087),l=n(13022),c=n(84545),u=n(55028);const d=({playerId:e,media:t,index:n,playing:r,uploading:d,settings:p,targetAspectRatio:f})=>{const{currentSlideIndex:m,buffering:g}=(0,i.useSelect)((t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e),buffering:t("jetpack/story/player").isBuffering(e)})),[e]),{slideReady:y}=(0,i.useDispatch)("jetpack/story/player"),h=n===m,b=(0,a.useRef)(null),[w,v]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{if(h&&!E){const t=b.current&&b.current.src&&"video"===b.current.tagName.toLowerCase()?b.current:null;y(e,b.current,t?t.duration:p.imageTime)}}),[h,E]),(0,a.useEffect)((()=>{n<=m+(r?1:0)&&v(!0)}),[r,m]),(0,a.useLayoutEffect)((()=>{b.current&&(0,u.A)(b.current).then((()=>{C(!1)}))}),[w,d]),(0,o.createElement)(o.Fragment,null,h&&(E||d||g)&&(0,o.createElement)("div",{className:(0,l.A)("wp-story-slide","is-loading",{transparent:r&&g,"semi-transparent":d||!r&&g})},(0,o.createElement)(c.xu,null)),(0,o.createElement)("div",{role:"figure",className:"wp-story-slide",style:{display:h&&!E?"block":"none"},tabIndex:h?0:-1},w&&(0,o.createElement)(c.$U,s()({},t,{targetAspectRatio:f,cropUpTo:p.cropUpTo,index:n,mediaRef:b}))))}},87561:(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 o(e,t){return{type:"SHOW_SLIDE",index:t,playerId:e}}function i(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:()=>o,slideReady:()=>i})},75483:(e,t,n)=>{"use strict";n.d(t,{Tb:()=>r,kD:()=>o,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},o={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}}},24500:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(87561),s=n(79920);const o=e=>e&&e.src&&"video"===e.tagName.toLowerCase();function i(e,t){const{getState:n}=t,r=e.playerId,i=(0,s.getCurrentMediaElement)(n(),r),a=(0,s.getPreviousSlideMediaElement)(n(),r);if(o(a)&&(a.currentTime=0,a.onwaiting=null,a.onplaying=null,a.pause()),!o(i))return;const l=(0,s.isMuted)(n(),r),c=(0,s.isPlaying)(n(),r),u=(0,s.getSettings)(n(),r);l!==i.muted&&(i.muted=l,l||(i.volume=u.volume)),c?i.play():i.pause()}function a(e,t){const{getState:n,dispatch:i}=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&&i((0,r.setCurrentSlideProgress)(l,{...d,lastUpdate:null})));const p=(0,s.getCurrentMediaElement)(n(),l),f=(0,s.getCurrentMediaDuration)(n(),l),m=d.lastUpdate?Date.now()-d.lastUpdate:100,g=o(p)?p.currentTime:d.currentTime+m/1e3;if(g>=f){i((0,r.setCurrentSlideEnded)(l));const e=(0,s.getSlideCount)(n(),l);(0,s.getCurrentSlideIndex)(n(),l)===e-1&&i((0,r.setEnded)(l))}else i((0,r.setCurrentSlideProgress)(l,{timeout:setTimeout((()=>a(e,t)),100),lastUpdate:Date.now(),duration:f,currentTime:g}))}const l={SET_PLAYING:[a,i],SLIDE_READY:[function(e,t){const{getState:n,dispatch:i}=t,a=e.playerId,l=(0,s.getCurrentMediaElement)(n(),a);if(!o(l))return;const c=(0,s.getCurrentSlideProgress)(n(),a);0===l.currentTime&&c.currentTime>0&&(l.currentTime=c.currentTime),l.onwaiting=()=>i((0,r.setBuffering)(a,!0)),l.onplaying=()=>i((0,r.setBuffering)(a,!1))},a,i],SET_MUTED:i,SHOW_SLIDE:i}},57418:(e,t,n)=>{"use strict";var r=n(47143),s=n(87561),o=n(74439),i=n(54502),a=n(79920);const l=(0,r.registerStore)("jetpack/story/player",{actions:s,reducer:i.A,selectors:a});(0,o.A)(l)},74439:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(66087),s=n(32047),o=n.n(s),i=n(24500);function a(e){const t=[o()(i.A)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s=[];const a={getState:e.getState,dispatch:(...e)=>n(...e)};return s=t.map((e=>e(a))),n=(0,r.flowRight)(...s)(e.dispatch),e.dispatch=n,e}},54502:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(66087),s=n(75483);function o(e=s.kD,t){switch(t.type){case"SHOW_SLIDE":{const n=e.currentSlide===t.index+1;return{...e,currentSlide:{...s.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:{...s.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?{...s.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=(0,r.merge)({},e.settings,t.settings);return{...e,settings:n,playing:n.playOnLoad,fullscreen:n.loadInFullscreen}}case"ENDED":return{...e,currentSlide:{...s.nh,index:e.settings.slideCount-1,progress:{...s.Tb,currentTime:100,duration:100}},ended:!0,playing:!1,fullscreen:!e.settings.exitFullscreenOnEnd}}return e}function i(e={},t){return t.playerId?{...e,[t.playerId]:o(e[t.playerId],t)}:e}},79920:(e,t,n)=>{"use strict";function r(e,t){return!!e[t]}function s(e,t){return e[t].currentSlide.index}function o(e,t){return e[t].currentSlide.progress}function i(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 m(e,t){return e[t].previousSlide?.mediaElement}function g(e,t){return e[t].fullscreen}function y(e,t){return e[t].ended}function h(e,t){return e[t].settings}function b(e,t){return e[t].settings.slideCount}n.r(t),n.d(t,{getCurrentMediaDuration:()=>d,getCurrentMediaElement:()=>u,getCurrentSlideIndex:()=>s,getCurrentSlideProgress:()=>o,getCurrentSlideProgressPercentage:()=>i,getPreviousSlideMediaElement:()=>m,getSettings:()=>h,getSlideCount:()=>b,hasCurrentSlideEnded:()=>p,hasEnded:()=>y,isBuffering:()=>c,isCurrentSlideReady:()=>f,isFullscreen:()=>g,isMuted:()=>l,isPlayerReady:()=>r,isPlaying:()=>a})},79366:(e,t,n)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},62289:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82170),s=n(5573);const o=(e,t=24,n=24,o="0 0 24 24")=>(0,r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:o},(0,r.createElement)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e)},10067:(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")}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;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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$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(78926)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},78926:(e,t,n)=>{e.exports=function(e){function t(e){let n,s,o,i=null;function a(...e){if(!a.enabled)return;const r=a,s=Number(new Date),o=s-(n||s);r.diff=o,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";i++;const o=t.formatters[s];if("function"==typeof o){const t=e[i];n=o.call(r,t),e.splice(i,1),i--}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!==i?i:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{i=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){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}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.map(s),...t.skips.map(s).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),s=r.length;for(n=0;n<s;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))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}},14847:(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={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(e,o),c=["gridicon","gridicons-fullscreen",a,!1,!1,!1].filter(Boolean).join(" ");return s.default.createElement("svg",i({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},o=["size","onClick","icon","className"];function i(){return i=Object.assign||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},i.apply(this,arguments)}},54715:(e,t,n)=>{"use strict";n.d(t,{Cl:()=>r});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};Object.create;Object.create},21644:(e,t,n)=>{"use strict";function r(e){return e.charAt(0).toUpperCase()+e.substr(1)}n.d(t,{R:()=>r})},88415:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});function r(e){return e.toUpperCase()}},39384:e=>{"use strict";e.exports=window.JetpackConnection},51609:e=>{"use strict";e.exports=window.React},75795:e=>{"use strict";e.exports=window.ReactDOM},66087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},63162:e=>{"use strict";e.exports=window.wp.blob},29491:e=>{"use strict";e.exports=window.wp.compose},47143:e=>{"use strict";e.exports=window.wp.data},98490:e=>{"use strict";e.exports=window.wp.domReady},86087:e=>{"use strict";e.exports=window.wp.element},89877:e=>{"use strict";e.exports=window.wp.escapeHtml},27723:e=>{"use strict";e.exports=window.wp.i18n},48558:e=>{"use strict";e.exports=window.wp.keycodes},92279:e=>{"use strict";e.exports=window.wp.plugins},5573:e=>{"use strict";e.exports=window.wp.primitives},93832:e=>{"use strict";e.exports=window.wp.url},96072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},98504:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},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 o=e.length;for(t=0;t<o;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="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(s&&(s+=" "),s+=t);return s}},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"}]}}}')}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{"use strict";n(79366)})(),(()=>{"use strict";var e=n(96072),t=n.n(e),r=n(82170),s=n(98490),o=n.n(s),i=n(86087),a=n(97896);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(r){e[n]=JSON.parse(`"${t[1]}"`)}return e}),{});o()((function(){const n=[...document.querySelectorAll(":not(#debug-bar-wp-query) .wp-story")];n.forEach((s=>{if("true"===s.getAttribute("data-block-initialized"))return;let o=null;1===n.length&&(o={...e});const l=s.getAttribute("data-settings");if(l)try{o={...o,...JSON.parse(l)}}catch(e){}!function(e,n){"string"==typeof e&&(e=document.querySelectorAll(e));const s=e.querySelector(".wp-story-wrapper"),o=e.querySelector(".wp-story-meta");let l=[];s&&s.children.length>0&&(l=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")})))}(s));let c={};o&&o.children.length>0&&(c=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 u=function(e){return e.getAttribute("data-id")}(e),d=document.querySelector(`[data-id='${u}']`);d&&(0,i.createRoot)(d).render((0,r.createElement)(a.A,t()({id:u,slides:l,metadata:c,disabled:!1},n)))}(s,o)}))}))}})()})();